(self.webpackChunkhome=self.webpackChunkhome||[]).push([[636],{4647:function(t,e,n){"use strict";var r=n(4994);Object.defineProperty(e,"__esModule",{value:!0}),e.BroadcastChannel=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(e){var n=function(n){if(n.key===t){var r,o=JSON.parse(null!==(r=n.newValue)&&void 0!==r?r:"{}");(null==o?void 0:o.event)==="session"&&null!=o&&o.data&&e(o)}};return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}},post:function(e){if("undefined"!=typeof window)try{localStorage.setItem(t,JSON.stringify(u(u({},e),{},{timestamp:d()})))}catch(t){}}}},e.apiBaseUrl=l,e.fetchData=function(t,e,n){return c.apply(this,arguments)},e.now=d;var o=r(n(4756)),i=r(n(3693)),a=r(n(9293));function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e3&&void 0!==m[3]?m[3]:{}).ctx,c=void 0===(s=i.req)?null==a?void 0:a.req:s,d="".concat(l(n),"/").concat(e),t.prev=2,p={headers:u({"Content-Type":"application/json"},null!=c&&null!==(f=c.headers)&&void 0!==f&&f.cookie?{cookie:c.headers.cookie}:{})},null!=c&&c.body&&(p.body=JSON.stringify(c.body),p.method="POST"),t.next=7,fetch(d,p);case 7:return v=t.sent,t.next=10,v.json();case 10:if(h=t.sent,v.ok){t.next=13;break}throw h;case 13:return t.abrupt("return",Object.keys(h).length>0?h:null);case 16:return t.prev=16,t.t0=t.catch(2),r.error("CLIENT_FETCH_ERROR",{error:t.t0,url:d}),t.abrupt("return",null);case 20:case"end":return t.stop()}},t,null,[[2,16]])}))).apply(this,arguments)}function l(t){return"undefined"==typeof window?"".concat(t.baseUrlServer).concat(t.basePathServer):t.basePath}function d(){return Math.floor(Date.now()/1e3)}},3370:function(t,e,n){"use strict";var r=n(4994);Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedStrategy=e.UnknownError=e.OAuthCallbackError=e.MissingSecret=e.MissingAuthorize=e.MissingAdapterMethods=e.MissingAdapter=e.MissingAPIRoute=e.InvalidCallbackUrl=e.AccountNotLinkedError=void 0,e.adapterErrorHandler=function(t,e){if(t)return Object.keys(t).reduce(function(n,r){return n[r]=(0,i.default)(o.default.mark(function n(){var i,a,s,u,c,l=arguments;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:for(n.prev=0,a=Array(i=l.length),s=0;s0&&void 0!==r[0]?r[0]:{}).event,t.prev=1,!((n="storage"===e)||void 0===C._session)){t.next=10;break}return C._lastSync=(0,y.now)(),t.next=7,O({broadcast:!n});case 7:return C._session=t.sent,w(C._session),t.abrupt("return");case 10:if(!(!e||null===C._session||(0,y.now)()0&&void 0!==arguments[0]?arguments[0]:l,e=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return t;var n={},r=function(t){var r;n[t]=(r=(0,a.default)(o.default.mark(function n(r,a){var s,d;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(l[t](r,a),"error"===t&&(a=c(a)),a.client=!0,s="".concat(e,"/_log"),d=new URLSearchParams(function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e||(l.debug=function(){}),t.error&&(l.error=t.error),t.warn&&(l.warn=t.warn),t.debug&&(l.debug=t.debug)};var o=r(n(4756)),i=r(n(3693)),a=r(n(9293)),s=n(3370);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){var e;return t instanceof Error&&!(t instanceof s.UnknownError)?{message:t.message,stack:t.stack,name:t.name}:(null!=t&&t.error&&(t.error=c(t.error),t.message=null!==(e=t.message)&&void 0!==e?e:t.error.message),t)}var l={error:function(t,e){e=c(e),console.error("[next-auth][error][".concat(t,"]"),"\nhttps://next-auth.js.org/errors#".concat(t.toLowerCase()),e.message,e)},warn:function(t){console.warn("[next-auth][warn][".concat(t,"]"),"\nhttps://next-auth.js.org/warnings#".concat(t.toLowerCase()))},debug:function(t,e){console.log("[next-auth][debug][".concat(t,"]"),e)}};e.default=l},3004:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e;let n=new URL("http://localhost:3000/api/auth");t&&!t.startsWith("http")&&(t=`https://${t}`);let r=new URL(null!==(e=t)&&void 0!==e?e:n),o=("/"===r.pathname?n.pathname:r.pathname).replace(/\/$/,""),i=`${r.origin}${o}`;return{origin:r.origin,host:r.host,path:o,base:i,toString:()=>i}}},5083:function(t,e,n){t.exports=n(7834)},8424:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(8317)}])},2527:function(t,e,n){"use strict";n.d(e,{$:function(){return r}});let r={name:"homepage",bucket:"https://home.ripley.cl/rdex",country:"cl",gtmId:"GTM-PWQK23DH",featureFlags:{adminEnabled:!1,fallback:{isActive:!1}},urls:{ripleyURL:"https://simple.ripley.cl",cookiesDisclaimerURL:"https://ripley.zendesk.com/hc/es-419/articles/360057931154-Pol%C3%ADtica-sobre-el-uso-de-cookies-en-Ripley-com"}}},8317:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return ih}});var r,o,i,a,s,u,c,l,d,f,p,v,h,m,g,y,_,b,w,S,x,k,C,E,T,A,O,R,I,N=n(8775),L=n(9958),M=n.n(L),P=n(2527);let D={LOADING:"loading"};var U=n(5394),j=n(297),z=n(3884);function B(t){let{children:e}=t,{adminEnabled:n}=P.$.featureFlags,{push:r}=(0,j.useRouter)(),o=async()=>await r("/api/auth/signin"),{status:i}=(0,U.useSession)({required:n,async onUnauthenticated(){if(n)return await o()}});return n&&i===D.LOADING?(0,N.jsx)(N.Fragment,{}):(0,N.jsx)(N.Fragment,{children:e})}var V=n(8381),F=n.n(V),q=function(){let t="Mejores Ofertas en Compras Online | Ripley.com",e="Haz tus compras online en Ripley y encuentra las mejores ofertas en tecnolog\xeda, muebles, moda, electrohogar, telefon\xeda y deportes.";return"pe"===P.$.country.toLowerCase()&&(t="Mejores Ofertas en Compras Online | Ripley.com",e="Haz tus compras online en Ripley y encuentra las mejores ofertas en tecnolog\xeda, muebles, moda, electrohogar, telefon\xeda y deportes."),(0,N.jsxs)(F(),{children:[(0,N.jsx)("title",{children:t}),(0,N.jsx)("meta",{name:"description",content:e}),(0,N.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"}),(0,N.jsx)("meta",{httpEquiv:"x-ua-compatible",content:"ie=edge"}),(0,N.jsx)("meta",{name:"theme-color",content:"#3a3a3a"}),(0,N.jsx)("meta",{httpEquiv:"Accept-CH",content:"DPR,Save-Data,Width"}),(0,N.jsx)("script",{type:"application/ld+json",children:'{\n "@context": "https://schema.org",\n "@type": "Event",\n "name": "Cyber Wow 2025 en Per\xfa",\n "description": "El Cyber Wow es uno de los eventos online e-commerce m\xe1s grandes que se realiza en Per\xfa. En Ripley Per\xfa tambi\xe9n nos sumamos a este importante evento lanzando las mejores ofertas Cyber Wow en miles de productos con beneficios exclusivos tanto en web y tambi\xe9n desde la Ripley App.",\n "startDate": "2025-04-07",\n "endDate": "2025-04-10",\n "location": {\n "@type": "Place",\n "name": "Per\xfa",\n "address": {\n "@type": "PostalAddress",\n "addressCountry": "PE"\n }\n }\n }'})]})};function H(t){let{children:e,session:n}=t;return(0,N.jsx)(U.SessionProvider,{session:n,children:e})}var G=n(5083),W=n.n(G),K=n(3943),J=n.n(K);n(5673);var X=n(9325),$=n.n(X),Y=t=>{let{id:e}=t;return(0,N.jsx)($(),{id:"gtm-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n (function(w, d, s, l, i) {\n w[l] = w[l] || [];\n w[l].push({\n 'gtm.start': new Date().getTime(),\n event: 'gtm.js'\n });\n var f = d.getElementsByTagName(s)[0],\n j = d.createElement(s),\n dl = l != 'dataLayer' ? '&l=' + l : '';\n j.async = true;\n j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;\n f.parentNode.insertBefore(j, f);\n })(window, document, 'script', 'dataLayer', '".concat(e,"');\n ")}})},Z=()=>(0,N.jsx)($(),{id:"fbq-script","data-testid":"fbq-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n !function(f,b,e,v,n,t,s){\n if(f.fbq)return;\n n=f.fbq=function(){\n n.callMethod ? n.callMethod.apply(n,arguments) : n.queue.push(arguments)\n };\n if(!f._fbq)f._fbq=n;\n n.push=n;\n n.loaded=!0;\n n.version='2.0';\n n.queue=[];\n t=b.createElement(e);\n t.async=!0;\n t.src=v;\n s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)\n }(window, document, 'script', '//connect.facebook.net/en_US/fbevents.js');\n fbq('init', '833390700036828');\n fbq('track', \"PageView\");\n "}}),Q=t=>{let{country:e}=t,n="cl"===e.toLowerCase()?"Chile":"Per\xfa",r="cl"===e.toLowerCase()?"https://simple.ripley.cl/":"https://simple.ripley.com.pe/",o="cl"===e.toLowerCase()?"cl":".com.pe";return(0,N.jsx)($(),{id:"organization-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"Schema.org - Schema.org ","@type":"WebSite",name:"Ripley ".concat(n),url:r,potentialAction:{"@type":"SearchAction",target:"B\xfasqueda - searchtermstring - Ripley.".concat(o),"query-input":"required name=search_term_string"}})}})},tt=t=>{let{country:e}=t,n="cl"===e.toLowerCase()?"Chile":"Per\xfa",r="cl"===e.toLowerCase()?"https://simple.ripley.cl/":"https://simple.ripley.com.pe/",o="cl"===e.toLowerCase()?"cl":".com.pe",i="cl"===e.toLowerCase()?"https://www.instagram.com/ripleychile":"https://www.instagram.com/ripleyperu",a="cl"===e.toLowerCase()?"https://www.facebook.com/ripleychile":"https://www.facebook.com/ripleyperu",s="cl"===e.toLowerCase()?"https://www.x.com/RipleyChile":"https://www.x.com/RipleyenPeru",u="cl"===e.toLowerCase()?"https://www.youtube.com/ripleychile":"https://www.youtube.com/TiendasRipleyPeru";return(0,N.jsx)($(),{id:"website-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"Schema.org - Schema.org ","@type":"Corporation",name:"Ripley ".concat(n),url:r,logo:"https://home.ripley.".concat(o,"/front/public/images/r-com.png"),sameAs:[i,s,a,u,"https://www.linkedin.com/company/ripley",r]})}})},te={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},tn=console,tr={};Object.keys(te).forEach(function(t){tr[t]=tn[t]});var to="Datadog Browser SDK:",ti={debug:tr.debug.bind(tn,to),log:tr.log.bind(tn,to),info:tr.info.bind(tn,to),warn:tr.warn.bind(tn,to),error:tr.error.bind(tn,to)},ta="https://docs.datadoghq.com",ts="".concat(ta,"/real_user_monitoring/browser/troubleshooting"),tu="More details:";function tc(t,e){return function(){for(var n=[],r=0;r"}finally{r(),o(),i(),a()}}function tM(t){var e=t.toJSON;return e?(delete t.toJSON,function(){t.toJSON=e}):tN}function tP(t){return tS({},t)}function tD(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function tU(t){return 0===Object.keys(t).length}function tj(t){var e=0,n=tI(function(n){e=tC(tL(n)),t()},200),r=n.throttled,o=n.cancel,i=function(){o(),e=0};return{updateCustomerData:function(t){tU(t)?i():r(t)},resetCustomerData:i,getBytesCount:function(){return e},stop:function(){o()}}}function tz(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function tB(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var o=Array.isArray(t)?t:[],i=0;ie){tG(e,"discarded",t);return}for(;o.length>0&&ue){tG(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f=tH(c.source[d],c.path,d,o,i);if(void 0!==f&&(u+=JSON.stringify(f).length+l+d.length+3,l=1),u>e){tG(e,"truncated",t);break}c.target[d]=f}}return n(),r(),a}function tH(t,e,n,r,o){var i=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!i||"object"!=typeof i)return"bigint"==typeof i?"[BigInt] ".concat(i.toString()):"function"==typeof i?"[Function] ".concat(i.name||"unknown"):"symbol"==typeof i?"[Symbol] ".concat(i.description||i.toString()):i;var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(o.has(t))return"[Reference seen at ".concat(o.get(t),"]");var s=void 0!==n?"".concat(e,".").concat(n):e,u=Array.isArray(i)?[]:{};return o.set(t,s),r.push({source:i,target:u,path:s}),u}function tG(t,e,n){ti.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var tW=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){e.observers=e.observers.filter(function(e){return t!==e}),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},t.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},t}();function tK(){for(var t=[],e=0;e eval")>-1,r=t9.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||"?",line:e[4]?+e[4]:void 0,url:e[3]}}}(t);n&&(!n.func&&n.line&&(n.func="?"),e.push(n))}),{message:et(t,"message"),name:et(t,"name"),stack:e}}var t2="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",t3="(?::(\\d+))",t5=RegExp("^\\s*at (.*?) ?\\(".concat(t2).concat(t3,"?").concat(t3,"?\\)?\\s*$"),"i"),t6=new RegExp("\\((\\S*)".concat(t3).concat(t3,"\\)")),t4=RegExp("^\\s*at ?".concat(t2).concat(t3,"?").concat(t3,"??\\s*$"),"i"),t8=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,t7=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,t9=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function et(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var ee=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function en(){var t,e=Error();if(!e.stack)try{throw e}catch(t){}return tv(function(){var n=t1(e);n.stack=n.stack.slice(2),t=er(n)}),t}function er(t){var e=eo(t);return t.stack.forEach(function(t){var n="?"===t.func?"":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",o=t.line?":".concat(t.line):"",i=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(o).concat(i)}),e}function eo(t){return"".concat(t.name||"Error",": ").concat(t.message)}var ei="No stack, consider using an instance of Error";function ea(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,o=t.startClocks,i=t.nonErrorPrefix,a=t.source,s=t.handling,u=eu(n),c=(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:u?"Empty message":"".concat(i," ").concat(tL(tq(n))),l=void 0!==e&&(u||e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url))?er(e):ei,d=u?ec(n,a):void 0,f=e?e.name:void 0,p=es(n);return{startClocks:o,source:a,handling:s,handlingStack:r,originalError:n,type:f,message:c,stack:l,causes:d,fingerprint:p}}function es(t){return eu(t)&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function eu(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function ec(t,e){for(var n=t,r=[];eu(null==n?void 0:n.cause)&&r.length<10;){var o=t1(n.cause);r.push({message:n.cause.message,source:e,type:null==o?void 0:o.name,stack:o&&er(o)}),n=n.cause}return r.length?r:void 0}(r=c||(c={})).WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",r.REMOTE_CONFIGURATION="remote_configuration",r.LONG_ANIMATION_FRAME="long_animation_frame",r.ANONYMOUS_USER_TRACKING="anonymous_user_tracking",r.ACTION_NAME_MASKING="action_name_masking",r.CONSISTENT_TRACE_SAMPLING="consistent_trace_sampling",r.DELAY_VIEWPORT_COLLECTION="delay_viewport_collection";var el=new Set;function ed(t){return el.has(t)}var ef="datad0g.com",ep="datadoghq.com",ev=["ddsource","ddtags"];function eh(t){return 0!==t&&100*Math.random()<=t}function em(t,e){return+t.toFixed(e)}function eg(t){return"number"==typeof t}function ey(t){var e;return{relative:t,timeStamp:(e=eb()-performance.now())>eC()?Math.round(e+t):Math.round(eC()+t)}}function e_(t){return eg(t)?em(1e6*t,0):t}function eb(){return new Date().getTime()}function ew(){return eb()}function eS(){return performance.now()}function ex(){return{relative:eS(),timeStamp:ew()}}function ek(){return{relative:0,timeStamp:eC()}}function eC(){return void 0===l&&(l=performance.timing.navigationStart),l}function eE(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function eT(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}function eA(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function eO(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){eA(t,e)},drain:function(e){t.forEach(function(t){return t(e)}),t.length=0}}}var eR="configuration",eI="usage",eN=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],eL=["ddog-gov.com"],eM=eO(),eP=function(t){eM.add(function(){return eP(t)})};function eD(t,e){th(te.debug,t,e),eP(tS({type:"log",message:t,status:"debug"},e))}function eU(t,e){eP(tS({type:"log",status:"error"},function(t){if(eu(t)){var e=t1(t);return{error:{kind:e.name,stack:er((e.stack=e.stack.filter(function(t){return!t.url||eN.some(function(e){return tw(t.url,e)})}),e))},message:e.message}}return{error:{stack:ei},message:"".concat("Uncaught"," ").concat(tL(t))}}(t),e))}function ej(t){eP({type:eI,usage:t})}function ez(t){var e=tS({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}function eB(t,e){e.silentMultipleInit||ti.error("".concat(t," is already initialized."))}function eV(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,eV)}var eF=/([\w-]+)\s*=\s*([^;]+)/g;function eq(t,e){for(eF.lastIndex=0;;){var n=eF.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function eH(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),o=r>=55296&&r<=56319?e+1:e;return t.length<=o?t:"".concat(t.slice(0,o)).concat(n)}function eG(t,e,n){var r=t.vitalsByName,o=t.vitalsByReference;void 0===n&&(n={});var i={name:e,startClocks:ex(),context:n.context,description:n.description},a={__dd_vital_reference:!0};return r.set(e,i),o.set(a,i),a}function eW(t,e,n,r){var o,i,a,s,u,c=e.vitalsByName,l=e.vitalsByReference;void 0===r&&(r={});var d="string"==typeof n?c.get(n):l.get(n);d&&(t((o=d.startClocks,i=r,a=ex(),{name:d.name,type:"duration",startClocks:o,duration:(u=o.timeStamp,a.timeStamp-u),context:tF(d.context,i.context),description:null!==(s=i.description)&&void 0!==s?s:d.description})),"string"==typeof n?c.delete(n):l.delete(n))}function eK(){var t=tx().DatadogEventBridge;if(t)return{getCapabilities:function(){var e;return JSON.parse((null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return null===(e=t.getPrivacyLevel)||void 0===e?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){t.send(JSON.stringify({eventType:e,event:n,view:r?{id:r}:void 0}))}}}function eJ(t){var e=eK();return!!e&&tm(e.getCapabilities(),t)}function eX(t){void 0===t&&(t=null===(e=tx().location)||void 0===e?void 0:e.hostname);var e,n=eK();return!!n&&n.getAllowedWebViewHosts().some(function(e){var n,r;return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r)})}function e$(t,e,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=t[e];if("function"!=typeof i){if(!(e in t&&tw(e,"on")))return{stop:tN};i=tN}var a=!1,s=function(){if(a)return i.apply(this,arguments);var t,e=tg(arguments);tv(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:o?en():void 0}]);var r=i.apply(this,e);return t&&tv(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=i)}}}function eY(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:tN};var o=function(t,e){tT(function(){o!==tN&&n(t,e)},0)},i=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:i}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===i&&Object.defineProperty(t,e,r),o=tN}}}function eZ(t){return eQ(t,location.href).href}function eQ(t,e){var n=function(){if(void 0===d)try{var t=new e0("http://test/path");d="http://test/path"===t.href}catch(t){d=!1}return d?e0:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(tL({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw Error("Invalid URL: '".concat(t,"'"));var r=document,o=r.createElement("a");if(void 0!==e){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=e,r.head.appendChild(i),r.body.appendChild(o)}return o.href=t,o}var e0=URL;function e1(){return f||(f=new tW(function(t){if(window.fetch)return e$(window,"fetch",function(e){var n,r,o,i,a,s,u,c,l;return n=e.parameters,r=e.onPostCall,o=e.handlingStack,i=n[0],void 0===(s=(a=n[1])&&a.method)&&i instanceof Request&&(s=i.method),u=void 0!==s?String(s).toUpperCase():"GET",c=i instanceof Request?i.url:eZ(String(i)),l={state:"start",init:a,input:i,method:u,startClocks:ex(),url:c,handlingStack:o},void(t.notify(l),n[0]=l.input,n[1]=l.init,r(function(e){return function(t,e,n){function r(e){n.state="resolve",tS(n,e),t.notify(n)}e.then(tp(function(t){r({response:t,responseType:t.type,status:t.status,isAborted:!1})}),tp(function(t){var e,o;r({status:0,isAborted:(null===(o=null===(e=n.init)||void 0===e?void 0:e.signal)||void 0===o?void 0:o.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})}))}(t,e,l)}))},{computeHandlingStack:!0}).stop})),f}function e2(t,e,n,r){void 0===n&&(n=0);var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(u).concat(c)}function e3(t){return eq(document.cookie,t)}function e5(t){return p||(p=function(t){var e=new Map;for(eF.lastIndex=0;;){var n=eF.exec(t);if(n)e.set(n[1],n[2]);else break}return e}(document.cookie)),p.get(t)}function e6(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||e5("datadog-synthetics-injects-rum"))}function e4(){var t,e,n;return null!=h?h:(void 0===t&&(t=window),n=t.navigator.userAgent,h=t.chrome||/HeadlessChrome/.test(n)?1:(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:t.document.documentMode?0:3)}var e8="_dd_s",e7={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},e9=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function nt(t){var e={isExpired:"1"};return ed(c.ANONYMOUS_USER_TRACKING)&&((null==t?void 0:t.anonymousId)?e.anonymousId=null==t?void 0:t.anonymousId:e.anonymousId=Math.floor(9007199254740992*Math.random()).toString(36)),e}function ne(t){return void 0!==t.isExpired||!((void 0===t.created||eb()-Number(t.created)<144e5)&&(void 0===t.expire||eb()=100){nv(e);return}var l=c();if(i&&(l.lock||(o=eV(),u(l.session),(l=c()).lock!==o))){np(t,e,n);return}var d=t.process(l.session);if(i&&(l=c()).lock!==o){np(t,e,n);return}if(d&&(ne(d)?s(d):(nn(d),i?u(d):a(d))),i&&!(d&&ne(d))){if((l=c()).lock!==o){np(t,e,n);return}a(l.session),d=l.session}null===(r=t.after)||void 0===r||r.call(t,d||l.session),nv(e)}function np(t,e,n){tT(function(){nf(t,e,n+1)},10)}function nv(t){m=void 0;var e=nd.shift();e&&nf(e,t)}function nh(t,e,n){var r=function(t,e){var n="/api/v2/".concat(e),r=t.proxy;if("string"==typeof r){var o=eZ(r);return function(t){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}if("function"==typeof r)return function(t){return r({path:n,parameters:t})};var i=function(t,e){var n=e.site,r=void 0===n?ep:n,o=e.internalAnalyticsSubdomain;if("logs"===t&&e.usePciIntake&&r===ep)return"pci.browser-intake-datadoghq.com";if(o&&r===ep)return"".concat(o,".").concat(ep);if("dd0g-gov.com"===r)return"http-intake.logs.".concat(r);var i=r.split("."),a=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(a)}(e,t);return function(t){return"https://".concat(i).concat(n,"?").concat(t)}}(t,e);return{build:function(o,i){var a,s,u,c,l,d;return r((a=t.clientToken,s=t.internalAnalyticsSubdomain,u=i.retry,c=i.encoding,l=["sdk_version:".concat("5.35.0"),"api:".concat(o)].concat(n),u&&l.push("retry_count:".concat(u.count),"retry_after:".concat(u.lastFailureStatus)),d=["ddsource=browser","ddtags=".concat(encodeURIComponent(l.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("5.35.0")),"dd-evp-origin=browser","dd-request-id=".concat(eV())],c&&d.push("dd-evp-encoding=".concat(c)),"rum"===e&&d.push("batch_time=".concat(ew())),s&&d.reverse(),d.join("&")))},urlPrefix:r(""),trackType:e}}function nm(t,e){var n=200-t.length-1;(e.length>n||function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(t){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e))&&ti.warn("".concat(t," value doesn't meet tag requirements and will be sanitized. ").concat(tu," ").concat(ta,"/getting_started/tagging/#defining-tags"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}var ng={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},ny={ALL:"all",SAMPLED:"sampled"};function n_(t,e){return null==t||"string"==typeof t||(ti.error("".concat(e," must be defined as a string")),!1)}function nb(t,e){return!!(void 0===t||eg(t)&&t>=0&&t<=100)||(ti.error("".concat(e," Sample Rate should be a number between 0 and 100")),!1)}function nw(t){var e=tz(t);return"string"===e||"function"===e||t instanceof RegExp}function nS(t,e,n){return void 0===n&&(n=!1),t.some(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?tw(e,t):t===e}catch(t){ti.error(t)}return!1})}function nx(){return window.crypto||window.msCrypto}function nk(t){return g||(g=ed(c.CONSISTENT_TRACE_SAMPLING)&&function(){try{return crypto.getRandomValues(new BigUint64Array(1)),!0}catch(t){return!1}}()?nC:nE),g(t)}function nC(t){var e=crypto.getRandomValues(new BigUint64Array(1))[0];return 63===t&&(e>>=BigInt("1")),e}function nE(t){var e=nx().getRandomValues(new Uint32Array(2));return 63===t&&(e[e.length-1]>>>=1),{toString:function(t){void 0===t&&(t=10);var n=e[1],r=e[0],o="";do{var i=n%t*4294967296+r;n=Math.floor(n/t),r=Math.floor(i/t),o=(i%t).toString(t)+o}while(n||r);return o}}}function nT(t){var e=t.toString(16);return Array(17-e.length).join("0")+e}function nA(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function nO(t,e,n,r){if(void 0!==nx()&&n.findTrackedSession()){var o,i,a,s,u,c=ty(t.allowedTracingUrls,function(t){return nS([t.match],e.url,!0)});if(c){var l=nk(64);e.traceSampled=function(t,e){if(100===e)return!0;if(0===e)return!1;if("bigint"!=typeof t)return eh(e);var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(l,t.traceSampleRate),(e.traceSampled||t.traceContextInjection===ny.ALL)&&(e.traceId=l,e.spanId=nk(63),r((o=e.traceId,i=e.spanId,a=e.traceSampled,s=c.propagatorTypes,u={},s.forEach(function(t){switch(t){case"datadog":tS(u,{"x-datadog-origin":"rum","x-datadog-parent-id":i.toString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":o.toString()});break;case"tracecontext":tS(u,{traceparent:"00-0000000000000000".concat(nT(o),"-").concat(nT(i),"-0").concat(a?"1":"0")});break;case"b3":tS(u,{b3:"".concat(nT(o),"-").concat(nT(i),"-").concat(a?"1":"0")});break;case"b3multi":tS(u,{"X-B3-TraceId":nT(o),"X-B3-SpanId":nT(i),"X-B3-Sampled":a?"1":"0"})}}),u)))}}}var nR=["tracecontext","datadog"];function nI(){ti.error("Error fetching the remote configuration.")}var nN={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function nL(){var t,e=window;if(e.Zone&&(t=tE(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=tE(new e.MutationObserver(tN),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}var nM={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",SOURCE:"source",REPORT:"report"};function nP(t,e,n){var r=0,o=!1;return{isLimitReached:function(){if(0===r&&tT(function(){r=0},6e4),(r+=1)<=e||o)return o=!1,!1;if(r===e+1){o=!0;try{n({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:nM.AGENT,startClocks:ex()})}finally{o=!1}}return!0}}}function nD(t,e,n){for(var r=t,o=e.split("."),i=0;i0&&r[r.length-1].endTime=n&&r.pop(),r.unshift(o),o},find:function(t,e){void 0===t&&(t=nF),void 0===e&&(e={returnInactive:!1});for(var n=0,o=r;nt[n])return!1;return!0}function n$(t){return t.duration>=0}function nY(t){var e=nX(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!(t.redirectEnd>t.startTime)||nX(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function nZ(t,e,n){if(t<=e&&e<=n)return{duration:e_(n-e),start:e_(e-t)}}function nQ(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}function n0(t){return""===t.deliveryType?"other":t.deliveryType}function n1(t){return t&&!ev.every(function(e){return tm(t,e)})}var n2=/data:(.+)?(;base64)?,/g;function n3(t){if(t.length<=24e3);else if("data:"===t.substring(0,5))return t=t.substring(0,24e3),!0;return!1}function n5(t){return"".concat(t.match(n2)[0],"[...]")}var n6=1;function n4(){var t=n6;return n6+=1,t}function n8(t){return eg(t)&&t<0?void 0:t}function n7(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,o=void 0===r?tN:r,i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(12,function(t){var e;if("view"!==t.type&&"vital"!==t.type&&n(t))switch(t.type){case"error":i.errorCount+=1,o();break;case"action":i.actionCount+=1,t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),o();break;case"long_task":i.longTaskCount+=1,o();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(i.resourceCount+=1,o())}});return{stop:function(){a.unsubscribe()},eventCounts:i}}function n9(t,e){return new tW(function(n){if(window.PerformanceObserver){var r,o,i=function(t){var e=t.filter(function(t){return!(t.entryType===b.RESOURCE&&(!n1(t.name)||!n$(t)))});e.length>0&&n.notify(e)},a=!0,s=new PerformanceObserver(tp(function(t){a?r=tT(function(){return i(t.getEntries())}):i(t.getEntries())}));try{s.observe(e)}catch(t){if(tm([b.RESOURCE,b.NAVIGATION,b.LONG_TASK,b.PAINT],e.type)){e.buffered&&(r=tT(function(){return i(performance.getEntriesByType(e.type))}));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}return a=!1,!w&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(w=t$(t,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),rt(b.FIRST_INPUT)||e.type!==b.FIRST_INPUT||(o=function(t,e){var n=eb(),r=!1,o=tY(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(e){if(e.cancelable){var n={entryType:"first-input",processingStart:eS(),processingEnd:eS(),startTime:e.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};"pointerdown"===e.type?tY(t,window,["pointerup","pointercancel"],function(t){"pointerup"===t.type&&i(n)},{once:!0}):i(n)}},{passive:!0,capture:!0}).stop;return{stop:o};function i(t){if(!r){r=!0,o();var i=t.processingStart-t.startTime;i>=0&&i0})}})}function rr(t,e){return nS(t.excludedActivityUrls,e)}function ro(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function ri(t,e){return t.matches?t.matches(e):!!t.msMatchesSelector&&t.msMatchesSelector(e)}function ra(t){if(t.parentElement)return t.parentElement;for(;t.parentNode;){if(t.parentNode.nodeType===Node.ELEMENT_NODE)return t.parentNode;t=t.parentNode}return null}(o=b||(b={})).EVENT="event",o.FIRST_INPUT="first-input",o.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",o.LAYOUT_SHIFT="layout-shift",o.LONG_TASK="longtask",o.LONG_ANIMATION_FRAME="long-animation-frame",o.NAVIGATION="navigation",o.PAINT="paint",o.RESOURCE="resource";var rs=function(){function t(t){var e=this;this.map=new WeakMap,t&&t.forEach(function(t){return e.map.set(t,1)})}return t.prototype.add=function(t){return this.map.set(t,1),this},t.prototype.delete=function(t){return this.map.delete(t)},t.prototype.has=function(t){return this.map.has(t)},t}();function ru(t){return t.nodeType===Node.TEXT_NODE}function rc(t){return t.nodeType===Node.ELEMENT_NODE}function rl(t){return rc(t)&&!!t.shadowRoot}function rd(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&rc(t.host)}function rf(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;rl(t)&&e(t.shadowRoot)}function rp(t){return rd(t)?t.host:t.parentNode}var rv={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:ng.ALLOW,MASK:ng.MASK,MASK_USER_INPUT:ng.MASK_USER_INPUT},rh="data-dd-privacy",rm="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",rg={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function ry(t,e,n){if(n&&n.has(t))return n.get(t);var r=rp(t),o=r?ry(r,e,n):e,i=r_(rb(t),o);return n&&n.set(t,i),i}function r_(t,e){switch(e){case rv.HIDDEN:case rv.IGNORE:return e}switch(t){case rv.ALLOW:case rv.MASK:case rv.MASK_USER_INPUT:case rv.HIDDEN:case rv.IGNORE:return t;default:return e}}function rb(t){if(rc(t)){if("BASE"===t.tagName)return rv.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return rv.MASK;var e=t.getAttribute("autocomplete");if(e&&(e.startsWith("cc-")||e.endsWith("-password")))return rv.MASK}return ri(t,rk(rv.HIDDEN))?rv.HIDDEN:ri(t,rk(rv.MASK))?rv.MASK:ri(t,rk(rv.MASK_USER_INPUT))?rv.MASK_USER_INPUT:ri(t,rk(rv.ALLOW))?rv.ALLOW:!function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=o("rel");return/preload|prefetch/i.test(e)&&"script"===o("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=o("name"),e=o("rel"),r=o("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function o(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?void 0:rv.IGNORE}}function rw(t,e){switch(e){case rv.MASK:case rv.HIDDEN:case rv.IGNORE:return!0;case rv.MASK_USER_INPUT:return ru(t)?rS(t.parentNode):rS(t);default:return!1}}function rS(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!rg[t.tagName]}function rx(t,e,n){var r,o=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,i=t.textContent||"";if(!e||i.trim()){if("SCRIPT"===o)i="***";else if(n===rv.HIDDEN)i="***";else if(rw(t,n)){if("DATALIST"===o||"SELECT"===o||"OPTGROUP"===o){if(!i.trim())return}else i="OPTION"===o?"***":i.replace(/\S/g,"x")}return i}}function rk(t){return"[".concat(rh,'="').concat(t,'"], .').concat("dd-privacy-").concat(t)}var rC="data-dd-action-name";function rE(t,e){if(void 0===x&&(x="closest"in HTMLElement.prototype),x)n=t.closest("[".concat(e,"]"));else for(var n,r=t;r;){if(r.hasAttribute(e)){n=r;break}r=ra(r)}if(n)return rI(rR(n.getAttribute(e).trim()))}var rT=[function(t,e,n){if(void 0===S&&(S="labels"in HTMLInputElement.prototype),S){if("labels"in t&&t.labels&&t.labels.length>0)return rL(t.labels[0],e)}else if(t.id){var r=t.ownerDocument&&ty(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return r&&rL(r,e,n)}},function(t){if("INPUT"===t.nodeName){var e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return{name:t.value,nameSource:"text_content"}}},function(t,e,n){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return rL(t,e,n)},function(t){return rN(t,"aria-label")},function(t,e,n){var r=t.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(function(e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}).filter(function(t){return!!t}).map(function(t){return rM(t,e,n)}).join(" "),nameSource:"text_content"}},function(t){return rN(t,"alt")},function(t){return rN(t,"name")},function(t){return rN(t,"title")},function(t){return rN(t,"placeholder")},function(t,e){if("options"in t&&t.options.length>0)return rL(t.options[0],e)}],rA=[function(t,e,n){return rL(t,e,n)}];function rO(t,e,n,r){for(var o=t,i=0;i<=10&&o&&"BODY"!==o.nodeName&&"HTML"!==o.nodeName&&"HEAD"!==o.nodeName;){for(var a=0;a100?"".concat(eH(t,100)," [...]"):t}function rN(t,e){return{name:t.getAttribute(e)||"",nameSource:"standard_attribute"}}function rL(t,e,n){return{name:rM(t,e,n)||"",nameSource:"text_content"}}function rM(t,e,n){if(!t.isContentEditable){if("innerText"in t){var r=t.innerText,o=function(e){for(var n=t.querySelectorAll(e),o=0;o0&&(r=r.replace(a,""))}}};return 0!==e4()||o("script, style"),o("[".concat(rC,"]")),e&&o("[".concat(e,"]")),n&&o("".concat(rk(rv.HIDDEN),", ").concat(rk(rv.MASK))),r}return t.textContent}}var rP=[rC,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],rD=[rB,function(t){if(t.id&&!rz(t.id))return"#".concat(ro(t.id))}],rU=[rB,function(t){if("BODY"!==t.tagName)for(var e=function(t){if(t.classList)return t.classList;var e=(t.getAttribute("class")||"").trim();return e?e.split(/\s+/):[]}(t),n=0;n").concat(e):t}function rG(){var t=window.getSelection();return!t||t.isCollapsed}function rW(t){return t.target instanceof Element&&!1!==t.isPrimary}function rK(t){return!t.hasPageActivity&&!t.getUserActivity().input&&!t.getUserActivity().scroll&&!ri(t.event.target,'input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}var rJ=new Map;function rX(t,e){rJ.set(t,e),rJ.forEach(function(t,e){eS()-e>1e4&&rJ.delete(e)})}function r$(t,e){var n=rY(t)?{action:{id:t.id,loading_time:n8(e_(t.duration)),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position,name_source:ed(c.ACTION_NAME_MASKING)?t.nameSource:void 0}}}:void 0,r=rY(t)?void 0:t.context,o=tF({action:{id:eV(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},n),i=rY(t)?{events:t.events}:{};return!rY(t)&&t.handlingStack&&(i.handlingStack=t.handlingStack),{customerContext:r,rawRumEvent:o,startTime:t.startClocks.relative,domainContext:i}}function rY(t){return"custom"!==t.type}var rZ={},rQ="csp_violation";function r0(t){return tS({startClocks:ex(),source:nM.REPORT,handling:"unhandled"},t)}function r1(t,e,n,r,o){return n?er({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}function r2(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n,r,o=window.requestIdleCallback(tp(t),e);return function(){return window.cancelIdleCallback(o)}}return n=eb(),r=tT(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(eb()-n))}})},0),function(){return tA(r)}}var r3=new rs;function r5(t){return t.startTime+t.duration}function r6(t,e,n){return document.readyState===e||"complete"===document.readyState?(n(),{stop:tN}):t$(t,window,"complete"===e?"load":"DOMContentLoaded",n,{once:!0})}function r4(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function r8(t){if(t&&t.nodeType===Node.COMMENT_NODE){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function r7(){if(rt(b.NAVIGATION)){var t=performance.getEntriesByType(b.NAVIGATION)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(eg(e[n])){var r=e[n];t[n]=0===r?0:r-eC()}return t}(),n=tS({entryType:b.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:function(){return tS({},n,{toJSON:void 0})}},e);return n}function r9(t,e){r6(t,"interactive",function(){var t=tS(r7().toJSON(),{entryType:b.RESOURCE,initiatorType:nK,traceId:function(t){var e,n,r=(e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),r4(e&&e.content,n&&n.content)||function(t){var e=function(t){for(var e=0;e=0;e-=1){var r=t.body.childNodes[e],n=r8(r);if(n)return n;if(!ru(r))break}}(t);if(e)return r4(eq(e,"trace-id"),eq(e,"trace-time"))}(t));if(!(!r||r.traceTime<=eb()-12e4))return r.traceId}(document),toJSON:function(){return tS({},t,{toJSON:void 0})}});e(t)})}function ot(t,e){var n=ey(t.startTime),r=function(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,span_id:nk(63).toString(),rule_psr:e.rulePsr}}}(t,e);if(e.trackResources||r){var o,i=function(t){var e,n=t.name;if(!function(t){try{return!!eQ(t)}catch(t){return!1}}(n))return eD('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var r="/"===(e=eQ(n).pathname)[0]?e:"/".concat(e),o=0;o=o){ti.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(o,"KB. ").concat(tu," ").concat(ts,"/#technical-limitations"));return}void 0!==n&&void 0!==i[n]&&(a=i[n],delete i[n],s=e.estimateEncodedBytesCount(a),r.notifyAfterRemoveMessage(s)),r.notifyBeforeAddMessage(c),void 0!==n?(i[n]=u,r.notifyAfterAddMessage()):e.write(e.isEmpty?u:"\n".concat(u),function(t){r.notifyAfterAddMessage(t-c)})}return{flushController:r,add:s,upsert:s,stop:a.unsubscribe}}function oh(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}function om(t,e,n,r,o){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?og(t,e,n,{onSuccess:function(){return oy(0,e,n,r,o)},onFailure:function(){e.queuedPayloads.enqueue(t),function t(e,n,r,o){2===e.transportStatus&&tT(function(){og(e.queuedPayloads.first(),e,n,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,oy(1,e,n,r,o)},onFailure:function(){e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),t(e,n,r,o)}})},e.currentBackoffTime)}(e,n,r,o)}}):e.queuedPayloads.enqueue(t)}function og(t,e,n,r){var o=r.onSuccess,i=r.onFailure;e.bandwidthMonitor.add(t),n(t,function(n){e.bandwidthMonitor.remove(t),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||n.status>=500)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},i()):(e.transportStatus=0,o())})}function oy(t,e,n,r,o){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:nM.AGENT,startClocks:ex()}),e.queueFullReported=!0);var i=e.queuedPayloads;for(e.queuedPayloads=o_();i.size()>0;)om(i.dequeue(),e,n,r,o)}function o_(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=3145728}}}function ob(t,e,n){var r={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:o_(),queueFullReported:!1},o=function(n,r){(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}})()&&n.bytesCount10&&function(){if(R){if(R.keys){var t=R.keys().next().value;t&&R.delete(t)}else{var e=!0;R.forEach(function(t,n){e&&(R.delete(n),e=!1)})}}}()),e}var oM=new WeakMap;function oP(t){return oM.has(t)}function oD(t){return oM.get(t)}function oU(t,e){var n=t.tagName,r=t.value;if(rw(t,e)){var o=t.type;if("INPUT"===n&&("button"===o||"submit"===o||"reset"===o))return r;if(!r||"OPTION"===n)return;return"***"}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var oj=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,oz=/^[A-Za-z]+:|^\/\//,oB=/^data:.*,/i,oV=/[^a-z1-6-_]/;function oF(t){var e=t.toLowerCase().trim();return oV.test(e)?"div":e}function oq(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}var oH={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},oG={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},oW={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},oK={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},oJ={Play:0,Pause:1};function oX(t){if(void 0!==t&&0!==t.length)return t.map(function(t){return{cssRules:Array.from(t.cssRules||t.rules,function(t){return t.cssText}),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}})}function o$(t,e,n,r){if(e===rv.HIDDEN)return null;var o=t.getAttribute(n);if(e===rv.MASK&&n!==rh&&!rP.includes(n)&&n!==r.actionNameAttribute){var i=t.tagName;switch(n){case"title":case"alt":case"placeholder":return"***"}if("IMG"===i&&("src"===n||"srcset"===n)){if(t.naturalWidth>0)return oq(t.naturalWidth,t.naturalHeight);var a=t.getBoundingClientRect(),s=a.width,u=a.height;return s>0||u>0?oq(s,u):rm}if("SOURCE"===i&&("src"===n||"srcset"===n))return rm;if("A"===i&&"href"===n||o&&tw(n,"data-")||"IFRAME"===i&&"srcdoc"===n)return"***"}return o&&"string"==typeof o&&n3(o)?n5(o):o}function oY(t){var e,n,r;if(!t)return null;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,2===e4()?oZ:oQ).join(""),r=t.href,n.replace(oj,function(t,e,n,o,i,a){var s=n||i||a;if(!r||!s||oz.test(s)||oB.test(s))return t;var u=e||o||"";return"url(".concat(u).concat(function(t,e){try{return eQ(t,e).href}catch(e){return t}}(s,r)).concat(u,")")})):null}function oZ(t){return"selectorText"in t&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):oQ(t)}function oQ(t){return"styleSheet"in t&&oY(t.styleSheet)||t.cssText}function o0(t,e){var n=function(t,e){var n;switch(t.nodeType){case t.DOCUMENT_NODE:return{type:oG.Document,childNodes:o2(t,e),adoptedStyleSheets:oX(t.adoptedStyleSheets)};case t.DOCUMENT_FRAGMENT_NODE:return(n=rd(t))&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:oG.DocumentFragment,childNodes:o2(t,e),isShadowRoot:n,adoptedStyleSheets:n?oX(t.adoptedStyleSheets):void 0};case t.DOCUMENT_TYPE_NODE:return{type:oG.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=oF(t.tagName),o="svg"===t.tagName||t instanceof SVGElement||void 0,i=r_(rb(t),e.parentNodePrivacyLevel);if(i===rv.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:oG.Element,tagName:r,attributes:((n={rr_width:"".concat(s,"px"),rr_height:"".concat(u,"px")})[rh]="hidden",n),childNodes:[],isSVG:o}}if(i!==rv.IGNORE){var c=function(t,e,n){if(e===rv.HIDDEN)return{};for(var r,o,i,a={},s=oF(t.tagName),u=t.ownerDocument,c=0;c0||rl(t))&&"style"!==r&&(l=o2(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===r)?e:tS({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===r}))),{type:oG.Element,tagName:r,attributes:c,childNodes:l,isSVG:o}}}(t,e);case t.TEXT_NODE:return function(t,e){var n=rx(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0!==n)return{type:oG.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:oG.CDATA,textContent:""}}}(t,e);if(!n)return null;var r=oD(t)||o1++;return n.id=r,oM.set(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),n}var o1=1;function o2(t,e){var n=[];return rf(t,function(t){var r=o0(t,e);r&&n.push(r)}),n}function o3(t){return!!t.changedTouches}function o5(t){return!0===t.composed&&rl(t.target)?t.composedPath()[0]:t.target}var o6=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n&&(Math.abs(n.pageTop-n.offsetTop-window.scrollY)>25||Math.abs(n.pageLeft-n.offsetLeft-window.scrollX)>25?(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)):(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop))),r},o4=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function o8(t,e){return{data:tS({source:t},e),type:oH.IncrementalSnapshot,timestamp:ew()}}function o7(t){var e=o3(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var o=o6(n,r),i=o.visualViewportX,a=o.visualViewportY;n=i,r=a}if(!Number.isFinite(n)||!Number.isFinite(r)){t.isTrusted&&eD("mouse/touch event without x/y");return}return{x:n,y:r}}var o9=((I={}).pointerup=oK.MouseUp,I.mousedown=oK.MouseDown,I.click=oK.Click,I.contextmenu=oK.ContextMenu,I.dblclick=oK.DblClick,I.focus=oK.Focus,I.blur=oK.Blur,I.touchstart=oK.TouchStart,I.touchend=oK.TouchEnd,I);function it(t,e,n,r){void 0===r&&(r=document);var o=tI(function(r){var o=o5(r);if(o&&ry(o,t.defaultPrivacyLevel)!==rv.HIDDEN&&oP(o)){var i=oD(o),a=o===document?{scrollTop:ou(),scrollLeft:os()}:{scrollTop:Math.round(o.scrollTop),scrollLeft:Math.round(o.scrollLeft)};n.set(o,a),e(o8(oW.Scroll,{id:i,x:a.scrollLeft,y:a.scrollTop}))}},100),i=o.throttled,a=o.cancel,s=t$(t,r,"scroll",i,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}function ie(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(o),e}}function ir(t,e,n){void 0===n&&(n=document);var r,o=t.defaultPrivacyLevel,i=new WeakMap,a=n!==document,s=tY(t,n,a?["change"]:["input","change"],function(t){var e=o5(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)},{capture:!0,passive:!0}).stop;if(a)r=tN;else{var u=[eY(HTMLInputElement.prototype,"value",c),eY(HTMLInputElement.prototype,"checked",c),eY(HTMLSelectElement.prototype,"value",c),eY(HTMLTextAreaElement.prototype,"value",c),eY(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach(function(t){return t.stop()})}}return{stop:function(){r(),s()}};function c(t){var e,n,r,i=ry(t,o);if(i!==rv.HIDDEN){var a=t.type;if("radio"===a||"checkbox"===a){if(rw(t,i))return;r={isChecked:t.checked}}else{var s=oU(t,i);if(void 0===s)return;r={text:s}}l(t,r);var u=t.name;"radio"===a&&u&&t.checked&&(e=document.querySelectorAll('input[type="radio"][name="'.concat(ro(u),'"]')),n=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(e,n))}}function l(t,n){if(oP(t)){var r=i.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(t,n),e(o8(oW.Input,tS({id:oD(t)},n))))}}}function io(t,e,n,r){var o=nL();if(!o)return{stop:tN,flush:tN};var i=function(t){var e=tN,n=[];function r(){e(),t(n),n=[]}var o=tI(r,16,{leading:!1}),i=o.throttled,a=o.cancel;return{addMutations:function(t){0===n.length&&(e=r2(i,{timeout:100})),n.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}(function(r){!function(t,e,n,r){var o=new Map;t.filter(function(t){return"childList"===t.type}).forEach(function(t){t.removedNodes.forEach(function(t){!function t(e,n){rl(e)&&n(e.shadowRoot),rf(e,function(e){return t(e,n)})}(t,r.removeShadowRoot)})});var i=t.filter(function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!oP(e)&&!rd(e))return!1;e=rp(e)}return!0}(t.target)&&ry(t.target,n.defaultPrivacyLevel,o)!==rv.HIDDEN}),a=function(t,e,n,r){for(var o=new Set,i=new Map,a=function(t){t.addedNodes.forEach(function(t){o.add(t)}),t.removedNodes.forEach(function(e){o.has(e)||i.set(e,t.target),o.delete(e)})},s=0;s0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach(function(t){delete t.writeCallback}),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map(function(t){return delete t.writeCallback,delete t.finishCallback,t.data}).join("");return tS(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function is(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),h=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r>=7;_>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},N=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s>>8^r[255&(t^e[s])];return~t},q={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&is){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-kt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=et(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Kt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Lt(t),0===t.lookahead&&e===nt)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ot=function(t){if(!t||!t.state)return Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+yt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Zt:Wt,"[object ArrayBuffer]"===Vt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var iu={status:0};function ic(t,e,n,r){switch(void 0===r&&(r=is),0===iu.status&&function(t,e,n){void 0===n&&(n=is);try{var r=n(t),o=t$(t,r,"error",function(n){il(t,e,n)}).stop,i=t$(t,r,"message",function(n){var r,o=n.data;"errored"===o.type?il(t,e,o.error,o.streamId):"initialized"===o.type&&(r=o.version,1===iu.status&&(iu={status:3,worker:iu.worker,stop:iu.stop,version:r}))}).stop;r.postMessage({action:"init"}),tT(function(){1===iu.status&&(ti.error("".concat(e," failed to start: a timeout occurred while initializing the Worker")),iu.initializationFailureCallbacks.forEach(function(t){return t()}),iu={status:2})},3e4),iu={status:1,worker:r,stop:function(){o(),i()},initializationFailureCallbacks:[]}}catch(n){il(t,e,n)}}(t,e,r),iu.status){case 1:return iu.initializationFailureCallbacks.push(n),iu.worker;case 3:return iu.worker}}function il(t,e,n,r){if(1===iu.status||0===iu.status){var o;if(ti.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(tm(o=n.message,"Content Security Policy")||tm(o,"requires 'TrustedScriptURL'"))){var i=void 0;i=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",ti.error("".concat(i," See documentation at ").concat(ta,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else eU(n);1===iu.status&&iu.initializationFailureCallbacks.forEach(function(t){return t()}),iu={status:2}}else eU(n,{worker_version:3===iu.status&&iu.version,stream_id:r})}function id(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}var ip=function(t,e,n){void 0===n&&(n={});var r,o,i,a=function(t){void 0===t&&(t=2);var e=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==t){var o=2===t?3072:16384,i=r;e.forEach(function(t){i+=t.getBytesCount()}),i>o&&(ti.warn("Customer data exceeds the recommended ".concat(o/1024,"KiB threshold. ").concat(tu," ").concat(ts,"/#customer-data-exceeds-the-recommended-threshold-warning")),n=!0)}}return{createDetachedTracker:function(){var t=tj(function(){return r(t.getBytesCount())});return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,tj(r)),e.get(t)},setCompressionStatus:function(e){0===t&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach(function(t){return t.stop()}),e.clear()}}}(0),s=tJ(a.getOrCreateTracker(2)),u=tJ(a.getOrCreateTracker(1)),l={tryToInit:function(t){r||(r=t)},update:function(t){r=t,o.notify()},isGranted:function(){return r===tX.GRANTED},observable:o=new tW},d={vitalsByName:new Map,vitalsByReference:new WeakMap};function f(){return{context:s.getContext(),user:u.getContext(),hasReplay:!!e.isRecording()||void 0}}var p=function(t,e,n,r,o){var i,a,s,u,l=t.ignoreInitIfSyntheticsWillInjectRum,d=t.startDeflateWorker,f=eO(),p=n.observable.subscribe(v);function v(){if(s&&u&&n.isGranted()){if(p.unsubscribe(),u.trackViewsManually){if(!i)return;f.remove(i.callback),t=i.options}var t,e=o(u,a,t);f.drain(e)}}function h(t){var e,r,o,i,c,l,f,p,h,m=eX();if(m&&(t=tS({},e=t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(r=e.defaultPrivacyLevel)&&void 0!==r?r:null===(o=eK())||void 0===o?void 0:o.getPrivacyLevel()})),s=t,f={session_sample_rate:(c=i=t).sessionSampleRate,telemetry_sample_rate:c.telemetrySampleRate,telemetry_configuration_sample_rate:c.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:c.telemetryUsageSampleRate,use_before_send:!!c.beforeSend,use_cross_site_session_cookie:c.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:c.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:c.useSecureSessionCookie,use_proxy:!!c.proxy,silent_multiple_init:c.silentMultipleInit,track_session_across_subdomains:c.trackSessionAcrossSubdomains,session_persistence:c.sessionPersistence,allow_fallback_to_local_storage:!!c.allowFallbackToLocalStorage,store_contexts_across_pages:!!c.storeContextsAcrossPages,allow_untrusted_events:!!c.allowUntrustedEvents,tracking_consent:c.trackingConsent},h=tS({session_replay_sample_rate:i.sessionReplaySampleRate,start_session_replay_recording_manually:i.startSessionReplayRecordingManually,trace_sample_rate:i.traceSampleRate,trace_context_injection:i.traceContextInjection,action_name_attribute:i.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(i.allowedTracingUrls)&&i.allowedTracingUrls.length>0,selected_tracing_propagators:(p=new Set,Array.isArray(i.allowedTracingUrls)&&i.allowedTracingUrls.length>0&&i.allowedTracingUrls.forEach(function(t){nw(t)?nR.forEach(function(t){return p.add(t)}):"object"===tz(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(function(t){return p.add(t)})}),tg(p)),default_privacy_level:i.defaultPrivacyLevel,enable_privacy_for_action_name:i.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(i.excludedActivityUrls)&&i.excludedActivityUrls.length>0,use_worker_url:!!i.workerUrl,compress_intake_requests:i.compressIntakeRequests,track_views_manually:i.trackViewsManually,track_user_interactions:i.trackUserInteractions,track_resources:i.trackResources,track_long_task:i.trackLongTasks,plugins:null===(l=i.plugins)||void 0===l?void 0:l.map(function(t){var e;return tS({name:t.name},null===(e=t.getConfigurationTelemetry)||void 0===e?void 0:e.call(t))})},f),eP({type:eR,configuration:h}),u){eB("DD_RUM",t);return}var g=function(t){if(!t.applicationId){ti.error("Application ID is not configured, no RUM data will be collected.");return}if(nb(t.sessionReplaySampleRate,"Session Replay")&&nb(t.traceSampleRate,"Trace")){if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls)){ti.error("Excluded Activity Urls should be an array");return}var e,n,r,o=function(t){if(void 0===t.allowedTracingUrls)return[];if(!Array.isArray(t.allowedTracingUrls)){ti.error("Allowed Tracing URLs should be an array");return}if(0!==t.allowedTracingUrls.length&&void 0===t.service){ti.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(t){nw(t)?e.push({match:t,propagatorTypes:nR}):"object"===tz(t)&&nw(t.match)&&Array.isArray(t.propagatorTypes)?e.push(t):ti.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}(t);if(o){var i=function(t){var e,n,r,o,i,a,s,u,c,l,d,f,p;if(!t||!t.clientToken){ti.error("Client Token is not configured, we will not send any data.");return}if((!(a=t.site)||"string"!=typeof a||/(datadog|ddog|datad0g|dd0g)/.test(a)||(ti.error("Site should be a valid Datadog site. ".concat(tu," ").concat(ta,"/getting_started/site/.")),0))&&nb(t.sessionSampleRate,"Session")&&nb(t.telemetrySampleRate,"Telemetry")&&nb(t.telemetryConfigurationSampleRate,"Telemetry Configuration")&&nb(t.telemetryUsageSampleRate,"Telemetry Usage")&&n_(t.version,"Version")&&n_(t.env,"Env")&&n_(t.service,"Service")){if(void 0!==t.trackingConsent&&!tD(tX,t.trackingConsent)){ti.error('Tracking Consent should be either "granted" or "not-granted"');return}return tS({beforeSend:t.beforeSend&&tc(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:function(t){switch(t.sessionPersistence){case e7.COOKIE:return ni(t);case e7.LOCAL_STORAGE:return ns();case void 0:var e=ni(t);return!e&&t.allowFallbackToLocalStorage&&(e=ns()),e;default:ti.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}(t),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(o=t.telemetryUsageSampleRate)&&void 0!==o?o:5,service:t.service||void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(i=t.trackingConsent)&&void 0!==i?i:tX.GRANTED,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(s=t.site||ep,u=t.env,c=t.service,l=t.version,d=t.datacenter,f=[],u&&f.push(nm("env",u)),c&&f.push(nm("service",c)),l&&f.push(nm("version",l)),d&&f.push(nm("datacenter",d)),p={logsEndpointBuilder:nh(t,"logs",f),rumEndpointBuilder:nh(t,"rum",f),sessionReplayEndpointBuilder:nh(t,"replay",f)},tS({replica:function(t,e){if(t.replica){var n=tS({},t,{site:ep,clientToken:t.replica.clientToken}),r={logsEndpointBuilder:nh(n,"logs",e),rumEndpointBuilder:nh(n,"rum",e)};return tS({applicationId:t.replica.applicationId},r)}}(t,f),site:s},p)))}}(t);if(i){var a=null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0;return tS({applicationId:t.applicationId,version:t.version||void 0,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:a,startSessionReplayRecordingManually:void 0!==t.startSessionReplayRecordingManually?!!t.startSessionReplayRecordingManually:0===a,traceSampleRate:null!==(n=t.traceSampleRate)&&void 0!==n?n:100,rulePsr:eg(t.traceSampleRate)?t.traceSampleRate/100:void 0,allowedTracingUrls:o,excludedActivityUrls:null!==(r=t.excludedActivityUrls)&&void 0!==r?r:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:tD(ng,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:ng.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:tD(ny,t.traceContextInjection)?t.traceContextInjection:ny.ALL,plugins:t.plugins||[]},i)}}}}(t);if(g){if(!m&&!g.sessionStoreStrategyType){ti.warn("No storage available for session. We will not send any data.");return}(!g.compressIntakeRequests||m||!d||(a=d(g,"Datadog RUM",tN)))&&(u=g,e1().subscribe(tN),n.tryToInit(g.trackingConsent),v())}}var m=function(t){f.add(function(e){return e.addDurationVital(t)})};return{init:function(t,e){var n,r,o;if(!t){ti.error("Missing configuration");return}Array.isArray(n=t.enableExperimentalFeatures)&&function(t){t.forEach(function(t){el.add(t)})}(n.filter(function(t){return tD(c,t)})),s=t,!(l&&e6())&&((!function(t,e,n){if(t)for(var r=0;r=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=tT(function(){f("duration_limit")},o))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0==(d-=1)&&p()}}}({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),messageBytesLimit:t.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),s.add(t),u&&e&&u.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){s.upsert(t,e),u&&u.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){s.stop(),u&&u.stop()}}}(t,{endpoint:t.rumEndpointBuilder,encoder:i(2)},F&&{endpoint:F.rumEndpointBuilder,transformMessage:function(t){return tF(t,{application:{id:F.applicationId}})},encoder:i(3)},R,N,V),k.subscribe(12,function(t){"view"===t.type?q.upsert(t,t.view.id):q.add(t)}),B.subscribe(function(e){return q.add(e,t.site===ef)}),q);x.push(function(){return H.stop()}),P=H.flushObservable,E.enabled&&eh(t.customerDataTelemetrySampleRate)&&(oA(),oO(),k.subscribe(12,function(t){O=!0,oE(A.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),oE(A.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),oE(A.featureFlagBytes,tm(["view","error"],t.type)?n.getOrCreateTracker(0).getBytesCount():0)}),P.subscribe(function(t){var e=t.bytesCount,n=t.messagesCount;O&&(T.batchCount+=1,oE(T.batchBytesCount,e),oE(T.batchMessagesCount,n),oT(T.globalContextBytes,A.globalContextBytes),oT(T.userContextBytes,A.userContextBytes),oT(T.featureFlagBytes,A.featureFlagBytes),oO())}),tO(ok,1e4))}var G=(t6=nL(),new tW(function(t){if(t6){var e=new t6(tp(function(){return t.notify()}));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}})),W=(t8=tP(t4=location),new tW(function(e){var n,r,o,i=(n=e$(ox("pushState"),"pushState",function(t){(0,t.onPostCall)(s)}).stop,r=e$(ox("replaceState"),"replaceState",function(t){(0,t.onPostCall)(s)}).stop,o=t$(t,window,"popstate",s).stop,{stop:function(){n(),r(),o()}}).stop,a=t$(t,window,"hashchange",s).stop;function s(){if(t8.href!==t4.href){var t=tP(t4);e.notify({newLocation:t,oldLocation:t8}),t8=t}}return function(){i(),a()}})),K=function(t,e){void 0===e&&(e=500);var n,r=nq({expireDelay:144e5,maxEntries:4e3});i(oR(),eS());var o=tY(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(t){i("freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":oR(),t.timeStamp)},{capture:!0}).stop;function i(t,e){void 0===e&&(e=eS()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}var a={findAll:function(t,n){var o=r.findAll(t,n);if(0!==o.length){for(var i=[],a=Math.max(0,o.length-e),s=o.length-1;s>=a;s--){var u=o[s],c=u.startTime-t;i.push({state:u.state,start:e_(c)})}return i}},wasInPageStateAt:function(t,e){return a.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,n){return r.findAll(e,n).some(function(e){return e.state===t})},addPageState:i,stop:function(){o(),r.stop()}};return a}(t),J=(t7=new tW,t9=e$(window,"open",function(){return t7.notify()}).stop,{observable:t7,stop:t9}),X=J.observable,$=J.stop;x.push($);var Y=(t_=k,tw=t,tx=location,tk=M,tC=K,tE=W,tM=G,tD=X,tj=r,tB=R,tQ=(tH=nq({expireDelay:144e5}),t_.subscribe(1,function(t){tH.add({service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},t.startClocks.relative)}),t_.subscribe(5,function(t){var e=t.endClocks;tH.closeActive(e.relative)}),t_.subscribe(3,function(t){var e=tH.find(t.startClocks.relative);e&&t.name&&(e.name=t.name),e&&t.context&&(e.context=t.context)}),t_.subscribe(9,function(){tH.reset()}),{findView:function(t){return tH.find(t)},stop:function(){tH.stop()}}),t0=function(t,e,n){var r,o=nq({expireDelay:144e5});t.subscribe(1,function(t){var e=t.startClocks,i=n.href;o.add(a({url:i,referrer:r||document.referrer}),e.relative),r=i}),t.subscribe(5,function(t){var e=t.endClocks;o.closeActive(e.relative)});var i=e.subscribe(function(t){var e=t.newLocation,n=o.find();if(n){var r=eS();o.closeActive(r),o.add(a({url:e.href,referrer:n.referrer}),r)}});function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return o.find(t)},stop:function(){i.unsubscribe(),o.stop()}}}(t_,tE,tx),t2=function(t,e,n,r,o){t.subscribe(0,function(e){return t.notify(11,r$(e,o))});var i,a={findActionId:tN},s=tN;return r.trackUserInteractions&&(a=(i=function(t,e,n,r){var o,i,a,s,u,c,l,d,f=nq({expireDelay:3e5}),p=new tW;t.subscribe(9,function(){f.reset()}),t.subscribe(4,m);var v=(s=(o={onPointerDown:function(o){return function(t,e,n,r,o){var i,a=t.enablePrivacyForActionName?ry(r.target,t.defaultPrivacyLevel):rv.ALLOW;if(a!==rv.HIDDEN){var s,u,c,l,d,f,p,v,h,m,g=(s=r,u=a,c=t,v=s.target.getBoundingClientRect(),(h=rj(s.target,c.actionNameAttribute))&&rX(s.timeStamp,h),m=(l=s.target,d=c.enablePrivacyForActionName,f=c.actionNameAttribute,(p=rE(l,rC)||f&&rE(l,f))?{name:p,nameSource:"custom_attribute"}:u===rv.MASK?{name:"Masked Element",nameSource:"mask_placeholder"}:rO(l,f,rT,d)||rO(l,f,rA,d)||{name:"",nameSource:"blank"}),{type:"click",target:{width:Math.round(v.width),height:Math.round(v.height),selector:h},position:{x:Math.round(s.clientX-v.left),y:Math.round(s.clientY-v.top)},name:m.name,nameSource:m.nameSource}),y=!1;return i=function(t){y=t.hadActivity},re(rn(e,n,o,t),i,100),{clickActionBase:g,hadActivityOnPointerDown:function(){return y}}}}(r,t,e,o,n)},onPointerUp:function(o,i,a){var s,u,c,l,d,v,m,g,y,_,b,w,S,x,k,C,E,T;s=r,u=t,c=e,l=n,d=f,v=p,m=h,g=o.clickActionBase,y=i,_=a,b=o.hadActivityOnPointerDown,m(x=function t(e,n,r,o,i){var a,s=eV(),u=ex(),c=n.add(s,u.relative),l=n7({lifeCycle:e,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?tm(t.action.id,s):t.action.id===s)}}),d=0,f=[],p=new tW;function v(t){0===d&&((d=1,a=t)?c.close(a-eC()):c.remove(),l.stop(),p.notify())}return{event:i,stop:v,stopObservable:p,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==a},getUserActivity:r,addFrustration:function(t){f.push(t)},startClocks:u,isStopped:function(){return 1===d||2===d},clone:function(){return t(e,n,r,o,i)},validate:function(t){if(v(),1===d){var n,r=l.eventCounts,c=r.resourceCount,p=r.errorCount,h=r.longTaskCount,m=tS({type:"click",duration:a&&(n=u.timeStamp,a-n),startClocks:u,id:s,frustrationTypes:f,counts:{resourceCount:c,errorCount:p,longTaskCount:h},events:null!=t?t:[i],event:i},o);e.notify(0,m),d=2}},discard:function(){v(),d=2}}}(u,d,_,g,y)),(k=null===(S=null==g?void 0:g.target)||void 0===S?void 0:S.selector)&&rX(y.timeStamp,k),C=(w=function(t){t.hadActivity&&t.end0)||(e=r[r.length-1].event,n=t.event,e.target===n.target&&100>=Math.sqrt(Math.pow(e.clientX-n.clientX,2)+Math.pow(e.clientY-n.clientY,2))&&e.timeStamp-n.timeStamp<=1e3)?(i(t),!0):(s(),!1))},stop:function(){s()}}}(t,function(t){(function(t,e){if(function(t){if(t.some(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll}))return!1;for(var e=0;e0){var t=Math.max.apply(Math,l);t_&&(_=e,o=!0),r>w&&(w=r,S=eS()-f.relative,o=!0),o&&g({maxDepth:Math.min(_,w),maxDepthScrollTop:n,maxScrollHeight:w,maxScrollHeightTime:S})}),{stop:function(){return x.unsubscribe()}}).stop,E=function(t,e,n){if(!(rt(b.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:tN};var r,o,i,a,s,u,c=0;n({value:0});var l=(i=0,a=0,{update:function(t){var e;return void 0===r||t.startTime-o>=1e3||t.startTime-r>=5e3?(r=o=t.startTime,a=i=t.value,e=!0):(i+=t.value,o=t.startTime,(e=t.value>a)&&(a=t.value)),{cumulatedValue:i,isMaxValue:e}}}),d=n9(t,{type:b.LAYOUT_SHIFT,buffered:!0}).subscribe(function(r){for(var o=0;oc){c=d;var f=null==s?void 0:s.deref();n({value:em(c,4),targetSelector:f&&rj(f,t.actionNameAttribute),time:u})}}}});return{stop:function(){d.unsubscribe()}}}(r,f.relative,function(t){p.cumulativeLayoutShift=t,tc()}).stop,A=(T=function(t,e,n){if(!(rt(b.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:tN,stop:tN};var r,o,i,a,s=("interactionCount"in performance||C||(C=new window.PerformanceObserver(tp(function(t){t.getEntries().forEach(function(t){t.interactionId&&(oo=Math.min(oo,t.interactionId),or=((oi=Math.max(oi,t.interactionId))-oo)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),r="initial_load"===n?0:oa(),o={stopped:!1},{getViewInteractionCount:function(){return o.stopped?o.interactionCount:oa()-r},stopViewInteractionCount:function(){o={stopped:!0,interactionCount:oa()-r}}}),u=s.getViewInteractionCount,c=s.stopViewInteractionCount,l=1/0,d=function(t){var e=[];function n(){e.sort(function(t,e){return e.duration-t.duration}).splice(10)}return{process:function(t){var r=e.findIndex(function(e){return t.interactionId===e.interactionId}),o=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>o.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(u),f=-1;function p(n){for(var r,o,s=0;s=e&&u.startTime<=l&&d.process(u)}var c=d.estimateP98Interaction();c&&c.duration!==f&&(f=c.duration,a=c.startTime-e,r=c.startTime,o=rJ.get(r),rJ.delete(r),!(i=o)&&c.target&&rc(c.target)&&(i=rj(c.target,t.actionNameAttribute)))}var v=n9(t,{type:b.FIRST_INPUT,buffered:!0}).subscribe(p),h=n9(t,{type:b.EVENT,durationThreshold:40,buffered:!0}).subscribe(p);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,6e4),targetSelector:i,time:a}:u()?{value:0}:void 0},setViewEnd:function(t){l=t,c()},stop:function(){h.unsubscribe(),v.unsubscribe()}}}(r,f.relative,i)).stop,O=T.getInteractionToNextPaint,{stop:function(){h(),E(),k()},stopINPTracking:A,setLoadEvent:m,setViewEnd:T.setViewEnd,getCommonViewMetrics:function(){return p.interactionToNextPaint=O(),p}}),tf=td.setLoadEvent,tv=td.setViewEnd,th=td.stop,tm=td.stopINPTracking,tg=td.getCommonViewMetrics,t_="initial_load"===i?(R={},L=(I=function(t){tf(t.loadEvent),R.navigationTimings=t,tc()},void 0===N&&(N=r7),c=function(){var t=N();t.loadEventEnd<=0||I({domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:t.responseStart>=0&&t.responseStart<=eS()?t.responseStart:void 0})},d=r6(r,"complete",function(){l=tT(function(){return c()})}).stop,{stop:function(){d(),tA(l)}}).stop,M=on(r),D=(P=function(t){R.firstContentfulPaint=t,tc()},{stop:n9(r,{type:b.PAINT,buffered:!0}).subscribe(function(t){var e=ty(t,function(t){return"first-contentful-paint"===t.name&&t.startTime=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,function(t){return t.entryType===b.LARGEST_CONTENTFUL_PAINT&&t.startTimeV});if(e){var n=void 0;e.element&&(n=rj(e.element,r.actionNameAttribute)),j({value:e.startTime,targetSelector:n}),V=e.size}}),{stop:function(){B(),F.unsubscribe()}}).stop,W=(H=function(t){R.firstInput=t,tc()},G=n9(r,{type:b.FIRST_INPUT,buffered:!0}).subscribe(function(t){var e=ty(t,function(t){return t.startTime=0?o:0,time:e.startTime,targetSelector:i})}}),{stop:function(){G.unsubscribe()}}).stop,{stop:function(){L(),D(),q(),W(),M.stop()},initialViewMetrics:R}):{stop:tN,initialViewMetrics:{}},tb=t_.stop,tw=t_.initialViewMetrics,tS={stop:(K=n7({lifeCycle:t,isChildEvent:function(t){return t.view.id===Q},onChange:tc})).stop,eventCounts:K.eventCounts},tx=tS.stop,tk=tS.eventCounts,tC=tO(tE,3e5);function tE(){tl(),tn+=1;var e=void 0===J?ew():J.timeStamp;t.notify(3,{customTimings:te,documentVersion:tn,id:Q,name:X,service:$,version:Y,context:to.getContext(),loadingType:i,location:tr,startClocks:a,commonViewMetrics:tg(),initialViewMetrics:tw,duration:e-a.timeStamp,isActive:void 0===J,sessionIsActive:ta,eventCounts:tk})}return tE(),to.changeObservable.subscribe(tE),{get name(){return X},service:$,version:Y,contextManager:to,stopObservable:tt,end:function(e){var n,r,o=this;void 0===e&&(e={}),J||(J=null!==(n=e.endClocks)&&void 0!==n?n:ex(),ta=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(4,{endClocks:J}),t.notify(5,{endClocks:J}),tR(tC),tv(J.relative),th(),tE(),tT(function(){o.stop()},3e5))},stop:function(){tb(),tx(),tm(),tt.notify()},addTiming:function(t,e){if(!J){var n,r=e<31536e6?e:e-a.timeStamp;te[(n=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==t&&ti.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(n)),n]=r,tc()}},setViewName:function(t){X=t,tE()}}}(e,n,r,o,t,i,a,s);return c.add(u),u.stopObservable.subscribe(function(){c.delete(u)}),u}return e.subscribe(9,function(){l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})}),e.subscribe(8,function(){l.end({sessionIsActive:!1})}),e.subscribe(10,function(t){t.reason===nN.UNLOADING&&l.end()}),a&&(u=i.subscribe(function(t){var e,n,r;e=t.oldLocation,n=t.newLocation,e.pathname===n.pathname&&(""!==(r=n.hash.substring(1))&&document.getElementById(r)||od(n.hash)===od(e.hash))||(l.end(),l=d("route_change"))})),{addTiming:function(t,e){void 0===e&&(e=ew()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=d("route_change",e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},stop:function(){u&&u.unsubscribe(),l.end(),c.forEach(function(t){return t.stop()})}}}(et,k,G,X,t,W,!t.trackViewsManually,o)),ts=ta.addTiming,tu=ta.startView,tc=ta.setViewName,tl=ta.setViewContext,td=ta.setViewContextProperty,tf=ta.stop;x.push(tf);var th=function(t,e,n,r,o){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var o=performance.now();r=function(){return 30-(performance.now()-o)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){r2(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===o&&(o=r9),t.subscribe(7,function(t){a(function(){return function(t,e,n){var r=function(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.filter(function(t){return!r3.has(t)}).filter(function(t){return n$(t)&&nY(t)}).filter(function(e){var n,r;return n=t.startClocks.relative,r=r5({startTime:t.startClocks.relative,duration:t.duration}),e.startTime>=n-1&&r5(e)<=r+1});if(1===n.length)return r3.add(n[0]),n[0].toJSON()}}}(t),o=r?ey(r.startTime):t.startClocks,i=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}(t,e);if(e.trackResources||i){var a,s="xhr"===t.type?"xhr":"fetch",u=r?oe(r):void 0,c=(a=t.duration,n.wasInPageStateDuringPeriod("frozen",o.relative,a)?void 0:e_(a)),l=tF({date:o.timeStamp,resource:{id:eV(),type:s,duration:c,method:t.method,status_code:t.status,protocol:r&&nQ(r),url:n3(t.url)?n5(t.url):t.url,delivery_type:r&&n0(r)},type:"resource",_dd:{discarded:!e.trackResources}},i,u);return{startTime:o.relative,rawRumEvent:l,domainContext:{performanceEntry:r,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}}(t,e,n)})});var i=n9(e,{type:b.RESOURCE,buffered:!0}).subscribe(function(t){for(var n=function(t){"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType||a(function(){return ot(t,e)})},r=0;rn.bytesLimit}e(void 0,t,a)}(function t(){r.read().then(tp(function(e){if(e.done){a();return}n.collectStreamBody&&o.push(e.value),(i+=e.value.length)>n.bytesLimit?a():t()}),tp(function(t){return e(t)}))})()}(r.body,function(){var n;e((n=t.startClocks.timeStamp,ew()-n))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e((n=t.startClocks.timeStamp,ew()-n))}});var eg=function(t,e,n){function r(n){if(!e.wasInPageStateDuringPeriod("frozen",n.startClocks.relative,n.duration)){var r;t.notify(11,(r={date:n.startClocks.timeStamp,vital:{id:eV(),type:n.type,name:n.name,duration:e_(n.duration),description:n.description},type:"vital"},r._dd={vital:{computed_value:!0}},{rawRumEvent:r,startTime:n.startClocks.relative,customerContext:n.context,domainContext:{}}))}}return{addDurationVital:r,startDurationVital:function(t,e){return void 0===e&&(e={}),eG(n,t,e)},stopDurationVital:function(t,e){void 0===e&&(e={}),eW(r,n,t,e)}}}(k,K,s),eA=(S=t.applicationId,{get:function(t){var e=Z.findView(t),n=Q.findUrl(t),r=M.findTrackedSession(t);if(r&&e&&n){var o=tt.findActionId(t);return{application_id:S,session_id:r.id,user_action:o?{id:o}:void 0,view:{id:e.id,name:e.name,referrer:n.referrer,url:n.url}}}}});return{addAction:tr,addError:ev,addTiming:ts,addFeatureFlagEvaluation:I.addFeatureFlagEvaluation,startView:tu,setViewContext:tl,setViewContextProperty:td,setViewName:tc,lifeCycle:k,viewHistory:Z,session:M,stopSession:function(){return M.expire()},getInternalContext:eA.get,startDurationVital:eg.startDurationVital,stopDurationVital:eg.stopDurationVital,addDurationVital:eg.addDurationVital,stop:function(){x.forEach(function(t){return t()})}}},function(t,e){if(eX()&&!eJ("records")||!id())return{start:tN,stop:tN,getReplayStats:function(){},onRumStart:tN,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n,r=(n=0,{strategy:{start:function(){n=1},stop:function(){n=2},isRecording:function(){return!1},getSessionReplayLink:tN},shouldStartImmediately:function(t){return 1===n||0===n&&!t.startSessionReplayRecordingManually}}),o=r.strategy,i=r.shouldStartImmediately;return{start:function(t){return o.start(t)},stop:function(){return o.stop()},getSessionReplayLink:function(){return o.getSessionReplayLink()},onRumStart:function(e,n,r,a,s){var u;o=function(t,e,n,r,o,i){var a,s=0;function u(u){var c,l=n.findTrackedSession();if(!l||0===l.sessionReplay&&(!u||!u.force)){s=1;return}!(2===(c=s)||3===c)&&(s=2,r6(t,"interactive",function(){if(2===s){var u=i();if(!u){s=0;return}a=o(e,t,n,r,u).stop,s=3}}),u&&u.force&&0===l.sessionReplay&&n.setForcedReplay())}function c(){0!==s&&3===s&&(null==a||a()),s=0}return e.subscribe(8,function(){(2===s||3===s)&&(c(),s=1)}),e.subscribe(10,function(t){t.reason===nN.UNLOADING&&c()}),e.subscribe(9,function(){1===s&&u()}),{start:u,stop:c,getSessionReplayLink:function(){var e,o,i,a,u,c,l,d,f,p,v,h,m;return e=0!==s,v=o=n.findTrackedSession(),i=id()?v?0===v.sessionReplay?"incorrect-session-plan":e?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",u=(a={viewContext:r.findView(),errorType:i,session:o}).session,c=a.viewContext,l=a.errorType,d=u?u.id:"no-session-id",f=[],void 0!==l&&f.push("error-type=".concat(l)),c&&(f.push("seed=".concat(c.id)),f.push("from=".concat(c.startClocks.timeStamp))),h=t.site,m=t.subdomain||function(t){switch(t.site){case ep:case"datadoghq.eu":return"app";case ef:return"dd";default:return}}(t),p="https://".concat(m?"".concat(m,"."):"").concat(h),"".concat(p).concat("/rum/replay/sessions/".concat(d),"?").concat(f.join("&"))},isRecording:function(){return 3===s}}}(n,e,r,a,t,function(){return!u&&(null!=s||(s=ic(n,"Datadog Session Replay",function(){o.stop()},void 0)),s&&(u=ia(n,s,1))),u}),i(n)&&o.start()},isRecording:function(){return 3===iu.status&&o.isRecording()},getReplayStats:function(t){return 3===iu.status?null==R?void 0:R.get(t):void 0}}}(function(t,e,n,r,o,i){var a,s=[],u=i||ob(e.sessionReplayEndpointBuilder,6e4,function(e){t.notify(13,{error:e}),eD("Error reported to customer",{"error.message":e.message})});if(eX())a=(c=eK(),{addRecord:function(t){var e=r.findView();c.send("record",t,e.id)}}).addRecord;else{var c,l=function(t,e,n,r){var o={status:0,nextSegmentCreationReason:"init"},i=t.subscribe(2,function(){s("view_change")}).unsubscribe,a=t.subscribe(10,function(t){s(t.reason)}).unsubscribe;function s(t){1===o.status&&(o.segment.flush(function(e,r){var o,i,a,s,u=(o=r.output,i=r.rawBytesCount,(a=new FormData).append("segment",new Blob([o],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start)),s=JSON.stringify(tS({raw_segment_size:i,compressed_segment_size:o.byteLength},e)),a.append("event",new Blob([s],{type:"application/json"})),{data:a,bytesCount:o.byteLength});tm(t_(nN),t)?n.sendOnExit(u):n.send(u)}),tA(o.expirationTimeoutId)),o="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==o.status){if(0===o.status){var n,i,a,u,c,l,d,f=e();if(!f)return;o={status:1,segment:(i=(n={encoder:r,context:f,creationReason:o.nextSegmentCreationReason}).context,a=n.creationReason,u=n.encoder,c=0,d=tS({start:1/0,end:-1/0,creation_reason:a,records_count:0,has_full_snapshot:!1,index_in_view:oL(l=i.view.id).segments_count,source:"browser"},i),oL(l).segments_count+=1,{addRecord:function(t,e){d.start=Math.min(d.start,t.timestamp),d.end=Math.max(d.end,t.timestamp),d.records_count+=1,d.has_full_snapshot||(d.has_full_snapshot=t.type===oH.FullSnapshot);var n=u.isEmpty?'{"records":[':",";u.write(n+JSON.stringify(t),function(t){e(c+=t)})},flush:function(t){if(u.isEmpty)throw Error("Empty segment flushed");u.write("],".concat(JSON.stringify(d).slice(1),"\n")),u.finish(function(e){var n,r;n=d.view.id,r=e.rawBytesCount,oL(n).segments_total_raw_size+=r,t(d,e)})}}),expirationTimeoutId:tT(function(){s("segment_duration_limit")},5e3)}}o.segment.addRecord(t,function(t){t>6e4&&s("segment_bytes_limit")})}},stop:function(){s("stop"),i(),a()}}}(t,function(){return function(t,e,n){var r=e.findTrackedSession(),o=n.findView();if(r&&o)return{application:{id:t},session:{id:r.id},view:{id:o.id}}}(e.applicationId,n,r)},u,o);a=l.addRecord,s.push(l.stop)}var d=function(t){var e,n,r,o,i,a,s,u,c,l,d,f,p,v,h=t.emit,m=t.configuration,g=t.lifeCycle;if(!h)throw Error("emit function is required");var y=function(e){var n;h(e),eE("record",{record:e}),n=t.viewHistory.findView().id,oL(n).records_count+=1},_=(e=new WeakMap,{set:function(t,n){(t!==document||document.scrollingElement)&&e.set(t===document?document.scrollingElement:t,n)},get:function(t){return e.get(t)},has:function(t){return e.has(t)}}),b=ii(m,y,_),w=(n=S,(r=function(t){return t.forEach(function(t){return y(t)})})((o=function(t,e){void 0===t&&(t=ew()),void 0===e&&(e={status:0,elementsScrollPositions:_,shadowRootsController:b});var n=ol(),r=n.width,o=[{data:{height:n.height,href:window.location.href,width:r},type:oH.Meta,timestamp:t},{data:{has_focus:document.hasFocus()},type:oH.Focus,timestamp:t},{data:{node:o0(document,{serializationContext:e,parentNodePrivacyLevel:m.defaultPrivacyLevel,configuration:m}),initialOffset:{left:os(),top:ou()}},type:oH.FullSnapshot,timestamp:t}];return window.visualViewport&&o.push({data:o4(window.visualViewport),type:oH.VisualViewport,timestamp:t}),o})()),{stop:g.subscribe(2,function(t){n(),r(o(t.startClocks.timeStamp,{shadowRootsController:b,status:1,elementsScrollPositions:_}))}).unsubscribe}).stop;function S(){b.flush(),k.flush()}var x=(i=new WeakMap,a=1,{getIdForEvent:function(t){return i.has(t)||i.set(t,a++),i.get(t)}}),k=io(y,m,b,document),C=[k,(u=(s=tI(function(t){var e=o5(t);if(oP(e)){var n=o7(t);if(!n)return;var r={id:oD(e),timeOffset:0,x:n.x,y:n.y};y(o8(o3(t)?oW.TouchMove:oW.MouseMove,{positions:[r]}))}},50,{trailing:!1})).throttled,c=s.cancel,l=tY(m,document,["mousemove","touchmove"],u,{capture:!0,passive:!0}).stop,{stop:function(){l(),c()}}),tY(m,document,Object.keys(o9),function(t){var e,n=o5(t);if(ry(n,m.defaultPrivacyLevel)!==rv.HIDDEN&&oP(n)){var r=oD(n),o=o9[t.type];if(o!==oK.Blur&&o!==oK.Focus){var i=o7(t);if(!i)return;e={id:r,type:o,x:i.x,y:i.y}}else e={id:r,type:o};y(tS({id:x.getIdForEvent(t)},o8(oW.MouseInteraction,e)))}},{capture:!0,passive:!0}),it(m,y,_,document),(d=oc(m).subscribe(function(t){y(o8(oW.ViewportResize,t))}),{stop:function(){d.unsubscribe()}}),ir(m,y),tY(m,document,["play","pause"],function(t){var e=o5(t);e&&ry(e,m.defaultPrivacyLevel)!==rv.HIDDEN&&oP(e)&&y(o8(oW.MediaInteraction,{id:oD(e),type:"play"===t.type?oJ.Play:oJ.Pause}))},{capture:!0,passive:!0}),function(t){function e(t,e){t&&oP(t.ownerNode)&&e(oD(t.ownerNode))}var n=[e$(CSSStyleSheet.prototype,"insertRule",function(n){var r=n.target,o=n.parameters,i=o[0],a=o[1];e(r,function(e){return t(o8(oW.StyleSheetRule,{id:e,adds:[{rule:i,index:a}]}))})}),e$(CSSStyleSheet.prototype,"deleteRule",function(n){var r=n.target,o=n.parameters[0];e(r,function(e){return t(o8(oW.StyleSheetRule,{id:e,removes:[{index:o}]}))})})];function r(r){n.push(e$(r.prototype,"insertRule",function(n){var r=n.target,o=n.parameters,i=o[0],a=o[1];e(r.parentStyleSheet,function(e){var n=ie(r);n&&(n.push(a||0),t(o8(oW.StyleSheetRule,{id:e,adds:[{rule:i,index:n}]})))})}),e$(r.prototype,"deleteRule",function(n){var r=n.target,o=n.parameters[0];e(r.parentStyleSheet,function(e){var n=ie(r);n&&(n.push(o),t(o8(oW.StyleSheetRule,{id:e,removes:[{index:n}]})))})}))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),{stop:function(){n.forEach(function(t){return t.stop()})}}}(y),tY(m,window,["focus","blur"],function(){y({data:{has_focus:document.hasFocus()},type:oH.Focus,timestamp:ew()})}),function(t,e){var n=window.visualViewport;if(!n)return{stop:tN};var r=tI(function(){e({data:o4(n),type:oH.VisualViewport,timestamp:ew()})},200,{trailing:!1}),o=r.throttled,i=r.cancel,a=tY(t,n,["resize","scroll"],o,{capture:!0,passive:!0}).stop;return{stop:function(){a(),i()}}}(m,y),(f=g.subscribe(11,function(t){var e,n;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null===(n=null===(e=t.rawRumEvent.action.frustration)||void 0===e?void 0:e.type)||void 0===n?void 0:n.length)&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&y({timestamp:t.rawRumEvent.date,type:oH.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map(function(t){return x.getIdForEvent(t)})}})}),{stop:function(){f.unsubscribe()}}),(p=function(t){S(),y(t)},v=g.subscribe(4,function(){p({timestamp:ew(),type:oH.ViewEnd})}),{stop:function(){v.unsubscribe()}})];return{stop:function(){b.stop(),C.forEach(function(t){return t.stop()}),w()},flushMutations:S,shadowRootsController:b}}({emit:a,configuration:e,lifeCycle:t,viewHistory:r}).stop;return s.push(d),{stop:function(){s.forEach(function(t){return t()})}}}),{startDeflateWorker:ic,createDeflateEncoder:ia});function iv(t){let{Component:e,pageProps:n}=t,r=(0,z.useRef)(!1);return(0,z.useEffect)(()=>{void 0===ip||r.current||(r.current=!0,ip.init({applicationId:"53a0d8c5-40b7-4185-b43d-edd5fea93bfe",clientToken:"pub36ec9f92fa46c3733d1c5d1e40523f35",site:"us5.datadoghq.com",service:"mf-home-cl--prd",env:"PROD",sessionSampleRate:.5,sessionReplaySampleRate:100,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input"}))},[]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(q,{}),(0,N.jsx)("main",{className:M().className,children:(0,N.jsxs)(H,{session:n.session,children:[(0,N.jsx)(Y,{id:"GTM-PWQK23DH"}),(0,N.jsx)(Z,{}),(0,N.jsx)(Q,{country:P.$.country.toLowerCase()}),(0,N.jsx)(tt,{country:P.$.country.toLowerCase()}),(0,N.jsx)("noscript",{children:(0,N.jsx)(J(),{alt:"Facebook Pixel",height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=833390700036828&ev=PageView&noscript=1"})}),(0,N.jsx)(B,{children:(0,N.jsx)(e,{...n})})]})})]})}(s=(i=tx())[a="DD_RUM"])&&!s.q&&s.version&&ti.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),i[a]=ip,s&&s.q&&s.q.forEach(function(t){return tc(t,"onReady callback threw an error:")()}),iv.getInitialProps=async t=>await W().getInitialProps(t);var ih=iv},5673:function(){},9958:function(t){t.exports={style:{fontFamily:"'__Montserrat_e194cb', '__Montserrat_Fallback_e194cb'",fontStyle:"normal"},className:"__className_e194cb"}},79:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},n}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},5636:function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5715:function(t,e,n){var r=n(2987),o=n(1156),i=n(7122),a=n(7752);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},9045:function(t,e,n){var r=n(3738).default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},7736:function(t,e,n){var r=n(3738).default,o=n(9045);t.exports=function(t){var e=o(t,"string");return"symbol"==r(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},3738:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},7122:function(t,e,n){var r=n(79);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},1837:function(t,e,n){var r=n(3072),o=n(5636),i=n(691),a=n(9646);function s(e){var n="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!i(t))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,s(e)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},4756:function(t,e,n){var r=n(4633)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},function(t){var e=function(e){return t(t.s=e)};_N_E=Promise.all([t.f.consumes||function(t,e){},t.f.remotes||function(t,e){}].reduce(function(t,e){return e("636",t),t},[])).then(function(){return t.X(0,[792],function(){return e(8424),e(4402)})})}]);