!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0a0e4-f09e-7521-8143-3c7db92d72d5")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,615366,387353,t=>{"use strict";let e,r,a;var n,i,o=t.i(820803),s=t.i(471964),l=t.i(644356),c=t.i(719931),d=t.i(645845);t.i(773783);let u="userContext",h="globalContext",p="accountContext",f="getContext",_="setContext",g="setContextProperty",m="removeContextProperty",y="clearContext";var v=t.i(45806),b=t.i(293836),w=t.i(440387),k=t.i(939165),x=t.i(285342),z=t.i(919602);function R(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(r,a){let n=(0,z.computeBytesCount)(r);e+=n,t+=r,a&&a(n)},finish(t){t(this.finishSync())},finishSync(){let r={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,r},estimateEncodedBytesCount:t=>t.length}}function S(t,e){e.silentMultipleInit||c.display.error(`${t} is already initialized.`)}var E=t.i(396075);function U(t,e,r,a){return(0,l.monitor)((...n)=>(a&&(0,v.addTelemetryUsage)({feature:a}),t()[e][r](...n)))}var A=t.i(260752),C=t.i(790280),T=t.i(601489),I=t.i(602711),P=t.i(927072),D=t.i(893482),F=t.i(574256);function N(t,e,r){if(t)for(let a of t){let t=a[e];t&&t(r)}}var L=t.i(201945),V=t.i(136560),M=t.i(10568),O=t.i(879784),j=t.i(969736),$=t.i(569829),B=t.i(882795),q=t.i(747816),Z=t.i(82407),G=t.i(242382),W=t.i(125120),H=t.i(498572),Y=t.i(867274),J=t.i(125341),Q=t.i(315927);let K=["tracecontext","datadog"];var X=t.i(650623),tt=t.i(778385);let te=/[a-zA-Z_$]/,tr=/[a-zA-Z0-9_$]/,ta=/[0-9]/,tn=/[a-fA-F0-9]/,ti={0:()=>!1,1:()=>!1,2:t=>te.test(t),3:t=>tr.test(t),4:t=>"."===t,5:t=>"["===t,6:t=>"]"===t,7:t=>ta.test(t),8:t=>"'\"".includes(t),9:(t,e)=>t===e.quote,10:()=>!0,11:t=>"\\"===t,12:(t,e)=>void 0===e.escapeSequence?`${e.quote}/\\bfnrtu`.includes(t):!!e.escapeSequence.startsWith("u")&&e.escapeSequence.length<5&&tn.test(t)},to={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},ts=[2,3,7,10],tl=[4,5,6],tc={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},td=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function tu(t,e){let r,a,n=(r={fetch:{}},{get:()=>r,increment:(t,e)=>{r[t]||(r[t]={}),r[t][e]||(r[t][e]=0),r[t][e]=r[t][e]+1}}),i=await tp(t);return i.ok?(n.increment("fetch","success"),a=function(t,e,r,a){let n={...t};return td.forEach(t=>{t in e&&(n[t]=i(e[t]))}),Object.keys(r).forEach(t=>{var a;void 0!==e[t]&&(a=r[t],e[t].forEach(({key:t,value:e})=>{a.setContextProperty(t,i(e))}))}),n;function i(t){if(Array.isArray(t))return t.map(i);if("object"==typeof(e=t)&&null!==e){if("rcSerializedType"in t){let n=t.rcSerializedType;switch(n){case"string":return t.value;case"regex":return th(t.value);case"dynamic":var e,r=t;let i,o=r.strategy;switch(o){case"cookie":i=function({name:t}){let e=(0,tt.getCookie)(t);return a.increment("cookie",void 0!==e?"success":"missing"),e}(r);break;case"dom":i=function({selector:t,attribute:e}){var r,n;let i;try{i=document.querySelector(t)}catch(e){c.display.error(`Invalid selector in the remote configuration: '${t}'`),a.increment("dom","failure");return}if(!i)return void a.increment("dom","missing");if(r=i,n=e,"password"===r.getAttribute("type")&&"value"===n){c.display.error(`Forbidden element selected by the remote configuration: '${t}'`),a.increment("dom","failure");return}let o=void 0!==e?i.getAttribute(e):i.textContent;return null===o?void a.increment("dom","missing"):(a.increment("dom","success"),o)}(r);break;case"js":i=function({path:t}){let e=window,r=function(t){let e,r=[],a=0,n={quote:void 0,escapeSequence:void 0},i="";for(let l of t){if(!(e=to[a].find(t=>ti[t](l,n))))return[];if(void 0!==n.escapeSequence&&12!==e){var o,s;if(o=n.escapeSequence,!("\"'/\\bfnrt".includes(o)||o.startsWith("u")&&5===o.length))return[];i+=(s=n.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):tc[s],n.escapeSequence=void 0}ts.includes(e)?i+=l:tl.includes(e)&&""!==i?(r.push(i),i=""):12===e?n.escapeSequence=n.escapeSequence?`${n.escapeSequence}${l}`:l:8===e?n.quote=l:9===e&&(n.quote=void 0),a=e}return to[a].includes(1)?(""!==i&&r.push(i),r):[]}(t);if(0===r.length){c.display.error(`Invalid JSON path in the remote configuration: '${t}'`),a.increment("js","failure");return}for(let n of r){if(!(n in e))return void a.increment("js","missing");try{e=e[n]}catch(e){c.display.error(`Error accessing: '${t}'`,e),a.increment("js","failure");return}}return a.increment("js","success"),e}(r);break;default:c.display.error(`Unsupported remote configuration: "strategy": "${o}"`);return}let s=r.extractor;return void 0!==s&&"string"==typeof i?function(t,e){let r=th(t.value);if(void 0===r)return;let a=r.exec(e);if(null===a)return;let[n,i]=a;return i||n}(s,i):i;default:c.display.error(`Unsupported remote configuration: "rcSerializedType": "${n}"`);return}}return(0,Y.mapValues)(t,i)}return t}}(t,i.value,e,n)):(n.increment("fetch","failure"),c.display.error(i.error)),(0,v.addTelemetryMetrics)("remote configuration metrics",{metrics:n.get()}),a}function th(t){try{return new RegExp(t)}catch(e){c.display.error(`Invalid regex in the remote configuration: '${t}'`)}}async function tp(t){let e;try{var r;e=await fetch((r=t).remoteConfigurationProxy?r.remoteConfigurationProxy:`https://sdk-configuration.${(0,X.buildEndpointHost)("rum",r)}/v1/${encodeURIComponent(r.remoteConfigurationId)}.json`)}catch(t){e=void 0}if(!e||!e.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let a=await e.json();return a.rum?{ok:!0,value:a.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function tf(t,e,r){t.changeObservable.subscribe(()=>{let a=t.getContext();r.add(t=>t[e].setContext(a))})}var t_=t.i(461319),tg=t.i(818576),tm=t.i(223804);function ty(t,e,r){let a,n=0,i=[],o=!0,s=0,l=[],{stop:c}=(0,tm.addEventListener)(t,e,"message",({data:t})=>{if("wrote"!==t.type||t.streamId!==r)return;let e=l[0];e&&(e.id===t.id?(l.shift(),n+=t.additionalBytesCount,i.push(t.result),a=t.trailer,e.writeCallback?e.writeCallback(t.result.byteLength):e.finishCallback&&e.finishCallback()):e.id{delete t.writeCallback}),l[l.length-1].finishCallback=()=>t(d())):t(d())},finishSync(){u();let t=l.map(t=>t.data).join("");return l.length=0,{...d(),pendingData:t}},estimateEncodedBytesCount:t=>t.length/8,stop(){c()}}}var tv=t.i(755355);function tb({configuredUrl:t,error:e,source:r,scriptType:a}){var n;if(c.display.error(`${r} failed to start: an error occurred while initializing the ${a}:`,e),e instanceof Event||e instanceof Error&&((n=e.message).includes("Content Security Policy")||n.includes("requires 'TrustedScriptURL'"))){let e;e=t?`Please make sure the ${a} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",c.display.error(`${e} See documentation at ${c.DOCS_ORIGIN}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===a&&(0,v.addTelemetryError)(e)}let tw=30*w.ONE_SECOND;function tk(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=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]),n=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]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(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 g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=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},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=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],++h>>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},S=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}()),T=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s>>8^r[255&(t^e[s])];return-1^t},O={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"},q=j,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>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&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=O[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=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))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&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<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?M(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=T(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=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-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,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},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(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=W(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-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(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=W(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=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead=3&&(t.ins_h=W(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=F(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=W(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&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(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=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(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 st=[new it(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(at(t),0===t.lookahead&&0===e)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,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){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=8,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),V(this.dyn_ltree),V(this.dyn_dtree),V(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),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(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}for(var lt=function(t){var e,i=function(t){if(!t||!t.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){D||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(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)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=T(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(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=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=T(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=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=T(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=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)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+H;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=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(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)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t||!t.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=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},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};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 ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<=n.w_size){0===r&&(V(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,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(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,at(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,0}(this.strm,r)))throw Error(O[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.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?4:0,"[object ArrayBuffer]"===ct.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),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;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},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"6.23.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,h=0;for(r=0;r>>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,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let tx={status:0};function tz(t,e,r,a=tk){switch(0===tx.status&&function(t,e,r=tk){try{let a=r(t),{stop:n}=(0,tm.addEventListener)(t,a,"error",r=>{tR(t,e,r)}),{stop:i}=(0,tm.addEventListener)(t,a,"message",({data:r})=>{var a;"errored"===r.type?tR(t,e,r.error,r.streamId):"initialized"===r.type&&(a=r.version,1===tx.status&&(tx={status:3,worker:tx.worker,stop:tx.stop,version:a}))});a.postMessage({action:"init"}),(0,tv.setTimeout)(()=>{var t;return t=e,void(1===tx.status&&(c.display.error(`${t} failed to start: a timeout occurred while initializing the Worker`),tx.initializationFailureCallbacks.forEach(t=>t()),tx={status:2}))},tw),tx={status:1,worker:a,stop:()=>{n(),i()},initializationFailureCallbacks:[]}}catch(r){tR(t,e,r)}}(t,e,a),tx.status){case 1:return tx.initializationFailureCallbacks.push(r),tx.worker;case 3:return tx.worker}}function tR(t,e,r,a){1===tx.status||0===tx.status?(tb({configuredUrl:t.workerUrl,error:r,source:e,scriptType:"worker"}),1===tx.status&&tx.initializationFailureCallbacks.forEach(t=>t()),tx={status:2}):(0,v.addTelemetryError)(r,{worker_version:3===tx.status&&tx.version,stream_id:a})}function tS(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}var tE=t.i(354045),tU=t.i(172809);async function tA(t,e,r){try{return await r}finally{t.notify(e)}}async function tC(t=tT){try{return await t()}catch(t){tb({error:t,source:"Recorder",scriptType:"module"})}}async function tT(){return(await t.A(923643)).startRecording}var tI=t.i(670225),tP=t.i(52877);async function tD(t=tF){try{return await t()}catch(t){tb({error:t,source:"Profiler",scriptType:"module"})}}async function tF(){return(await t.A(282803)).createRumProfiler}let tN=function(t){let e;if((0,V.canUseEventBridge)()&&!(0,V.bridgeSupports)("records")||!tS())return{start:O.noop,stop:O.noop,getReplayStats:()=>void 0,onRumStart:O.noop,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:r,shouldStartImmediately:a}=(e=0,{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:O.noop},shouldStartImmediately:t=>1===e||0===e&&!t.startSessionReplayRecordingManually});return{start:t=>r.start(t),stop:()=>r.stop(),getSessionReplayLink:()=>r.getSessionReplayLink(),onRumStart:function(e,n,i,o,s,c){let d;r=function(t,e,r,a,n,i,o){let s,c=0;e.subscribe(9,()=>{(2===c||3===c)&&(p(),c=1)}),e.subscribe(10,()=>{1===c&&h()});let d=new A.Observable;!function(t,e){let r,a,n;if(!t.metricsEnabled)return O.noop;let{unsubscribe:i}=e.subscribe(t=>{switch(t.type){case"start":r={forced:t.forced,timestamp:(0,w.timeStampNow)()},a=void 0,n=void 0;break;case"document-ready":r&&(a=(0,w.elapsed)(r.timestamp,(0,w.timeStampNow)()));break;case"recorder-settled":r&&(n=(0,w.elapsed)(r.timestamp,(0,w.timeStampNow)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var e,o,s,l;i(),r&&(0,v.addTelemetryMetrics)("Recorder init metrics",{metrics:(e=r.forced,o=n,s=(0,w.elapsed)(r.timestamp,(0,w.timeStampNow)()),l=t.type,{forced:e,loadRecorderModuleDuration:o,recorderInitDuration:s,result:l,waitForDocReadyDuration:a})})}})}(o,d);let u=async l=>{d.notify({type:"start",forced:l});let[u]=await Promise.all([tA(d,{type:"recorder-settled"},n()),tA(d,{type:"document-ready"},(0,tE.asyncRunOnReadyState)(t,"interactive"))]);if(2!==c)return void d.notify({type:"aborted"});if(!u){c=0,d.notify({type:"recorder-load-failed"});return}let h=i();if(!h){c=0,d.notify({type:"deflate-encoder-load-failed"});return}({stop:s}=u(e,t,r,a,h,o)),c=3,d.notify({type:"succeeded"})};function h(t){var e,a,n,i,o;let s=r.findTrackedSession();if(e=s,a=t,!e||0===e.sessionReplay&&(!a||!a.force)){c=1;return}if(2===(n=c)||3===n)return;c=2;let d=(i=s,(o=t)&&o.force&&0===i.sessionReplay||!1);u(d).catch(l.monitorError),d&&r.setForcedReplay()}function p(){3===c&&(null==s||s()),c=0}return{start:h,stop:p,getSessionReplayLink:()=>{var e,n,i;let o,s;return e=0!==c,n=o=r.findTrackedSession(),i=e,s=tS()?n?0===n.sessionReplay?"incorrect-session-plan":i?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",function(t,{session:e,viewContext:r,errorType:a}){var n;let i,o,s=e?e.id:"no-session-id",l=[];void 0!==a&&l.push(`error-type=${a}`),r&&(l.push(`seed=${r.id}`),l.push(`from=${r.startClocks.timeStamp}`));let c=(i=(n=t).site,o=n.subdomain||function(t){switch(t.site){case tU.INTAKE_SITE_US1:case tU.INTAKE_SITE_EU1:return"app";case tU.INTAKE_SITE_STAGING:return"dd";default:return}}(n),`https://${o?`${o}.`:""}${i}`),d=`/rum/replay/sessions/${s}`;return`${c}${d}?${l.join("&")}`}(t,{viewContext:a.findView(),errorType:s,session:o})},isRecording:()=>3===c}}(n,e,i,o,t,function(){return!d&&(null!=s||(s=tz(n,"Datadog Session Replay",()=>{r.stop()},void 0)),s&&(d=ty(n,s,1))),d},c),a(n)&&r.start()},isRecording:()=>3===tx.status&&r.isRecording(),getReplayStats:t=>3===tx.status?(0,tg.getReplayStats)(t):void 0}}(tC),tL=function(t,e,r,a={}){let n,i=(0,E.createTrackingConsentState)(),o=(0,F.createCustomVitalsState)(),s=function(t=function(){return new A.Observable(t=>{var e,r;let a=(e,r)=>{let a=(0,I.computeRawError)({stackTrace:r,originalError:e,startClocks:(0,w.clocksNow)(),nonErrorPrefix:"Uncaught",source:P.ErrorSource.SOURCE,handling:"unhandled"});t.notify(a)},{stop:n}=(e=a,(0,C.instrumentMethod)((0,d.getGlobalObject)(),"onerror",({parameters:[t,r,a,n,i]})=>{let o;(0,I.isError)(i)||(o=(0,T.computeStackTraceFromOnErrorMessage)(t,r,a,n)),e(null!=i?i:t,o)})),{stop:i}=(r=a,(0,C.instrumentMethod)((0,d.getGlobalObject)(),"onunhandledrejection",({parameters:[t]})=>{r(t.reason||"Empty reason")}));return()=>{n(),i()}})}){let e=new A.BufferedObservable(500),r=t().subscribe(t=>{e.notify({type:0,error:t})});return{observable:e,stop:()=>{r.unsubscribe()}}}().observable,z=function({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e},r,a,n){let i,o,s,d,f,_=(f=[],{add:t=>{f.push(t)>500&&f.splice(0,1)},remove:t=>{(0,L.removeItem)(f,t)},drain:t=>{f.forEach(e=>e(t)),f.length=0}}),g=(0,q.buildGlobalContextManager)();tf(g,h,_);let m=(0,Z.buildUserContextManager)();tf(m,u,_);let y=(0,B.buildAccountContextManager)();tf(y,p,_);let b=r.observable.subscribe(z),k={};function z(){let t;if(!s||!d||!r.isGranted())return;if(b.unsubscribe(),d.trackViewsManually){if(!i)return;_.remove(i.callback),t=i.options}let e=n(d,o,t);_.drain(e)}function R(t,a){var n,i,l,u,h,p;let f,_,g=(0,V.canUseEventBridge)();if(g&&(t={...u=t,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(h=u.defaultPrivacyLevel)?h:null==(p=(0,V.getEventBridge)())?void 0:p.getPrivacyLevel()}),s=t,(0,v.addTelemetryConfiguration)((n=t,f=(0,H.serializeConfiguration)(n),{session_replay_sample_rate:n.sessionReplaySampleRate,start_session_replay_recording_manually:n.startSessionReplayRecordingManually,trace_sample_rate:n.traceSampleRate,trace_context_injection:n.traceContextInjection,propagate_trace_baggage:n.propagateTraceBaggage,action_name_attribute:n.actionNameAttribute,use_allowed_tracing_urls:(0,L.isNonEmptyArray)(n.allowedTracingUrls),use_allowed_graph_ql_urls:(0,L.isNonEmptyArray)(n.allowedGraphQlUrls),use_track_graph_ql_payload:(l=n.allowedGraphQlUrls,(0,L.isNonEmptyArray)(l)&&l.some(t=>"object"==typeof t&&"trackPayload"in t&&!!t.trackPayload)),selected_tracing_propagators:(_=new Set,(0,L.isNonEmptyArray)(n.allowedTracingUrls)&&n.allowedTracingUrls.forEach(t=>{(0,W.isMatchOption)(t)?K.forEach(t=>_.add(t)):"object"===(0,G.getType)(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(t=>_.add(t))}),Array.from(_)),default_privacy_level:n.defaultPrivacyLevel,enable_privacy_for_action_name:n.enablePrivacyForActionName,use_excluded_activity_urls:(0,L.isNonEmptyArray)(n.excludedActivityUrls),use_worker_url:!!n.workerUrl,compress_intake_requests:n.compressIntakeRequests,track_views_manually:n.trackViewsManually,track_user_interactions:n.trackUserInteractions,track_resources:n.trackResources,track_long_task:n.trackLongTasks,track_bfcache_views:n.trackBfcacheViews,track_early_requests:n.trackEarlyRequests,plugins:null==(i=n.plugins)?void 0:i.map(t=>{var e;return{name:t.name,...null==(e=t.getConfigurationTelemetry)?void 0:e.call(t)}}),track_feature_flags_for_events:n.trackFeatureFlagsForEvents,remote_configuration_id:n.remoteConfigurationId,profiling_sample_rate:n.profilingSampleRate,use_remote_configuration_proxy:!!n.remoteConfigurationProxy,...f})),d)return void S("DD_RUM",t);let m=function(t,e){var r,a,n,i,o,s,l;if(void 0===t.trackFeatureFlagsForEvents||Array.isArray(t.trackFeatureFlagsForEvents)||c.display.warn("trackFeatureFlagsForEvents should be an array"),!t.applicationId)return void c.display.error("Application ID is not configured, no RUM data will be collected.");if(!(0,H.isSampleRate)(t.sessionReplaySampleRate,"Session Replay")||!(0,H.isSampleRate)(t.traceSampleRate,"Trace"))return;if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls))return void c.display.error("Excluded Activity Urls should be an array");let d=function(t){if(void 0===t.allowedTracingUrls)return[];if(!Array.isArray(t.allowedTracingUrls))return void c.display.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void c.display.error("Service needs to be configured when tracing is enabled");let e=[];return t.allowedTracingUrls.forEach(t=>{(0,W.isMatchOption)(t)?e.push({match:t,propagatorTypes:K}):(0,Q.isTracingOption)(t)?e.push(t):c.display.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}(t);if(!d)return;let u=(0,H.validateAndBuildConfiguration)(t,e),h=function(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return c.display.warn("allowedGraphQlUrls should be an array"),[];let e=[];return t.allowedGraphQlUrls.forEach(t=>{(0,W.isMatchOption)(t)?e.push({match:t,trackPayload:!1}):t&&"object"==typeof t&&"match"in t&&(0,W.isMatchOption)(t.match)&&e.push({match:t.match,trackPayload:!!t.trackPayload})}),e}(t);if(!u)return;let p=null!=(r=t.sessionReplaySampleRate)?r:0;return{applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:p,startSessionReplayRecordingManually:void 0!==t.startSessionReplayRecordingManually?!!t.startSessionReplayRecordingManually:0===p,traceSampleRate:null!=(a=t.traceSampleRate)?a:100,rulePsr:(0,J.isNumber)(t.traceSampleRate)?t.traceSampleRate/100:void 0,allowedTracingUrls:d,excludedActivityUrls:null!=(n=t.excludedActivityUrls)?n:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!(null==(i=t.trackUserInteractions)||i),trackViewsManually:!!t.trackViewsManually,trackResources:!!(null==(o=t.trackResources)||o),trackLongTasks:!!(null==(s=t.trackLongTasks)||s),trackBfcacheViews:!!t.trackBfcacheViews,trackEarlyRequests:!!t.trackEarlyRequests,subdomain:t.subdomain,defaultPrivacyLevel:(0,Y.objectHasValue)(H.DefaultPrivacyLevel,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:H.DefaultPrivacyLevel.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,traceContextInjection:(0,Y.objectHasValue)(H.TraceContextInjection,t.traceContextInjection)?t.traceContextInjection:H.TraceContextInjection.SAMPLED,plugins:t.plugins||[],trackFeatureFlagsForEvents:t.trackFeatureFlagsForEvents||[],profilingSampleRate:null!=(l=t.profilingSampleRate)?l:0,propagateTraceBaggage:!!t.propagateTraceBaggage,allowedGraphQlUrls:h,...u}}(t,a);if(m){if(!g&&!m.sessionStoreStrategyType)return void c.display.warn("No storage available for session. We will not send any data.");if(m.compressIntakeRequests&&!g&&e&&!(o=e(m,"Datadog RUM",O.noop)))return;d=m,(0,$.initFetchObservable)().subscribe(O.noop),r.tryToInit(m.trackingConsent),z()}}let E=t=>{_.add(e=>e.addDurationVital(t))};return{init(e,r,a){e?((0,j.initFeatureFlags)(e.enableExperimentalFeatures),s=e,t&&(0,M.willSyntheticsInjectRum)()||(N(e.plugins,"onInit",{initConfiguration:e,publicApi:r}),e.remoteConfigurationId?tu(e,{user:m,context:g}).then(t=>{t&&R(t,a)}).catch(l.monitorError):R(e,a))):c.display.error("Missing configuration")},get initConfiguration(){return s},getInternalContext:O.noop,stopSession:O.noop,addTiming(t,e=(0,w.timeStampNow)()){_.add(r=>r.addTiming(t,e))},startView(t,e=(0,w.clocksNow)()){let r=r=>{r.startView(t,e)};_.add(r),i||(i={options:t,callback:r},z())},setViewName(t){_.add(e=>e.setViewName(t))},setViewContext(t){_.add(e=>e.setViewContext(t))},setViewContextProperty(t,e){_.add(r=>r.setViewContextProperty(t,e))},getViewContext:()=>k,globalContext:g,userContext:m,accountContext:y,addAction(t){_.add(e=>e.addAction(t))},addError(t){_.add(e=>e.addError(t))},addFeatureFlagEvaluation(t,e){_.add(r=>r.addFeatureFlagEvaluation(t,e))},startDurationVital:(t,e)=>(0,F.startDurationVital)(a,t,e),stopDurationVital(t,e){(0,F.stopDurationVital)(E,a,t,e)},addDurationVital:E,addOperationStepVital:(t,e,r,a)=>{_.add(n=>n.addOperationStepVital((0,x.sanitize)(t),e,(0,x.sanitize)(r),(0,x.sanitize)(a)))}}}(a,i,o,(n,l,c)=>{var d,u;let h=l&&a.createDeflateEncoder?t=>a.createDeflateEncoder(n,l,t):R,p=t(n,e,r,c,h,i,o,s,a.sdkName);return e.onRumStart(p.lifeCycle,n,p.session,p.viewHistory,l,p.telemetry),r.onRumStart(p.lifeCycle,p.hooks,n,p.session,p.viewHistory,h),d=z,u=p,z={init:t=>{S("DD_RUM",t)},initConfiguration:d.initConfiguration,...u},N(n.plugins,"onRumStart",{strategy:z,addEvent:p.addEvent}),p}),X=()=>z,tt=(0,l.monitor)(t=>{z.startView("object"==typeof t?t:{name:t}),(0,v.addTelemetryUsage)({feature:"start-view"})}),te=(Object.defineProperty(n={version:"6.23.0",onReady(t){t()},...{init:t=>{let e=Error().stack;(0,l.callMonitored)(()=>z.init(t,te,e))},setTrackingConsent:(0,l.monitor)(t=>{i.update(t),(0,v.addTelemetryUsage)({feature:"set-tracking-consent",tracking_consent:t})}),setViewName:(0,l.monitor)(t=>{z.setViewName(t),(0,v.addTelemetryUsage)({feature:"set-view-name"})}),setViewContext:(0,l.monitor)(t=>{z.setViewContext(t),(0,v.addTelemetryUsage)({feature:"set-view-context"})}),setViewContextProperty:(0,l.monitor)((t,e)=>{z.setViewContextProperty(t,e),(0,v.addTelemetryUsage)({feature:"set-view-context-property"})}),getViewContext:(0,l.monitor)(()=>((0,v.addTelemetryUsage)({feature:"set-view-context-property"}),z.getViewContext())),getInternalContext:(0,l.monitor)(t=>z.getInternalContext(t)),getInitConfiguration:(0,l.monitor)(()=>(0,b.deepClone)(z.initConfiguration)),addAction:(t,e)=>{let r=(0,k.createHandlingStack)("action");(0,l.callMonitored)(()=>{z.addAction({name:(0,x.sanitize)(t),context:(0,x.sanitize)(e),startClocks:(0,w.clocksNow)(),type:D.ActionType.CUSTOM,handlingStack:r}),(0,v.addTelemetryUsage)({feature:"add-action"})})},addError:(t,e)=>{let r=(0,k.createHandlingStack)("error");(0,l.callMonitored)(()=>{z.addError({error:t,handlingStack:r,context:(0,x.sanitize)(e),startClocks:(0,w.clocksNow)()}),(0,v.addTelemetryUsage)({feature:"add-error"})})},addTiming:(0,l.monitor)((t,e)=>{z.addTiming((0,x.sanitize)(t),e)}),setGlobalContext:U(X,h,_,"set-global-context"),getGlobalContext:U(X,h,f,"get-global-context"),setGlobalContextProperty:U(X,h,g,"set-global-context-property"),removeGlobalContextProperty:U(X,h,m,"remove-global-context-property"),clearGlobalContext:U(X,h,y,"clear-global-context"),setUser:U(X,u,_,"set-user"),getUser:U(X,u,f,"get-user"),setUserProperty:U(X,u,g,"set-user-property"),removeUserProperty:U(X,u,m,"remove-user-property"),clearUser:U(X,u,y,"clear-user"),setAccount:U(X,p,_,"set-account"),getAccount:U(X,p,f,"get-account"),setAccountProperty:U(X,p,g,"set-account-property"),removeAccountProperty:U(X,p,m,"remove-account-property"),clearAccount:U(X,p,y,"clear-account"),startView:tt,stopSession:(0,l.monitor)(()=>{z.stopSession(),(0,v.addTelemetryUsage)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,l.monitor)((t,e)=>{z.addFeatureFlagEvaluation((0,x.sanitize)(t),(0,x.sanitize)(e)),(0,v.addTelemetryUsage)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,l.monitor)(()=>e.getSessionReplayLink()),startSessionReplayRecording:(0,l.monitor)(t=>{e.start(t),(0,v.addTelemetryUsage)({feature:"start-session-replay-recording",force:t&&t.force})}),stopSessionReplayRecording:(0,l.monitor)(()=>e.stop()),addDurationVital:(0,l.monitor)((t,e)=>{(0,v.addTelemetryUsage)({feature:"add-duration-vital"}),z.addDurationVital({name:(0,x.sanitize)(t),type:D.VitalType.DURATION,startClocks:(0,w.timeStampToClocks)(e.startTime),duration:e.duration,context:(0,x.sanitize)(e&&e.context),description:(0,x.sanitize)(e&&e.description)})}),startDurationVital:(0,l.monitor)((t,e)=>((0,v.addTelemetryUsage)({feature:"start-duration-vital"}),z.startDurationVital((0,x.sanitize)(t),{context:(0,x.sanitize)(e&&e.context),description:(0,x.sanitize)(e&&e.description)}))),stopDurationVital:(0,l.monitor)((t,e)=>{(0,v.addTelemetryUsage)({feature:"stop-duration-vital"}),z.stopDurationVital("string"==typeof t?(0,x.sanitize)(t):t,{context:(0,x.sanitize)(e&&e.context),description:(0,x.sanitize)(e&&e.description)})}),startFeatureOperation:(0,l.monitor)((t,e)=>{(0,v.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"start"}),z.addOperationStepVital(t,"start",e)}),succeedFeatureOperation:(0,l.monitor)((t,e)=>{(0,v.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"succeed"}),z.addOperationStepVital(t,"end",e)}),failFeatureOperation:(0,l.monitor)((t,e,r)=>{(0,v.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"fail"}),z.addOperationStepVital(t,"end",r,e)})}},"_setDebug",{get:()=>l.setDebugMode,enumerable:!1}),n);return te}(t_.startRum,tN,{onRumStart:function(t,r,a,n,i,o){let s,c=n.findTrackedSession();if(!c||!(0,tI.isSampled)(c.id,a.profilingSampleRate))return;let u=(s={status:"starting"},r.register(0,({eventType:t})=>t!==D.RumEventType.VIEW&&t!==D.RumEventType.LONG_TASK?tP.SKIPPED:{type:t,_dd:{profiling:s}}),{get:()=>s,set:t=>{s=t}});void 0===(0,d.getGlobalObject)().Profiler?u.set({status:"error",error_reason:"not-supported-by-browser"}):tD().then(r=>{if(!r){(0,v.addTelemetryDebug)("[DD_RUM] Failed to lazy load the RUM Profiler"),u.set({status:"error",error_reason:"failed-to-lazy-load"});return}(e=r(a,t,n,u,o)).start(i.findView())}).catch(l.monitorError)},stop:()=>{null==e||e.stop().catch(l.monitorError)}},{startDeflateWorker:tz,createDeflateEncoder:ty,sdkName:"rum"});n=(0,d.getGlobalObject)(),(r=n[i="DD_RUM"])&&!r.q&&r.version&&c.display.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),n[i]=tL,r&&r.q&&r.q.forEach(t=>(0,s.catchUserErrors)(t,"onReady callback threw an error:")());var tV=t.i(81174),tM=t.i(693697),tO=t.i(204067),tj=t.i(796805);let t$=/^csp_violation: '([^']*)' blocked by '[^']+' directive/;function tB(t){return t$.exec(t??"")?.[1]}function tq(t){try{return new URL(t??"")}catch{return}}function tZ(t,e){let r=tq(tB(t));return void 0!==r&&"https:"===r.protocol&&e.some(t=>r.hostname===t.host&&r.pathname.startsWith(t.pathPrefix))}let tG=/^www\.google\.(?:[a-z]{2,3}|(?:co|com)\.[a-z]{2})$/,tW=["Invalid call to runtime.sendMessage()","userScripts is not defined"],tH=[{host:"lf-flow-web-cdn.doubao.com",pathPrefix:"/obj/flow-doubao/flow-ext-doubao/"},{host:"migaku-public-data.migaku.com",pathPrefix:"/fonts/"},{host:"at.alicdn.com",pathPrefix:"/t/"}],tY=/^\s*(?:at\s|\S*@)/;function tJ(t){return t.split("\n").filter(t=>tY.test(t))}let tQ=["chrome-extension://","moz-extension://","safari-extension://","safari-web-extension://"],tK=/[a-z][a-z0-9+.-]*:\/\/\S+/gi;function tX(t){let e=t.toLowerCase();return tQ.some(t=>e.startsWith(t))}function t0(t){let e=Array.from(t.matchAll(tK),t=>t[0]);return e.length>0&&e.every(tX)}function t1(t){if(!t)return!1;let e=tJ(t);return 0!==e.length&&e.every(t0)}var t2=t.i(258530);let t5=/Minified React error #418\b/,t3=/(?:^|\s)translated-(?:ltr|rtl)(?:\s|$)/,t6=/[a-z][a-z0-9+.-]*:\/\/[^\s/]+\/\S*?:\d+(?::\d+)?(?=[\s)\]]|$)/i,t8=[{host:"translate.google.com",pathPrefix:"/"},{host:"translate.googleapis.com",pathPrefix:"/"},{host:"fonts.gstatic.com",pathPrefix:"/s/i/productlogos/translate/"},{host:"yastatic.net",pathPrefix:"/s3/trbro/"}],t4=(0,t.i(948810).create)()(t=>({renderedRoute:null,pageNamedPathname:null,setRenderedRoute:e=>t({renderedRoute:e,pageNamedPathname:null}),setPageNamedRoute:e=>t({renderedRoute:e,pageNamedPathname:e.pathname})}));t.s(["useRenderedRouteStore",0,t4],387353);let t7=(a=new Set,t=>{let e=tB(t.message);if(void 0===e)return!1;let r=`${tq(e)?.origin??e}|${t.type??""}`;return!!a.has(r)||(a.add(r),!1)}),t9=[function(t){let e=t.error.message??"";return e.includes("HTMLLinkElement")||e.includes("HTMLScriptElement")||e.includes("HTMLImageElement")},function(t){return"source"===t.error.source&&void 0===t.error.type&&function(t){if(!t)return!1;let e=tJ(t);return 0!==e.length&&!e.some(t=>t6.test(t))}(t.error.stack)},function(t){return"source"===t.error.source&&void 0===t.error.type&&"No stack, consider using an instance of Error"===t.error.stack},function(t){let e;return"report"===t.error.source&&void 0!==(e=tq(tB(t.error.message)))&&"https:"===e.protocol&&tG.test(e.hostname)&&"/ads/ga-audiences"===e.pathname},function(t){return"report"===t.error.source&&tZ(t.error.message,t8)},function(t){return"report"===t.error.source&&"font-src"===t.error.type&&tZ(t.error.message,tH)},function(t){return"report"===t.error.source&&t7(t.error)},function(t){return"console"===t.error.source&&t1(t.error.handling_stack)},t=>{var e;return!!(e=t.error.message)&&tW.some(t=>e.includes(t))},t=>t1(t.error.stack)];function et(t,e){var r;return void 0===t.view.name&&(t.view.name=function(t,e){if(null===e)return;let r=(0,tM.wrap)(()=>new URL(t));if(!(0,tM.isErr)(r))return r.data.pathname===e.pathname?e.viewName:void 0}(t.view.url,t4.getState().renderedRoute)),"error"!==t.type||!t9.some(e=>e(t))&&(!function(t,e){var r;if(!(void 0!==(r=t.error.message)&&t5.test(r))||"u"tL.clearAccount());(0,tM.isErr)(t)&&(0,tV.wLog)("Failed to clear account in Datadog RUM")},"clearDatadogRumUser",0,function(){if(!ei)return;let t=(0,tM.wrap)(()=>tL.clearUser());(0,tM.isErr)(t)&&(0,tV.wLog)("Failed to clear user in Datadog RUM")},"initializeDatadogRum",0,function(){var t;let e;if(!("u"tL?.getInitConfiguration());if((0,tM.isErr)(r))return void(0,tV.wLog)("Failed to get Datadog RUM initialization configuration",{error:r.error instanceof Error?r.error.message:"Unknown error",stack:r.error instanceof Error?r.error.stack:void 0});if(!r.data){let t=(0,tM.wrap)(()=>tL.init(function(){var t;let e={applicationId:"dac3eb8f-42d6-4e2d-a4c1-e6b711a98f50",clientToken:"pubd1e5be262ac7d883ef4955f88eb3ed3f",site:"us5.datadoghq.com",service:o.default.env.NEXT_PUBLIC_DD_SERVICE??"openrouter-web",env:(t={configured:o.default.env.NEXT_PUBLIC_DD_ENV,vercelEnv:"production"}).vercelEnv===ea?ea:t.configured??t.vercelEnv??"development",version:"3f5ebdea0ba429a70cfc4e7dfb9ccba6ca997476"};if(!e.applicationId||!e.clientToken||!e.site)throw Error("Datadog RUM environment variables are not configured");let r={...ee,applicationId:e.applicationId,clientToken:e.clientToken,site:e.site,service:e.service,env:e.env,version:e.version,beforeSend:et},a=(0,tO.parseSchema)(er,r);if((0,tM.isErr)(a))throw(0,tV.wLog)("Datadog RUM initialization configuration is not valid",{error:a.error.message,config:JSON.stringify(r)}),Error(a.error.message);return r}()));if((0,tM.isErr)(t)){(0,tV.wLog)("Failed to initialize Datadog RUM, assuming already initialized",{error:t.error instanceof Error?t.error.message:"Unknown error",stack:t.error instanceof Error?t.error.stack:void 0}),ei=!0;return}}tL.startSessionReplayRecording(),ei=!0},"setDatadogRumAccount",0,function(t){if(!ei)return;let e=(0,tM.wrap)(()=>tL.setAccount(t));(0,tM.isErr)(e)&&(0,tV.wLog)("Failed to set account in Datadog RUM",{account:JSON.stringify(t)})},"setDatadogRumUser",0,function(t){if(!ei)return;let e=(0,tM.wrap)(()=>tL.setUser(t));(0,tM.isErr)(e)&&(0,tV.wLog)("Failed to set user in Datadog RUM",{user:JSON.stringify(t)})},"setDatadogRumViewName",0,function(t){if(!ei)return;let e=(0,tM.wrap)(()=>tL.setViewName(t));(0,tM.isErr)(e)&&(0,tV.wLog)("Failed to set view name in Datadog RUM",{view_name:t})},"trackError",0,function(t,e){if(!ei)return;let r=(0,tM.wrap)(()=>tL.addError(t,e));(0,tM.isErr)(r)&&(0,tV.wLog)("Failed to track error in Datadog RUM",{error:t.message,context:JSON.stringify(e)})}],615366)}]); //# sourceMappingURL=0lpm5kn23ilf5.js.map //# chunkId=01a0a0e4-f09e-7521-8143-3c7db92d72d5