rZ(eE(),ea,z?{id:z}:t1),[eE,ea,z]);tL(()=>{eu.update({popupProps:eR(),triggerProps:eI})}),tq(()=>{eu.update({id:z,modal:v,multiple:b,value:B,open:W,mounted:er,transitionStatus:ei,popupProps:eR(),triggerProps:eI,items:y,itemToStringLabel:x,itemToStringValue:w,isItemEqualToValue:S,openMethod:ev})},[eu,z,v,b,B,W,er,ei,eR,eI,y,x,w,S,ev]);let eM=k.useMemo(()=>({store:eu,name:V,required:p,disabled:H,readOnly:f,multiple:b,highlightItemOnHover:C,setValue:ex,setOpen:ey,listRef:U,popupRef:Z,scrollHandlerRef:K,handleScrollArrowVisibility:ew,scrollArrowsMountedCountRef:X,getItemProps:ek,events:eS.context.events,valueRef:G,valuesRef:$,labelsRef:Y,typingRef:J,selectionRef:et,selectedItemTextRef:ee,validation:D,onOpenChangeComplete:g,keyboardActiveRef:Q,alignItemWithTriggerActiveRef:en,initialValueRef:eg}),[eu,V,p,H,f,b,C,ex,ey,ek,eS.context.events,D,g,ew]),eP=rB(m,D.inputRef),eA=b&&Array.isArray(B)&&B.length>0,eT=b?void 0:V,eN=k.useMemo(()=>b&&Array.isArray(B)&&V?B.map(e=>{let t=ot(e,w);return(0,R.jsx)("input",{type:"hidden",form:s,name:V,value:t},t)}):null,[b,B,s,V,w]);return(0,R.jsx)(a_.Provider,{value:eM,children:(0,R.jsxs)(aF.Provider,{value:eS,children:[E,(0,R.jsx)("input",{...D.getInputValidationProps({onFocus(){var e;null===(e=eu.state.triggerElement)||void 0===e||e.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=n_(nD,e.nativeEvent);eu.set("forceMount",!0),queueMicrotask(function(){if(b)return;let e=$.current.find(e=>ot(e,w).toLowerCase()===t.toLowerCase()||oe(e,x).toLowerCase()===t.toLowerCase());null!=e&&(M(e!==N.initialValue),ex(e,n),T()&&D.commit(e))})}}),id:z&&null==eT?"".concat(z,"-hidden-input"):void 0,form:s,name:eT,autoComplete:c,value:eh,disabled:H,required:p&&!eA,readOnly:f,ref:eP,style:V?rg:rm,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),eN]})})}var aY=n(64124),aZ=n.n(aY);let aK=k.createContext(void 0),aX=k.forwardRef(function(e,t){let{store:n}=aD(),r=no(n,aV.mounted,void 0,void 0,void 0),l=no(n,aV.forceMount,void 0,void 0,void 0);return r||l?(0,R.jsx)(aK.Provider,{value:!0,children:(0,R.jsx)(ln,{ref:t,...e})}):null}),aG=k.createContext(void 0);function a$(){let e=k.useContext(aG);if(!e)throw Error(tH(59));return e}function aJ(e,t){e&&Object.assign(e.style,t)}let aQ={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},a0={position:"fixed"},a1=k.forwardRef(function(e,t){let{anchor:n,positionMethod:r="absolute",className:l,render:i,side:o="bottom",align:a="center",sideOffset:u=0,alignOffset:s=0,collisionBoundary:c="clipping-ancestors",collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:v,alignItemWithTrigger:h=!0,collisionAvoidance:m=r8,style:g,...y}=e,{store:b,listRef:x,labelsRef:w,alignItemWithTriggerActiveRef:S,selectedItemTextRef:C,valuesRef:E,initialValueRef:I,popupRef:M,setValue:P}=aD(),A=aj(),T=no(b,aV.open,void 0,void 0,void 0),N=no(b,aV.mounted,void 0,void 0,void 0),O=no(b,aV.modal,void 0,void 0,void 0),_=no(b,aV.value,void 0,void 0,void 0),F=no(b,aV.openMethod,void 0,void 0,void 0),D=no(b,aV.positionerElement,void 0,void 0,void 0),j=no(b,aV.triggerElement,void 0,void 0,void 0),z=no(b,aV.isItemEqualToValue,void 0,void 0,void 0),H=no(b,aV.transitionStatus,void 0,void 0,void 0),V=k.useRef(null),B=k.useRef(null),[L,W]=k.useState(h),q=N&&L&&"touch"!==F;N||L===h||W(h),tq(()=>{!N&&(aV.scrollUpArrowVisible(b.state)&&b.set("scrollUpArrowVisible",!1),aV.scrollDownArrowVisible(b.state)&&b.set("scrollDownArrowVisible",!1))},[b,N]),k.useImperativeHandle(S,()=>q),oL((q||O)&&T,"touch"===F,D,j);let U=oz({anchor:n,floatingRootContext:A,positionMethod:r,mounted:N,side:o,sideOffset:u,align:a,alignOffset:s,arrowPadding:f,collisionBoundary:c,collisionPadding:d,sticky:p,disableAnchorTracking:null!=v?v:q,collisionAvoidance:m,keepMounted:!0}),Y=q?"none":U.side,Z=q?a0:U.positionerStyles,K=oB(e,{open:T,side:Y,align:U.align,anchorHidden:U.anchorHidden},{styles:Z,transitionStatus:H,props:y,refs:[t,tw(e=>{b.set("positionerElement",e)})],hidden:!N,inert:!T}),X=k.useRef(0),G=tw(e=>{if(0===e.size&&0===X.current||0===E.current.length)return;let t=X.current;if(X.current=e.size,e.size===t)return;let n=n_(nD);if(0!==t&&!b.state.multiple&&null!==_&&-1===i3(E.current,_,z)){let e=I.current,t=null!=e&&-1!==i3(E.current,e,z)?e:null;P(t,n),null===t&&(b.set("selectedIndex",null),C.current=null)}if(0!==t&&b.state.multiple&&Array.isArray(_)){let e=e=>-1!==i3(E.current,e,z),t=_.filter(t=>e(t));(t.length!==_.length||t.some(e=>!i4(_,e,z)))&&(P(t,n),0===t.length&&(b.set("selectedIndex",null),C.current=null))}if(T&&q){b.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};aJ(D,e),aJ(M.current,e)}}),$=k.useMemo(()=>({...U,side:Y,alignItemWithTriggerActive:q,setControlledAlignItemWithTrigger:W,scrollUpArrowRef:V,scrollDownArrowRef:B}),[U,Y,q,W]);return(0,R.jsx)(ax,{elementsRef:x,labelsRef:w,onMapChange:G,children:(0,R.jsxs)(aG.Provider,{value:$,children:[N&&O&&(0,R.jsx)(li,{inert:rv(!T),cutout:j}),K]})})}),a2="base-ui-disable-scrollbar",a5={className:a2,getElement:e=>(0,R.jsx)("style",{nonce:e,href:a2,precedence:"base-ui:low",children:".".concat(a2,"{scrollbar-width:none}.").concat(a2,"::-webkit-scrollbar{display:none}")})},a4=k.createContext(void 0),a3=k.createContext(void 0),a6={disableStyleElements:!1},a8={...lh,...n7},a9=k.forwardRef(function(e,t){var n;let{render:r,className:l,style:i,finalFocus:o,...a}=e,{store:u,popupRef:s,onOpenChangeComplete:c,setOpen:d,valueRef:f,selectedItemTextRef:p,keyboardActiveRef:v,multiple:h,handleScrollArrowVisibility:m,scrollHandlerRef:g,listRef:y,highlightItemOnHover:b}=aD(),{side:x,align:w,alignItemWithTriggerActive:S,isPositioned:C,setControlledAlignItemWithTrigger:E,scrollDownArrowRef:I,scrollUpArrowRef:M}=a$(),P=null!=function(e){let t=k.useContext(a4);if(void 0===t&&!e)throw Error(tH(69));return t}(!0),A=aj(),T=oT(),{nonce:N,disableStyleElements:O}=null!==(n=k.useContext(a3))&&void 0!==n?n:a6,_=no(u,aV.id,void 0,void 0,void 0),F=no(u,aV.open,void 0,void 0,void 0),D=no(u,aV.mounted,void 0,void 0,void 0),j=no(u,aV.popupProps,void 0,void 0,void 0),z=no(u,aV.transitionStatus,void 0,void 0,void 0),H=no(u,aV.triggerElement,void 0,void 0,void 0),V=no(u,aV.positionerElement,void 0,void 0,void 0),B=no(u,aV.listElement,void 0,void 0,void 0),L=k.useRef(!1),W=k.useRef(!1),q=k.useRef({}),U=tJ(),Y=tw(e=>{if(!V||!s.current||!W.current)return;if(L.current||!S){m();return}let t="0px"===V.style.top,n="0px"===V.style.bottom;if(!t&&!n){m();return}let r=ut(V),l=V.getBoundingClientRect().height/r.y,i=tW(V),o=getComputedStyle(V),a=parseFloat(o.marginTop),u=parseFloat(o.marginBottom),c=a7(getComputedStyle(s.current)),d=Math.min(i.documentElement.clientHeight-a-u,c),f=e.scrollTop,p=ue(e),v=0,h=null,g=!1,y=!1,b=e=>{V.style.height="".concat(e,"px")},x=t?p-f:f,w=Math.min(l+x,d);if(v=w,x<=1){((t,n)=>{let r=lC(t,0,d-l);r>0&&b(l+r),e.scrollTop=n,d-(l+r)<=1&&(L.current=!0),m()})(x,t?p:0);return}if(d-w>1)t?y=!0:h=0;else if(g=!0,n&&f1&&(e.scrollTop=n)}(g||v>=d-1)&&(L.current=!0),m()});k.useImperativeHandle(g,()=>Y,[Y]),re({open:F,ref:s,onComplete(){F&&(null==c||c(!0))}}),tq(()=>{V&&s.current&&!Object.keys(q.current).length&&(q.current={top:V.style.top||"0",left:V.style.left||"0",right:V.style.right,height:V.style.height,bottom:V.style.bottom,minHeight:V.style.minHeight,maxHeight:V.style.maxHeight,marginTop:V.style.marginTop,marginBottom:V.style.marginBottom})},[s,V]),tq(()=>{F||S||(W.current=!1,L.current=!1,aJ(V,q.current))},[F,S,V,s]),tq(()=>{let e=s.current;if(!F||!H||!V||!e||S&&!C||"ending"===u.state.transitionStatus)return;if(!S){W.current=!0,U.request(m),e.style.removeProperty("--transform-origin");return}let t=function(e){let{style:t}=e,n={};for(let[e,r]of ur)n[e]=t.getPropertyValue(e),t.setProperty(e,r,"important");return()=>{for(let[e]of ur){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}(e);e.style.removeProperty("--transform-origin");try{var n,r;let t;let l=p.current,i=f.current,o=getComputedStyle(V),a=getComputedStyle(e),s=tW(H),c=(0,tE.Jj)(V),d=ut(H),v=un(H.getBoundingClientRect(),d),h=un(V.getBoundingClientRect(),d),g=v.height,x=B||e,w=x.scrollHeight,S=parseFloat(a.borderBottomWidth),C=parseFloat(o.marginTop)||10,R=parseFloat(o.marginBottom)||10,k=parseFloat(o.minHeight)||100,I=a7(a),M=s.documentElement.clientHeight-C-R,P=s.documentElement.clientWidth,A=M-v.bottom+g,N="rtl"===T?v.right-h.width:v.left,O=0;if(l&&i){let e=un(i.getBoundingClientRect(),d);t=un(l.getBoundingClientRect(),d),N=h.left+("rtl"===T?e.right-t.right:e.left-t.left);let n=e.top-v.top+e.height/2;O=t.top-h.top+t.height/2-n}let _=A+O+R+S,F=Math.min(M,_),D=M-C-R,j=_-F;V.style.left="".concat(lC(N,5,P-5-h.width),"px"),V.style.height="".concat(F,"px"),V.style.maxHeight="auto",V.style.marginTop="".concat(C,"px"),V.style.marginBottom="".concat(R,"px"),e.style.height="100%";let z=ue(x),U=j>=z-1;U&&(F=Math.min(M,h.height)-(j-z));let Y=v.top<20||v.bottom>M-20||Math.ceil(F)+1=D?"0":"".concat(Math.max(0,M-_),"px"),V.style.height="".concat(F,"px"),x.scrollTop=ue(x)):(V.style.bottom="0",x.scrollTop=j),t){let n=h.top,r=h.height,l=t.top+t.height/2,i=lC(r>0?(l-n)/r*100:50,0,100);e.style.setProperty("--transform-origin","50% ".concat(i,"%"))}(K===M||F>=I)&&(L.current=!0),m(),b&&null===u.state.selectedIndex&&null===u.state.activeIndex&&null!=y.current[0]&&u.set("activeIndex",0),W.current=!0}finally{t()}},[u,F,V,H,f,p,s,m,S,E,U,I,M,B,y,b,T,C]),k.useEffect(()=>{if(S&&V&&F)return th((0,tE.Jj)(V),"resize",function(e){d(!1,n_("window-resize",e))})},[d,S,V,F]);let Z=r5("div",e,{ref:[t,s],state:{open:F,transitionStatus:z,side:x,align:w},stateAttributesMapping:a8,props:[j,{...B?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":h||void 0,id:"".concat(_,"-list")},onKeyDown(e){v.current=!0,P&&ia.has(e.key)&&e.stopPropagation()},onMouseMove(){v.current=!1},onScroll(e){B||Y(e.currentTarget)},...S&&{style:B?{height:"100%"}:aQ}},oV(z),{className:!B&&S?a5.className:void 0},a]});return(0,R.jsxs)(k.Fragment,{children:[!O&&a5.getElement(N),(0,R.jsx)(it,{context:A,modal:!1,disabled:!D,returnFocus:o,restoreFocus:!0,children:Z})]})});function a7(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function ue(e){return aq(e.scrollHeight,e.clientHeight)}function ut(e){return oP.Jv.getScale(e)}function un(e,t){return(0,rb.JB)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let ur=[["transform","none"],["scale","1"],["translate","0 0"]],ul=k.forwardRef(function(e,t){let{className:n,render:r,style:l,...i}=e,{store:o,scrollHandlerRef:a}=aD(),{alignItemWithTriggerActive:u}=a$(),s=no(o,aV.hasScrollArrows,void 0,void 0,void 0),c=no(o,aV.openMethod,void 0,void 0,void 0),d=no(o,aV.multiple,void 0,void 0,void 0),f=no(o,aV.id,void 0,void 0,void 0),p={id:"".concat(f,"-list"),role:"listbox","aria-multiselectable":d||void 0,onScroll(e){var t;null===(t=a.current)||void 0===t||t.call(a,e.currentTarget)},...u&&{style:aQ},className:s&&"touch"!==c?a5.className:void 0};return r5("div",e,{ref:[t,tw(e=>{o.set("listElement",e)})],props:[p,i]})}),ui=e=>{let{children:t,portalTarget:n}=e;return ej(aX,{className:"atomics-Dropdown-portal",container:n,children:ej(a1,{alignItemWithTrigger:!1,className:(0,e8.Z)("atomics-Dropdown-positioner"),side:"bottom",sideOffset:8,children:ej(a9,{className:(0,e8.Z)("atomics-Dropdown-popup",aZ().popup),children:ej("div",{className:aZ().popupInner,children:ej(ul,{className:(0,e8.Z)("atomics-Dropdown-list",aZ().list),children:t})})})})})},uo={...lv,...os,value:()=>null},ua=k.forwardRef(function(e,t){let{render:n,className:r,id:l,disabled:i=!1,nativeButton:o=!0,style:a,...u}=e,{setTouched:s,setFocused:c,validationMode:d,state:f,disabled:p}=od(),{labelId:v}=om(),{store:h,setOpen:m,selectionRef:g,validation:y,readOnly:b,required:x,alignItemWithTriggerActiveRef:w,disabled:S,keyboardActiveRef:C}=aD(),E=p||S||i,R=no(h,aV.open,void 0,void 0,void 0),I=no(h,aV.value,void 0,void 0,void 0),M=no(h,aV.triggerProps,void 0,void 0,void 0),P=no(h,aV.positionerElement,void 0,void 0,void 0),A=no(h,aV.listElement,void 0,void 0,void 0),T=no(h,aV.id,void 0,void 0,void 0),N=no(h,aV.labelId,void 0,void 0,void 0),O=no(h,aV.hasSelectedValue,void 0,void 0,void 0),_=!O&&R,F=no(h,aV.hasNullItemLabel,_,void 0,void 0),D=null!=l?l:T,j=o8(v,N);og({id:D});let z=lK(P),H=k.useRef(null),{getButtonProps:V,buttonRef:B}=im({disabled:E,native:o}),L=rB(t,H,B,tw(e=>{h.set("triggerElement",e)})),W=tK(),q=tK(),U=tK(),Y=tK();k.useEffect(()=>{if(R)return O||F?Y.start(200,()=>{g.current.allowUnselectedMouseUp=!0,U.start(200,()=>{g.current.allowSelectedMouseUp=!0})}):U.start(400,()=>{g.current.allowUnselectedMouseUp=!0,g.current.allowSelectedMouseUp=!0}),()=>{U.clear(),Y.clear()};g.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},q.clear()},[R,O,F,g,q,U,Y]);let Z=k.useMemo(()=>{var e,t;return null!==(t=null==A?void 0:A.id)&&void 0!==t?t:null===(e=nk(P))||void 0===e?void 0:e.id},[A,P]),K=rZ(M,{id:D,role:"combobox","aria-expanded":R?"true":"false","aria-haspopup":"listbox","aria-controls":R?Z:void 0,"aria-labelledby":j,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:E?-1:0,ref:L,onFocus(e){c(!0),R&&w.current&&m(!1,n_(nD,e.nativeEvent)),W.start(0,()=>{h.set("forceMount",!0)})},onBlur(e){nA(P,e.relatedTarget)||(s(!0),c(!1),"onBlur"===d&&y.commit(I))},onPointerMove(){C.current=!1},onKeyDown(){C.current=!0},onMouseDown(e){if(R)return;let t=tW(e.currentTarget);function n(e){if(!H.current)return;let t=e.target;if(nA(H.current,t)||nA(z.current,t)||t===H.current)return;let n=o3(H.current);e.clientX>=n.left-2&&e.clientX<=n.right+2&&e.clientY>=n.top-2&&e.clientY<=n.bottom+2||m(!1,n_("cancel-open",e))}q.start(0,()=>{t.addEventListener("mouseup",n,{once:!0})})}},y.getValidationProps,u,V);return K.role="combobox",r5("button",e,{ref:[t,H],state:{...f,open:R,disabled:E,value:I,readOnly:b,placeholder:!O},stateAttributesMapping:uo,props:K})}),uu={value:()=>null},us=k.forwardRef(function(e,t){let{className:n,render:r,children:l,placeholder:i,style:o,...a}=e,{store:u,valueRef:s}=aD(),c=no(u,aV.value,void 0,void 0,void 0),d=no(u,aV.items,void 0,void 0,void 0),f=no(u,aV.itemToStringLabel,void 0,void 0,void 0),p=no(u,aV.hasSelectedValue,void 0,void 0,void 0),v=no(u,aV.hasNullItemLabel,!p&&null!=i&&null==l,void 0,void 0),h=null;return h="function"==typeof l?l(c):null!=l?l:p||null==i||v?Array.isArray(c)?or(c,d,f):on(c,d,f):i,r5("span",e,{state:{value:c,placeholder:!p},ref:[t,s],props:[{children:h},a],stateAttributesMapping:uu})}),uc=e=>{let{items:t,placeholder:n,size:r}=e,l=(0,k.useMemo)(()=>new Map(t.map(e=>[e.value,e.label])),[t]);return ej(ua,{"aria-label":n,render:(e,t)=>ej(iB,{asChild:!0,color:t.disabled?"text-disabled":t.value?"text-primary":"text-tertiary",fontFamily:"sans",fontSize:"large"===r?16:14,lineHeight:"large"===r?120:105,children:ej(i_,{align:"center",asChild:!0,justify:"space-between",children:ez("button",{...e,className:(0,e8.Z)("atomics-Dropdown-trigger",aZ().trigger,e.className),children:[ej(i_.Item,{asChild:!0,grow:1,children:ej(us,{className:(0,e8.Z)("atomics-Dropdown-value",aZ().value),children:e=>{var t;return null==e?n:null!==(t=l.get(e))&&void 0!==t?t:e}})}),ej(i_.Item,{asChild:!0,shrink:0,children:ej(i_,{align:"center",asChild:!0,children:ej("span",{className:(0,e8.Z)("atomics-Dropdown-icon",aZ().icon),children:ej(ix.Wd,{height:20,width:20})})})})]})})})})},ud=(0,k.forwardRef)((e,t)=>{let{className:n,disabled:r,error:l,helpText:i,id:o,items:a,name:u,onOpenChange:s,onValueChange:c,open:d,placeholder:f,portalTarget:p,renderItem:v,size:h="medium",style:m,value:g,...y}=e,b="string"==typeof l&&l,x=(0,k.useCallback)(e=>ej(aB,{render:(t,n)=>{var r;let l={item:e,...n,...t,ItemIndicator:aL};return null!==(r=null==v?void 0:v(l))&&void 0!==r?r:ej(al,{...l})},value:e.value},e.value),[v]);return ej(i_,{asChild:!0,direction:"column",gap:4,children:ez(oJ,{className:(0,e8.Z)("atomics-Dropdown-root",aZ().root,n),"data-component":"dropdown","data-dropdown-size":h,id:o,invalid:!!l,ref:t,style:m,...eX(y),children:[ez(aU,{disabled:r,modal:!1,name:u,onOpenChange:s,onValueChange:c,open:d,value:g,children:[ej(uc,{items:a,placeholder:f,size:h}),ej(ui,{portalTarget:p,children:a.map(x)})]}),b?ej(iB,{asChild:!0,color:"red-500",fontSize:12,lineHeight:120,children:ej(o1,{className:(0,e8.Z)("atomics-Dropdown-errorText",aZ().errorText),match:!0,render:e=>ej("p",{...e,children:l})})}):i?ej(iB,{asChild:!0,color:"text-tertiary",fontSize:12,lineHeight:120,children:ej(aO,{className:(0,e8.Z)("atomics-Dropdown-helpText",aZ().helpText),children:i})}):null]})})}),uf=k.forwardRef(function(e,t){let{render:n,className:r,id:l,name:i,value:o,disabled:a=!1,onValueChange:u,defaultValue:s,autoFocus:c=!1,style:d,...f}=e,{state:p,name:v,disabled:h,setTouched:m,setDirty:g,validityData:y,setFocused:b,setFilled:x,validationMode:w,validation:S}=od(),C=h||a,E={...p,disabled:C},{labelId:R}=om(),I=og({id:l});tq(()=>{var e;let t=null!=o;(null===(e=S.inputRef.current)||void 0===e?void 0:e.value)||t&&""!==o?x(!0):t&&""===o&&x(!1)},[S.inputRef,x,o]);let M=k.useRef(null);tq(()=>{c&&M.current===nP(tW(M.current))&&b(!0)},[c,b]);let[P]=tm({controlled:o,default:s,name:"FieldControl",state:"value"}),A=void 0!==o,T=A?P:void 0,N=tw(()=>{var e;return null===(e=S.inputRef.current)||void 0===e?void 0:e.value});return of(S.inputRef,{id:I,value:T,getValue:N}),r5("input",e,{ref:[t,M],state:E,props:[{id:I,disabled:C,name:null!=v?v:i,ref:S.inputRef,"aria-labelledby":R,autoFocus:c,...A?{value:T}:{defaultValue:s},onChange(e){let t=e.currentTarget.value;null==u||u(t,n_(nD,e.nativeEvent)),g(t!==y.initialValue),x(""!==t)},onFocus(){b(!0)},onBlur(e){m(!0),b(!1),"onBlur"===w&&S.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(m(!0),S.commit(e.currentTarget.value))}},S.getInputValidationProps(),f],stateAttributesMapping:os})}),up=k.forwardRef(function(e,t){return(0,R.jsx)(uf,{ref:t,...e})});var uv=n(37245),uh=n.n(uv);let um=(0,k.forwardRef)((e,t)=>{let{className:n,disabled:r=!1,errorText:l,helpText:i,icon:o,labelText:a,onBlur:u,onChange:s,onFocus:c,placeholderText:d,size:f="large",type:p="text",value:v,variant:h="outline",...m}=e,[g,y]=(0,k.useState)(!1),b=(0,k.useMemo)(()=>"line"===h?d||a:"outline"===h||"outline-label"===h?g&&d||a:d,[h,d,a,g]);return ej(i_,{asChild:!0,direction:"column",gap:4,children:ez(oJ,{className:(0,e8.Z)("atomics-Input-root",uh().inputRoot,n),"data-component":"input","data-input-size":f,"data-input-variant":h,invalid:!!l,children:[ej(iB,{asChild:!0,fontSize:12,lineHeight:100,children:ej(oQ,{className:uh().label,children:a})}),ez("div",{className:uh().inputWrapper,children:[ej(up,{className:uh().input,disabled:r,onBlur:e=>{y(!1),null==u||u(e)},onFocus:e=>{y(!0),null==c||c(e)},onValueChange:(e,t)=>{null==s||s(e,t)},placeholder:b,ref:t,type:p,value:v,...eX(m)}),o&&ej("span",{className:uh().icon,children:o})]}),l&&ej(iB,{asChild:!0,color:"red-500",fontSize:12,lineHeight:120,children:ej(o1,{className:uh().errorText,match:!0,render:e=>ej("p",{...e,children:l})})}),i&&!l&&ej(iB,{asChild:!0,fontSize:12,lineHeight:120,children:ej(aO,{className:uh().helpText,children:i})})]})})});um.displayName="Input";let ug=(0,k.forwardRef)((e,t)=>{let{onChange:n,step:r=1,...l}=e;return ej(um,{...l,onChange:(e,t)=>{let r=""===e?null:Number.parseFloat(e),l=Number.isNaN(r)?null:r;null==n||n(e,l,t)},ref:t,step:r,type:"number"})});ug.displayName="NumberInput";let uy=k.createContext(void 0),ub=((b={}).checked="data-checked",b.unchecked="data-unchecked",b.disabled="data-disabled",b.readonly="data-readonly",b.required="data-required",b.valid="data-valid",b.invalid="data-invalid",b.touched="data-touched",b.dirty="data-dirty",b.filled="data-filled",b.focused="data-focused",b),ux={...os,checked:e=>e?{[ub.checked]:""}:{[ub.unchecked]:""}},uw=k.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:l,"aria-labelledby":i,form:o,id:a,inputRef:u,name:s,nativeButton:c=!1,onCheckedChange:d,readOnly:f=!1,required:p=!1,disabled:v=!1,render:h,uncheckedValue:m,value:g,style:y,...b}=e,{clearErrors:x}=ov(),{state:w,setTouched:S,setDirty:C,validityData:E,setFilled:I,setFocused:M,shouldValidateOnChange:P,validationMode:A,disabled:T,name:N,validation:O}=od(),{labelId:_}=om(),F=T||v,D=null!=N?N:s,j=tw(d),z=k.useRef(null),H=rB(z,u,O.inputRef),V=k.useRef(null),B=id(),L=og({id:a,implicit:!1,controlRef:V}),W=c?void 0:L,[q,U]=tm({controlled:n,default:!!l,name:"Switch",state:"checked"});of(V,{id:B,value:q}),tq(()=>{z.current&&I(z.current.checked)},[z,I]),n1(q,()=>{x(D),C(q!==E.initialValue),I(q),P()?O.commit(q):O.commit(q,!0)});let{getButtonProps:Y,buttonRef:Z}=im({disabled:F,native:c}),K=function(e,t,n){var r;let l=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=arguments.length>4?arguments[4]:void 0,[o,a]=k.useState(),u=id(i?"".concat(i,"-label"):void 0),s=null!==(r=null!=e?e:t)&&void 0!==r?r:o;return tq(()=>{let r=e||t||!l?void 0:function(e,t){let n=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}(n.current,u);o!==r&&a(r)}),s}(i,_,z,!c,W),X=k.useMemo(()=>rZ({checked:q,disabled:F,form:o,id:W,name:D,required:p,style:D?rg:rm,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:H,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f){e.preventDefault();return}let t=e.currentTarget.checked,n=n_(nD,e.nativeEvent);null==j||j(t,n),n.isCanceled||U(t)},onFocus(){var e;null===(e=V.current)||void 0===e||e.focus()}},O.getInputValidationProps,void 0!==g?{value:g}:t1),[q,F,o,H,W,D,j,f,p,U,O,g]),G=k.useMemo(()=>({...w,checked:q,disabled:F,readOnly:f,required:p}),[w,q,F,f,p]),$=r5("span",e,{state:G,ref:[t,V,Z],props:[{id:c?L:B,role:"switch","aria-checked":q,"aria-readonly":f||void 0,"aria-required":p||void 0,"aria-labelledby":K,onFocus(){F||M(!0)},onBlur(){let e=z.current;e&&!F&&(S(!0),M(!1),"onBlur"===A&&O.commit(e.checked))},onClick(e){var t;f||F||(e.preventDefault(),null===(t=z.current)||void 0===t||t.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey})))}},O.getValidationProps,b,Y],stateAttributesMapping:ux});return(0,R.jsxs)(uy.Provider,{value:G,children:[$,!q&&D&&void 0!==m&&(0,R.jsx)("input",{type:"hidden",form:o,name:D,value:m}),(0,R.jsx)("input",{...X,suppressHydrationWarning:!0})]})}),uS=k.forwardRef(function(e,t){let{render:n,className:r,style:l,...i}=e,{state:o}=od(),a=function(){let e=k.useContext(uy);if(void 0===e)throw Error(tH(63));return e}();return r5("span",e,{state:{...o,...a},ref:t,stateAttributesMapping:ux,props:i})});var uC=n(19619),uE=n.n(uC);(0,k.forwardRef)((e,t)=>{let{activeIcon:n,className:r,inactiveIcon:l,isChecked:i,onChange:o,...a}=e;return ej(uw,{...void 0!==i?{checked:i}:{},className:(0,e8.Z)("atomics-Switch-root",uE().switch,r),"data-component":"switch",onCheckedChange:(e,t)=>null==o?void 0:o(e,t),ref:t,...eX(a),children:ez(uS,{className:uE().thumb,children:[i&&n,!i&&l]})})}).displayName="Switch";var uR=n(39194),uk=n.n(uR);let uI=(0,k.forwardRef)((e,t)=>{let{children:n,className:r,label:l,size:i="medium",...o}=e;return n?ej(ti,{"aria-label":l,className:(0,e8.Z)("atomics-IconButton-root",uk().iconBtn,r),"data-button-size":i,ref:t,...eX(o),children:n}):null});uI.displayName="IconButton";var uM=n(63731),uP=n.n(uM);let uA=[{componentStyleProp:"alignItems",cssProp:"align-items"},{componentStyleProp:"autoFlow",cssProp:"grid-auto-flow"},{componentStyleProp:"columnGap",cssProp:"column-gap"},{componentStyleProp:"inline",cssProp:"display"},{componentStyleProp:"justifyContent",cssProp:"justify-content"},{componentStyleProp:"rowGap",cssProp:"row-gap"},{componentStyleProp:"templateColumns",cssProp:"grid-template-columns"},{componentStyleProp:"templateRows",cssProp:"grid-template-rows"}],uT={columnGap:e0(iE),inline:e=>e?"inline-grid":"grid",rowGap:e0(iE)},uN=to("Grid",(e,t)=>{let{alignItems:n,asChild:r=!1,autoFlow:l,className:i,columnGap:o,inline:a,justifyContent:u,rowGap:s,templateColumns:c,templateRows:d,...f}=e,p=r?tn.g7:"div",v=eK("Grid",uA);return ej(p,{className:(0,e8.Z)(uP().grid,"atomics-Grid-root",i),css:v,"data-testid":"grid",ref:r?void 0:t,...eQ({componentName:"Grid",restProps:f,styleProps:{alignItems:n,autoFlow:l,columnGap:o,inline:a,justifyContent:u,rowGap:s,templateColumns:c,templateRows:d},valueMap:uT})})}),uO=[{componentStyleProp:"columnStart",cssProp:"grid-column-start"},{componentStyleProp:"columnEnd",cssProp:"grid-column-end"},{componentStyleProp:"rowStart",cssProp:"grid-row-start"},{componentStyleProp:"rowEnd",cssProp:"grid-row-end"},{componentStyleProp:"order",cssProp:"order"}],u_=Object.assign(uN,{Item:to("GridItem",(e,t)=>{let{asChild:n=!1,className:r,columnEnd:l,columnStart:i,order:o,rowEnd:a,rowStart:u,...s}=e,c=n?tn.g7:"div",d=eK("GridItem",uO);return ej(c,{className:(0,e8.Z)("atomics-GridItem-root",r),css:d,"data-testid":"grid-item",ref:n?void 0:t,...eQ({componentName:"GridItem",restProps:s,styleProps:{columnEnd:l,columnStart:i,order:o,rowEnd:a,rowStart:u}})})})});var uF=n(42005),uD=n.n(uF);let uj=Object.assign(to("List",(e,t)=>{let{asChild:n=!1,children:r,className:l,gap:i,variant:o="unordered",...a}=e;return ej(n?tn.g7:"ordered"===o?"ol":"ul",{className:(0,e8.Z)("atomics-List-root",uD().list,l),"data-list-gap":i,"data-list-variant":o,"data-testid":"list",ref:n?void 0:t,...eX(a),children:r})}),{Item:to("ListItem",(e,t)=>{let{asChild:n=!1,children:r,className:l,...i}=e;return ej(n?tn.g7:"li",{className:(0,e8.Z)("atomics-ListItem-root",l),"data-testid":"list-item",ref:n?void 0:t,...eX(i),children:r})})}),uz={...lh,...n7},uH=k.forwardRef(function(e,t){let{render:n,className:r,style:l,forceRender:i=!1,...o}=e,{store:a}=rn(),u=a.useState("open"),s=a.useState("nested"),c=a.useState("mounted");return r5("div",e,{state:{open:u,transitionStatus:a.useState("transitionStatus")},ref:[a.context.backdropRef,t],stateAttributesMapping:uz,props:[{role:"presentation",hidden:!c,style:{userSelect:"none",WebkitUserSelect:"none"}},o],enabled:i||!s})}),uV=((x={}).nestedDialogs="--nested-dialogs",x),uB=((w={})[w.open=la.open]="open",w[w.closed=la.closed]="closed",w[w.startingStyle=la.startingStyle]="startingStyle",w[w.endingStyle=la.endingStyle]="endingStyle",w.nested="data-nested",w.nestedDialogOpen="data-nested-dialog-open",w),uL={...lh,...n7,nestedDialogOpen:e=>e?{[uB.nestedDialogOpen]:""}:null},uW=k.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:l,render:i,style:o,...a}=e,{store:u}=rn(),s=u.useState("descriptionElementId"),c=u.useState("disablePointerDismissal"),d=u.useState("floatingRootContext"),f=u.useState("popupProps"),p=u.useState("modal"),v=u.useState("mounted"),h=u.useState("nested"),m=u.useState("nestedOpenDialogCount"),g=u.useState("open"),y=u.useState("openMethod"),b=u.useState("titleElementId"),x=u.useState("transitionStatus"),w=u.useState("role");ll(),re({open:g,ref:u.context.popupRef,onComplete(){if(g){var e,t;null===(e=(t=u.context).onOpenChangeComplete)||void 0===e||e.call(t,!0)}}});let S=r5("div",e,{state:{open:g,nested:h,transitionStatus:x,nestedDialogOpen:m>0},props:[f,{"aria-labelledby":null!=b?b:void 0,"aria-describedby":null!=s?s:void 0,role:w,tabIndex:-1,hidden:!v,onKeyDown(e){ia.has(e.key)&&e.stopPropagation()},style:{[uV.nestedDialogs]:m}},a],ref:[t,u.context.popupRef,u.useStateSetter("popupElement")],stateAttributesMapping:uL});return(0,R.jsx)(it,{context:d,openInteractionType:y,disabled:!v,closeOnFocusOut:!c,initialFocus:void 0===l?function(e){return"touch"!==e||u.context.popupRef.current}:l,returnFocus:r,modal:!1!==p,restoreFocus:"popup",children:S})});var uq=n(25749),uU=n.n(uq);let uY=(0,k.forwardRef)((e,t)=>{let{children:n,className:r,footer:l,isDismissible:i=!0,isModalOpen:o,onOpenChange:a,portalTarget:u,size:s="medium",subtitle:c,title:d,...f}=e;return ej(ru,{disablePointerDismissal:!i,onOpenChange:a,open:o,children:ez(lo,{className:"atomics-Modal-portal",container:u,children:[ej(uH,{className:(0,e8.Z)(uU().backdrop,"atomics-Modal-backdrop")}),ej(i_,{asChild:!0,direction:"column",children:ez(uW,{className:(0,e8.Z)(uU().popup,r,"atomics-Modal-popup"),"data-component":"modal","data-modal-size":s,ref:t,...eX(f),children:[ez(i_,{className:(0,e8.Z)(uU().header,"atomics-Modal-header"),children:[ej(i_.Item,{asChild:!0,shrink:0,children:ej(uI,{"aria-hidden":"true",className:(0,e8.Z)(uU().closeButtonSpacer,"atomics-Modal-closeButton"),size:"extra-small",tabIndex:-1,variant:"ghost",children:ej(ix.x8,{})})}),ej(i_.Item,{asChild:!0,grow:1,shrink:1,children:ez(i_,{align:"center",className:uU().headerContent,direction:"column",gap:4,children:[ej(ip,{render:e=>{let{className:t,color:n,...r}=e;return ej(iB,{asChild:!0,className:(0,e8.Z)(t,uU().title,"atomics-Modal-title"),fontFamily:"sans",fontSize:20,fontWeight:"bold",lineHeight:120,children:ej("h2",{...r,children:d})})}}),null!=c&&ej(iv,{render:e=>{let{className:t,color:n,...r}=e;return ej(iB,{asChild:!0,className:(0,e8.Z)(t,uU().subtitle,"atomics-Modal-subtitle"),fontFamily:"sans",fontSize:14,fontWeight:"regular",lineHeight:120,children:ej("p",{...r,children:c})})}})]})}),ej(i_.Item,{asChild:!0,shrink:0,children:ej(iy,{render:e=>{let{className:t,...n}=e;return ej(uI,{className:(0,e8.Z)("atomics-Modal-closeButton",t),label:"Close",size:"extra-small",variant:"ghost",...n,children:ej(ix.x8,{})})}})})]}),ej("div",{className:(0,e8.Z)(uU().body,"atomics-Modal-body"),children:n}),null!=l&&ej(u_,{autoFlow:"column",className:(0,e8.Z)(uU().footer,"atomics-Modal-footer"),columnGap:8,children:l})]})})]})})});function uZ(){let e=eB(["\n @layer phx.components {\n & {\n aspect-ratio: 3 / 2;\n }\n }\n ","\n "]);return uZ=function(){return e},e}function uK(){let e=eB(["\n @layer phx.components {\n & {\n aspect-ratio: 1 / 1;\n border-radius: 50%;\n }\n }\n "]);return uK=function(){return e},e}function uX(){let e=eB(["\n @layer phx.components {\n & {\n --atomics-skeleton-row-gap: var(--phx-space-core-8);\n }\n }\n "]);return uX=function(){return e},e}function uG(){let e=eB(["\n @layer phx.components {\n & {\n --atomics-skeleton-row-height: 1lh;\n height: calc(\n var(--atomics-skeleton-row-height) - var(--atomics-skeleton-row-gap)\n );\n margin-bottom: calc(var(--atomics-skeleton-row-gap) / 2);\n margin-top: calc(var(--atomics-skeleton-row-gap) / 2);\n }\n\n &[data-is-last-row] {\n width: 60%;\n }\n }\n "]);return uG=function(){return e},e}function u$(){let e=eB(["\n @layer phx.components {\n @keyframes skeleton-pulse {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.3;\n }\n }\n\n & {\n --atomics-skeleton-background-color: var(\n --phx-color-background-secondary\n );\n background-color: var(--atomics-skeleton-background-color);\n border-radius: var(--phx-radius-core-4);\n @media (prefers-reduced-motion: no-preference) {\n animation: skeleton-pulse 1600ms linear infinite;\n }\n }\n }\n "]);return u$=function(){return e},e}uY.displayName="Modal";let uJ={box:eW(uZ(),eZ("BoxSkeleton",[{componentStyleProp:"aspectRatio",cssProp:"aspect-ratio"}])),circle:eW(uK()),line:eW(uX()),lineRow:eW(uG()),skeleton:eW(u$())},uQ=[{componentStyleProp:"width",cssProp:"width"}],u0=(0,k.forwardRef)((e,t)=>{let{aspectRatio:n,variant:r,width:l,...i}=e;return ej("div",{css:[uJ.skeleton,uJ.box,eK("BoxSkeleton",uQ)],"data-skeleton-variant":r,ref:t,...eQ({componentName:"BoxSkeleton",restProps:i,styleProps:{aspectRatio:n,width:l},valueMap:{width:e1}})})});u0.displayName="BoxSkeleton";let u1=[{componentStyleProp:"size",cssProp:"width"},{componentStyleProp:"size",cssProp:"height"}],u2=(0,k.forwardRef)((e,t)=>{let{size:n,variant:r,...l}=e;return ej("div",{css:[uJ.skeleton,uJ.circle,eK("CircleSkeleton",u1)],"data-skeleton-variant":r,ref:t,...eQ({componentName:"CircleSkeleton",restProps:l,styleProps:{size:n},valueMap:{size:e1}})})});u2.displayName="CircleSkeleton";let u5={rowGap:e0(iE),rowHeight:e1},u4=[{componentStyleProp:"rowHeight",cssProp:"--atomics-skeleton-row-height"},{componentStyleProp:"rowGap",cssProp:"--atomics-skeleton-row-gap"}],u3=(0,k.forwardRef)((e,t)=>{let{numRows:n=1,rowGap:r,rowHeight:l,variant:i,...o}=e,a=eK("LineSkeleton",u4);return ej(i_,{css:uJ.line,"data-skeleton-variant":i,direction:"column",ref:t,...eX(o),children:Array.from({length:n},(e,t)=>ej("div",{css:[uJ.skeleton,uJ.lineRow,a],"data-is-last-row":t===n-1?"":void 0,...eQ({componentName:"LineSkeleton",styleProps:{rowGap:r,rowHeight:l},valueMap:u5})},t))})});u3.displayName="LineSkeleton";let u6=(0,k.forwardRef)((e,t)=>{let{className:n,...r}=e,l=(0,e8.Z)("atomics-Skeleton-root",n);switch(r.variant){case"circle":return ej(u2,{className:l,ref:t,...r});case"box":return ej(u0,{className:l,ref:t,...r});case"line":return ej(u3,{className:l,ref:t,...r})}});u6.displayName="Skeleton";var u8=n(51144),u9=n.n(u8);(0,k.forwardRef)((e,t)=>{let{children:n,className:r,size:l="medium",...i}=e;return ej(ti,{className:(0,e8.Z)("atomics-UtilityButton-root",u9().utilityBtn,r),"data-button-size":l,ref:t,...eX(i),children:n})}).displayName="UtilityButton"},74945:function(e){e.exports={avatar:"Avatar_avatar__6R9_G"}},47993:function(e){e.exports={badge:"Badge_badge__CT1BR"}},22575:function(e){e.exports={btn:"Button_btn__hEu8M"}},20834:function(e){e.exports={card:"Card_card__4vP3N"}},80480:function(e){e.exports={chip:"Chip_chip__FPJtZ"}},50161:function(e){e.exports={detailCard:"DetailCard_detailCard__QxqrM",detailCardMarginableChild:"DetailCard_detailCardMarginableChild__s4eWx",detailCardHorizontalContent:"DetailCard_detailCardHorizontalContent__ac8vK",detailCardHeader:"DetailCard_detailCardHeader__MEHp9",detailCardMedia:"DetailCard_detailCardMedia__D20sS",detailCardBody:"DetailCard_detailCardBody__o4k76",detailCardFooter:"DetailCard_detailCardFooter__5SVM8"}},54474:function(e){e.exports={backdrop:"Drawer_backdrop__ozSG1",popup:"Drawer_popup__nhwL2",viewport:"Drawer_viewport__FuhGz",header:"Drawer_header__0_wi1",headerContent:"Drawer_headerContent__UuKZr",closeButtonSpacer:"Drawer_closeButtonSpacer__LJy8i",subtitle:"Drawer_subtitle___U9XX",title:"Drawer_title__9BTYa",content:"Drawer_content__FPJ5m",body:"Drawer_body__7lQNs",footer:"Drawer_footer__ls2B_"}},39194:function(e){e.exports={iconBtn:"IconButton_iconBtn__dg5zS"}},25749:function(e){e.exports={popup:"Modal_popup__5shbF",backdrop:"Modal_backdrop__XuVyK",header:"Modal_header__wI7jI",headerContent:"Modal_headerContent__tPU4Y",closeButtonSpacer:"Modal_closeButtonSpacer__NalAn",title:"Modal_title__SzUtn",subtitle:"Modal_subtitle__vXBEp",body:"Modal_body__S4dzL",footer:"Modal_footer__pUXkr"}},51144:function(e){e.exports={utilityBtn:"UtilityButton_utilityBtn__liXoz"}},9914:function(e){e.exports={comboboxRoot:"Combobox_comboboxRoot__aDXv9",label:"Combobox_label__RjTZr",trigger:"Combobox_trigger__wqwql",value:"Combobox_value__z8SBO",chevron:"Combobox_chevron__kAfzz",popup:"Combobox_popup__iVm_B",errorText:"Combobox_errorText__z9R9n"}},21956:function(e){e.exports={menuContainer:"ComboboxMenu_menuContainer__BurCm",srOnly:"ComboboxMenu_srOnly__R4NH9",searchBar:"ComboboxMenu_searchBar__g1JI8",clearButton:"ComboboxMenu_clearButton__D47eM",searchIcon:"ComboboxMenu_searchIcon__IVgsl",list:"ComboboxMenu_list__AEZo0",empty:"ComboboxMenu_empty__lmblo",itemIndicator:"ComboboxMenu_itemIndicator__0MhF0"}},27116:function(e){e.exports={menuInput:"MenuInput_menuInput__1zmFU"}},64124:function(e){e.exports={root:"Dropdown_root__qcJEu",trigger:"Dropdown_trigger__FTO1u",value:"Dropdown_value___qNc7",icon:"Dropdown_icon__ZQgxa",popup:"Dropdown_popup__GkDN6",popupInner:"Dropdown_popupInner__JbRrD",list:"Dropdown_list__1dJwP",indicator:"Dropdown_indicator__m_LbM",errorText:"Dropdown_errorText__YXtDi",helpText:"Dropdown_helpText__AKBli"}},37245:function(e){e.exports={inputRoot:"Input_inputRoot__G24K_",label:"Input_label__PFTMK",inputWrapper:"Input_inputWrapper__RQ977",icon:"Input_icon__tgR_J",input:"Input_input__3mFqW",helpText:"Input_helpText__pRKz_",errorText:"Input_errorText___tlIi"}},19619:function(e){e.exports={switch:"Switch_switch__h4w1G",thumb:"Switch_thumb__sjvmF"}},66303:function(e){e.exports={menuItem:"MenuItem_menuItem__2BHxF",menuItemSpacer:"MenuItem_menuItemSpacer__PDjR7"}},63731:function(e){e.exports={grid:"Grid_grid__qtAzq"}},42005:function(e){e.exports={list:"List_list__K_lgQ"}},83:function(e,t,n){"use strict";var r=n(67294),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,o=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!l(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),l=r[0].inst,c=r[1];return a(function(){l.value=n,l.getSnapshot=t,s(l)&&c({inst:l})},[e,n,t]),o(function(){return s(l)&&c({inst:l}),e(function(){s(l)&&c({inst:l})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},26251:function(e,t,n){"use strict";var r=n(67294),l=n(61688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=l.useSyncExternalStore,a=r.useRef,u=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=s(function(){function e(e){if(!u){if(u=!0,o=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==l&&l(t,n)?(o=e,t):(o=e,a=n)}var o,a,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,r,l]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},61688:function(e,t,n){"use strict";e.exports=n(83)},52798:function(e,t,n){"use strict";e.exports=n(26251)},61465:function(e,t,n){"use strict";n.d(t,{g7:function(){return o},A4:function(){return u}});var r=n(67294);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var i=n(85893),o=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,o;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let r in t){let l=e[r],i=t[r];/^on[A-Z]/.test(r)?l&&i?n[r]=(...e)=>{let t=i(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...i}:"className"===r&&(n[r]=[l,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:l,...o}=e,a=r.Children.toArray(l),u=a.find(s);if(u){let e=u.props.children,l=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return(0,i.jsx)(t,{...o,ref:n,children:l})});return n.displayName=`${e}.Slot`,n}("Slot"),a=Symbol("radix.slottable"),u=function(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=a,t}("Slottable");function s(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},47231:function(e,t,n){"use strict";n.d(t,{mm:function(){return l},kw:function(){return i},Wh:function(){return o},Jr:function(){return a},x8:function(){return u},GE:function(){return s},$V:function(){return c},Wd:function(){return d},_j:function(){return f},hY:function(){return p},hO:function(){return v},HN:function(){return h}});var r=n(67294);let l=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"add",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"M11 19v-6H5v-2h6V5h2v6h6v2h-6v6z"}))}),i=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"bookmark-fill",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"M19 3H5v18l7-3 7 3z"}))}),o=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"bookmark-outline",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"M19 3H5v18l7-3 7 3zm-2 15-5-2.18L7 18V5h10z"}))}),a=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"check",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"m8.795 15.875-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41z"}))}),u=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"close",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))}),s=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"fullscreen-close",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"M6 21v-3H3v-2h5v5zm10 0v-5h5v2h-3v3zM3 8V6h3V3h2v5zm13 0V3h2v3h3v2z"}))}),c=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"fullscreen-open",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"M3 21v-5h2v3h3v2zm13 0v-2h3v-3h2v5zM3 8V3h5v2H5v3zm16 0V5h-3V3h5v5z"}))}),d=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"keyboard-arrow-down",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"m12 15.4-6-6L7.4 8l4.6 4.6L16.6 8 18 9.4z"}))}),f=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"open-in-new",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"M19 19H5V5h7V3H3v18h18v-9h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}))}),p=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"refresh",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.713A7.6 7.6 0 0 1 18 6.75V4h2v7h-7V9h4.2a5.84 5.84 0 0 0-2.187-2.2A5.93 5.93 0 0 0 12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18a5.86 5.86 0 0 0 3.475-1.1A5.8 5.8 0 0 0 17.65 14h2.1q-.7 2.65-2.85 4.325C14.75 20 13.833 20 12 20"}))}),v=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"remove-circle-outline",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}))}),h=(0,r.forwardRef)((e,t)=>{let{title:n,titleId:l,...i}=e;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor","data-phx-icon":"search",viewBox:"0 0 24 24",ref:t,"aria-labelledby":l,...i},n?r.createElement("title",{id:l},n):null,r.createElement("path",{d:"m19.6 21-6.3-6.3A6.1 6.1 0 0 1 9.5 16q-2.725 0-4.612-1.887T3 9.5t1.888-4.612Q6.775 3 9.5 3t4.613 1.888Q15.999 6.775 16 9.5a6.1 6.1 0 0 1-1.3 3.8l6.3 6.3zM9.5 14q1.875 0 3.188-1.313Q14 11.375 14 9.5t-1.313-3.188Q11.375 5 9.5 5T6.312 6.313C4.999 7.626 5 8.25 5 9.5q0 1.875 1.313 3.188Q7.625 14 9.5 14"}))})}}]);
\ No newline at end of file
diff --git a/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7018-4a136dd45f9c84bc_05Q6.js b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7018-4a136dd45f9c84bc_05Q6.js
new file mode 100644
index 0000000..6d53214
--- /dev/null
+++ b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7018-4a136dd45f9c84bc_05Q6.js
@@ -0,0 +1,18 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7018],{38742:function(e,t,n){"use strict";n.d(t,{sC:function(){return u},wU:function(){return o},gq:function(){return a},W4:function(){return r}});var i=n(85893);function r({description:e,image:t,isArticle:n,title:r,twitterHandle:o,creator:a}){let s=[(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,i.jsx)("meta",{name:"twitter:site",content:o},"twitter:site"),(0,i.jsx)("meta",{name:"twitter:description",content:e},"twitter:description"),(0,i.jsx)("meta",{name:"twitter:title",content:r},"twitter:title"),(0,i.jsx)("meta",{name:"twitter:image",content:t},"twitter:image"),(0,i.jsx)("meta",{name:"twitter:tile:template:testing",content:"2"},"twitter:tile:template:testing"),(0,i.jsx)("meta",{name:"twitter:tile:image",content:t},"twitter:tile:image"),(0,i.jsx)("meta",{name:"twitter:tile:image:alt",content:r},"twitter:tile:image:alt")];return n&&s.push((0,i.jsx)("meta",{name:"twitter:cta",content:"Read on Bloomberg"},"twitter:cta")),a&&s.push((0,i.jsx)("meta",{name:"twitter:creator",content:a},"twitter:creator")),s}function o({type:e,title:t,description:n,url:r,image:o,keywords:a}){let s=[(0,i.jsx)("meta",{property:"og:description",content:n},"og:description"),(0,i.jsx)("meta",{property:"og:image",content:o},"og:image"),(0,i.jsx)("meta",{property:"og:site_name",content:"Bloomberg.com"},"og:site_name"),(0,i.jsx)("meta",{property:"og:title",content:t},"og:title"),(0,i.jsx)("meta",{property:"og:type",content:e},"og:type"),(0,i.jsx)("meta",{property:"og:url",content:r},"og:url")];return a&&s.push((0,i.jsx)("meta",{property:"og:keywords",content:a},"og:keywords")),s}function a({canonical:e,description:t,keywords:n}){let r=[(0,i.jsx)("link",{rel:"canonical",href:e},"static-metadata-tags--canonical"),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, viewport-fit=cover"},"static-metadata-tags--viewport"),(0,i.jsx)("meta",{name:"apple-itunes-app",content:"app-id=281941097"},"static-metadata-tags--apple-itunes-app"),(0,i.jsx)("meta",{name:"robots",content:"max-image-preview:large"},"static-metadata-tags--robots")];return t&&r.push((0,i.jsx)("meta",{name:"description",content:t},"static-metadata-tags--description")),n&&r.push((0,i.jsx)("meta",{name:"keywords",content:n},"static-metadata-tags--keywords")),r}let s={blue:"/env/favicon-blue.png",green:"/env/favicon-green.png",orange:"/env/favicon-phoenix.png",purple:"/env/favicon-purple.png",red:"/env/favicon-red.png",yellow:"/env/favicon-yellow.png",staging:"/env/favicon-gray.png"},l={gladfly:"/favicon-blue.png",opinion:"/favicon-blue.png",view:"/favicon-blue.png"};var u=({brand:e="",baseUrl:t="https://www.bloomberg.com",env:n="production"})=>{let r=l[e]??"/favicon-black.png";"production"!==n&&s[n]&&(r=s[n]);let o=`${t}${r}`;return(0,i.jsx)("link",{rel:"icon",type:"image/png",href:o})}},76795:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useAdOptions=t.adOptionsContext=void 0;let r=i(n(94962)),o=n(67294);t.adOptionsContext=(0,o.createContext)({adOptions:{}}),t.useAdOptions=e=>{let{adOptions:n,articleMetadata:i,customRefreshOptions:a}=(0,o.useContext)(t.adOptionsContext);return{adOptions:(0,o.useMemo)(()=>(0,r.default)(n,null!=e?e:{}),[n,e]),articleMetadata:i,customRefreshOptions:a}}},36257:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=n(85893),o=i(n(4298)),a=n(67294),s=i(n(85252)),l=n(76795),u=n(93064),d=i(n(45092)),c=(e,t,n)=>[e,t,n].filter(Boolean).join("-"),p=(e,t)=>(0,r.jsx)(o.default,{id:"sparkle-init",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:`
+ window.Sparkle.cmd.push(function(){
+ const decoupleDiv = window.document.createElement("div");
+ decoupleDiv.id = "${e}";
+ decoupleDiv.setAttribute("data-testid", "sparkle-ad");
+ decoupleDiv.setAttribute("data-ad-status", "rendering");
+ decoupleDiv.setAttribute("className", "");
+ window.document.body.appendChild(decoupleDiv);
+ var adOptions = ${JSON.stringify(t)}
+ window.Sparkle.createAd({...adOptions});
+ });
+ `},type:"text/javascript"});t.default=function(e){let{options:t,positionIncrement:n,onEmpty:i,onRender:o}=e,h=(0,a.useRef)(null),m=c("leaderboard","decoupled",n),f=(0,s.default)(),{sparkle:g}=f,{adOptions:v}=(0,l.useAdOptions)(t),b=(0,u.constructDecoupleAdOptions)({...v,containerId:m},f),[y,I]=(0,a.useState)();return(0,d.default)(v.refreshOptions,y),(0,a.useEffect)(()=>{var e;let t=document.querySelector(`div[id^='${m}']`);t&&h.current&&(null===(e=h.current.parentNode)||void 0===e||e.appendChild(t))},[h.current]),(0,a.useEffect)(()=>{if(!y)return;let e=document.querySelector(`div[id^='${m}']`);y.onRender(()=>{null==e||e.setAttribute("data-ad-status","rendered"),null==e||e.setAttribute("className","display"),"function"==typeof o&&o(y)}),y.onEmpty(()=>{null==e||e.setAttribute("data-ad-status","empty"),null==e||e.setAttribute("className",""),"function"==typeof i&&i()})},[y]),(0,a.useEffect)(()=>{if(!g)return;window.addEventListener("sparkleAdCreated",e=>{let{detail:{containerId:t}}=e;y||t!==m||I(g.getAd(m))},{once:!0});let e=g.getAd(m);e&&I(e)},[g]),(0,r.jsxs)(r.Fragment,{children:[p(m,b),(0,r.jsx)("div",{ref:h,style:{display:"none"}})]})}},75186:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=n(85893),o=n(67294),a=n(93064),s=i(n(45092)),l=i(n(85252)),u=n(76795);t.default=function(e){let{id:t,onEmpty:n,onRender:i}=e,d=(0,l.default)(),{adOptions:c}=(0,u.useAdOptions)(e.options),[p,h]=(0,o.useState)("rendering"),[m,f]=(0,o.useState)(""),[g,v]=(0,o.useState)(),{sparkle:b,disableAds:y,userState:I}=d,w=y||c.disableAds,S=!I.isLoaded;return(0,s.default)(c.refreshOptions,g),(0,o.useEffect)(()=>{let e=(0,a.constructAdOptions)({...c,containerId:t},d);!b||w||S||b.createAd(e).then(e=>{e.onRender(()=>{f("display"),h("rendered"),v(e),"function"==typeof i&&i(e)}),e.onEmpty(()=>{f(""),h("empty"),"function"==typeof n&&n()})}).catch(e=>{console.error("Could not instantiate ad:","Error:",e)})},[b,w,S]),(0,r.jsx)("div",{id:t,"data-testid":"sparkle-ad","data-ad-status":p,className:m})}},77041:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sparkleContext=t.DEFAULT_NETWORK_CODE=void 0;let i=n(67294),r=n(58436);t.DEFAULT_NETWORK_CODE="5262";let o={language:"en",sparkle:null,disableAds:!1,defaultAdCode:"",sparkleInitOptions:{networkCode:t.DEFAULT_NETWORK_CODE,breakpoints:r.DEFAULT_BREAKPOINTS},userState:{isLoaded:!1}};t.sparkleContext=(0,i.createContext)(o)},35426:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=n(85893),o=n(67294),a=i(n(4298)),s=n(77041),l=i(n(85399)),u=i(n(58436)),d=(e,t)=>(0,r.jsx)(a.default,{id:"sparkle-init",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:`
+ window.Sparkle.cmd.push(function(){
+ var lang = document.documentElement.lang || "en";
+ var options = ${JSON.stringify(e)}
+ window.Sparkle.init({ ...options, adBlockerShouldBeBlocked: lang !== "ja" });
+ });
+ `},type:t||"text/javascript"});t.default=function(e){let{children:t,debug:n,initFn:i=d,type:a="text/javascript"}=e,[c,p]=(0,o.useState)(null),{contextValue:h,options:m}=(0,u.default)(e,c,!1);return(0,l.default)(n,c),(0,o.useEffect)(()=>{window.Sparkle.cmd.push(()=>{p(window.Sparkle)})},[]),(0,r.jsxs)(r.Fragment,{children:[i(m,a),(0,r.jsx)(s.sparkleContext.Provider,{value:h,children:t})]})}},93064:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.constructAdOptions=t.constructDecoupleAdOptions=void 0;let r=i(n(94962)),o=n(71730);t.constructDecoupleAdOptions=function(e,t){return(0,r.default)({disableAds:t.disableAds,adCode:t.defaultAdCode,isDecoupled:!0},e)},t.constructAdOptions=function(e,t){return(0,r.default)({disableAds:t.disableAds,adCode:t.defaultAdCode},{targeting:{url:window.location.pathname,...function(e){let{userInfo:t}=e;return(null==t?void 0:t.isTerminalSubscriber)?{subscriber:"term"}:(null==t?void 0:t.isBBGSubscriber)?{subscriber:"yes"}:{subscriber:"no"}}(t.userState)}},{targetingModifiers:[o.querystringModifier]},e)}},71730:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.querystringModifier=void 0,t.querystringModifier=function(e){let t=new URLSearchParams(window.location.search),n={};for(let[e,i]of t.entries())n[e]=i;return{...e,...n}}},85399:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(67294);t.default=(e=!1,t)=>{(0,i.useEffect)(()=>{let n=new URLSearchParams(window.location.search),i=e||!!n.get("debugAds");t&&i&&t.showDebugInformationOnRender()},[t])}},45092:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=n(67294),o=i(n(85252));t.default=(e,t)=>{let{refreshInterval:n,changeCorrelator:i=!1}=e||{},{sparkle:a}=(0,o.default)(),[s,l]=(0,r.useState)();(0,r.useEffect)(()=>(a&&t&&n&&(clearInterval(s),l(window.setInterval(()=>{a.refresh([t],{changeCorrelator:i})},n))),()=>{clearInterval(s)}),[a,t,n,i])}},85252:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(67294),r=n(77041);t.default=function(){let e=(0,i.useContext)(r.sparkleContext);if(void 0===e)throw Error("useSparkle must be used within a SparkleProvider");return e}},58436:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_BREAKPOINTS=void 0;let r=n(67294),o=n(77041),a=i(n(63982));t.DEFAULT_BREAKPOINTS={mobile:0,tablet:760,small_desktop:1020,large_desktop:1280},t.default=(e,n,i=!0)=>{let[s,l]=(0,r.useState)("en"),[u,d]=(0,r.useState)(!i),{disableAds:c=!1,sparkleInitOptions:p,defaultAdCode:h,userStateTimeoutInMs:m}=e,f=(0,a.default)(m),g=(0,r.useMemo)(()=>({networkCode:o.DEFAULT_NETWORK_CODE,breakpoints:t.DEFAULT_BREAKPOINTS,adBlockerShouldBeBlocked:"ja"!==s,...p}),[s,p]),v=(0,r.useMemo)(()=>({language:s,sparkleInitOptions:g,sparkle:n,disableAds:c,defaultAdCode:h,userState:f}),[s,g,n,c,h,f]);return(0,r.useEffect)(()=>{l(document.documentElement.lang||"en")},[]),(0,r.useEffect)(()=>{n&&(!u&&i?(n.init(g),d(!0)):g.pageTargeting&&n.addPageTargeting(g.pageTargeting))},[n,g,i]),{contextValue:v,options:g}}},63982:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(67294),r=n(59628);t.default=(e=500)=>{let[t,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(),s=(0,r.useRegUIClient)();return(0,i.useEffect)(()=>(a(setTimeout(()=>n(!0),e)),()=>clearTimeout(o)),[]),(0,i.useEffect)(()=>{var e;!t&&(null===(e=s.session)||void 0===e?void 0:e.isRegUIClientLoaded)&&n(!0)},[s.session]),(0,i.useMemo)(()=>({isLoaded:t,userInfo:t&&s.client?{isTerminalSubscriber:s.client.isTerminalSubscriber(),isBBGSubscriber:s.client.isBBGSubscriber()}:void 0}),[t,s.client])}},94962:function(e,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var i,r=0,o=t.length;rt||o>e&&a=t&&s>=n?o-e-i:a>t&&sn?a-t+r:0}n(59864);var d=function(e,t){var n=window,i=t.scrollMode,r=t.block,o=t.inline,s=t.boundary,d=t.skipOverflowHiddenElements,c="function"==typeof s?s:function(e){return e!==s};if(!a(e))throw TypeError("Invalid target");for(var p,h,m=document.scrollingElement||document.documentElement,f=[],g=e;a(g)&&c(g);){if((g=null==(h=(p=g).parentElement)?p.getRootNode().host||null:h)===m){f.push(g);break}null!=g&&g===document.body&&l(g)&&!l(document.documentElement)||null!=g&&l(g,d)&&f.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,b=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,I=window.scrollY||pageYOffset,w=e.getBoundingClientRect(),S=w.height,k=w.width,x=w.top,E=w.right,O=w.bottom,_=w.left,D="start"===r||"nearest"===r?x:"end"===r?O:x+S/2,C="center"===o?_+k/2:"end"===o?E:_,A=[],M=0;M=0&&_>=0&&O<=b&&E<=v&&x>=B&&O<=H&&_>=j&&E<=L)break;var W=getComputedStyle(P),K=parseInt(W.borderLeftWidth,10),F=parseInt(W.borderTopWidth,10),V=parseInt(W.borderRightWidth,10),U=parseInt(W.borderBottomWidth,10),$=0,G=0,Y="offsetWidth"in P?P.offsetWidth-P.clientWidth-K-V:0,q="offsetHeight"in P?P.offsetHeight-P.clientHeight-F-U:0,z="offsetWidth"in P?0===P.offsetWidth?0:N/P.offsetWidth:0,X="offsetHeight"in P?0===P.offsetHeight?0:R/P.offsetHeight:0;if(m===P)$="start"===r?D:"end"===r?D-b:"nearest"===r?u(I,I+b,b,F,U,I+D,I+D+S,S):D-b/2,G="start"===o?C:"center"===o?C-v/2:"end"===o?C-v:u(y,y+v,v,K,V,y+C,y+C+k,k),$=Math.max(0,$+I),G=Math.max(0,G+y);else{$="start"===r?D-B-F:"end"===r?D-H+U+q:"nearest"===r?u(B,H,R,F,U+q,D,D+S,S):D-(B+R/2)+q/2,G="start"===o?C-j-K:"center"===o?C-(j+N/2)+Y/2:"end"===o?C-L+V+Y:u(j,L,N,K,V+Y,C,C+k,k);var Q=P.scrollLeft,J=P.scrollTop;D+=J-($=Math.max(0,Math.min(J+$/X,P.scrollHeight-R/X+q))),C+=Q-(G=Math.max(0,Math.min(Q+G/z,P.scrollWidth-N/z+Y)))}A.push({el:P,top:$,left:G})}return A},c=n(97582);let p=0;function h(e){return"function"==typeof e?e:m}function m(){}function f(e,t){e&&d(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach(e=>{let{el:t,top:n,left:i}=e;t.scrollTop=n,t.scrollLeft=i})}function g(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function v(e,t){let n;function i(){n&&clearTimeout(n)}function r(){for(var r=arguments.length,o=Array(r),a=0;a{n=null,e(...o)},t)}return r.cancel=i,r}function b(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),r=1;r(t&&t(e,...i),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault))}}function y(){for(var e=arguments.length,t=Array(e),n=0;n{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})}}function I(){return String(p++)}function w(e){let{isOpen:t,resultCount:n,previousResultCount:i}=e;return t?n?n!==i?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function S(e,t){return(e=Array.isArray(e)?e[0]:e)||!t?e:t}let k=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function x(e){void 0===e&&(e={});let t={};return k.forEach(n=>{e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function E(e,t){return Object.keys(e).reduce((n,i)=>(n[i]=O(t,i)?t[i]:e[i],n),{})}function O(e,t){return void 0!==e[t]}function _(e){let{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function D(e,t,n,i,r){if(void 0===r&&(r=!0),0===n)return -1;let o=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);let a=t+e;a<0?a=r?o:0:a>o&&(a=r?0:o);let s=C(e,a,n,i,r);return -1===s?t>=n?-1:t:s}function C(e,t,n,i,r){let o=i(t);if(!o||!o.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e=0;e--)if(!i(e).hasAttribute("disabled"))return e;return r?e>0?C(1,0,n,i,!1):C(-1,n-1,n,i,!1):-1}function A(e,t,n,i){return void 0===i&&(i=!0),t.some(t=>t&&(g(t,e,n)||i&&g(t,n.document.activeElement,n)))}let M=v(e=>{T(e).textContent=""},500);function P(e,t){let n=T(t);e&&(n.textContent=e,M(t))}function T(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t)),t}var R=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),N=(()=>{class e extends o.Component{constructor(e){var t;super(e),t=this,this.id=this.props.id||`downshift-${I()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(e=>`${this.id}-item-${e}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(e,t)=>{let n=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(e=>e!==n),e()},t);this.timeoutIds.push(n)},this.setItemCount=e=>{this.itemCount=e},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(e,n){void 0===e&&(e=t.props.defaultHighlightedIndex),void 0===n&&(n={}),n=x(n),t.internalSetState({highlightedIndex:e,...n})},this.clearSelection=e=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},e)},this.selectItem=(e,t,n)=>{t=x(t),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:e,inputValue:this.props.itemToString(e),...t},n)},this.selectItemAtIndex=(e,t,n)=>{let i=this.items[e];null!=i&&this.selectItem(i,t,n)},this.selectHighlightedItem=(e,t)=>this.selectItemAtIndex(this.getState().highlightedIndex,e,t),this.internalSetState=(e,t)=>{let n,i;let r={},o="function"==typeof e;return!o&&e.hasOwnProperty("inputValue")&&this.props.onInputValueChange(e.inputValue,{...this.getStateAndHelpers(),...e}),this.setState(t=>{t=this.getState(t);let a=o?e(t):e;n=(a=this.props.stateReducer(t,a)).hasOwnProperty("selectedItem");let s={};return n&&a.selectedItem!==t.selectedItem&&(i=a.selectedItem),a.type=a.type||0,Object.keys(a).forEach(e=>{t[e]!==a[e]&&(r[e]=a[e]),"type"!==e&&(a[e],O(this.props,e)||(s[e]=a[e]))}),o&&a.hasOwnProperty("inputValue")&&this.props.onInputValueChange(a.inputValue,{...this.getStateAndHelpers(),...a}),s},()=>{h(t)(),Object.keys(r).length>1&&this.props.onStateChange(r,this.getStateAndHelpers()),n&&this.props.onSelect(e.selectedItem,this.getStateAndHelpers()),void 0!==i&&this.props.onChange(i,this.getStateAndHelpers()),this.props.onUserAction(r,this.getStateAndHelpers())})},this.rootRef=e=>this._rootNode=e,this.getRootProps=function(e,n){let{refKey:i="ref",ref:r,...o}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===n?{}:n;t.getRootProps.called=!0,t.getRootProps.refKey=i,t.getRootProps.suppressRefError=a;let{isOpen:s}=t.getState();return{[i]:y(r,t.rootRef),role:"combobox","aria-expanded":s,"aria-haspopup":"listbox","aria-owns":s?t.menuId:null,"aria-labelledby":t.labelId,...o}},this.keyDownHandlers={ArrowDown(e){if(e.preventDefault(),this.getState().isOpen){let t=e.shiftKey?5:1;this.moveHighlightedIndex(t,{type:4})}else this.internalSetState({isOpen:!0,type:4},()=>{let e=this.getItemCount();if(e>0){let{highlightedIndex:t}=this.getState(),n=D(1,t,e,e=>this.getItemNodeFromIndex(e));this.setHighlightedIndex(n,{type:4})}})},ArrowUp(e){if(e.preventDefault(),this.getState().isOpen){let t=e.shiftKey?-5:-1;this.moveHighlightedIndex(t,{type:3})}else this.internalSetState({isOpen:!0,type:3},()=>{let e=this.getItemCount();if(e>0){let{highlightedIndex:t}=this.getState(),n=D(-1,t,e,e=>this.getItemNodeFromIndex(e));this.setHighlightedIndex(n,{type:3})}})},Enter(e){if(229===e.which)return;let{isOpen:t,highlightedIndex:n}=this.getState();if(t&&null!=n){e.preventDefault();let t=this.items[n],i=this.getItemNodeFromIndex(n);if(null==t||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape(e){e.preventDefault(),this.reset({type:5,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(e){e.preventDefault(),this.toggleMenu({type:12})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(e){let{isOpen:t}=this.getState();if(!t)return;e.preventDefault();let n=this.getItemCount();if(n<=0||!t)return;let i=C(1,0,n,e=>this.getItemNodeFromIndex(e),!1);this.setHighlightedIndex(i,{type:7})},End(e){let{isOpen:t}=this.getState();if(!t)return;e.preventDefault();let n=this.getItemCount();if(n<=0||!t)return;let i=C(-1,n-1,n,e=>this.getItemNodeFromIndex(e),!1);this.setHighlightedIndex(i,{type:8})}},this.getToggleButtonProps=function(e){let{onClick:n,onPress:i,onKeyDown:r,onKeyUp:o,onBlur:a,...s}=void 0===e?{}:e,{isOpen:l}=t.getState(),u={onClick:b(n,t.buttonHandleClick),onKeyDown:b(r,t.buttonHandleKeyDown),onKeyUp:b(o,t.buttonHandleKeyUp),onBlur:b(a,t.buttonHandleBlur)};return{type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...s.disabled?{}:u,...s}},this.buttonHandleKeyUp=e=>{e.preventDefault()},this.buttonHandleKeyDown=e=>{let t=_(e);this.buttonKeyDownHandlers[t]&&this.buttonKeyDownHandlers[t].call(this,e)},this.buttonHandleClick=e=>{e.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&e.target.focus(),this.internalSetTimeout(()=>this.toggleMenu({type:13}))},this.buttonHandleBlur=e=>{let t=e.target;this.internalSetTimeout(()=>{this.isMouseDown||null!=this.props.environment.document.activeElement&&this.props.environment.document.activeElement.id===this.inputId||this.props.environment.document.activeElement===t||this.reset({type:14})})},this.getLabelProps=e=>({htmlFor:this.inputId,id:this.labelId,...e}),this.getInputProps=function(e){let n,{onKeyDown:i,onBlur:r,onChange:o,onInput:a,onChangeText:s,...l}=void 0===e?{}:e,u={};n="onChange";let{inputValue:d,isOpen:c,highlightedIndex:p}=t.getState();return l.disabled||(u={[n]:b(o,a,t.inputHandleChange),onKeyDown:b(i,t.inputHandleKeyDown),onBlur:b(r,t.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":c&&"number"==typeof p&&p>=0?t.getItemId(p):null,"aria-controls":c?t.menuId:null,"aria-labelledby":t.labelId,autoComplete:"off",value:d,id:t.inputId,...u,...l}},this.inputHandleKeyDown=e=>{let t=_(e);t&&this.inputKeyDownHandlers[t]&&this.inputKeyDownHandlers[t].call(this,e)},this.inputHandleChange=e=>{this.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout(()=>{let e=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);this.isMouseDown||e||this.reset({type:10})})},this.menuRef=e=>{this._menuNode=e},this.getMenuProps=function(e,n){let{refKey:i="ref",ref:r,...o}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===n?{}:n;return t.getMenuProps.called=!0,t.getMenuProps.refKey=i,t.getMenuProps.suppressRefError=a,{[i]:y(r,t.menuRef),role:"listbox","aria-labelledby":o&&o["aria-label"]?null:t.labelId,id:t.menuId,...o}},this.getItemProps=function(e){let{onMouseMove:n,onMouseDown:i,onClick:r,onPress:o,index:a,item:s,...l}=void 0===e?{}:e;void 0===a?(t.items.push(s),a=t.items.indexOf(s)):t.items[a]=s;let u={onMouseMove:b(n,()=>{a!==t.getState().highlightedIndex&&(t.setHighlightedIndex(a,{type:2}),t.avoidScrolling=!0,t.internalSetTimeout(()=>t.avoidScrolling=!1,250))}),onMouseDown:b(i,e=>{e.preventDefault()}),onClick:b(r,()=>{t.selectItemAtIndex(a,{type:9})})},d=l.disabled?{onMouseDown:u.onMouseDown}:u;return{id:t.getItemId(a),role:"option","aria-selected":t.getState().highlightedIndex===a,...d,...l}},this.clearItems=()=>{this.items=[]},this.reset=function(e,n){void 0===e&&(e={}),e=x(e),t.internalSetState(n=>{let{selectedItem:i}=n;return{isOpen:t.props.defaultIsOpen,highlightedIndex:t.props.defaultHighlightedIndex,inputValue:t.props.itemToString(i),...e}},n)},this.toggleMenu=function(e,n){void 0===e&&(e={}),e=x(e),t.internalSetState(n=>{let{isOpen:i}=n;return{isOpen:!i,...i&&{highlightedIndex:t.props.defaultHighlightedIndex},...e}},()=>{let{isOpen:i,highlightedIndex:r}=t.getState();i&&t.getItemCount()>0&&"number"==typeof r&&t.setHighlightedIndex(r,e),h(n)()})},this.openMenu=e=>{this.internalSetState({isOpen:!0},e)},this.closeMenu=e=>{this.internalSetState({isOpen:!1},e)},this.updateStatus=v(()=>{let e=this.getState(),t=this.items[e.highlightedIndex],n=this.getItemCount(),i=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:n,highlightedItem:t,...e});this.previousResultCount=n,P(i,this.props.environment.document)},200);let{defaultHighlightedIndex:n,initialHighlightedIndex:i=n,defaultIsOpen:r,initialIsOpen:o=r,initialInputValue:a="",initialSelectedItem:s=null}=this.props,l=this.getState({highlightedIndex:i,isOpen:o,inputValue:a,selectedItem:s});null!=l.selectedItem&&void 0===this.props.initialInputValue&&(l.inputValue=this.props.itemToString(l.selectedItem)),this.state=l}internalClearTimeouts(){this.timeoutIds.forEach(e=>{clearTimeout(e)}),this.timeoutIds=[]}getState(e){return void 0===e&&(e=this.state),E(e,this.props)}getItemCount(){let e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e}getItemNodeFromIndex(e){return this.props.environment.document.getElementById(this.getItemId(e))}scrollHighlightedItemIntoView(){{let e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)}}moveHighlightedIndex(e,t){let n=this.getItemCount(),{highlightedIndex:i}=this.getState();if(n>0){let r=D(e,i,n,e=>this.getItemNodeFromIndex(e));this.setHighlightedIndex(r,t)}}getStateAndHelpers(){let{highlightedIndex:e,inputValue:t,selectedItem:n,isOpen:i}=this.getState(),{itemToString:r}=this.props,{id:o}=this,{getRootProps:a,getToggleButtonProps:s,getLabelProps:l,getMenuProps:u,getInputProps:d,getItemProps:c,openMenu:p,closeMenu:h,toggleMenu:m,selectItem:f,selectItemAtIndex:g,selectHighlightedItem:v,setHighlightedIndex:b,clearSelection:y,clearItems:I,reset:w,setItemCount:S,unsetItemCount:k,internalSetState:x}=this;return{getRootProps:a,getToggleButtonProps:s,getLabelProps:l,getMenuProps:u,getInputProps:d,getItemProps:c,reset:w,openMenu:p,closeMenu:h,toggleMenu:m,selectItem:f,selectItemAtIndex:g,selectHighlightedItem:v,setHighlightedIndex:b,clearSelection:y,clearItems:I,setItemCount:S,unsetItemCount:k,setState:x,itemToString:r,id:o,highlightedIndex:e,inputValue:t,isOpen:i,selectedItem:n}}componentDidMount(){{let e=()=>{this.isMouseDown=!0},t=e=>{this.isMouseDown=!1,!A(e.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:1},()=>this.props.onOuterClick(this.getStateAndHelpers()))},n=()=>{this.isTouchMove=!1},i=()=>{this.isTouchMove=!0},r=e=>{let t=A(e.target,[this._rootNode,this._menuNode],this.props.environment,!1);this.isTouchMove||t||!this.getState().isOpen||this.reset({type:16},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:o}=this.props;o.addEventListener("mousedown",e),o.addEventListener("mouseup",t),o.addEventListener("touchstart",n),o.addEventListener("touchmove",i),o.addEventListener("touchend",r),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),o.removeEventListener("mousedown",e),o.removeEventListener("mouseup",t),o.removeEventListener("touchstart",n),o.removeEventListener("touchmove",i),o.removeEventListener("touchend",r)}}}shouldScroll(e,t){let{highlightedIndex:n}=void 0===this.props.highlightedIndex?this.getState():this.props,{highlightedIndex:i}=void 0===t.highlightedIndex?e:t;return n&&this.getState().isOpen&&!e.isOpen||n!==i}componentDidUpdate(e,t){O(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){let e=S(this.props.children,m);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;let t=S(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:"string"==typeof t.type?(0,o.cloneElement)(t,this.getRootProps(t.props)):void 0:null}}return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:w,itemToString:e=>null==e?"":String(e),onStateChange:m,onInputValueChange:m,onUserAction:m,onChange:m,onSelect:m,onOuterClick:m,selectedItemChanged:(e,t)=>e!==t,environment:"undefined"==typeof window?{}:window,stateReducer:(e,t)=>t,suppressRefError:!1,scrollIntoView:f},e.stateChangeTypes=R,e})();let B={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""},L=v((e,t)=>{P(e(),t)},200),H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;function j(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function W(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function K(e){let t=(0,o.useRef)(e);return t.current=e,t}let F={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){let{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:f,environment:"undefined"==typeof window?{}:window};function V(e,t,n){void 0===n&&(n=B);let i=e[`default${W(t)}`];return void 0!==i?i:n[t]}function U(e,t,n){void 0===n&&(n=B);let i=e[t];if(void 0!==i)return i;let r=e[`initial${W(t)}`];return void 0!==r?r:V(e,t,n)}function $(e,t,n){let{items:i,initialHighlightedIndex:r,defaultHighlightedIndex:o}=e,{selectedItem:a,highlightedIndex:s}=t;return 0===i.length?-1:void 0!==r&&s===r?r:void 0!==o?o:a?i.indexOf(a):0===n?-1:n<0?i.length-1:0}let G=()=>m;function Y(e,t,n){let{isInitialMount:i,highlightedIndex:r,items:a,environment:s,...l}=n;(0,o.useEffect)(()=>{i||L(()=>e({highlightedIndex:r,highlightedItem:a[r],resultCount:a.length,...l}),s.document)},t)}function q(e,t,n){let i;let{type:r,props:o}=t;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:$(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:$(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:V(o,"highlightedIndex"),isOpen:V(o,"isOpen"),selectedItem:V(o,"selectedItem"),inputValue:V(o,"inputValue")};break;default:throw Error("Reducer called without proper action type.")}return{...e,...i}}r().array.isRequired,r().func,r().func,r().func,r().number,r().number,r().number,r().bool,r().bool,r().bool,r().any,r().any,r().any,r().string,r().string,r().string,r().func,r().string,r().func,r().func,r().func,r().func,r().func,r().shape({addEventListener:r().func,removeEventListener:r().func,document:r().shape({getElementById:r().func,activeElement:r().any,body:r().any})});var z=(0,c.pi)((0,c.pi)({},F),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,i=e.previousResultCount;return t?n?n!==i?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),X=Object.freeze({__proto__:null,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:1,ToggleButtonKeyDownArrowUp:2,ToggleButtonKeyDownCharacter:3,ToggleButtonKeyDownEscape:4,ToggleButtonKeyDownHome:5,ToggleButtonKeyDownEnd:6,ToggleButtonKeyDownEnter:7,ToggleButtonKeyDownSpaceButton:8,ToggleButtonKeyDownPageUp:9,ToggleButtonKeyDownPageDown:10,ToggleButtonBlur:11,MenuMouseLeave:12,ItemMouseMove:13,ItemClick:14,FunctionToggleMenu:15,FunctionOpenMenu:16,FunctionCloseMenu:17,FunctionSetHighlightedIndex:18,FunctionSelectItem:19,FunctionSetInputValue:20,FunctionReset:21});function Q(e,t){let n;let{type:i,props:r,altKey:o}=t;switch(i){case 14:n={isOpen:V(r,"isOpen"),highlightedIndex:V(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case 3:{let i=t.key,o=`${e.inputValue}${i}`,a=function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,i=e.items,r=e.itemToString,o=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s=0&&{selectedItem:r.items[e.highlightedIndex]}}:{highlightedIndex:e.isOpen?D(-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1):$(r,e,-1),isOpen:!0};break;case 7:case 8:n={isOpen:V(r,"isOpen"),highlightedIndex:V(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case 5:n={highlightedIndex:C(1,0,r.items.length,t.getItemNodeFromIndex,!1),isOpen:!0};break;case 6:n={highlightedIndex:C(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1),isOpen:!0};break;case 9:n={highlightedIndex:D(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case 10:n={highlightedIndex:D(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={isOpen:!1,highlightedIndex:-1};break;case 11:n={isOpen:!1,highlightedIndex:-1,...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case 19:n={selectedItem:t.selectedItem};break;default:return q(e,t,X)}return{...e,...n}}function J(e){void 0===e&&(e={});let t={...z,...e},{items:n,scrollIntoView:i,environment:r,itemToString:a,getA11ySelectionMessage:s,getA11yStatusMessage:l}=t,[u,d]=function(e,t,n){let[i,r]=function(e,t,n){let i=(0,o.useRef)(),r=(0,o.useRef)(),a=(0,o.useCallback)((t,n)=>{r.current=n;let i=e(t=E(t,n.props),n);return n.props.stateReducer(t,{...n,changes:i})},[e]),[s,l]=(0,o.useReducer)(a,t),u=K(n),d=(0,o.useCallback)(e=>l({props:u.current,...e}),[u]),c=r.current;return(0,o.useEffect)(()=>{c&&i.current&&i.current!==s&&function(e,t,n){let{props:i,type:r}=e,o={};Object.keys(t).forEach(i=>{(function(e,t,n,i){let{props:r,type:o}=t,a=`on${W(e)}Change`;r[a]&&void 0!==i[e]&&i[e]!==n[e]&&r[a]({type:o,...i})})(i,e,t,n),n[i]!==t[i]&&(o[i]=n[i])}),i.onStateChange&&Object.keys(o).length&&i.onStateChange({type:r,...o})}(c,E(i.current,c.props),s),i.current=s},[s,n,c]),[s,d]}(e,t,n);return[E(i,n),r]}(Q,function(e){let t=U(e,"selectedItem"),n=U(e,"isOpen"),i=U(e,"highlightedIndex"),r=U(e,"inputValue");return{highlightedIndex:i<0&&t&&n?e.items.indexOf(t):i,isOpen:n,selectedItem:t,inputValue:r}}(t),t),{isOpen:c,highlightedIndex:p,selectedItem:h,inputValue:m}=u,f=(0,o.useRef)(null),g=(0,o.useRef)(null),w=(0,o.useRef)({}),S=(0,o.useRef)(null),k=function(e){let{id:t=`downshift-${I()}`,labelId:n,menuId:i,getItemId:r,toggleButtonId:a,inputId:s}=e;return(0,o.useRef)({labelId:n||`${t}-label`,menuId:i||`${t}-menu`,getItemId:r||(e=>`${t}-item-${e}`),toggleButtonId:a||`${t}-toggle-button`,inputId:s||`${t}-input`}).current}(t),x=(0,o.useRef)(),O=(0,o.useRef)(!0),D=K({state:u,props:t}),C=(0,o.useCallback)(e=>w.current[k.getItemId(e)],[k]);Y(l,[c,p,m,n],{isInitialMount:O.current,previousResultCount:x.current,items:n,environment:r,itemToString:a,...u}),Y(s,[h],{isInitialMount:O.current,previousResultCount:x.current,items:n,environment:r,itemToString:a,...u});let M=function(e){let{highlightedIndex:t,isOpen:n,itemRefs:i,getItemNodeFromIndex:r,menuElement:a,scrollIntoView:s}=e,l=(0,o.useRef)(!0);return H(()=>{!(t<0)&&n&&Object.keys(i.current).length&&(!1===l.current?l.current=!0:s(r(t),a))},[t]),l}({menuElement:g.current,highlightedIndex:p,isOpen:c,itemRefs:w,scrollIntoView:i,getItemNodeFromIndex:C});(0,o.useEffect)(()=>(S.current=v(e=>{e({type:20,inputValue:""})},500),()=>{S.current.cancel()}),[]),(0,o.useEffect)(()=>{m&&S.current(d)},[d,m]),O.current,(0,o.useEffect)(()=>{O.current||(x.current=n.length)});let P=function(e,t,n,i){let r=(0,o.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,o.useEffect)(()=>{let o=()=>{r.current.isMouseDown=!0},a=o=>{r.current.isMouseDown=!1,e&&!A(o.target,t.map(e=>e.current),n)&&i()},s=()=>{r.current.isTouchMove=!1},l=()=>{r.current.isTouchMove=!0},u=o=>{!e||r.current.isTouchMove||A(o.target,t.map(e=>e.current),n,!1)||i()};return n.addEventListener("mousedown",o),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",o),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",u)}},[e,n]),r}(c,[g,f],r,()=>{d({type:11})}),T=G("getMenuProps","getToggleButtonProps");(0,o.useEffect)(()=>(O.current=!1,()=>{O.current=!0}),[]),(0,o.useEffect)(()=>{c||(w.current={})},[c]);let R=(0,o.useMemo)(()=>({ArrowDown(e){e.preventDefault(),d({type:1,getItemNodeFromIndex:C,altKey:e.altKey})},ArrowUp(e){e.preventDefault(),d({type:2,getItemNodeFromIndex:C,altKey:e.altKey})},Home(e){e.preventDefault(),d({type:5,getItemNodeFromIndex:C})},End(e){e.preventDefault(),d({type:6,getItemNodeFromIndex:C})},Escape(){D.current.state.isOpen&&d({type:4})},Enter(e){e.preventDefault(),d({type:D.current.state.isOpen?7:0})},PageUp(e){D.current.state.isOpen&&(e.preventDefault(),d({type:9,getItemNodeFromIndex:C}))},PageDown(e){D.current.state.isOpen&&(e.preventDefault(),d({type:10,getItemNodeFromIndex:C}))}," "(e){e.preventDefault(),d({type:D.current.state.isOpen?8:0})}}),[d,C,D]),N=(0,o.useCallback)(()=>{d({type:15})},[d]),B=(0,o.useCallback)(()=>{d({type:17})},[d]),L=(0,o.useCallback)(()=>{d({type:16})},[d]),F=(0,o.useCallback)(e=>{d({type:18,highlightedIndex:e})},[d]),V=(0,o.useCallback)(e=>{d({type:19,selectedItem:e})},[d]),$=(0,o.useCallback)(()=>{d({type:21})},[d]),q=(0,o.useCallback)(e=>{d({type:20,inputValue:e})},[d]),X=(0,o.useCallback)(e=>({id:k.labelId,htmlFor:k.toggleButtonId,...e}),[k]),J=(0,o.useCallback)(function(e,t){let{onMouseLeave:n,refKey:i="ref",onKeyDown:r,onBlur:o,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;return T("getMenuProps",l,i,g),{[i]:y(a,e=>{g.current=e}),id:k.menuId,role:"listbox","aria-labelledby":k.labelId,tabIndex:-1,onMouseLeave:b(n,()=>{d({type:12})}),...s}},[d,T,k]);return{getToggleButtonProps:(0,o.useCallback)(function(e,t){let{onBlur:n,onClick:i,onKeyDown:r,refKey:o="ref",ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t,u=D.current.state,c={[o]:y(a,e=>{f.current=e}),"aria-activedescendant":u.isOpen&&u.highlightedIndex>-1?k.getItemId(u.highlightedIndex):"","aria-controls":k.menuId,"aria-expanded":D.current.state.isOpen,"aria-haspopup":"listbox","aria-labelledby":`${k.labelId}`,id:k.toggleButtonId,role:"combobox",tabIndex:0,onBlur:b(n,()=>{u.isOpen&&!P.current.isMouseDown&&d({type:11})}),...s};return s.disabled||(c.onClick=b(i,()=>{d({type:0})}),c.onKeyDown=b(r,e=>{let t=_(e);t&&R[t]?R[t](e):/^\S{1}$/.test(t)&&d({type:3,key:t,getItemNodeFromIndex:C})})),T("getToggleButtonProps",l,o,f),c},[D,k,T,d,P,R,C]),getLabelProps:X,getMenuProps:J,getItemProps:(0,o.useCallback)(function(e){let{item:t,index:i,onMouseMove:r,onClick:o,refKey:a="ref",ref:s,disabled:l,...u}=void 0===e?{}:e,{state:c,props:p}=D.current,m=t??n[i],f=j(i,m,p.items),g=j(f,m,p.items);if(g<0)throw Error("Pass either item or item index in getItemProps!");let v={disabled:l,role:"option","aria-selected":`${m===h}`,id:k.getItemId(g),[a]:y(s,e=>{e&&(w.current[k.getItemId(g)]=e)}),...u};return l||(v.onClick=b(o,()=>{d({type:14,index:f})})),v.onMouseMove=b(r,()=>{f!==c.highlightedIndex&&(M.current=!1,d({type:13,index:f,disabled:l}))}),v},[D,n,h,k,M,d]),toggleMenu:N,openMenu:L,closeMenu:B,setHighlightedIndex:F,selectItem:V,reset:$,setInputValue:q,highlightedIndex:p,isOpen:c,selectedItem:h,inputValue:m}}J.stateChangeTypes=X;var Z=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownPageUp:5,InputKeyDownPageDown:6,InputKeyDownEnter:7,InputChange:8,InputBlur:9,InputFocus:10,MenuMouseLeave:11,ItemMouseMove:12,ItemClick:13,ToggleButtonClick:14,FunctionToggleMenu:15,FunctionOpenMenu:16,FunctionCloseMenu:17,FunctionSetHighlightedIndex:18,FunctionSelectItem:19,FunctionSetInputValue:20,FunctionReset:21,ControlledPropUpdatedSelectedItem:22});r().array.isRequired,r().func,r().func,r().func,r().number,r().number,r().number,r().bool,r().bool,r().bool,r().any,r().any,r().any,r().string,r().string,r().string,r().string,r().string,r().string,r().func,r().string,r().string,r().func,r().func,r().func,r().func,r().func,r().func,r().shape({addEventListener:r().func,removeEventListener:r().func,document:r().shape({getElementById:r().func,activeElement:r().any,body:r().any})});let ee={activeIndex:-1,selectedItems:[]};r().array,r().array,r().array,r().func,r().func,r().func,r().number,r().number,r().number,r().func,r().func,r().string,r().string,r().shape({addEventListener:r().func,removeEventListener:r().func,document:r().shape({getElementById:r().func,activeElement:r().any,body:r().any})}),F.itemToString,F.stateReducer,F.environment},68187:function(e,t,n){"use strict";n.d(t,{r:function(){return A}});var i=n(67294),r=n(25434),o=n(77536),a=n(76795),s=n(36257),l=n.n(s),u=n(75186),d=n.n(u);let c=e=>{let[t,n]=(0,i.useState)(),[r,o]=(0,i.useState)(),[a,s]=(0,i.useState)("rendering");return{adRendered:t,sizeRendered:r,onAdRender:t=>{var i,r;n(t),o(null===(i=t.getSlotRenderedEvent())||void 0===i?void 0:i.getSize().join("x")),s("rendered"),null===(r=e.onAdRender)||void 0===r||r.call(e,t)},adStatus:a,onEmptyRender:()=>{var t;s("empty"),null===(t=e.onEmptyRender)||void 0===t||t.call(e)}}},p=(e,t,n)=>[e,t,n].filter(Boolean).join("-"),h=(e,t)=>"".concat(e).concat(t||""),m=e=>({strategy:"always",dimensions:{all:[[5,16]],large_desktop:[[970,250]],small_desktop:[[970,250]],tablet:[[320,50],[300,50]],mobile:[[320,50],[300,50]]},targeting:{position:h("leaderboard",e)}}),f=e=>({dimensions:{all:[[5,16],[5,5]],large_desktop:[[970,250]],small_desktop:[[970,250]],tablet:[[320,50],[300,50]],mobile:[[300,250],[3,3],[5,19]]},targeting:{position:h("immersive",e)}}),g=e=>({dimensions:{large_desktop:[[970,250],[5,16],[5,5]],small_desktop:[[970,250],[5,16],[5,5]]},targeting:{position:h("immersive",e)}}),v=e=>({dimensions:{tablet:[[5,16],[5,5],[320,50],[300,50]]},targeting:{position:h("immersive",e)}}),b=e=>({dimensions:{all:[[300,250],[3,3],[5,16],[5,5],[5,19]]},targeting:{position:h("immersive",e)}}),y=e=>({dimensions:{all:[[300,250],[3,3],[5,24]],large_desktop:[],small_desktop:[],tablet:[[5,11]],mobile:[[3,4]]},targeting:{position:h("in-body",e)}}),I=e=>({dimensions:{all:[[300,250],[3,3]],large_desktop:[],small_desktop:[],mobile:[[5,16],[5,5],[5,19]]},targeting:{position:h("box",e)}}),w=e=>({dimensions:{large_desktop:[[300,250],[3,3]],small_desktop:[[300,250],[3,3]]},targeting:{position:h("box",e)}}),S=e=>({dimensions:{large_desktop:[[300,600],[300,250],[3,3],[3,4]],small_desktop:[[300,600],[300,250],[3,3],[3,4]]},targeting:{position:h("box",e)}}),k=(e,t)=>({dimensions:{all:t?[[100,48]]:[[120,60]]},targeting:{position:h("broker-box",e)}}),x=e=>({dimensions:{all:[[120,60],[240,60]]},targeting:{position:h("combined-broker-box",e)}}),E=()=>({dimensions:{all:[[88,31],[1,1]]},strategy:"always",targeting:{position:h("sponsoredby")}}),O=()=>({dimensions:{all:[[290,62]]},targeting:{position:h("sponsoredby-brand")}}),_=()=>({dimensions:{all:[[3,5]]},targeting:{position:h("quiz")}}),D=(e,t)=>{switch(e){case"leaderboard":return m(t);case"in-body":return y(t);case"box":return I(t);case"box-desktop":return w(t);case"flexbox":return S(t);case"immersive":return f(t);case"immersive-desktop":return g(t);case"immersive-tablet":return v(t);case"immersive-mobile":return b(t);case"broker-box":return k(t);case"combined-broker-box":return x(t);case"broker-box-v2":return k(t,!0);case"sponsoredby":return E();case"sponsoredby-brand":return O();case"quiz":return _();default:return{}}};n(18643);var C={adPlaceholder:"media-ui-BaseAd_adPlaceholder-W4Hid5G045M-",baseAd:"media-ui-BaseAd_baseAd-dXBqvbLRJy0-",rendered:"media-ui-BaseAd_rendered-l1NeSo8x42M-",hideEmptyAd:"media-ui-BaseAd_hideEmptyAd-fxG2spO3FQY-",adHeader:"media-ui-BaseAd_adHeader-wkkvEuosJuI-"};let A=i.forwardRef(function(e,t){let{name:n="BaseAd",showPlaceholder:s=!0,hideEmptyAd:u=!1,positionIncrement:h,adType:m,adOptions:f,unstyled:g,className:v,adHeaderText:b,ariaLabel:y,isDecoupled:I=!1}=e,{adOptions:w}=(0,i.useContext)(a.adOptionsContext),{disableAds:S}=w||{},{sizeRendered:k,onAdRender:x,onEmptyRender:E,adStatus:O}=c(e),[_,A]=(0,i.useState)(""),M=(0,r.f)(n),P=(0,o.Sh)([C.baseAd,{[C.adPlaceholder]:s,[C.rendered]:!!k,[C.hideEmptyAd]:!!u}],{unstyled:g,className:v}),T={disableAds:!_,...D(m,h),...f};return(0,i.useEffect)(()=>{A(p(m,Math.floor(1e5*Math.random()).toString(),h))},[]),S?null:i.createElement("div",{className:P,ref:t,"data-component":M,"data-ad-size":k,"data-ad-status":O,role:"region","aria-label":y||b||"Advertisement","aria-busy":"rendering"===O,"aria-hidden":"empty"===O&&!!u||void 0},b&&i.createElement("div",{className:C.adHeader,"aria-hidden":"true"},b),I&&"leaderboard"===m?i.createElement(l(),{positionIncrement:h,id:_,options:T,onRender:x,onEmpty:E}):i.createElement(d(),{id:_,options:T,onRender:x,onEmpty:E}))})},84533:function(e,t,n){"use strict";n.d(t,{zd:function(){return c}});var i=n(67294),r=n(77536),o=n(76795),a=n(68187);n(25086);var s={fullWidthAd:"media-ui-FullWidthAd_fullWidthAd-waQ2dCOMRb8-",fullWidthAdWrapper:"media-ui-FullWidthAd_fullWidthAdWrapper-fClHZteIk3k-"};let l=i.forwardRef(function(e,t){let{className:n="",name:o="FullWidthAd",isDecoupled:l=!1,...u}=e;return i.createElement(a.r,{ref:t,className:(0,r.Sh)(s.fullWidthAd,{className:n}),name:o,isDecoupled:l,...u})});n(79403);var u={leaderboard:"media-ui-LeaderboardAd_leaderboard-FZL8q-6lUUI-",parallax:"media-ui-LeaderboardAd_parallax-9Z18W54a-Ss-",stickyParallax:"media-ui-LeaderboardAd_stickyParallax-CCvR3mPULtk-",parallaxWrapper:"media-ui-LeaderboardAd_parallaxWrapper-JMVgdxR--aU-",stickyParallaxWrapper:"media-ui-LeaderboardAd_stickyParallaxWrapper-LEpvVekzJzE-",hideEmptyAd:"media-ui-LeaderboardAd_hideEmptyAd-Xl5D-vwsjjM-"};let d=i.forwardRef(function(e,t){let{name:n="LeaderboardAd",className:a,enableParallax:d=!1,enableSticky:c=!1,isDecoupled:p=!1,hideEmptyAd:h=!1,...m}=e,{adOptions:f}=(0,i.useContext)(o.adOptionsContext),{disableAds:g}=f||{};if(g)return null;let v=(0,r.Sh)([s.fullWidthAdWrapper,{[u.hideEmptyAd]:!!h}]);if(d&&c){let e=(0,r.Sh)([u.leaderboard,{[u.stickyParallax]:d&&c},a]);return i.createElement("div",{className:v},i.createElement("div",{className:u.stickyParallaxWrapper,ref:t},i.createElement(l,{name:n,adType:"leaderboard",className:e,ariaLabel:"Leaderboard advertisement",...m,isDecoupled:p})))}let b=(0,r.Sh)([u.leaderboard,{[u.parallax]:d},a]);return i.createElement("div",{className:v,ref:t},i.createElement(l,{name:n,adType:"leaderboard",className:b,ariaLabel:"Leaderboard advertisement",...m,isDecoupled:p}))}),c=i.forwardRef(function(e,t){let{children:n,...r}=e;return i.createElement("div",{ref:t},i.createElement(d,{enableParallax:!0,...r}),i.createElement("div",{className:u.parallaxWrapper},n))})},7029:function(e,t,n){"use strict";n.d(t,{iR:function(){return d}});var i=n(67294),r=n(25434),o=n(77536);n(65520);var a={slider:"media-ui-Slider_slider-ALLO9PcCNsU-",track:"media-ui-Slider_track-AspceFK4VEs-",shadowWrapper:"media-ui-Slider_shadowWrapper-v4WZy1u-KEk-",shadows:"media-ui-Slider_shadows-EQ-OTy-YVEE-",isAtStart:"media-ui-Slider_isAtStart-n0WJnmO946M-",isAtEnd:"media-ui-Slider_isAtEnd-Au5Y27ItS5o-",navigation:"media-ui-Slider_navigation-Yx8NXBaqhDI-",boxShadow:"media-ui-Slider_boxShadow-kvy2WScFGAk-",arrow:"media-ui-Slider_arrow--r5pSh5snEo-"};let s=(e,t)=>{let n=0,i=-1;for(let r=0;r<=t.length;r++){let o=Math.abs(e-t[r]);if((-1===i||o<=i)&&(i=o,n=r),o>i)break}return n},l=(e,t,n)=>{let i=s(e,t);return i+n>=t.length?t[t.length-1]:t[i+n]},u=(e,t,n)=>{let i=s(e,t);return i-n<0?0:t[i-n]},d=i.forwardRef(function(e,t){let{children:n,scrollSize:s=200,trackClick:d,name:c="slider",shadow:p=!0,boxShadow:h=!1,onSliderScroll:m,snapPositions:f,trackRef:g=null}=e,v=(0,r.f)(c),b=i.useRef(null),y=g||b,[I,w]=i.useState(!0),[S,k]=i.useState(!1),x=i.useCallback(e=>{if(y.current){let t=y.current.scrollWidth<=y.current.offsetWidth+Math.round(y.current.scrollLeft),n=0===y.current.scrollLeft;k(t),w(n),m&&!e&&m(y.current.scrollLeft,n,t)}},[w,k]),E=i.useCallback(()=>{x()},[x]);i.useEffect(()=>{let e=(0,o.Ds)(E,250);return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}},[]);let O=i.useCallback(()=>{if(y.current){if(d&&d("arrow-click","arrow-back"),f&&f.length>0){let e=u(y.current.scrollLeft,f,2);(e||0===e)&&y.current.scrollTo({left:e,behavior:"smooth"});return}y.current.scrollBy?y.current.scrollBy({left:-s,behavior:"smooth"}):y.current.scrollLeft-=s}},[d,s,f]),_=i.useCallback(()=>{if(y.current){if(d&&d("arrow-click","arrow-forward"),f&&f.length>0){let e=l(y.current.scrollLeft,f,2);e&&y.current.scrollTo({left:e,behavior:"smooth"});return}y.current.scrollBy?y.current.scrollBy({left:s,behavior:"smooth"}):y.current.scrollLeft+=s}},[d,s,f]);return i.useEffect(()=>{x(!0)},[x,n]),i.createElement("div",{ref:t,className:(0,o.Sh)([a.slider,I&&a.isAtStart,S&&a.isAtEnd,h&&a.boxShadow],e),"data-component":v},i.createElement("div",{className:(0,o.Sh)([a.shadowWrapper,p&&a.shadows])},i.createElement("div",{"data-component":"".concat(v,"-track"),onScroll:E,ref:y,className:a.track},n)),i.createElement("div",{"data-component":"".concat(v,"-navigation"),className:a.navigation},i.createElement("button",{className:a.arrow,type:"button",onClick:O,disabled:I},"Back"),i.createElement("button",{className:a.arrow,type:"button",onClick:_,disabled:S},"Forward")))})},91949:function(e,t,n){"use strict";n.d(t,{K:function(){return p}});var i=n(67294),r=n(73935),o=n(25434),a=n(77536),s=n(67673);n(34407);var l={DropdownButton:"media-ui-DropdownButton_DropdownButton-OoxGX19AQ8M-",leftIcon:"media-ui-DropdownButton_leftIcon-rVySjAuSJtM-",dropdownIcon:"media-ui-DropdownButton_dropdownIcon---0qRNrC5Xc-",text:"media-ui-DropdownButton_text-5quqCVafbwY-"};let u=i.forwardRef(function(e,t){let{icon:n,text:r,name:u="DropdownButton",onClick:d,unstyled:c,id:p,onKeyDown:h,onBlur:m,tabIndex:f,role:g,"aria-controls":v,"aria-labelledby":b,"aria-haspopup":y,isOpen:I}=e,w=(0,o.f)(u),S=(0,a.Sh)([l.DropdownButton],{...e,unstyled:c,name:u});return i.createElement("button",{id:p,className:S,ref:t,"data-component":w,onClick:d,onKeyDown:h,onBlur:m,tabIndex:f,"aria-controls":v,"aria-labelledby":b,"aria-haspopup":y,"aria-label":null!=r?r:"Open","aria-expanded":I,role:g},n&&i.createElement("span",{className:l.leftIcon},n),i.createElement("p",{className:l.text},r),i.createElement("span",{className:l.dropdownIcon},I?i.createElement(s.Kh,null):i.createElement(s._M,null)))});var d=n(58783),c=n(62299);n(71132);let p=i.forwardRef(function(e,t){let{name:n="ButtonDropdown",unstyled:s,onSelect:l,options:p=[],defaultOption:h,className:m,menuPortal:f,icon:g,selectedItemOverride:v}=e,[b,y]=(0,i.useState)(h||p[0]);(0,i.useEffect)(()=>{y(e=>(null==v?void 0:v.value)&&v.value!==(null==e?void 0:e.value)?v:e)},[v]);let I=(0,o.f)(n),w=(0,i.useCallback)(e=>{l(e.selectedItem),y(e.selectedItem)},[l]),S=(0,a.Sh)(["media-ui-ButtonDropdown_wrapper-Ak7eD0bkYuk-",m],{...e,unstyled:s,name:n}),k=(0,i.useCallback)(e=>e.value,[]),x=(0,i.useCallback)((e,t)=>{let{changes:n}=t;return!e.isOpen&&n.isOpen?{...n,highlightedIndex:-1}:n},[]),{isOpen:E,getToggleButtonProps:O,getMenuProps:_,getItemProps:D,highlightedIndex:C}=(0,d.L7)({items:p,itemToString:k,onSelectedItemChange:w,stateReducer:x,selectedItem:b}),A=()=>i.createElement("ul",{"data-component":"".concat(I,"-menu"),className:(0,a.Sh)(["media-ui-ButtonDropdown_menu-nTOQvv7qJHg-",{"media-ui-ButtonDropdown_menu-open-oUemB42IHVo-":E}]),..._()},E&&p.map((e,t)=>i.createElement(c.Q,{key:e.value,...e,...D({item:e,index:t}),isHighlighted:C===t,isSelected:(null==b?void 0:b.value)===e.value}))),{id:M}=O();return i.createElement("div",{"data-component":I,className:S,ref:t},i.createElement(u,{text:(null==b?void 0:b.displayValue)||(null==b?void 0:b.value)||"Unknown",isOpen:E,unstyled:s,...O({id:M,"aria-controls":M,"aria-labelledby":M}),icon:g}),!f&&A(),f&&(0,r.createPortal)(A(),f))})},62299:function(e,t,n){"use strict";n.d(t,{Q:function(){return s}});var i=n(67294),r=n(77536),o=n(70390);n(14322);var a={dropdownOption:"media-ui-DropdownOption_dropdownOption-8s4Fv9s-qOM-",small:"media-ui-DropdownOption_small-nMi0GJ7b6Lo-","item-selected":"media-ui-DropdownOption_item-selected-LnTnDv0Vv84-","item-highlighted":"media-ui-DropdownOption_item-highlighted-uM3hQArkcMY-",empty:"media-ui-DropdownOption_empty-aDJvhKGaN6I-",icon:"media-ui-DropdownOption_icon-3PLtbBvs9vY-",markets:"media-ui-DropdownOption_markets-tsKdErhpG-A-",title:"media-ui-DropdownOption_title-Aua39cq-QcA-",subtitle:"media-ui-DropdownOption_subtitle-5dSEDIr3brc-",item___selected:"media-ui-DropdownOption_item-selected-LnTnDv0Vv84-",item___highlighted:"media-ui-DropdownOption_item-highlighted-uM3hQArkcMY-"};let s=i.forwardRef(function(e,t){let{variant:n="default",size:s="default",isSelected:l,isHighlighted:u,className:d,id:c,"aria-selected":p,role:h,displayValue:m,value:f,subText:g,onClick:v,url:b,showPlusIcon:y}=e,I=i.createElement(i.Fragment,null,i.createElement("p",{className:a.title},m||f),g&&"markets"===n&&i.createElement("p",{className:a.subtitle},g));return i.createElement("li",{ref:t,"aria-selected":p,className:(0,r.Sh)([a.dropdownOption,a[n],d,{[a.small]:"small"===s||"extraSmall"===s,[a["item-selected"]]:l,[a["item-highlighted"]]:u}]),id:c,role:h,onClick:v},i.createElement("div",null,b?i.createElement("a",{href:b},I):I),y&&i.createElement("div",{className:a.icon},i.createElement(o.v8,null)))})},33511:function(e,t,n){"use strict";n.d(t,{c:function(){return h}});var i=n(67294),r=n(25434),o=n(83682),a=n(77536),s=n(7029),l=n(91949),u=n(98279);n(18790);var d={bar:"media-ui-TickerBarWithPill_bar-Jp-mSdGx2rs-",isStart:"media-ui-TickerBarWithPill_isStart-DVblI0eS-5k-",securities:"media-ui-TickerBarWithPill_securities-QkJSeChnEgQ-",isEnd:"media-ui-TickerBarWithPill_isEnd-y6b4LuxnPgY-",securitiesCollapsed:"media-ui-TickerBarWithPill_securitiesCollapsed-SvMOnXySPjE-",mobileSecurities:"media-ui-TickerBarWithPill_mobileSecurities-kyIAwDI40yE-",menuPortal:"media-ui-TickerBarWithPill_menuPortal-t-2fUABFAYw-",ticker:"media-ui-TickerBarWithPill_ticker-5arx5cdkyZQ-",scrollSnap:"media-ui-TickerBarWithPill_scrollSnap--pXjNv79E04-"};let c=(e,t)=>{let n=[0];for(let i=1;i<=(null==e?void 0:e.children.length);i++){let r=e.children[i];if(!r)continue;r.classList.remove(d.scrollSnap);let o=Math.floor(r.offsetLeft+r.offsetWidth-t);o>0&&n.push(o)}return n},p=(e,t)=>{let n=[0],i=0;for(let r=1;r<=(null==e?void 0:e.children.length);r++){let o=e.children[r];if(!o)continue;if(o.offsetLeft+o.offsetWidth<=i+t){o.classList.remove(d.scrollSnap);continue}let a=o.offsetLeft;o.classList.add(d.scrollSnap),n.push(a),i=a}return n},h=i.forwardRef(function(e,t){let{tickers:n=[],displaySecurityName:h=!1,trackClick:m,securities:f,onSecuritiesUpdate:g,name:v="ticker-bar-with-pill"}=e,[b]=(0,r.f)(v),[y,I]=i.useState([]),[w,S]=i.useState(!0),[k,x]=i.useState(!0),[E,O]=i.useState(!1),_=i.useRef(null),D=(0,o.H)(_,t),C=i.useRef(null),A=i.useCallback(()=>typeof document>"u"?null:document.querySelector("[data-component='menu-portal']"),[]),M=i.useCallback((e,t,n)=>{S(t),x(n)},[]);!function(e){let{trackRef:t,tickers:n,onSliderScroll:r,setSecuritiesCollapsed:o,setSnapPositions:s}=e,l=()=>{if(typeof document>"u")return;let e=t.current,n=document.querySelector("[data-component='dropdown-button'] p"),i=window.innerWidth>=1123;if(!e)return;let r=i&&(null==n?void 0:n.offsetWidth)>0?e.offsetWidth+n.offsetWidth:e.offsetWidth;s(i?c(e,r):p(e,r))};i.useEffect(()=>{if(l(),r(0,!0,!1),typeof document>"u")return()=>{};let e=t.current,n=document.querySelector("[data-component='dropdown-button'] p"),i=(0,a.Ds)(l,100),s=new ResizeObserver(e=>{for(let t of e)t&&i()}),u=()=>{n&&o(0===n.offsetWidth)};return n&&n.addEventListener("transitionend",u),e&&s.observe(e),()=>{e&&s.unobserve(e),n&&n.removeEventListener("transitionend",u)}},[n])}({trackRef:C,tickers:n,onSliderScroll:M,setSecuritiesCollapsed:O,setSnapPositions:I});let P=i.useCallback(e=>{m&&e&&m("click","tickerbar.dropdown_".concat(e.value)),g(e),C.current&&(C.current.scrollLeft=0)},[g]),T=i.useMemo(()=>n.map(e=>{let{url:t,ticker:n,name:r,percentChange1Day:o,price:a}=e;return i.createElement("a",{href:t||"/quote/".concat(n),className:d.ticker,key:n,onClick:m?()=>m("ticker-click",n):()=>{},role:"link"},i.createElement(u.EK,{ticker:n.replace(/:.*/,""),displayName:h?r:void 0,percentChange:o||0,price:a,variant:u.$e.refreshbar2024}))}),[n,m]);return i.createElement("div",{ref:D,"data-component":b,className:(0,a.Sh)([d.bar,w&&d.isStart,k&&d.isEnd,E&&d.securitiesCollapsed],e)},i.createElement(l.K,{className:d.securities,options:f,onSelect:P,unstyled:!0}),i.createElement("div",{className:d.menuPortal,"data-component":"menu-portal"}),i.createElement(s.iR,{trackRef:C,trackClick:m,shadow:!1,onSliderScroll:M,snapPositions:y},i.createElement(l.K,{className:(0,a.Sh)([d.mobileSecurities,d.scrollSnap]),options:f,onSelect:P,menuPortal:A(),unstyled:!0}),T))})},55441:function(e,t,n){"use strict";n.d(t,{C:function(){return d}});var i=n(67294),r=n(25434),o=n(77536),a=n(33511),s=n(18005);let l={top:["SPX:IND","CCMP:IND","B500:IND","GT10:GOV","CL1:COM","UKX:IND","GC1:COM","EURUSD:CUR","GBPUSD:CUR"],indices:["SPX:IND","B500:IND","UKX:IND","INDU:IND","RTY:IND","CCMP:IND","NKY:IND","HSI:IND","DAX:IND"],rates:["GT5:GOV","GT10:GOV","GTJPY10Y:GOV","GTGBP10Y:GOV","GTFRF10Y:GOV","GTDEM10Y:GOV","GTCAD10Y:GOV","GTHKD10Y:GOV"]},u={...l,top:["UKX:IND","SPX:IND","USDGBP:CUR","EURGBP:CUR","CL1:COM","CCMP:IND","DAX:IND","FTSEMIB:IND"]};[...new Set(Object.values(l).flat())],[...new Set(Object.values(u).flat())],n(13255);let d=i.forwardRef(function(e,t){var n,d;let{tickerBar:c,isUk:p=!1,trackClick:h,name:m="ticker-bar-with-pill-wrapper"}=e,f=(0,s.Q)(),g=[{displayValue:f({id:"media-ui-markets-top-securities",defaultMessage:"Top Securities"}),value:"top"},{displayValue:f({id:"media-ui-markets-market-indices",defaultMessage:"Market Indices"}),value:"indices"},{displayValue:f({id:"media-ui-markets-rates-and-bonds",defaultMessage:"Rates & Bonds"}),value:"rates"}],v=null!==(d=null===(n=g[0])||void 0===n?void 0:n.value)&&void 0!==d?d:"top",b=(0,i.useMemo)(()=>new Set(g.map(e=>{let{value:t}=e;return t})),[g]),y=(0,r.f)(m),I=(0,i.useMemo)(()=>p?u:l,[p]),[w,S]=(0,i.useState)(v),k=(0,i.useMemo)(()=>new Set(I[w]||[]),[w,I]),x=(0,i.useMemo)(()=>null==c?void 0:c.filter(e=>{let{ticker:t}=e;return k.has(t)}),[k,c]),E=(0,o.Sh)(["media-ui-TickerBarWithPillWrapper_tickerbarWrapper-m0--8U56QVY-"],e);return i.createElement("div",{className:E,ref:t,"data-component":y},i.createElement(a.c,{displaySecurityName:!0,trackClick:h,tickers:x,securities:g,onSecuritiesUpdate:e=>{(null==e?void 0:e.value)&&b.has(null==e?void 0:e.value)&&S(e.value)}}))})},18643:function(){},25086:function(){},79403:function(){},34407:function(){},65520:function(){},71132:function(){},14322:function(){},18790:function(){},13255:function(){},69921:function(e,t){"use strict";var n=60103,i=60106,r=60107,o=60108,a=60114,s=60109,l=60110,u=60112,d=60113,c=60120,p=60115,h=60116;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;m("react.element"),m("react.portal"),m("react.fragment"),m("react.strict_mode"),m("react.profiler"),m("react.provider"),m("react.context"),m("react.forward_ref"),m("react.suspense"),m("react.suspense_list"),m("react.memo"),m("react.lazy"),m("react.block"),m("react.server.block"),m("react.fundamental"),m("react.debug_trace_mode"),m("react.legacy_hidden")}},59864:function(e,t,n){"use strict";n(69921)}}]);
\ No newline at end of file
diff --git a/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7287-3615400021d28a4a_05Q6.js b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7287-3615400021d28a4a_05Q6.js
new file mode 100644
index 0000000..4c6f324
--- /dev/null
+++ b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7287-3615400021d28a4a_05Q6.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7287],{87909:function(e,t,a){"use strict";a.d(t,{fA:function(){return m},JJ:function(){return s},Dq:function(){return g}});var n,r,i=a(67294),o=a(86896),u=a(64618),l=a(70700);function s(e){return()=>{let t;try{let a=(0,o.Z)();t=(0,i.useCallback)(({id:e,defaultMessage:t},n)=>a.formatMessage({id:e,defaultMessage:t},n),[a,e])}catch{let e=(0,u.Sn)(),a=(0,l.d)({locale:"en",messages:{}},e);t=({defaultMessage:e,id:t},n)=>a.formatMessage({defaultMessage:e,id:t},n)}return t}}var d=a(85893),c=a(79960),f=a(44012);function m(e){return e=>{let{id:t,values:a,defaultMessage:n,children:r,...i}=e;try{return(0,o.Z)(),(0,d.jsx)(f.Z,{id:t,values:a,children:r,defaultMessage:n,...i})}catch{let e=(0,u.Sn)(),i=(0,c.d)({locale:"en",messages:{}},e).formatMessage({defaultMessage:n,id:t},a);if("function"==typeof r)return(0,d.jsx)(d.Fragment,{children:r?.([i])});return(0,d.jsx)(d.Fragment,{children:i})}}}(n=r||(r={})).En="en",n.Ja="ja";let h=e=>{let t=e.split("-")[0].toLowerCase();return t===r.En||t===r.Ja?t:r.En},g=()=>{try{let e=(0,o.Z)();return{...e,languageCode:h(e.locale)}}catch{let e=(0,u.Sn)();return{...(0,l.d)({locale:"en-US",messages:{}},e),languageCode:r.En}}}},48388:function(e,t,a){"use strict";a.d(t,{V$:function(){return g},_U:function(){return v}}),(n=r||(r={})).Success="success",n.Pending="pending",n.Failed="failed";var n,r,i=a(67294);let o={abbaConfig:null,abbaConfigStatus:r.Pending,geoIpData:null,accesslistMembership:null,refreshAbbaClient:()=>Promise.resolve()},u=(0,i.createContext)(o);var l=a(85893);let s="abbaClient:ready",d=()=>Promise.resolve();function c(e,t){return"fulfilled"===e.status?e.value:(console.error(`Error occurred while fetching abba feature: ${e.reason instanceof Error?e.reason:JSON.stringify(e.reason)}`),t||null)}function f(){let{getAbbaClient:e}=window?.__bloomberg__??{};return e?e():Promise.reject("'getAbbaClient' could not be found")}async function m(){let e=await f();return e&&e.getGeoIPData?e.getGeoIPData():Promise.reject("'getGeoIPData' could not be found.")}async function h(){let e=await f();return e&&e.getAccesslistMembership?e.getAccesslistMembership():Promise.reject("'getAccesslistMembership' could not be found.")}let g=({children:e,platform:t,user:n})=>{let[o,f]=(0,i.useState)(null),[g,v]=(0,i.useState)(null),[b,p]=(0,i.useState)(null),[w,y]=(0,i.useState)(r.Pending);(0,i.useEffect)(()=>{async function e(){let[e,a,i]=await Promise.allSettled([function(e,t={}){let{getAbbaConfig:a}=window.__bloomberg__??{};return a?a(e,t):Promise.reject("'getAbbaConfig' could not be found.")}(t,n),m(),h()]),o=c(e);f(o);let u=c(a);v(u),u&&function(e){let{region:t="",country:a="",provinceId:n="",cityId:r="",fieldP:i="",fieldMI:o="",fieldD:u="",fieldIS:l="",fieldN:s=""}=e,d=`${t}~${a}~${n}~${r}~${i}`,c=`${o}~${u}~${l}~${s}`;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"geoip_info_ready",geoip_info:d,geoip_info_extension:c})}(u),p(c(i,null)),y(o?r.Success:r.Failed)}let{getAbbaClient:a}=window?.__bloomberg__??{};return a?(e(),()=>{}):(window.addEventListener(s,e),()=>{window.removeEventListener(s,e)})},[t,n]);let C=(0,i.useMemo)(()=>({abbaConfig:o,abbaConfigStatus:w,geoIpData:g,accesslistMembership:b,refreshAbbaClient:a.g.window?.__bloomberg__?.refreshAbbaClient||d}),[o,w]);return(0,l.jsx)(u.Provider,{value:C,children:e})},v=()=>(0,i.useContext)(u)},41762:function(e,t,a){"use strict";a.d(t,{j$:function(){return c},_P:function(){return f}});var n=a(85893),r=a(67294),i=a(59628);let o=(0,r.createContext)({controller:null,isLoggedIn:null,isSubscriber:null,subscriberType:void 0,openSignUp:null,openSignIn:null});var u=a(23324);let l={FOR_SUBSCRIBER:100,FOR_REGISTERED:10},s={FOR_SUBSCRIBER:100,FOR_REGISTERED:25};class d{#e;#t;#a;#n=new Set;#r={};#i;#o;#u;#l;constructor({bconnectId:e,watchlistServiceUrl:t,isSubscriber:a,updateValues:n}){this.#u=n,this.#e=a,this.#t=e,this.#o=new u.Z({watchlistServiceUrl:t}),this.#l=!1}get isUpdating(){return this.#l}get watchlistSummarysForTickers(){return this.#r}get isAtMaximumWatchlist(){return!!this.#i&&(this.#e?this.#i>=l.FOR_SUBSCRIBER:this.#i>=l.FOR_REGISTERED)}get #s(){return 400}get #d(){return this.#e?s.FOR_SUBSCRIBER:s.FOR_REGISTERED}get defaultWatchlistId(){return this.#a||null}updateTickerWatchlists(){return this.#t?(this.#u?.(e=>({...e,isUpdating:this.#l=!0})),this.#o.getUserHoldingsSummary({bconnectId:this.#t,tickers:[...this.#n]}).then(({data:e})=>{this.#r=this.#c(e),this.#a=e?.defaultWatchlistId||this.#a,this.#u?.({isAtMaximumWatchlist:this.isAtMaximumWatchlist,isUpdating:this.#l=!1,defaultWatchlistId:this.defaultWatchlistId,watchlistSummarysForTickers:this.#r})})):Promise.reject()}registerTicker(e){e&&this.#n.add(e)}createWatchlist({name:e,isDefault:t,currency:a="USD",ticker:n}){return e&&this.#t?this.#o.createWatchlist({bconnectId:this.#t,watchlistData:{portMeta:{name:e,currency:a,isDefault:t},...n?{holdings:[{security:n,shares:0,buyprice:0,buydate:new Date().valueOf()}]}:void 0}}):Promise.reject()}removeTickerFromWatchlists({ticker:e,watchlistIds:t}){return e&&t.length&&this.#t?this.#o.removeTickerFromWatchlists({bconnectId:this.#t,ticker:e,watchlistIds:t}):Promise.reject()}addTickerToWatchlists({ticker:e,watchlistIds:t}){return e&&t.length&&this.#t?this.#o.addTickerToWatchlists({bconnectId:this.#t,ticker:e,watchlistIds:t}):Promise.reject()}#c(e){let t={...this.#r};if(!e||"string"==typeof e)return t;let{tickers:a,watchlists:n}=e;return Object.entries(a).reduce((e,[t,a])=>{let r=new Set(a),i=n.map(({watchlistId:e,watchlistName:t,holdingCount:a,tickerCount:n})=>({watchlistId:e,watchlistName:t,isFollowing:r.has(e),isFull:a>=this.#s||n>=this.#d}));return i.sort((e,t)=>t.watchlistId===this.#a?1/0:e.watchlistId===this.#a?-1/0:e.watchlistId-t.watchlistId),{...e,[t]:i}},t)}}function c({watchlistServiceUrl:e,children:t}){let a=(0,i.useRegUIClient)(),[u,l]=(0,r.useState)(null),[s,c]=(0,r.useState)(null);if(!a)throw Error("QuickAddProvider must be a child of RegUIClientProvider");let{session:f,client:m}=a,h=!!f?.userInfo?.subscription,g=!!f?.isLoggedIn,v=f?.subscriberType,b=f?.userInfo?.userId,p=(0,r.useCallback)(()=>m?.linkToSignIn(),[m]),w=(0,r.useCallback)(()=>m?.linkToRegister(),[m]),y=(0,r.useMemo)(()=>b&&e&&g?new d({bconnectId:b,watchlistServiceUrl:e,isSubscriber:h,subscriberType:v,updateValues:l}):null,[e,b,g,l]),C=(0,r.useCallback)(()=>{c(null)},[]),T=(0,r.useCallback)(()=>{"hidden"===document.visibilityState&&C()},[]);return(0,r.useEffect)(()=>(window.addEventListener("blur",C),document.addEventListener("visibilitychange",T),()=>{window.removeEventListener("blur",C),document.removeEventListener("visibilitychange",T)}),[]),(0,n.jsx)(o.Provider,{value:{controller:y,isLoggedIn:g,isSubscriber:h,subscriberType:v,openSignIn:p,openSignUp:w,openOverlay:s,setOpenOverlay:c,...u},children:t})}function f(){let e=(0,r.useContext)(o);if(!e)throw Error("useQuickAdd must be used within QuickAddProvider!");return e}},87183:function(e,t,a){"use strict";a.d(t,{q:function(){return o}});var n=a(67294),r=a(77536),i=a(68187);a(21988);let o=n.forwardRef(function(e,t){let{className:a,name:o="BoxAd",flexSizeAllowed:u=!1,isDesktop:l=!1,...s}=e;return n.createElement(i.r,{ref:t,className:(0,r.Sh)("media-ui-BoxAd_boxAd-rTusT9mNmWo-",{className:a}),name:o,adType:u?"flexbox":l?"box-desktop":"box",ariaLabel:"Advertisement",...s})})},56253:function(e,t,a){"use strict";a.d(t,{V:function(){return u}});var n=a(67294),r=a(25434),i=a(77536);a(53716);var o={placeholderParagraphWrapper:"media-ui-Placeholder_placeholderParagraphWrapper-yqk1PvmrNoc-",shimmeringParagraph:"media-ui-Placeholder_shimmeringParagraph-CAmHW46Yvo4-",shimmeringLine:"media-ui-Placeholder_shimmeringLine-eiuBL5rgMWw-",short:"media-ui-Placeholder_short-JSHimwvHcHU-",shimmeringImage:"media-ui-Placeholder_shimmeringImage-3e9ZALBhsYQ-"};let u=n.forwardRef(function(e,t){let{children:a,name:i="placeholder"}=e;return n.createElement("div",{ref:t,"data-component":(0,r.f)(i)},a)});u.Line=function(e){let{name:t="placeholder-line",short:a=!1}=e;return n.createElement("div",{className:(0,i.Sh)([o.shimmeringLine,a&&[o.short]]),"data-component":(0,r.f)(t)})},u.Line.displayName="Placeholder.Line",u.Paragraph=e=>{let{name:t="placeholder-paragraph",paragraphs:a=1,lines:i=6}=e,l=[...Array(a).keys()],s=[...Array(i).keys()];return n.createElement("div",{className:o.placeholderParagraphWrapper},l.map(e=>n.createElement("div",{key:e,className:o.shimmeringParagraph,"data-component":(0,r.f)(t)},s.map(e=>n.createElement(u.Line,{key:e})))))},u.Paragraph.displayName="Placeholder.Paragraph",u.Image=function(e){let{name:t="placeholder-image",...a}=e;return n.createElement("div",{className:(0,i.Sh)([o.shimmeringImage],a),"data-component":(0,r.f)(t)})},u.Image.displayName="Placeholder.Image"},92971:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var n=a(73935);function r(e){let{children:t}=e;return(0,n.createPortal)(t,document.body)}},11934:function(e,t,a){"use strict";a.d(t,{OK:function(){return l},mQ:function(){return s}});var n=a(67294),r=a(25434),i=a(7029),o=a(77536);a(18161);var u={tabs:"media-ui-Tabs_tabs-u-Bix8TJACE-",navigation:"media-ui-Tabs_navigation-T4QnKpvvd2o-",navigationItem:"media-ui-Tabs_navigationItem-G8nqBQ7MyNQ-",tabText:"media-ui-Tabs_tabText-SVJ-42wuIVg-",tabIcon:"media-ui-Tabs_tabIcon-ObJANShqDQA-",active:"media-ui-Tabs_active-Kod2QK8yhi8-",slider:"media-ui-Tabs_slider-kejv5ctlhVc-",tab:"media-ui-Tabs_tab-ajujBB-5K9w-",box:"media-ui-Tabs_box-6VEEgCfRg20-",sizeDefault:"media-ui-Tabs_sizeDefault-0vfo5BUm5zA-",basic:"media-ui-Tabs_basic-cDinItWzrUM-",gliding:"media-ui-Tabs_gliding-GUnHHYJpdNE-",sizeSmall:"media-ui-Tabs_sizeSmall-egmAkQaF8vY-",sizeLarge:"media-ui-Tabs_sizeLarge-rlPYr4bXytU-",noWidth:"media-ui-Tabs_noWidth-MbpZmWaVUOA-",default:"media-ui-Tabs_default--OhIzZC92sU-",centerTabText:"media-ui-Tabs_centerTabText-1-l2IGKpYO0-"};function l(e){let{children:t,isActive:a,className:r}=e;return n.createElement("div",{className:(0,o.Sh)([u.tab,r,a&&u.active])},t)}let s=n.forwardRef(function(e,t){let{name:a="Tabs",onTabSwitch:l,children:s=[],tabClassName:d,variant:c="default",size:f="default",width:m,showSlider:h,trackClick:g,textAlignment:v="left"}=e,b=(0,n.useRef)(null),p=n.Children.map(s,e=>{let{props:{title:t,Icon:a,buttonClassName:n}}=e;return{tabTitle:t,Icon:a,className:n}}),w=n.Children.map(s,(e,t)=>{let{props:{title:a,isDefault:n}}=e;return n&&a?t:-1}).find(e=>e>-1),[y,C]=(0,n.useState)(w||0);(0,n.useEffect)(()=>{void 0!==w&&C(w)},[w]);let[T]=(0,r.f)(a),S=(0,n.useCallback)(e=>{let t=e.currentTarget.dataset.key,a=Number(e.currentTarget.dataset.index);C(a),l&&l(t,a)},[l,C]),x=p.map((e,t)=>n.createElement("button",{className:(0,o.Sh)([u.navigationItem,t===y&&u.active,!m&&u.noWidth,e.className]),type:"button",key:"".concat(e.tabTitle,"-").concat(t),"data-key":e.tabTitle,"data-index":t,onClick:S,"data-active-tab":t===y,style:{width:m||"auto"}},e.Icon&&n.createElement(n.Fragment,null,e.Icon),n.createElement("div",{className:(0,o.Sh)([u.tabText,e.Icon&&u.tabIcon]),"data-tab-title":e.tabTitle,"data-component":"".concat(T,"-tab-title")},e.tabTitle))),{gliderWidth:k,gliderOffset:_}=function(e,t,a){let[r,i]=(0,n.useState)(0),[o,u]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(!(null==e?void 0:e.current))return;let a=e.current.querySelector(t);a&&(i(a.offsetWidth),u(a.offsetLeft))},[t,...a]),{gliderWidth:r,gliderOffset:o}}(b,'[data-active-tab="true"]',[y||0,c,f]);return n.createElement("div",{className:(0,o.Sh)([u.tabs,"default"===c&&u.default,"basic"===c&&u.basic,"box"===c&&u.box,"gliding"===c&&u.gliding],{unstyled:e.unstyled,className:e.className,name:e.name}),ref:t,"data-component":T},n.createElement("nav",{ref:b,style:"gliding"===c?{"--glider-width":"".concat(k,"px"),"--glider-offset":"".concat(_,"px")}:void 0,className:(0,o.Sh)([u.navigation,"default"===f&&u.sizeDefault,"small"===f&&u.sizeSmall,"large"===f&&u.sizeLarge,"center"===v&&u.centerTabText])},h?n.createElement(i.iR,{className:u.slider,trackClick:g,shadow:!1,boxShadow:!0},x):x),n.Children.map(s,(e,t)=>(0,n.cloneElement)(e,{isActive:t===y,className:(0,o.Sh)([d,e.props.className])})))})},21193:function(e,t,a){"use strict";a.d(t,{E:function(){return f}});var n=a(67294),r=a(77536),i=a(25434),o=a(9339),u=a(58783),l=a(62299);a(76295);var s={wrapper:"media-ui-SearchDropdown_wrapper-QrBLVLi4oBI-","input-container":"media-ui-SearchDropdown_input-container-idTg0RoBPTY-",menu:"media-ui-SearchDropdown_menu-0ewUbI1O8is-","menu-open":"media-ui-SearchDropdown_menu-open-iB3noPvcRcA-",item:"media-ui-SearchDropdown_item-AXDcvl-DJJ0-",small:"media-ui-SearchDropdown_small-Pu-W1DSuRbc-",empty:"media-ui-SearchDropdown_empty--KnHBFzcPhE-",helperText:"media-ui-SearchDropdown_helperText-yL4VwVNEyag-"};function d(e){return(null==e?void 0:e.displayValue)||(null==e?void 0:e.value)||""}let c=n.forwardRef(function(e,t){let{options:a,noOptionsText:i="No items to display",renderProps:o,size:u,inputProps:d,labelProps:c,unstyled:f=!1,id:m,children:h,dropdownVariant:g,showDropdownPlusBtn:v}=e,{getInputProps:b,getLabelProps:p,getRootProps:w,getMenuProps:y,getItemProps:C,highlightedIndex:T,isOpen:S}=o,x={...y(),"aria-labelledby":"".concat(m,"-menu")},k=b().value||"",_=S&&(a.length>0||0===a.length&&k);return n.createElement(n.Fragment,null,n.createElement("div",{className:(0,r.Sh)([s["input-container"]],{unstyled:f}),ref:t},h({query:k,labelProps:{...p(),...c},inputProps:{...d,autoComplete:"off","aria-labelledby":"".concat(m,"-label"),onBlur:e=>{e.persist(),(null==d?void 0:d.onBlur)&&d.onBlur(e)},onChange:e=>{let{onChange:t}=b();e.persist(),t&&t(e),(null==d?void 0:d.onChange)&&d.onChange(e)},onFocus:e=>{(null==d?void 0:d.onFocus)&&d.onFocus(e)},onKeyDown:e=>{let{onKeyDown:t}=b();t&&t(e),(null==d?void 0:d.onKeyDown)&&d.onKeyDown(e)}},getRootProps:()=>w({},{suppressRefError:!0})})),n.createElement("ul",{className:(0,r.Sh)([s.menu,{[s["menu-open"]]:_,open:S,closed:!_}],e),...x},0===a.length&&k&&n.createElement("li",{className:(0,r.Sh)([s.item,s.empty,{[s.small]:"extraSmall"===u||"small"===u}],{unstyled:f})},i),a.length>0&&a.map((e,t)=>n.createElement(l.Q,{key:"".concat(e.value).concat(t),isHighlighted:t===T,value:e.value,subText:e.subText,displayValue:e.displayValue,variant:g,...C({item:e,index:t}),url:e.url,showPlusIcon:v}))))}),f=n.forwardRef(function(e,t){let{disabled:a=!1,name:l,id:f,inputProps:m,labelProps:h,noOptionsText:g,options:v=[],onChange:b,onTextChange:p,placeholder:w="",label:y="",size:C="default",helperText:T,variant:S,inputValue:x,onClear:k,children:_,dropdownVariant:E,showDropdownPlusBtn:D}=e,M=n.useRef((0,r.Mc)()),P=f||M.current,N=l||"OutlinedDropdown",[W]=(0,i.f)(N),O=n.useCallback(e=>e.type===u.ZP.stateChangeTypes.clickItem||e.type===u.ZP.stateChangeTypes.mouseUp||e.type===u.ZP.stateChangeTypes.blurButton||e.type===u.ZP.stateChangeTypes.blurInput?{...e,isOpen:!1}:e,[]);return n.createElement("div",{ref:t,"data-component":W,id:"select-box-".concat(y),className:(0,r.Sh)([s.wrapper],e)},n.createElement(u.ZP,{inputId:P,labelId:"".concat(P,"-label"),menuId:"".concat(P,"-menu"),onChange:b,onInputValueChange:p,inputValue:x,onStateChange:O,itemToString:d},t=>n.createElement(c,{size:"markets"===S?"extraSmall":C,disabled:a,renderProps:t,name:N,label:y,id:P,placeholder:w,options:v,noOptionsText:g,unstyled:e.unstyled,inputProps:m,labelProps:h,onChange:b,onClear:k,helperText:void 0,dropdownVariant:E,showDropdownPlusBtn:D,...t.getRootProps()},_)),T&&n.createElement(o.p,{text:T,className:s.helperText}))})},34264:function(e,t,a){"use strict";let n;a.d(t,{E:function(){return p},W:function(){return v}});var r=a(67294),i=a(77536),o=a(35436),u=a(36136),l=a(99104),s=a(70390),d=a(24229);a(45997);var c={createWatchlist:"media-ui-CreateWatchlist_createWatchlist-nGw-xd5wf2s-",inputContainer:"media-ui-CreateWatchlist_inputContainer-AHxtj-q0ucw-",errorMessage:"media-ui-CreateWatchlist_errorMessage-5y8wkrrlUtM-",inputTitle:"media-ui-CreateWatchlist_inputTitle-eiNlyjF-LKI-",nameInput:"media-ui-CreateWatchlist_nameInput-FHOJshFN-eA-",inputTitleError:"media-ui-CreateWatchlist_inputTitleError-d-UOnnRphS4-",nameInputError:"media-ui-CreateWatchlist_nameInputError-Y6Tnvc0sMqg-",createNewListContainer:"media-ui-CreateWatchlist_createNewListContainer-cdARePi1tHI-",createNewListText:"media-ui-CreateWatchlist_createNewListText-zp54fqXDMeI-",buttonsContainer:"media-ui-CreateWatchlist_buttonsContainer-0ZfRY-5muPc-",cancelButton:"media-ui-CreateWatchlist_cancelButton-91GFj7CPOhc-",createButton:"media-ui-CreateWatchlist_createButton-A0SaKW5Vevo-"},f=((n=f||{}).MAX_LENGTH="Must be no longer than 30 characters.",n);let m=e=>e.length>30,h=e=>{let[t,a]=(0,r.useState)(""),[n,o]=(0,r.useState)(null),{onCreate:u,showAddNewWatchlist:f,setShowAddNewWatchlist:h}=e,g=(0,r.useCallback)(e=>{if(m(e.target.value)){o("Must be no longer than 30 characters.");return}o(null),a(e.target.value)},[]),v=(0,r.useCallback)(()=>{u(t),a("")},[u,t]),b=(0,r.useCallback)(e=>{"Enter"===e.key&&v()},[v]),p=(0,r.useCallback)(()=>{h(!1),o(null)},[h,o]),w=(0,r.useCallback)(()=>h(!0),[h]),y=!!n,C=0===t.length||y,T=(0,i.Sh)([c.nameInput,{[c.nameInputError]:y}]),S=(0,i.Sh)([c.inputTitle,{[c.inputTitleError]:y}]);return r.createElement("div",{className:c.createWatchlist},f?r.createElement(r.Fragment,null,r.createElement("div",{className:c.inputContainer},r.createElement("p",{className:S},"Watchlist name"),r.createElement("input",{autoFocus:!0,className:T,"aria-label":"watchlist-name",onChange:g,onKeyDown:C?void 0:b,placeholder:"Enter list name",type:"text"}),n&&r.createElement("p",{className:c.errorMessage},n)),r.createElement("div",{className:c.buttonsContainer},r.createElement(d.F,{className:c.cancelButton,onClick:p,title:"cancel"},"Cancel"),r.createElement(l.K,{className:c.createButton,disabled:C,onClick:v,size:"small",version:"phoenix",title:"create"},"Create"))):r.createElement("button",{className:c.createNewListContainer,onClick:w,type:"button"},r.createElement(s.am,null),r.createElement("p",{className:c.createNewListText},"Create a new list")))};a(9301);var g={addToWatchlist:"media-ui-AddToWatchlist_addToWatchlist-OqbmudDWDm8-",header:"media-ui-AddToWatchlist_header-mdkAol4MK2Y-",confirmationText:"media-ui-AddToWatchlist_confirmationText-ScKLt-g2BZg-",showContainer:"media-ui-AddToWatchlist_showContainer-mdWFncAY8zo-",watchlists:"media-ui-AddToWatchlist_watchlists-bc-AC--IqNc-",overflow:"media-ui-AddToWatchlist_overflow-i0neGO3wXwQ-",watchlist:"media-ui-AddToWatchlist_watchlist-rUSWcDsdRHQ-",watchlistOpenLink:"media-ui-AddToWatchlist_watchlistOpenLink-74df5wBkBVU-",watchlistHeader:"media-ui-AddToWatchlist_watchlistHeader-ocqYpHBO8Oc-",watchlistToggle:"media-ui-AddToWatchlist_watchlistToggle-HeWFBSAP-8U-",watchlistDisabled:"media-ui-AddToWatchlist_watchlistDisabled-BvdXK8sH3O4-",watchlistName:"media-ui-AddToWatchlist_watchlistName-g-VYlYtQH5Y-",saveButton:"media-ui-AddToWatchlist_saveButton-TWAZWnE7XE8-"};let v="My watchlist",b={isFollowing:!0,isFull:!1,watchlistName:v,watchlistId:v},p=e=>{let{canAddWatchlist:t,onClose:a,onSave:n,onCreateNewWatchlist:d,watchlists:c,trackClick:f}=e,[m,p]=(0,r.useState)(!1),[w,y]=(0,r.useState)(c.length?c:[b]),[C,T]=(0,r.useState)(c.length?{}:{[v]:!0}),[S,x]=(0,r.useState)(!1),k=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=k.current;e&&m&&(e.scroll({top:e.scrollHeight,behavior:"smooth"}),p(!1))},[m]);let _=(0,r.useCallback)((e,t)=>{T(a=>{if(Object.hasOwn(a,e)){let{[e]:t,...n}=a;return n}return{...a,[e]:t}})},[]),E=(0,r.useCallback)(async e=>{let t=await d(e);t&&(y(a=>[...a,{isFollowing:!0,isFull:!1,watchlistName:e,watchlistId:t}]),T(e=>({...e,[t]:!0})),x(!1),p(!0))},[d,_]),D=(0,r.useCallback)(()=>{null==a||a()},[a]),M=(0,r.useCallback)(()=>{let e={createDefaultWatchlist:!1,adds:[],deletes:[]};Object.entries(C).forEach(t=>{let[a,n]=t;if(a===v){e.createDefaultWatchlist=!0;return}let r=parseInt(a,10);if(!isNaN(r)){if(n){e.adds.push(r);return}e.deletes.push(r)}}),null==n||n(e)},[n,C]),P=(0,r.useCallback)(()=>{null==f||f("click","open-list-quick-add")},[f]);return r.createElement("div",{className:g.addToWatchlist},r.createElement("div",{className:g.header},r.createElement("p",{className:g.confirmationText},"Add to watchlist"),r.createElement("button",{className:g.showContainer,onClick:D,type:"button"},r.createElement(s.h6,null))),r.createElement("div",null,r.createElement("div",{ref:k,className:(0,i.Sh)([g.watchlists,w.length>4&&g.overflow])},w.map(e=>{let{isFollowing:t,isFull:a,watchlistId:n,watchlistName:l}=e,s=a&&!t,d=n===v;return r.createElement("div",{className:g.watchlist,key:n},r.createElement("div",{className:(0,i.Sh)([g.watchlistHeader,s&&g.watchlistDisabled])},r.createElement(o.X,{className:g.watchlistToggle,defaultChecked:t,disabled:s,onChange:e=>_(n,e.target.checked),id:n.toString()}),r.createElement("label",{htmlFor:n.toString(),className:g.watchlistName},s?"".concat(l," (full)"):l)),!d&&r.createElement(u.r,{onClick:P,className:g.watchlistOpenLink,href:"/markets/watchlist?watchlist=".concat(n),target:"_blank"},"Open"))})),t&&r.createElement(h,{onCreate:E,showAddNewWatchlist:S,setShowAddNewWatchlist:x}),!S&&r.createElement(l.K,{className:g.saveButton,onClick:M,disabled:!Object.keys(C).length,size:"small",version:"phoenix"},"Save")))}},47552:function(e,t,a){"use strict";a.d(t,{c:function(){return g}});var n=a(67294),r=a(25434),i=a(77536),o=a(34264),u=a(62139),l=a(99104),s=a(70390);a(57318);let d=e=>{let{onClose:t,onCreateAccountClick:a,onSignInClick:r}=e,i=(0,n.useCallback)(()=>{r()},[r]),o=(0,n.useCallback)(()=>{a()},[a]);return n.createElement("div",{className:"media-ui-AddToWatchlistLoggedOut_addToWatchlistLoggedOut-HTmLfZBJyN4-"},n.createElement("div",{className:"media-ui-AddToWatchlistLoggedOut_header-wO13NoX95kc-"},n.createElement("div",{className:"media-ui-AddToWatchlistLoggedOut_titleContainer-iR252u3yAvA-"},n.createElement(s.HE,null),n.createElement("p",null,"Add to watchlist")),n.createElement("button",{className:"media-ui-AddToWatchlistLoggedOut_closeButton-pEv-5FxEWzs-",onClick:t},n.createElement(s.h6,null))),n.createElement("p",{className:"media-ui-AddToWatchlistLoggedOut_description-jqyyhSbJePU-"},"Sign in to follow this symbol and get relevant news in one place."),n.createElement("div",{className:"media-ui-AddToWatchlistLoggedOut_buttonsContainer-dEdVnCKplRk-"},n.createElement(u.U,{className:"media-ui-AddToWatchlistLoggedOut_createAccountButton-RhI02B8BH3c-",onClick:o,size:"small",title:"create account",version:"phoenix"},"Create account"),n.createElement(l.K,{className:"media-ui-AddToWatchlistLoggedOut_signInButton-uhrpIU578hY-",onClick:i,size:"small",title:"sign in",version:"phoenix"},"Sign In")))};a(68729);let c=()=>n.createElement("p",{className:"media-ui-Error_errorMessage-8K7sRAPqHXs-"},"Something went wrong. Please try again.");var f=a(41762);a(42329);var m={quickAddSubscribe:"media-ui-QuickAddSubscribe_quickAddSubscribe-4KSpV3cKdfI-",header:"media-ui-QuickAddSubscribe_header-MuXRu-OCcAc-",titleContainer:"media-ui-QuickAddSubscribe_titleContainer-27KIYTcUEc4-",closeButton:"media-ui-QuickAddSubscribe_closeButton-rkw749m7hDY-",description:"media-ui-QuickAddSubscribe_description-vtnQjLLm-5k-",buttonsContainer:"media-ui-QuickAddSubscribe_buttonsContainer-BklQoh023uw-",subscribeButton:"media-ui-QuickAddSubscribe_subscribeButton-WOCCmPT7BqU-",signInButton:"media-ui-QuickAddSubscribe_signInButton-HkC0-TXEZiE-"};let h=e=>{let{onClose:t,onSignInClick:a,isLoggedIn:r}=e,{subscriberType:i}=(0,f._P)(),o="Newsletter"===i,d=(0,n.useCallback)(()=>{a()},[a]),c=(0,n.useCallback)(()=>{window.open("https://www.bloomberg.com/subscriptions","_blank")},[]),h=(0,n.useCallback)(()=>{window.open("https://www.bloomberg.com/portal/subscription?triggerSubscriptionUpgradeModal=true&in_source=watchlist-quick-add","_blank")},[]);return n.createElement("div",{className:m.quickAddSubscribe},n.createElement("div",{className:m.header},n.createElement("div",{className:m.titleContainer},n.createElement(s.HE,null),n.createElement("p",null,"Watchlist is Subscriber-only")),n.createElement("button",{className:m.closeButton,onClick:t},n.createElement(s.h6,null))),n.createElement("p",{className:m.description},o?"Upgrade to get access to Watchlist and other great benefits.":"Subscribe or sign in to Bloomberg.com to get access to Watchlist and other great benefits."),n.createElement("div",{className:m.buttonsContainer},n.createElement(l.K,{className:m.subscribeButton,onClick:o?h:c,size:"small",title:"subscribe",version:"phoenix"},o?"Upgrade":"Subscribe"),!r&&n.createElement(u.U,{className:m.signInButton,onClick:d,size:"small",title:"sign in",version:"phoenix"},"Sign In")))};a(37406);let g=n.forwardRef(function(e,t){let{canAddWatchlist:a,isLoggedIn:u=!1,name:l="quick-add-overlay",onClose:s=null,onCreateAccountClick:f,onCreateNewWatchlist:m,onSave:g,onSignInClick:v,showError:b=!1,watchlists:p=[],trackClick:w,disabled:y=!0,isSubscribed:C}=e,T=(0,r.f)(l),S=(0,i.Sh)(["media-ui-QuickAddOverlay_quickAddOverlay-qYaVom2zS-M-"],{...e,name:l}),x=(0,n.useCallback)(()=>{null==s||s()},[s]);return n.createElement("div",{className:S,ref:t,"data-component":T},function(e){let{error:t,isDisabled:r,loggedIn:i,subscribed:u}=e;return t?n.createElement(c,null):r?i?n.createElement(o.E,{trackClick:w,canAddWatchlist:a,onClose:x,onCreateNewWatchlist:m,onSave:g,watchlists:p}):n.createElement(d,{onCreateAccountClick:f,onClose:x,onSignInClick:v}):i&&u?n.createElement(o.E,{trackClick:w,canAddWatchlist:a,onClose:x,onCreateNewWatchlist:m,onSave:g,watchlists:p}):n.createElement(h,{onClose:x,onSignInClick:v,isLoggedIn:i})}({error:b,isDisabled:y,loggedIn:u,subscribed:C}))})},64711:function(e){"use strict";e.exports={preset:{theme:{extend:{colors:{"chart-blue":"#0032F1","chart-orange":"#FF6200","chart-purple":"#8317B2","chart-sky-blue":"#0094D9","chart-red":"#F50036","chart-mustard":"#AE8E00","chart-pink":"#FF008C","chart-green":"#117C16","chart-brown":"#97542B","new-green-150":"#E4F4D9","new-green-200":"#D1EDC0","new-green-400":"#4DB250","new-green-500":"#338736","new-red-150":"#FFE1DF","new-red-200":"#FFD8D6","new-red-400":"#F05143","new-red-500":"#E51503"},width:{"sdt-width-grid":"1113px","ldt-width-grid":"1326px"}}}}}},216:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var a=Math.abs(e).toString();a.length0?"-":"+",n=Math.abs(e),r=Math.floor(n/60),i=n%60;return 0===i?a+String(r):a+String(r)+(t||"")+(0,s.default)(i,2)}function m(e,t){return e%60==0?(e>0?"-":"+")+(0,s.default)(Math.abs(e)/60,2):h(e,t)}function h(e,t){var a=Math.abs(e);return(e>0?"-":"+")+(0,s.default)(Math.floor(a/60),2)+(t||"")+(0,s.default)(a%60,2)}t.default={G:function(e,t,a){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if("yo"===t){var n=e.getUTCFullYear();return a.ordinalNumber(n>0?n:1-n,{unit:"year"})}return d.default.y(e,t)},Y:function(e,t,a,n){var r=(0,l.default)(e,n),i=r>0?r:1-r;if("YY"===t){var o=i%100;return(0,s.default)(o,2)}return"Yo"===t?a.ordinalNumber(i,{unit:"year"}):(0,s.default)(i,t.length)},R:function(e,t){var a=(0,o.default)(e);return(0,s.default)(a,t.length)},u:function(e,t){var a=e.getUTCFullYear();return(0,s.default)(a,t.length)},Q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,s.default)(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,s.default)(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){var n=e.getUTCMonth();switch(t){case"M":case"MM":return d.default.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return(0,s.default)(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){var r=(0,u.default)(e,n);return"wo"===t?a.ordinalNumber(r,{unit:"week"}):(0,s.default)(r,t.length)},I:function(e,t,a){var n=(0,i.default)(e);return"Io"===t?a.ordinalNumber(n,{unit:"week"}):(0,s.default)(n,t.length)},d:function(e,t,a){return"do"===t?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):d.default.d(e,t)},D:function(e,t,a){var n=(0,r.default)(e);return"Do"===t?a.ordinalNumber(n,{unit:"dayOfYear"}):(0,s.default)(n,t.length)},E:function(e,t,a){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){var r=e.getUTCDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,s.default)(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){var r=e.getUTCDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,s.default)(i,t.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,a){var n=e.getUTCDay(),r=0===n?7:n;switch(t){case"i":return String(r);case"ii":return(0,s.default)(r,t.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){var n,r=e.getUTCHours();switch(n=12===r?c.noon:0===r?c.midnight:r/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(n,{width:"narrow",context:"formatting"});default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,a){var n,r=e.getUTCHours();switch(n=r>=17?c.evening:r>=12?c.afternoon:r>=4?c.morning:c.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(n,{width:"narrow",context:"formatting"});default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,a){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return d.default.h(e,t)},H:function(e,t,a){return"Ho"===t?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):d.default.H(e,t)},K:function(e,t,a){var n=e.getUTCHours()%12;return"Ko"===t?a.ordinalNumber(n,{unit:"hour"}):(0,s.default)(n,t.length)},k:function(e,t,a){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?a.ordinalNumber(n,{unit:"hour"}):(0,s.default)(n,t.length)},m:function(e,t,a){return"mo"===t?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):d.default.m(e,t)},s:function(e,t,a){return"so"===t?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):d.default.s(e,t)},S:function(e,t){return d.default.S(e,t)},X:function(e,t,a,n){var r=(n._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return m(r);case"XXXX":case"XX":return h(r);default:return h(r,":")}},x:function(e,t,a,n){var r=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return m(r);case"xxxx":case"xx":return h(r);default:return h(r,":")}},O:function(e,t,a,n){var r=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+f(r,":");default:return"GMT"+h(r,":")}},z:function(e,t,a,n){var r=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+f(r,":");default:return"GMT"+h(r,":")}},t:function(e,t,a,n){var r=Math.floor((n._originalDate||e).getTime()/1e3);return(0,s.default)(r,t.length)},T:function(e,t,a,n){var r=(n._originalDate||e).getTime();return(0,s.default)(r,t.length)}},e.exports=t.default},49864:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(216));t.default={y:function(e,t){var a=e.getUTCFullYear(),n=a>0?a:1-a;return(0,r.default)("yy"===t?n%100:n,t.length)},M:function(e,t){var a=e.getUTCMonth();return"M"===t?String(a+1):(0,r.default)(a+1,2)},d:function(e,t){return(0,r.default)(e.getUTCDate(),t.length)},a:function(e,t){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];default:return"am"===a?"a.m.":"p.m."}},h:function(e,t){return(0,r.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,r.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,r.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,r.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var a=t.length,n=e.getUTCMilliseconds();return(0,r.default)(Math.floor(n*Math.pow(10,a-3)),t.length)}},e.exports=t.default},62328:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},n=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};t.default={p:n,P:function(e,t){var r,i=e.match(/(P+)(p+)?/)||[],o=i[1],u=i[2];if(!u)return a(e,t);switch(o){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",a(o,t)).replace("{{time}}",n(u,t))}},e.exports=t.default},95463:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},56295:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),a=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((a-t.getTime())/864e5)+1};var r=n(a(10215)),i=n(a(26503));e.exports=t.default},78071:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,u.default)(1,arguments);var t=(0,r.default)(e);return Math.round(((0,i.default)(t).getTime()-(0,o.default)(t).getTime())/6048e5)+1};var r=n(a(10215)),i=n(a(23353)),o=n(a(58694)),u=n(a(26503));e.exports=t.default},56566:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),a=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(a+1,0,4),n.setUTCHours(0,0,0,0);var u=(0,o.default)(n),l=new Date(0);l.setUTCFullYear(a,0,4),l.setUTCHours(0,0,0,0);var s=(0,o.default)(l);return t.getTime()>=u.getTime()?a+1:t.getTime()>=s.getTime()?a:a-1};var r=n(a(10215)),i=n(a(26503)),o=n(a(23353));e.exports=t.default},47002:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,u.default)(1,arguments);var a=(0,r.default)(e);return Math.round(((0,i.default)(a,t).getTime()-(0,o.default)(a,t).getTime())/6048e5)+1};var r=n(a(10215)),i=n(a(23506)),o=n(a(46115)),u=n(a(26503));e.exports=t.default},80319:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(1,arguments);var a,n,s,d,c,f,m,h,g=(0,r.default)(e),v=g.getUTCFullYear(),b=(0,l.getDefaultOptions)(),p=(0,u.default)(null!==(a=null!==(n=null!==(s=null!==(d=null==t?void 0:t.firstWeekContainsDate)&&void 0!==d?d:null==t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:b.firstWeekContainsDate)&&void 0!==n?n:null===(m=b.locale)||void 0===m?void 0:null===(h=m.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==a?a:1);if(!(p>=1&&p<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(v+1,0,p),w.setUTCHours(0,0,0,0);var y=(0,o.default)(w,t),C=new Date(0);C.setUTCFullYear(v,0,p),C.setUTCHours(0,0,0,0);var T=(0,o.default)(C,t);return g.getTime()>=y.getTime()?v+1:g.getTime()>=T.getTime()?v:v-1};var r=n(a(10215)),i=n(a(26503)),o=n(a(23506)),u=n(a(20498)),l=a(43713);e.exports=t.default},55965:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return -1!==a.indexOf(e)},t.isProtectedWeekYearToken=function(e){return -1!==n.indexOf(e)},t.throwProtectedError=function(e,t,a){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var a=["D","DD"],n=["YY","YYYY"]},26503:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},23353:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),a=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((a<1?7:0)+a-1)),t.setUTCHours(0,0,0,0),t};var r=n(a(10215)),i=n(a(26503));e.exports=t.default},58694:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),a=new Date(0);return a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0),(0,i.default)(a)};var r=n(a(56566)),i=n(a(23353)),o=n(a(26503));e.exports=t.default},23506:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(1,arguments);var a,n,l,s,d,c,f,m,h=(0,u.getDefaultOptions)(),g=(0,o.default)(null!==(a=null!==(n=null!==(l=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==l?l:h.weekStartsOn)&&void 0!==n?n:null===(f=h.locale)||void 0===f?void 0:null===(m=f.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==a?a:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,r.default)(e),b=v.getUTCDay();return v.setUTCDate(v.getUTCDate()-((b=1&&B<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=(0,c.default)(null!==(M=null!==(P=null!==(N=null!==(W=null==a?void 0:a.weekStartsOn)&&void 0!==W?W:null==a?void 0:null===(O=a.locale)||void 0===O?void 0:null===(I=O.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==N?N:F.weekStartsOn)&&void 0!==P?P:null===(A=F.locale)||void 0===A?void 0:null===(U=A.options)||void 0===U?void 0:U.weekStartsOn)&&void 0!==M?M:0);if(!(L>=0&&L<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!j.localize)throw RangeError("locale must contain localize property");if(!j.formatLong)throw RangeError("locale must contain formatLong property");var R=(0,o.default)(e);if(!(0,r.default)(R))throw RangeError("Invalid time value");var H=(0,s.default)(R),z=(0,i.default)(R,H),q={firstWeekContainsDate:B,weekStartsOn:L,locale:j,_originalDate:R};return Y.match(v).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,l.default[t])(e,j.formatLong):e}).join("").match(g).map(function(n){if("''"===n)return"'";var r,i=n[0];if("'"===i)return(r=n.match(b))?r[1].replace(p,"'"):n;var o=u.default[i];if(o)return!(null!=a&&a.useAdditionalWeekYearTokens)&&(0,d.isProtectedWeekYearToken)(n)&&(0,d.throwProtectedError)(n,t,String(e)),!(null!=a&&a.useAdditionalDayOfYearTokens)&&(0,d.isProtectedDayOfYearToken)(n)&&(0,d.throwProtectedError)(n,t,String(e)),o(z,n,j.localize,q);if(i.match(w))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")};var r=n(a(33177)),i=n(a(70916)),o=n(a(10215)),u=n(a(31878)),l=n(a(62328)),s=n(a(95463)),d=a(55965),c=n(a(20498)),f=n(a(26503)),m=a(43713),h=n(a(35644)),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b=/^'([^]*?)'?$/,p=/''/g,w=/[a-zA-Z]/;e.exports=t.default},62927:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(1,arguments),e instanceof Date||"object"===(0,r.default)(e)&&"[object Date]"===Object.prototype.toString.call(e)};var r=n(a(18698)),i=n(a(26503));e.exports=t.default},33177:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(!!(0,r.default)(e)||"number"==typeof e)&&!isNaN(Number((0,i.default)(e)))};var r=n(a(62927)),i=n(a(10215)),o=n(a(26503));e.exports=t.default},48736:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}},e.exports=t.default},80969:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,a){var n;if("formatting"===(null!=a&&a.context?String(a.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=a&&a.width?String(a.width):r;n=e.formattingValues[i]||e.formattingValues[r]}else{var o=e.defaultWidth,u=null!=a&&a.width?String(a.width):e.defaultWidth;n=e.values[u]||e.values[o]}return n[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},60409:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var u=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var r=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:o=a.valueCallback?a.valueCallback(o):o,rest:t.slice(r.length)}}},e.exports=t.default},22496:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};t.default=function(e,t,n){var r,i=a[e];return(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},e.exports=t.default},91640:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(48736)),i={date:(0,r.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=i,e.exports=t.default},26453:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.default=function(e,t,n,r){return a[e]},e.exports=t.default},14947:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(80969)),i={ordinalNumber:function(e,t){var a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:(0,r.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,r.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=i,e.exports=t.default},5024:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(60409)),i={ordinalNumber:(0,n(a(66796)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,r.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,r.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=i,e.exports=t.default},46011:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(22496)),i=n(a(91640)),o=n(a(26453)),u=n(a(14947)),l=n(a(5024)),s={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:u.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=s,e.exports=t.default},70916:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var a=(0,o.default)(t);return(0,r.default)(e,-a)};var r=n(a(52398)),i=n(a(26503)),o=n(a(20498));e.exports=t.default},10215:function(e,t,a){"use strict";var n=a(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))};var r=n(a(18698)),i=n(a(26503));e.exports=t.default},21988:function(){},53716:function(){},18161:function(){},76295:function(){},9301:function(){},57318:function(){},45997:function(){},68729:function(){},37406:function(){},42329:function(){},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(a){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},81395:function(e,t,a){"use strict";function n(e,t,a,n,r,i,o){var u=new Date(0);return u.setUTCFullYear(e,t,a),u.setUTCHours(n,r,i,o),u}a.d(t,{Z:function(){return n}})},35871:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},i=a(81395),o=/^(Z)$/,u=/^([+-]\d{2})$/,l=/^([+-])(\d{2}):?(\d{2})$/;function s(e,t,a){if(!e||(n=o.exec(e)))return 0;if(n=u.exec(e))return c(s=parseInt(n[1],10))?-(36e5*s):NaN;if(n=l.exec(e)){s=parseInt(n[2],10);var n,r,s,m=parseInt(n[3],10);return c(s,m)?(r=36e5*Math.abs(s)+6e4*m,"+"===n[1]?-r:r):NaN}if(function(e){if(f[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),f[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var h,g=d(a?t:(h=t,(0,i.Z)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds())),e);return-(a?g:function(e,t,a){var n=e.getTime()-t,r=d(new Date(n),a);if(t===r)return t;var i=d(new Date(n-=r-t),a);return r===i?r:Math.max(r,i)}(t,g,e))}return NaN}function d(e,t){var a,o,u,l=(u=function(e){if(!r[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z"));r[e]="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return r[e]}(t)).formatToParts?function(e,t){try{for(var a=e.formatToParts(t),r=[],i=0;i=0&&(r[o]=parseInt(a[i].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(u,e):(a=u.format(e),[(o=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(a))[3],o[1],o[2],o[4],o[5],o[6]]),s=(0,i.Z)(l[0],l[1]-1,l[2],l[3]%24,l[4],l[5],0).getTime(),d=e.getTime(),c=d%1e3;return s-(d-=c>=0?c:1e3+c)}function c(e,t){return -23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var f={}},53669:function(e,t){"use strict";t.Z=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/},34117:function(e,t,a){"use strict";a.d(t,{Z:function(){return m}});var n=a(21035);function r(e,t,a){var n,r,i=function(e,t,a){if(a&&!a.code)throw Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(a?[a.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,a.timeZone,a.locale);return i.formatToParts?function(e,t){for(var a=e.formatToParts(t),n=a.length-1;n>=0;--n)if("timeZoneName"===a[n].type)return a[n].value}(i,t):(n=i.format(t).replace(/\u200E/g,""),(r=/ [\w-+ ]+$/.exec(n))?r[0].substr(1):"")}var i=a(35871);function o(e,t){var a=e?(0,i.Z)(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(a))throw RangeError("Invalid time zone specified: "+e);return a}function u(e,t){for(var a=Math.abs(e).toString();a.length0?"-":"+")+u(Math.floor(a/60),2)+(t||"")+u(Math.floor(a%60),2)}function s(e,t){return e%60==0?(e>0?"-":"+")+u(Math.abs(e)/60,2):l(e,t)}var d={X:function(e,t,a,n){var r=o(n.timeZone,e);if(0===r)return"Z";switch(t){case"X":return s(r);case"XXXX":case"XX":return l(r);default:return l(r,":")}},x:function(e,t,a,n){var r=o(n.timeZone,e);switch(t){case"x":return s(r);case"xxxx":case"xx":return l(r);default:return l(r,":")}},O:function(e,t,a,n){var r,i,s,d,c=o(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+(r=c>0?"-":"+",s=Math.floor((i=Math.abs(c))/60),0==(d=i%60)?r+String(s):r+String(s)+":"+u(d,2));default:return"GMT"+l(c,":")}},z:function(e,t,a,n){switch(t){case"z":case"zz":case"zzz":return r("short",e,n);default:return r("long",e,n)}}},c=a(97580),f=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function m(e,t,a){var r=String(t),i=a||{},o=r.match(f);if(o){var u=(0,c.Z)(i.originalDate||e,i);r=o.reduce(function(e,t){if("'"===t[0])return e;var a=e.indexOf(t),n="'"===e[a-1],r=e.replace(t,"'"+d[t[0]](u,t,null,i)+"'");return n?r.substring(0,a-1)+r.substring(a+1):r},r)}return n(e,r,i)}},97580:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var n=a(20498),r=a(95463),i=a(35871),o={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:a(53669).Z};function u(e,t){if(arguments.length<1)throw TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var a=t||{},u=null==a.additionalDigits?2:n(a.additionalDigits);if(2!==u&&1!==u&&0!==u)throw RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var s=function(e){var t,a={},n=o.dateTimePattern.exec(e);if(n?(a.date=n[1],t=n[3]):(n=o.datePattern.exec(e))?(a.date=n[1],t=n[2]):(a.date=null,t=e),t){var r=o.timeZone.exec(t);r?(a.time=t.replace(r[1],""),a.timeZone=r[1].trim()):a.time=t}return a}(e),d=function(e,t){var a,n=o.YYY[t],r=o.YYYYY[t];if(a=o.YYYY.exec(e)||r.exec(e)){var i=a[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(a=o.YY.exec(e)||n.exec(e)){var u=a[1];return{year:100*parseInt(u,10),restDateString:e.slice(u.length)}}return{year:null}}(s.date,u),g=d.year,v=function(e,t){if(null===t)return null;if(0===e.length)return(n=new Date(0)).setUTCFullYear(t),n;if(a=o.MM.exec(e))return(n=new Date(0),f(t,r=parseInt(a[1],10)-1))?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=o.DDD.exec(e)){n=new Date(0);var a,n,r,i,u=parseInt(a[1],10);return!function(e,t){if(t<1)return!1;var a=c(e);return(!a||!(t>366))&&(!!a||!(t>365))}(t,u)?new Date(NaN):(n.setUTCFullYear(t,0,u),n)}if(a=o.MMDD.exec(e)){n=new Date(0),r=parseInt(a[1],10)-1;var s=parseInt(a[2],10);return f(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(a=o.Www.exec(e))return m(t,i=parseInt(a[1],10)-1)?l(t,i):new Date(NaN);if(a=o.WwwD.exec(e)){i=parseInt(a[1],10)-1;var d=parseInt(a[2],10)-1;return m(t,i,d)?l(t,i,d):new Date(NaN)}return null}(d.restDateString,g);if(isNaN(v)||!v)return new Date(NaN);var b,p=v.getTime(),w=0;if(s.time&&isNaN(w=function(e){if(t=o.HH.exec(e))return h(a=parseFloat(t[1].replace(",",".")))?a%24*36e5:NaN;if(t=o.HHMM.exec(e))return h(a=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")))?a%24*36e5+6e4*n:NaN;if(t=o.HHMMSS.exec(e)){a=parseInt(t[1],10),n=parseInt(t[2],10);var t,a,n,r=parseFloat(t[3].replace(",","."));return h(a,n,r)?a%24*36e5+6e4*n+1e3*r:NaN}return null}(s.time)))return new Date(NaN);if(s.timeZone||a.timeZone){if(isNaN(b=(0,i.Z)(s.timeZone||a.timeZone,new Date(p+w))))return new Date(NaN)}else b=r(new Date(p+w)),b=r(new Date(p+w+b));return new Date(p+w+b)}function l(e,t,a){t=t||0,a=a||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var r=7*t+a+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+r),n}var s=[31,28,31,30,31,30,31,31,30,31,30,31],d=[31,29,31,30,31,30,31,31,30,31,30,31];function c(e){return e%400==0||e%4==0&&e%100!=0}function f(e,t,a){if(t<0||t>11)return!1;if(null!=a){if(a<1)return!1;var n=c(e);if(n&&a>d[t]||!n&&a>s[t])return!1}return!0}function m(e,t,a){return!(t<0)&&!(t>52)&&(null==a||!(a<0)&&!(a>6))}function h(e,t,a){return(null==e||!(e<0)&&!(e>=25))&&(null==t||!(t<0)&&!(t>=60))&&(null==a||!(a<0)&&!(a>=60))}}}]);
\ No newline at end of file
diff --git a/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7592-1a7f29923c252d64_05Q6.js b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7592-1a7f29923c252d64_05Q6.js
new file mode 100644
index 0000000..5565ee2
--- /dev/null
+++ b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7592-1a7f29923c252d64_05Q6.js
@@ -0,0 +1 @@
+(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?`${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)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;n0?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;n1?i-1:0),o=1;o 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;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0){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;r1&&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=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=//i,l=//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;n1&&(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-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&&rs))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-1&&e%1==0&&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=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 Privacy Policy and Terms of Service.";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 Privacy Policy and agree to the Terms of Service.";break;default:"full"===d?(e="media-ui-core_policyAgreeUSFull",n="By continuing, I agree to the Privacy Policy and Terms of Service."):(e="media-ui-core_policyAgreeShort",n="By submitting my information, I agree to the Privacy Policy and Terms of Service.")}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," ");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 Privacy Policy and Terms of Service.","media-ui-core_policyAgreeOffers":"By continuing, I agree that Bloomberg may send me news and offers relating to Bloomberg products. I also acknowledge the Privacy Policy and agree to the Terms of Service.","media-ui-core_policyAgreeUSFull":"By continuing, I agree to the Privacy Policy and Terms of Service.","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 per page","media-ui-core_paginationPageOfTotal":"Page {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"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;ta;){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=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>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;r1)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=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;dt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.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"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{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;n0,"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"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;ta;){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=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>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;r1)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=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;dt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.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"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"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;ta;){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=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>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;r1)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=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;ut.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.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"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{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{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:"Quicktake: {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"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{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"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;ta;){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=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>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;r1)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=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;dt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.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"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{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{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;tsummary: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;nsummary: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;nm(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.receivedAtn.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"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>>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()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=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(...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(){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.scrollDelayMsthis._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._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{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{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{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;ne[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&&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-(Ie.y-t.y),n=[],i=null;for(let e=0;ei.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&&ce.top-p.top&&d=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;pn&&(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);gi&&(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}}}}]);
\ No newline at end of file
diff --git a/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7b2aa8f0ad07b6a5_05Q6.css b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7b2aa8f0ad07b6a5_05Q6.css
new file mode 100644
index 0000000..7ead129
--- /dev/null
+++ b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7b2aa8f0ad07b6a5_05Q6.css
@@ -0,0 +1 @@
+.typography_core___PiUD{font-family:var(--core-font-family)}.typography_coreHeadline__iR1us{font-weight:var(--core-headline-weight)}.typography_coreHeadlineXl__7GZ3g{font-size:var(--core-headline-xl)}.typography_coreHeadlineLg__4pD50,.typography_coreHeadlineXl__7GZ3g{line-height:var(--core-headline-leading-lg)}.typography_coreHeadlineLg__4pD50{font-size:var(--core-headline-lg)}.typography_coreHeadlineMd__VL3H_{font-size:var(--core-headline-md);line-height:var(--core-headline-leading-lg)}.typography_coreHeadlineSm__9qq05{font-size:var(--core-headline-sm)}.typography_coreHeadlineSm__9qq05,.typography_coreHeadlineXs__1HRyf{line-height:var(--core-headline-leading-sm)}.typography_coreHeadlineXs__1HRyf{font-size:var(--core-headline-xs)}.typography_coreHeadlineXxs__15mdH{font-size:var(--core-headline-xxs);line-height:var(--core-headline-leading-sm)}.typography_coreShortText__1G9y1{line-height:var(--core-short-text-leading)}.typography_coreShortTextMd__gVP5F{font-size:var(--core-short-text-md)}.typography_coreShortTextSm__wawsT{font-size:var(--core-short-text-sm)}.typography_coreShortTextXs__L4gUR{font-size:var(--core-short-text-xs)}.typography_coreShortTextXxs__b8YXl{font-size:var(--core-short-text-xxs)}.typography_coreParagraph__P_KwK{line-height:var(--core-paragraph-leading)}.typography_coreParagraphMd__QOyPx{font-size:var(--core-paragraph-md)}.typography_coreParagraphSm__8_os_{font-size:var(--core-paragraph-sm)}.typography_coreParagraphXs__fpk8d{font-size:var(--core-paragraph-xs)}.typography_coreParagraphXxs__wcE7E{font-size:var(--core-paragraph-xxs)}.typography_articleHeadline__rSLf2{font-family:var(--article-headline-font-family);font-weight:var(--article-headline-weight)}.typography_articleHeadlineXxl__lx2bS{font-size:var(--article-headline-xxl);letter-spacing:var(--article-headline-kerning-xxl)}.typography_articleHeadlineXl__THpmD,.typography_articleHeadlineXxl__lx2bS{line-height:var(--article-headline-leading-lg)}.typography_articleHeadlineXl__THpmD{font-size:var(--article-headline-xl);letter-spacing:var(--article-headline-kerning-xl)}.typography_articleHeadlineLg__J4FhV{font-size:var(--article-headline-lg);letter-spacing:var(--article-headline-kerning-lg)}.typography_articleHeadlineLg__J4FhV,.typography_articleHeadlineMd__6_Fnp{line-height:var(--article-headline-leading-lg)}.typography_articleHeadlineMd__6_Fnp{font-size:var(--article-headline-md);letter-spacing:var(--article-headline-kerning-md)}.typography_articleHeadlineSm__VYjpe{font-size:var(--article-headline-sm)}.typography_articleHeadlineSm__VYjpe,.typography_articleHeadlineXs__3r4_I{font-family:var(--article-headline-font-family-sm);line-height:var(--article-headline-leading-sm)}.typography_articleHeadlineXs__3r4_I{font-size:var(--article-headline-xs)}.typography_articleDek__KFY65{color:var(--article-dek-color);font-family:var(--article-headline-font-family-sm);font-size:var(--article-dek-size);line-height:var(--article-dek-line-height)}.typography_articleBody__3UcBa{font-family:var(--article-headline-font-family-serif);font-size:var(--article-body-size);line-height:var(--article-body-line-height)}.typography_articleLabelBase__Yv37a{font-family:var(--article-label-font-family);font-size:var(--article-label-size)}.typography_articleLabel__tmNTX{line-height:var(--article-label-leading)}.typography_articleLabelMd__CU6xM{font-weight:var(--article-label-md-weight)}.typography_articleLabelCaps__IQAHl{letter-spacing:var(--article-label-kerning-caps);text-transform:uppercase}.media-ui-QuickAddContainer_quickAddContainer-dFVyVLLoFNM-{position:relative;width:-moz-fit-content;width:fit-content}.media-ui-QuickAddContainer_quickAddContainer-dFVyVLLoFNM- .media-ui-QuickAddContainer_quickAddOverlay-XfWlg8PPCwA-{position:absolute;top:calc(100% + .25rem)}@media (max-width:767px){.media-ui-QuickAddContainer_quickAddContainer-dFVyVLLoFNM-.media-ui-QuickAddContainer_withButton-ZLDAe5wJo3w- .media-ui-QuickAddContainer_quickAddOverlay-XfWlg8PPCwA-{right:0}}@media (min-width:768px){.media-ui-QuickAddContainer_quickAddContainer-dFVyVLLoFNM-.media-ui-QuickAddContainer_withButton-ZLDAe5wJo3w- .media-ui-QuickAddContainer_quickAddOverlay-XfWlg8PPCwA-{left:0}}.media-ui-QuickAddContainer_quickAddContainer-dFVyVLLoFNM-.media-ui-QuickAddContainer_withIcon-UT6RAIbAwuE- .media-ui-QuickAddContainer_quickAddOverlay-XfWlg8PPCwA-{left:0}.media-ui-QuickAddContainer_floatingUI-SD1oZT--9Q4-{z-index:20}@media (max-width:767px){.media-ui-QuickAddContainer_floatingUI-SD1oZT--9Q4-{width:100%}}.media-ui-QuickAddRoundedToggle_quickAddRoundedToggle-ptkxSdQlGfU- [data-component=button]{padding:.25rem .75rem}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_baseBackground-xtN1SsCKNUk-{background-color:var(--color-black);color:var(--color-white)}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_baseBackground-xtN1SsCKNUk-:hover{background-color:var(--color-gray-800)}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-{border-color:var(--color-black);border-radius:624.9375rem;border-style:solid;border-width:1px;box-sizing:border-box;font-family:BWHaasGroteskWeb,BWHaasGroteskWeb-fallback,Helvetica,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1.3125rem;padding:.40625rem 1.25rem;transition-duration:.3s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_onlyIcon-5gacIog6Wyw-{line-height:1rem;padding:.5rem}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_small-lT037nV582M-{padding:.15625rem 1rem}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_small-lT037nV582M-.media-ui-RoundedToggleButton_onlyIcon-5gacIog6Wyw-{padding:.25rem}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_active-tGJxCkcd4qs-{background-color:var(--color-white);color:var(--color-black)}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_active-tGJxCkcd4qs-:hover{background-color:var(--color-gray-200)}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_withActiveHoverText-sezBn0KkvYg-:hover .media-ui-RoundedToggleButton_activeHoverText-aBcpR7Rz2-A-{height:100%;visibility:visible}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_withActiveHoverText-sezBn0KkvYg-:hover .media-ui-RoundedToggleButton_buttonText-iZD8r7vw2dA-{display:block;height:0;visibility:hidden}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_disabled-ZF3e7iYyTfg-{background-color:var(--color-gray-200);border-color:var(--color-gray-200);color:var(--color-gray-500);pointer-events:none}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-{background-color:var(--color-white);color:var(--color-black)}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-:hover{background-color:var(--color-gray-200)}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_active-tGJxCkcd4qs-{background-color:var(--color-black);color:var(--color-white)}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_active-tGJxCkcd4qs-:hover{background-color:var(--color-gray-900)}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_disabled-ZF3e7iYyTfg-{background-color:var(--color-gray-800);border-color:var(--color-gray-800);color:var(--color-gray-600)}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE- .media-ui-RoundedToggleButton_icon-aBoTvm8dx9c-{display:inline-block;height:1rem;vertical-align:text-bottom;width:1rem}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE-:not(.media-ui-RoundedToggleButton_onlyIcon-5gacIog6Wyw-) .media-ui-RoundedToggleButton_icon-aBoTvm8dx9c-{margin-right:.25rem}.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE- .media-ui-RoundedToggleButton_activeHoverText-aBcpR7Rz2-A-,.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE- .media-ui-RoundedToggleButton_activeText-BN8uCaLdf58-,.media-ui-RoundedToggleButton_RoundedToggleButton-jupSnVE3YEE- .media-ui-RoundedToggleButton_inactiveText-oxH0UlyuECc-{display:block;height:0;visibility:hidden}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-{background-color:transparent;border-radius:624.9375rem;border-width:1px;font-weight:500;text-align:center}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_small-lT037nV582M-{font-size:.875rem;line-height:100%;min-height:1.75rem;padding-left:1rem;padding-right:1rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_small-lT037nV582M-.media-ui-RoundedToggleButton_hasIcon-1KESsmUA3tU-{padding-left:1rem;padding-right:1rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_default-LkHoW8vAiNc-{font-size:.875rem;line-height:100%;min-height:2.25rem;padding-left:1.25rem;padding-right:1.25rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_default-LkHoW8vAiNc-.media-ui-RoundedToggleButton_hasIcon-1KESsmUA3tU-{padding-left:1rem;padding-right:1rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_large-rSzfjgURqI8-{font-size:.875rem;line-height:100%;min-height:2.75rem;padding-left:1.75rem;padding-right:1.75rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_large-rSzfjgURqI8-.media-ui-RoundedToggleButton_hasIcon-1KESsmUA3tU-{padding-left:1.5rem;padding-right:1.5rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ- .media-ui-RoundedToggleButton_activeHoverText-aBcpR7Rz2-A-,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ- .media-ui-RoundedToggleButton_activeText-BN8uCaLdf58-,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ- .media-ui-RoundedToggleButton_inactiveText-oxH0UlyuECc-{display:block;height:0;visibility:hidden}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_withActiveHoverText-sezBn0KkvYg-:hover .media-ui-RoundedToggleButton_activeHoverText-aBcpR7Rz2-A-{height:100%;margin-top:1px;visibility:visible}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_withActiveHoverText-sezBn0KkvYg-:hover .media-ui-RoundedToggleButton_buttonText-iZD8r7vw2dA-{display:block;height:0;visibility:hidden}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ- .media-ui-RoundedToggleButton_displayText--kigTOfr-QA-{display:inline-block;margin-top:1px;vertical-align:bottom}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ- .media-ui-RoundedToggleButton_icon-aBoTvm8dx9c-{display:inline-block}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-:not(.media-ui-RoundedToggleButton_onlyIcon-5gacIog6Wyw-) .media-ui-RoundedToggleButton_icon-aBoTvm8dx9c-{margin-right:.4375rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_onlyIcon-default-2tb91NOahjA-,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_onlyIcon-large-hGo3q1we174-,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_onlyIcon-small-Jlt6LsnJIxE-{margin:0;padding:0}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_onlyIcon-small-Jlt6LsnJIxE-{height:1.75rem;width:1.75rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_onlyIcon-default-2tb91NOahjA-{height:2.25rem;width:2.25rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_onlyIcon-default-2tb91NOahjA- .media-ui-RoundedToggleButton_icon-aBoTvm8dx9c-,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_onlyIcon-small-Jlt6LsnJIxE- .media-ui-RoundedToggleButton_icon-aBoTvm8dx9c-{font-size:1rem;height:1rem;line-height:100%;width:1rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_onlyIcon-large-hGo3q1we174-{height:2.75rem;width:2.75rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_onlyIcon-large-hGo3q1we174- .media-ui-RoundedToggleButton_icon-aBoTvm8dx9c-{font-size:1.25rem;height:1.25rem;line-height:100%;width:1.25rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_disabledActiveState-k5P5cvZeNsE-{pointer-events:none}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_unselectedState-KpIaF7jlw48-{background-color:var(--color-black);border-radius:624.9375rem}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_unselectedState-KpIaF7jlw48-:hover{background-color:var(--color-gray-800)}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_unselectedState-KpIaF7jlw48-{color:var(--color-white)!important}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_activeState-LfnJ0G-6rcg-,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_disabledActiveState-k5P5cvZeNsE-{background-color:var(--color-white);border-color:var(--color-black);border-radius:624.9375rem;border-width:1px}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_activeState-LfnJ0G-6rcg-:hover,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_disabledActiveState-k5P5cvZeNsE-:hover{background-color:var(--color-gray-200)}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_activeState-LfnJ0G-6rcg-,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_disabledActiveState-k5P5cvZeNsE-{color:var(--color-black)!important}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_light-YA1b8kWhA40-.media-ui-RoundedToggleButton_lockedState-jox5VwDvreI-{background-color:var(--color-gray-200);border-radius:624.9375rem;border-width:0;color:var(--color-gray-500)}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_unselectedState-KpIaF7jlw48-{background-color:var(--color-white)!important;border-radius:624.9375rem!important}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_unselectedState-KpIaF7jlw48-:hover{background-color:var(--color-gray-200)!important}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_unselectedState-KpIaF7jlw48-{color:var(--color-black)!important}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_activeState-LfnJ0G-6rcg-,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_disabledActiveState-k5P5cvZeNsE-{background-color:var(--color-black)!important;border-color:var(--color-white)!important;border-radius:624.9375rem!important;border-width:1px!important}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_activeState-LfnJ0G-6rcg-:hover,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_disabledActiveState-k5P5cvZeNsE-:hover{background-color:var(--color-gray-900)!important}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_activeState-LfnJ0G-6rcg-,.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_disabledActiveState-k5P5cvZeNsE-{color:var(--color-white)!important}.media-ui-RoundedToggleButton_roundedToggleButton-phoenix-jmYIcHhJdgQ-.media-ui-RoundedToggleButton_dark-BkYbon7-MNs-.media-ui-RoundedToggleButton_lockedState-jox5VwDvreI-{background-color:var(--color-gray-800)!important;border-radius:624.9375rem!important;border-width:0!important;color:var(--color-gray-600)}.media-ui-QuickAddIcon_quickAddIcon-wfQef1xSlVM-{align-items:center;color:var(--color-black);cursor:pointer;display:flex;width:-moz-fit-content;width:fit-content}.media-ui-QuickAddIcon_quickAddIcon-wfQef1xSlVM- .media-ui-QuickAddIcon_button-Y9zSvXSYXz8-{box-sizing:border-box;margin-right:.25rem}.media-ui-QuickAddIcon_quickAddIcon-wfQef1xSlVM- .media-ui-QuickAddIcon_button-Y9zSvXSYXz8-:not(:disabled):hover{opacity:1}.media-ui-QuickAddIcon_quickAddIcon-wfQef1xSlVM- .media-ui-QuickAddIcon_followText-9kAiCTBOXOE-{font-size:.875rem;font-weight:400;line-height:1.5}.media-ui-QuickAddIcon_quickAddIcon-wfQef1xSlVM-:hover{color:var(--color-gray-700)}.media-ui-QuickAddIcon_quickAddIcon-wfQef1xSlVM-:hover .media-ui-QuickAddIcon_button-Y9zSvXSYXz8-{border-color:var(--color-gray-700)}.media-ui-QuickAddIcon_quickAddIcon-wfQef1xSlVM-.media-ui-QuickAddIcon_small-oOgr2T24kFI- .media-ui-QuickAddIcon_button-Y9zSvXSYXz8- svg{height:1.25rem;width:1.25rem}.media-ui-QuickAddIcon_quickAddIcon-wfQef1xSlVM-.media-ui-QuickAddIcon_small-oOgr2T24kFI- .media-ui-QuickAddIcon_followText-9kAiCTBOXOE-{font-size:.75rem;line-height:1.5}.media-ui-InBodyAds_inBodyAd-mz0YfknFCIM-{height:22.5rem;position:relative;width:100%}@media (min-width:768px){.media-ui-InBodyAds_inBodyAd-mz0YfknFCIM-{height:19.3125rem}}.media-ui-InBodyAds_inBodyAd-mz0YfknFCIM-{align-items:center;display:flex;justify-content:center}@media screen and (max-width:649px){.media-ui-InBodyAds_inBodyAd-mz0YfknFCIM-{height:100vw;min-height:100vw}}.media-ui-SecurityName_securityName-WpFW87DcVnk-{display:flex;font-family:BWHaasGroteskWeb,BWHaasGroteskWeb-fallback,Helvetica,Arial,sans-serif;font-weight:500}.media-ui-SecurityName_securityName-WpFW87DcVnk-.media-ui-SecurityName_small-G7IYLPaXvF8-{font-size:.75rem;line-height:1.5}.media-ui-SecurityName_securityName-WpFW87DcVnk-.media-ui-SecurityName_default-rQcqATandWE-{font-size:.875rem;line-height:1.5}.media-ui-SecurityName_securityName-WpFW87DcVnk-.media-ui-SecurityName_large-ZrYZDDP-gFc-{font-size:1rem;line-height:1.5}.media-ui-SecurityName_securityName-WpFW87DcVnk-.media-ui-SecurityName_extraLarge-CPbNyHrfjZI-{font-size:1.875rem;font-weight:700;line-height:1.05}.media-ui-SecurityName_securityName-WpFW87DcVnk- .media-ui-SecurityName_link-EKXk-l7aiCM-:hover{text-decoration-line:underline}.media-ui-SecurityName_securityName-WpFW87DcVnk-.media-ui-SecurityName_default-rQcqATandWE-,.media-ui-SecurityName_securityName-WpFW87DcVnk-.media-ui-SecurityName_extraLarge-CPbNyHrfjZI-,.media-ui-SecurityName_securityName-WpFW87DcVnk-.media-ui-SecurityName_large-ZrYZDDP-gFc-,.media-ui-SecurityName_securityName-WpFW87DcVnk-.media-ui-SecurityName_small-G7IYLPaXvF8-{line-height:1}.media-ui-SecurityName_securityName-WpFW87DcVnk-.media-ui-SecurityName_isDark-uoCIz2EsjQI-{color:var(--color-white)}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ-{color:var(--color-white);font-family:AvenirNext,Avenir,sans-serif;font-size:.875rem;font-weight:600;line-height:1.2;text-decoration-line:none}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ- .media-ui-TerminalTout_background-ugfAG8JrlcE-{background-color:var(--color-black);padding:.75rem}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ- .media-ui-TerminalTout_background-ugfAG8JrlcE- .media-ui-TerminalTout_cta-MhehFIQemMA-{font-size:.75rem}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ- .media-ui-TerminalTout_background-ugfAG8JrlcE- .media-ui-TerminalTout_cta-MhehFIQemMA- .media-ui-TerminalTout_icon-UNnzMeAfRHw-{display:inline-block}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ-:not(.media-ui-TerminalTout_centerAligned-dU4kQ27OR90-) .media-ui-TerminalTout_background-ugfAG8JrlcE-{max-width:16rem}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ-:not(.media-ui-TerminalTout_centerAligned-dU4kQ27OR90-) .media-ui-TerminalTout_background-ugfAG8JrlcE- .media-ui-TerminalTout_info-7hWexZP6x-U-{display:flex;flex-direction:column;margin-bottom:.25rem}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ-.media-ui-TerminalTout_centerAligned-dU4kQ27OR90-{text-align:center}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ-.media-ui-TerminalTout_centerAligned-dU4kQ27OR90- .media-ui-TerminalTout_info-7hWexZP6x-U- .media-ui-TerminalTout_highlight-LKP-y7t--IQ-{text-decoration-color:var(--color-gray-500);text-decoration-line:underline;text-underline-offset:.1875rem}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ-.media-ui-TerminalTout_centerAligned-dU4kQ27OR90- .media-ui-TerminalTout_cta-MhehFIQemMA-{display:none}.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ-:hover .media-ui-TerminalTout_background-ugfAG8JrlcE- .media-ui-TerminalTout_cta-MhehFIQemMA-,.media-ui-TerminalTout_terminalTout-jMmQ--E35FQ-:hover.media-ui-TerminalTout_centerAligned-dU4kQ27OR90- .media-ui-TerminalTout_info-7hWexZP6x-U- .media-ui-TerminalTout_highlight-LKP-y7t--IQ-{color:var(--color-gray-300)}
\ No newline at end of file
diff --git a/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/8097-f7abdb73bed136f5_05Q6.js b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/8097-f7abdb73bed136f5_05Q6.js
new file mode 100644
index 0000000..190ad82
--- /dev/null
+++ b/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/8097-f7abdb73bed136f5_05Q6.js
@@ -0,0 +1,116 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8097],{69076:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{static _instance;constructor(){if(this.constructor._instance)throw Error("Cannot create multiple instances; use getInstance()")}static getInstance(){if(!this._instance)throw Error("Singleton has not been initialized yet!");return this._instance}static init(...e){return this._instance||(this._instance=new this(...e)),this._instance}static resetInstance(){this._instance=null}}t.default=r},39727:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(45011),i=r(34727),a=n(r(69076)),s=r(20991);class u extends a.default{host;#e;#t;constructor(e){if(super(),!e.host)throw Error("No host passed to ContentServiceClient constructor; aborting");if(!e.username)throw Error("No username passed to ContentServiceClient constructor; aborting");if(!e.password)throw Error("No password passed to ContentServiceClient constructor; aborting");this.host=e.host,this.#e=e.username,this.#t=e.password}getAuthHeader(){return{Authorization:`Basic ${btoa(`${this.#e}:${this.#t}`)}`}}getV1StoriesSearchBy=async e=>{e&&this.validateGetV1StoriesSearchBy(e);let t=(0,i.stringifyParams)(e),r=`${this.host}/v1/search?${t}`,n=await fetch(r,{headers:this.getAuthHeader()}),o=await n.json();if(!n.ok)throw new s.ContentServiceClientError({errorResponse:o,status:n.status,url:r});return o};getV1StoriesBySlug=async()=>{};postV1StoriesSearchBy=async e=>{e&&this.validatePostV1StoriesSearchBy(e);let t=`${this.host}/v1/search`,r=await fetch(t,{method:"POST",headers:this.getAuthHeader(),body:JSON.stringify({filter:{params:e}})}),n=await r.json();if(!r.ok)throw new s.ContentServiceClientError({errorResponse:n,status:r.status,url:t});return n};validateGetV1StoriesSearchBy=e=>(Object.entries(e).forEach(([e,t])=>{if(e.length>200)throw Error(`Invalid key passed to ContentServiceClient.getV1StoriesSearchBy: ${e} exceeds length limit`);if(!e.toString().match(o.VALID_REGEX.objectKey))throw Error(`Invalid key passed to ContentServiceClient.getV1StoriesSearchBy: ${e}`);if(t.toString().length>200)throw Error(`Invalid value passed to ContentServiceClient.getV1StoriesSearchBy: ${t} exceeds length limit`);if(!t.toString().match(o.VALID_REGEX.objectValue))throw Error(`Invalid value passed to ContentServiceClient.getV1StoriesSearchBy with ${e}: ${t}`)}),!0);validatePostV1StoriesSearchBy=e=>(Object.entries(e).forEach(([e,t])=>{if(e.length>200)throw Error(`Invalid key passed to ContentServiceClient.postV1StoriesSearchBy: ${e} exceeds length limit`);if(!e.toString().match(o.VALID_REGEX.objectKey))throw Error(`Invalid key passed to ContentServiceClient.postV1StoriesSearchBy: ${e}`);if("object"==typeof t&&!t)throw Error(`Invalid value passed to ContentServiceClient.postV1StoriesSearchBy with ${e}: ${t}`);if("object"!=typeof t){if(t&&t.toString().length>200)throw Error(`Invalid value passed to ContentServiceClient.postV1StoriesSearchBy: ${t} exceeds length limit`);if(t&&!t.toString().match(o.VALID_REGEX.objectValue))throw Error(`Invalid value passed to ContentServiceClient.postV1StoriesSearchBy with ${e}: ${t}`)}}),!0)}t.default=u},20991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentServiceClientError=void 0;class r extends Error{url;status;errorResponse;constructor({errorResponse:e,status:t,url:r}){super(JSON.stringify(e)),this.name="ContentServiceClientError",this.status=t,this.url=r,this.errorResponse=e}}t.ContentServiceClientError=r},74324:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentServiceSite=t.ContentServiceStoryType=void 0,(r=t.ContentServiceStoryType||(t.ContentServiceStoryType={})).article="article",r.breaking_news="breaking_news",r.data_article="data_article",r.slideshow="slideshow",r.impact_scorecard="impact_scorecard",r.interactive="interactive",r.feature="feature",r.quicktake="quicktake",r.video="video",r.letter="letter",r.newsletter_campaign="newsletter_campaign",r.author_session="author_session",r.liveblog="liveblog",(n=t.ContentServiceSite||(t.ContentServiceSite={})).Business="BBIZ",n.Businessweek="BUSINESSWEEK",n.Citylab="CITYLAB",n.Cojp="COJP",n.Crypto="CRYPTO",n.Economics="ECONOMICS",n.Equality="EQUALITY",n.Gadfly="GADFLY",n.Green="GREEN",n.Industries="INDUSTRIES",n.Markets="MARKETS",n.MarketsMagazine="MARKETS_MAGAZINE",n.Politics="BPOL",n.Pursuits="PURSUITS",n.Quicktake="QUICKTAKE",n.Sponsored="SPONSORED",n.Technology="TECHNOLOGY",n.View="VIEW",n.Wealth="WEALTH",n.WorkShift="WORK_SHIFT"},93148:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContentServiceClient=void 0;var a=r(39727);Object.defineProperty(t,"ContentServiceClient",{enumerable:!0,get:function(){return i(a).default}}),o(r(20991),t),o(r(74324),t)},77846:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(45011),i=r(34727),a=n(r(69076)),s=r(12792),u=r(59315);class l extends a.default{host;#e;#t;constructor(e){if(super(),!e.host)throw Error("No host passed to DaperClient constructor; aborting");if(!e.username)throw Error("No username passed to DaperClient constructor; aborting");if(!e.password)throw Error("No password passed to DaperClient constructor; aborting");this.host=e.host,this.#e=e.username,this.#t=e.password}getAuthHeader(){return{Authorization:`Basic ${btoa(`${this.#e}:${this.#t}`)}`}}async getFinanceReferenceSecurities(e){this.validateGetFinanceReferenceSecurities(e);let t=(0,i.stringifyParams)(e),r=`${this.host}/finance/reference?${t}&fields=${Object.keys(s.CLCRT).join(",")}`,n=await fetch(r,{headers:this.getAuthHeader()}),o=await n.json();if(!n.ok){let e=o.error;throw new u.DaperClientError({errorResponse:e,status:n.status,url:r})}return Object.entries(o.value.data).map(([e,t])=>Object.entries(s.CLCRT_FIELDS).reduce((r,[n,o])=>({...r,[n]:t[o],ticker:e}),{}))}async getFinanceMoversSecurities(e){this.validateGetFinanceMoversSecurities(e);let t=Object.keys(s.CLCRT),r=(0,i.stringifyParams)({...e,fields:t}),n=`${this.host}/finance/indices/${e.index}/movers?${r}`,o=await fetch(n,{headers:this.getAuthHeader()}),a=await o.json();if(!o.ok){let e=a.error;throw new u.DaperClientError({errorResponse:e,status:o.status,url:n})}return Object.entries(a.value.data[e.criteria]).map(([e,t])=>Object.entries(s.CLCRT_FIELDS).reduce((r,[n,o])=>({...r,[n]:t[o],ticker:e}),{}))}async getLiveSched(e){this.validateGetLiveSched(e);let t={};e.startTime&&(t.startTime=e.startTime),e.endTime&&(t.endTime=e.endTime);let r=(0,i.stringifyParams)(t),n=`${this.host}/livesched/shows/${e.channel}?${r}`,o=await fetch(n,{headers:this.getAuthHeader()}),a=await o.json();if(!o.ok){let e=a.error;throw new u.DaperClientError({errorResponse:e,status:o.status,url:n})}return a.value}async getRecordBySlug(e){this.validateGetRecordBySlug(e);let t=`${this.host}/records/${encodeURIComponent(e.slug)}`,r=await fetch(t,{headers:this.getAuthHeader()}),n=await r.json();if(!r.ok){let e=n.error;throw new u.DaperClientError({errorResponse:e,status:r.status,url:t})}return n.value}async getAudiosBulk(e){this.validateGetAudiosBulk(e);let t=(0,i.stringifyParams)(e),r=`${this.host}/audios/bulk?${t}`,n=await fetch(r,{headers:this.getAuthHeader()}),o=await n.json();if(!n.ok){let e=o.error;throw new u.DaperClientError({errorResponse:e,status:n.status,url:r})}return o.value}async getImagesBulk(e){this.validateGetImagesBulk(e);let t=(({imageIds:e,...t})=>t)({...e,ids:e.imageIds}),r=(0,i.stringifyParams)(t),n=`${this.host}/images/bulk?${r}`,o=await fetch(n,{headers:this.getAuthHeader()}),a=await o.json();if(!o.ok){let e=a.error;throw new u.DaperClientError({errorResponse:e,status:o.status,url:n})}return a.value}async getVideoById(e){this.validateGetVideoById(e);let t=`${this.host}/videos/${encodeURIComponent(e.id)}?idType=AVMM`,r=await fetch(t,{headers:this.getAuthHeader()}),n=await r.json();if(!r.ok){let e=n.error;throw new u.DaperClientError({errorResponse:e,status:r.status,url:t})}return n.value.video}async getImageById(e){this.validateGetImageById(e);let t=`${this.host}/images/${encodeURIComponent(e.id)}?idType=${e.idType}`,r=await fetch(t,{headers:this.getAuthHeader()}),n=await r.json();if(!r.ok){let e=n.error;throw new u.DaperClientError({errorResponse:e,status:r.status,url:t})}return n.value?.image}async getNewsletters(){let e=`${this.host}/newsletters`,t=await fetch(e,{headers:this.getAuthHeader()}),r=await t.json();if(!t.ok){let n=r.error;throw new u.DaperClientError({errorResponse:n,status:t.status,url:e})}return r.value.data}async getNewslettersBySlug(e){this.validateGetNewslettersBySlug(e);let t=(0,i.stringifyParams)(e),r=`${this.host}/newsletters?${t}`,n=await fetch(r,{headers:this.getAuthHeader()}),o=await n.json();if(!n.ok){let e=o.error;throw new u.DaperClientError({errorResponse:e,status:n.status,url:r})}return o.value.data}async getPersonById(e){this.validateGetPersonById(e);let t=`${this.host}/people/id/${e.id}`,r=await fetch(t,{headers:this.getAuthHeader()}),n=await r.json();if(!r.ok){let e=n.error;throw new u.DaperClientError({errorResponse:e,status:r.status,url:t})}return n.value}async getThumbnailImagesByAVMMId(e){this.validateGetThumbnailImagesByAVMMId(e);let t=(0,i.stringifyParams)(e),r=`${this.host}/images/thumbnail/${e.id}?${t}`,n=await fetch(r,{headers:this.getAuthHeader()}),o=await n.json();if(!n.ok){let e=o.error;throw new u.DaperClientError({errorResponse:e,status:n.status,url:r})}return o.value.image}async getSecuritiesSearchBy(e){this.validateGetSecuritiesSearchBy(e);let t=`${this.host}/securities/search?size=${e.size}&from=${e.from}`,r=await fetch(t,{headers:this.getAuthHeader()}),n=await r.json();if(!r.ok){let e=n.error;throw new u.DaperClientError({errorResponse:e,status:r.status,url:t})}return n.value.hits}async getSecuritiesTotalHits(){let e=`${this.host}/securities/search?size=0&from=0`,t=await fetch(e,{headers:this.getAuthHeader()}),r=await t.json();if(!t.ok){let n=r.error;throw new u.DaperClientError({errorResponse:n,status:t.status,url:e})}return r.value.totalHits}async getStoriesSearchBy(e){this.validateGetStoriesSearchBy(e);let t=(0,i.stringifyParams)(e),r=`${this.host}/stories/search?${t}`,n=await fetch(r,{headers:this.getAuthHeader()}),o=await n.json();if(!n.ok){let e=o.error;throw new u.DaperClientError({errorResponse:e,status:n.status,url:r})}return o.value.items}async getStoriesSearchLast(e,t){this.validateGetStoriesSearchLast(e,t);let r=(0,i.stringifyParams)(t),n=`${this.host}/stories/search/last/${e.field}/${e.period}/${e.units}?${r}`,o=await fetch(n,{headers:this.getAuthHeader()}),a=await o.json();if(!o.ok){let e=a.error;throw new u.DaperClientError({errorResponse:e,status:o.status,url:n})}return a.value.items}async getStoriesBySlug(e){this.validateGetStoriesBySlug(e);let t=`${this.host}/stories/slug/${encodeURIComponent(e.slug)}`,r=await fetch(t,{headers:this.getAuthHeader()}),n=await r.json();if(!r.ok){let e=n.error;throw new u.DaperClientError({errorResponse:e,status:r.status,url:t})}return n.value}async getStoryById(e){this.validateGetStoryById(e);let t=`${this.host}/stories/id/${encodeURIComponent(e.id)}`,r=await fetch(t,{headers:this.getAuthHeader()}),n=await r.json();if(!r.ok){let e=n.error;throw new u.DaperClientError({errorResponse:e,status:r.status,url:t})}return n.value}async getCurationsSitemap(){let e=`${this.host}/curations/business/sitemap`,t=await fetch(e,{headers:this.getAuthHeader()}),r=await t.json();if(!t.ok){let n=r.error;throw new u.DaperClientError({errorResponse:n,status:t.status,url:e})}return r.value.items}validateGetFinanceReferenceSecurities=e=>{if(!e.securities||0===e.securities.length)throw Error("Missing required parameter for DaperClient.getFinanceReferenceSecurities: securities");return e.securities.forEach(e=>{if("string"!=typeof e||!e.match(o.VALID_REGEX.security))throw Error(`Invalid security passed to DaperClient.getFinanceReferenceSecurities: ${e}`);if(e.length>20)throw Error(`Invalid security passed to DaperClient.getFinanceReferenceSecurities: ${e} exceeds length limit`)}),!0};validateGetSecuritiesSearchBy=e=>{if(e.size<0||"number"!=typeof e.size)throw Error("Missing required parameter for DaperClient.getSecuritiesSearchBy: size");if(e.from<0||"number"!=typeof e.from)throw Error("Missing required parameter for DaperClient.getSecuritiesSearchBy: from");if(e.size>1e4)throw Error(`Invalid size passed to DaperClient.getSecuritiesSearchBy: ${e.size} exceeds size limit of 10000`);return!0};validateGetFinanceMoversSecurities=e=>{if(!e.index||"string"!=typeof e.index)throw Error("Missing required parameter for DaperClient.getFinanceMoversSecurities: index");if(e.index.length>20)throw Error(`Invalid index passed to DaperClient.getFinanceMoversSecurities: ${e.index} exceeds length limit`);if(!e.criteria||!Object.values(s.DaperFinanceReferenceCriteria).includes(e.criteria))throw Error(`Invalid criteria passed to DaperClient.getFinanceMoversSecurities: ${e.criteria}`);return!0};validateGetRecordBySlug(e){if(null===e.slug||void 0===e.slug||""===e.slug)throw Error("Missing required parameter for DaperClient.getRecordBySlug: slug");if("string"!=typeof e.slug)throw Error(`Invalid parameter type for DaperClient.getRecordBySlug: slug. Expected: "string". Received: "${typeof e.slug}"`);if(!e.slug.match(o.VALID_REGEX.slug))throw Error(`Invalid slug passed to DaperClient.getRecordBySlug: "${e.slug}"`);if(e.slug.length>100)throw Error(`Invalid slug passed to DaperClient.getRecordBySlug: "${e.slug}" exceeds length limit`);return!0}validateGetAudiosBulk=e=>{if(!e.ids)throw Error("Missing required parameter for DaperClient.getAudiosBulk: ids");if("string"!=typeof e.ids||!e.ids.match(o.VALID_REGEX.ids))throw Error(`Invalid ids passed to DaperClient.getAudiosBulk: ${e.ids}`);if(e.ids.length>200)throw Error(`Invalid ids passed to DaperClient.getAudiosBulk: ${e.ids} exceeds length limit`);return!0};validateGetImagesBulk=({imageIds:e})=>{if(!e)throw Error("Missing required parameter for DaperClient.getImagesBulk: imageIds");if(!Array.isArray(e))throw Error(`Invalid imageIds passed to DaperClient.getImagesBulk: imageIds must be an array. Non-array imageIds: ${e}`);if(!e.every(e=>"string"==typeof e))throw Error(`Invalid imageIds passed to DaperClient.getImagesBulk: imageIds must be an array of string. Non-string imageId: ${e.find(e=>"string"!=typeof e)}`);if(e.length>200)throw Error(`Invalid imageIds passed to DaperClient.getImagesBulk: ${e} exceeds length limit`);return!0};validateGetVideoById=e=>{if(!e.id)throw Error("Missing required parameter for DaperClient.getVideoById: id");if("string"!=typeof e.id||!e.id.match(o.VALID_REGEX.id))throw Error(`Invalid id passed to DaperClient.getVideoById: ${e.id}`);if(e.id.length>100)throw Error(`Invalid id passed to DaperClient.getVideoById: ${e.id} exceeds length limit`);return!0};validateGetImageById=e=>{if(!e.id)throw Error("Missing required parameter for DaperClient.getImageById: id");if("string"!=typeof e.id||!e.id.match(o.VALID_REGEX.id))throw Error(`Invalid id passed to DaperClient.getImageById: ${e.id}`);if(e.id.length>100)throw Error(`Invalid id passed to DaperClient.getImageById: ${e.id} exceeds length limit`);return!0};validateGetNewslettersBySlug=e=>{if(!e.slug)throw Error("Missing required parameter for DaperClient.getNewslettersBySlug: slug");if("string"!=typeof e.slug||!e.slug.match(o.VALID_REGEX.slug))throw Error(`Invalid slug passed to DaperClient.getNewslettersBySlug: ${e.slug}`);if(e.slug.length>100)throw Error(`Invalid slug passed to DaperClient.getNewslettersBySlug: ${e.slug} exceeds length limit`);return!0};validateGetPersonById=e=>{if(!e.id)throw Error("Missing required parameter for DaperClient.getPersonById: id");if(!e.id.match(o.VALID_REGEX.id))throw Error(`Invalid slug passed to DaperClient.getPersonById: ${e.id}`);if(e.id.length>100)throw Error(`Invalid slug passed to DaperClient.getPersonById: ${e.id} exceeds length limit`);return!0};validateGetStoriesBySlug=e=>{if(!e.slug)throw Error("Missing required parameter for DaperClient.getStoriesBySlug: slug");if("string"!=typeof e.slug||!e.slug.match(o.VALID_REGEX.slug))throw Error(`Invalid slug passed to DaperClient.getStoriesBySlug: ${e.slug}`);if(e.slug.length>100)throw Error(`Invalid slug passed to DaperClient.getStoriesBySlug: ${e.slug} exceeds length limit`);return!0};validateGetLiveSched=e=>{if(!e.channel)throw Error("Missing required parameter for DaperClient.getLiveSched: channel");if("string"!=typeof e.channel)throw Error(`Invalid channel passed to DaperClient.getLiveSched: ${e.channel}`);return!0};validateGetStoryById=e=>{if(!e.id)throw Error("Missing required parameter for DaperClient.getStoryById: id");if("string"!=typeof e.id||!e.id.match(o.VALID_REGEX.id))throw Error(`Invalid slug passed to DaperClient.getStoryById: ${e.id}`);if(e.id.length>100)throw Error(`Invalid slug passed to DaperClient.getStoryById: ${e.id} exceeds length limit`);return!0};validateGetThumbnailImagesByAVMMId=e=>{if(!e.id)throw Error("Missing required parameter in DaperClient.getThumbnailImagesByAVMMId: id");if(e.idType&&!Object.keys(s.DaperImageIdType).includes(e.idType))throw Error(`Invalid idType passed to DaperClient.getThumbnailImagesByAVMMId: ${e.idType}`);return Object.entries(e).forEach(([e,t])=>{if(e.length>200)throw Error(`Invalid key passed to DaperClient.getThumbnailImagesByAVMMId: ${e} exceeds length limit`);if(!e.toString().match(o.VALID_REGEX.objectKey))throw Error(`Invalid key passed to DaperClient.getThumbnailImagesByAVMMId: ${e}`);if(t.toString().length>200)throw Error(`Invalid value passed to DaperClient.getThumbnailImagesByAVMMId: ${t} exceeds length limit`);if(!t.toString().match(o.VALID_REGEX.objectValue))throw Error(`Invalid value passed to DaperClient.getThumbnailImagesByAVMMId: ${t}`)}),!0};validateGetStoriesSearchLast=(e,t)=>{if(!e.field)throw Error("No value passed for field to DaperClient.validateGetStoriesSearchLast");if(!e.period)throw Error("No value passed for period to DaperClient.validateGetStoriesSearchLast");if(!e.units)throw Error("No value passed for units to DaperClient.validateGetStoriesSearchLast");return this.validateGetStoriesSearchBy(t)};validateGetStoriesSearchBy=e=>{if(e.primarySites&&!e.primarySites.every(e=>Object.values(s.DaperStorySite).includes(e)))throw Error(`Invalid site in primarySites passed to DaperClient.getStoriesSearchBy: ${e.primarySites}`);if(e.type&&!e.type.every(e=>Object.values(s.DaperStoryType).includes(e)))throw Error(`Invalid story type in type passed to DaperClient.getStoriesSearchBy: ${e.type}`);return Object.entries(e).forEach(([e,t])=>{if(e.length>200)throw Error(`Invalid key passed to DaperClient.getStoriesSearchBy: ${e} exceeds length limit`);if(!e.toString().match(o.VALID_REGEX.objectKey))throw Error(`Invalid key passed to DaperClient.getStoriesSearchBy: ${e}`);if("object"==typeof t&&!t)throw Error(`Invalid value passed to DaperClient.getStoriesSearchBy with ${e}: ${t}`);if("object"!=typeof t){if(t.toString().length>200)throw Error(`Invalid value passed to DaperClient.getStoriesSearchBy: ${t} exceeds length limit`);if(!t.toString().match(o.VALID_REGEX.objectValue))throw Error(`Invalid value passed to DaperClient.getStoriesSearchBy: ${t}`)}}),!0}}t.default=l},59315:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DaperClientError=void 0;class r extends Error{url;errorResponse;status;constructor({errorResponse:e,status:t,url:r}){super(JSON.stringify(e)),this.name="DaperClientError",this.status=t,this.url=r,this.errorResponse=e}}t.DaperClientError=r},12792:function(e,t){"use strict";var r,n,o,i,a,s,u,l,c,f,p;Object.defineProperty(t,"__esModule",{value:!0}),t.DaperTimeRangeUnits=t.DaperImageIdType=t.DaperLocale=t.DaperStoryBrand=t.DaperStoryType=t.DaperStorySite=t.DaperFinanceReferenceCriteria=t.CLCRT_FIELDS=t.SecurityProperty=t.CLCRT=void 0,(o=r=t.CLCRT||(t.CLCRT={})).DS003="DS003",o.DS520="DS520",o.PR005="PR005",o.PR051="PR051",o.DS001="DS001",o.UTIME="UTIME",o.DS458="DS458",o.PR006="PR006",o.PR061="PR061",o.PR007="PR007",o.PR008="PR008",o.PR070="PR070",o.DS002="DS002",o.PR052="PR052",o.PR013="PR013",(i=n=t.SecurityProperty||(t.SecurityProperty={})).companyName="companyName",i.name="name",i.price="price",i.id="id",i.lastUpdateUTC="lastUpdateUTC",i.isoCountry="isoCountry",i.open="open",i.high="high",i.low="low",i.volume="volume",i.absoluteChange="absoluteChange",i.percentChange1Day="percentChange1Day",i.percentChange1Month="percentChange1Month",i.percentChange1Year="percentChange1Year",i.exchange="exchange",t.CLCRT_FIELDS={[n.companyName]:r.DS002,[n.name]:r.DS520,[n.price]:r.PR005,[n.id]:r.DS001,[n.lastUpdateUTC]:r.UTIME,[n.isoCountry]:r.DS458,[n.open]:r.PR006,[n.high]:r.PR007,[n.low]:r.PR008,[n.volume]:r.PR013,[n.absoluteChange]:r.PR051,[n.percentChange1Day]:r.PR052,[n.percentChange1Month]:r.PR061,[n.percentChange1Year]:r.PR070,[n.exchange]:r.DS003},(a=t.DaperFinanceReferenceCriteria||(t.DaperFinanceReferenceCriteria={})).PERCENT_UP="PERCENT_UP",a.PERCENT_DOWN="PERCENT_DOWN",a.VOLUME="VOLUME",(s=t.DaperStorySite||(t.DaperStorySite={})).gadfly="gadfly",s.quicktake="quicktake",s.bbiz="bbiz",s.bpol="bpol",s.cybersecurity="cybersecurity",s["climate-changed"]="climate-changed",s.businessweek="businessweek",s["special-issue"]="special-issue",s["new-economy-forum"]="new-economy-forum",s.markets="markets",s.bloomberg_app="bloomberg_app",s.bview="bview",s.business_week_app="business_week_app",s.technology="technology",s.pursuits="pursuits",s.btv="btv",s.apple_news="apple_news",s.cojp="cojp",s.sponsored="sponsored",s.feeds="feeds",s.socialflow="socialflow",s.tictoc="tictoc",s.hyperdrive="hyperdrive",s.prognosis="prognosis",s.green="green",s.screentime="screentime",s.citylab="citylab",s.wealth="wealth",s.equality="equality",s.syndication="syndication",s.newsletters="newsletters",s.economics="economics",s.crypto="crypto",s["markets-magazine"]="markets-magazine",s.industries="industries",s["work-shift"]="work-shift",s["weekend-edition"]="weekend-edition",(u=t.DaperStoryType||(t.DaperStoryType={})).article="article",u.audio="audio",u.photo="photo",u.breaking_news="breaking_news",u.data_article="data_article",u.slideshow="slideshow",u.impact_scorecard="impact_scorecard",u.interactive="interactive",u.feature="feature",u.quicktake="quicktake",u.video="video",u.letter="letter",u.newsletter_campaign="newsletter_campaign",u.author_session="author_session",u.storythread="storythread",u.liveblog="liveblog",u.explainers="explainers",(l=t.DaperStoryBrand||(t.DaperStoryBrand={})).bview="bview",l.gadfly="gadfly",l.quicktake="quicktake",l.bbiz="bbiz",l.bpol="bpol",l.businessweek="businessweek",l.markets="markets",l.technology="technology",l.pursuits="pursuits",l.cojp="cojp",l.sponsored="sponsored",l.green="green",l.citylab="citylab",l.wealth="wealth",l.equality="equality",l.economics="economics",l.industries="industries",l.crypto="crypto",l["work-shift"]="work-shift",l["markets-magazine"]="markets-magazine",(c=t.DaperLocale||(t.DaperLocale={})).en="en",c.ja="ja",(f=t.DaperImageIdType||(t.DaperImageIdType={})).AVMM="AVMM",f.BMMR="BMMR",f.OOYALA="OOYALA",(p=t.DaperTimeRangeUnits||(t.DaperTimeRangeUnits={})).minute="minute",p.hour="hour",p.week="week",p.month="month",p.year="year"},35099:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DaperClient=void 0;var a=r(77846);Object.defineProperty(t,"DaperClient",{enumerable:!0,get:function(){return i(a).default}}),o(r(59315),t),o(r(12792),t)},37848:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediaGatewayClientError=void 0;class r extends Error{url;status;errorResponse;constructor({errorResponse:e,status:t,url:r}){super(JSON.stringify(e)),this.name="MediaGatewayClientError",this.status=t,this.url=r,this.errorResponse=e}}t.MediaGatewayClientError=r},35312:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(69076)),i=r(37848),a=r(21391);class s extends o.default{#r;#t;#e;constructor(e){if(super(),!e.host)throw Error("No host passed to MediaGatewayClient constructor; aborting");if(!e.username)throw Error("No username passed to MediaGatewayClient constructor; aborting");if(!e.password)throw Error("No password passed to MediaGatewayClient constructor; aborting");this.#r=`${e.host}/graphql`,this.#e=e.username,this.#t=e.password}getAuthHeader(){return{Authorization:`Basic ${btoa(`${this.#e}:${this.#t}`)}`}}async getUserBookmarks({bconnectId:e}){this.validateGetUserBookmarks({bconnectId:e});let t={operationName:"getUserBookmarks",variables:{bconnectId:e},query:a.USER_BOOKMARKS_QUERY},r=this.#n(t),n=await fetch(this.#r,r),o=await n.json();if(!n.ok)throw new i.MediaGatewayClientError({errorResponse:o.errors,status:n.status,url:this.#r});return o?.data?.userBookmarks.bookmarks}async getUserProfile({bconnectId:e,sessionId:t}){this.validateGetUserProfile({bconnectId:e,sessionId:t});let r={operationName:"getUserProfile",variables:{userIdentity:{bconnectId:e,sessionId:t}},query:a.USER_PROFILE_QUERY},n=this.#n(r),o=await fetch(this.#r,n),s=await o.json();if(!o.ok)throw new i.MediaGatewayClientError({errorResponse:s.errors,status:o.status,url:this.#r});return s?.data?.user.profile}#n=e=>({method:"POST",headers:{"Content-Type":"application/json",...this.getAuthHeader()},body:JSON.stringify(e)});validateGetUserBookmarks=({bconnectId:e})=>{if(!e)throw Error(`[getUserBookmarks] Missing params - bconnectId=${e}`)};validateGetUserProfile=({bconnectId:e,sessionId:t})=>{if(!e)throw Error("[getUserProfile] Missing param - bconnectId");if(!t)throw Error("[getUserProfile] Missing param - sessionId")}}t.default=s},64121:function(e,t){"use strict";var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.SortOrder=t.SortBy=t.ContentType=void 0,(r=t.ContentType||(t.ContentType={})).Article="ARTICLE",r.Audio="AUDIO",r.Video="VIDEO",(n=t.SortBy||(t.SortBy={})).PublishedDate="PUBLISHED_DATE",n.SavedDate="SAVED_DATE",(o=t.SortOrder||(t.SortOrder={})).Asc="ASC",o.Desc="DESC"},71134:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MediaGatewayClient=void 0;var a=r(35312);Object.defineProperty(t,"MediaGatewayClient",{enumerable:!0,get:function(){return i(a).default}}),o(r(37848),t),o(r(64121),t)},21391:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USER_PROFILE_QUERY=t.USER_BOOKMARKS_QUERY=void 0,t.USER_BOOKMARKS_QUERY=`
+ query getUserBookmarks($bconnectId: ID!) {
+ userBookmarks(bconnectId: $bconnectId) {
+ bookmarks {
+ contentId
+ contentType
+ id
+ publishedDate
+ readDate
+ savedDate
+ }
+ }
+ }
+`,t.USER_PROFILE_QUERY=`
+ query getUserProfile($userIdentity: UserIdentityInput) {
+ user(userIdentity: $userIdentity) {
+ profile {
+ industry
+ jobTitle
+ }
+ }
+ }
+`},65068:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PersonalizationClientError=void 0;class r extends Error{url;errorResponse;status;constructor({errorResponse:e,status:t,url:r}){super(JSON.stringify(e)),this.name="PersonalizationClientError",this.status=t,this.url=r,this.errorResponse=e}}t.PersonalizationClientError=r},88736:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let s=i(r(30096)),u=r(34727),l=a(r(69076)),c=r(35999),f=r(65068),{fetchWithProxy:p}=s;class d extends l.default{host;environment;fetchWithProxy;constructor(e){if(super(),!e.host)throw Error("No host passed to PersonalizationClient constructor; aborting");if(!e.environment)throw Error("No environment passed to PersonalizationClient constructor; aborting");this.host=e.host,this.environment=e.environment,this.fetchWithProxy=(e,t,r)=>{let n=new Set(["orange"]);if(n.has(this.environment)&&"GET"!==t)throw Error(`Only GET request method is allowed from PersonalizationClient in ${Array.from(n).join(",")}. It is trying to be called from: ${this.environment}`);return p(e,r,{method:t})}}async getCFRU(e,t){this.validateGetCFRU(e);let r=(0,u.stringifyParams)(e,e=>e.join(";")),n=`${this.host}/user/recommendations/cfru?${r}`,o=await this.fetchWithProxy(n,"GET",t),i=await o.json();if(!o.ok)throw new f.PersonalizationClientError({errorResponse:i,status:o.status,url:n});return i}async getRecommendedNewsletters(e,t){let r=(0,u.stringifyParams)(e,e=>e.join(";")),n=`${this.host}/user/recommendations/usertonewsletter?${r}`,o=await this.fetchWithProxy(n,"GET",t),i=await o.json();if(!o.ok)throw new f.PersonalizationClientError({errorResponse:i,status:o.status,url:n});return i}async getRecent(e,t){this.validateGetRecent(e);let r=(0,u.stringifyParams)(e,e=>e.join(";")),n=`${this.host}/user/recommendations/recent?${r}`,o=await this.fetchWithProxy(n,"GET",t),i=await o.json();if(!o.ok)throw new f.PersonalizationClientError({errorResponse:i,status:o.status,url:n});return i}async getRelated(e,t){this.validateGetRelated(e);let r=(0,u.stringifyParams)(e,e=>e.join(";")),n=`${this.host}/user/recommendations/rr?${r}`,o=await this.fetchWithProxy(n,"GET",t),i=await o.json();if(!o.ok)throw new f.PersonalizationClientError({errorResponse:i,status:o.status,url:n});return i}async getPopularResources(e,t){this.validateGetPopular(e);let r=(0,u.stringifyParams)(e,e=>e.join(";")),n=`${this.host}/popular/resources?${r}`,o=await this.fetchWithProxy(n,"GET",t),i=await o.json();if(!o.ok)throw new f.PersonalizationClientError({errorResponse:i,status:o.status,url:n});return i}async getPopularEntities(e,t){this.validateGetPopular(e);let r=(0,u.stringifyParams)(e,e=>e.join(";")),n=`${this.host}/popular/entities?${r}`,o=await this.fetchWithProxy(n,"GET",t),i=await o.json();if(!o.ok)throw new f.PersonalizationClientError({errorResponse:i,status:o.status,url:n});return i}async getRecommendedPopular(e,t){this.validateGetRecommendedPopular(e);let r=(0,u.stringifyParams)(e,e=>e.join(";")),n=`${this.host}/user/recommendations/popular?${r}`,o=await this.fetchWithProxy(n,"GET",t),i=await o.json();if(!o.ok)throw new f.PersonalizationClientError({errorResponse:i,status:o.status,url:n});return i}async getRecommendedTPR(e,t){this.validateGetRecommendedTPR(e);let r=(0,u.stringifyParams)(e,e=>e.join(";")),n=`${this.host}/user/recommendations/tpr?${r}`,o=await this.fetchWithProxy(n,"GET",t),i=await o.json();if(!o.ok)throw new f.PersonalizationClientError({errorResponse:i,status:o.status,url:n});return i}validateGetCFRU=e=>{if(!e)return!0;if(!e.resourceTypes||!Array.isArray(e.resourceTypes)||0===e.resourceTypes.length)throw Error("Missing required parameter for PersonalizationClient.getCFRU: resourceTypes");if(!e.resourceTypes.every(e=>Object.values(c.PersonalizationResourceType).includes(e)))throw Error(`Invalid type in resourceTypes passed to PersonalizationClient.getCFRU: ${e.resourceTypes}`);if(!e.limit)throw Error("Missing required parameter for PersonalizationClient.getCFRU: limit");if("number"!=typeof e.limit||e.limit<=0)throw Error(`Invalid limit passed to PersonalizationClient.getCFRU: ${e.limit}`);if(!e.thumbnailRequired||"boolean"!=typeof e.thumbnailRequired)throw Error("Missing required parameter for PersonalizationClient.getCFRU: thumbnailRequired");return!0};validateGetRecent=e=>{if(!e.resourceTypes||!Array.isArray(e.resourceTypes)||0===e.resourceTypes.length)throw Error("Missing required parameter for PersonalizationClient.getRecent: resourceTypes");if(!e.resourceTypes.every(e=>Object.values(c.PersonalizationResourceType).includes(e)))throw Error(`Invalid type in resourceTypes passed to PersonalizationClient.getRecent: ${e.resourceTypes}`);if(!e.limit)throw Error("Missing required parameter for PersonalizationClient.getRecent: limit");if("number"!=typeof e.limit||e.limit<=0)throw Error(`Invalid limit passed to PersonalizationClient.getRecent: ${e.limit}`);if(!e.thumbnailRequired||"boolean"!=typeof e.thumbnailRequired)throw Error("Missing required parameter for PersonalizationClient.getRecent: thumbnailRequired");return!0};validateGetRelated=e=>{if(!e.resourceTypes||!Array.isArray(e.resourceTypes)||0===e.resourceTypes.length)throw Error("Missing required parameter for PersonalizationClient.getRelated: resourceTypes");if(!e.resourceTypes.every(e=>Object.values(c.PersonalizationResourceType).includes(e)))throw Error(`Invalid type in resourceTypes passed to PersonalizationClient.getRelated: ${e.resourceTypes}`);if(!e.currentResource||"string"!=typeof e.currentResource)throw Error("Missing required parameter for PersonalizationClient.getRelated: currentResource");if(!e.limit)throw Error("Missing required parameter for PersonalizationClient.getRelated: limit");if("number"!=typeof e.limit||e.limit<=0)throw Error(`Invalid limit passed to PersonalizationClient.getRelated: ${e.limit}`);if(!e.thumbnailRequired||"boolean"!=typeof e.thumbnailRequired)throw Error("Missing required parameter for PersonalizationClient.getRelated: thumbnailRequired");return!0};validateGetPopular=e=>{if(!e)return!0;if(!e.facets||"string"!=typeof e.facets)throw Error("Missing required parameter for PersonalizationClient.getPopular: facets");if(!e.limit)throw Error("Missing required parameter for PersonalizationClient.getPopular: limit");if("number"!=typeof e.limit||e.limit<=0)throw Error(`Invalid limit passed to PersonalizationClient.getPopular: ${e.limit}`);return!0};validateGetRecommendedPopular=e=>{if(!e)return!0;if(!e.resourceTypes||!Array.isArray(e.resourceTypes)||0===e.resourceTypes.length)throw Error("Missing required parameter for PersonalizationClient.getRecommendedPopular: resourceTypes");if(!e.resourceTypes.every(e=>Object.values(c.PersonalizationResourceType).includes(e)))throw Error(`Invalid type in resourceTypes passed to PersonalizationClient.getRecommendedPopular: ${e.resourceTypes}`);if(!e.limit)throw Error("Missing required parameter for PersonalizationClient.getRecommendedPopular: limit");if("number"!=typeof e.limit||e.limit<=0)throw Error(`Invalid limit passed to PersonalizationClient.getRecommendedPopular: ${e.limit}`);if(!e.thumbnailRequired||"boolean"!=typeof e.thumbnailRequired)throw Error("Missing required parameter for PersonalizationClient.getRecommendedPopular: thumbnailRequired");return!0};validateGetRecommendedTPR=e=>{if(!e)throw Error("Missing required parameters for PersonalizationClient.getRecommendedTPR: resourceTypes, limit");if(e.resourceTypes&&"string"!=typeof e.resourceTypes)throw Error(`Invalid resourceTypes passed to PersonalizationClient.getRecommendedTPR: ${e.resourceTypes}`);if(e.limit&&"number"!=typeof e.limit||e.limit<=0||e.limit>=1e3)throw Error(`Invalid limit passed to PersonalizationClient.getRecommendedTPR: ${e.limit}`);return!0}}t.default=d},35999:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.PopularInteraction=t.PersonalizationResourceType=void 0,(r=t.PersonalizationResourceType||(t.PersonalizationResourceType={})).Story="Story",r.Video="Video",r.Interactive="Interactive",r.Company="Company",r.Topic="Topic",r.Feature="Feature",r.Author="Author",r.Person="Person",r.Section="Section",r.Ni="Ni",r.Wire="Wire",r.Newsletter="Newsletter",r.Quicktake="Quicktake",r.Currency="Currency",r.Region="Region",r.Event="Event",r.External="External",r.Slideshow="Slideshow",r.Dataarticle="Dataarticle",r.Category="Category",r.Tracker="Tracker",r.Index="Index",r.Country="Country",r.Organization="Organization",r.City="City",r.Commodity="Commodity",r.Fund="Fund",r.Classification="Classification",r.Series="Series",r.Location="Location",(n=t.PopularInteraction||(t.PopularInteraction={})).VIEW="VIEW",n.SHARE="SHARE",n.MERGE="MERGE",n.QUEUE="QUEUE",n.INFO_UPDATE="INFO_UPDATE"},2801:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PersonalizationClient=void 0;var a=r(88736);Object.defineProperty(t,"PersonalizationClient",{enumerable:!0,get:function(){return i(a).default}}),o(r(65068),t),o(r(35999),t)},82947:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SrchDataClientError=void 0;class r extends Error{errorResponse;status;url;constructor({errorResponse:e,status:t,url:r}){super(JSON.stringify(e)),this.name="SrchDataClientError",this.errorResponse=e,this.status=t,this.url=r}}t.SrchDataClientError=r},8454:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(27044)),i=r(45011),a=r(34727),s=n(r(69076)),u=r(82947);class l extends s.default{host;fetchWithProxy;constructor(e){if(super(),!e.host)throw Error("No host passed to SrchDataClient constructor; aborting");this.host=`${e.host}/srchdata`,this.fetchWithProxy=t=>(0,o.default)(t,e.proxy)}async getBio(e){this.validateGetBio(e);let t=(0,a.stringifyParams)(e),r=`${this.host}/bio?${t}`,n=await this.fetchWithProxy(r),o=await n.json();if(!n.ok)throw new u.SrchDataClientError({errorResponse:o,status:n.status,url:r});return o.bio}async getTotalNumberOfBios(e){this.validateGetBio(e);let t=(0,a.stringifyParams)(e),r=`${this.host}/bio?${t}`,n=await this.fetchWithProxy(r),o=await n.json();if(!n.ok)throw new u.SrchDataClientError({errorResponse:o,status:n.status,url:r});return o.total}async getCompaniesPublic(e){this.validateGetCompaniesPublic(e);let t=(0,a.stringifyParams)(e),r=`${this.host}/search/companies/public/diff?${t}`,n=await this.fetchWithProxy(r),o=await n.json();if(!n.ok)throw new u.SrchDataClientError({errorResponse:o,status:n.status,url:r});return o.value.hits}async getNumberOfPublicCompanies(){let e=`${this.host}/search/companies/public/diff`,t=await this.fetchWithProxy(e),r=await t.json();if(!t.ok)throw new u.SrchDataClientError({errorResponse:r,status:t.status,url:e});return r.value.totalHits}async getCompaniesPrivate(e){this.validateGetCompaniesPrivate(e);let t=(0,a.stringifyParams)(e),r=`${this.host}/search/companies/private/diff?${t}`,n=await this.fetchWithProxy(r),o=await n.json();if(!n.ok)throw new u.SrchDataClientError({errorResponse:o,status:n.status,url:r});return o.value.hits}async getNumberOfPrivateCompanies(){let e=`${this.host}/search/companies/private/diff`,t=await this.fetchWithProxy(e),r=await t.json();if(!t.ok)throw new u.SrchDataClientError({errorResponse:r,status:t.status,url:e});return r.value.totalHits}async getSecurities(e){this.validateGetSecurities(e);let t=(0,a.stringifyParams)(e),r=`${this.host}/search/securities/diff?${t}`,n=await this.fetchWithProxy(r),o=await n.json();if(!n.ok)throw new u.SrchDataClientError({errorResponse:o,status:n.status,url:r});return o.value.hits}validateGetBio=e=>{if(e.offset&&(e.offset<0||"number"!=typeof e.offset))throw Error(`Invalid offset passed to SrchDatClient.getBio: ${e.offset} of type ${typeof e.offset}`);if(e.size){if(e.size<0||"number"!=typeof e.size)throw Error(`Invalid size passed to SrchDatClient.getBio: ${e.size} of type ${typeof e.size}`);if(e.size>1e3)throw Error(`Invalid size passed to SrchDatClient.getBio: ${e.size} exceeds size limit of 1000`)}if(e.start&&(e.start<0||"number"!=typeof e.start))throw Error(`Invalid start passed to SrchDatClient.getBio: ${e.start} of type ${typeof e.start}`);if(e.isDeleted&&"boolean"!=typeof e.isDeleted)throw Error(`Invalid isDeleted passed to SrchDatClient.getBio: ${e.isDeleted} of type ${typeof e.isDeleted}`);if(e.personId&&(e.personId<0||"number"!=typeof e.personId))throw Error(`Invalid personId passed to SrchDatClient.getBio: ${e.personId} of type ${typeof e.personId}`);return!0};validateGetCompaniesPublic=e=>{if(e.startTime&&("string"!=typeof e.startTime||!e.startTime.match(i.VALID_REGEX.dateString)))throw Error(`Invalid startTime passed to SrchDatClient.getCompaniesPublic: ${e.startTime} of type ${typeof e.startTime}`);if(e.endTime&&("string"!=typeof e.endTime||!e.endTime.match(i.VALID_REGEX.dateString)))throw Error(`Invalid endTime passed to SrchDatClient.getCompaniesPublic: ${e.endTime} of type ${typeof e.endTime}`);if(e.from&&(e.from<0||"number"!=typeof e.from))throw Error(`Invalid from passed to SrchDatClient.getCompaniesPublic: ${e.from} of type ${typeof e.from}`);if(e.size){if(e.size<0||"number"!=typeof e.size)throw Error(`Invalid size passed to SrchDatClient.getCompaniesPublic: ${e.size} of type ${typeof e.size}`);if(e.size>1e3)throw Error(`Invalid size passed to SrchDatClient.getCompaniesPublic: ${e.size} exceeds size limit of 1000`)}return!0};validateGetCompaniesPrivate=e=>{if(e.startTime&&("string"!=typeof e.startTime||!e.startTime.match(i.VALID_REGEX.dateString)))throw Error(`Invalid startTime passed to SrchDatClient.getCompaniesPrivate: ${e.startTime} of type ${typeof e.startTime}`);if(e.endTime&&("string"!=typeof e.endTime||!e.endTime.match(i.VALID_REGEX.dateString)))throw Error(`Invalid endTime passed to SrchDatClient.getCompaniesPrivate: ${e.endTime} of type ${typeof e.endTime}`);if(e.from&&(e.from<0||"number"!=typeof e.from))throw Error(`Invalid from passed to SrchDatClient.getCompaniesPrivate: ${e.from} of type ${typeof e.from}`);if(e.size){if(e.size<0||"number"!=typeof e.size)throw Error(`Invalid size passed to SrchDatClient.getCompaniesPrivate: ${e.size} of type ${typeof e.size}`);if(e.size>1e3)throw Error(`Invalid size passed to SrchDatClient.getCompaniesPrivate: ${e.size} exceeds size limit of 1000`)}return!0};validateGetSecurities=e=>{if(e.startTime&&("string"!=typeof e.startTime||!e.startTime.match(i.VALID_REGEX.dateString)))throw Error(`Invalid startTime passed to SrchDatClient.getSecurities: ${e.startTime} of type ${typeof e.startTime}`);if(e.endTime&&("string"!=typeof e.endTime||!e.endTime.match(i.VALID_REGEX.dateString)))throw Error(`Invalid endTime passed to SrchDatClient.getSecurities: ${e.endTime} of type ${typeof e.endTime}`);if(e.from&&(e.from<0||"number"!=typeof e.from))throw Error(`Invalid from passed to SrchDatClient.getSecurities: ${e.from} of type ${typeof e.from}`);if(e.size){if(e.size<0||"number"!=typeof e.size)throw Error(`Invalid size passed to SrchDatClient.getSecurities: ${e.size} of type ${typeof e.size}`);if(e.size>1e3)throw Error(`Invalid size passed to SrchDatClient.getSecurities: ${e.size} exceeds size limit of 1000`)}return!0}}t.default=l},70920:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SrchDataBioVisibility=void 0,(r=t.SrchDataBioVisibility||(t.SrchDataBioVisibility={})).WHITELISTED="WHITELISTED",r.PUBLIC_COMPANY_EXECUTIVE="PUBLIC_COMPANY_EXECUTIVE",r.TERMINAL_USER_AND_EXECUTIVE="TERMINAL_USER_AND_EXECUTIVE"},96431:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SrchDataClient=void 0;var a=r(8454);Object.defineProperty(t,"SrchDataClient",{enumerable:!0,get:function(){return i(a).default}}),o(r(82947),t),o(r(70920),t)},34590:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserApiClientError=void 0;class r extends Error{url;status;errorResponse;constructor({errorResponse:e,status:t,url:r}){super(JSON.stringify(e)),this.name="UserApiClientError",this.status=t,this.url=r,this.errorResponse=e}}t.UserApiClientError=r},34251:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let a=i(r(69076)),s=r(42735),u=r(34590),l=r(78753);o(r(83922),t);class c extends a.default{host;constructor(e){if(super(),!e.host)throw Error("No host passed to UserApiClient constructor; aborting");this.host=`${e.host}/graphql`}async getUserEngagements(){let e={operationName:"getUser",query:l.GetUserEngagementsQuery},t=this.#o(e),r=await fetch(this.host,t);if(!r.ok)throw new u.UserApiClientError({errorResponse:[{message:r.statusText}],status:r.status,url:this.host});let n=await r.json();if(n.errors)throw new u.UserApiClientError({errorResponse:n.errors,status:r.status,url:this.host});return n.data.user.engagements.elements}async getUserAuthors(){let e={operationName:"getUserAuthors",query:l.GetUserAuthorsQuery},t=this.#o(e),r=await fetch(this.host,t);if(!r.ok)throw new u.UserApiClientError({errorResponse:[{message:await r.statusText}],status:r.status,url:this.host});let n=await r.json();if(n.errors)throw new u.UserApiClientError({errorResponse:n.errors,status:r.status,url:this.host});return n.data.user.engagements.elements}async getUserTopics(){let e={operationName:"getUserTopics",query:l.GetUserTopicsQuery},t=this.#o(e),r=await fetch(this.host,t);if(!r.ok)throw new u.UserApiClientError({errorResponse:[{message:r.statusText}],status:r.status,url:this.host});let n=await r.json();if(n.errors)throw new u.UserApiClientError({errorResponse:n.errors,status:r.status,url:this.host});return n.data.user.engagements.elements}async getUserSecurities(){let e={operationName:"getUserSecurities",query:l.GetUserSecuritiesQuery},t=this.#o(e),r=await fetch(this.host,t);if(!r.ok)throw new u.UserApiClientError({errorResponse:[{message:r.statusText}],status:r.status,url:this.host});let n=await r.json();if(n.errors)throw new u.UserApiClientError({errorResponse:n.errors,status:r.status,url:this.host});return n.data.user.engagements.elements}async followTopic(e){this.validateTopicParams(e);let{topicId:t}=e,r={query:l.FollowMutation,variables:{user:{},engagementsUpdate:{creates:[{dataOrigin:s.DATA_ORIGIN.HOME_FEED,productType:s.PRODUCT.ENGAGEMENT_PREFERENCES,resourceType:s.RESOURCE.TOPIC,resourceId:t,actionType:s.ACTION.FOLLOW}]}}},n=this.#o(r),o=await fetch(this.host,n);if(!o.ok)throw new u.UserApiClientError({errorResponse:[{message:o.statusText}],status:o.status,url:this.host});let i=await o.json();if(i.errors)throw new u.UserApiClientError({errorResponse:i.errors,status:o.status,url:this.host});return i.data.bulkUpdateEngagements.success}async deleteTopic(e){this.validateTopicParams(e);let{topicId:t}=e,r={query:l.DeleteFollowMutation,variables:{user:{},deleteEngagement:{productType:s.PRODUCT.ENGAGEMENT_PREFERENCES,actionType:s.ACTION.FOLLOW,resourceType:s.RESOURCE.TOPIC,resourceId:t}}},n=this.#o(r),o=await fetch(this.host,n);if(!o.ok)throw new u.UserApiClientError({errorResponse:[{message:o.statusText}],status:o.status,url:this.host});let i=await o.json();if(i.errors)throw new u.UserApiClientError({errorResponse:i.errors,status:o.status,url:this.host});return i.data.deleteEngagement.success}#o=e=>({method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(e)});validateTopicParams=e=>{if(!e.topicId||"string"!=typeof e.topicId)throw Error("Missing or invalid topic parameter for UserApiClient: topicId");return!0}}t.default=c},42735:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DATA_ORIGIN=t.RESOURCE=t.ACTION=t.PRODUCT=void 0,(t.PRODUCT||(t.PRODUCT={})).ENGAGEMENT_PREFERENCES="ENGAGEMENT_PREFERENCES",(t.ACTION||(t.ACTION={})).FOLLOW="FOLLOW",(t.RESOURCE||(t.RESOURCE={})).TOPIC="Topic",(t.DATA_ORIGIN||(t.DATA_ORIGIN={})).HOME_FEED="HOME_FEED"},94122:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserApiClient=void 0;var a=r(34251);Object.defineProperty(t,"UserApiClient",{enumerable:!0,get:function(){return i(a).default}}),o(r(34590),t),o(r(42735),t)},78753:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteFollowMutation=t.FollowMutation=t.GetUserSecuritiesQuery=t.GetUserTopicsQuery=t.GetUserAuthorsQuery=t.GetUserEngagementsQuery=void 0,t.GetUserEngagementsQuery=`query getUser($user: UserIdentityInput) {
+ user(userIdentity: $user) {
+ engagements(queryArgs: {productType: ENGAGEMENT_PREFERENCES}) {
+ elements {
+ id
+ actionType
+ resource {
+ id
+ type
+ ... on Person {
+ name
+ }
+ ... on Topic {
+ name
+ }
+ ... on Company {
+ longName
+ }
+ ... on Securities {
+ longName
+ }
+ }
+ }
+ }
+ }
+}`,t.GetUserAuthorsQuery=`query getUserAuthors($user: UserIdentityInput) {
+ user(userIdentity: $user) {
+ engagements(queryArgs: {productType: AUTHOR_FOLLOW}) {
+ elements {
+ id
+ actionType
+ resource {
+ id
+ type
+ ... on Person {
+ name
+ }
+ }
+ }
+ }
+ }
+}`,t.GetUserTopicsQuery=`query getUserTopics($user: UserIdentityInput) {
+ user(userIdentity: $user) {
+ engagements(queryArgs: {productType: ENGAGEMENT_PREFERENCES, resourceType: Topic}) {
+ elements {
+ id
+ actionType
+ resource {
+ id
+ type
+ ... on Topic {
+ name
+ }
+ }
+ }
+ }
+ }
+}`,t.GetUserSecuritiesQuery=`query getUserSecurities($user: UserIdentityInput) {
+ user(userIdentity: $user) {
+ engagements(queryArgs: {productType: ENGAGEMENT_PREFERENCES}) {
+ elements {
+ id
+ actionType
+ resource {
+ id
+ type
+ ... on Securities {
+ longName
+ }
+ }
+ }
+ }
+ }
+}`,t.FollowMutation=`mutation follow(
+ $user: UserIdentityInput!,
+ $engagementsUpdate: BulkUpdateEngagementsInput!
+) {
+ bulkUpdateEngagements(
+ userIdentity: $user,
+ bulkUpdateEngagementsInput: $engagementsUpdate)
+ {
+ success
+ }
+}`,t.DeleteFollowMutation=`mutation deleteFollow(
+ $user: UserIdentityInput!,
+ $deleteEngagement: DeleteEngagementInput!
+) {
+ deleteEngagement(userIdentity: $user, deleteInput: $deleteEngagement) {
+ success
+ }
+}`},83922:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76268:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchFrom=t.stringifyParams=t.Singleton=t.IntercomTracking=t.IntercomSlot=t.Intercom=void 0;var a=r(53174);Object.defineProperty(t,"Intercom",{enumerable:!0,get:function(){return i(a).default}}),o(r(90616),t),o(r(61010),t);var s=r(63500);Object.defineProperty(t,"IntercomSlot",{enumerable:!0,get:function(){return s.IntercomSlot}});var u=r(63500);Object.defineProperty(t,"IntercomTracking",{enumerable:!0,get:function(){return u.IntercomTracking}});var l=r(69076);Object.defineProperty(t,"Singleton",{enumerable:!0,get:function(){return i(l).default}}),o(r(93148),t),o(r(35099),t),o(r(71134),t),o(r(94122),t),o(r(2801),t),o(r(96431),t);var c=r(34727);Object.defineProperty(t,"stringifyParams",{enumerable:!0,get:function(){return c.stringifyParams}});var f=r(19583);Object.defineProperty(t,"fetchFrom",{enumerable:!0,get:function(){return f.fetchFrom}})},53174:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(19583),i=n(r(69076)),a=r(90616);class s extends i.default{slots={};apiEndpoints;personalizationClient;mediaGatewayClient;userApiClient;constructor(e){super();let t=a.INTERCOM_API_ENDPOINTS;this.apiEndpoints={...t,...e?.apiEndpoints},this.mediaGatewayClient=e?.mediaGatewayClient,this.personalizationClient=e?.personalizationClient,this.userApiClient=e?.userApiClient}getSlots(){return this.slots}getSlot(e){return this.getSlots()[e]}async getPersonById(e){let t=this.apiEndpoints.getPersonById;if(!t)throw Error("getPersonById endpoint not configured");return(await (0,o.fetchFrom)(t,e)).json()}async getStories(e){let t=this.apiEndpoints.getStories;if(!t)throw Error("getStories endpoint not configured");return(await (0,o.fetchFrom)(t,e)).json()}async getStoryBySlug(e){let t=this.apiEndpoints.getStoryBySlug;if(!t)throw Error("getStoryBySlug endpoint not configured");return(await (0,o.fetchFrom)(t,e)).json()}async getStoryById(e){let t=this.apiEndpoints.getStoryById;if(!t)throw Error("getStoryById endpoint not configured");return(await (0,o.fetchFrom)(t,e)).json()}async getImages(e){let t=this.apiEndpoints.getImages;if(!t)throw Error("getImages endpoint not configured");return(await (0,o.fetchFrom)(t,{id:e?.id||""})).json()}async getAudios(e){let t=this.apiEndpoints.getAudios;if(!t)throw Error("getAudios endpoint not configured");return(await (0,o.fetchFrom)(t,{ids:e?.ids||""})).json()}async getVideos(e){let t=this.apiEndpoints.getVideos;if(!t)throw Error("getVideos endpoint not configured");return(await (0,o.fetchFrom)(t,{id:e?.id||""})).json()}async getImagesBulk(e){let t=this.apiEndpoints.getImagesBulk;if(!t)throw Error("getImagesBulk endpoint not configured");return(await (0,o.fetchFrom)(t,e)).json()}async getSecurities(e){let t=this.apiEndpoints.getSecurities;if(!t)throw Error("getSecurities endpoint not configured");return(await (0,o.fetchFrom)(t,e)).json()}async getPopularResources(e){if(!this.personalizationClient)throw Error("personalizationClient is not initialized");return await this.personalizationClient.getPopularResources(e)||[]}async getPopularEntities(e){if(!this.personalizationClient)throw Error("personalizationClient is not initialized");return await this.personalizationClient.getPopularEntities(e)||[]}async getRelated(e){if(!e)return[];if(!this.personalizationClient)throw Error("personalizationClient is not initialized");return await this.personalizationClient.getRelated(e)||[]}async getRecommended(e){if(!this.personalizationClient)throw Error("personalizationClient is not initialized");return await this.personalizationClient.getCFRU(e)||[]}async getRecommendedPopular(e){if(!this.personalizationClient)throw Error("personalizationClient is not initialized");return await this.personalizationClient.getRecommendedPopular(e)||[]}async getRecommendedTPR(e){if(!this.personalizationClient)throw Error("personalizationClient is not initialized");return await this.personalizationClient.getRecommendedTPR(e)||[]}async getNiCodeStories(e){let t=this.apiEndpoints.getNiCodeStories;if(!t)throw Error("getNiCodeStories endpoint not configured");return(await (0,o.fetchFrom)(t,e)).json()}async getNewsletters(){let e=this.apiEndpoints.getNewsletters;if(!e)throw Error("getNewsletters endpoint not configured");return(await (0,o.fetchFrom)(e)).json()}async getTopMovingSecurities(e){let t=this.apiEndpoints.getTopMovingSecurities;if(!t)throw Error("getTopMovingSecurities endpoint not configured");return(await (0,o.fetchFrom)(t,e)).json()}getUserAuthors(){if(!this.userApiClient)throw Error("userApiClient is not initialized");return this.userApiClient.getUserAuthors()}getUserTopics(){if(!this.userApiClient)throw Error("userApiClient is not initialized");return this.userApiClient.getUserTopics()}followTopic(e){if(!this.userApiClient)throw Error("userApiClient is not initialized");return this.userApiClient.followTopic(e)}deleteTopic(e){if(!this.userApiClient)throw Error("userApiClient is not initialized");return this.userApiClient.deleteTopic(e)}getUserSecurities(){if(!this.userApiClient)throw Error("userApiClient is not initialized");return this.userApiClient.getUserSecurities()}getUserBookmarks(e){if(!e)return Promise.resolve([]);if(!this.mediaGatewayClient)throw Error("mediaGatewayClient is not initialized");return this.mediaGatewayClient.getUserBookmarks(e)}getUserProfile(e){if(!e)return Promise.reject(Error("getUserProfile requires params"));if(!this.mediaGatewayClient)throw Error("mediaGatewayClient is not initialized");return this.mediaGatewayClient.getUserProfile(e)}async getBio(e){let t=this.apiEndpoints.getBio;if(!t)throw Error("getBio endpoint not configured");return(await (0,o.fetchFrom)(t,e)).json()}}t.default=s},63500:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntercomSlot=t.IntercomTracking=void 0;let n=r(85893),o=r(67294),i=r(45529);t.IntercomTracking=function({componentName:e,children:t}){let r=i.Tracker.getInstance();return(0,o.useEffect)(()=>{r.trackEvent({event:"impression",eventAction:`${e}Impression`,eventLabel:e})},[]),(0,n.jsx)("div",{id:e,ref:r.registerComponent,children:t})},t.IntercomSlot=function({children:e}){(0,o.useEffect)(()=>{},[]);let t=o.Children.toArray(e).find(e=>{let t=e.props;return t.criteria&&"function"==typeof t.criteria&&t.criteria()});return(0,n.jsx)(n.Fragment,{children:t})}},90616:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.INTERCOM_API_ENDPOINTS=t.IntercomFunctionKey=void 0,(n=r=t.IntercomFunctionKey||(t.IntercomFunctionKey={})).getPersonById="getPersonById",n.getStories="getStories",n.getStoryBySlug="getStoryBySlug",n.getStoryById="getStoryById",n.getImages="getImages",n.getAudios="getAudios",n.getVideos="getVideos",n.getImagesBulk="getImagesBulk",n.getSecurities="getSecurities",n.getNewsletters="getNewsletters",n.getNiCodeStories="getNiCodeStories",n.getUserAuthors="getUserAuthors",n.getUserNewsletters="getUserNewsletters",n.getUserTopics="getUserTopics",n.getUserSecurities="getUserSecurities",n.getTopMovingSecurities="getTopMovingSecurities",n.getPopularResources="getPopularResources",n.getPopularEntities="getPopularEntities",n.getRecommended="getRecommended",n.getRelated="getRelated",n.getRecommendedPopular="getRecommendedPopular",n.getUserBookmarks="getUserBookmarks",n.getUserProfile="getUserProfile",n.getBio="getBio",n.getCompaniesPublic="getCompaniesPublic",n.getCompaniesPrivate="getCompaniesPrivate",n.getSrchDataSecurities="getSrchDataSecurities",t.INTERCOM_API_ENDPOINTS={[r.getPersonById]:"api/daper/people/id",[r.getStories]:"/api/daper/stories",[r.getStoryBySlug]:"/api/daper/stories/slug",[r.getStoryById]:"/api/daper/stories/id",[r.getImages]:"/api/images",[r.getVideos]:"/api/videos",[r.getAudios]:"/api/audios",[r.getImagesBulk]:"/api/images/bulk",[r.getSecurities]:"/api/securities",[r.getNewsletters]:"/api/newsletters",[r.getNiCodeStories]:"/api/stories/ni",[r.getTopMovingSecurities]:"/api/securities/top-moving",[r.getUserAuthors]:"/api/user/authors",[r.getUserSecurities]:"/api/user/securities",[r.getUserTopics]:"/api/user/topics",[r.getBio]:"/api/people/bio",[r.getCompaniesPublic]:"/api/companies/public",[r.getCompaniesPrivate]:"/api/companies/private",[r.getSrchDataSecurities]:"/api/srchdata/securities"}},61010:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(90616)},45011:function(e,t){"use strict";var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.VALID_REGEX=t.MAX_RESOURCE_AGE_DEFAULT=t.MILLISECONDS_PER_DAY=t.MINUTES_PER_HOUR=t.SECONDS_PER_MINUTE=t.MILLISECONDS_PER_SECOND=t.INTERCOM_SLOTS=t.ABBA_PLATFORM=t.INTERCOM_SLOT=void 0,(o=r=t.INTERCOM_SLOT||(t.INTERCOM_SLOT={})).articleBottom1="articleBottom1",o.articleBottom2="articleBottom2",o.articleRightRail1="articleRightRail1",o.articleRightRail2="articleRightRail2",o.articleRightRail3="articleRightRail3",(i=n=t.ABBA_PLATFORM||(t.ABBA_PLATFORM={})).article="article",i.homepage="homepage",t.INTERCOM_SLOTS={[n.article]:[r.articleBottom1,r.articleBottom2,r.articleRightRail1,r.articleRightRail2,r.articleRightRail3]},t.MILLISECONDS_PER_SECOND=1e3,t.SECONDS_PER_MINUTE=60,t.MINUTES_PER_HOUR=60,t.MILLISECONDS_PER_DAY=86400*t.MILLISECONDS_PER_SECOND,t.MAX_RESOURCE_AGE_DEFAULT=14*t.MILLISECONDS_PER_DAY,t.VALID_REGEX={dateString:/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/,email:/^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/,id:/^(\w|-|\/)+$/,ids:/^(\w|-|;|\/)+$/,objectKey:/^(\w|.)+$/,objectValue:/^(\w|-|\/)+$/,security:/^[a-zA-Z0-9%]+:[a-zA-Z%]+$/,slug:/^(\w|-|\/)+$/}},19583:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchFrom=void 0;let n=r(34727);t.fetchFrom=(e,t,r)=>fetch(`${e}?${t?(0,n.stringifyParams)(t):""}`,r)},34727:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyParams=void 0,t.stringifyParams=(e,t=e=>e.join(","))=>new URLSearchParams(e?Object.entries(e).filter(([e,t])=>null!=t||(console.error(`value with key: ${e} is null or undefined!`),!1)).reduce((e,[r,n])=>({[r]:Array.isArray(n)?t(n):n.toString(),...e}),[]):{})},45529:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateEventFromElements=t.validateElementsForTracking=t.trackerEventIsValid=t.Tracker=void 0;class r{static instance;elements;constructor(){this.elements=new Map,r.instance=this}static getInstance(){return r.instance||new r}registerTracking(e){e&&e.addEventListener("click",()=>{let t=r.instance.getParent(e);o(t,e)||console.error("There was a problem creating your event. Please confirm integration.");let n=i(t,e);r.instance.trackEvent(n)})}registerComponent(e){e&&r.instance.elements.set(e.id,e)}trackEvent(e){if(!window.dataLayer){console.error("window.dataLayer is not defined",e);return}if(!n(e)){console.error("Invalid parameters passed to Tracker.trackEvent. Event will not fire.");return}window.dataLayer.push(e)}getParent(e){let t=[...r.instance.elements.entries()].find(([t,r])=>r.contains(e));if(!t)throw Error(`No parent found for element ${e}`);return t[1]}}function n(e){if(!e)return!1;let{event:t,eventAction:r,eventLabel:n,eventCategory:o}=e;return!!t&&!!o&&!!r&&!!n||(console.error("Invalid tracking config, you are missing required properties. [event, eventCategory, eventLabel and eventAction are required]"),!1)}function o(e,t){let r=t.dataset,n=e.dataset;return t.ariaLabel?r.role?!!n.component&&!!n.trackingId||(console.error("Parent is missing expected dataset attribute: data-component"),!1):(console.error("Child is missing expected dataset attribute: data-role"),!1):(console.error("Child is missing expected attribute: aria-label"),!1)}function i(e,t){let r=t.dataset,o=e.dataset,i={event:"intercom_click",eventCategory:o.trackingId,eventAction:`${o.component}_${r.role}_click`,eventLabel:t.ariaLabel};return n(i)?i:void 0}t.Tracker=r,t.trackerEventIsValid=n,t.validateElementsForTracking=o,t.generateEventFromElements=i},8457:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});let n=/\/+/g,o=/\/$/;function i(e){let{baseUrl:t=location.origin,hash:r,pathname:i="",searchParams:a,trailingSlash:s=!0}=e||{},u=new URL(t),l=a?new URLSearchParams(a).toString():"",c="";u.pathname&&(c+=`${u.pathname}/`),c+=i;let f=new URL(c=c?.replace(n,"/"),u.origin),p=`${f.toString()}${l?`?${l}`:""}${r?`#${r}`:""}`;return s?p:p.replace(o,"")}},64798:function(e,t){"use strict";t.Z=(e,t)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}}},30096:function(e,t,r){"use strict";r.r(t),r.d(t,{checksum:function(){return l},composeUrl:function(){return f.z},debounce:function(){return c.Z},fetchWithProxy:function(){return s},memoizeLast:function(){return u.Z},parseJson:function(){return p.M}});var n=r(26018),o=r(83300),i=r.n(o);let a=new Map;function s(e,t,r){let o=function(e){if(e&&a.has(e))return{agent:a.get(e)};if(e){let t=new n.HttpsProxyAgent(e,{keepAlive:!0});return a.set(e,t),{agent:t}}}(t);return i()(e,{...o,...r})}var u=r(97314);function l(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t=0,o;t>>16,2246822507)^Math.imul(n^n>>>13,3266489909),4294967296*(2097151&(n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)}var c=r(64798),f=r(8457),p=r(14640)},27044:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(26018),i=n(r(83300)),a=new Map;t.default=function(e,t,r){let n=function(e){if(e&&a.has(e))return{agent:a.get(e)};if(e){let t=new o.HttpsProxyAgent(e,{keepAlive:!0});return a.set(e,t),{agent:t}}}(t);return(0,i.default)(e,{...n,...r})}},23701:function(e,t,r){"use strict";var n=r(48764).Buffer,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.req=t.json=t.toBuffer=void 0;let s=a(r(22321)),u=a(r(78428));async function l(e){let t=0,r=[];for await(let n of e)t+=n.length,r.push(n);return n.concat(r,t)}async function c(e){let t=(await l(e)).toString("utf8");try{return JSON.parse(t)}catch(e){throw e.message+=` (input: ${t})`,e}}t.toBuffer=l,t.json=c,t.req=function(e,t={}){let r=(("string"==typeof e?e:e.href).startsWith("https:")?u:s).request(e,t),n=new Promise((e,t)=>{r.once("response",e).once("error",t).end()});return r.then=n.then.bind(n),r}},12917:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Agent=void 0;let s=i(r(43535)),u=i(r(22321)),l=r(78428);a(r(23701),t);let c=Symbol("AgentBaseInternalState");class f extends u.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if("boolean"==typeof e.secureEndpoint)return e.secureEndpoint;if("string"==typeof e.protocol)return"https:"===e.protocol}let{stack:t}=Error();return"string"==typeof t&&t.split("\n").some(e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:"))}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new s.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||null===t)return;let r=this.sockets[e],n=r.indexOf(t);-1!==n&&(r.splice(n,1),this.totalSocketCount--,0===r.length&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?l.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,r){let n={...t,secureEndpoint:this.isSecureEndpoint(t)},o=this.getName(n),i=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(o,i),a instanceof u.Agent)try{return a.addRequest(e,n)}catch(e){return r(e)}this[c].currentSocket=a,super.createSocket(e,t,r)},e=>{this.decrementSockets(o,i),r(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[c]&&(this[c].protocol=e)}}t.Agent=f},69282:function(e,t,r){"use strict";var n,o,i,a=r(34155);function s(e){return(s="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)}var u=r(62136).codes,l=u.ERR_AMBIGUOUS_ARGUMENT,c=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,p=u.ERR_INVALID_RETURN_VALUE,d=u.ERR_MISSING_ARGS,h=r(25961),g=r(89539).inspect,y=r(89539).types,b=y.isPromise,m=y.isRegExp,v=r(38399)(),w=r(75624)(),E=r(21924)("RegExp.prototype.test");function S(){var e=r(19158);o=e.isDeepEqual,i=e.isDeepStrictEqual}var _=!1,R=e.exports=A,C={};function O(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function P(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function A(){for(var e=arguments.length,t=Array(e),r=0;r1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;oe.length)&&(r=e.length),e.substring(r-t.length,r)===t}var m="",v="",w="",E="",S={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function _(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function R(e){return g(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var C=function(e,t){!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&&p(e,t)}(c,e);var r,o,l=(r=f(),function(){var e,t=d(c);return e=r?Reflect.construct(t,arguments,d(this).constructor):t.apply(this,arguments),s(this,e)});function c(e){if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,c),"object"!==h(e)||null===e)throw new y("options","Object",e);var t,r=e.message,o=e.operator,i=e.stackStartFn,a=e.actual,f=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=l.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(m="\x1b[34m",v="\x1b[32m",E="\x1b[39m",w="\x1b[31m"):(m="",v="",E="",w="")),"object"===h(a)&&null!==a&&"object"===h(f)&&null!==f&&"stack"in a&&a instanceof Error&&"stack"in f&&f instanceof Error&&(a=_(a),f=_(f)),"deepStrictEqual"===o||"strictEqual"===o)t=l.call(this,function(e,t,r){var o="",i="",a=0,s="",u=!1,l=R(e),c=l.split("\n"),f=R(t).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===h(e)&&"object"===h(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var g=c[0].length+f[0].length;if(g<=10){if(("object"!==h(e)||null===e)&&("object"!==h(t)||null===t)&&(0!==e||0!==t))return"".concat(S[r],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&g<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",p),"^"),p=0)}}for(var y=c[c.length-1],_=f[f.length-1];y===_&&(p++<2?s="\n ".concat(y).concat(s):o=y,c.pop(),f.pop(),0!==c.length&&0!==f.length);)y=c[c.length-1],_=f[f.length-1];var C=Math.max(c.length,f.length);if(0===C){var O=l.split("\n");if(O.length>30)for(O[26]="".concat(m,"...").concat(E);O.length>27;)O.pop();return"".concat(S.notIdentical,"\n\n").concat(O.join("\n"),"\n")}p>3&&(s="\n".concat(m,"...").concat(E).concat(s),u=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var P=0,A=S[r]+"\n".concat(v,"+ actual").concat(E," ").concat(w,"- expected").concat(E),T=" ".concat(m,"...").concat(E," Lines skipped");for(p=0;p1&&p>2&&(j>4?(i+="\n".concat(m,"...").concat(E),u=!0):j>3&&(i+="\n ".concat(f[p-2]),P++),i+="\n ".concat(f[p-1]),P++),a=p,o+="\n".concat(w,"-").concat(E," ").concat(f[p]),P++;else if(f.length1&&p>2&&(j>4?(i+="\n".concat(m,"...").concat(E),u=!0):j>3&&(i+="\n ".concat(c[p-2]),P++),i+="\n ".concat(c[p-1]),P++),a=p,i+="\n".concat(v,"+").concat(E," ").concat(c[p]),P++;else{var x=f[p],k=c[p],I=k!==x&&(!b(k,",")||k.slice(0,-1)!==x);I&&b(x,",")&&x.slice(0,-1)===k&&(I=!1,k+=","),I?(j>1&&p>2&&(j>4?(i+="\n".concat(m,"...").concat(E),u=!0):j>3&&(i+="\n ".concat(c[p-2]),P++),i+="\n ".concat(c[p-1]),P++),a=p,i+="\n".concat(v,"+").concat(E," ").concat(k),o+="\n".concat(w,"-").concat(E," ").concat(x),P+=2):(i+=o,o="",(1===j||0===p)&&(i+="\n ".concat(k),P++))}if(P>20&&p30)for(g[26]="".concat(m,"...").concat(E);g.length>27;)g.pop();t=1===g.length?l.call(this,"".concat(d," ").concat(g[0])):l.call(this,"".concat(d,"\n\n").concat(g.join("\n"),"\n"))}else{var C=R(a),O="",P=S[o];"notDeepEqual"===o||"notEqual"===o?(C="".concat(S[o],"\n\n").concat(C)).length>1024&&(C="".concat(C.slice(0,1021),"...")):(O="".concat(R(f)),C.length>512&&(C="".concat(C.slice(0,509),"...")),O.length>512&&(O="".concat(O.slice(0,509),"...")),"deepEqual"===o||"equal"===o?C="".concat(P,"\n\n").concat(C,"\n\nshould equal\n\n"):O=" ".concat(o," ").concat(O)),t=l.call(this,"".concat(C).concat(O))}return Error.stackTraceLimit=p,t.generatedMessage=!r,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=f,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(u(t),i),t.stack,t.name="AssertionError",s(t)}return o=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return g(this,i(i({},t),{},{customInspect:!1,depth:0}))}}],function(e,t){for(var r=0;r2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",function(e,t,o){if((void 0===a&&(a=r(69282)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(i="not ",t.substr(0,i.length)===i))?(f="must not be",t=t.replace(/^not /,"")):f="must be",s=" argument",(void 0===u||u>e.length)&&(u=e.length),e.substring(u-s.length,u)===s)p="The ".concat(e," ").concat(f," ").concat(c(t,"type"));else{var i,s,u,l,f,p,d=("number"!=typeof l&&(l=0),l+1>e.length||-1===e.indexOf(".",l))?"argument":"property";p='The "'.concat(e,'" ').concat(d," ").concat(f," ").concat(c(t,"type"))}return p+". Received type ".concat(n(o))},TypeError),l("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(89539));var o=s.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(o)},TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",function(e,t,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")},TypeError),l("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),n=0;n0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", ")+", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),e.exports.codes=u},19158:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=4294967296}function I(e){return Object.keys(e).filter(k).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function D(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o-1?o(r):r}},55559:function(e,t,r){"use strict";var n=r(67771),o=r(24429),i=r(40319),a=r(93192);e.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},o?o(e.exports,"apply",{value:a}):e.exports.apply=a},17379:function(e,t,r){"use strict";var n=r(40210),o=r(40319),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},11227:function(e,t,r){let n;var o=r(34155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))}),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==o&&"env"in o&&(e=o.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(82447)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},82447:function(e,t,r){e.exports=function(e){function t(e){let r,o,i;let a=null;function s(...e){if(!s.enabled)return;let n=Number(new Date),o=n-(r||n);s.diff=o,s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let o=t.formatters[n];if("function"==typeof o){let t=e[i];r=o.call(s,t),e.splice(i,1),i--}return r}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e,t){let r=0,n=0,o=-1,i=0;for(;r"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(o(e,r))return!1;for(let r of t.names)if(o(e,r))return!0;return!1},t.humanize=r(57824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===u&&f?f.writable:!u});else if(!c&&(s||u||l))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},4289:function(e,t,r){"use strict";var n=r(82215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=r(12296),u=r(31044)(),l=function(e,t,r,n){if(t in e){if(!0===n){if(e[t]===r)return}else if(!("function"==typeof n&&"[object Function]"===i.call(n))||!n())return}u?s(e,t,r,!0):s(e,t,r)},c=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s0&&a.length>o&&!a.warned){a.warned=!0;var o,i,a,l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=c.bind(n);return o.listener=r,n.wrapFn=o,o}function p(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var l=u.length,c=h(u,l),r=0;r=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},94029:function(e,t,r){"use strict";var n=r(95320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,o=e.length;n=3&&(i=r),"[object Array]"===o.call(e))?a(e,t,i):"string"==typeof e?s(e,t,i):u(e,t,i)}},17648:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=H(e),n=r.length>0?r[0]:"",o=W("%"+n+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],B(r,U([0,1],u)));for(var f=1,p=!0;f=r.length){var y=E(a,d);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[d]}else p=q(a,d),a=a[d];p&&!s&&(I[i]=a)}}return a}},68899:function(e,t,r){"use strict";var n=r(68892);e.exports=n.getPrototypeOf||null},10443:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},81618:function(e,t,r){"use strict";var n=r(10443),o=r(68899),i=r(96504);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},40690:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},27296:function(e,t,r){"use strict";var n=r(40690);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},31044:function(e,t,r){"use strict";var n=r(24429),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},41405:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(55419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},55419:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},96410:function(e,t,r){"use strict";var n=r(55419);e.exports=function(){return n()&&!!Symbol.toStringTag}},48824:function(e,t,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(58612);e.exports=i.call(n,o)},26018:function(e,t,r){"use strict";var n=r(48764).Buffer,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HttpsProxyAgent=void 0;let u=a(r(51437)),l=a(r(54675)),c=s(r(69282)),f=s(r(11227)),p=r(12917),d=r(11987),h=r(59829),g=(0,f.default)("https-proxy-agent"),y=e=>void 0===e.servername&&e.host&&!u.isIP(e.host)?{...e,servername:e.host}:e;class b extends p.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy="string"==typeof e?new d.URL(e):e,this.proxyHeaders=t?.headers??{},g("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let r=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):"https:"===this.proxy.protocol?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?v(t,"headers"):null,host:r,port:n}}async connect(e,t){let r;let{proxy:o}=this;if(!t.host)throw TypeError('No "host" provided');"https:"===o.protocol?(g("Creating `tls.Socket`: %o",this.connectOpts),r=l.connect(y(this.connectOpts))):(g("Creating `net.Socket`: %o",this.connectOpts),r=u.connect(this.connectOpts));let i="function"==typeof this.proxyHeaders?this.proxyHeaders():{...this.proxyHeaders},a=u.isIPv6(t.host)?`[${t.host}]`:t.host,s=`CONNECT ${a}:${t.port} HTTP/1.1\r
+`;if(o.username||o.password){let e=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;i["Proxy-Authorization"]=`Basic ${n.from(e).toString("base64")}`}for(let e of(i.Host=`${a}:${t.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"),Object.keys(i)))s+=`${e}: ${i[e]}\r
+`;let f=(0,h.parseProxyResponse)(r);r.write(`${s}\r
+`);let{connect:p,buffered:d}=await f;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),200===p.statusCode)return(e.once("socket",m),t.secureEndpoint)?(g("Upgrading socket connection to TLS"),l.connect({...v(y(t),"host","path","port"),socket:r})):r;r.destroy();let b=new u.Socket({writable:!1});return b.readable=!0,e.once("socket",e=>{g("Replaying proxy buffer for failed request"),(0,c.default)(e.listenerCount("data")>0),e.push(d),e.push(null)}),b}}function m(e){e.resume()}function v(e,...t){let r;let n={};for(r in e)t.includes(r)||(n[r]=e[r]);return n}b.protocols=["http","https"],t.HttpsProxyAgent=b},59829:function(e,t,r){"use strict";var n=r(48764).Buffer,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseProxyResponse=void 0;let i=(0,o(r(11227)).default)("https-proxy-agent:parse-proxy-response");t.parseProxyResponse=function(e){return new Promise((t,r)=>{let o=0,a=[];function s(){let l=e.read();l?function(l){a.push(l),o+=l.length;let c=n.concat(a,o),f=c.indexOf("\r\n\r\n");if(-1===f){i("have not received end of HTTP headers yet..."),s();return}let p=c.slice(0,f).toString("ascii").split("\r\n"),d=p.shift();if(!d)return e.destroy(),r(Error("No header received from proxy CONNECT response"));let h=d.split(" "),g=+h[1],y=h.slice(2).join(" "),b={};for(let t of p){if(!t)continue;let n=t.indexOf(":");if(-1===n)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let o=t.slice(0,n).toLowerCase(),i=t.slice(n+1).trimStart(),a=b[o];"string"==typeof a?b[o]=[a,i]:Array.isArray(a)?a.push(i):b[o]=i}i("got proxy server response: %o %o",d,b),u(),t({connect:{statusCode:g,statusText:y,headers:b},buffered:c})}(l):e.once("readable",s)}function u(){e.removeListener("end",l),e.removeListener("error",c),e.removeListener("readable",s)}function l(){u(),i("onend"),r(Error("Proxy connection ended before receiving CONNECT response"))}function c(e){u(),i("onerror %o",e),r(e)}e.on("error",c),e.on("end",l),s()})}},35717:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},82584:function(e,t,r){"use strict";var n=r(96410)(),o=r(17379)("Object.prototype.toString"),i=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"callee"in e&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},95320:function(e){"use strict";var t,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o(function(){throw 42},null,t)}catch(e){e!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(f(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(a(e))return!1;var t=u.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&s(e)}},48662:function(e,t,r){"use strict";var n,o=r(17379),i=r(79246)(/^\s*(?:function)?\*/),a=r(96410)(),s=r(81618),u=o("Object.prototype.toString"),l=o("Function.prototype.toString"),c=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!=typeof e)return!1;if(i(l(e)))return!0;if(!a)return"[object GeneratorFunction]"===u(e);if(!s)return!1;if(void 0===n){var t=c();n=!!t&&s(t)}return s(e)===n}},98611:function(e){"use strict";e.exports=function(e){return e!=e}},20360:function(e,t,r){"use strict";var n=r(55559),o=r(4289),i=r(98611),a=r(29415),s=r(23194),u=n(a(),Number);o(u,{getPolyfill:a,implementation:i,shim:s}),e.exports=u},29415:function(e,t,r){"use strict";var n=r(98611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},23194:function(e,t,r){"use strict";var n=r(4289),o=r(29415);e.exports=function(){var e=o();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},98420:function(e,t,r){"use strict";var n,o=r(17379),i=r(96410)(),a=r(48824),s=r(27296);if(i){var u=o("RegExp.prototype.exec"),l={},c=function(){throw l},f={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=c),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{u(e,f)}catch(e){return e===l}}}else{var p=o("Object.prototype.toString");n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"[object RegExp]"===p(e)}}e.exports=n},85692:function(e,t,r){"use strict";var n=r(86430);e.exports=function(e){return!!n(e)}},59738:function(e){"use strict";e.exports=Math.abs},76329:function(e){"use strict";e.exports=Math.floor},43678:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},52264:function(e){"use strict";e.exports=Math.max},55730:function(e){"use strict";e.exports=Math.min},20707:function(e){"use strict";e.exports=Math.pow},63862:function(e){"use strict";e.exports=Math.round},29550:function(e,t,r){"use strict";var n=r(43678);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},57824:function(e){function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,o,i=typeof e;if("string"===i&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===i&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>=1e3?t(e,n,1e3,"second"):e+" ms":(o=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":o>=36e5?Math.round(e/36e5)+"h":o>=6e4?Math.round(e/6e4)+"m":o>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},38399:function(e){"use strict";e.exports=function(){return Object.assign}},78428:function(e,t,r){!function(){var t={528:function(e,t,r){var n=r(685),o=r(310),i=e.exports;for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a]);function s(e){if("string"==typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=s(e),n.request.call(this,e,t)},i.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},685:function(e){"use strict";e.exports=r(22321)},310:function(e){"use strict";e.exports=r(11987)}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,o),a=!1}finally{a&&delete n[e]}return i.exports}o.ab="//";var i=o(528);e.exports=i}()},11987:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(97334)}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,o),a=!1}finally{a&&delete n[e]}return i.exports}o.ab="//";var i={};!function(){var e,t=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=b(e));var n,o,i,a,s,u,l,c,f,p=(o=(n=e).auth,i=n.hostname,a=n.protocol||"",s=n.pathname||"",u=n.hash||"",l=n.query||"",c=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",n.host?c=o+n.host:i&&(c=o+(~i.indexOf(":")?"["+i+"]":i),n.port&&(c+=":"+n.port)),l&&"object"==typeof l&&(l=t.encode(l)),f=n.search||l&&"?"+l||"",a&&":"!==a.substr(-1)&&(a+=":"),n.slashes||(!a||r.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),u&&"#"!==u[0]&&(u="#"+u),f&&"?"!==f[0]&&(f="?"+f),{protocol:a,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:u});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var a="http://",s=a+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,l=/https?|ftp|gopher|file/;function c(e,t){var r="string"==typeof e?b(e):e;e="object"==typeof e?n(e):e;var o=b(t),i="";r.protocol&&!r.slashes&&(i=r.protocol,e=e.replace(r.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&o.protocol&&(i="",o.slashes||(i=o.protocol,t=t.replace(o.protocol,"")));var c=e.match(u);c&&!o.protocol&&(e=e.substr((i=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var f=new URL(e,s+"/"),p=new URL(t,f).toString().replace(s,""),d=o.protocol||r.protocol;return d+=r.slashes||o.slashes?"//":"",!i&&d?p=p.replace(a,d):i&&(p=p.replace(a,"")),l.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),i&&(p=i+("/"===p[0]?p.substr(1):p)),p}function f(){}f.prototype.parse=b,f.prototype.format=n,f.prototype.resolve=c,f.prototype.resolveObject=c;var p=/^https?|ftp|gopher|file/,d=/^(.*?)([#?].*)/,h=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,y=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(e,r,o){if(void 0===r&&(r=!1),void 0===o&&(o=!1),e&&"object"==typeof e&&e instanceof f)return e;var i=(e=e.trim()).match(d);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),y.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(h),u=g.test(e),l="";a&&(p.test(a[1])||(l=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(u=!1,p.test(a[1])?(l=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(l=a[1],e="/"+a[3]));var c,b=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),m=b&&b[1],v=new f,w="",E="";try{c=new URL(e)}catch(t){w=t,l||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(E="/",e=e.substr(1));try{c=new URL(e,s)}catch(e){return v.protocol=l,v.href=l,v}}v.slashes=u&&!E,v.host="w.w"===c.host?"":c.host,v.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),v.protocol=w?l||null:c.protocol,v.search=c.search.replace(/\\/g,"%5C"),v.hash=c.hash.replace(/\\/g,"%5C");var S=e.split("#");!v.search&&~S[0].indexOf("?")&&(v.search="?"),v.hash||""!==S[1]||(v.hash="#"),v.query=r?t.decode(c.search.substr(1)):v.search.substr(1),v.pathname=E+(a?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===v.protocol&&"blank"===v.pathname&&(v.protocol="",v.pathname=""),w&&"/"!==e[0]&&(v.pathname=v.pathname.substr(1)),l&&!p.test(l)&&"/"!==e.slice(-1)&&"/"===v.pathname&&(v.pathname=""),v.path=v.pathname+v.search,v.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),v.port=c.port,m&&!v.host.endsWith(m)&&(v.host+=m,v.port=m.slice(1)),v.href=E?""+v.pathname+v.search+v.hash:n(v);var _=/^(file)/.test(v.href)?["host","hostname"]:[];return Object.keys(v).forEach(function(e){~_.indexOf(e)||(v[e]=v[e]||null)}),v}i.parse=b,i.format=n,i.resolve=c,i.resolveObject=function(e,t){return b(c(e,t))},i.Url=f}(),e.exports=i}()},97334:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var l=0;l=0?(c=h.substr(0,g),f=h.substr(g+1)):(c=h,f=""),p=decodeURIComponent(c),d=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(i,p))?t(i[p])?i[p].push(d):i[p]=[i[p],d]:i[p]=d}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,s){return(i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(o(e),function(o){var s=encodeURIComponent(t(o))+a;return r(e[o])?n(e[o],function(e){return s+encodeURIComponent(t(e))}).join(i):s+encodeURIComponent(t(e[o]))}).join(i):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;nString(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o,i,a,s;let u,l;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(u="must not be",t=t.replace(/^not /,"")):u="must be",i=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-i.length,a)===i)l=`The ${e} ${u} ${n(t,"type")}`;else{let r=("number"!=typeof s&&(s=0),s+1>e.length||-1===e.indexOf(".",s))?"argument":"property";l=`The "${e}" ${r} ${u} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(709),a=r(337);r(782)(c,i);for(var s=o(a.prototype),u=0;u