@20minutes/tyr 2.1.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,3 +4,4 @@
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
6
  */var g,w=(y||(y=1,g=h,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=n(e,r(a)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var o in r)e.call(r,o)&&r[o]&&(a=n(a,o));return a}function n(e,t){return t?e?e+" "+t:e+t:e}g.exports?(t.default=t,g.exports=t):window.classNames=t}()),h.exports);const E=v(w);var S="/home/travis/build/20minutes/hela/src/components/atoms/Button/Button.tsx";const O=N((({as:e="button",variant:t="primary",children:r,iconProps:n,counter:a,isCentered:o=!1,isSquare:i=!1,...s},c)=>l.createElement(D,{...s,as:e,ref:c,alignItems:"center",gap:"xxs",inline:"link"===t||"a"===e,radius:i?"0":void 0,className:E("c-btn",{[`c-btn--${t}`]:t,"c-btn--is-centered":o},null==s?void 0:s.className),__self:void 0,__source:{fileName:S,lineNumber:50,columnNumber:5}},n&&l.createElement(C,{...n,__self:void 0,__source:{fileName:S,lineNumber:66,columnNumber:21}}),r,(0===a||a)&&l.createElement(D,{justifyContent:"center",alignItems:"center",color:"grey-900",bg:"white",px:"xxs",radius:"s",className:"c-btn__counter",__self:void 0,__source:{fileName:S,lineNumber:69,columnNumber:9}},a))));O.displayName="Button";var I="/home/travis/build/20minutes/hela/src/components/atoms/Divider/Divider.tsx";N((({text:e,color:t="black",thickness:r="thin",...n},a)=>{const o=l.createElement(H,{bg:t,align:"center",className:E("c-divider__line",{[`c-divider__line--${r}`]:"thin"!==r}),__self:void 0,__source:{fileName:I,lineNumber:15,columnNumber:7}});return l.createElement(D,{...n,ref:a,className:E("c-divider",{"c-divider--has-text":!!e},null==n?void 0:n.className),__self:void 0,__source:{fileName:I,lineNumber:25,columnNumber:7}},e?l.createElement(l.Fragment,null,o,l.createElement(H,{px:"xxs-2",className:"c-divider__text",__self:void 0,__source:{fileName:I,lineNumber:37,columnNumber:13}},l.createElement(J,{size:"xxs",color:t,textTransform:"uppercase",__self:void 0,__source:{fileName:I,lineNumber:38,columnNumber:15}},e)),o):o)}));N((({color:e="black",thickness:t="thin",...r},n)=>l.createElement(M,{...r,ref:n,bg:e,className:E("c-divider-vertical",{[`c-divider-vertical--${t}`]:"thin"!==t},null==r?void 0:r.className),__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/atoms/DividerVertical/DividerVertical.tsx",lineNumber:13,columnNumber:5}})));var x="/home/travis/build/20minutes/hela/src/components/atoms/Icon/Icon.tsx";const C=N((({name:e,size:t=28,isRounded:r=!1,border:n,rotation:a,svgTitle:o,...i},s)=>{const c=Array.isArray(t)?null==t?void 0:t[0]:t,u=Array.isArray(t)?null==t?void 0:t[1]:t;return l.createElement(M,{...i,ref:s,className:E("c-icon",{[`c-icon--has-border-${n}`]:n,"c-icon--is-rounded":r,[`c-icon--${a}`]:a},null==i?void 0:i.className),__self:void 0,__source:{fileName:x,lineNumber:23,columnNumber:7}},l.createElement("svg",{width:c,height:u,__self:void 0,__source:{fileName:x,lineNumber:36,columnNumber:9}},o&&l.createElement("title",{__self:void 0,__source:{fileName:x,lineNumber:37,columnNumber:24}},o),"circle"===e?l.createElement("circle",{__self:void 0,__source:{fileName:x,lineNumber:38,columnNumber:32}}):l.createElement("use",{xlinkHref:`#${e}`,__self:void 0,__source:{fileName:x,lineNumber:38,columnNumber:45}})))}));var k="/home/travis/build/20minutes/hela/src/components/atoms/Input/Input.tsx";N((({id:e,className:t,color:r,required:n,label:a,icon:o,positionIcon:i="right",isIconButton:s=!1,iconButtonProps:c,variant:u,msg:m,containerProps:d,isRounded:f,isTransparent:p,..._},b)=>l.createElement(D,{direction:"column",ref:b,className:"c-input",...d,__self:void 0,__source:{fileName:k,lineNumber:42,columnNumber:5}},a&&l.createElement("label",{htmlFor:e,className:"c-input__label",__self:void 0,__source:{fileName:k,lineNumber:44,columnNumber:9}},a,n&&l.createElement("abbr",{className:"c-input__label__abbr",title:"(ce champ est obligatoire)",__self:void 0,__source:{fileName:k,lineNumber:47,columnNumber:13}},"*")),l.createElement(D,{className:"c-input-container",__self:void 0,__source:{fileName:k,lineNumber:53,columnNumber:7}},o&&(s?l.createElement(O,{className:E("c-input-container__icon",`c-input-container__icon--${i}`),iconProps:{name:o,size:18},variant:"ghost",color:r||"black",...c,__self:void 0,__source:{fileName:k,lineNumber:56,columnNumber:13}}):l.createElement(C,{className:E("c-input-container__icon",`c-input-container__icon--${i}`),name:o,size:18,color:r||"black",__self:void 0,__source:{fileName:k,lineNumber:70,columnNumber:13}})),l.createElement("input",{id:e,className:E("c-input-container__input",{[`c-input-container__input--has-icon--${i}`]:o,[`c-input-container__input--${u}`]:u,"c-input-container__input--rounded":f,"c-input-container__input--transparent":p},t),required:n,..._,__self:void 0,__source:{fileName:k,lineNumber:80,columnNumber:9}})),m&&m.length&&l.createElement(D,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",__self:void 0,__source:{fileName:k,lineNumber:97,columnNumber:9}},m.map((({iconProps:e,textProps:t,value:r},n)=>l.createElement(D,{key:null==n?void 0:n.toString(),alignItems:"center",gap:"xxs",__self:void 0,__source:{fileName:k,lineNumber:99,columnNumber:13}},e&&l.createElement(C,{...e,__self:void 0,__source:{fileName:k,lineNumber:100,columnNumber:29}}),l.createElement(J,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t,__self:void 0,__source:{fileName:k,lineNumber:101,columnNumber:15}}))))))));const T=e=>{if(void 0!==e.propValue){if("boolean"!=typeof e.propValue){const t=(e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase())("number"==typeof e.propValue?e.propValue.toString():e.propValue);return e.className?`${e.className}-${t}@${e.defaultModifier}`:`${t}@${e.defaultModifier}`}if(!e.className)throw new Error('It is necessary to define the argument "className" !');return`${e.className}@${e.defaultModifier}`}},A=e=>{if(e.propValue&&["boolean","string","number"].includes(typeof e.propValue)||!e.propValue){const t=T({className:e.className,defaultModifier:e.defaultModifier||"xs",propValue:e.propValue});return t?[t]:[]}return Object.entries(e.propValue).reduce(((t,[r,n])=>{const a=T({className:e.className,defaultModifier:r,propValue:n});return a&&t.push(a),t}),[])},R=e=>"object"==typeof e.props?Object.keys(e.props).reduce(((t,r)=>(e.systemPropNames.includes(r)||(t[r]=e.props[r]),t)),{}):{},j=e=>E(Object.entries(e).filter((([e])=>Object.keys(p).includes(e))).reduce(((e,[t,r])=>(e.push(...A({className:t,propValue:r})),e)),[])),P=({textAlign:e,weight:t,textTransform:r,textDecoration:n,italic:a,fontFamily:o,whiteSpace:l})=>E(A({className:"text",propValue:e}),A({className:"font-weight",propValue:t}),{[`white-space-${l}`]:!!l,[`text-transform-${r}`]:!!r,[`text-decoration-${n}`]:!!n,"text-italic":!!a,[`font-${o}`]:!!o}),$=e=>E(j(e),(e=>E({[`bg-${e.bg}`]:e.bg,[`color-${e.color}`]:e.color,[`border-color-${e.borderColor}`]:e.borderColor}))(e),(e=>E(Object.entries(e).filter((([e])=>Object.keys(d).includes(e))).reduce(((e,[t,r])=>(e.push(...A({className:t,propValue:r})),e)),[])))(e)),V=({inline:e=!1,direction:t,wrap:r,...n})=>E(...A({propValue:e,className:e?"inline-flex":"flex"}),...A({propValue:t,className:"direction"}),...A({propValue:r}),(e=>E(...A({propValue:e.alignItems,className:"items"}),...A({propValue:e.alignContent,className:"content"}),...A({propValue:e.justifyContent,className:"justify"}),...A({propValue:e.gap,className:"gap"}),...A({propValue:e.gapX,className:"gap-x"}),...A({propValue:e.gapY,className:"gap-y"}),...A({propValue:e.flexGrow,className:"grow"})))(n)),L=({basis:e,shrink:t,grow:r,...n})=>E(...A({propValue:e,className:"basis"}),...A({propValue:t,className:"shrink"}),...A({propValue:r,className:"grow"}),(e=>E(...A({propValue:e.align,className:"self"})))(n));const M=N((({as:e="div",children:t,...r},n)=>l.createElement(e,{...R({props:r,systemPropNames:Object.keys(_)}),ref:n,className:E($(r),null==r?void 0:r.className),__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/atoms/Layout/Box/Box.tsx",lineNumber:13,columnNumber:3}},t)));M.displayName="Box";const D=N((({as:e="div",children:t,...r},n)=>l.createElement(M,{...R({props:r,systemPropNames:Object.keys(m)}),as:e,ref:n,className:E(V(r),null==r?void 0:r.className),__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/atoms/Layout/Flex/Flex.tsx",lineNumber:12,columnNumber:3}},t)));const H=N((({as:e="div",children:t,...r},n)=>l.createElement(M,{...R({props:r,systemPropNames:Object.keys(u)}),as:e,ref:n,className:E(L(r),null==r?void 0:r.className),__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/atoms/Layout/Flex/FlexItem/FlexItem.tsx",lineNumber:13,columnNumber:5}},t)));N((({as:e="a",children:t,color:r,size:n,variant:a,weight:o,whiteSpace:i,tabIsSelected:s,tabVariant:c,tabColor:u,...m},d)=>{if(a&&r)throw new Error("You can't use color and variant props together");const f=c||u?E("c-tab",{[`c-tab--${c}`]:c,[`c-tab--${u}`]:u,"c-tab--selected":s,"c-tab--unselected":!s},P({weight:o,whiteSpace:i}),null==m?void 0:m.className):E("c-link",{[`c-btn c-btn--${a}`]:a&&!r},P({weight:o,whiteSpace:i}),A({className:"text",propValue:n}),null==m?void 0:m.className);return l.createElement(M,{...m,as:e,ref:d,...!c&&!u&&{color:a?void 0:r||"ultramarine"},className:f,__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/atoms/Link/Link.tsx",lineNumber:73,columnNumber:7}},t)}));var B="/home/travis/build/20minutes/hela/src/components/atoms/ScrollProgressBar/ScrollProgressBar.tsx";N((({variant:e,progressColor:t="ultramarine"},r)=>l.createElement(M,{ref:r,bg:"grey-100",className:E("c-progress",{[`c-progress--${e}`]:e}),__self:void 0,__source:{fileName:B,lineNumber:14,columnNumber:5}},l.createElement(M,{className:"c-progress__bar",bg:t,style:{width:"0%"},__self:void 0,__source:{fileName:B,lineNumber:19,columnNumber:7}}))));var F="/home/travis/build/20minutes/hela/src/components/atoms/Select/Select.tsx";N((({id:e,className:t,required:r,label:n,defaultValue:a,options:o,placeholder:i,containerProps:s,variant:c="default",icon:u,...m},d)=>{var p,_;return l.createElement(D,{...s,ref:d,direction:"column",className:"c-select",__self:void 0,__source:{fileName:F,lineNumber:42,columnNumber:5}},n&&l.createElement("label",{htmlFor:e,className:"c-select__label",__self:void 0,__source:{fileName:F,lineNumber:44,columnNumber:9}},n,r&&l.createElement("abbr",{className:"c-select__abbr",title:"(ce champ est obligatoire)",__self:void 0,__source:{fileName:F,lineNumber:47,columnNumber:13}},"*")),l.createElement("div",{className:"c-select__container",__self:void 0,__source:{fileName:F,lineNumber:53,columnNumber:7}},u&&l.createElement(C,{className:"c-select__icon",name:u,size:18,__self:void 0,__source:{fileName:F,lineNumber:54,columnNumber:18}}),l.createElement(C,{className:`c-select__caret c-select__caret--${c}`,name:"arrow",size:12,__self:void 0,__source:{fileName:F,lineNumber:55,columnNumber:9}}),l.createElement("select",{id:e,className:E("c-select__select",`c-select__select--${c}`,{"c-select__select--has-icon":!!u},j(m),t),required:r,defaultValue:a||(null==(_=null==(p=o.filter((e=>e.isSelected)))?void 0:p.pop())?void 0:_.value)||"",...R({props:m,systemPropNames:Object.keys(f)}),__self:void 0,__source:{fileName:F,lineNumber:56,columnNumber:9}},i&&l.createElement("option",{value:"",disabled:!0,hidden:!0,__self:void 0,__source:{fileName:F,lineNumber:75,columnNumber:13}},i),o.map((e=>l.createElement("option",{key:e.value,value:e.value,__self:void 0,__source:{fileName:F,lineNumber:80,columnNumber:13}},e.title))))))}));var G="/home/travis/build/20minutes/hela/src/components/atoms/Slider/Slider.tsx";const z=e=>{switch(e){case"primary":return"grey-50";case"secondary":return"grey-100";default:return}};N((({layout:e,children:t,itemsGap:r,buttonsBackground:n,buttonsVariant:a,colorVariant:o,sliderVariant:s="default",auto:c=!1,delay:u=3e3,...m},d)=>l.createElement(M,{...m,ref:d,className:E("c-slider js-navigation-container",null==m?void 0:m.className),"data-slider-variant":s,"data-slider-auto":c,"data-slider-delay":u,__self:void 0,__source:{fileName:G,lineNumber:56,columnNumber:5}},l.createElement(M,{className:"c-slider__viewport js-navigation-container__list",__self:void 0,__source:{fileName:G,lineNumber:64,columnNumber:7}},l.createElement(D,{className:"c-slider__list",alignItems:"center",gap:r,__self:void 0,__source:{fileName:G,lineNumber:65,columnNumber:9}},t)),e===i.DESKTOP&&l.createElement(M,{className:"c-slider__buttons-container",__self:void 0,__source:{fileName:G,lineNumber:70,columnNumber:9}},Array.from(["previous","next"],(e=>l.createElement(M,{key:e,bg:n&&z(n),pr:n&&"previous"===e?"l":void 0,pl:n&&"next"===e?"l":void 0,className:E(`c-slider__button-container c-slider__button-container--${e} o-nav-button o-nav-button--${e}-button`,{"c-slider__button-container--has-background":n},{[`c-slider__button-container--${s}`]:s}),__self:void 0,__source:{fileName:G,lineNumber:72,columnNumber:13}},l.createElement(O,{variant:a||"round",color:o,..."videos"===s&&{p:"m"},iconProps:{name:"chevron",size:"videos"===s?14:12,rotation:"previous"===e?"half":void 0,svgTitle:"previous"===e?"Précédent":"Suivant"},__self:void 0,__source:{fileName:G,lineNumber:85,columnNumber:15}}))))))));N((({as:e="a",id:t,variant:r="primary",children:n,...a},o)=>l.createElement(M,{...a,as:"span"===r?"span":e,href:"span"===r||null==a?void 0:a.href,ref:o,className:E("c-tags",`c-tags--${r}`,null==a?void 0:a.className),"data-id":t,__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/atoms/Tag/Tag.tsx",lineNumber:14,columnNumber:5}},n)));var q="/home/travis/build/20minutes/hela/src/components/atoms/Textarea/Textarea.tsx";N((({id:e,required:t,label:r,variant:n,msg:a,rows:o=5,containerProps:i,...s},c)=>l.createElement(D,{direction:"column",ref:c,...i,className:E("c-textarea",null==i?void 0:i.className),__self:void 0,__source:{fileName:q,lineNumber:19,columnNumber:5}},r&&l.createElement("label",{htmlFor:e,className:"c-textarea__label",__self:void 0,__source:{fileName:q,lineNumber:26,columnNumber:9}},r,t&&l.createElement("abbr",{className:"c-textarea__label__abbr",title:"(ce champ est obligatoire)",__self:void 0,__source:{fileName:q,lineNumber:29,columnNumber:13}},"*")),l.createElement(D,{className:"c-textarea-container",__self:void 0,__source:{fileName:q,lineNumber:35,columnNumber:7}},l.createElement("textarea",{rows:o,placeholder:"Votre message...",required:t,...s,id:e,name:e,className:E("c-textarea-container__input",{[`c-textarea-container__input--${n}`]:n},null==s?void 0:s.className),__self:void 0,__source:{fileName:q,lineNumber:36,columnNumber:9}})),a&&a.length&&l.createElement(D,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",__self:void 0,__source:{fileName:q,lineNumber:53,columnNumber:9}},a.map((({iconProps:e,textProps:t,value:r},n)=>l.createElement(D,{key:null==n?void 0:n.toString(),alignItems:"center",gap:"xxs",__self:void 0,__source:{fileName:q,lineNumber:55,columnNumber:13}},e&&l.createElement(C,{...e,__self:void 0,__source:{fileName:q,lineNumber:56,columnNumber:29}}),l.createElement(J,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t,__self:void 0,__source:{fileName:q,lineNumber:57,columnNumber:15}}))))))));const Y=N((({as:e="p",children:t,...r},n)=>t&&t.toString().length||null!=r&&r.dangerouslySetInnerHTML?l.createElement(M,{...R({props:r,systemPropNames:Object.keys(b)}),as:e,ref:n,className:E(P(r),null==r?void 0:r.className),__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/atoms/Typography/Typography.tsx",lineNumber:14,columnNumber:7}},t):null));const U=N((({as:e="h1",size:t,children:r,...n},a)=>l.createElement(Y,{...n,as:e,ref:a,className:E(A({className:"heading",propValue:t}),null==n?void 0:n.className),__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/atoms/Typography/Heading/Heading.tsx",lineNumber:15,columnNumber:5}},r)));const J=N((({as:e="p",size:t,highlighted:r,children:n,...a},o)=>l.createElement(Y,{as:r?"span":e,bg:r?"sponsoring":a.bg,p:r?"xxs":a.p,color:r?"grey-800":a.color,...a,ref:o,className:E(A({className:"text",propValue:t}),{"text-highlighted":r},null==a?void 0:a.className),__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/atoms/Typography/Text/Text.tsx",lineNumber:16,columnNumber:5}},n)));N((({as:e="div",children:t,className:r,clickable:n=!1,...a},o)=>l.createElement(D,{...a,as:e,ref:o,justifyContent:(null==a?void 0:a.justifyContent)||"between",className:E("c-card-container",{"c-card-container--clickable":n},r),__self:void 0,__source:{fileName:"/home/travis/build/20minutes/hela/src/components/molecules/Card/CardContainer/CardContainer.tsx",lineNumber:14,columnNumber:5}},t)));var W="/home/travis/build/20minutes/hela/src/components/molecules/Collapse/Collapse.tsx";N((({titleProps:e,titleIconProps:t,index:r,isOpen:n,contentWithBorder:a=!0,contentProps:o,iconProps:i,btnProps:s,children:c,isDropdown:u,...m},d)=>l.createElement(M,{...m,className:E("c-collapse js-collapse",{"c-collapse--dropdown":u}),ref:d,__self:void 0,__source:{fileName:W,lineNumber:45,columnNumber:5}},l.createElement(M,{...s,as:"button",type:"button",id:`c-collapse__button-${r}`,pl:(null==s?void 0:s.pl)||"l",py:(null==s?void 0:s.py)||"xxs",className:E("c-collapse__button js-collapse__button",null==s?void 0:s.className),"aria-controls":`c-collapse__content-${r}`,"aria-expanded":n||"false",__self:void 0,__source:{fileName:W,lineNumber:50,columnNumber:7}},t?l.createElement(D,{alignItems:"center",__self:void 0,__source:{fileName:W,lineNumber:62,columnNumber:11}},l.createElement(C,{size:34,mr:"xs",...t,__self:void 0,__source:{fileName:W,lineNumber:63,columnNumber:13}}),e.children):l.createElement(J,{size:"l",...e,__self:void 0,__source:{fileName:W,lineNumber:67,columnNumber:11}},e.children),l.createElement(C,{...i,name:"chevron",size:16,className:E("c-collapse__icon",null==i?void 0:i.className),__self:void 0,__source:{fileName:W,lineNumber:71,columnNumber:9}})),l.createElement(D,{...o,direction:"column",p:(null==o?void 0:o.p)||"xl",id:`c-collapse__content-${r}`,"aria-hidden":n?!n:"true","aria-labelledby":`c-collapse__button-${r}`,className:E("c-collapse__content",{"c-collapse__content--with-border":a}),role:"tabpanel",__self:void 0,__source:{fileName:W,lineNumber:78,columnNumber:7}},c))));var K="/home/travis/build/20minutes/hela/src/components/molecules/Horoscope/HoroscopeTopicCard/HoroscopeTopicCard.tsx";N((({icon:e,title:t,content:r,...n},a)=>l.createElement(M,{...n,ref:a,className:E("c-horoscope-topic-card",null==n?void 0:n.className),__self:void 0,__source:{fileName:K,lineNumber:16,columnNumber:5}},l.createElement(D,{alignItems:"center",mb:"s",__self:void 0,__source:{fileName:K,lineNumber:17,columnNumber:7}},l.createElement(C,{className:"c-horoscope-topic-card__icon",name:e,size:21,__self:void 0,__source:{fileName:K,lineNumber:18,columnNumber:9}}),l.createElement(U,{as:"h3",size:"xs",__self:void 0,__source:{fileName:K,lineNumber:19,columnNumber:9}},t)),l.createElement(J,{size:"m",__self:void 0,__source:{fileName:K,lineNumber:23,columnNumber:7}},r))));var X,Z={};!function(){if(X)return Z;X=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.StickyShareButtons=Z.InlineShareButtons=Z.InlineReactionButtons=Z.InlineFollowButtons=void 0;var e,t=(e=l)&&e.__esModule?e:{default:e};function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}();return function(){var n,a=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e,t){var r=e.props.config||{enabled:!0};r=JSON.parse(JSON.stringify(r));var n=window.onShareThisLoaded;if(window.onShareThisLoaded=function a(){if(!a.complete){if(!r.id){var o="sharethis-"+Date.now();r.id=o}e.buttons.current&&(e.buttons.current.id=r.id,window.__sharethis__.load(t,r)),n&&n(),a.complete=!0}},document.getElementById("sharethis-js"))window.__sharethis__&&window.onShareThisLoaded();else{var a=document.createElement("script");a.setAttribute("id","sharethis-js");var o={property:r.property||"",product:t,source:"reactjs"},l=Object.keys(o).map((function(e){return e+"="+o[e]})).join("&");a.src="https://platform-api.sharethis.com/js/sharethis.js?"+l,a.async=!0,document.body.appendChild(a)}},m=function(e){o(l,e);var r=s(l);function l(e){var a;return n(this,l),(a=r.call(this,e)).buttons=t.default.createRef(),a}return a(l,[{key:"componentDidMount",value:function(){u(this,"inline-follow-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),l}(t.default.Component);Z.InlineFollowButtons=m;var d=function(e){o(l,e);var r=s(l);function l(e){var a;return n(this,l),(a=r.call(this,e)).buttons=t.default.createRef(),a}return a(l,[{key:"componentDidMount",value:function(){u(this,"inline-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),l}(t.default.Component);Z.InlineShareButtons=d;var f=function(e){o(l,e);var r=s(l);function l(e){var a;return n(this,l),(a=r.call(this,e)).buttons=t.default.createRef(),a}return a(l,[{key:"componentDidMount",value:function(){u(this,"inline-reaction-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),l}(t.default.Component);Z.InlineReactionButtons=f;var p=function(e){o(l,e);var r=s(l);function l(e){var a;return n(this,l),(a=r.call(this,e)).buttons=t.default.createRef(),a}return a(l,[{key:"componentDidMount",value:function(){u(this,"sticky-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),l}(t.default.Component);Z.StickyShareButtons=p}();const Q=(e,t)=>{const r=document.createElement("meta");r.setAttribute("name",e),r.setAttribute("content",t),document.head.appendChild(r)},ee=()=>{Q("pbstck_context:site_name",window.layout===i.DESKTOP?"20minutes_desktop":"20minutes_webmobile"),Q("pbstck_context:section",(()=>{switch(window.datalayerInfo.pageName){case"home":return"homepage";case"tag":case"section":return"homes";case"article":case"live":return"article";default:return"divers"}})()),Q("ad:lang","fr"),Q("ad:dn",window.location.host),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push((()=>{Q("pbstck_context:consent",window.didomiState.didomiPurposesDisabled||window.didomiState.didomiVendorsDisabled?"false":"true")})),Object.entries({...window.dfp.targeting}).forEach((([e,t])=>{Q(`ad:${e}`,t)}))},te=e=>null!==localStorage.getItem(e),re=(e,t)=>{let r=e.toLowerCase().replace(/[\s-]+/g,t??"-");return r=(e=>{let t=e;const r="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)t=t.replace(new RegExp(r.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return t})(r),r.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},ne=()=>{if(te("20min_user_token")){const e=localStorage.getItem("20min_user_token");fetch(`https://securepubads.g.doubleclick.net/user_data_deletion?ppid=${e}&iu=49926454`,{referrerPolicy:"strict-origin-when-cross-origin"}).then((e=>{e.ok&&alert("La demande de suppression a bien été prise en compte")})),localStorage.removeItem("20min_user_token")}},ae=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push((e=>{!e.getCurrentUserStatus().purposes["publicite-9qedKJMX"].enabled||!navigator.userAgent.includes("Firefox")&&!navigator.userAgent.includes("Safari")||navigator.userAgent.includes("Chrome")||navigator.userAgent.includes("Chromium")||navigator.userAgent.includes("Seamonkey")||te("20min_user_token")||localStorage.setItem("20min_user_token",window.crypto.randomUUID())}))},oe=()=>{ae(),(()=>{const e=document.getElementById("delete-ppid");e&&e.addEventListener("click",ne)})()},le=["nfb_1","nfb_2","article_btf","pave_com","pave_home","inread","pave_article","article_mtf","native_web"];var ie=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e.HOROSCOPE="horoscope",e.JOBS="home_metier",e.JOB_DETAILS="fiche_metier",e.WEATHER="weather",e.TRAFFIC="traffic",e.HOROSCOPE_HOME="horoscopehome",e))(ie||{}),se=(e=>(e.PAGETYPE="page_type",e.TAGS="tags",e.CATEGORY="category",e.SUBCATEGORY="subcategory",e.CONTENTID="content_id",e.CONTENTTYPE="content_type",e.CONTENTSLUG="content_slug",e.BRANDSAFETY="brand_safety",e.HASVIDEO="has_video",e.DEVICE="device",e.ADM="adm",e))(se||{}),ce=(e=>(e.ARTICLE="article",e.LIVE="live",e.STORY="story",e.TAG="tag",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.HOROSCOPE_HOME="horoscopehome",e.HOROSCOPE="horoscope",e.TRAFFIC="traffic",e.WEATHER="weather",e.ELECTIONSHOME="electionshome",e.ELECTIONS="elections",e.GAME="game",e.GAMEHOME="gamehome",e.MOVIES="movies",e.SITEMAP="sitemap",e.NEWS="news",e.JOURNALIST="journalist",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.SPORT="sport",e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.CONTACT="contact",e.DIRECT="direct",e.HOME="home",e.LA21E="la21e",e.MOBILE_APPS="mobileapps",e.MOST_VIEWED="mostviewed",e.PARTNER="partner",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.PROGRAM="program",e.VIDEOS="videos",e.VIDEO="video",e))(ce||{});const ue=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(se).forEach((e=>{const t=(e=>{switch(e){case"page_type":case"content_type":if(window.datalayerInfo?.pageName&&Object.values(ce).includes(window.datalayerInfo.pageName))switch(window.datalayerInfo.pageName){case ce.HOME:return"homepage";case ce.TAG:return ie.HOME;case ce.JOBS:return ie.JOBS;case ce.JOB_DETAILS:return ie.JOB_DETAILS;default:return window.datalayerInfo.pageName}return ie.MISC;case"content_id":return window.datalayerInfo?.contentId??window.datalayerInfo?.tagId??window.datalayerInfo?.jobId??void 0;case"tags":if(window.datalayerInfo.elections&&(window.datalayerInfo?.pageName===ce.ELECTIONS||window.datalayerInfo?.pageName===ce.ELECTIONSHOME)){const{national:e,region:t,department:r,town:n}=window.datalayerInfo.elections;return[e?"national":void 0,t,r,n].filter(Boolean).join(",")}return window.datalayerInfo.tagsSlug?window.datalayerInfo.tagsSlug.replace(/\|/g,","):re(window.datalayerInfo.tagName??"","_")||void 0;case"category":return!window.datalayerInfo.elections||window.datalayerInfo?.pageName!==ce.ELECTIONS&&window.datalayerInfo?.pageName!==ce.ELECTIONSHOME?window.datalayerInfo?.breadcrumb?.[0]?re(window.datalayerInfo.breadcrumb[0]):window.datalayerInfo?.pageName===ce.HOROSCOPE||window.datalayerInfo?.pageName===ce.HOROSCOPE_HOME?re(window.datalayerInfo.pageName):window.datalayerInfo?.sectionLabel?re(window.datalayerInfo.sectionLabel):void 0:"elections";case"subcategory":if(window.datalayerInfo.elections&&(window.datalayerInfo?.pageName===ce.ELECTIONS||window.datalayerInfo?.pageName===ce.ELECTIONSHOME))return"resultats";if(window.datalayerInfo.breadcrumb&&window.datalayerInfo.breadcrumb.length>1){const e=re(window.datalayerInfo.breadcrumb[window.datalayerInfo.breadcrumb.length-(window.datalayerInfo.pageName===ce.TAG?2:1)]);return e===re(window.datalayerInfo.breadcrumb[0])?re(window.datalayerInfo.tagName??"")||void 0:e||void 0}return;case"content_slug":return window.datalayerInfo.contentTitle?re(window.datalayerInfo.contentTitle):void 0;case"brand_safety":return window.datalayerInfo?.sentiment;case"has_video":return void 0!==window.partnerFeatures?.enableDisplayOnHeaderAd?window.partnerFeatures.enableDisplayOnHeaderAd.toString():void 0;case"device":return window.layout??void 0;default:return}})(e);t&&(window.dfp.targeting[e]=t)}))};window.googletag=window.googletag||{cmd:[]},window.dfp=window.dfp||{},le.forEach((e=>{const t=document?.querySelectorAll(`[id*=dfp_${e}]`)||[],r=document?.querySelectorAll(`[id=dfp_${e}]`)||[];let n=t.length-r.length;r.forEach((t=>{t.setAttribute("id",`dfp_${e}_${n}`),n+=1}))})),ue(),googletag.cmd.push((()=>{googletag.pubads().addEventListener("impressionViewable",(e=>{const t=e.slot;document.querySelectorAll(".c-ad-placeholder").forEach((e=>{(e.getAttribute("data-dfp-id")??e.getAttribute("id"))===t.getSlotElementId()&&e.classList.add("placeholder-with-ad")}))}))})),oe(),window.datalayerInfo.enablePubstack&&ee()}();
7
+ //# sourceMappingURL=ads.min.js.map
@@ -1 +1,2 @@
1
1
  !function(){"use strict";var e,t,n=Object.create,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return e&&(t=(0,e[i(e)[0]])(e=0)),t},u=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},l=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},d=(e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of i(t))s.call(e,c)||c===n||r(e,c,{get:()=>t[c],enumerable:!(a=o(t,c))||a.enumerable});return e},f=(e,t,o)=>(o=null!=e?n(a(e)):{},d(e&&e.__esModule?o:r(o,"default",{value:e,enumerable:!0}),e)),p=e=>d(r({},"__esModule",{value:!0}),e),h=u({"node_modules/ua-parser-js/src/ua-parser.js"(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="major",u="model",l="name",d="type",f="vendor",p="version",h="architecture",v="console",y="mobile",m="tablet",g="smarttv",b="wearable",w="embedded",E="Amazon",S="Apple",T="ASUS",_="BlackBerry",C="Browser",I="Chrome",O="Firefox",P="Google",A="Huawei",k="LG",L="Microsoft",x="Motorola",R="Opera",j="Samsung",U="Sharp",D="Sony",M="Xiaomi",H="Zebra",q="Facebook",B="Chromium OS",N="Mac OS",F=" Browser",V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},z=function(e,t){return typeof e===s&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},K=function(e,t){for(var n,i,s,c,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(s=0;s<p.length;s++)l=u[++i],typeof(c=p[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;d+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(z(t[n][o],e))return"?"===n?r:n}else if(z(t[n],e))return"?"===n?r:n;return t.hasOwnProperty("*")?t["*"]:e},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,p],[/opios[\/ ]+([\w\.]+)/i],[p,[l,R+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[l,R+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[l,R]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[p,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,p],[/quark(?:pc)?\/([-\w\.]+)/i],[p,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[p,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[l,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[l,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+C],p],[/\bfocus\/([\w\.]+)/i],[p,[l,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[l,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[l,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI"+F]],[/fxios\/([\w\.-]+)/i],[p,[l,O]],[/\bqihoobrowser\/?([\w\.]*)/i],[p,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],p],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+F],p],[/samsungbrowser\/([\w\.]+)/i],[p,[l,j+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[p,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,p],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[p,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,q],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[l,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,I+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[l,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[p,G,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],p],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[l,O+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[p,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,$]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",$]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,j],[d,m]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,j],[d,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,S],[d,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,S],[d,m]],[/(macintosh);/i],[u,[f,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,U],[d,y]],[/(?:honor)([-\w ]+)[;\)]/i],[u,[f,"Honor"],[d,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,A],[d,m]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,A],[d,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[u,/_/g," "],[f,M],[d,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,M],[d,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[d,y]],[/\b(opd2\d{3}a?) bui/i],[u,[f,"OPPO"],[d,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[d,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[d,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,x],[d,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,x],[d,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,k],[d,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,k],[d,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[d,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[d,y]],[/(pixel c)\b/i],[u,[f,P],[d,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,P],[d,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,D],[d,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,D],[d,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[d,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,E],[d,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,E],[d,y]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[d,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,_],[d,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,T],[d,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,T],[d,y]],[/(nexus 9)/i],[u,[f,"HTC"],[d,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[d,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[f,"TCL"],[d,m]],[/(itel) ((\w+))/i],[[f,$],u,[d,G,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[d,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[d,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[f,"Ulefone"],[d,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[f,"Energizer"],[d,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[f,"Cat"],[d,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[f,"Smartfren"],[d,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[f,"Nothing"],[d,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[d,y]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[d,m]],[/(surface duo)/i],[u,[f,L],[d,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[d,y]],[/(u304aa)/i],[u,[f,"AT&T"],[d,y]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[d,y]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[d,m]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[d,m]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[d,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[d,m]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[d,m]],[/\b(k88) b/i],[u,[f,"ZTE"],[d,m]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[d,y]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[d,y]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[d,m]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[d,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[d,m]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[d,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[d,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[d,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[d,y]],[/\b(ph-1) /i],[u,[f,"Essential"],[d,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[d,m]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[d,m]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[d,m]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[d,m]],[/(sprint) (\w+)/i],[f,u,[d,y]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,L],[d,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,H],[d,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,H],[d,y]],[/smart-tv.+(samsung)/i],[f,[d,g]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,j],[d,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,k],[d,g]],[/(apple) ?tv/i],[f,[u,S+" TV"],[d,g]],[/crkey/i],[[u,I+"cast"],[f,P],[d,g]],[/droid.+aft(\w+)( bui|\))/i],[u,[f,E],[d,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,U],[d,g]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,D],[d,g]],[/(mitv-\w{5}) bui/i],[u,[f,M],[d,g]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[d,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,W],[u,W],[d,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[d,v]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[d,v]],[/(playstation [345portablevi]+)/i],[u,[f,D],[d,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,L],[d,v]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[u,[f,j],[d,b]],[/((pebble))app/i],[f,u,[d,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,S],[d,b]],[/droid.+; (glass) \d/i],[u,[f,P],[d,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,H],[d,b]],[/droid.+; (glass) \d/i],[u,[f,P],[d,b]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,u,[d,b]],[/; (quest( \d| pro)?)/i],[u,[f,q],[d,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,w]],[/(aeobc)\b/i],[u,[f,E],[d,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[d,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,y]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,p],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[p,G,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,G,X],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,N],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,p],[/\(bb(10);/i],[p,[l,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[l,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[l,I+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,B],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,p],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,p]]},J=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof J))return new J(e,t).getResult();var v=typeof n!==i&&n.navigator?n.navigator:r,g=e||(v&&v.userAgent?v.userAgent:""),b=v&&v.userAgentData?v.userAgentData:r,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Z,t):Z,E=v&&v.userAgent==g;return this.getBrowser=function(){var e,t={};return t[l]=r,t[p]=r,K.call(t,g,w.browser),t[c]=typeof(e=t[p])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,E&&v&&v.brave&&typeof v.brave.isBrave==o&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,K.call(e,g,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[u]=r,e[d]=r,K.call(e,g,w.device),E&&!e[d]&&b&&b.mobile&&(e[d]=y),E&&"Macintosh"==e[u]&&v&&typeof v.standalone!==i&&v.maxTouchPoints&&v.maxTouchPoints>2&&(e[u]="iPad",e[d]=m),e},this.getEngine=function(){var e={};return e[l]=r,e[p]=r,K.call(e,g,w.engine),e},this.getOS=function(){var e={};return e[l]=r,e[p]=r,K.call(e,g,w.os),E&&!e[l]&&b&&b.platform&&"Unknown"!=b.platform&&(e[l]=b.platform.replace(/chrome os/i,B).replace(/macos/i,N)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===s&&e.length>500?W(e,500):e,this},this.setUA(g),this};J.VERSION="1.0.40",J.BROWSER=V([l,p,c]),J.CPU=V([h]),J.DEVICE=V([u,f,d,v,y,g,m,b,w]),J.ENGINE=J.OS=V([l,p]),typeof e!==i?(typeof t!==i&&t.exports&&(e=t.exports=J),e.UAParser=J):typeof define===o&&define.amd?define((function(){return J})):typeof n!==i&&(n.UAParser=J);var Y=typeof n!==i&&(n.jQuery||n.Zepto);if(Y&&!Y.ua){var Q=new J;Y.ua=Q.getResult(),Y.ua.get=function(){return Q.getUA()},Y.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"==typeof window?window:e)}}),v=u({"node_modules/shimmer/index.js"(e,t){function n(e){return"function"==typeof e}var r=console.error.bind(console);function o(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function i(e){e&&e.logger&&(n(e.logger)?r=e.logger:r("new logger isn't a function, not replacing"))}function a(e,t,i){if(e&&e[t]){if(!i)return r("no wrapper function"),void r((new Error).stack);if(n(e[t])&&n(i)){var a=e[t],s=i(a,t);return o(s,"__original",a),o(s,"__unwrap",(function(){e[t]===s&&o(e,t,a)})),o(s,"__wrapped",!0),o(e,t,s),s}r("original object and wrapper must be functions")}else r("no original function "+t+" to wrap")}function s(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void r("no original to unwrap to -- has "+t+" already been unwrapped?"):(r("no function to unwrap."),void r((new Error).stack))}i.wrap=a,i.massWrap=function(e,t,n){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){a(e,t,n)}))})):r("must provide one or more functions to wrap on modules")},i.unwrap=s,i.massUnwrap=function(e,t){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){s(e,t)}))})):r("must provide one or more functions to unwrap on modules")},t.exports=i}}),y={};function m(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}function g(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function b(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function w(e,t){return function(n,r){t(n,r,e)}}function E(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function S(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function T(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function _(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function C(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function I(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function P(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O(arguments[t]));return e}function A(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function L(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof k?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:k(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function R(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=I(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function U(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function D(e){return e&&e.__esModule?e:{default:e}}function M(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function H(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}l(y,{__assign:()=>t,__asyncDelegator:()=>x,__asyncGenerator:()=>L,__asyncValues:()=>R,__await:()=>k,__awaiter:()=>S,__classPrivateFieldGet:()=>M,__classPrivateFieldSet:()=>H,__createBinding:()=>_,__decorate:()=>b,__exportStar:()=>C,__extends:()=>m,__generator:()=>T,__importDefault:()=>D,__importStar:()=>U,__makeTemplateObject:()=>j,__metadata:()=>E,__param:()=>w,__read:()=>O,__rest:()=>g,__spread:()=>P,__spreadArrays:()=>A,__values:()=>I});var q,B,N=c({"node_modules/@smithy/eventstream-codec/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js"(){e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)}}}),F=u({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8=e.fromUtf8=void 0;e.fromUtf8=e=>{const t=[];for(let n=0,r=e.length;n<r;n++){const r=e.charCodeAt(n);if(r<128)t.push(r);else if(r<2048)t.push(r>>6|192,63&r|128);else if(n+1<e.length&&55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))){const o=65536+((1023&r)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(r>>12|224,r>>6&63|128,63&r|128)}return Uint8Array.from(t)};e.toUtf8=e=>{let t="";for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r<128)t+=String.fromCharCode(r);else if(192<=r&&r<224){const o=e[++n];t+=String.fromCharCode((31&r)<<6|63&o)}else if(240<=r&&r<365){const o="%"+[r,e[++n],e[++n],e[++n]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((15&r)<<12|(63&e[++n])<<6|63&e[++n])}return t}}}),V=u({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8=e.fromUtf8=void 0,e.fromUtf8=function(e){return(new TextEncoder).encode(e)},e.toUtf8=function(e){return new TextDecoder("utf-8").decode(e)}}}),z=u({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8=e.fromUtf8=void 0;var t=F(),n=V();e.fromUtf8=e=>"function"==typeof TextEncoder?(0,n.fromUtf8)(e):(0,t.fromUtf8)(e);e.toUtf8=e=>"function"==typeof TextDecoder?(0,n.toUtf8)(e):(0,t.toUtf8)(e)}}),$=u({"node_modules/@smithy/eventstream-codec/node_modules/@aws-crypto/util/build/convertToBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convertToBuffer=void 0;var t=z(),n="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:t.fromUtf8;e.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?n(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}}),W=u({"node_modules/@smithy/eventstream-codec/node_modules/@aws-crypto/util/build/isEmptyData.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEmptyData=void 0,e.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}}}),K=u({"node_modules/@smithy/eventstream-codec/node_modules/@aws-crypto/util/build/numToUint8.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numToUint8=void 0,e.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}}}),G=u({"node_modules/@smithy/eventstream-codec/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=void 0,e.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return Uint32Array.from(e)}}}),X=u({"node_modules/@smithy/eventstream-codec/node_modules/@aws-crypto/util/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=e.numToUint8=e.isEmptyData=e.convertToBuffer=void 0;var t=$();Object.defineProperty(e,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var n=W();Object.defineProperty(e,"isEmptyData",{enumerable:!0,get:function(){return n.isEmptyData}});var r=K();Object.defineProperty(e,"numToUint8",{enumerable:!0,get:function(){return r.numToUint8}});var o=G();Object.defineProperty(e,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),Z=u({"node_modules/@smithy/eventstream-codec/node_modules/@aws-crypto/crc32/build/aws_crc32.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AwsCrc32=void 0;var t=(N(),p(y)),n=X(),r=J(),o=function(){function e(){this.crc32=new r.Crc32}return e.prototype.update=function(e){(0,n.isEmptyData)(e)||this.crc32.update((0,n.convertToBuffer)(e))},e.prototype.digest=function(){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(e){return[2,(0,n.numToUint8)(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new r.Crc32},e}();e.AwsCrc32=o}}),J=u({"node_modules/@smithy/eventstream-codec/node_modules/@aws-crypto/crc32/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AwsCrc32=e.Crc32=e.crc32=void 0;var t=(N(),p(y)),n=X();e.crc32=function(e){return(new r).update(e).digest()};var r=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var n,r;try{for(var i=t.__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;this.checksum=this.checksum>>>8^o[255&(this.checksum^s)]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();e.Crc32=r;var o=(0,n.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),i=Z();Object.defineProperty(e,"AwsCrc32",{enumerable:!0,get:function(){return i.AwsCrc32}})}}),Y={};function Q(e,t){function n(){this.constructor=e}q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ee(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function te(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function ne(e,t){return function(n,r){t(n,r,e)}}function re(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function oe(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function ie(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function ae(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function se(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function ce(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ue(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function le(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ue(arguments[t]));return e}function de(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function fe(e){return this instanceof fe?(this.v=e,this):new fe(e)}function pe(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof fe?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function he(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:fe(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function ve(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=ce(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function ye(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function me(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function ge(e){return e&&e.__esModule?e:{default:e}}function be(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function we(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}l(Y,{__assign:()=>B,__asyncDelegator:()=>he,__asyncGenerator:()=>pe,__asyncValues:()=>ve,__await:()=>fe,__awaiter:()=>oe,__classPrivateFieldGet:()=>be,__classPrivateFieldSet:()=>we,__createBinding:()=>ae,__decorate:()=>te,__exportStar:()=>se,__extends:()=>Q,__generator:()=>ie,__importDefault:()=>ge,__importStar:()=>me,__makeTemplateObject:()=>ye,__metadata:()=>re,__param:()=>ne,__read:()=>ue,__rest:()=>ee,__spread:()=>le,__spreadArrays:()=>de,__values:()=>ce});var Ee,Se,Te,_e,Ce,Ie,Oe,Pe,Ae=c({"node_modules/aws-rum-web/node_modules/tslib/tslib.es6.js"(){q=function(e,t){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},B=function(){return B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},B.apply(this,arguments)}}}),ke=u({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/constants.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_HASHABLE_LENGTH=e.INIT=e.KEY=e.DIGEST_LENGTH=e.BLOCK_SIZE=void 0,e.BLOCK_SIZE=64,e.DIGEST_LENGTH=32,e.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),e.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],e.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1}}),Le=u({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RawSha256=void 0;var t=ke(),n=function(){function e(){this.state=Int32Array.from(t.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>t.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[n++],r--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var o=this.bufferLength;o<t.BLOCK_SIZE;o++)n.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<t.BLOCK_SIZE-8;o++)n.setUint8(o,0);n.setUint32(t.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),n.setUint32(t.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var i=new Uint8Array(t.DIGEST_LENGTH);for(o=0;o<8;o++)i[4*o]=this.state[o]>>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,n=this.state,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],c=n[5],u=n[6],l=n[7],d=0;d<t.BLOCK_SIZE;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,h=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var v=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&u)|0)+(l+(t.KEY[d]+this.temp[d]|0)|0)|0,y=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&i^o&i)|0;l=u,u=c,c=s,s=a+v|0,a=i,i=o,o=r,r=v+y|0}n[0]+=r,n[1]+=o,n[2]+=i,n[3]+=a,n[4]+=s,n[5]+=c,n[6]+=u,n[7]+=l},e}();e.RawSha256=n}}),xe=u({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/convertToBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convertToBuffer=void 0;var t=z(),n="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:t.fromUtf8;e.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?n(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}}),Re=u({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/isEmptyData.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEmptyData=void 0,e.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}}}),je=u({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/numToUint8.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numToUint8=void 0,e.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}}}),Ue=u({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=void 0,e.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return Uint32Array.from(e)}}}),De=u({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=e.numToUint8=e.isEmptyData=e.convertToBuffer=void 0;var t=xe();Object.defineProperty(e,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var n=Re();Object.defineProperty(e,"isEmptyData",{enumerable:!0,get:function(){return n.isEmptyData}});var r=je();Object.defineProperty(e,"numToUint8",{enumerable:!0,get:function(){return r.numToUint8}});var o=Ue();Object.defineProperty(e,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),Me=u({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sha256=void 0;var t=(Ae(),p(Y)),n=ke(),r=Le(),o=De(),i=function(){function e(e){if(this.hash=new r.RawSha256,e){this.outer=new r.RawSha256;var t=function(e){var t=(0,o.convertToBuffer)(e);if(t.byteLength>n.BLOCK_SIZE){var i=new r.RawSha256;i.update(t),t=i.digest()}var a=new Uint8Array(n.BLOCK_SIZE);return a.set(t),a}(e),i=new Uint8Array(n.BLOCK_SIZE);i.set(t);for(var a=0;a<n.BLOCK_SIZE;a++)t[a]^=54,i[a]^=92;this.hash.update(t),this.outer.update(i);for(a=0;a<t.byteLength;a++)t[a]=0}}return e.prototype.update=function(e){if(!(0,o.isEmptyData)(e)&&!this.error)try{this.hash.update((0,o.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(e){return[2,this.digestSync()]}))}))},e}();e.Sha256=i}}),He=u({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),(Ae(),p(Y)).__exportStar(Me(),e)}});(Se=Ee||(Ee={})).HEADER="header",Se.QUERY="query",(_e=Te||(Te={})).HTTP="http",_e.HTTPS="https",(Ie=Ce||(Ce={}))[Ie.HEADER=0]="HEADER",Ie[Ie.TRAILER=1]="TRAILER",(Pe=Oe||(Oe={})).HTTP_0_9="http/0.9",Pe.HTTP_1_0="http/1.0",Pe.TDS_8_0="tds/8.0";var qe=class{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}},Be=e=>encodeURIComponent(e).replace(/[!'()*]/g,Ne),Ne=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function Fe(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=Be(n),Array.isArray(r))for(let e=0,o=r.length;e<o;e++)t.push(`${n}=${Be(r[e])}`);else{let e=n;(r||"string"==typeof r)&&(e+=`=${Be(r)}`),t.push(e)}}return t.join("&")}function Ve(e=0){return new Promise(((t,n)=>{e&&setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",n(t)}),e)}))}var ze,$e,We,Ke,Ge=class{constructor(e){"function"==typeof e?this.configProvider=e().then((e=>e||{})):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);const n=this.config.requestTimeout;if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let r=e.path;const o=Fe(e.query||{});o&&(r+=`?${o}`),e.fragment&&(r+=`#${e.fragment}`);let i="";if(null!=e.username||null!=e.password){i=`${e.username??""}:${e.password??""}@`}const{port:a,method:s}=e,c=`${e.protocol}//${i}${e.hostname}${a?`:${a}`:""}${r}`,u={body:"GET"===s||"HEAD"===s?void 0:e.body,headers:new Headers(e.headers),method:s};"undefined"!=typeof AbortController&&(u.signal=t);const l=new Request(c,u),d=[fetch(l).then((e=>{const t=e.headers,n={};for(const e of t.entries())n[e[0]]=e[1];return null!=e.body?{response:new qe({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then((t=>({response:new qe({headers:n,reason:e.statusText,statusCode:e.status,body:t})})))})),Ve(n)];return t&&d.push(new Promise(((e,n)=>{t.onabort=()=>{const e=new Error("Request aborted");e.name="AbortError",n(e)}}))),Promise.race(d)}},Xe={},Ze=new Array(64);for(let e=0,t="A".charCodeAt(0),n="Z".charCodeAt(0);e+t<=n;e++){const n=String.fromCharCode(e+t);Xe[n]=e,Ze[e]=n}for(let e=0,t="a".charCodeAt(0),n="z".charCodeAt(0);e+t<=n;e++){const n=String.fromCharCode(e+t),r=e+26;Xe[n]=r,Ze[r]=n}for(let e=0;e<10;e++){Xe[e.toString(10)]=e+52;const t=e.toString(10),n=e+52;Xe[t]=n,Ze[n]=t}Xe["+"]=62,Ze[62]="+",Xe["/"]=63,Ze[63]="/",function(e){e.HEADER="header",e.QUERY="query"}(ze||(ze={})),function(e){e.HTTP="http",e.HTTPS="https"}($e||($e={})),function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(We||(We={})),function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(Ke||(Ke={}));var Je=class e{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){const t=new e({...this,headers:{...this.headers}});var n;return t.query&&(t.query=(n=t.query,Object.keys(n).reduce(((e,t)=>{const r=n[t];return{...e,[t]:Array.isArray(r)?[...r]:r}}),{}))),t}};var Ye,Qe,et=class{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}},tt=function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))},nt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},rt=function(e){return tt(void 0,0,void 0,(function(){var t;return nt(this,(function(n){switch(n.label){case 0:return[4,e.body.getReader().read()];case 1:return t=n.sent().value,[2,JSON.parse(String.fromCharCode.apply(null,t))]}}))}))},ot=function(e){return tt(void 0,0,void 0,(function(){var t;return nt(this,(function(n){switch(n.label){case 0:return[4,e.body.getReader().read()];case 1:return t=n.sent().value,[2,String.fromCharCode.apply(null,t)]}}))}))},it=function(){return it=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},it.apply(this,arguments)},at=function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))},st=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ct=function(e){var t=this;this.assumeRoleWithWebIdentity=function(e){return at(t,0,void 0,(function(){var t,n,r,o,i,a;return st(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),t=it(it({},e),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),n=new URLSearchParams(Object.entries(t)).toString(),r=new Je({method:"POST",headers:{"content-type":"application/x-www-form-urlencoded",host:this.hostname},protocol:"https:",hostname:this.hostname,body:n}),[4,this.fetchRequestHandler.handle(r)];case 1:return o=s.sent().response,[4,ot(o)];case 2:return[2,{accessKeyId:(i=s.sent()).split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:i.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:i.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(i.split("<Expiration>")[1].split("</Expiration>")[0])}];case 3:throw a=s.sent(),new Error("CWR: Failed to retrieve credentials from STS: ".concat(a));case 4:return[2]}}))}))},this.hostname="sts.".concat(e.region,".amazonaws.com"),this.fetchRequestHandler=e.fetchRequestHandler},ut="cwr_c",lt="cwr_i",dt="cwr_s",ft="cwr_u",pt=function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))},ht=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},vt=function(e){var t,n=this;this.getId=function(e){return pt(n,0,void 0,(function(){var t,n,r,o,i,a;return ht(this,(function(s){switch(s.label){case 0:t=null;try{t=JSON.parse(localStorage.getItem(this.identityStorageKey))}catch(e){}if(t&&t.IdentityId)return[2,Promise.resolve(t)];s.label=1;case 1:return s.trys.push([1,4,,5]),n=JSON.stringify(e),r=this.getHttpRequest("AWSCognitoIdentityService.GetId",n),i=rt,[4,this.fetchRequestHandler.handle(r)];case 2:return[4,i.apply(void 0,[s.sent().response])];case 3:o=s.sent();try{localStorage.setItem(this.identityStorageKey,JSON.stringify({IdentityId:o.IdentityId}))}catch(e){}return[2,o];case 4:throw a=s.sent(),new Error("CWR: Failed to retrieve Cognito identity: ".concat(a));case 5:return[2]}}))}))},this.getOpenIdToken=function(e){return pt(n,0,void 0,(function(){var t,n,r,o,i;return ht(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),t=JSON.stringify(e),n=this.getHttpRequest("AWSCognitoIdentityService.GetOpenIdToken",t),[4,this.fetchRequestHandler.handle(n)];case 1:return r=a.sent().response,o=this.validateOpenIdTokenResponse,[4,rt(r)];case 2:return[2,o.apply(this,[a.sent()])];case 3:throw i=a.sent(),localStorage.removeItem(this.identityStorageKey),new Error("CWR: Failed to retrieve Cognito OpenId token: ".concat(i));case 4:return[2]}}))}))},this.getCredentialsForIdentity=function(e){return pt(n,0,void 0,(function(){var t,n,r,o,i,a,s,c,u,l;return ht(this,(function(d){switch(d.label){case 0:return d.trys.push([0,3,,4]),t=JSON.stringify({IdentityId:e}),n=this.getHttpRequest("AWSCognitoIdentityService.GetCredentialsForIdentity",t),[4,this.fetchRequestHandler.handle(n)];case 1:return r=d.sent().response,u=this.validateCredenentialsResponse,[4,rt(r)];case 2:return o=u.apply(this,[d.sent()]),i=o.AccessKeyId,a=o.Expiration,s=o.SecretKey,c=o.SessionToken,[2,{accessKeyId:i,secretAccessKey:s,sessionToken:c,expiration:new Date(1e3*a)}];case 3:throw l=d.sent(),localStorage.removeItem(this.identityStorageKey),new Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(l));case 4:return[2]}}))}))},this.validateOpenIdTokenResponse=function(e){if("IdentityId"in e&&"Token"in e)return e;throw e&&"__type"in e&&"message"in e?new Error("".concat(e.__type,": ").concat(e.message)):new Error("Unknown OpenIdToken response")},this.validateCredenentialsResponse=function(e){if("IdentityId"in e&&"Credentials"in e)return e.Credentials;throw e&&"__type"in e&&"message"in e?new Error("".concat(e.__type,": ").concat(e.message)):new Error("Unknown Credentials response")},this.getHttpRequest=function(e,t){return new Je({method:"POST",headers:{"content-type":"application/x-amz-json-1.1","x-amz-target":e},protocol:"https:",hostname:n.hostname,body:t})},this.hostname="cognito-identity.".concat(e.region,".amazonaws.com"),this.fetchRequestHandler=e.fetchRequestHandler,this.identityStorageKey=(null===(t=e.clientConfig)||void 0===t?void 0:t.cookieAttributes.unique)?"".concat(lt,"_").concat(e.applicationId):lt},yt=function(){return yt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yt.apply(this,arguments)},mt=function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))},gt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},bt=function(){function e(e,t){var n=this;this.ChainAnonymousCredentialsProvider=function(){return mt(n,0,void 0,(function(){return gt(this,(function(e){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]}))}))},this.AnonymousCredentialsProvider=function(){return mt(n,0,void 0,(function(){var e=this;return gt(this,(function(t){return[2,new Promise((function(t,n){if(e.renewCredentials())return n();t(e.credentials)}))]}))}))},this.AnonymousStorageCredentialsProvider=function(){return mt(n,0,void 0,(function(){var e=this;return gt(this,(function(t){return[2,new Promise((function(t,n){var r;try{r=JSON.parse(localStorage.getItem(e.credentialStorageKey))}catch(e){return n()}if(e.credentials=yt(yt({},r),{expiration:new Date(r.expiration)}),e.renewCredentials())return n();t(e.credentials)}))]}))}))};var r=e.identityPoolId.split(":")[0];this.config=e,this.cognitoIdentityClient=new vt({fetchRequestHandler:new Ge,region:r,clientConfig:e,applicationId:t}),this.credentialStorageKey=this.config.cookieAttributes.unique?"".concat(ut,"_").concat(t):ut}return e.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var e=new Date(this.credentials.expiration.getTime()-3e4);return new Date>e},e}(),wt=(Ye=function(e,t){return(Ye=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 new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Et=function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))},St=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Tt=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.AnonymousCognitoCredentialsProvider=function(){return Et(r,0,void 0,(function(){var e,t,n,r,o;return St(this,(function(i){switch(i.label){case 0:e=1,i.label=1;case 1:i.label=2;case 2:return i.trys.push([2,6,,7]),[4,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId})];case 3:return t=i.sent(),[4,this.cognitoIdentityClient.getOpenIdToken(t)];case 4:return n=i.sent(),[4,this.stsClient.assumeRoleWithWebIdentity({RoleArn:this.config.guestRoleArn,RoleSessionName:"cwr",WebIdentityToken:n.Token})];case 5:r=i.sent(),this.credentials=r;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(r))}catch(e){}return[2,r];case 6:if(o=i.sent(),!e)throw o;return e--,[3,7];case 7:return[3,1];case 8:return[2]}}))}))};var o=t.identityPoolId.split(":")[0];return r.stsClient=new ct({fetchRequestHandler:new Ge,region:o}),r}return wt(t,e),t}(bt),_t=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ct=function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))},It=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Ot=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.AnonymousCognitoCredentialsProvider=function(){return Ct(r,0,void 0,(function(){var e,t,n,r;return It(this,(function(o){switch(o.label){case 0:e=1,o.label=1;case 1:o.label=2;case 2:return o.trys.push([2,5,,6]),[4,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId})];case 3:return t=o.sent(),[4,this.cognitoIdentityClient.getCredentialsForIdentity(t.IdentityId)];case 4:n=o.sent(),this.credentials=n;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(n))}catch(e){}return[2,n];case 5:if(r=o.sent(),!e)throw r;return e--,[3,6];case 6:return[3,1];case 7:return[2]}}))}))},r}return _t(t,e),t}(bt),Pt="com.amazon.rum",At="".concat(Pt,".http_event"),kt="".concat(Pt,".xray_trace_event"),Lt="".concat(Pt,".largest_contentful_paint_event"),xt="".concat(Pt,".first_input_delay_event"),Rt="".concat(Pt,".cumulative_layout_shift_event"),jt="".concat(Pt,".performance_navigation_event"),Ut="".concat(Pt,".performance_resource_event"),Dt="".concat(Pt,".dom_event"),Mt="".concat(Pt,".js_error_event"),Ht="".concat(Pt,".page_view_event"),qt="".concat(Pt,".time_to_interactive_event"),Bt=function(){function e(t){this.enabled=!0,this.pluginId=e.generatePluginId(t)}return e.generatePluginId=function(t){return"".concat(e.idPrefix,".").concat(t)},e.prototype.load=function(e){var t;this.context=e,null===(t=this.onload)||void 0===t||t.call(this)},e.prototype.getPluginId=function(){return this.pluginId},e.idPrefix="com.amazonaws.rum",e}(),Nt=function(){function e(e){this.context=e,this.plugins=new Map}return e.prototype.addPlugin=function(e){var t=e.getPluginId();if(this.hasPlugin(t))throw new Error('Plugin "'.concat(t,'" already defined in the PluginManager'));this.plugins.set(t,e),e.load(this.context)},e.prototype.updatePlugin=function(e,t){var n,r=this.getPlugin(e);null===(n=null==r?void 0:r.update)||void 0===n||n.call(r,t)},e.prototype.enable=function(){this.plugins.forEach((function(e){return e.enable()}))},e.prototype.disable=function(){this.plugins.forEach((function(e){return e.disable()}))},e.prototype.hasPlugin=function(e){return Boolean(this.getPlugin(e))},e.prototype.record=function(e,t){var n=this.getPlugin(e);if(!((null==n?void 0:n.record)instanceof Function))throw new Error("AWS RUM Client record: Invalid plugin ID");n.record(t)},e.prototype.getPlugin=function(e){var t;return null!==(t=this.plugins.get(e))&&void 0!==t?t:this.plugins.get(Bt.generatePluginId(e))},e}(),Ft=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(){return Vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vt.apply(this,arguments)},zt="dom-event",$t={interactionId:function(){return""},enableMutationObserver:!1,events:[]},Wt=function(e){function t(t){var n=e.call(this,zt)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=Vt(Vt({},$t),t),n}return Ft(t,e),t.getElementInfo=function(e){var t={name:"UNKNOWN"};return e.target instanceof Node&&(t.name=e.target.nodeName),e.target instanceof Element&&e.target.id&&(t.id=e.target.id),t},t.prototype.enable=function(){var e=this;"complete"===document.readyState?this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0):window.addEventListener("load",(function(){return e.enable()}))},t.prototype.disable=function(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},t.prototype.update=function(e){var t=this;e.forEach((function(e){t.addEventHandler(e),t.config.events.push(e)}))},t.prototype.onload=function(){this.enable()},t.prototype.removeListeners=function(){var e=this;this.config.events.forEach((function(t){return e.removeEventHandler(t)}))},t.prototype.addListeners=function(){var e=this;this.config.events.forEach((function(t){return e.addEventHandler(t)}))},t.prototype.getEventListener=function(e){var n=this;return function(r){var o,i=t.getElementInfo(r),a=n.config.interactionId(r),s=Vt(Vt(Vt({version:"1.1.0",event:r.type,element:i.name},i.id?{elementId:i.id}:{}),a?{interactionId:a}:{}),e?{cssLocator:e}:{});(null===(o=n.context)||void 0===o?void 0:o.record)&&n.context.record(Dt,s)}},t.prototype.addEventHandler=function(e){var t=e.event,n=this.getEventListener(e.cssLocator),r=[],o=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator)document.querySelectorAll(e.cssLocator).forEach((function(e){r.push(e)}));else if(e.elementId){var i=document.getElementById(e.elementId);i&&r.push(i)}else e.element&&r.push(e.element);r.forEach((function(e){e.addEventListener(t,n),o.push({element:e,eventListener:n})})),this.eventListenerMap.set(e,o)},t.prototype.removeEventHandler=function(e){var t=this.eventListenerMap.get(e);t&&(t.forEach((function(t){var n=t.element,r=t.eventListener;n.removeEventListener(e.event,r)})),this.eventListenerMap.delete(e))},t.prototype.observeDOMMutation=function(){var e=this;this.observer=new MutationObserver((function(){e.removeListeners(),e.addListeners()})),this.observer.observe(document,{childList:!0,subtree:!0})},t}(Bt),Kt=function(e){return e!==Object(e)&&null!=e},Gt=function(e,t){var n=function(e){var t={version:"1.0.0",type:"undefined",message:"undefined"};return void 0!==e.type&&(t.type=e.type),void 0!==e.message&&(t.message=e.message),void 0!==e.filename&&(t.filename=e.filename),void 0!==e.lineno&&(t.lineno=e.lineno),void 0!==e.colno&&(t.colno=e.colno),t}(e),r=e.error;return!function(e){var t=typeof e;return("object"===t||"function"===t)&&!!e}(r)?Kt(r)&&function(e,t){"unhandledrejection"!==e.type&&(e.type=t.toString()),e.message=t.toString()}(n,r):function(e,t,n){t.name&&(e.type=t.name),t.message&&(e.message=t.message),t.fileName&&(e.filename=t.fileName),t.lineNumber&&(e.lineno=t.lineNumber),t.columnNumber&&(e.colno=t.columnNumber),n&&t.stack&&(e.stack=t.stack.length>n?t.stack.substring(0,n)+"...":t.stack)}(n,r,t),n},Xt=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zt=function(){return Zt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zt.apply(this,arguments)},Jt="js-error",Yt={stackTraceLength:1e3,ignore:function(){return!1}},Qt=function(e){function t(t){var n=e.call(this,Jt)||this;return n.eventHandler=function(e){n.config.ignore(e)||n.recordJsErrorEvent(e)},n.promiseRejectEventHandler=function(e){n.config.ignore(e)||n.recordJsErrorEvent({type:e.type,error:e.reason})},n.config=Zt(Zt({},Yt),t),n}return Xt(t,e),t.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},t.prototype.disable=function(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)},t.prototype.record=function(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})},t.prototype.onload=function(){this.addEventHandler()},t.prototype.recordJsErrorEvent=function(e){var t;null===(t=this.context)||void 0===t||t.record(Mt,Gt(e,this.config.stackTraceLength))},t.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},t.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},t}(Bt),en=function(e,t,n,r,o){var i=e+"=";i+=t||"",void 0!==o&&(i+="; Expires=".concat(o.toUTCString())),i+="; Domain=".concat(n.domain),i+="; Path=".concat(n.path),i+="; SameSite=".concat(n.sameSite),i+=n.secure?"; Secure":"",document.cookie=i},tn=function(e){for(var t=0,n=document.cookie.split("; ");t<n.length;t++){var r=n[t].split("=");if(r[0]===e)return r[1]}return""},nn=new Uint8Array(16);function rn(){if(!Qe&&!(Qe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qe(nn)}var on=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;var an=function(e){return"string"==typeof e&&on.test(e)},sn=[];for(let e=0;e<256;++e)sn.push((e+256).toString(16).slice(1));function cn(e,t=0){return sn[e[t+0]]+sn[e[t+1]]+sn[e[t+2]]+sn[e[t+3]]+"-"+sn[e[t+4]]+sn[e[t+5]]+"-"+sn[e[t+6]]+sn[e[t+7]]+"-"+sn[e[t+8]]+sn[e[t+9]]+"-"+sn[e[t+10]]+sn[e[t+11]]+sn[e[t+12]]+sn[e[t+13]]+sn[e[t+14]]+sn[e[t+15]]}var un=function(e){if(!an(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function ln(e,t,n){function r(e,r,o,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=un(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=s[e];return o}return cn(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function dn(e){return 14+(e+64>>>9<<4)+1}function fn(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function pn(e,t,n,r,o,i){return fn((a=fn(fn(t,e),fn(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function hn(e,t,n,r,o,i,a){return pn(t&n|~t&r,e,t,o,i,a)}function vn(e,t,n,r,o,i,a){return pn(t&r|n&~r,e,t,o,i,a)}function yn(e,t,n,r,o,i,a){return pn(t^n^r,e,t,o,i,a)}function mn(e,t,n,r,o,i,a){return pn(n^(t|~r),e,t,o,i,a)}var gn=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[dn(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=n,s=r,c=o,u=i;n=hn(n,r,o,i,e[t],7,-680876936),i=hn(i,n,r,o,e[t+1],12,-389564586),o=hn(o,i,n,r,e[t+2],17,606105819),r=hn(r,o,i,n,e[t+3],22,-1044525330),n=hn(n,r,o,i,e[t+4],7,-176418897),i=hn(i,n,r,o,e[t+5],12,1200080426),o=hn(o,i,n,r,e[t+6],17,-1473231341),r=hn(r,o,i,n,e[t+7],22,-45705983),n=hn(n,r,o,i,e[t+8],7,1770035416),i=hn(i,n,r,o,e[t+9],12,-1958414417),o=hn(o,i,n,r,e[t+10],17,-42063),r=hn(r,o,i,n,e[t+11],22,-1990404162),n=hn(n,r,o,i,e[t+12],7,1804603682),i=hn(i,n,r,o,e[t+13],12,-40341101),o=hn(o,i,n,r,e[t+14],17,-1502002290),r=hn(r,o,i,n,e[t+15],22,1236535329),n=vn(n,r,o,i,e[t+1],5,-165796510),i=vn(i,n,r,o,e[t+6],9,-1069501632),o=vn(o,i,n,r,e[t+11],14,643717713),r=vn(r,o,i,n,e[t],20,-373897302),n=vn(n,r,o,i,e[t+5],5,-701558691),i=vn(i,n,r,o,e[t+10],9,38016083),o=vn(o,i,n,r,e[t+15],14,-660478335),r=vn(r,o,i,n,e[t+4],20,-405537848),n=vn(n,r,o,i,e[t+9],5,568446438),i=vn(i,n,r,o,e[t+14],9,-1019803690),o=vn(o,i,n,r,e[t+3],14,-187363961),r=vn(r,o,i,n,e[t+8],20,1163531501),n=vn(n,r,o,i,e[t+13],5,-1444681467),i=vn(i,n,r,o,e[t+2],9,-51403784),o=vn(o,i,n,r,e[t+7],14,1735328473),r=vn(r,o,i,n,e[t+12],20,-1926607734),n=yn(n,r,o,i,e[t+5],4,-378558),i=yn(i,n,r,o,e[t+8],11,-2022574463),o=yn(o,i,n,r,e[t+11],16,1839030562),r=yn(r,o,i,n,e[t+14],23,-35309556),n=yn(n,r,o,i,e[t+1],4,-1530992060),i=yn(i,n,r,o,e[t+4],11,1272893353),o=yn(o,i,n,r,e[t+7],16,-155497632),r=yn(r,o,i,n,e[t+10],23,-1094730640),n=yn(n,r,o,i,e[t+13],4,681279174),i=yn(i,n,r,o,e[t],11,-358537222),o=yn(o,i,n,r,e[t+3],16,-722521979),r=yn(r,o,i,n,e[t+6],23,76029189),n=yn(n,r,o,i,e[t+9],4,-640364487),i=yn(i,n,r,o,e[t+12],11,-421815835),o=yn(o,i,n,r,e[t+15],16,530742520),r=yn(r,o,i,n,e[t+2],23,-995338651),n=mn(n,r,o,i,e[t],6,-198630844),i=mn(i,n,r,o,e[t+7],10,1126891415),o=mn(o,i,n,r,e[t+14],15,-1416354905),r=mn(r,o,i,n,e[t+5],21,-57434055),n=mn(n,r,o,i,e[t+12],6,1700485571),i=mn(i,n,r,o,e[t+3],10,-1894986606),o=mn(o,i,n,r,e[t+10],15,-1051523),r=mn(r,o,i,n,e[t+1],21,-2054922799),n=mn(n,r,o,i,e[t+8],6,1873313359),i=mn(i,n,r,o,e[t+15],10,-30611744),o=mn(o,i,n,r,e[t+6],15,-1560198380),r=mn(r,o,i,n,e[t+13],21,1309151649),n=mn(n,r,o,i,e[t+4],6,-145523070),i=mn(i,n,r,o,e[t+11],10,-1120210379),o=mn(o,i,n,r,e[t+2],15,718787259),r=mn(r,o,i,n,e[t+9],21,-343485551),n=fn(n,a),r=fn(r,s),o=fn(o,c),i=fn(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(dn(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};ln("v3",48,gn);var bn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var wn=function(e,t,n){if(bn.randomUUID&&!t&&!e)return bn.randomUUID();const r=(e=e||{}).random||(e.rng||rn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return cn(r)};function En(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function Sn(e,t){return e<<t|e>>>32-t}var Tn=function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),i=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];i[t]=n}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=i[e][t];for(let e=16;e<80;++e)r[e]=Sn(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],a=n[1],s=n[2],c=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),i=Sn(o,5)+En(n,a,s,c)+u+t[n]+r[e]>>>0;u=c,c=s,s=Sn(a,30)>>>0,a=o,o=i}n[0]=n[0]+o>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};ln("v5",80,Tn);var _n,Cn=f(h()),In=function(){return In=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},In.apply(this,arguments)},On="00000000-0000-0000-0000-000000000000",Pn="unknown",An=function(){function e(e,t,n,r){this.appMonitorDetails=e,this.config=t,this.record=n,this.pageManager=r,this.sessionCookieName=this.config.cookieAttributes.unique?"".concat(dt,"_").concat(this.appMonitorDetails.id):dt,this.session={sessionId:On,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie()}return e.prototype.isSampled=function(){return this.session.record},e.prototype.getSession=function(){return(this.session.sessionId===On||this.session.sessionId!==On&&new Date>this.sessionExpiry)&&this.createSession(),this.session},e.prototype.getAttributes=function(){return this.attributes},e.prototype.addSessionAttributes=function(e){this.attributes=In(In({},this.attributes),e)},e.prototype.getUserId=function(){return this.useCookies()?this.userId:On},e.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},e.prototype.initializeUser=function(){var e="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(e=this.getUserIdCookie(),this.userId=e||wn(),this.createOrRenewUserCookie(e,this.userExpiry)):this.userId=wn()},e.prototype.createOrRenewSessionCookie=function(e,t){btoa&&en(this.sessionCookieName,btoa(JSON.stringify(e)),this.config.cookieAttributes,0,t)},e.prototype.createOrRenewUserCookie=function(e,t){en(ft,e,this.config.cookieAttributes,0,t)},e.prototype.getUserIdCookie=function(){return tn(ft)},e.prototype.getSessionFromCookie=function(){if(this.useCookies()){var e=tn(this.sessionCookieName);if(e&&atob)try{this.session=JSON.parse(atob(e)),this.pageManager.resumeSession(this.session.page)}catch(e){}}},e.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},e.prototype.createSession=function(){this.session={sessionId:wn(),record:this.session.sessionId===On?this.session.record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date((new Date).getTime()+1e3*this.config.sessionLengthSeconds),this.storeSessionAsCookie(),this.record(this.session,"com.amazon.rum.session_start_event",{version:"1.0.0"})},e.prototype.renewSession=function(){this.sessionExpiry=new Date((new Date).getTime()+1e3*this.config.sessionLengthSeconds),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},e.prototype.collectAttributes=function(){var e=new Cn.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:e.browser.name?e.browser.name:Pn,browserVersion:e.browser.version?e.browser.version:Pn,osName:e.os.name?e.os.name:Pn,osVersion:e.os.version?e.os.version:Pn,deviceType:e.device.type?e.device.type:"desktop",platformType:"web",domain:window.location.hostname}},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},e}(),kn=f(v()),Ln=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enable=t.patch.bind(t,!0),t.disable=t.patch.bind(t,!1),t.enabled=!1,t}return Ln(t,e),t.prototype.patchAll=function(){for(var e=kn.wrap.bind(kn),t=0,n=this.patches;t<n.length;t++){var r=n[t];e(r.nodule,r.name,r.wrapper())}},t.prototype.unpatchAll=function(){for(var e=kn.unwrap.bind(kn),t=0,n=this.patches;t<n.length;t++){var r=n[t];e(r.nodule,r.name)}},t.prototype.patch=function(e){void 0===e&&(e=!0),this.enabled!==e&&(this.enabled=e,e?this.patchAll():this.unpatchAll())},t}(Bt),Rn=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jn=function(e){function t(t,n,r){var o=e.call(this,"virtual-page-load-timer")||this;return o.sendWrapper=function(){var e=o;return function(t){return function(){return e.recordXhr(this),this.addEventListener("loadend",e.endTracking),t.apply(this,arguments)}}},o.endTracking=function(e){var t=Date.now(),n=e.target;n.removeEventListener("loadend",o.endTracking),o.removeXhr(n,t)},o.fetch=function(e,t,n){return e.apply(t,n).catch((function(e){throw e})).finally(o.decrementFetchCounter)},o.fetchWrapper=function(){var e=o;return function(t){return function(n,r){return e.fetchCounter+=1,e.fetch(t,this,arguments)}}},o.decrementFetchCounter=function(){o.isPageLoaded||(o.latestEndTime=Date.now()),o.fetchCounter-=1},o.checkLoadStatus=function(){0===o.ongoingRequests.size&&0===o.fetchCounter&&(clearInterval(o.periodicCheckerId),clearTimeout(o.timeoutCheckerId),o.domMutationObserver.disconnect(),o.recordRouteChangeNavigationEvent(o.pageManager.getPage()),o.periodicCheckerId=void 0,o.timeoutCheckerId=void 0,o.isPageLoaded=!0)},o.declareTimeout=function(){clearInterval(o.periodicCheckerId),o.periodicCheckerId=void 0,o.timeoutCheckerId=void 0,o.domMutationObserver.disconnect(),o.isPageLoaded=!0},o.resetInterval=function(){o.latestEndTime=Date.now(),clearInterval(o.periodicCheckerId),o.periodicCheckerId=setInterval(o.checkLoadStatus,o.config.routeChangeComplete)},o.moveItemsFromBuffer=function(e){o.ongoingRequests.add(e)},o.updateLatestInteractionTime=function(e){o.latestInteractionTime=Date.now()},o.periodicCheckerId=void 0,o.timeoutCheckerId=void 0,o.domMutationObserver=new MutationObserver(o.resetInterval),o.ongoingRequests=new Set,o.requestBuffer=new Set,o.fetchCounter=0,o.isPageLoaded=!0,o.latestEndTime=0,o.latestInteractionTime=0,o.config=n,o.pageManager=t,o.record=r,o.enable(),document.addEventListener("mousedown",o.updateLatestInteractionTime),document.addEventListener("keydown",o.updateLatestInteractionTime),o}return Rn(t,e),Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),t.prototype.startTiming=function(){this.latestEndTime=Date.now(),this.periodicCheckerId&&clearInterval(this.periodicCheckerId),this.timeoutCheckerId&&clearTimeout(this.timeoutCheckerId),this.domMutationObserver.disconnect(),this.periodicCheckerId=setInterval(this.checkLoadStatus,this.config.routeChangeComplete),this.timeoutCheckerId=setTimeout(this.declareTimeout,this.config.routeChangeTimeout),this.domMutationObserver.observe(document,{subtree:!0,childList:!0,attributes:!1,characterData:!1}),this.isPageLoaded=!1,this.requestBuffer.forEach(this.moveItemsFromBuffer),this.requestBuffer.clear()},t.prototype.recordXhr=function(e){this.pageManager.getPage()&&!1===this.isPageLoaded?this.ongoingRequests.add(e):this.requestBuffer.add(e)},t.prototype.removeXhr=function(e,t){this.pageManager.getPage()&&this.ongoingRequests.has(e)?(this.ongoingRequests.delete(e),this.latestEndTime=t):this.requestBuffer.has(e)&&this.requestBuffer.delete(e)},t.prototype.recordRouteChangeNavigationEvent=function(e){var t={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:e.start,duration:this.latestEndTime-e.start};this.record&&this.record(jt,t)},t}(xn),Un=function(){return Un=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Un.apply(this,arguments)},Dn=function(){function e(e,t){this.TIMEOUT=1e3,this.config=e,this.record=t,this.page=void 0,this.resumed=!1,this.recordInteraction=!1,this.virtualPageLoadTimer=new jn(this,e,t)}return e.prototype.getPage=function(){return this.page},e.prototype.getAttributes=function(){return this.attributes},e.prototype.resumeSession=function(e){this.recordInteraction=!0,e&&(this.page=e,this.resumed=!0)},e.prototype.recordPageView=function(e){var t;if(t="string"==typeof e?e:e.pageId,this.useCookies()&&(this.recordInteraction=!0),this.page){if(this.page.pageId===t)return this.resumed?void this.collectAttributes(this.page,"object"==typeof e?e:void 0):void 0;this.createNextPage(this.page,t)}else this.createLandingPage(t);this.collectAttributes(this.page,"object"==typeof e?e:void 0),this.recordPageViewEvent(this.page)},e.prototype.createNextPage=function(e,t){var n=Date.now(),r=this.virtualPageLoadTimer.latestInteractionTime;!this.resumed&&n-r<=this.TIMEOUT&&(n=r,this.virtualPageLoadTimer.startTiming()),this.timeOnParentPage=n-e.start,this.resumed=!1,this.page={pageId:t,parentPageId:e.pageId,interaction:e.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:n}},e.prototype.createLandingPage=function(e){this.page={pageId:e,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}},e.prototype.collectAttributes=function(e,t){var n;this.attributes={title:(null===(n=null==t?void 0:t.pageAttributes)||void 0===n?void 0:n.title)?t.pageAttributes.title:document.title,pageId:e.pageId},this.recordInteraction&&(this.attributes.interaction=e.interaction,void 0!==e.parentPageId&&(this.attributes.parentPageId=e.parentPageId)),(null==t?void 0:t.pageTags)&&(this.attributes.pageTags=t.pageTags),(null==t?void 0:t.pageAttributes)&&(this.attributes=Un(Un({},t.pageAttributes),this.attributes))},e.prototype.createPageViewEvent=function(e){var t={version:"1.0.0",pageId:e.pageId};return this.recordInteraction&&(t.interaction=e.interaction,t.pageInteractionId=e.pageId+"-"+e.interaction,void 0!==e.parentPageId&&(t.parentPageInteractionId=e.parentPageId+"-"+(e.interaction-1),t.timeOnParentPage=this.timeOnParentPage),t.referrer=document.referrer,t.referrerDomain=this.getDomainFromReferrer()),t},e.prototype.recordPageViewEvent=function(e){this.record(Ht,this.createPageViewEvent(e))},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.getDomainFromReferrer=function(){try{return new URL(document.referrer).hostname}catch(e){return"localhost"===document.referrer?document.referrer:""}},e}();(_n||(_n={})).EVENT="event";var Mn=function(){function e(){this.subscribers=new Map}return e.prototype.subscribe=function(e,t){var n,r=null!==(n=this.subscribers.get(e))&&void 0!==n?n:[];r.length||this.subscribers.set(e,r),r.push(t)},e.prototype.unsubscribe=function(e,t){var n=this.subscribers.get(e);if(n)for(var r=0;r<n.length;r++)if(n[r]===t)return n.splice(r,1),!0;return!1},e.prototype.dispatch=function(e,t){var n=this.subscribers.get(e);if(n)for(var r=0,o=n;r<o.length;r++){(0,o[r])(t)}},e}(),Hn=Mn,qn=function(){return qn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qn.apply(this,arguments)},Bn=function(){function e(e,t,n){void 0===n&&(n=new Hn);var r=this;this.eventBus=n,this.events=[],this.recordPageView=function(e){r.isCurrentUrlAllowed()&&r.pageManager.recordPageView(e)},this.recordEvent=function(e,t){if(r.enabled&&r.isCurrentUrlAllowed()){var n=r.sessionManager.getSession();r.sessionManager.incrementSessionEventCount(),r.canRecord(n)&&r.addRecordToCache(e,t)}},this.getSession=function(){if(r.isCurrentUrlAllowed())return r.sessionManager.getSession()},this.recordSessionInitEvent=function(e,t,n){r.enabled&&(r.sessionManager.incrementSessionEventCount(),r.canRecord(e)&&r.addRecordToCache(t,n))},this.canRecord=function(e){return e.record&&(e.eventCount<=r.config.sessionEventLimit||r.config.sessionEventLimit<=0)},this.addRecordToCache=function(e,t){if(r.enabled&&r.events.length!==r.config.eventCacheSize){var n=qn(qn(qn({},r.sessionManager.getAttributes()),r.pageManager.getAttributes()),{version:"1.0.0","aws:client":r.installationMethod,"aws:clientVersion":"1.19.0"}),o={id:wn(),timestamp:new Date,type:e};r.eventBus.dispatch(_n.EVENT,qn(qn({},o),{details:t,metadata:n})),r.events.push(qn(qn({},o),{details:JSON.stringify(t),metadata:JSON.stringify(n)}))}},this.appMonitorDetails=e,this.config=t,this.enabled=!0,this.pageManager=new Dn(t,this.recordEvent),this.sessionManager=new An(e,t,this.recordSessionInitEvent,this.pageManager),this.installationMethod=t.client}return e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.isSessionSampled=function(){return this.sessionManager.isSampled()},e.prototype.hasEvents=function(){return 0!==this.events.length},e.prototype.getEventBatch=function(){var e=[];return 0===this.events.length||(this.events.length<=this.config.batchLimit?(e=this.events,this.events=[]):e=this.events.splice(0,this.config.batchLimit)),e},e.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},e.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},e.prototype.addSessionAttributes=function(e){this.sessionManager.addSessionAttributes(e)},e.prototype.isCurrentUrlAllowed=function(){var e=document.location.toString(),t=this.config.pagesToExclude.some((function(t){return t.test(e)}));return this.config.pagesToInclude.some((function(t){return t.test(e)}))&&!t},e}(),Nn={},Fn={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),Nn[e]=t,Fn[t]=e}function Vn(e){let t="";for(let n=0;n<e.byteLength;n++)t+=Nn[e[n]];return t}f(J());var zn=class e{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&$n(n),new e(n)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&$n(e),parseInt(Vn(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function $n(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}var Wn,Kn,Gn=class{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const n of Object.keys(e)){const r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let r=0;for(const e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const a=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);const c=new Uint8Array(s.buffer);return c.set(a,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(zn.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!or.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(!(r in Fn))throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`);t[n/2]=Fn[r]}return t}(e.value.replace(/\-/g,"")),1),l}}parse(e){const t={};let n=0;for(;n<e.byteLength;){const r=e.getUint8(n++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,r));switch(n+=r,e.getUint8(n++)){case 0:t[o]={type:Xn,value:!0};break;case 1:t[o]={type:Xn,value:!1};break;case 2:t[o]={type:Zn,value:e.getInt8(n++)};break;case 3:t[o]={type:Jn,value:e.getInt16(n,!1)},n+=2;break;case 4:t[o]={type:Yn,value:e.getInt32(n,!1)},n+=4;break;case 5:t[o]={type:Qn,value:new zn(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:const r=e.getUint16(n,!1);n+=2,t[o]={type:er,value:new Uint8Array(e.buffer,e.byteOffset+n,r)},n+=r;break;case 7:const i=e.getUint16(n,!1);n+=2,t[o]={type:tr,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,i))},n+=i;break;case 8:t[o]={type:nr,value:new Date(new zn(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:const a=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,t[o]={type:rr,value:`${Vn(a.subarray(0,4))}-${Vn(a.subarray(4,6))}-${Vn(a.subarray(6,8))}-${Vn(a.subarray(8,10))}-${Vn(a.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}};(Kn=Wn||(Wn={}))[Kn.boolTrue=0]="boolTrue",Kn[Kn.boolFalse=1]="boolFalse",Kn[Kn.byte=2]="byte",Kn[Kn.short=3]="short",Kn[Kn.integer=4]="integer",Kn[Kn.long=5]="long",Kn[Kn.byteArray=6]="byteArray",Kn[Kn.string=7]="string",Kn[Kn.timestamp=8]="timestamp",Kn[Kn.uuid=9]="uuid";var Xn="boolean",Zn="byte",Jn="short",Yn="integer",Qn="long",er="binary",tr="string",nr="timestamp",rr="uuid",or=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;f(J());var ir,ar=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},sr=e=>(new TextEncoder).encode(e),cr=e=>"string"==typeof e?sr(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),ur=e=>new TextDecoder("utf-8").decode(e),lr="X-Amz-Date",dr="X-Amz-Signature",fr="X-Amz-Security-Token",pr="authorization",hr=lr.toLowerCase(),vr=[pr,hr,"date"],yr=dr.toLowerCase(),mr="x-amz-content-sha256",gr=fr.toLowerCase(),br={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},wr=/^proxy-/,Er=/^sec-/,Sr="AWS4-HMAC-SHA256",Tr="AWS4-HMAC-SHA256-PAYLOAD",_r="aws4_request",Cr={},Ir=[],Or=(e,t,n)=>`${e}/${t}/${n}/${_r}`,Pr=(e,t,n)=>{const r=new e(t);return r.update(cr(n)),r.digest()},Ar=({headers:e},t,n)=>{const r={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const i=o.toLowerCase();(i in br||t?.has(i)||wr.test(i)||Er.test(i))&&(!n||n&&!n.has(i))||(r[i]=e[o].trim().replace(/\s+/g," "))}return r},kr=async({headers:e,body:t},n)=>{for(const t of Object.keys(e))if(t.toLowerCase()===mr)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(r=t,"function"==typeof ArrayBuffer&&r instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(r))){const e=new n;return e.update(cr(t)),Vn(await e.digest())}var r;return"UNSIGNED-PAYLOAD"},Lr=({headers:e,query:t,...n})=>({...n,headers:{...e},query:t?xr(t):void 0}),xr=e=>Object.keys(e).reduce(((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}}),{}),Rr=e=>{e="function"==typeof e.clone?e.clone():Lr(e);for(const t of Object.keys(e.headers))vr.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},jr=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e,Ur=class{constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:o,uriEscapePath:i=!0}){this.headerMarshaller=new Gn(ur,sr),this.service=r,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=ar(n),this.credentialProvider=ar(t)}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,signingRegion:s,signingService:c}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);const l=s??await this.regionProvider(),{longDate:d,shortDate:f}=Dr(n);if(r>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=Or(f,l,c??this.service),h=((e,t={})=>{const{headers:n,query:r={}}="function"==typeof e.clone?e.clone():Lr(e);for(const e of Object.keys(n)){const o=e.toLowerCase();"x-amz-"!==o.slice(0,6)||t.unhoistableHeaders?.has(o)||(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}})(Rr(e),{unhoistableHeaders:i});u.sessionToken&&(h.query[fr]=u.sessionToken),h.query["X-Amz-Algorithm"]=Sr,h.query["X-Amz-Credential"]=`${u.accessKeyId}/${p}`,h.query[lr]=d,h.query["X-Amz-Expires"]=r.toString(10);const v=Ar(h,o,a);return h.query["X-Amz-SignedHeaders"]=Mr(v),h.query[dr]=await this.getSignature(d,p,this.getSigningKey(u,l,f,c),this.createCanonicalRequest(h,v,await kr(e,this.sha256))),h}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:o,signingService:i}){const a=o??await this.regionProvider(),{shortDate:s,longDate:c}=Dr(n),u=Or(s,a,i??this.service),l=await kr({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);const f=Vn(await d.digest()),p=[Tr,c,u,r,f,l].join("\n");return this.signString(p,{signingDate:n,signingRegion:a,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=n??await this.regionProvider(),{shortDate:a}=Dr(t),s=new this.sha256(await this.getSigningKey(o,i,a,r));return s.update(cr(e)),Vn(await s.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:o,signingService:i}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const s=o??await this.regionProvider(),c=Rr(e),{longDate:u,shortDate:l}=Dr(t),d=Or(l,s,i??this.service);c.headers[hr]=u,a.sessionToken&&(c.headers[gr]=a.sessionToken);const f=await kr(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1})(mr,c.headers)&&this.applyChecksum&&(c.headers[mr]=f);const p=Ar(c,r,n),h=await this.getSignature(u,d,this.getSigningKey(a,s,l,i),this.createCanonicalRequest(c,p,f));return c.headers[pr]=`${Sr} Credential=${a.accessKeyId}/${d}, SignedHeaders=${Mr(p)}, Signature=${h}`,c}createCanonicalRequest(e,t,n){const r=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e).sort()){if(r.toLowerCase()===yr)continue;t.push(r);const o=e[r];"string"==typeof o?n[r]=`${Be(r)}=${Be(o)}`:Array.isArray(o)&&(n[r]=o.slice(0).sort().reduce(((e,t)=>e.concat([`${Be(r)}=${Be(t)}`])),[]).join("&"))}return t.map((e=>n[e])).filter((e=>e)).join("&")})(e)}\n${r.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${r.join(";")}\n${n}`}async createStringToSign(e,t,n){const r=new this.sha256;r.update(cr(n));const o=await r.digest();return`${Sr}\n${e}\n${t}\n${Vn(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/"))0!==n?.length&&"."!==n&&(".."===n?t.pop():t.push(n));const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return e}async getSignature(e,t,n,r){const o=await this.createStringToSign(e,t,r),i=new this.sha256(await n);return i.update(cr(o)),Vn(await i.digest())}getSigningKey(e,t,n,r){return(async(e,t,n,r,o)=>{const i=`${n}:${r}:${o}:${Vn(await Pr(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in Cr)return Cr[i];for(Ir.push(i);Ir.length>50;)delete Cr[Ir.shift()];let a=`AWS4${t.secretAccessKey}`;for(const t of[n,r,o,_r])a=await Pr(e,a,t);return Cr[i]=a})(this.sha256,e,n,t,r||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}},Dr=e=>{const t=(n=e,jr(n).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var n;return{longDate:t,shortDate:t.slice(0,8)}},Mr=e=>Object.keys(e).sort().join(";"),Hr=f(He()),qr=function(){return qr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qr.apply(this,arguments)},Br=function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))},Nr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Fr={expiresIn:60},Vr=function(e){var t=this;this.sendFetch=function(e){return Br(t,0,void 0,(function(){var t,n;return Nr(this,(function(r){switch(r.label){case 0:return[4,this.getHttpRequestOptions(e,"application/json")];case 1:return t=r.sent(),n=new Je(t),this.awsSigV4?[4,this.awsSigV4.sign(n)]:[3,3];case 2:n=r.sent(),r.label=3;case 3:return[2,this.config.fetchRequestHandler.handle(n)]}}))}))},this.sendBeacon=function(e){return Br(t,0,void 0,(function(){var t,n;return Nr(this,(function(r){switch(r.label){case 0:return[4,this.getHttpRequestOptions(e,"text/plain;charset=UTF-8")];case 1:return t=r.sent(),n=new Je(t),this.awsSigV4?[4,this.awsSigV4.presign(n,Fr)]:[3,3];case 2:n=r.sent(),r.label=3;case 3:return[2,this.config.beaconRequestHandler.handle(n)]}}))}))},this.getHttpRequestOptions=function(e,n){return Br(t,0,void 0,(function(){var t,r,o,i,a,s,c,u;return Nr(this,(function(l){switch(l.label){case 0:return t=JSON.stringify(zr(e)),r=this.config.endpoint.pathname.replace(/\/$/,""),o={method:"POST",protocol:this.config.endpoint.protocol,headers:{"content-type":n,host:this.config.endpoint.host},hostname:this.config.endpoint.hostname,path:"".concat(r,"/appmonitors/").concat(e.AppMonitorDetails.id),body:t},this.awsSigV4?(i=[qr({},o)],c={},a=[qr({},o.headers)],u={},s="X-Amz-Content-Sha256",[4,Wr(t)]):[3,2];case 1:return[2,qr.apply(void 0,i.concat([(c.headers=qr.apply(void 0,a.concat([(u[s]=l.sent(),u)])),c)]))];case 2:return[2,o]}}))}))},this.config=e,e.credentials&&(this.awsSigV4=new Ur({applyChecksum:!0,credentials:e.credentials,region:e.region,service:"rum",uriEscapePath:!0,sha256:Hr.Sha256}))},zr=function(e){var t=[];return e.RumEvents.forEach((function(e){return t.push($r(e))})),{BatchId:e.BatchId,AppMonitorDetails:e.AppMonitorDetails,UserDetails:e.UserDetails,RumEvents:t}},$r=function(e){return{id:e.id,timestamp:Math.round(e.timestamp.getTime()/1e3),type:e.type,metadata:e.metadata,details:e.details}},Wr=function(e){return Br(void 0,0,void 0,(function(){var t,n;return Nr(this,(function(r){switch(r.label){case 0:return(t=new Hr.Sha256).update(e),n=Vn,[4,t.digest()];case 1:return[2,n.apply(void 0,[r.sent()]).toLowerCase()]}}))}))},Kr=function(){function e(){}return e.prototype.handle=function(e){var t=this.sendBeacon(e);return new Promise((function(e,n){t?e({response:new et({statusCode:200})}):n()}))},e.prototype.sendBeacon=function(e){var t=e.path;if(e.query){var n=Fe(e.query);n&&(t+="?".concat(n))}var r=e.port,o="".concat(e.protocol,"//").concat(e.hostname).concat(r?":".concat(r):"").concat(t);return navigator.sendBeacon(o,e.body)},e}(),Gr=function(){function e(e){var t=void 0===e?{}:e,n=t.fetchFunction,r=t.requestTimeout;this.requestTimeout=r,this.fetchFunction=n}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=(void 0===t?{}:t).abortSignal,r=this.requestTimeout;if(null==n?void 0:n.aborted){var o=new Error("Request aborted");return o.name="AbortError",Promise.reject(o)}var i=e.path;if(e.query){var a=Fe(e.query);a&&(i+="?".concat(a))}var s=e.port,c=e.method,u="".concat(e.protocol,"//").concat(e.hostname).concat(s?":".concat(s):"").concat(i),l={body:"GET"===c||"HEAD"===c?void 0:e.body,headers:new Headers(e.headers),method:c};"undefined"!=typeof AbortController&&(l.signal=n);var d,f=new Request(u,l),p=[this.fetchFunction.apply(window,[f]).then((function(e){for(var t=e.headers,n={},r=0,o=t.entries();r<o.length;r++){var i=o[r];n[i[0]]=i[1]}return void 0!==e.body?{response:new et({headers:n,statusCode:e.status,body:e.body})}:e.blob().then((function(t){return{response:new et({headers:n,statusCode:e.status,body:t})}}))})),(d=r,void 0===d&&(d=0),new Promise((function(e,t){d&&setTimeout((function(){var e=new Error("Request did not complete within ".concat(d," ms"));e.name="TimeoutError",t(e)}),d)})))];return n&&p.push(new Promise((function(e,t){n.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}}))),Promise.race(p)},e}(),Xr=function(e){if(crypto)return crypto.getRandomValues(e);if(msCrypto)return msCrypto.getRandomValues(e);throw new Error("No crypto library found.")},Zr=[];for(ir=0;ir<256;ir++)Zr[ir]=(ir+256).toString(16).substr(1);var Jr,Yr,Qr,eo,to="X-Amzn-Trace-Id",no=function(e,t){return Array.isArray(t)?t.some((function(t){return t.test(e)})):t},ro={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},oo=function(e){return 4===Math.floor(e/100)},io=function(e){return 5===Math.floor(e/100)},ao=function(e){return 429===e},so=function(e,t){var n=t.urlsToInclude.some((function(t){return t.test(e)})),r=t.urlsToExclude.some((function(t){return t.test(e)}));return n&&!r},co=function(){return Date.now()/1e3},uo=function(e,t,n){return{version:"1.0.0",name:e,origin:"AWS::RUM::AppMonitor",id:yo(),start_time:t,trace_id:vo(),end_time:void 0,subsegments:[],in_progress:!1}},lo=function(e,t,n){var r={id:yo(),name:e,start_time:t,end_time:void 0,in_progress:!1,namespace:e.endsWith("amazonaws.com")?"aws":"remote"};return n&&(r.http=n),r},fo=function(e){try{return e.hostname?e.hostname:e.url?new URL(e.url).hostname:new URL(e.toString()).hostname}catch(e){return window.location.hostname}},po=function(e,t){return"Root="+e+";Parent="+t+";Sampled=1"},ho=function(e){return e.url?e.url:e.toString()},vo=function(){return"1-".concat(mo(),"-").concat(go())},yo=function(){var e=new Uint8Array(8);return Xr(e),bo(e)},mo=function(){return Math.floor(Date.now()/1e3).toString(16)},go=function(){var e=new Uint8Array(12);return Xr(e),bo(e)},bo=function(e){for(var t="",n=0;n<e.length;n++)t+=Zr[e[n]];return t},wo=function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))},Eo=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},So=function(){function e(e,t,n){void 0===n&&(n=function(e){return 2e3*Math.pow(2,e-1)}),this.handler=e,this.retries=t,this.backoff=n}return e.prototype.handle=function(e){return wo(this,0,void 0,(function(){var t,n,r;return Eo(this,(function(o){switch(o.label){case 0:t=this.retries,o.label=1;case 1:o.label=2;case 2:return o.trys.push([2,4,,6]),[4,this.handler.handle(e)];case 3:if(n=o.sent(),200<=(i=n.response.statusCode)&&i<300)return[2,n];throw n.response.statusCode;case 4:if("number"==typeof(r=o.sent())&&!ao(r)&&!io(r))throw new Error("".concat(r));if(t<=0)throw r;return t--,[4,this.sleep(this.backoff(this.retries-t))];case 5:return o.sent(),[3,6];case 6:return[3,1];case 7:return[2]}var i}))}))},e.prototype.sleep=function(e){return wo(this,0,void 0,(function(){return Eo(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,e)}))]}))}))},e}(),To=function(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}s((r=r.apply(e,[])).next())}))},_o=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Co="CWR: Cannot dispatch; no AWS credentials.",Io=function(){function e(e,t,n,r){var o=this;this.disableCodes=["403","404"],this.dispatchFetch=function(){return To(o,0,void 0,(function(){return _o(this,(function(e){return this.doRequest()?[2,this.rum.sendFetch(this.createRequest()).catch(this.handleReject)]:[2]}))}))},this.dispatchBeacon=function(){return To(o,0,void 0,(function(){var e,t=this;return _o(this,(function(n){return this.doRequest()?(e=this.createRequest(),[2,this.rum.sendBeacon(e).catch((function(){return t.rum.sendFetch(e)}))]):[2]}))}))},this.dispatchFetchFailSilent=function(){return To(o,0,void 0,(function(){return _o(this,(function(e){return[2,this.dispatchFetch().catch((function(){}))]}))}))},this.dispatchBeaconFailSilent=function(){return To(o,0,void 0,(function(){return _o(this,(function(e){return[2,this.dispatchBeacon().catch((function(){}))]}))}))},this.handleReject=function(e){throw e instanceof Error&&o.disableCodes.includes(e.message)&&o.disable(),e},this.defaultClientBuilder=function(e,t,n){return new Vr({fetchRequestHandler:new So(new Gr({fetchFunction:o.config.fetchFunction}),o.config.retries),beaconRequestHandler:new Kr,endpoint:e,region:t,credentials:n})},this.region=e,this.endpoint=t,this.eventCache=n,this.enabled=!0,this.buildClient=r.clientBuilder||this.defaultClientBuilder,this.config=r,this.startDispatchTimer(),r.signing?this.rum={sendFetch:function(){return Promise.reject(new Error(Co))},sendBeacon:function(){return Promise.reject(new Error(Co))}}:this.rum=this.buildClient(this.endpoint,this.region,void 0)}return e.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},e.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1},e.prototype.setAwsCredentials=function(e){this.rum=this.buildClient(this.endpoint,this.region,e),"function"==typeof e&&e()},e.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.addEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),this.config.dispatchInterval<=0||this.dispatchTimerId||(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},e.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.removeEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},e.prototype.doRequest=function(){return this.enabled&&this.eventCache.hasEvents()},e.prototype.createRequest=function(){return{BatchId:wn(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch()}},e}();(Yr=Jr||(Jr={})).OTHER="other",Yr.STYLESHEET="stylesheet",Yr.DOCUMENT="document",Yr.SCRIPT="script",Yr.IMAGE="image",Yr.FONT="font",(eo=Qr||(Qr={})).IMG="img",eo.IMAGE="image",eo.INPUT="input",eo.IFRAME="iframe",eo.FRAME="frame",eo.SCRIPT="script",eo.CSS="css";var Oo,Po,Ao,ko,Lo,xo,Ro,jo,Uo=function(e){return[e.startTime,e.duration].join("#")},Do=[{name:Jr.STYLESHEET,list:["css","less"]},{name:Jr.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:Jr.SCRIPT,list:["js"]},{name:Jr.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:Jr.FONT,list:["fnt","fon","otf","ttf","woff"]}],Mo=function(e,t){var n=Jr.OTHER;if(e){var r=e.substring(e.lastIndexOf("/")+1),o=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0];Do.forEach((function(e){e.list.indexOf(o)>-1&&(n=e.name)}))}if(t&&n===Jr.OTHER)switch(t){case Qr.IMAGE:case Qr.IMG:case Qr.INPUT:n=Jr.IMAGE;break;case Qr.IFRAME:case Qr.FRAME:n=Jr.DOCUMENT;break;case Qr.SCRIPT:n=Jr.SCRIPT;break;case Qr.CSS:n=Jr.STYLESHEET}return n},Ho=function(){return PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")},qo=/.*\/application\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/events/,Bo={eventLimit:10,ignore:function(e){return"resource"===e.entryType&&(!/^https?:/.test(e.name)||/^(fetch|xmlhttprequest)$/.test(e.initiatorType))},recordAllTypes:[Jr.DOCUMENT,Jr.SCRIPT,Jr.STYLESHEET,Jr.FONT],sampleTypes:[Jr.IMAGE,Jr.OTHER]},No=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fo=function(){return Fo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fo.apply(this,arguments)},Vo="navigation",zo="load",$o=function(e){function t(t){var n=e.call(this,"navigation")||this;return n.eventListener=function(){0===performance.getEntriesByType(Vo).length?n.performanceNavigationEventHandlerTimingLevel1():new PerformanceObserver((function(e){e.getEntries().filter((function(e){return e.entryType===Vo})).filter((function(e){return!n.config.ignore(e)})).forEach((function(e){n.performanceNavigationEventHandlerTimingLevel2(e)}))})).observe({entryTypes:[Vo]})},n.performanceNavigationEventHandlerTimingLevel1=function(){setTimeout((function(){var e,t=performance.timing,r=t.navigationStart,o={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:t.unloadEventStart>0?t.unloadEventStart-r:0,promptForUnload:t.unloadEventEnd-t.unloadEventStart,redirectStart:t.redirectStart>0?t.redirectStart-r:0,redirectTime:t.redirectEnd-t.redirectStart,fetchStart:t.fetchStart>0?t.fetchStart-r:0,domainLookupStart:t.domainLookupStart>0?t.domainLookupStart-r:0,dns:t.domainLookupEnd-t.domainLookupStart,connectStart:t.connectStart>0?t.connectStart-r:0,connect:t.connectEnd-t.connectStart,secureConnectionStart:t.secureConnectionStart>0?t.secureConnectionStart-r:0,tlsTime:t.secureConnectionStart>0?t.connectEnd-t.secureConnectionStart:0,requestStart:t.requestStart>0?t.requestStart-r:0,timeToFirstByte:t.responseStart-t.requestStart,responseStart:t.responseStart>0?t.responseStart-r:0,responseTime:t.responseStart>0?t.responseEnd-t.responseStart:0,domInteractive:t.domInteractive>0?t.domInteractive-r:0,domContentLoadedEventStart:t.domContentLoadedEventStart>0?t.domContentLoadedEventStart-r:0,domContentLoaded:t.domContentLoadedEventEnd-t.domContentLoadedEventStart,domComplete:t.domComplete>0?t.domComplete-r:0,domProcessingTime:t.loadEventStart-t.responseEnd,loadEventStart:t.loadEventStart>0?t.loadEventStart-r:0,loadEventTime:t.loadEventEnd-t.loadEventStart,duration:t.loadEventEnd-t.navigationStart,navigationTimingLevel:1};(null===(e=n.context)||void 0===e?void 0:e.record)&&n.context.record(jt,o)}),0)},n.performanceNavigationEventHandlerTimingLevel2=function(e){var t,r={version:"1.0.0",initiatorType:e.initiatorType,navigationType:e.type,startTime:e.startTime,unloadEventStart:e.unloadEventStart,promptForUnload:e.unloadEventEnd-e.unloadEventStart,redirectCount:e.redirectCount,redirectStart:e.redirectStart,redirectTime:e.redirectEnd-e.redirectStart,workerStart:e.workerStart,workerTime:e.workerStart>0?e.fetchStart-e.workerStart:0,fetchStart:e.fetchStart,domainLookupStart:e.domainLookupStart,dns:e.domainLookupEnd-e.domainLookupStart,nextHopProtocol:e.nextHopProtocol,connectStart:e.connectStart,connect:e.connectEnd-e.connectStart,secureConnectionStart:e.secureConnectionStart,tlsTime:e.secureConnectionStart>0?e.connectEnd-e.secureConnectionStart:0,requestStart:e.requestStart,timeToFirstByte:e.responseStart-e.requestStart,responseStart:e.responseStart,responseTime:e.responseStart>0?e.responseEnd-e.responseStart:0,domInteractive:e.domInteractive,domContentLoadedEventStart:e.domContentLoadedEventStart,domContentLoaded:e.domContentLoadedEventEnd-e.domContentLoadedEventStart,domComplete:e.domComplete,domProcessingTime:e.loadEventStart-e.responseEnd,loadEventStart:e.loadEventStart,loadEventTime:e.loadEventEnd-e.loadEventStart,duration:e.duration,headerSize:e.transferSize>0?e.transferSize-e.encodedBodySize:0,transferSize:e.transferSize,compressionRatio:e.encodedBodySize>0?e.decodedBodySize/e.encodedBodySize:0,navigationTimingLevel:2};(null===(t=n.context)||void 0===t?void 0:t.record)&&n.context.record(jt,r)},n.config=Fo(Fo({},Bo),t),n}return No(t,e),t.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(zo,this.eventListener))},t.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(zo,this.eventListener))},t.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(Vo).length){var e=window.performance.getEntriesByType(Vo)[0];return Boolean(e.loadEventEnd)}return!1},t.prototype.onload=function(){var e=this;this.enabled&&(this.hasTheWindowLoadEventFired()?window.performance.getEntriesByType(Vo).filter((function(t){return!e.config.ignore(t)})).forEach((function(t){return e.performanceNavigationEventHandlerTimingLevel2(t)})):window.addEventListener(zo,this.eventListener))},t}(Bt),Wo=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ko=function(){return Ko=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ko.apply(this,arguments)},Go="resource",Xo=function(e){function t(t){var n=e.call(this,"resource")||this;return n.performanceEntryHandler=function(e){n.recordPerformanceEntries(e.getEntries())},n.recordPerformanceEntries=function(e){var t=[],r=[];for(e.filter((function(e){return e.entryType===Go})).filter((function(e){return!n.config.ignore(e)})).forEach((function(e){var o=e,i=o.name,a=o.initiatorType,s=Mo(i,a);n.config.recordAllTypes.includes(s)?t.push(e):n.config.sampleTypes.includes(s)&&r.push(e)})),t.forEach((function(e){return n.recordResourceEvent(e)})),function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}(r);r.length>0&&n.eventCount<n.config.eventLimit;)n.recordResourceEvent(r.pop()),n.eventCount++},n.recordResourceEvent=function(e){var t,r=e.name,o=e.startTime,i=e.initiatorType,a=e.duration,s=e.transferSize;if(!function(e,t){try{return new URL(e).hostname===t&&qo.test(e)}catch(e){return!1}}(r,n.context.config.endpointUrl.hostname)&&(null===(t=n.context)||void 0===t?void 0:t.record)){var c={version:"1.0.0",initiatorType:i,startTime:o,duration:a,fileType:Mo(r,i),transferSize:s};n.context.config.recordResourceUrl&&(c.targetUrl=r),n.context.record(Ut,c)}},n.config=Ko(Ko({},Bo),t),n.eventCount=0,n.resourceObserver=new PerformanceObserver(n.performanceEntryHandler),n}return Wo(t,e),t.prototype.enable=function(){this.enabled||(this.enabled=!0,this.resourceObserver.observe({type:Go,buffered:!0}))},t.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.resourceObserver.disconnect())},t.prototype.onload=function(){this.resourceObserver.observe({type:Go,buffered:!0})},t}(Bt),Zo=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Jo=function(e){if("loading"===document.readyState)return"loading";var t=Zo();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},Yo=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Qo=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,o=r.id?"#"+r.id:Yo(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+o.length>(t||100)-1)return n||o;if(n=n?o+">"+n:o,r.id)break;e=r.parentNode}}catch(e){}return n},ei=-1,ti=function(e){addEventListener("pageshow",(function(t){t.persisted&&(ei=t.timeStamp,e(t))}),!0)},ni=function(){var e=Zo();return e&&e.activationStart||0},ri=function(e,t){var n=Zo(),r="navigate";return ei>=0?r="back-forward-cache":n&&(document.prerendering||ni()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},oi=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},ii=function(e,t,n,r){var o,i;return function(a){var s,c;t.value>=0&&(a||r)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,t.rating=(s=t.value)>(c=n)[1]?"poor":s>c[0]?"needs-improvement":"good",e(t))}},ai=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},si=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},ci=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},ui=-1,li=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},di=function(e){"hidden"===document.visibilityState&&ui>-1&&(ui="visibilitychange"===e.type?e.timeStamp:0,pi())},fi=function(){addEventListener("visibilitychange",di,!0),addEventListener("prerenderingchange",di,!0)},pi=function(){removeEventListener("visibilitychange",di,!0),removeEventListener("prerenderingchange",di,!0)},hi=function(){return ui<0&&(ui=li(),fi(),ti((function(){setTimeout((function(){ui=li(),fi()}),0)}))),{get firstHiddenTime(){return ui}}},vi=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},yi=[1800,3e3],mi=[.1,.25],gi=function(e,t){var n,r;n=function(t){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:Qo(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:Jo(t.startTime)})}}var r;e.attribution={}}(t),e(t)},r=(r=t)||{},function(e,t){t=t||{},vi((function(){var n,r=hi(),o=ri("FCP"),i=oi("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-ni(),0),o.entries.push(e),n(!0)))}))}));i&&(n=ii(e,o,yi,t.reportAllChanges),ti((function(r){o=ri("FCP"),n=ii(e,o,yi,t.reportAllChanges),ai((function(){o.value=performance.now()-r.timeStamp,n(!0)}))})))}))}(ci((function(){var e,t=ri("CLS",0),o=0,i=[],a=function(n){n.forEach((function(e){if(!e.hadRecentInput){var t=i[0],n=i[i.length-1];o&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e])}})),o>t.value&&(t.value=o,t.entries=i,e())},s=oi("layout-shift",a);s&&(e=ii(n,t,mi,r.reportAllChanges),si((function(){a(s.takeRecords()),e(!0)})),ti((function(){o=0,t=ri("CLS",0),e=ii(n,t,mi,r.reportAllChanges),ai((function(){return e()}))})),setTimeout(e,0))})))},bi={passive:!0,capture:!0},wi=new Date,Ei=function(e,t){Oo||(Oo=t,Po=e,Ao=new Date,_i(removeEventListener),Si())},Si=function(){if(Po>=0&&Po<Ao-wi){var e={entryType:"first-input",name:Oo.type,target:Oo.target,cancelable:Oo.cancelable,startTime:Oo.timeStamp,processingStart:Oo.timeStamp+Po};ko.forEach((function(t){t(e)})),ko=[]}},Ti=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Ei(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,bi),removeEventListener("pointercancel",r,bi)};addEventListener("pointerup",n,bi),addEventListener("pointercancel",r,bi)}(t,e):Ei(t,e)}},_i=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Ti,bi)}))},Ci=[100,300],Ii=function(e,t){!function(e,t){t=t||{},vi((function(){var n,r=hi(),o=ri("FID"),i=function(e){e.startTime<r.firstHiddenTime&&(o.value=e.processingStart-e.startTime,o.entries.push(e),n(!0))},a=function(e){e.forEach(i)},s=oi("first-input",a);n=ii(e,o,Ci,t.reportAllChanges),s&&si(ci((function(){a(s.takeRecords()),s.disconnect()}))),s&&ti((function(){var r;o=ri("FID"),n=ii(e,o,Ci,t.reportAllChanges),ko=[],Po=-1,Oo=null,_i(addEventListener),r=i,ko.push(r),Si()}))}))}((function(t){var n,r;r=(n=t).entries[0],n.attribution={eventTarget:Qo(r.target),eventType:r.name,eventTime:r.startTime,eventEntry:r,loadState:Jo(r.startTime)},e(t)}),t)},Oi=[2500,4e3],Pi={},Ai=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ki=function(e){function t(){var t=e.call(this,"web-vitals")||this;return t.resourceEventIds=new Map,t.cacheLCPCandidates=Ho(),t.handleEvent=function(e){switch(e.type){case Ut:var n=e.details;t.cacheLCPCandidates&&n.fileType===Jr.IMAGE&&t.resourceEventIds.set(Uo(e.details),e.id);break;case jt:t.navigationEventId=e.id}},t}return Ai(t,e),t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.configure=function(e){},t.prototype.onload=function(){var e,t,n,r,o=this;this.context.eventBus.subscribe(_n.EVENT,this.handleEvent),e=function(e){return o.handleLCP(e)},n=function(t){!function(e){if(e.entries.length){var t=Zo();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],o=r.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===r.url}))[0],i=Math.max(0,t.responseStart-n),a=Math.max(i,o?(o.requestStart||o.startTime)-n:0),s=Math.max(a,o?o.responseEnd-n:0),c=Math.max(s,r?r.startTime-n:0),u={element:Qo(r.element),timeToFirstByte:i,resourceLoadDelay:a-i,resourceLoadTime:s-a,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:r};return r.url&&(u.url=r.url),o&&(u.lcpResourceEntry=o),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(t),e(t)},r=(r=t)||{},vi((function(){var e,t=hi(),o=ri("LCP"),i=function(n){var r=n[n.length-1];r&&r.startTime<t.firstHiddenTime&&(o.value=Math.max(r.startTime-ni(),0),o.entries=[r],e())},a=oi("largest-contentful-paint",i);if(a){e=ii(n,o,Oi,r.reportAllChanges);var s=ci((function(){Pi[o.id]||(i(a.takeRecords()),a.disconnect(),Pi[o.id]=!0,e(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(s,0)}),!0)})),si(s),ti((function(t){o=ri("LCP"),e=ii(n,o,Oi,r.reportAllChanges),ai((function(){o.value=performance.now()-t.timeStamp,Pi[o.id]=!0,e(!0)}))}))}})),Ii((function(e){return o.handleFID(e)})),gi((function(e){return o.handleCLS(e)}))},t.prototype.handleLCP=function(e){var t,n,r=e.attribution,o={element:r.element,url:r.url,timeToFirstByte:r.timeToFirstByte,resourceLoadDelay:r.resourceLoadDelay,resourceLoadTime:r.resourceLoadTime,elementRenderDelay:r.elementRenderDelay};if(r.lcpResourceEntry){var i=Uo(r.lcpResourceEntry);o.lcpResourceEntry=this.resourceEventIds.get(i)}this.navigationEventId&&(o.navigationEntry=this.navigationEventId),null===(t=this.context)||void 0===t||t.record(Lt,{version:"1.0.0",value:e.value,attribution:o}),null===(n=this.context)||void 0===n||n.eventBus.unsubscribe(_n.EVENT,this.handleEvent),this.resourceEventIds.clear(),this.navigationEventId=void 0},t.prototype.handleCLS=function(e){var t,n=e.attribution;null===(t=this.context)||void 0===t||t.record(Rt,{version:"1.0.0",value:e.value,attribution:{largestShiftTarget:n.largestShiftTarget,largestShiftValue:n.largestShiftValue,largestShiftTime:n.largestShiftTime,loadState:n.loadState}})},t.prototype.handleFID=function(e){var t,n=e.attribution;null===(t=this.context)||void 0===t||t.record(xt,{version:"1.0.0",value:e.value,attribution:{eventTarget:n.eventTarget,eventType:n.eventType,eventTime:n.eventTime,loadState:n.loadState}})},t}(Bt),Li=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xi=function(e){function t(t){var n=e.call(this,t)||this;return n.name="XMLHttpRequest error",n}return Li(t,e),t}(Error),Ri=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ji=function(){return ji=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ji.apply(this,arguments)},Ui=function(e){function t(t){var n=e.call(this,"xhr")||this;return n.addXRayTraceIdHeader=function(e){return no(e,n.config.addXRayTraceIdHeader)},n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var e;return(null===(e=n.context.getSession())||void 0===e?void 0:e.record)||!1},n.handleXhrLoadEvent=function(e){var t=e.target,r=n.xhrMap.get(t);if(r){var o=co();r.trace.end_time=o,r.trace.subsegments[0].end_time=o,r.trace.subsegments[0].http.response={status:t.status},ao(t.status)?(r.trace.subsegments[0].throttle=!0,r.trace.throttle=!0):oo(t.status)?(r.trace.subsegments[0].error=!0,r.trace.error=!0):io(t.status)&&(r.trace.subsegments[0].fault=!0,r.trace.fault=!0);var i=t.getResponseHeader("Content-Length"),a=i?parseInt(i,10):NaN;isNaN(a)||(r.trace.subsegments[0].http.response.content_length=a),n.recordTraceEvent(r.trace),n.recordHttpEventWithResponse(r,t)}},n.handleXhrErrorEvent=function(e){var t=e.target,r=n.xhrMap.get(t),o=t.statusText?t.status.toString()+": "+t.statusText:t.status.toString();if(r){var i=co();r.trace.fault=!0,r.trace.end_time=i,r.trace.subsegments[0].end_time=i,r.trace.subsegments[0].fault=!0,r.trace.subsegments[0].cause={exceptions:[{type:"XMLHttpRequest error",message:o}]},n.recordTraceEvent(r.trace),n.recordHttpEventWithError(r,t,new xi(o))}},n.handleXhrAbortEvent=function(e){var t=e.target,r=n.xhrMap.get(t);r&&n.handleXhrDetailsOnError(r,t,"XMLHttpRequest abort")},n.handleXhrTimeoutEvent=function(e){var t=e.target,r=n.xhrMap.get(t);n.handleXhrDetailsOnError(r,t,"XMLHttpRequest timeout")},n.initializeTrace=function(e){var t=co();e.trace=uo(n.config.logicalServiceName,t),e.trace.subsegments.push(lo(fo(e.url),t,{request:{method:e.method,url:e.url,traced:!0}}))},n.sendWrapper=function(){var e=n;return function(t){return function(){var n=e.xhrMap.get(this);return n&&(this.addEventListener("load",e.handleXhrLoadEvent),this.addEventListener("error",e.handleXhrErrorEvent),this.addEventListener("abort",e.handleXhrAbortEvent),this.addEventListener("timeout",e.handleXhrTimeoutEvent),e.initializeTrace(n),!e.isSyntheticsUA&&e.isTracingEnabled()&&e.addXRayTraceIdHeader(n.url)&&e.isSessionRecorded()&&this.setRequestHeader(to,po(n.trace.trace_id,n.trace.subsegments[0].id))),t.apply(this,arguments)}}},n.openWrapper=function(){var e=n;return function(t){return function(n,r,o){return so(r,e.config)&&e.xhrMap.set(this,{url:r,method:n,async:o}),t.apply(this,arguments)}}},n.config=ji(ji({},ro),t),n.xhrMap=new Map,n.isSyntheticsUA=navigator.userAgent.includes("CloudWatchSynthetics"),n}return Ri(t,e),t.prototype.onload=function(){this.enable()},Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]},enumerable:!1,configurable:!0}),t.prototype.handleXhrDetailsOnError=function(e,t,n){if(e){var r=co();e.trace.end_time=r,e.trace.subsegments[0].end_time=r,e.trace.subsegments[0].error=!0,e.trace.subsegments[0].cause={exceptions:[{type:n}]},this.recordTraceEvent(e.trace),this.recordHttpEventWithError(e,t,n)}},t.prototype.statusOk=function(e){return e>=200&&e<300},t.prototype.recordHttpEventWithResponse=function(e,t){this.xhrMap.delete(t);var n={version:"1.0.0",request:{method:e.method,url:e.url},response:{status:t.status,statusText:t.statusText}};this.isTracingEnabled()&&(n.trace_id=e.trace.trace_id,n.segment_id=e.trace.subsegments[0].id),!this.config.recordAllRequests&&this.statusOk(t.status)||this.context.record(At,n)},t.prototype.recordHttpEventWithError=function(e,t,n){this.xhrMap.delete(t);var r={version:"1.0.0",request:{method:e.method,url:e.url},error:Gt({type:"error",error:n},this.config.stackTraceLength)};this.isTracingEnabled()&&(r.trace_id=e.trace.trace_id,r.segment_id=e.trace.subsegments[0].id),this.context.record(At,r)},t.prototype.recordTraceEvent=function(e){!this.isSyntheticsUA&&this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(kt,e)},t}(xn),Di=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mi=function(){return Mi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mi.apply(this,arguments)},Hi=function(e){function t(t){var n=e.call(this,"fetch")||this;return n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var e;return(null===(e=n.context.getSession())||void 0===e?void 0:e.record)||!1},n.beginTrace=function(e,t,r){var o=co(),i=function(e,t,n){var r={request:{}};return r.request.method=(null==t?void 0:t.method)?t.method:"GET",r.request.traced=n,r.request.url=ho(e),r}(e,t,!0),a=uo(n.config.logicalServiceName,o),s=lo(fo(e),o,i);return a.subsegments.push(s),n.isTraceIdHeaderEnabled(e)&&n.addXRayTraceIdHeader(e,t,r,a),a},n.addXRayTraceIdHeader=function(e,t,n,r){if(e.headers)return o=e.headers,i=r.trace_id,a=r.subsegments[0].id,void o.set(to,po(i,a));var o,i,a;t||(t={},[].push.call(n,t)),function(e,t,n){e.headers||(e.headers={}),e.headers[to]=po(t,n)}(t,r.trace_id,r.subsegments[0].id)},n.endTrace=function(e,t,r){if(e){var o=co();if(e.subsegments[0].end_time=o,e.end_time=o,t){e.subsegments[0].http.response={status:t.status},ao(t.status)?(e.subsegments[0].throttle=!0,e.throttle=!0):oo(t.status)?(e.subsegments[0].error=!0,e.error=!0):io(t.status)&&(e.subsegments[0].fault=!0,e.fault=!0);var i=t.headers.get("Content-Length"),a=i?parseInt(i,10):NaN;isNaN(a)||(e.subsegments[0].http.response.content_length=a)}r&&(e.fault=!0,e.subsegments[0].fault=!0,r instanceof Object?n.appendErrorCauseFromObject(e.subsegments[0],r):Kt(r)&&n.appendErrorCauseFromPrimitive(e.subsegments[0],r.toString())),n.context.record(kt,e)}},n.createHttpEvent=function(e,t){var n=e;return{version:"1.0.0",request:{url:ho(e),method:(null==t?void 0:t.method)?t.method:n.method?n.method:"GET"}}},n.recordHttpEventWithResponse=function(e,t){!n.config.recordAllRequests&&t.ok||(e.response={status:t.status,statusText:t.statusText},n.context.record(At,e))},n.recordHttpEventWithError=function(e,t){e.error=Gt({type:"error",error:t},n.config.stackTraceLength),n.context.record(At,e)},n.fetch=function(e,t,r,o,i){var a,s=n.createHttpEvent(o,i);if(!so(ho(o),n.config))return e.apply(t,r);var c=function(e){var t,n={};if(e){var r=null===(t=e.get(to))||void 0===t?void 0:t.split(";");3===(null==r?void 0:r.length)&&(n.traceId=r[0].split("Root=")[1],n.segmentId=r[1].split("Parent=")[1])}return n}(o.headers);return c.traceId&&c.segmentId?(s.trace_id=c.traceId,s.segment_id=c.segmentId):n.isTracingEnabled()&&n.isSessionRecorded()&&(a=n.beginTrace(o,i,r),s.trace_id=a.trace_id,s.segment_id=a.subsegments[0].id),e.apply(t,r).then((function(e){return n.endTrace(a,e,void 0),n.recordHttpEventWithResponse(s,e),e})).catch((function(e){throw n.endTrace(a,void 0,e),n.recordHttpEventWithError(s,e),e}))},n.fetchWrapper=function(){var e=n;return function(t){return function(n,r){return e.fetch(t,this,arguments,n,r)}}},n.config=Mi(Mi({},ro),t),n}return Di(t,e),Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),t.prototype.onload=function(){this.enable()},t.prototype.isTraceIdHeaderEnabled=function(e){var t=ho(e);return no(t,this.config.addXRayTraceIdHeader)},t.prototype.appendErrorCauseFromPrimitive=function(e,t){e.cause={exceptions:[{type:t}]}},t.prototype.appendErrorCauseFromObject=function(e,t){e.cause={exceptions:[{type:t.name,message:t.message}]}},t}(xn),qi=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bi=function(e){function t(){var t=e.call(this,"page-view")||this;return t.pushState=function(){var e=t;return function(t){return function(n,r,o){var i=t.apply(this,arguments);return e.recordPageView(),i}}},t.replaceState=function(){var e=t;return function(t){return function(n,r,o){var i=t.apply(this,arguments);return e.recordPageView(),i}}},t.popstateListener=function(e){t.recordPageView()},t.recordPageView=function(){t.context.recordPageView(t.createIdForCurrentPage())},t.enable(),t}return qi(t,e),t.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]},enumerable:!1,configurable:!0}),t.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},t.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,t=window.location.hash;switch(this.context.config.pageIdFormat){case Ro.PathAndHash:return e&&t?e+t:e||(t||"");case Ro.Hash:return t||"";case Ro.Path:default:return e||""}},t}(xn),Ni=function(){return Ni=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ni.apply(this,arguments)},Fi=function(e,t,n){for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Vi="us-west-2",zi="https://dataplane.rum.".concat(Vi,".amazonaws.com");(xo=Lo||(Lo={})).Errors="errors",xo.Performance="performance",xo.Interaction="interaction",xo.Http="http",(jo=Ro||(Ro={})).Path="PATH",jo.Hash="HASH",jo.PathAndHash="PATH_AND_HASH";var $i=function(){function e(e,t,n,r){void 0===r&&(r={});var o=r.cookieAttributes,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["cookieAttributes"]);this.eventBus=new Hn,void 0===n&&(n="us-west-2");var a=Ni(Ni({},{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}),o);this.config=Ni(Ni({fetchFunction:fetch},function(e){return{allowCookies:!1,batchLimit:100,client:"arw-module",cookieAttributes:e,disableAutoPageView:!1,dispatchInterval:5e3,enableRumClient:!0,enableXRay:!1,endpoint:zi,endpointUrl:new URL(zi),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:Ro.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!0,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,telemetries:[],useBeacon:!0,userIdRetentionDays:30}}(a)),i),this.config.endpoint=this.getDataPlaneEndpoint(n,i),this.config.endpointUrl=new URL(this.config.endpoint),this.eventCache=this.initEventCache(e,t),this.dispatchManager=this.initDispatch(n,e),this.pluginManager=this.initPluginManager(e,t),this.config.enableRumClient?this.enable():this.disable()}return e.prototype.setAwsCredentials=function(e){this.dispatchManager.setAwsCredentials(e)},e.prototype.addSessionAttributes=function(e){this.eventCache.addSessionAttributes(e)},e.prototype.addPlugin=function(e){this.pluginManager.addPlugin(e)},e.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},e.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},e.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},e.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},e.prototype.allowCookies=function(e){this.config.allowCookies=e},e.prototype.recordPageView=function(e){this.eventCache.recordPageView(e)},e.prototype.recordError=function(e){this.pluginManager.record(Jt,e)},e.prototype.registerDomEvents=function(e){this.pluginManager.updatePlugin(zt,e)},e.prototype.recordEvent=function(e,t){this.eventCache.recordEvent(e,t)},e.prototype.initEventCache=function(e,t){return new Bn({id:e,version:t},this.config,this.eventBus)},e.prototype.initDispatch=function(e,t){var n=new Io(e,this.config.endpointUrl,this.eventCache,this.config);return this.eventCache.isSessionSampled()?(this.config.identityPoolId&&this.config.guestRoleArn?n.setAwsCredentials(new Tt(this.config,t).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&n.setAwsCredentials(new Ot(this.config,t).ChainAnonymousCredentialsProvider),n):n},e.prototype.initPluginManager=function(e,t){var n=this.constructBuiltinPlugins(),r=Fi(Fi([],n),this.config.eventPluginsToLoad),o={applicationId:e,applicationVersion:t,config:this.config,record:this.eventCache.recordEvent,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus},i=new Nt(o);return this.config.disableAutoPageView||i.addPlugin(new Bi),r.forEach((function(e){i.addPlugin(e)})),i},e.prototype.constructBuiltinPlugins=function(){var e=[],t=this.telemetryFunctor();return this.config.telemetries.forEach((function(n){"string"==typeof n&&t[n.toLowerCase()]?e=Fi(Fi([],e),t[n.toLowerCase()]({})):Array.isArray(n)&&t[n[0].toLowerCase()]&&(e=Fi(Fi([],e),t[n[0].toLowerCase()](n[1])))})),e},e.prototype.getDataPlaneEndpoint=function(e,t){return t.endpoint?t.endpoint:zi.replace(Vi,e)},e.prototype.telemetryFunctor=function(){var e;return(e={})[Lo.Errors]=function(e){return[new Qt(e)]},e[Lo.Performance]=function(e){return[new $o(e),new Xo(e),new ki]},e[Lo.Interaction]=function(e){return[new Wt(e)]},e[Lo.Http]=function(e){return[new Ui(e),new Hi(e)]},e},e}(),Wi=-1,Ki=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Wi=t.timeStamp,e(t))}),!0)},Gi=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Xi=function(){var e=Gi();return e&&e.activationStart||0},Zi=function(e,t){var n=Gi(),r="navigate";return Wi>=0?r="back-forward-cache":n&&(document.prerendering||Xi()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:-1,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Ji=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Yi=function(e,t,n,r){var o,i;return function(a){var s,c;t.value>=0&&(a||r)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,t.rating=(s=t.value)>(c=n)[1]?"poor":s>c[0]?"needs-improvement":"good",e(t))}},Qi=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ea=-1,ta=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},na=function(e){"hidden"===document.visibilityState&&ea>-1&&(ea="visibilitychange"===e.type?e.timeStamp:0,oa())},ra=function(){addEventListener("visibilitychange",na,!0),addEventListener("prerenderingchange",na,!0)},oa=function(){removeEventListener("visibilitychange",na,!0),removeEventListener("prerenderingchange",na,!0)},ia=function(){return ea<0&&(ea=ta(),ra(),Ki((function(){setTimeout((function(){ea=ta(),ra()}),0)}))),{get firstHiddenTime(){return ea}}},aa=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},sa=[1800,3e3],ca=[2500,4e3],ua={},la=function(e,t){t=t||{},aa((function(){var n,r=ia(),o=Zi("LCP"),i=function(e){var t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(o.value=Math.max(t.startTime-Xi(),0),o.entries=[t],n())},a=Ji("largest-contentful-paint",i);if(a){n=Yi(e,o,ca,t.reportAllChanges);var s=function(e){var t=!1;return function(n){t||(e(n),t=!0)}}((function(){ua[o.id]||(i(a.takeRecords()),a.disconnect(),ua[o.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(s,0)}),!0)})),function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)}(s),Ki((function(r){o=Zi("LCP"),n=Yi(e,o,ca,t.reportAllChanges),Qi((function(){o.value=performance.now()-r.timeStamp,ua[o.id]=!0,n(!0)}))}))}}))},da="navigation",fa=function(){function e(e){var t=this;this.visuallyReadyTimestamp=0,this.timeIntervals=0,this.fcpSupported=!1,this.lcpSupported=!1,this.cleanupVisuallyReadySearch=!1,this.CHECK_PERIOD=1e3,this.VISUALLY_READY_RESOLVE_TIMEOUT=1e4,this.visualReadyIntervalHandler=function(){var e=t.timeIntervals*t.CHECK_PERIOD>t.VISUALLY_READY_RESOLVE_TIMEOUT;t.isOkToResolveVisuallyReady(e)?(t.visuallyReadyTimestamp=Math.max(t.fcpTime?t.fcpTime:0,t.lcpTime?t.lcpTime:0,t.domContentLoadedEventEnd?t.domContentLoadedEventEnd:0),clearInterval(t.visualReadyInterval),t.cleanupVisuallyReadySearch=!0,t.quietWindowSearch.startTtiSearch(t.visuallyReadyTimestamp)):e&&(t.cleanupVisuallyReadySearch=!0,t.quietWindowSearch.cleanupQuietWindowSearch()),t.timeIntervals+=1},this.navEventListener=function(){var e=new PerformanceObserver((function(n){t.cleanupVisuallyReadySearch&&e.disconnect(),n.getEntries().filter((function(e){return e.entryType===da})).map((function(e){return e})).forEach((function(e){e.domContentLoadedEventEnd&&(t.domContentLoadedEventEnd=e.domContentLoadedEventEnd)}))}));e.observe({type:da,buffered:!0})},this.initListeners(),this.quietWindowSearch=e,this.visualReadyInterval=this.startVisualReadyInterval()}return e.prototype.startVisualReadyInterval=function(){return setInterval(this.visualReadyIntervalHandler,this.CHECK_PERIOD)},e.prototype.isOkToResolveVisuallyReady=function(e){var t=void 0!==this.lcpTime&&void 0!==this.fcpTime&&void 0!==this.domContentLoadedEventEnd,n=this.lcpSupported&&void 0!==this.lcpTime||this.fcpSupported&&void 0!==this.fcpTime||void 0!==this.domContentLoadedEventEnd;return!!t||!(!e||!n)},e.prototype.handleWebVitals=function(e){var t=this;"FCP"===e.name&&e.entries.forEach((function(e){return t.fcpTime=e.startTime+e.duration})),"LCP"===e.name&&e.entries.forEach((function(e){return t.lcpTime=e.startTime+e.duration}))},e.prototype.initListeners=function(){var e,t,n=this;this.navEventListener(),this.lcpSupported=Ho(),this.fcpSupported=PerformanceObserver.supportedEntryTypes.includes("paint"),this.fcpSupported&&(this.fcpTime=void 0,e=function(e){return n.handleWebVitals(e)},t=t||{},aa((function(){var n,r=ia(),o=Zi("FCP"),i=Ji("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-Xi(),0),o.entries.push(e),n(!0)))}))}));i&&(n=Yi(e,o,sa,t.reportAllChanges),Ki((function(r){o=Zi("FCP"),n=Yi(e,o,sa,t.reportAllChanges),Qi((function(){o.value=performance.now()-r.timeStamp,n(!0)}))})))}))),this.lcpSupported&&(this.lcpTime=void 0,la((function(e){return n.handleWebVitals(e)})))},e}(),pa="longtask",ha="fps",va=function(){function e(e,t){var n=this;this.ttiTracker={},this.ttiResolved=!1,this.startBucket=0,this.currBucket=0,this.acceptedIntervals=0,this.totalIntervals=0,this.visuallyReadyTimestamp=0,this.fpsEnabled=!1,this.COLLECTION_PERIOD=100,this.REQUIRED_ACCEPTED_INTERVALS=5,this.CHECK_PERIOD=1e3,this.TTI_RESOLVE_TIMEOUT=1e4,this.FPS_THRESHOLD=20/(1e3/this.COLLECTION_PERIOD),this.LONG_TASK_THRESHOLD=0,this.ttiIntervalHandler=function(){n.totalIntervals*n.CHECK_PERIOD>n.TTI_RESOLVE_TIMEOUT&&(n.ttiResolved=!0,n.ttiTracker={},clearInterval(n.ttiInterval));for(var e=n.computeTimeWindow(),t=n.currBucket;t<=e;t++){n.currBucket=t;var r=!0;if(n.isTTIConditionNotFulfilied(pa,t)&&(r=!1),n.fpsEnabled&&n.isTTIConditionNotFulfilied(ha,t)&&(r=!1),r){if(n.acceptedIntervals+=1,n.isTTIResolved(n.acceptedIntervals)){n.ttiResolved=!0,clearInterval(n.ttiInterval),n.onReport({name:"TTI",value:n.computeTTIValue()});break}}else n.acceptedIntervals=0}n.totalIntervals+=1},this.longTaskEventListener=function(){var e=new PerformanceObserver((function(t){n.ttiResolved&&e.disconnect(),t.getEntries().filter((function(e){return e.entryType===pa})).forEach((function(e){if(e.startTime&&e.duration){var t=e.startTime+e.duration;n.addToTracker(pa,n.computeTimeWindow(e.startTime),1),n.addToTracker(pa,n.computeTimeWindow(t),1)}}))}));e.observe({type:pa})},this.framesPerSecondListener=function(){var e=function(){n.addToTracker(ha,n.computeTimeWindow(),1),window.requestAnimationFrame(e)};n.ttiResolved||window.requestAnimationFrame(e)},this.fpsEnabled=e,this.initListeners(),this.onReport=t}return e.prototype.startTtiSearch=function(e){this.startBucket=Math.max(this.computeTimeWindow(e),0),this.currBucket=this.startBucket,this.acceptedIntervals=0,this.totalIntervals=0,this.visuallyReadyTimestamp=e,this.ttiInterval=setInterval(this.ttiIntervalHandler,this.CHECK_PERIOD)},e.prototype.isTTIResolved=function(e){return e>=this.REQUIRED_ACCEPTED_INTERVALS},e.prototype.computeTTIValue=function(){var e=(this.currBucket-this.REQUIRED_ACCEPTED_INTERVALS-this.startBucket+1)*this.COLLECTION_PERIOD;return this.ttiTracker={},this.visuallyReadyTimestamp+e},e.prototype.isTTIConditionNotFulfilied=function(e,t){return e===pa?void 0!==this.ttiTracker[pa]&&void 0!==this.ttiTracker[pa][t]&&this.ttiTracker[pa][t]>this.LONG_TASK_THRESHOLD:e===ha?this.fpsEnabled&&void 0!==this.ttiTracker[ha]&&void 0!==this.ttiTracker[ha][t]&&this.ttiTracker[ha][t]<this.FPS_THRESHOLD:void 0},e.prototype.initListeners=function(){this.longTaskEventListener(),this.fpsEnabled&&void 0!==window.requestAnimationFrame&&this.framesPerSecondListener()},e.prototype.computeTimeWindow=function(e){return void 0===e?Math.floor(performance.now()/this.COLLECTION_PERIOD):Math.floor(e/this.COLLECTION_PERIOD)},e.prototype.addToTracker=function(e,t,n){this.ttiTracker[e]||(this.ttiTracker[e]=[]),this.ttiTracker[e][t]||(this.ttiTracker[e][t]=0),this.ttiTracker[e][t]+=n},e.prototype.cleanupQuietWindowSearch=function(){this.ttiResolved=!0,this.ttiTracker={}},e}();function ya(e,t){PerformanceObserver.supportedEntryTypes.includes("longtask")&&new ma(e,t)}var ma=function(e,t){this.onReport=e,this.quietWindowSearch=new va(t.fpsEnabled,this.onReport),this.visuallyReadySearch=new fa(this.quietWindowSearch)},ga=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this,"time-to-interactive")||this;return n.handleTTI=function(e){var t={version:"1.0.0",value:Math.round(e.value)};n.context.record(qt,t)},n.fpsEnabled=t,n}ga(t,e),t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.configure=function(){},t.prototype.onload=function(){ya(this.handleTTI,{fpsEnabled:this.fpsEnabled})}}(Bt);try{window.awsRum=new $i(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch(e){}}();
2
+ //# sourceMappingURL=awsRum.min.js.map