@astropay/payments-lib 0.1.5 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astropay-payments-lib.es.js +1 -1
- package/dist/astropay-payments-lib.umd.js +2 -2
- package/dist/{main--VBDistj.js → main-1w_Hhk-H.js} +4 -4
- package/dist/{profiler-DGwCu-BH.js → profiler-DT2ixCdB.js} +1 -1
- package/dist/{startRecording-Bvdu2DrJ.js → startRecording-BCEjhzBl.js} +1 -1
- package/package.json +1 -1
|
@@ -513,12 +513,12 @@ ${n}`:""}`;await fi(r)}};function Vr(e,t,n){return t.includes(e)?e:n}const Jh=e=
|
|
|
513
513
|
${d}`,p=>{n.notifyAfterAddMessage(p-f)})}function a(d){return d!==void 0&&s[d]!==void 0}function c(d){const f=s[d];delete s[d];const h=e.estimateEncodedBytesCount(f);n.notifyAfterRemoveMessage(h)}function l(d,f){const h=Tn(d),p=e.estimateEncodedBytesCount(h);if(p>=r){q.warn(`Discarded a message whose size was bigger than the maximum allowed size ${r}KB. ${Ti} ${Wg}/#technical-limitations`);return}a(f)&&c(f),o(h,p,f)}function u(d){const f=eu(s).join(`
|
|
514
514
|
`);s={};const h=Uu(d.reason),p=h?t.sendOnExit:t.send;if(h&&e.isAsync){const m=e.finishSync();m.outputBytesCount&&p($u(m));const g=[m.pendingData,f].filter(Boolean).join(`
|
|
515
515
|
`);g&&p({data:g,bytesCount:Kl(g)})}else f&&e.write(e.isEmpty?f:`
|
|
516
|
-
${f}`),e.finish(m=>{p($u(m))})}return{flushController:n,add:l,upsert:l,stop:i.unsubscribe}}function $u(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function my({messagesLimit:e,bytesLimit:t,durationLimit:n,pageMayExitObservable:r,sessionExpireObservable:s}){const i=r.subscribe(p=>u(p.reason)),o=s.subscribe(()=>u("session_expire")),a=new X(()=>()=>{i.unsubscribe(),o.unsubscribe()});let c=0,l=0;function u(p){if(l===0)return;const m=l,g=c;l=0,c=0,h(),a.notify({reason:p,messagesCount:m,bytesCount:g})}let d;function f(){d===void 0&&(d=me(()=>{u("duration_limit")},n))}function h(){Me(d),d=void 0}return{flushObservable:a,get messagesCount(){return l},notifyBeforeAddMessage(p){c+p>=t&&u("bytes_limit"),l+=1,c+=p,f()},notifyAfterAddMessage(p=0){c+=p,l>=e?u("messages_limit"):c>=t&&u("bytes_limit")},notifyAfterRemoveMessage(p){c-=p,l-=1,l===0&&h()}}}function gy(e,t,n,r,s,i,o=hy){const a=l(e,t),c=n&&l(e,n);function l(u,{endpoint:d,encoder:f}){return o({encoder:f,request:Du(d,u.batchBytesLimit,r),flushController:my({messagesLimit:u.batchMessagesLimit,bytesLimit:u.batchBytesLimit,durationLimit:u.flushTimeout,pageMayExitObservable:s,sessionExpireObservable:i}),messageBytesLimit:u.messageBytesLimit})}return{flushObservable:a.flushController.flushObservable,add(u,d=!0){a.add(u),c&&d&&c.add(n.transformMessage?n.transformMessage(u):u)},upsert:(u,d)=>{a.upsert(u,d),c&&c.upsert(n.transformMessage?n.transformMessage(u):u,d)},stop:()=>{a.stop(),c&&c.stop()}}}function yy(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const s=Kl(n);t+=s,e+=n,r&&r(s)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}class by{constructor(){this.callbacks={}}notify(t,n){const r=this.callbacks[t];r&&r.forEach(s=>s(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(r=>n!==r)}}}}function Ji(e,t,n){let r=0,s=!1;return{isLimitReached(){if(r===0&&me(()=>{r=0},Ne),r+=1,r<=t||s)return s=!1,!1;if(r===t+1){s=!0;try{n({message:`Reached max number of ${e}s by minute: ${t}`,source:Ln.AGENT,startClocks:Re()})}finally{s=!1}}return!0}}}function Xi(e,t,n){return document.readyState===t||document.readyState==="complete"?(n(),{stop:G}):ne(e,window,t==="complete"?"load":"DOMContentLoaded",n,{once:!0})}function wy(e,t){return new Promise(n=>{Xi(e,t,n)})}let Qi;const eo=new WeakMap;function vy(e){return Qi||(Qi=_y(e)),Qi}function _y(e){return new X(t=>{const{stop:n}=De(XMLHttpRequest.prototype,"open",Sy),{stop:r}=De(XMLHttpRequest.prototype,"send",i=>{Ey(i,e,t)},{computeHandlingStack:!0}),{stop:s}=De(XMLHttpRequest.prototype,"abort",Cy);return()=>{n(),r(),s()}})}function Sy({target:e,parameters:[t,n]}){eo.set(e,{state:"open",method:String(t).toUpperCase(),url:Ui(String(n))})}function Ey({target:e,handlingStack:t},n,r){const s=eo.get(e);if(!s)return;const i=s;i.state="start",i.startClocks=Re(),i.isAborted=!1,i.xhr=e,i.handlingStack=t;let o=!1;const{stop:a}=De(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&c()}),c=()=>{if(l(),a(),o)return;o=!0;const u=s;u.state="complete",u.duration=ve(i.startClocks.timeStamp,he()),u.status=e.status,r.notify(gr(u))},{stop:l}=ne(n,e,"loadend",c);r.notify(i)}function Cy({target:e}){const t=eo.get(e);t&&(t.isAborted=!0)}let to;function Vu(){return to||(to=xy()),to}function xy(){return new X(e=>{if(!window.fetch)return;const{stop:t}=De(window,"fetch",n=>Iy(n,e),{computeHandlingStack:!0});return t})}function Iy({parameters:e,onPostCall:t,handlingStack:n},r){const[s,i]=e;let o=i&&i.method;o===void 0&&s instanceof Request&&(o=s.method);const a=o!==void 0?String(o).toUpperCase():"GET",c=s instanceof Request?s.url:Ui(String(s)),l=Re(),u={state:"start",init:i,input:s,method:a,startClocks:l,url:c,handlingStack:n};r.notify(u),e[0]=u.input,e[1]=u.init,t(d=>Ty(r,d,u))}function Ty(e,t,n){const r=n;function s(i){r.state="resolve",Object.assign(r,i),e.notify(r)}t.then($(i=>{s({response:i,responseType:i.type,status:i.status,isAborted:!1})}),$(i=>{var o,a;s({status:0,isAborted:((a=(o=r.init)===null||o===void 0?void 0:o.signal)===null||a===void 0?void 0:a.aborted)||i instanceof DOMException&&i.code===DOMException.ABORT_ERR,error:i})}))}function zu(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback($(e),t);return()=>window.cancelIdleCallback(n)}return Ry(e)}const Ay=50;function Ry(e){const t=Ke(),n=me(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,Ay-(Ke()-t))})},0);return()=>Me(n)}const ky=xe,Py=30;function Oy(){const e=[];function t(r){let s;if(r.didTimeout){const i=performance.now();s=()=>Py-(performance.now()-i)}else s=r.timeRemaining.bind(r);for(;s()>0&&e.length;)e.shift()();e.length&&n()}function n(){zu(t,{timeout:ky})}return{push(r){e.push(r)===1&&n()}}}let no={};function Ly(e){const t=e.map(n=>(no[n]||(no[n]=Ny(n)),no[n]));return Zl(...t)}function Ny(e){return new X(t=>{const n=It[e];return It[e]=(...r)=>{n.apply(console,r);const s=_s("console error");Kt(()=>{t.notify(My(r,e,s))})},()=>{It[e]=n}})}function My(e,t,n){const r=e.map(i=>Dy(i)).join(" ");let s;if(t===is.error){const i=e.find(Ut);s={stack:i?On(Bt(i)):void 0,fingerprint:wu(i),causes:i?_u(i,"console"):void 0,startClocks:Re(),message:r,source:Ln.CONSOLE,handling:"handled",handlingStack:n,context:vu(i),originalError:i}}return{api:t,message:r,error:s,handlingStack:n}}function Dy(e){return typeof e=="string"?ce(e):Ut(e)?gu(Bt(e)):Tn(ce(e),void 0,2)}function Fy(e){const t=en(e)==="object";return t||q.error("Unsupported context:",e),t}function ro(e,t,n){const r={...e};for(const[s,{required:i,type:o}]of Object.entries(t))o==="string"&&s in r&&(r[s]=String(r[s])),i&&!(s in e)&&q.warn(`The property ${s} of ${n} is required; context will not be sent to the intake.`);return r}function Cs(e="",{propertiesConfig:t={}}={}){let n={};const r=new X,s={getContext:()=>Ki(n),setContext:i=>{Fy(i)?n=ce(ro(i,t,e)):s.clearContext(),r.notify()},setContextProperty:(i,o)=>{n=ce(ro({...n,[i]:o},t,e)),r.notify()},removeContextProperty:i=>{delete n[i],ro(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return s}const By="_dd_c",Uy=[];function so(e,t,n,r){const s=$y(n,r);Uy.push(ne(e,window,"storage",({key:l})=>{s===l&&o()})),t.changeObservable.subscribe(a);const i=it(c(),t.getContext());Gt(i)||t.setContext(i);function o(){t.setContext(c())}function a(){localStorage.setItem(s,JSON.stringify(t.getContext()))}function c(){const l=localStorage.getItem(s);return l?JSON.parse(l):{}}}function $y(e,t){return`${By}_${e}_${t}`}const ge={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},Pe={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function Vy(e,t,n){const r=e.getReader();let s=0;i();function i(){r.read().then($(a=>{if(a.done){o();return}s+=a.value.length,s>n.bytesLimit?o():i()}),$(a=>t(a)))}function o(){r.cancel().catch(G),t(void 0,void 0,void 0)}}const zy="datadog-synthetics-public-id",Hy="datadog-synthetics-result-id",jy="datadog-synthetics-injects-rum";function Hu(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||Ft(jy))}function Wy(){const e=window._DATADOG_SYNTHETICS_PUBLIC_ID||Ft(zy);return typeof e=="string"?e:void 0}function qy(){const e=window._DATADOG_SYNTHETICS_RESULT_ID||Ft(Hy);return typeof e=="string"?e:void 0}function io(e){const t=en(e);return t==="string"||t==="function"||e instanceof RegExp}function ju(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(s){q.error(s)}return!1})}function Gy(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function Ky(e,t,n){function r(i){return!t.wasInPageStateDuringPeriod("frozen",i.startClocks.relative,i.duration)}function s(i){r(i)&&e.notify(12,Zy(i))}return{addDurationVital:s,startDurationVital:(i,o={})=>Wu(n,i,o),stopDurationVital:(i,o={})=>{qu(s,n,i,o)}}}function Wu({vitalsByName:e,vitalsByReference:t},n,r={}){const s={name:n,startClocks:Re(),context:r.context,description:r.description},i={__dd_vital_reference:!0};return e.set(n,s),t.set(i,s),i}function qu(e,{vitalsByName:t,vitalsByReference:n},r,s={}){const i=typeof r=="string"?t.get(r):n.get(r);i&&(e(Yy(i,i.startClocks,s,Re())),typeof r=="string"?t.delete(r):n.delete(r))}function Yy(e,t,n,r){var s;return{name:e.name,type:"duration",startClocks:t,duration:ve(t.timeStamp,r.timeStamp),context:it(e.context,n.context),description:(s=n.description)!==null&&s!==void 0?s:e.description}}function Zy(e,t){const n={date:e.startClocks.timeStamp,vital:{id:_e(),type:e.type,name:e.name,duration:B(e.duration),description:e.description},type:"vital"};return n._dd={vital:{computed_value:!0}},{rawRumEvent:n,startTime:e.startClocks.relative,duration:e.duration,customerContext:e.context,domainContext:{}}}function Gu(e,t,n){if(e)for(const r of e){const s=r[t];s&&s(n)}}function Jy(){return Yu(64)}function Ku(){return Yu(63)}function Yu(e){const t=crypto.getRandomValues(new Uint32Array(2));return e===63&&(t[t.length-1]>>>=1),{toString(n=10){let r=t[1],s=t[0],i="";do{const o=r%n*4294967296+s;r=Math.floor(r/n),s=Math.floor(o/n),i=(o%n).toString(n)+i}while(r||s);return i}}}function Bn(e){return e.toString(16).padStart(16,"0")}let xs;function Xy(e,t){if(t===100)return!0;if(t===0)return!1;if(xs&&e===xs.sessionId)return xs.decision;let n;return window.BigInt?n=Qy(BigInt(`0x${e.split("-")[4]}`),t):n=Nt(t),xs={sessionId:e,decision:n},n}function Qy(e,t){const n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000"),s=e*n%r;return Number(s)<=t/100*Number(r)}function eb(e){const t=e;return en(t)==="object"&&io(t.match)&&Array.isArray(t.propagatorTypes)}function tb(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function nb(e,t,n){return{clearTracingIfNeeded:tb,traceFetch:r=>Zu(e,r,t,n,s=>{var i;if(r.input instanceof Request&&!(!((i=r.init)===null||i===void 0)&&i.headers))r.input=new Request(r.input),Object.keys(s).forEach(o=>{r.input.headers.append(o,s[o])});else{r.init=gr(r.init);const o=[];r.init.headers instanceof Headers?r.init.headers.forEach((a,c)=>{o.push([c,a])}):Array.isArray(r.init.headers)?r.init.headers.forEach(a=>{o.push(a)}):r.init.headers&&Object.keys(r.init.headers).forEach(a=>{o.push([a,r.init.headers[a]])}),r.init.headers=o.concat(Mi(s))}}),traceXhr:(r,s)=>Zu(e,r,t,n,i=>{Object.keys(i).forEach(o=>{s.setRequestHeader(o,i[o])})})}}function Zu(e,t,n,r,s){const i=n.findTrackedSession();if(!i)return;const o=e.allowedTracingUrls.find(l=>ju([l.match],t.url,!0));if(!o)return;const a=Xy(i.id,e.traceSampleRate);(a||e.traceContextInjection===$i.ALL)&&(t.traceSampled=a,t.traceId=Jy(),t.spanId=Ku(),s(rb(t.traceId,t.spanId,t.traceSampled,o.propagatorTypes,r,e)))}function rb(e,t,n,r,s,i){const o={};if(r.forEach(a=>{switch(a){case"datadog":{Object.assign(o,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break}case"tracecontext":{Object.assign(o,{traceparent:`00-0000000000000000${Bn(e)}-${Bn(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break}case"b3":{Object.assign(o,{b3:`${Bn(e)}-${Bn(t)}-${n?"1":"0"}`});break}case"b3multi":{Object.assign(o,{"X-B3-TraceId":Bn(e),"X-B3-SpanId":Bn(t),"X-B3-Sampled":n?"1":"0"});break}}}),vs(Qt.USER_ACCOUNT_TRACE_HEADER)&&i.propagateTraceBaggage){const a=s().user.id,c=s().account.id,l=[];typeof a=="string"&&l.push(`usr.id=${encodeURIComponent(a)}`),typeof c=="string"&&l.push(`account.id=${encodeURIComponent(c)}`),l.length>0&&(o.baggage=l.join(","))}return o}const Ju=["tracecontext","datadog"];function sb(e){var t,n,r,s,i,o,a;if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&q.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){q.error("Application ID is not configured, no RUM data will be collected.");return}if(!kn(e.sessionReplaySampleRate,"Session Replay")||!kn(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){q.error("Excluded Activity Urls should be an array");return}const c=ib(e);if(!c)return;const l=Q1(e);if(!l)return;const u=vs(Qt.PROFILING),d=(t=e.sessionReplaySampleRate)!==null&&t!==void 0?t:0;return{applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:d,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:d===0,traceSampleRate:(n=e.traceSampleRate)!==null&&n!==void 0?n:100,rulePsr:pr(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:c,excludedActivityUrls:(r=e.excludedActivityUrls)!==null&&r!==void 0?r:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(!((s=e.trackUserInteractions)!==null&&s!==void 0)||s),trackViewsManually:!!e.trackViewsManually,trackResources:!!(!((i=e.trackResources)!==null&&i!==void 0)||i),trackLongTasks:!!(!((o=e.trackLongTasks)!==null&&o!==void 0)||o),subdomain:e.subdomain,defaultPrivacyLevel:ls(vr,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:vr.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:ls($i,e.traceContextInjection)?e.traceContextInjection:$i.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:u&&(a=e.profilingSampleRate)!==null&&a!==void 0?a:0,propagateTraceBaggage:!!e.propagateTraceBaggage,...l}}function ib(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){q.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){q.error("Service needs to be configured when tracing is enabled");return}const t=[];return e.allowedTracingUrls.forEach(n=>{io(n)?t.push({match:n,propagatorTypes:Ju}):eb(n)?t.push(n):q.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function ob(e){const t=new Set;return Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0&&e.allowedTracingUrls.forEach(n=>{io(n)?Ju.forEach(r=>t.add(r)):en(n)==="object"&&Array.isArray(n.propagatorTypes)&&n.propagatorTypes.forEach(r=>t.add(r))}),Array.from(t)}function ab(e){var t;const n=e0(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0,selected_tracing_propagators:ob(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(e.excludedActivityUrls)&&e.excludedActivityUrls.length>0,use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:(t=e.plugins)===null||t===void 0?void 0:t.map(r=>{var s;return{name:r.name,...(s=r.getConfigurationTelemetry)===null||s===void 0?void 0:s.call(r)}}),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,...n}}const cb="v1";function lb(e,t){db(e,n=>{t(ub(e,n))})}function ub(e,t){return{...e,...t}}function db(e,t){const n=new XMLHttpRequest;ne(e,n,"load",function(){if(n.status===200){const r=JSON.parse(n.responseText);t(r.rum)}else Xu()}),ne(e,n,"error",function(){Xu()}),n.open("GET",fb(e)),n.send()}function fb(e){return`https://sdk-configuration.${hu("rum",e)}/${cb}/${encodeURIComponent(e.remoteConfigurationId)}.json`}function Xu(){q.error("Error fetching the remote configuration.")}function pb(e){const t=Qu();return e.storeContextsAcrossPages&&so(e,t,"rum",2),t}function Qu(){return Cs("global context")}function hb(e){const t=ed();return e.storeContextsAcrossPages&&so(e,t,"rum",1),t}function ed(){return Cs("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function mb(e){const t=td();return e.storeContextsAcrossPages&&so(e,t,"rum",4),t}function td(){return Cs("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function gb({ignoreInitIfSyntheticsWillInjectRum:e,startDeflateWorker:t},n,r,s){const i=Tu(),o=Qu();oo(o,ge.globalContext,i);const a=ed();oo(a,ge.userContext,i);const c=td();oo(c,ge.accountContext,i);let l,u,d,f;const h=n.observable.subscribe(m),p={};function m(){if(!d||!f||!n.isGranted())return;h.unsubscribe();let w;if(f.trackViewsManually){if(!l)return;i.remove(l.callback),w=l.options}const S=s(f,u,w);i.drain(S)}function g(w){const S=nn();if(S&&(w=yb(w)),d=w,H0(ab(w)),f){Su("DD_RUM",w);return}const O=sb(w);if(O){if(!S&&!O.sessionStoreStrategyType){q.warn("No storage available for session. We will not send any data.");return}O.compressIntakeRequests&&!S&&t&&(u=t(O,"Datadog RUM",G),!u)||(f=O,Vu().subscribe(G),n.tryToInit(O.trackingConsent),m())}}const b=w=>{i.add(S=>S.addDurationVital(w))};return{init(w,S){if(!w){q.error("Missing configuration");return}t0(w.enableExperimentalFeatures),d=w,!(e&&Hu())&&(Gu(w.plugins,"onInit",{initConfiguration:w,publicApi:S}),w.remoteConfigurationId?lb(w,g):g(w))},get initConfiguration(){return d},getInternalContext:G,stopSession:G,addTiming(w,S=he()){i.add(O=>O.addTiming(w,S))},startView(w,S=Re()){const O=A=>{A.startView(w,S)};i.add(O),l||(l={options:w,callback:O},m())},setViewName(w){i.add(S=>S.setViewName(w))},setViewContext(w){i.add(S=>S.setViewContext(w))},setViewContextProperty(w,S){i.add(O=>O.setViewContextProperty(w,S))},getViewContext:()=>p,globalContext:o,userContext:a,accountContext:c,addAction(w){i.add(S=>S.addAction(w))},addError(w){i.add(S=>S.addError(w))},addFeatureFlagEvaluation(w,S){i.add(O=>O.addFeatureFlagEvaluation(w,S))},startDurationVital(w,S){return Wu(r,w,S)},stopDurationVital(w,S){qu(b,r,w,S)},addDurationVital:b}}function yb(e){var t,n;return{...e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(n=Dn())===null||n===void 0?void 0:n.getPrivacyLevel()}}function oo(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.add(s=>s[t].setContext(r))})}function bb(e,t,n,r={}){const s=L1(),i=Gy();let o=gb(r,s,i,(u,d,f)=>{const h=e(u,t,n,f,d&&r.createDeflateEncoder?p=>r.createDeflateEncoder(u,d,p):yy,s,i);return t.onRumStart(h.lifeCycle,u,h.session,h.viewHistory,d),n.onRumStart(h.lifeCycle,u,h.session,h.viewHistory),o=wb(o,h),Gu(u.plugins,"onRumStart",{strategy:o}),h});const a=$(u=>{const d=typeof u=="object"?u:{name:u};o.startView(d),ke({feature:"start-view"})});function c(u,d,f){return $((...h)=>(ke({feature:f}),o[u][d](...h)))}const l=A0({init:$(u=>{o.init(u,l)}),setTrackingConsent:$(u=>{s.update(u),ke({feature:"set-tracking-consent",tracking_consent:u})}),setViewName:$(u=>{o.setViewName(u),ke({feature:"set-view-name"})}),setViewContext:$(u=>{o.setViewContext(u),ke({feature:"set-view-context"})}),setViewContextProperty:$((u,d)=>{o.setViewContextProperty(u,d),ke({feature:"set-view-context-property"})}),getViewContext:$(()=>(ke({feature:"set-view-context-property"}),o.getViewContext())),getInternalContext:$(u=>o.getInternalContext(u)),getInitConfiguration:$(()=>Ki(o.initConfiguration)),addAction:(u,d)=>{const f=_s("action");Kt(()=>{o.addAction({name:ce(u),context:ce(d),startClocks:Re(),type:"custom",handlingStack:f}),ke({feature:"add-action"})})},addError:(u,d)=>{const f=_s("error");Kt(()=>{o.addError({error:u,handlingStack:f,context:ce(d),startClocks:Re()}),ke({feature:"add-error"})})},addTiming:$((u,d)=>{o.addTiming(ce(u),d)}),setGlobalContext:c(ge.globalContext,Pe.setContext,"set-global-context"),getGlobalContext:c(ge.globalContext,Pe.getContext,"get-global-context"),setGlobalContextProperty:c(ge.globalContext,Pe.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:c(ge.globalContext,Pe.removeContextProperty,"remove-global-context-property"),clearGlobalContext:c(ge.globalContext,Pe.clearContext,"clear-global-context"),setUser:c(ge.userContext,Pe.setContext,"set-user"),getUser:c(ge.userContext,Pe.getContext,"get-user"),setUserProperty:c(ge.userContext,Pe.setContextProperty,"set-user-property"),removeUserProperty:c(ge.userContext,Pe.removeContextProperty,"remove-user-property"),clearUser:c(ge.userContext,Pe.clearContext,"clear-user"),setAccount:c(ge.accountContext,Pe.setContext,"set-account"),getAccount:c(ge.accountContext,Pe.getContext,"get-account"),setAccountProperty:c(ge.accountContext,Pe.setContextProperty,"set-account-property"),removeAccountProperty:c(ge.accountContext,Pe.removeContextProperty,"remove-account-property"),clearAccount:c(ge.accountContext,Pe.clearContext,"clear-account"),startView:a,stopSession:$(()=>{o.stopSession(),ke({feature:"stop-session"})}),addFeatureFlagEvaluation:$((u,d)=>{o.addFeatureFlagEvaluation(ce(u),ce(d)),ke({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:$(()=>t.getSessionReplayLink()),startSessionReplayRecording:$(u=>{t.start(u),ke({feature:"start-session-replay-recording",force:u&&u.force})}),stopSessionReplayRecording:$(()=>t.stop()),addDurationVital:$((u,d)=>{ke({feature:"add-duration-vital"}),o.addDurationVital({name:ce(u),type:"duration",startClocks:Gg(d.startTime),duration:d.duration,context:ce(d&&d.context),description:ce(d&&d.description)})}),startDurationVital:$((u,d)=>(ke({feature:"start-duration-vital"}),o.startDurationVital(ce(u),{context:ce(d&&d.context),description:ce(d&&d.description)}))),stopDurationVital:$((u,d)=>{ke({feature:"stop-duration-vital"}),o.stopDurationVital(typeof u=="string"?ce(u):u,{context:ce(d&&d.context),description:ce(d&&d.description)})})});return l}function wb(e,t){return{init:n=>{Su("DD_RUM",n)},initConfiguration:e.initConfiguration,...t}}function vb(){const e=nd();return new X(t=>{if(!e)return;const n=new e($(()=>t.notify()));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function nd(){let e;const t=window;if(t.Zone&&(e=Mt(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){const n=new t.MutationObserver(G),r=Mt(n,"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}function _b(){const e=new X,{stop:t}=De(window,"open",()=>e.notify());return{observable:e,stop:t}}function Sb(e,t,n,r,s){return{get:i=>{const o=n.findView(i),a=s.findUrl(i),c=t.findTrackedSession(i);if(c&&o&&a){const l=r.findActionId(i);return{application_id:e,session_id:c.id,user_action:l?{id:l}:void 0,view:{id:o.id,name:o.name,referrer:a.referrer,url:a.url}}}}}}const Eb=by,Cb=Yt;function xb(e){const t=Mn({expireDelay:Cb});e.subscribe(1,r=>{t.add(n(r),r.startClocks.relative)}),e.subscribe(6,({endClocks:r})=>{t.closeActive(r.relative)}),e.subscribe(3,r=>{const s=t.find(r.startClocks.relative);s&&r.name&&(s.name=r.name),s&&r.context&&(s.context=r.context)}),e.subscribe(10,()=>{t.reset()});function n(r){return{service:r.service,version:r.version,context:r.context,id:r.id,name:r.name,startClocks:r.startClocks}}return{findView:r=>t.find(r),getAllEntries:()=>t.getAllEntries(),getDeletedEntries:()=>t.getDeletedEntries(),stop:()=>{t.stop()}}}const rd="initial_document",Ib=[["document",e=>rd===e],["xhr",e=>e==="xmlhttprequest"],["fetch",e=>e==="fetch"],["beacon",e=>e==="beacon"],["css",(e,t)=>/\.css$/i.test(t)],["js",(e,t)=>/\.js$/i.test(t)],["image",(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],["font",(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],["media",(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function Tb(e){const t=e.name;if(!N1(t))return At(`Failed to construct URL for "${e.name}"`),"other";const n=M1(t);for(const[r,s]of Ib)if(s(e.initiatorType,n))return r;return"other"}function sd(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function Ab(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function id(e){const{duration:t,startTime:n,responseEnd:r}=e;return t===0&&n<r?ve(n,r):t}function Rb(e){if(!ad(e))return;const{startTime:t,fetchStart:n,workerStart:r,redirectStart:s,redirectEnd:i,domainLookupStart:o,domainLookupEnd:a,connectStart:c,secureConnectionStart:l,connectEnd:u,requestStart:d,responseStart:f,responseEnd:h}=e,p={download:rn(t,f,h),first_byte:rn(t,d,f)};return 0<r&&r<n&&(p.worker=rn(t,r,n)),n<u&&(p.connect=rn(t,c,u),c<=l&&l<=u&&(p.ssl=rn(t,l,u))),n<a&&(p.dns=rn(t,o,a)),t<i&&(p.redirect=rn(t,s,i)),p}function od(e){return e.duration>=0}function ad(e){const t=sd(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=kb(e)?sd(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function kb(e){return e.redirectEnd>e.startTime}function rn(e,t,n){if(e<=t&&t<=n)return{duration:B(ve(t,n)),start:B(ve(e,t))}}function cd(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function ld(e){return e.deliveryType===""?"other":e.deliveryType}function Pb(e){if(e.startTime<e.responseStart){const{encodedBodySize:t,decodedBodySize:n,transferSize:r}=e;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function ao(e){return e&&!J1(e)}const Ob=/data:(.+)?(;base64)?,/g,ud=24e3;function dd(e){return e.length<=ud?!1:e.substring(0,5)==="data:"?(e=e.substring(0,ud),!0):!1}function fd(e){return`${e.match(Ob)[0]}[...]`}let pd=1;function Lb(e,t,n,r){const s=nb(t,n,r);Nb(e,t,s),Mb(e,s)}function Nb(e,t,n){const r=vy(t).subscribe(s=>{const i=s;if(ao(i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=hd(),e.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),e.notify(8,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"xhr",url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack});break}});return{stop:()=>r.unsubscribe()}}function Mb(e,t){const n=Vu().subscribe(r=>{const s=r;if(ao(s.url))switch(s.state){case"start":t.traceFetch(s),s.requestIndex=hd(),e.notify(7,{requestIndex:s.requestIndex,url:s.url});break;case"resolve":Db(s,i=>{t.clearTracingIfNeeded(s),e.notify(8,{duration:i,method:s.method,requestIndex:s.requestIndex,responseType:s.responseType,spanId:s.spanId,startClocks:s.startClocks,status:s.status,traceId:s.traceId,traceSampled:s.traceSampled,type:"fetch",url:s.url,response:s.response,init:s.init,input:s.input,isAborted:s.isAborted,handlingStack:s.handlingStack})});break}});return{stop:()=>n.unsubscribe()}}function hd(){const e=pd;return pd+=1,e}function Db(e,t){const n=e.response&&ty(e.response);!n||!n.body?t(ve(e.startClocks.timeStamp,he())):Vy(n.body,()=>{t(ve(e.startClocks.timeStamp,he()))},{bytesLimit:Number.POSITIVE_INFINITY})}function md(e){return pr(e)&&e<0?void 0:e}function gd({lifeCycle:e,isChildEvent:t,onChange:n=G}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},s=e.subscribe(13,i=>{var o;if(!(i.type==="view"||i.type==="vital"||!t(i)))switch(i.type){case"error":r.errorCount+=1,n();break;case"action":r.actionCount+=1,i.action.frustration&&(r.frustrationCount+=i.action.frustration.type.length),n();break;case"long_task":r.longTaskCount+=1,n();break;case"resource":!((o=i._dd)===null||o===void 0)&&o.discarded||(r.resourceCount+=1,n());break}});return{stop:()=>{s.unsubscribe()},eventCounts:r}}function Fb(e,t){const n=Ke();let r=!1;const{stop:s}=Fe(e,window,["click","mousedown","keydown","touchstart","pointerdown"],a=>{if(!a.cancelable)return;const c={entryType:"first-input",processingStart:Ye(),processingEnd:Ye(),startTime:a.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};a.type==="pointerdown"?i(e,c):o(c)},{passive:!0,capture:!0});return{stop:s};function i(a,c){Fe(a,window,["pointerup","pointercancel"],l=>{l.type==="pointerup"&&o(c)},{once:!0})}function o(a){if(!r){r=!0,s();const c=a.processingStart-a.startTime;c>=0&&c<Ke()-n&&t(a)}}}var Z;(function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource",e.VISIBILITY_STATE="visibility-state"})(Z||(Z={}));function gt(e,t){return new X(n=>{if(!window.PerformanceObserver)return;const r=c=>{const l=$b(c);l.length>0&&n.notify(l)};let s,i=!0;const o=new PerformanceObserver($(c=>{i?s=me(()=>r(c.getEntries())):r(c.getEntries())}));try{o.observe(t)}catch{if([Z.RESOURCE,Z.NAVIGATION,Z.LONG_TASK,Z.PAINT].includes(t.type)){t.buffered&&(s=me(()=>r(performance.getEntriesByType(t.type))));try{o.observe({entryTypes:[t.type]})}catch{return}}}i=!1,Bb(e);let a;return!sn(Z.FIRST_INPUT)&&t.type===Z.FIRST_INPUT&&({stop:a}=Fb(e,c=>{r([c])})),()=>{o.disconnect(),a&&a(),Me(s)}})}let Ir;function Bb(e){return!Ir&&Ub()&&"addEventListener"in performance&&(Ir=ne(e,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{Ir==null||Ir.stop()}}function Ub(){return window.performance!==void 0&&"getEntries"in performance}function sn(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function $b(e){return e.filter(t=>!Vb(t))}function Vb(e){return e.entryType===Z.RESOURCE&&(!ao(e.name)||!od(e))}const yd=100,zb=100;function co(e,t,n,r,s,i){const o=jb(e,t,n,r);return Hb(o,s,i)}function Hb(e,t,n){let r,s=!1;const i=me($(()=>l({hadActivity:!1})),yd),o=n!==void 0?me($(()=>l({hadActivity:!0,end:he()})),n):void 0,a=e.subscribe(({isBusy:u})=>{Me(i),Me(r);const d=he();u||(r=me($(()=>l({hadActivity:!0,end:d})),zb))}),c=()=>{s=!0,Me(i),Me(r),Me(o),a.unsubscribe()};function l(u){s||(c(),t(u))}return{stop:c}}function jb(e,t,n,r){return new X(s=>{const i=[];let o,a=0;return i.push(t.subscribe(c),n.subscribe(c),gt(r,{type:Z.RESOURCE}).subscribe(l=>{l.some(u=>!lo(r,u.name))&&c()}),e.subscribe(7,l=>{lo(r,l.url)||(o===void 0&&(o=l.requestIndex),a+=1,c())}),e.subscribe(8,l=>{lo(r,l.url)||o===void 0||l.requestIndex<o||(a-=1,c())})),()=>{i.forEach(l=>l.unsubscribe())};function c(){s.notify({isBusy:a>0})}})}function lo(e,t){return ju(e.excludedActivityUrls,t)}function bd(e){return e.nodeType===Node.TEXT_NODE}function Wb(e){return e.nodeType===Node.COMMENT_NODE}function Un(e){return e.nodeType===Node.ELEMENT_NODE}function Is(e){return Un(e)&&!!e.shadowRoot}function uo(e){const t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Un(t.host)}function qb(e){return e.childNodes.length>0||Is(e)}function wd(e,t){let n=e.firstChild;for(;n;)t(n),n=n.nextSibling;Is(e)&&t(e.shadowRoot)}function Ts(e){return uo(e)?e.host:e.parentNode}const D={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:vr.ALLOW,MASK:vr.MASK,MASK_USER_INPUT:vr.MASK_USER_INPUT},fo="data-dd-privacy",Gb="hidden",Kb="dd-privacy-",$t="***",vd="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Yb={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},Zb="x";function yt(e,t,n){if(n&&n.has(e))return n.get(e);const r=Ts(e),s=r?yt(r,t,n):t,i=Sd(e),o=_d(i,s);return n&&n.set(e,o),o}function _d(e,t){switch(t){case D.HIDDEN:case D.IGNORE:return t}switch(e){case D.ALLOW:case D.MASK:case D.MASK_USER_INPUT:case D.HIDDEN:case D.IGNORE:return e;default:return t}}function Sd(e){if(Un(e)){if(e.tagName==="BASE")return D.ALLOW;if(e.tagName==="INPUT"){const t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return D.MASK;const n=t.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return D.MASK}if(e.matches($n(D.HIDDEN)))return D.HIDDEN;if(e.matches($n(D.MASK)))return D.MASK;if(e.matches($n(D.MASK_USER_INPUT)))return D.MASK_USER_INPUT;if(e.matches($n(D.ALLOW)))return D.ALLOW;if(Xb(e))return D.IGNORE}}function As(e,t){switch(t){case D.MASK:case D.HIDDEN:case D.IGNORE:return!0;case D.MASK_USER_INPUT:return bd(e)?Ed(e.parentNode):Ed(e);default:return!1}}function Ed(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!Yb[t.tagName]}const Jb=e=>e.replace(/\S/g,Zb);function Cd(e,t,n){var r;const s=(r=e.parentElement)===null||r===void 0?void 0:r.tagName;let i=e.textContent||"";if(t&&!i.trim())return;const o=n;if(s==="SCRIPT")i=$t;else if(o===D.HIDDEN)i=$t;else if(As(e,o))if(s==="DATALIST"||s==="SELECT"||s==="OPTGROUP"){if(!i.trim())return}else s==="OPTION"?i=$t:i=Jb(i);return i}function Xb(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){const n=t("rel");return/preload|prefetch/i.test(n)&&t("as")==="script"||n==="shortcut icon"||n==="icon"}if(e.nodeName==="META"){const n=t("name"),r=t("rel"),s=t("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||r==="icon"||r==="apple-touch-icon"||r==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(s)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(s)||/^product:/.test(s)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function t(n){return(e.getAttribute(n)||"").toLowerCase()}return!1}function $n(e){return`[${fo}="${e}"], .${Kb}${e}`}const po="data-dd-action-name",Qb="Masked Element";function e2(e,{enablePrivacyForActionName:t,actionNameAttribute:n},r){const s=xd(e,po)||n&&xd(e,n);return s?{name:s,nameSource:"custom_attribute"}:r===D.MASK?{name:Qb,nameSource:"mask_placeholder"}:Id(e,n,t2,t)||Id(e,n,n2,t)||{name:"",nameSource:"blank"}}function xd(e,t){const n=e.closest(`[${t}]`);if(!n)return;const r=n.getAttribute(t);return Ad(Td(r.trim()))}const t2=[(e,t)=>{if("labels"in e&&e.labels&&e.labels.length>0)return Rs(e.labels[0],t)},e=>{if(e.nodeName==="INPUT"){const t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t,n)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return Rs(e,t,n)},e=>Tr(e,"aria-label"),(e,t,n)=>{const r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(s=>s2(e,s)).filter(s=>!!s).map(s=>Rd(s,t,n)).join(" "),nameSource:"text_content"}},e=>Tr(e,"alt"),e=>Tr(e,"name"),e=>Tr(e,"title"),e=>Tr(e,"placeholder"),(e,t)=>{if("options"in e&&e.options.length>0)return Rs(e.options[0],t)}],n2=[(e,t,n)=>Rs(e,t,n)],r2=10;function Id(e,t,n,r){let s=e,i=0;for(;i<=r2&&s&&s.nodeName!=="BODY"&&s.nodeName!=="HTML"&&s.nodeName!=="HEAD";){for(const o of n){const a=o(s,t,r);if(a){const{name:c,nameSource:l}=a,u=c&&c.trim();if(u)return{name:Ad(Td(u)),nameSource:l}}}if(s.nodeName==="FORM")break;s=s.parentElement,i+=1}}function Td(e){return e.replace(/\s+/g," ")}function Ad(e){return e.length>100?`${Jl(e,100)} [...]`:e}function s2(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function Tr(e,t){return{name:e.getAttribute(t)||"",nameSource:"standard_attribute"}}function Rs(e,t,n){return{name:Rd(e,t,n)||"",nameSource:"text_content"}}function Rd(e,t,n){if(!e.isContentEditable){if("innerText"in e){let r=e.innerText;const s=i=>{const o=e.querySelectorAll(i);for(let a=0;a<o.length;a+=1){const c=o[a];if("innerText"in c){const l=c.innerText;l&&l.trim().length>0&&(r=r.replace(l,""))}}};return s(`[${po}]`),t&&s(`[${t}]`),n&&s(`${$n(D.HIDDEN)}, ${$n(D.MASK)}`),r}return e.textContent}}const kd=[po,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],i2=[Od,a2],o2=[Od,c2,l2];function Ar(e,t){if(!e.isConnected)return;let n,r=e;for(;r&&r.nodeName!=="HTML";){const s=Ld(r,i2,d2,t,n);if(s)return s;n=Ld(r,o2,f2,t,n)||ks(u2(r),n),r=r.parentElement}return n}function Pd(e){return/[0-9]/.test(e)}function a2(e){if(e.id&&!Pd(e.id))return`#${CSS.escape(e.id)}`}function c2(e){if(e.tagName==="BODY")return;const t=e.classList;for(let n=0;n<t.length;n+=1){const r=t[n];if(!Pd(r))return`${CSS.escape(e.tagName)}.${CSS.escape(r)}`}}function l2(e){return CSS.escape(e.tagName)}function Od(e,t){if(t){const r=n(t);if(r)return r}for(const r of kd){const s=n(r);if(s)return s}function n(r){if(e.hasAttribute(r))return`${CSS.escape(e.tagName)}[${r}="${CSS.escape(e.getAttribute(r))}"]`}}function u2(e){let t=e.parentElement.firstElementChild,n=1;for(;t&&t!==e;)t.tagName===e.tagName&&(n+=1),t=t.nextElementSibling;return`${CSS.escape(e.tagName)}:nth-of-type(${n})`}function Ld(e,t,n,r,s){for(const i of t){const o=i(e,r);if(o&&n(e,o,s))return ks(o,s)}}function d2(e,t,n){return e.ownerDocument.querySelectorAll(ks(t,n)).length===1}function f2(e,t,n){let r;if(n===void 0)r=o=>o.matches(t);else{const o=ks(`${t}:scope`,n);r=a=>a.querySelector(o)!==null}let i=e.parentElement.firstElementChild;for(;i;){if(i!==e&&r(i))return!1;i=i.nextElementSibling}return!0}function ks(e,t){return t?`${e}>${t}`:e}const Nd=xe,p2=100;function h2(e,t){const n=[];let r=0,s;i(e);function i(c){c.stopObservable.subscribe(o),n.push(c),Me(s),s=me(a,Nd)}function o(){r===1&&n.every(c=>c.isStopped())&&(r=2,t(n))}function a(){Me(s),r===0&&(r=1,o())}return{tryAppend:c=>r!==0?!1:n.length>0&&!m2(n[n.length-1].event,c.event)?(a(),!1):(i(c),!0),stop:()=>{a()}}}function m2(e,t){return e.target===t.target&&g2(e,t)<=p2&&e.timeStamp-t.timeStamp<=Nd}function g2(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function y2(e,{onPointerDown:t,onPointerUp:n}){let r,s={selection:!1,input:!1,scroll:!1},i;const o=[ne(e,window,"pointerdown",a=>{Dd(a)&&(r=Md(),s={selection:!1,input:!1,scroll:!1},i=t(a))},{capture:!0}),ne(e,window,"selectionchange",()=>{(!r||!Md())&&(s.selection=!0)},{capture:!0}),ne(e,window,"scroll",()=>{s.scroll=!0},{capture:!0,passive:!0}),ne(e,window,"pointerup",a=>{if(Dd(a)&&i){const c=s;n(i,a,()=>c),i=void 0}},{capture:!0}),ne(e,window,"input",()=>{s.input=!0},{capture:!0})];return{stop:()=>{o.forEach(a=>a.stop())}}}function Md(){const e=window.getSelection();return!e||e.isCollapsed}function Dd(e){return e.target instanceof Element&&e.isPrimary!==!1}const Fd=3;function b2(e,t){if(w2(e))return t.addFrustration("rage_click"),e.some(Bd)&&t.addFrustration("dead_click"),t.hasError&&t.addFrustration("error_click"),{isRage:!0};const n=e.some(r=>r.getUserActivity().selection);return e.forEach(r=>{r.hasError&&r.addFrustration("error_click"),Bd(r)&&!n&&r.addFrustration("dead_click")}),{isRage:!1}}function w2(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t<e.length-(Fd-1);t+=1)if(e[t+Fd-1].event.timeStamp-e[t].event.timeStamp<=xe)return!0;return!1}const v2='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] *';function Bd(e){return e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll?!1:!e.event.target.matches(v2)}const Ud=10*xe,Rr=new Map;function _2(e){const t=Rr.get(e);return Rr.delete(e),t}function $d(e,t){Rr.set(e,t),Rr.forEach((n,r)=>{ve(r,Ye())>Ud&&Rr.delete(r)})}const S2=5*Ne;function E2(e,t,n,r){const s=Mn({expireDelay:S2}),i=new X;let o;e.subscribe(10,()=>{s.reset()}),e.subscribe(5,u),e.subscribe(11,d=>{d.reason===Fn.UNLOADING&&u()});const{stop:a}=y2(r,{onPointerDown:d=>C2(r,e,t,d,n),onPointerUp:({clickActionBase:d,hadActivityOnPointerDown:f},h,p)=>{x2(r,e,t,n,s,i,l,d,h,p,f)}});return{stop:()=>{u(),i.notify(),a()},actionContexts:{findActionId:d=>s.findAll(d)}};function l(d){if(!o||!o.tryAppend(d)){const f=d.clone();o=h2(d,h=>{T2(h,f)})}}function u(){o&&o.stop()}}function C2(e,t,n,r,s){const i=e.enablePrivacyForActionName?yt(r.target,e.defaultPrivacyLevel):D.ALLOW;if(i===D.HIDDEN)return;const o=I2(r,i,e);let a=!1;return co(t,n,s,e,c=>{a=c.hadActivity},yd),{clickActionBase:o,hadActivityOnPointerDown:()=>a}}function x2(e,t,n,r,s,i,o,a,c,l,u){var d;const f=Vd(t,s,l,a,c);o(f);const h=(d=a==null?void 0:a.target)===null||d===void 0?void 0:d.selector;h&&$d(c.timeStamp,h);const{stop:p}=co(t,n,r,e,b=>{b.hadActivity&&b.end<f.startClocks.timeStamp?f.discard():b.hadActivity?f.stop(b.end):u()?f.stop(f.startClocks.timeStamp):f.stop()},Ud),m=t.subscribe(5,({endClocks:b})=>{f.stop(b.timeStamp)}),g=i.subscribe(()=>{f.stop()});f.stopObservable.subscribe(()=>{m.unsubscribe(),p(),g.unsubscribe()})}function I2(e,t,n){const r=e.target.getBoundingClientRect(),s=Ar(e.target,n.actionNameAttribute);s&&$d(e.timeStamp,s);const i=e2(e.target,n,t);return{type:"click",target:{width:Math.round(r.width),height:Math.round(r.height),selector:s},position:{x:Math.round(e.clientX-r.left),y:Math.round(e.clientY-r.top)},name:i.name,nameSource:i.nameSource}}function Vd(e,t,n,r,s){const i=_e(),o=Re(),a=t.add(i,o.relative),c=gd({lifeCycle:e,isChildEvent:p=>p.action!==void 0&&(Array.isArray(p.action.id)?p.action.id.includes(i):p.action.id===i)});let l=0,u;const d=[],f=new X;function h(p){l===0&&(u=p,l=1,u?a.close(Ai(u)):a.remove(),c.stop(),f.notify())}return{event:s,stop:h,stopObservable:f,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return u!==void 0},getUserActivity:n,addFrustration:p=>{d.push(p)},startClocks:o,isStopped:()=>l===1||l===2,clone:()=>Vd(e,t,n,r,s),validate:p=>{if(h(),l!==1)return;const{resourceCount:m,errorCount:g,longTaskCount:b}=c.eventCounts,x={duration:u&&ve(o.timeStamp,u),startClocks:o,id:i,frustrationTypes:d,counts:{resourceCount:m,errorCount:g,longTaskCount:b},events:p??[s],event:s,...r};e.notify(0,x),l=2},discard:()=>{h(),l=2}}}function T2(e,t){const{isRage:n}=b2(e,t);n?(e.forEach(r=>r.discard()),t.stop(he()),t.validate(e.map(r=>r.event))):(t.discard(),e.forEach(r=>r.validate()))}function A2(e,t,n,r,s){e.subscribe(0,a=>e.notify(12,zd(a))),t.register(0,({startTime:a,eventType:c})=>{if(c!=="error"&&c!=="resource"&&c!=="long_task")return;const l=i.findActionId(a);if(l)return{type:c,action:{id:l}}});let i={findActionId:G},o=G;return s.trackUserInteractions&&({actionContexts:i,stop:o}=E2(e,n,r,s)),{addAction:a=>{e.notify(12,zd(a))},actionContexts:i,stop:o}}function zd(e){const t=Ps(e)?{action:{id:e.id,loading_time:md(B(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position,name_source:e.nameSource}}}:void 0,n=it({action:{id:_e(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action"},t),r=Ps(e)?e.duration:void 0,s=Ps(e)?void 0:e.context,i=Ps(e)?{events:e.events}:{handlingStack:e.handlingStack};return{customerContext:s,rawRumEvent:n,duration:r,startTime:e.startClocks.relative,domainContext:i}}function Ps(e){return e.type!=="custom"}function R2(e){const t=Ly([is.error]).subscribe(n=>e.notify(n.error));return{stop:()=>{t.unsubscribe()}}}function k2(e,t){const n=k0(e,[Er.cspViolation,Er.intervention]).subscribe(r=>t.notify(r));return{stop:()=>{n.unsubscribe()}}}function P2(e,t){const n=new X;return R2(n),x0(n),k2(t,n),n.subscribe(r=>e.notify(14,{error:r})),O2(e)}function O2(e){return e.subscribe(14,({error:t,customerContext:n})=>{n=it(t.context,n),e.notify(12,{customerContext:n,...L2(t)})}),{addError:({error:t,handlingStack:n,componentStack:r,startClocks:s,context:i})=>{const o=Ut(t)?Bt(t):void 0,a=bu({stackTrace:o,originalError:t,handlingStack:n,componentStack:r,startClocks:s,nonErrorPrefix:"Provided",source:Ln.CUSTOM,handling:"handled"});e.notify(14,{customerContext:i,error:a})}}}function L2(e){const t={date:e.startClocks.timeStamp,error:{id:_e(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:"error"},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startTime:e.startClocks.relative,domainContext:n}}const Hd=new WeakSet;function N2(e){if(!performance||!("getEntriesByName"in performance))return;const t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;const n=t.filter(r=>!Hd.has(r)).filter(r=>od(r)&&ad(r)).filter(r=>M2(r,e.startClocks.relative,jd({startTime:e.startClocks.relative,duration:e.duration})));if(n.length===1)return Hd.add(n[0]),n[0].toJSON()}function jd(e){return Cn(e.startTime,e.duration)}function M2(e,t,n){return e.startTime>=t-1&&jd(e)<=Cn(n,1)}const D2=2*Ne;function F2(e){const t=B2(e)||U2(e);if(!(!t||t.traceTime<=Ke()-D2))return t.traceId}function B2(e){const t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return Wd(t&&t.content,n&&n.content)}function U2(e){const t=$2(e);if(t)return Wd(yr(t,"trace-id"),yr(t,"trace-time"))}function Wd(e,t){const n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function $2(e){for(let t=0;t<e.childNodes.length;t+=1){const n=qd(e.childNodes[t]);if(n)return n}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){const n=e.body.childNodes[t],r=qd(n);if(r)return r;if(!bd(n))break}}function qd(e){if(e&&Wb(e)){const t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function Gd(){if(sn(Z.NAVIGATION)){const n=performance.getEntriesByType(Z.NAVIGATION)[0];if(n)return n}const e=V2(),t={entryType:Z.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function V2(){const e={},t=performance.timing;for(const n in t)if(pr(t[n])){const r=n,s=t[r];e[r]=s===0?0:Ai(s)}return e}function z2(e,t,n=Gd){Xi(e,"interactive",()=>{const r=n(),s=Object.assign(r.toJSON(),{entryType:Z.RESOURCE,initiatorType:rd,duration:r.responseEnd,traceId:F2(document),toJSON:()=>({...s,toJSON:void 0})});t(s)})}function H2(e,t,n,r=Oy(),s=z2){e.subscribe(8,a=>{o(()=>j2(a,t,n))});const i=gt(t,{type:Z.RESOURCE,buffered:!0}).subscribe(a=>{for(const c of a)Ab(c)||o(()=>Kd(c,t))});s(t,a=>{o(()=>Kd(a,t))});function o(a){r.push(()=>{const c=a();c&&e.notify(12,c)})}return{stop:()=>{i.unsubscribe()}}}function j2(e,t,n){const r=N2(e),s=r?cs(r.startTime):e.startClocks,i=W2(e,t);if(!t.trackResources&&!i)return;const o=e.type==="xhr"?"xhr":"fetch",a=r?Yd(r):void 0,c=r?id(r):G2(n,s,e.duration),l=it({date:s.timeStamp,resource:{id:_e(),type:o,duration:B(c),method:e.method,status_code:e.status,protocol:r&&cd(r),url:dd(e.url)?fd(e.url):e.url,delivery_type:r&&ld(r)},type:"resource",_dd:{discarded:!t.trackResources}},i,a);return{startTime:s.relative,duration:c,rawRumEvent:l,domainContext:{performanceEntry:r,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error,isAborted:e.isAborted,handlingStack:e.handlingStack}}}function Kd(e,t){const n=cs(e.startTime),r=q2(e,t);if(!t.trackResources&&!r)return;const s=Tb(e),i=Yd(e),o=id(e),a=it({date:n.timeStamp,resource:{id:_e(),type:s,duration:B(o),url:e.name,status_code:K2(e.responseStatus),protocol:cd(e),delivery_type:ld(e)},type:"resource",_dd:{discarded:!t.trackResources}},r,i);return{startTime:n.relative,duration:o,rawRumEvent:a,domainContext:{performanceEntry:e}}}function Yd(e){const{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...Pb(e),...Rb(e)}}}function W2(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function q2(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:Ku().toString(),rule_psr:t.rulePsr}}}function G2(e,t,n){return e.wasInPageStateDuringPeriod("frozen",t.relative,n)?void 0:n}function K2(e){return e===0?void 0:e}function Y2(e,t,n){const{stop:r,eventCounts:s}=gd({lifeCycle:e,isChildEvent:i=>i.view.id===t,onChange:n});return{stop:r,eventCounts:s}}const Z2=10*Ne;function J2(e,t,n){return{stop:gt(e,{type:Z.PAINT,buffered:!0}).subscribe(s=>{const i=s.find(o=>o.name==="first-contentful-paint"&&o.startTime<t.timeStamp&&o.startTime<Z2);i&&n(i.startTime)}).unsubscribe}}function X2(e,t,n){const r=gt(e,{type:Z.FIRST_INPUT,buffered:!0}).subscribe(s=>{const i=s.find(o=>o.startTime<t.timeStamp);if(i){const o=ve(i.startTime,i.processingStart);let a;i.target&&Un(i.target)&&(a=Ar(i.target,e.actionNameAttribute)),n({delay:o>=0?o:0,time:i.startTime,targetSelector:a})}});return{stop:()=>{r.unsubscribe()}}}function Q2(e,t,n=Gd){return nw(e,()=>{const r=n();tw(r)||t(ew(r))})}function ew(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=Ye()?e.responseStart:void 0}}function tw(e){return e.loadEventEnd<=0}function nw(e,t){let n;const{stop:r}=Xi(e,"complete",()=>{n=me(()=>t())});return{stop:()=>{r(),Me(n)}}}const rw=10*Ne;function sw(e,t,n,r){let s=1/0;const{stop:i}=Fe(e,n,["pointerdown","keydown"],c=>{s=c.timeStamp},{capture:!0,once:!0});let o=0;const a=gt(e,{type:Z.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(c=>{const l=l1(c,u=>u.entryType===Z.LARGEST_CONTENTFUL_PAINT&&u.startTime<s&&u.startTime<t.timeStamp&&u.startTime<rw&&u.size>o);if(l){let u;l.element&&(u=Ar(l.element,e.actionNameAttribute)),r({value:l.startTime,targetSelector:u,resourceUrl:iw(l)}),o=l.size}});return{stop:()=>{i(),a.unsubscribe()}}}function iw(e){return e.url===""?void 0:e.url}function Zd(e,t=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:G};if(sn(Z.VISIBILITY_STATE)){const s=performance.getEntriesByType(Z.VISIBILITY_STATE).find(i=>i.name==="hidden");if(s)return{timeStamp:s.startTime,stop:G}}let n=1/0;const{stop:r}=Fe(e,t,["pagehide","visibilitychange"],s=>{(s.type==="pagehide"||document.visibilityState==="hidden")&&(n=s.timeStamp,r())},{capture:!0});return{get timeStamp(){return n},stop:r}}function ow(e,t,n){const r={},{stop:s}=Q2(e,u=>{t(u.loadEvent),r.navigationTimings=u,n()}),i=Zd(e),{stop:o}=J2(e,i,u=>{r.firstContentfulPaint=u,n()}),{stop:a}=sw(e,i,window,u=>{r.largestContentfulPaint=u,n()}),{stop:c}=X2(e,i,u=>{r.firstInput=u,n()});function l(){s(),o(),a(),c(),i.stop()}return{stop:l,initialViewMetrics:r}}function aw(e,t,n){if(!fw())return{stop:G};let r=0,s;n({value:0});const i=dw(),o=gt(e,{type:Z.LAYOUT_SHIFT,buffered:!0}).subscribe(a=>{var c;for(const l of a){if(l.hadRecentInput||l.startTime<t)continue;const{cumulatedValue:u,isMaxValue:d}=i.update(l);if(d){const f=cw(l.sources);s={target:f!=null&&f.node?new WeakRef(f.node):void 0,time:ve(t,l.startTime),previousRect:f==null?void 0:f.previousRect,currentRect:f==null?void 0:f.currentRect,devicePixelRatio:window.devicePixelRatio}}if(u>r){r=u;const f=(c=s==null?void 0:s.target)===null||c===void 0?void 0:c.deref();n({value:as(r,4),targetSelector:f&&Ar(f,e.actionNameAttribute),time:s==null?void 0:s.time,previousRect:s!=null&&s.previousRect?Jd(s.previousRect):void 0,currentRect:s!=null&&s.currentRect?Jd(s.currentRect):void 0,devicePixelRatio:s==null?void 0:s.devicePixelRatio})}}});return{stop:()=>{o.unsubscribe()}}}function cw(e){return e.find(t=>!!t.node&&Un(t.node))}function Jd({x:e,y:t,width:n,height:r}){return{x:e,y:t,width:n,height:r}}const lw=5*xe,uw=xe;function dw(){let e=0,t,n,r=0;return{update:s=>{const i=t===void 0||s.startTime-n>=uw||s.startTime-t>=lw;let o;return i?(t=n=s.startTime,r=e=s.value,o=!0):(e+=s.value,n=s.startTime,o=s.value>r,o&&(r=s.value)),{cumulatedValue:e,isMaxValue:o}}}}function fw(){return sn(Z.LAYOUT_SHIFT)&&"WeakRef"in window}let Os,Xd=0,ho=1/0,mo=0;function pw(){"interactionCount"in performance||Os||(Os=new window.PerformanceObserver($(e=>{e.getEntries().forEach(t=>{const n=t;n.interactionId&&(ho=Math.min(ho,n.interactionId),mo=Math.max(mo,n.interactionId),Xd=(mo-ho)/7+1)})})),Os.observe({type:"event",buffered:!0,durationThreshold:0}))}const Qd=()=>Os?Xd:window.performance.interactionCount||0,ef=10,hw=1*Ne;function mw(e,t,n){if(!bw())return{getInteractionToNextPaint:()=>{},setViewEnd:G,stop:G};const{getViewInteractionCount:r,stopViewInteractionCount:s}=yw(n);let i=1/0;const o=gw(r);let a=-1,c,l;function u(h){for(const m of h)m.interactionId&&m.startTime>=t&&m.startTime<=i&&o.process(m);const p=o.estimateP98Interaction();p&&p.duration!==a&&(a=p.duration,l=ve(t,p.startTime),c=_2(p.startTime),!c&&p.target&&Un(p.target)&&(c=Ar(p.target,e.actionNameAttribute)))}const d=gt(e,{type:Z.FIRST_INPUT,buffered:!0}).subscribe(u),f=gt(e,{type:Z.EVENT,durationThreshold:40,buffered:!0}).subscribe(u);return{getInteractionToNextPaint:()=>{if(a>=0)return{value:Math.min(a,hw),targetSelector:c,time:l};if(r())return{value:0}},setViewEnd:h=>{i=h,s()},stop:()=>{f.unsubscribe(),d.unsubscribe()}}}function gw(e){const t=[];function n(){t.sort((r,s)=>s.duration-r.duration).splice(ef)}return{process(r){const s=t.findIndex(o=>r.interactionId===o.interactionId),i=t[t.length-1];s!==-1?r.duration>t[s].duration&&(t[s]=r,n()):(t.length<ef||r.duration>i.duration)&&(t.push(r),n())},estimateP98Interaction(){const r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}function yw(e){pw();const t=e==="initial_load"?0:Qd();let n={stopped:!1};function r(){return Qd()-t}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}function bw(){return sn(Z.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function ww(e,t,n,r,s,i,o){let a=s==="initial_load",c=!0;const l=[],u=Zd(r);function d(){if(!c&&!a&&l.length>0){const h=Math.max(...l);h<u.timeStamp&&o(h)}}const{stop:f}=co(e,t,n,r,h=>{c&&(c=!1,h.hadActivity&&l.push(ve(i.timeStamp,h.end)),d())});return{stop:()=>{f(),u.stop()},setLoadEvent:h=>{a&&(a=!1,l.push(h),d())}}}function tf(){let e;const t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function go(){let e;const t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}let yo;function nf(e){return yo||(yo=vw(e)),yo}function vw(e){return new X(t=>{const{throttled:n}=Dt(()=>{t.notify(Ls())},200);return ne(e,window,"resize",n,{capture:!0,passive:!0}).stop})}function Ls(){const e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}const _w=xe;function Sw(e,t,n,r=Cw(e)){let s=0,i=0,o=0;const a=r.subscribe(({scrollDepth:c,scrollTop:l,scrollHeight:u})=>{let d=!1;if(c>s&&(s=c,d=!0),u>i){i=u;const f=Ye();o=ve(t.relative,f),d=!0}d&&n({maxDepth:Math.min(s,i),maxDepthScrollTop:l,maxScrollHeight:i,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}function Ew(){const e=go(),{height:t}=Ls(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(t+e);return{scrollHeight:n,scrollDepth:r,scrollTop:e}}function Cw(e,t=_w){return new X(n=>{function r(){n.notify(Ew())}if(window.ResizeObserver){const s=Dt(r,t,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver($(s.throttled));i&&o.observe(i);const a=ne(e,window,"scroll",s.throttled,{passive:!0});return()=>{s.cancel(),o.disconnect(),a.stop()}}})}function xw(e,t,n,r,s,i,o){const a={},{stop:c,setLoadEvent:l}=ww(e,t,n,r,i,o,m=>{a.loadingTime=m,s()}),{stop:u}=Sw(r,o,m=>{a.scroll=m}),{stop:d}=aw(r,o.relative,m=>{a.cumulativeLayoutShift=m,s()}),{stop:f,getInteractionToNextPaint:h,setViewEnd:p}=mw(r,o.relative,i);return{stop:()=>{c(),d(),u()},stopINPTracking:f,setLoadEvent:l,setViewEnd:p,getCommonViewMetrics:()=>(a.interactionToNextPaint=h(),a)}}const Iw=3e3,Tw=5*Ne,Aw=5*Ne;function Rw(e,t,n,r,s,i,o,a){const c=new Set;let l=d("initial_load",ql(),a);f();let u;o&&(u=h(i));function d(p,m,g){const b=kw(t,n,r,s,e,p,m,g);return c.add(b),b.stopObservable.subscribe(()=>{c.delete(b)}),b}function f(){t.subscribe(10,()=>{l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})}),t.subscribe(9,()=>{l.end({sessionIsActive:!1})})}function h(p){return p.subscribe(({oldLocation:m,newLocation:g})=>{Ow(m,g)&&(l.end(),l=d("route_change"))})}return{addTiming:(p,m=he())=>{l.addTiming(p,m)},startView:(p,m)=>{l.end({endClocks:m}),l=d("route_change",m,p)},setViewContext:p=>{l.contextManager.setContext(p)},setViewContextProperty:(p,m)=>{l.contextManager.setContextProperty(p,m)},setViewName:p=>{l.setViewName(p)},getViewContext:()=>l.contextManager.getContext(),stop:()=>{u&&u.unsubscribe(),l.end(),c.forEach(p=>p.stop())}}}function kw(e,t,n,r,s,i,o=Re(),a){const c=_e(),l=new X,u={};let d=0,f;const h=gr(s),p=Cs();let m=!0,g=a==null?void 0:a.name;const b=(a==null?void 0:a.service)||r.service,x=(a==null?void 0:a.version)||r.version,w=a==null?void 0:a.context;w&&p.setContext(w);const S={id:c,name:g,startClocks:o,service:b,version:x,context:w};e.notify(1,S),e.notify(2,S);const{throttled:O,cancel:A}=Dt(oe,Iw,{leading:!1}),{setLoadEvent:y,setViewEnd:k,stop:T,stopINPTracking:P,getCommonViewMetrics:R}=xw(e,t,n,r,re,i,o),{stop:L,initialViewMetrics:N}=i==="initial_load"?ow(r,y,re):{stop:G,initialViewMetrics:{}},{stop:M,eventCounts:se}=Y2(e,c,re),be=xn(oe,Tw),Ge=e.subscribe(11,ie=>{ie.reason===Fn.UNLOADING&&oe()});oe(),p.changeObservable.subscribe(re);function nt(){e.notify(3,{id:c,name:g,context:p.getContext(),startClocks:o})}function re(){nt(),O()}function oe(){A(),nt(),d+=1;const ie=f===void 0?he():f.timeStamp;e.notify(4,{customTimings:u,documentVersion:d,id:c,name:g,service:b,version:x,context:p.getContext(),loadingType:i,location:h,startClocks:o,commonViewMetrics:R(),initialViewMetrics:N,duration:ve(o.timeStamp,ie),isActive:f===void 0,sessionIsActive:m,eventCounts:se})}return{get name(){return g},service:b,version:x,contextManager:p,stopObservable:l,end(ie={}){var Oe,Te;f||(f=(Oe=ie.endClocks)!==null&&Oe!==void 0?Oe:Re(),m=(Te=ie.sessionIsActive)!==null&&Te!==void 0?Te:!0,e.notify(5,{endClocks:f}),e.notify(6,{endClocks:f}),us(be),k(f.relative),T(),Ge.unsubscribe(),oe(),me(()=>{this.stop()},Aw))},stop(){L(),M(),P(),l.notify()},addTiming(ie,Oe){if(f)return;const Te=Jg(Oe)?Oe:ve(o.timeStamp,Oe);u[Pw(ie)]=Te,re()},setViewName(ie){g=ie,oe()}}}function Pw(e){const t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&q.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function Ow(e,t){return e.pathname!==t.pathname||!Lw(t.hash)&&rf(t.hash)!==rf(e.hash)}function Lw(e){const t=e.substring(1);return t!==""&&!!document.getElementById(t)}function rf(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}function Nw(e,t,n,r,s,i,o,a,c,l){return e.subscribe(4,u=>e.notify(12,Mw(u,n,a))),t.register(0,({startTime:u,eventType:d})=>{const{service:f,version:h,id:p,name:m,context:g}=c.findView(u);return{type:d,service:f,version:h,context:g,view:{id:p,name:m}}}),Rw(r,e,s,i,n,o,!n.trackViewsManually,l)}function Mw(e,t,n){var r,s,i,o,a,c,l,u,d,f,h,p,m,g,b,x,w,S;const O=n.getReplayStats(e.id),A=(s=(r=e.commonViewMetrics)===null||r===void 0?void 0:r.cumulativeLayoutShift)===null||s===void 0?void 0:s.devicePixelRatio,y={_dd:{document_version:e.documentVersion,replay_stats:O,cls:A?{device_pixel_ratio:A}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:"view",view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(i=e.commonViewMetrics.cumulativeLayoutShift)===null||i===void 0?void 0:i.value,cumulative_layout_shift_time:B((o=e.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.time),cumulative_layout_shift_target_selector:(a=e.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.targetSelector,first_byte:B((c=e.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.firstByte),dom_complete:B((l=e.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.domComplete),dom_content_loaded:B((u=e.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domContentLoaded),dom_interactive:B((d=e.initialViewMetrics.navigationTimings)===null||d===void 0?void 0:d.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:B(e.initialViewMetrics.firstContentfulPaint),first_input_delay:B((f=e.initialViewMetrics.firstInput)===null||f===void 0?void 0:f.delay),first_input_time:B((h=e.initialViewMetrics.firstInput)===null||h===void 0?void 0:h.time),first_input_target_selector:(p=e.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.targetSelector,interaction_to_next_paint:B((m=e.commonViewMetrics.interactionToNextPaint)===null||m===void 0?void 0:m.value),interaction_to_next_paint_time:B((g=e.commonViewMetrics.interactionToNextPaint)===null||g===void 0?void 0:g.time),interaction_to_next_paint_target_selector:(b=e.commonViewMetrics.interactionToNextPaint)===null||b===void 0?void 0:b.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:B((x=e.initialViewMetrics.largestContentfulPaint)===null||x===void 0?void 0:x.value),largest_contentful_paint_target_selector:(w=e.initialViewMetrics.largestContentfulPaint)===null||w===void 0?void 0:w.targetSelector,load_event:B((S=e.initialViewMetrics.navigationTimings)===null||S===void 0?void 0:S.loadEvent),loading_time:md(B(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:Dw(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:B(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:B(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:O?!0:void 0,is_active:e.sessionIsActive?void 0:!1},privacy:{replay_level:t.defaultPrivacyLevel}};return Gt(e.customTimings)||(y.view.custom_timings=e1(e.customTimings,B)),{rawRumEvent:y,startTime:e.startClocks.relative,duration:e.duration,domainContext:{location:e.location}}}function Dw({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,firstInput:r,largestContentfulPaint:s}){return{cls:e&&{score:e.value,timestamp:B(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:B(n)},fid:r&&{duration:B(r.delay),timestamp:B(r.time),target_selector:r.targetSelector},inp:t&&{duration:B(t.value),timestamp:B(t.time),target_selector:t.targetSelector},lcp:s&&{timestamp:B(s.value),target_selector:s.targetSelector,resource_url:s.resourceUrl}}}const Fw="rum";function Bw(e,t,n){const r=Z0(e,Fw,s=>$w(e,s),n);return r.expireObservable.subscribe(()=>{t.notify(9)}),r.renewObservable.subscribe(()=>{t.notify(10)}),r.sessionStateUpdateObservable.subscribe(({previousState:s,newState:i})=>{if(!s.forcedReplay&&i.forcedReplay){const o=r.findSession();o&&(o.isReplayForced=!0)}}),{findTrackedSession:s=>{const i=r.findSession(s);if(!(!i||!sf(i.trackingType)))return{id:i.id,sessionReplay:i.trackingType==="1"?1:i.isReplayForced?2:0,anonymousId:i.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:()=>r.updateSessionState({forcedReplay:"1"})}}function Uw(){const e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:Bu("records")?1:0};return{findTrackedSession:()=>e,expire:G,expireObservable:new X,setForcedReplay:G}}function $w(e,t){let n;return Vw(t)?n=t:Nt(e.sessionSampleRate)?Nt(e.sessionReplaySampleRate)?n="1":n="2":n="0",{trackingType:n,isTracked:sf(n)}}function Vw(e){return e==="0"||e==="1"||e==="2"}function sf(e){return e==="2"||e==="1"}function zw(e,t,n,r,s,i,o){const a=e.replica,c=gy(e,{endpoint:e.rumEndpointBuilder,encoder:o(2)},a&&{endpoint:a.rumEndpointBuilder,transformMessage:l=>it(l,{application:{id:a.applicationId}}),encoder:o(3)},r,s,i);return t.subscribe(13,l=>{l.type==="view"?c.upsert(l,l.view.id):c.add(l)}),n.subscribe(l=>c.add(l,z0(e))),c}function Hw(e){const t=Dn();e.subscribe(13,n=>{t.send("rum",n)})}const jw=Yt;function Ww(e,t,n,r){const s=Mn({expireDelay:jw});let i;e.subscribe(1,({startClocks:c})=>{const l=r.href;s.add(a({url:l,referrer:i||document.referrer}),c.relative),i=l}),e.subscribe(6,({endClocks:c})=>{s.closeActive(c.relative)});const o=n.subscribe(({newLocation:c})=>{const l=s.find();if(l){const u=Ye();s.closeActive(u),s.add(a({url:c.href,referrer:l.referrer}),u)}});function a({url:c,referrer:l}){return{url:c,referrer:l}}return t.register(0,({startTime:c,eventType:l})=>{const{url:u,referrer:d}=s.find(c);return{type:l,view:{url:u,referrer:d}}}),{findUrl:c=>s.find(c),getAllEntries:()=>s.getAllEntries(),getDeletedEntries:()=>s.getDeletedEntries(),stop:()=>{o.unsubscribe(),s.stop()}}}function qw(e,t){let n=gr(t);return new X(r=>{const{stop:s}=Gw(e,o),{stop:i}=Kw(e,o);function o(){if(n.href===t.href)return;const a=gr(t);r.notify({newLocation:a,oldLocation:n}),n=a}return()=>{s(),i()}})}function Gw(e,t){const{stop:n}=De(of("pushState"),"pushState",({onPostCall:i})=>{i(t)}),{stop:r}=De(of("replaceState"),"replaceState",({onPostCall:i})=>{i(t)}),{stop:s}=ne(e,window,"popstate",t);return{stop:()=>{n(),r(),s()}}}function Kw(e,t){return ne(e,window,"hashchange",t)}function of(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}const Yw=Yt;function Zw(e,t,n){const r=Mn({expireDelay:Yw});return e.subscribe(1,({startClocks:s})=>{r.add({},s.relative)}),e.subscribe(6,({endClocks:s})=>{r.closeActive(s.relative)}),t.register(0,({startTime:s,eventType:i})=>{if(!n.trackFeatureFlagsForEvents.concat(["view","error"]).includes(i))return;const a=r.find(s);if(!(!a||Gt(a)))return{type:i,feature_flags:a}}),{addFeatureFlagEvaluation:(s,i)=>{const o=r.find();o&&(o[s]=i)}}}const Jw=10*xe;let Vn,bo;function Xw(e,t,n,r){t.enabled&&Nt(e.customerDataTelemetrySampleRate)&&(lf(),bo=!1,n.subscribe(13,()=>{bo=!0}),r.subscribe(({bytesCount:i,messagesCount:o})=>{bo&&(Vn.batchCount+=1,cf(Vn.batchBytesCount,i),cf(Vn.batchMessagesCount,o))}),xn(Qw,Jw))}function Qw(){Vn.batchCount!==0&&(At("Customer data measures",Vn),lf())}function af(){return{min:1/0,max:0,sum:0}}function cf(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function lf(){Vn={batchCount:0,batchBytesCount:af(),batchMessagesCount:af()}}const ev=4e3,tv=500,nv=Yt;function rv(e,t,n=tv){const r=Mn({expireDelay:nv,maxEntries:ev});let s;o(uf(),Ye());const{stop:i}=Fe(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],c=>{o(iv(c),c.timeStamp)},{capture:!0});function o(c,l=Ye()){c!==s&&(s=c,r.closeActive(l),r.add({state:s,startTime:l},l))}function a(c,l,u){return r.findAll(l,u).some(d=>d.state===c)}return e.register(0,({startTime:c,duration:l=0,eventType:u})=>{if(u==="view"){const d=r.findAll(c,l);return{type:u,_dd:{page_states:sv(d,c,n)}}}if(u==="action"||u==="error")return{type:u,view:{in_foreground:a("active",c,0)}}}),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{i(),r.stop()}}}function sv(e,t,n){if(e.length!==0)return e.slice(-n).reverse().map(({state:r,startTime:s})=>({state:r,start:B(ve(t,s))}))}function iv(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":uf()}function uf(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function ov(e){let t;const n=requestAnimationFrame($(()=>{t=Ls()})),r=nf(e).subscribe(s=>{t=s}).unsubscribe;return{get:()=>t?{viewport:t}:void 0,stop:()=>{r(),n&&cancelAnimationFrame(n)}}}const av=xe;function cv(e){return new X(t=>lv(e,n=>t.notify(n)))}function lv(e,t){const n=yr(document.cookie,e),r=xn(()=>{const s=yr(document.cookie,e);s!==n&&t(s)},av);return()=>us(r)}const df="datadog-ci-visibility-test-execution-id";function uv(e,t=cv(df)){var n;let r=Ft(df)||((n=window.Cypress)===null||n===void 0?void 0:n.env("traceId"));const s=t.subscribe(i=>{r=i});return e.register(0,({eventType:i})=>{if(typeof r=="string")return{type:i,session:{type:"ci_test"},ci_test:{test_execution_id:r}}}),{stop:()=>{s.unsubscribe()}}}function dv(e,t){const n=gt(t,{type:Z.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(r=>{for(const s of r){const i=cs(s.startTime),o={date:i.timeStamp,long_task:{id:_e(),entry_type:"long-animation-frame",duration:B(s.duration),blocking_duration:B(s.blockingDuration),first_ui_event_timestamp:B(s.firstUIEventTimestamp),render_start:B(s.renderStart),style_and_layout_start:B(s.styleAndLayoutStart),start_time:B(s.startTime),scripts:s.scripts.map(a=>({duration:B(a.duration),pause_duration:B(a.pauseDuration),forced_style_and_layout_duration:B(a.forcedStyleAndLayoutDuration),start_time:B(a.startTime),execution_start:B(a.executionStart),source_url:a.sourceURL,source_function_name:a.sourceFunctionName,source_char_position:a.sourceCharPosition,invoker:a.invoker,invoker_type:a.invokerType,window_attribution:a.windowAttribution}))},type:"long_task",_dd:{discarded:!1}};e.notify(12,{rawRumEvent:o,startTime:i.relative,duration:s.duration,domainContext:{performanceEntry:s}})}});return{stop:()=>n.unsubscribe()}}function fv(e,t){const n=gt(t,{type:Z.LONG_TASK,buffered:!0}).subscribe(r=>{for(const s of r){if(s.entryType!==Z.LONG_TASK||!t.trackLongTasks)break;const i=cs(s.startTime),o={date:i.timeStamp,long_task:{id:_e(),entry_type:"long-task",duration:B(s.duration)},type:"long_task",_dd:{discarded:!1}};e.notify(12,{rawRumEvent:o,startTime:i.relative,duration:s.duration,domainContext:{performanceEntry:s}})}});return{stop(){n.unsubscribe()}}}function pv(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(r=>r!==n)}}},triggerHook(t,n){const s=(e[t]||[]).map(i=>i(n));return it(...s)}}}function hv(e){e.register(0,({eventType:t})=>{const n=Wy(),r=qy();if(!(!n||!r))return{type:t,session:{type:"synthetics"},synthetics:{test_id:n,result_id:r,injected:Hu()}}})}function mv(e,t,n){const r=Ki(e),s=n(r);return Mi(t).forEach(([i,o])=>wo(e,r,i.split(/\.|(?=\[\])/),o)),s}function wo(e,t,n,r){const[s,...i]=n;if(s==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((o,a)=>wo(o,t[a],i,r));return}if(!(!ff(e)||!ff(t))){if(i.length>0)return wo(e[s],t[s],i,r);gv(e,s,t[s],r)}}function gv(e,t,n,r){const s=en(n);s===r?e[t]=ce(n):r==="object"&&(s==="undefined"||s==="null")&&(e[t]={})}function ff(e){return en(e)==="object"}const zn={"view.name":"string","view.url":"string","view.referrer":"string"},Hn={context:"object"},vo={service:"string",version:"string"};let pf;function yv(e,t,n,r,s,i,o,a,c){pf={view:{"view.performance.lcp.resource_url":"string",...Hn,...zn},error:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...Hn,...zn,...vo},resource:{"resource.url":"string",...vs(Qt.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},...Hn,...zn,...vo},action:{"action.target.name":"string",...Hn,...zn,...vo},long_task:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...Hn,...zn},vital:{...Hn,...zn}};const l={error:Ji("error",e.eventRateLimiterThreshold,c),action:Ji("action",e.eventRateLimiterThreshold,c),vital:Ji("vital",e.eventRateLimiterThreshold,c)};t.subscribe(12,({startTime:u,duration:d,rawRumEvent:f,domainContext:h,customerContext:p})=>{const m=s.findView(u),g=i.findUrl(u),b=r.findTrackedSession(u);if(b&&m&&!g&&vs(Qt.MISSING_URL_CONTEXT_TELEMETRY)&&At("Missing URL entry",{debug:{eventType:f.type,startTime:u,urlEntries:i.getAllEntries(),urlDeletedEntries:i.getDeletedEntries(),viewEntries:s.getAllEntries(),viewDeletedEntries:s.getDeletedEntries()}}),b&&m&&g){const x=a(),w={_dd:{format_version:2,drift:Yg(),configuration:{session_sample_rate:as(e.sessionSampleRate,3),session_replay_sample_rate:as(e.sessionReplaySampleRate,3)},browser_sdk_version:nn()?"6.6.3":void 0},application:{id:e.applicationId},date:he(),source:"browser",session:{id:b.id,type:"user"},display:o.get(),connectivity:xu(),context:x.context},S=it(w,n.triggerHook(0,{eventType:f.type,startTime:u,duration:d}),{context:p},f);"has_replay"in S.session||(S.session.has_replay=x.hasReplay),S.type==="view"&&(S.session.sampled_for_replay=b.sessionReplay===1),b.anonymousId&&!x.user.anonymous_id&&e.trackAnonymousUser&&(x.user.anonymous_id=b.anonymousId),Gt(x.user)||(S.usr=x.user),!Gt(x.account)&&x.account.id&&(S.account=x.account),bv(S,e.beforeSend,h,l)&&(Gt(S.context)&&delete S.context,t.notify(13,S))}})}function bv(e,t,n,r){var s;if(t){const o=mv(e,pf[e.type],a=>t(a,n));if(o===!1&&e.type!=="view")return!1;o===!1&&q.warn("Can't dismiss view events using beforeSend!")}return!((s=r[e.type])===null||s===void 0?void 0:s.isLimitReached())}function wv(e,t,n,r){return{context:e.getContext(),user:t.getContext(),account:n.getContext(),hasReplay:r.isRecording()?!0:void 0}}function vv(e,t,n,r,s,i,o){const a=[],c=new Eb,l=pv();c.subscribe(13,de=>Gi("rum",de));const u=_v(e);u.setContextProvider(()=>{var de,Qn;return{application:{id:e.applicationId},session:{id:(de=p.findTrackedSession())===null||de===void 0?void 0:de.id},view:{id:(Qn=x.findView())===null||Qn===void 0?void 0:Qn.id},action:{id:R.findActionId()}}});const d=de=>{c.notify(14,{error:de}),At("Error reported to customer",{"error.message":de.message})},f=py(e),h=f.subscribe(de=>{c.notify(11,de)});a.push(()=>h.unsubscribe());const p=nn()?Uw():Bw(e,c,i);if(nn())Hw(c);else{const de=zw(e,c,u.observable,d,f,p.expireObservable,s);a.push(()=>de.stop()),Xw(e,u,c,de.flushObservable)}const m=vb(),g=qw(e,location),b=rv(l,e),x=xb(c),w=Ww(c,l,g,location),S=Zw(c,l,e),{observable:O,stop:A}=_b();a.push(A);const y=pb(e),k=hb(e),T=mb(e),P=()=>wv(y,k,T,t),{actionContexts:R,addAction:L,stop:N}=Sv(c,l,e,p,b,m,O,w,x,P,d);a.push(N),V0();const{addTiming:M,startView:se,setViewName:be,setViewContext:Ge,setViewContextProperty:nt,getViewContext:re,stop:oe}=Nw(c,l,e,location,m,O,g,t,x,r);a.push(oe);const{stop:ie}=H2(c,e,b);if(a.push(ie),e.trackLongTasks)if(sn(Z.LONG_ANIMATION_FRAME)){const{stop:de}=dv(c,e);a.push(de)}else fv(c,e);const{addError:Oe}=P2(c,e);Lb(c,e,p,P);const Te=Ky(c,b,o),Gc=Sb(e.applicationId,p,x,R,w);return a.push(()=>n.stop()),{addAction:L,addError:Oe,addTiming:M,addFeatureFlagEvaluation:S.addFeatureFlagEvaluation,startView:se,setViewContext:Ge,setViewContextProperty:nt,getViewContext:re,setViewName:be,lifeCycle:c,viewHistory:x,session:p,stopSession:()=>p.expire(),getInternalContext:Gc.get,startDurationVital:Te.startDurationVital,stopDurationVital:Te.stopDurationVital,addDurationVital:Te.addDurationVital,globalContext:y,userContext:k,accountContext:T,stop:()=>{a.forEach(de=>de())}}}function _v(e){const t=U0("browser-rum-sdk",e);if(nn()){const n=Dn();t.observable.subscribe(r=>n.send("internal_telemetry",r))}return t}function Sv(e,t,n,r,s,i,o,a,c,l,u){const d=A2(e,t,i,o,n),f=ov(n),h=uv(t);return hv(t),yv(n,e,t,r,c,a,f,l,u),{pageStateHistory:s,addAction:d.addAction,actionContexts:d.actionContexts,stop:()=>{d.stop(),h.stop(),f.stop(),c.stop(),s.stop(),a.stop()}}}function Ev(e,{session:t,viewContext:n,errorType:r}){const s=t?t.id:"no-session-id",i=[];r!==void 0&&i.push(`error-type=${r}`),n&&(i.push(`seed=${n.id}`),i.push(`from=${n.startClocks.timeStamp}`));const o=Cv(e),a=`/rum/replay/sessions/${s}`;return`${o}${a}?${i.join("&")}`}function Cv(e){const t=e.site,n=e.subdomain||xv(e);return`https://${n?`${n}.`:""}${t}`}function xv(e){switch(e.site){case Xt:case B1:return"app";case pu:return"dd";default:return}}const Iv=1e3;let Ze;function Tv(e){return Ns(e).segments_count}function Av(e){Ns(e).segments_count+=1}function Rv(e){Ns(e).records_count+=1}function kv(e,t){Ns(e).segments_total_raw_size+=t}function Pv(e){return Ze==null?void 0:Ze.get(e)}function Ns(e){Ze||(Ze=new Map);let t;return Ze.has(e)?t=Ze.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},Ze.set(e,t),Ze.size>Iv&&Ov()),t}function Ov(){if(!Ze)return;const e=Ze.keys().next().value;e&&Ze.delete(e)}function hf(e,t,n){let r=0,s=[],i,o=0;const a=[],{stop:c}=ne(e,t,"message",({data:d})=>{if(d.type!=="wrote"||d.streamId!==n)return;r+=d.additionalBytesCount,s.push(d.result),i=d.trailer;const f=a.shift();f&&f.id===d.id?f.writeCallback?f.writeCallback(d.result.byteLength):f.finishCallback&&f.finishCallback():(c(),At("Worker responses received out of order."))});function l(){const d=s.length===0?new Uint8Array(0):Qg(s.concat(i)),f={rawBytesCount:r,output:d,outputBytesCount:d.byteLength,encoding:"deflate"};return r=0,s=[],f}function u(){o>0&&(t.postMessage({action:"reset",streamId:n}),o=0)}return{isAsync:!0,get isEmpty(){return o===0},write(d,f){t.postMessage({action:"write",id:o,data:d,streamId:n}),a.push({id:o,writeCallback:f,data:d}),o+=1},finish(d){u(),a.length?(a.forEach(f=>{delete f.writeCallback}),a[a.length-1].finishCallback=()=>d(l())):d(l())},finishSync(){u();const d=a.map(f=>(delete f.writeCallback,delete f.finishCallback,f.data)).join("");return{...l(),pendingData:d}},estimateEncodedBytesCount(d){return d.length/8},stop(){c()}}}function _o({configuredUrl:e,error:t,source:n,scriptType:r}){if(q.error(`${n} failed to start: an error occurred while initializing the ${r}:`,t),t instanceof Event||t instanceof Error&&Lv(t.message)){let s;e?s=`Please make sure the ${r} URL ${e} is correct and CSP is correctly configured.`:s="Please make sure CSP is correctly configured.",q.error(`${s} See documentation at ${os}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else r==="worker"&&Yi(t)}function Lv(e){return e.includes("Content Security Policy")||e.includes("requires 'TrustedScriptURL'")}const Nv=30*xe;function mf(e){return new Worker(e.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<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=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]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>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<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},C=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},D=!1,M=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},j=M,L=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},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<i;s++)t=t>>>8^r[255&(t^e[s])];return~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.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>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<n;r++)m(t,t.bl_tree[2*i[r]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=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){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]&&i<u);if(n=H-(u-i),i=u-H,n>s){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},et=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-J)){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=L(s.adler,h,o,l):2===s.state.wrap&&(s.adler=T(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=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<J&&0!==t.strm.avail_in)},at=function(t,e){for(var a,n;;){if(t.lookahead<J){if(et(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,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=tt(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},nt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(et(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,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_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=tt(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(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 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 it=[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(et(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 rt(4,4,8,4,at),new rt(4,5,16,8,at),new rt(4,6,32,32,at),new rt(4,4,16,16,nt),new rt(8,16,32,32,nt),new rt(8,16,128,128,nt),new rt(8,32,128,256,nt),new rt(32,128,258,1024,nt),new rt(32,258,258,4096,nt)];function st(){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 ht=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<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),D=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=it[e.level].max_lazy,e.good_match=it[e.level].good_length,e.nice_match=it[e.level].nice_length,e.max_chain_length=it[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),i},lt=function(t,e){var a,n;if(!t||!t.state||e>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.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(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.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(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&&(et(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(et(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]&&r<i);t.match_length=H-(i-r),t.match_length>t.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):it[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)},_t=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)},ot=new Uint8Array(256),dt=0;dt<256;dt++)ot[dt]=dt>=252?6:dt>=248?5:dt>=240?4:dt>=224?3:dt>=192?2:1;ot[254]=ot[254]=1;var ut=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},ft=Object.prototype.toString;function ct(){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 ut,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 st;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,ht(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(O[n]);if(t.header&&(e=this.strm,a=t.header,e&&e.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ft.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t||!t.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=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,et(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,et(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 pt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function gt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}ct.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]"===ft.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=lt(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=_t(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},ct.prototype.onData=function(t){this.chunks.push(t)},ct.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",(n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"6.6.3"};case"write":{let n=e.get(a.streamId);n||(n=new ct,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<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|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,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:gt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){pt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){pt(e,t)}}()})();'])))}let le={status:0};function gf(e,t,n,r=mf){switch(le.status===0&&Mv(e,t,r),le.status){case 1:return le.initializationFailureCallbacks.push(n),le.worker;case 3:return le.worker}}function yf(){return le.status}function Mv(e,t,n=mf){try{const r=n(e),{stop:s}=ne(e,r,"error",a=>{So(e,t,a)}),{stop:i}=ne(e,r,"message",({data:a})=>{a.type==="errored"?So(e,t,a.error,a.streamId):a.type==="initialized"&&Fv(a.version)});r.postMessage({action:"init"}),me(()=>Dv(t),Nv),le={status:1,worker:r,stop:()=>{s(),i()},initializationFailureCallbacks:[]}}catch(r){So(e,t,r)}}function Dv(e){le.status===1&&(q.error(`${e} failed to start: a timeout occurred while initializing the Worker`),le.initializationFailureCallbacks.forEach(t=>t()),le={status:2})}function Fv(e){le.status===1&&(le={status:3,worker:le.worker,stop:le.stop,version:e})}function So(e,t,n,r){le.status===1||le.status===0?(_o({configuredUrl:e.workerUrl,error:n,source:t,scriptType:"worker"}),le.status===1&&le.initializationFailureCallbacks.forEach(s=>s()),le={status:2}):Yi(n,{worker_version:le.status===3&&le.version,stream_id:r})}function bf(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function Bv(e,t,n,r){const s=t.findTrackedSession(),i=Uv(s,r),o=n.findView();return Ev(e,{viewContext:o,errorType:i,session:s})}function Uv(e,t){if(!bf())return"browser-not-supported";if(!e)return"rum-not-tracked";if(e.sessionReplay===0)return"incorrect-session-plan";if(!t)return"replay-not-started"}function $v(e,t,n,r,s,i){let o=0,a;t.subscribe(9,()=>{(o===2||o===3)&&(u(),o=1)}),t.subscribe(10,()=>{o===1&&l()});const c=async()=>{const[d]=await Promise.all([s(),wy(e,"interactive")]);if(o!==2)return;const f=i();if(!f||!d){o=0;return}({stop:a}=d(t,e,n,r,f)),o=3};function l(d){const f=n.findTrackedSession();if(Vv(f,d)){o=1;return}zv(o)||(o=2,c().catch(Tt),Hv(f,d)&&n.setForcedReplay())}function u(){o===3&&(a==null||a()),o=0}return{start:l,stop:u,getSessionReplayLink(){return Bv(e,n,r,o!==0)},isRecording:()=>o===3}}function Vv(e,t){return!e||e.sessionReplay===0&&(!t||!t.force)}function zv(e){return e===2||e===3}function Hv(e,t){return t&&t.force&&e.sessionReplay===0}function jv(){let e=0;return{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:G},shouldStartImmediately(t){return e===1||e===0&&!t.startSessionReplayRecordingManually}}}function Wv(e,t){if(nn()&&!Bu("records")||!bf())return{start:G,stop:G,getReplayStats:()=>{},onRumStart:G,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:n,shouldStartImmediately:r}=jv();return{start:i=>n.start(i),stop:()=>n.stop(),getSessionReplayLink:()=>n.getSessionReplayLink(),onRumStart:s,isRecording:()=>yf()===3&&n.isRecording(),getReplayStats:i=>yf()===3?Pv(i):void 0};function s(i,o,a,c,l){let u;function d(){return u||(l??(l=gf(o,"Datadog Session Replay",()=>{n.stop()},t)),l&&(u=hf(o,l,1))),u}n=$v(o,i,a,c,e,d),r(o)&&n.start()}}async function qv(e=Gv){try{return await e()}catch(t){_o({error:t,source:"Recorder",scriptType:"module"})}}async function Gv(){return(await Promise.resolve().then(()=>U3)).startRecording}function Kv(){return mt().Profiler!==void 0}async function Yv(e=Zv){try{return await e()}catch(t){_o({error:t,source:"Profiler",scriptType:"module"})}}async function Zv(){return(await Promise.resolve().then(()=>Q3)).createRumProfiler}function Jv(){let e;function t(n,r,s,i){!Kv()||!Nt(r.profilingSampleRate)||Yv().then(o=>{if(!o){At("[DD_RUM] Failed to lazy load the RUM Profiler");return}e=o(r,n,s),e.start(i.findView())}).catch(Tt)}return{onRumStart:t,stop:()=>{e==null||e.stop().catch(Tt)}}}const Xv=Wv(qv),Qv=Jv(),ze=bb(vv,Xv,Qv,{startDeflateWorker:gf,createDeflateEncoder:hf});R0(mt(),"DD_RUM",ze);const Xn=class Xn{init(){if(Xn.isInitialized){console.info("Tracker [DD]: already initialized");return}ze.init({applicationId:"3ea6bf90-69cc-42fe-9e69-d461f783221d",clientToken:"pub51a171e3f587fb85f6d3f0ed2bf8f531",site:"datadoghq.com",service:"astropay-payments-library",env:"production",version:"0.1.5",sessionSampleRate:50,sessionReplaySampleRate:10,defaultPrivacyLevel:"mask-user-input",trackViewsManually:!0,trackResources:!1,trackUserInteractions:!1,beforeSend:t=>this.filterEvents(t)}),ze.startView({name:"ap_cl_view_mounted"}),ze.startSessionReplayRecording(),Xn.isInitialized=!0,console.info("Tracker [DD]: initialized")}track(t,n){ze==null||ze.addAction(t,n||{})}trackError(t,n){ze==null||ze.addError(t,{context:n})}destroy(){console.info("Tracker [DD]: destroying"),typeof ze.stopSessionReplayRecording=="function"&&ze.stopSessionReplayRecording(),ze.addAction("ap_cl_view_unmounted",{reason:"component_destroyed"}),Xn.isInitialized=!1}filterEvents(t){var n,r,s;return!!(t.type==="view"&&((n=t.view.name)!=null&&n.startsWith("ap_cl_"))||t.type==="action"&&typeof((r=t.action.target)==null?void 0:r.name)=="string"&&t.action.target.name.startsWith("ap_cl_")||t.type==="error"&&((s=t.error)==null?void 0:s.source)==="custom")}};v(Xn,"isInitialized",!1);let Eo=Xn,jn=[];class Se{static init(t){if(!t){console.info("Tracking disabled");return}jn=[new Eo],jn.forEach(n=>n.init())}static trackEvent(t,n){jn.forEach(r=>r.track(t,n))}static trackError(t,n){jn.forEach(r=>r.trackError(t,n))}static destroy(){jn.forEach(t=>t.destroy()),jn=[]}}const ye=class ye{static init(t,n){if(!t)throw console.error('AstroPay Payments Library: Missing "app-id". Call init function first.'),new Error("app-id is required for authentication.");if(ye.isInitialized){console.warn("AstroPay Payments Library: Already initialized.");return}ye.token=t,Se.init((n==null?void 0:n.tracking)??!0),z.init({theme:(n==null?void 0:n.theme)??"light",styles:(n==null?void 0:n.styles)??{}}),H.init({language:(n==null?void 0:n.language)??"en"}),st.init({environment:(n==null?void 0:n.environment)??"production",currencyMode:(n==null?void 0:n.currencyMode)??"iso"}),ct.init({appName:"ap-cl",baseURL:"https://partners-api.astropay.com/api",timeout:5e3}),Se.trackEvent("ap_cl_init",{app_id:t,origin:window.location.origin}),ye.isInitialized=!0}static registerComponent(t){ye.components.add(t)}static unregisterComponent(t){ye.components.delete(t)}static getToken(){if(!ye.isInitialized){const t="AstroPay Payments Library: Not initialized.";throw console.error(t),new Error(t)}return ye.token}static destroy(){ye.isInitialized&&(ye.components.forEach(t=>t.destroy()),ye.components.clear(),ye.isInitialized=!1,Se.destroy(),ye.token="")}static isLibInitialized(){return ye.isInitialized}};v(ye,"isInitialized",!1),v(ye,"token"),v(ye,"components",new Set);let ot=ye;function wf(e,t){return function(){return e.apply(t,arguments)}}const{toString:e_}=Object.prototype,{getPrototypeOf:Co}=Object,{iterator:Ms,toStringTag:vf}=Symbol,Ds=(e=>t=>{const n=e_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),at=e=>(e=e.toLowerCase(),t=>Ds(t)===e),Fs=e=>t=>typeof t===e,{isArray:Wn}=Array,kr=Fs("undefined");function t_(e){return e!==null&&!kr(e)&&e.constructor!==null&&!kr(e.constructor)&&Be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _f=at("ArrayBuffer");function n_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_f(e.buffer),t}const r_=Fs("string"),Be=Fs("function"),Sf=Fs("number"),Bs=e=>e!==null&&typeof e=="object",s_=e=>e===!0||e===!1,Us=e=>{if(Ds(e)!=="object")return!1;const t=Co(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(vf in e)&&!(Ms in e)},i_=at("Date"),o_=at("File"),a_=at("Blob"),c_=at("FileList"),l_=e=>Bs(e)&&Be(e.pipe),u_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Be(e.append)&&((t=Ds(e))==="formdata"||t==="object"&&Be(e.toString)&&e.toString()==="[object FormData]"))},d_=at("URLSearchParams"),[f_,p_,h_,m_]=["ReadableStream","Request","Response","Headers"].map(at),g_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Wn(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function Ef(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cf=e=>!kr(e)&&e!==on;function xo(){const{caseless:e}=Cf(this)&&this||{},t={},n=(r,s)=>{const i=e&&Ef(t,s)||s;Us(t[i])&&Us(r)?t[i]=xo(t[i],r):Us(r)?t[i]=xo({},r):Wn(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Pr(arguments[r],n);return t}const y_=(e,t,n,{allOwnKeys:r}={})=>(Pr(t,(s,i)=>{n&&Be(s)?e[i]=wf(s,n):e[i]=s},{allOwnKeys:r}),e),b_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),w_=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},v_=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Co(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},__=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},S_=e=>{if(!e)return null;if(Wn(e))return e;let t=e.length;if(!Sf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},E_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Co(Uint8Array)),C_=(e,t)=>{const r=(e&&e[Ms]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},x_=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},I_=at("HTMLFormElement"),T_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),xf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),A_=at("RegExp"),If=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pr(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},R_=e=>{If(e,(t,n)=>{if(Be(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Be(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},k_=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Wn(e)?r(e):r(String(e).split(t)),n},P_=()=>{},O_=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function L_(e){return!!(e&&Be(e.append)&&e[vf]==="FormData"&&e[Ms])}const N_=e=>{const t=new Array(10),n=(r,s)=>{if(Bs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=Wn(r)?[]:{};return Pr(r,(o,a)=>{const c=n(o,s+1);!kr(c)&&(i[a]=c)}),t[s]=void 0,i}}return r};return n(e,0)},M_=at("AsyncFunction"),D_=e=>e&&(Bs(e)||Be(e))&&Be(e.then)&&Be(e.catch),Tf=((e,t)=>e?setImmediate:t?((n,r)=>(on.addEventListener("message",({source:s,data:i})=>{s===on&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),on.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Be(on.postMessage)),F_=typeof queueMicrotask<"u"?queueMicrotask.bind(on):typeof process<"u"&&process.nextTick||Tf,_={isArray:Wn,isArrayBuffer:_f,isBuffer:t_,isFormData:u_,isArrayBufferView:n_,isString:r_,isNumber:Sf,isBoolean:s_,isObject:Bs,isPlainObject:Us,isReadableStream:f_,isRequest:p_,isResponse:h_,isHeaders:m_,isUndefined:kr,isDate:i_,isFile:o_,isBlob:a_,isRegExp:A_,isFunction:Be,isStream:l_,isURLSearchParams:d_,isTypedArray:E_,isFileList:c_,forEach:Pr,merge:xo,extend:y_,trim:g_,stripBOM:b_,inherits:w_,toFlatObject:v_,kindOf:Ds,kindOfTest:at,endsWith:__,toArray:S_,forEachEntry:C_,matchAll:x_,isHTMLForm:I_,hasOwnProperty:xf,hasOwnProp:xf,reduceDescriptors:If,freezeMethods:R_,toObjectSet:k_,toCamelCase:T_,noop:P_,toFiniteNumber:O_,findKey:Ef,global:on,isContextDefined:Cf,isSpecCompliantForm:L_,toJSONObject:N_,isAsyncFn:M_,isThenable:D_,setImmediate:Tf,asap:F_,isIterable:e=>e!=null&&Be(e[Ms])};function U(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}_.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const Af=U.prototype,Rf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Rf[e]={value:e}}),Object.defineProperties(U,Rf),Object.defineProperty(Af,"isAxiosError",{value:!0}),U.from=(e,t,n,r,s,i)=>{const o=Object.create(Af);return _.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),U.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const B_=null;function Io(e){return _.isPlainObject(e)||_.isArray(e)}function kf(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Pf(e,t,n){return e?e.concat(t).map(function(s,i){return s=kf(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function U_(e){return _.isArray(e)&&!e.some(Io)}const $_=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function $s(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!_.isUndefined(g[m])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(_.isDate(p))return p.toISOString();if(!c&&_.isBlob(p))throw new U("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(p)||_.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let b=p;if(p&&!g&&typeof p=="object"){if(_.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(_.isArray(p)&&U_(p)||(_.isFileList(p)||_.endsWith(m,"[]"))&&(b=_.toArray(p)))return m=kf(m),b.forEach(function(w,S){!(_.isUndefined(w)||w===null)&&t.append(o===!0?Pf([m],S,i):o===null?m:m+"[]",l(w))}),!1}return Io(p)?!0:(t.append(Pf(g,m,i),l(p)),!1)}const d=[],f=Object.assign($_,{defaultVisitor:u,convertValue:l,isVisitable:Io});function h(p,m){if(!_.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),_.forEach(p,function(b,x){(!(_.isUndefined(b)||b===null)&&s.call(t,b,_.isString(x)?x.trim():x,m,f))===!0&&h(b,m?m.concat(x):[x])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Of(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function To(e,t){this._pairs=[],e&&$s(e,this,t)}const Lf=To.prototype;Lf.append=function(t,n){this._pairs.push([t,n])},Lf.toString=function(t){const n=t?function(r){return t.call(this,r,Of)}:Of;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function V_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nf(e,t,n){if(!t)return e;const r=n&&n.encode||V_;_.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=_.isURLSearchParams(t)?t.toString():new To(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Df={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z_={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:To,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ao=typeof window<"u"&&typeof document<"u",Ro=typeof navigator=="object"&&navigator||void 0,H_=Ao&&(!Ro||["ReactNative","NativeScript","NS"].indexOf(Ro.product)<0),j_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",W_=Ao&&window.location.href||"http://localhost",Ie={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ao,hasStandardBrowserEnv:H_,hasStandardBrowserWebWorkerEnv:j_,navigator:Ro,origin:W_},Symbol.toStringTag,{value:"Module"})),...z_};function q_(e,t){return $s(e,new Ie.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return Ie.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function G_(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function K_(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Ff(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=n.length;return o=!o&&_.isArray(s)?s.length:o,c?(_.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!_.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&_.isArray(s[o])&&(s[o]=K_(s[o])),!a)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,s)=>{t(G_(r),s,n,0)}),n}return null}function Y_(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Or={transitional:Df,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=_.isObject(t);if(i&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return s?JSON.stringify(Ff(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return q_(t,this.formSerializer).toString();if((a=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return $s(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Y_(t)):t}],transformResponse:[function(t){const n=this.transitional||Or.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?U.from(a,U.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ie.classes.FormData,Blob:Ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{Or.headers[e]={}});const Z_=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),J_=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
516
|
+
${f}`),e.finish(m=>{p($u(m))})}return{flushController:n,add:l,upsert:l,stop:i.unsubscribe}}function $u(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function my({messagesLimit:e,bytesLimit:t,durationLimit:n,pageMayExitObservable:r,sessionExpireObservable:s}){const i=r.subscribe(p=>u(p.reason)),o=s.subscribe(()=>u("session_expire")),a=new X(()=>()=>{i.unsubscribe(),o.unsubscribe()});let c=0,l=0;function u(p){if(l===0)return;const m=l,g=c;l=0,c=0,h(),a.notify({reason:p,messagesCount:m,bytesCount:g})}let d;function f(){d===void 0&&(d=me(()=>{u("duration_limit")},n))}function h(){Me(d),d=void 0}return{flushObservable:a,get messagesCount(){return l},notifyBeforeAddMessage(p){c+p>=t&&u("bytes_limit"),l+=1,c+=p,f()},notifyAfterAddMessage(p=0){c+=p,l>=e?u("messages_limit"):c>=t&&u("bytes_limit")},notifyAfterRemoveMessage(p){c-=p,l-=1,l===0&&h()}}}function gy(e,t,n,r,s,i,o=hy){const a=l(e,t),c=n&&l(e,n);function l(u,{endpoint:d,encoder:f}){return o({encoder:f,request:Du(d,u.batchBytesLimit,r),flushController:my({messagesLimit:u.batchMessagesLimit,bytesLimit:u.batchBytesLimit,durationLimit:u.flushTimeout,pageMayExitObservable:s,sessionExpireObservable:i}),messageBytesLimit:u.messageBytesLimit})}return{flushObservable:a.flushController.flushObservable,add(u,d=!0){a.add(u),c&&d&&c.add(n.transformMessage?n.transformMessage(u):u)},upsert:(u,d)=>{a.upsert(u,d),c&&c.upsert(n.transformMessage?n.transformMessage(u):u,d)},stop:()=>{a.stop(),c&&c.stop()}}}function yy(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const s=Kl(n);t+=s,e+=n,r&&r(s)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}class by{constructor(){this.callbacks={}}notify(t,n){const r=this.callbacks[t];r&&r.forEach(s=>s(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(r=>n!==r)}}}}function Ji(e,t,n){let r=0,s=!1;return{isLimitReached(){if(r===0&&me(()=>{r=0},Ne),r+=1,r<=t||s)return s=!1,!1;if(r===t+1){s=!0;try{n({message:`Reached max number of ${e}s by minute: ${t}`,source:Ln.AGENT,startClocks:Re()})}finally{s=!1}}return!0}}}function Xi(e,t,n){return document.readyState===t||document.readyState==="complete"?(n(),{stop:G}):ne(e,window,t==="complete"?"load":"DOMContentLoaded",n,{once:!0})}function wy(e,t){return new Promise(n=>{Xi(e,t,n)})}let Qi;const eo=new WeakMap;function vy(e){return Qi||(Qi=_y(e)),Qi}function _y(e){return new X(t=>{const{stop:n}=De(XMLHttpRequest.prototype,"open",Sy),{stop:r}=De(XMLHttpRequest.prototype,"send",i=>{Ey(i,e,t)},{computeHandlingStack:!0}),{stop:s}=De(XMLHttpRequest.prototype,"abort",Cy);return()=>{n(),r(),s()}})}function Sy({target:e,parameters:[t,n]}){eo.set(e,{state:"open",method:String(t).toUpperCase(),url:Ui(String(n))})}function Ey({target:e,handlingStack:t},n,r){const s=eo.get(e);if(!s)return;const i=s;i.state="start",i.startClocks=Re(),i.isAborted=!1,i.xhr=e,i.handlingStack=t;let o=!1;const{stop:a}=De(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&c()}),c=()=>{if(l(),a(),o)return;o=!0;const u=s;u.state="complete",u.duration=ve(i.startClocks.timeStamp,he()),u.status=e.status,r.notify(gr(u))},{stop:l}=ne(n,e,"loadend",c);r.notify(i)}function Cy({target:e}){const t=eo.get(e);t&&(t.isAborted=!0)}let to;function Vu(){return to||(to=xy()),to}function xy(){return new X(e=>{if(!window.fetch)return;const{stop:t}=De(window,"fetch",n=>Iy(n,e),{computeHandlingStack:!0});return t})}function Iy({parameters:e,onPostCall:t,handlingStack:n},r){const[s,i]=e;let o=i&&i.method;o===void 0&&s instanceof Request&&(o=s.method);const a=o!==void 0?String(o).toUpperCase():"GET",c=s instanceof Request?s.url:Ui(String(s)),l=Re(),u={state:"start",init:i,input:s,method:a,startClocks:l,url:c,handlingStack:n};r.notify(u),e[0]=u.input,e[1]=u.init,t(d=>Ty(r,d,u))}function Ty(e,t,n){const r=n;function s(i){r.state="resolve",Object.assign(r,i),e.notify(r)}t.then($(i=>{s({response:i,responseType:i.type,status:i.status,isAborted:!1})}),$(i=>{var o,a;s({status:0,isAborted:((a=(o=r.init)===null||o===void 0?void 0:o.signal)===null||a===void 0?void 0:a.aborted)||i instanceof DOMException&&i.code===DOMException.ABORT_ERR,error:i})}))}function zu(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback($(e),t);return()=>window.cancelIdleCallback(n)}return Ry(e)}const Ay=50;function Ry(e){const t=Ke(),n=me(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,Ay-(Ke()-t))})},0);return()=>Me(n)}const ky=xe,Py=30;function Oy(){const e=[];function t(r){let s;if(r.didTimeout){const i=performance.now();s=()=>Py-(performance.now()-i)}else s=r.timeRemaining.bind(r);for(;s()>0&&e.length;)e.shift()();e.length&&n()}function n(){zu(t,{timeout:ky})}return{push(r){e.push(r)===1&&n()}}}let no={};function Ly(e){const t=e.map(n=>(no[n]||(no[n]=Ny(n)),no[n]));return Zl(...t)}function Ny(e){return new X(t=>{const n=It[e];return It[e]=(...r)=>{n.apply(console,r);const s=_s("console error");Kt(()=>{t.notify(My(r,e,s))})},()=>{It[e]=n}})}function My(e,t,n){const r=e.map(i=>Dy(i)).join(" ");let s;if(t===is.error){const i=e.find(Ut);s={stack:i?On(Bt(i)):void 0,fingerprint:wu(i),causes:i?_u(i,"console"):void 0,startClocks:Re(),message:r,source:Ln.CONSOLE,handling:"handled",handlingStack:n,context:vu(i),originalError:i}}return{api:t,message:r,error:s,handlingStack:n}}function Dy(e){return typeof e=="string"?ce(e):Ut(e)?gu(Bt(e)):Tn(ce(e),void 0,2)}function Fy(e){const t=en(e)==="object";return t||q.error("Unsupported context:",e),t}function ro(e,t,n){const r={...e};for(const[s,{required:i,type:o}]of Object.entries(t))o==="string"&&s in r&&(r[s]=String(r[s])),i&&!(s in e)&&q.warn(`The property ${s} of ${n} is required; context will not be sent to the intake.`);return r}function Cs(e="",{propertiesConfig:t={}}={}){let n={};const r=new X,s={getContext:()=>Ki(n),setContext:i=>{Fy(i)?n=ce(ro(i,t,e)):s.clearContext(),r.notify()},setContextProperty:(i,o)=>{n=ce(ro({...n,[i]:o},t,e)),r.notify()},removeContextProperty:i=>{delete n[i],ro(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return s}const By="_dd_c",Uy=[];function so(e,t,n,r){const s=$y(n,r);Uy.push(ne(e,window,"storage",({key:l})=>{s===l&&o()})),t.changeObservable.subscribe(a);const i=it(c(),t.getContext());Gt(i)||t.setContext(i);function o(){t.setContext(c())}function a(){localStorage.setItem(s,JSON.stringify(t.getContext()))}function c(){const l=localStorage.getItem(s);return l?JSON.parse(l):{}}}function $y(e,t){return`${By}_${e}_${t}`}const ge={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},Pe={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function Vy(e,t,n){const r=e.getReader();let s=0;i();function i(){r.read().then($(a=>{if(a.done){o();return}s+=a.value.length,s>n.bytesLimit?o():i()}),$(a=>t(a)))}function o(){r.cancel().catch(G),t(void 0,void 0,void 0)}}const zy="datadog-synthetics-public-id",Hy="datadog-synthetics-result-id",jy="datadog-synthetics-injects-rum";function Hu(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||Ft(jy))}function Wy(){const e=window._DATADOG_SYNTHETICS_PUBLIC_ID||Ft(zy);return typeof e=="string"?e:void 0}function qy(){const e=window._DATADOG_SYNTHETICS_RESULT_ID||Ft(Hy);return typeof e=="string"?e:void 0}function io(e){const t=en(e);return t==="string"||t==="function"||e instanceof RegExp}function ju(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(s){q.error(s)}return!1})}function Gy(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function Ky(e,t,n){function r(i){return!t.wasInPageStateDuringPeriod("frozen",i.startClocks.relative,i.duration)}function s(i){r(i)&&e.notify(12,Zy(i))}return{addDurationVital:s,startDurationVital:(i,o={})=>Wu(n,i,o),stopDurationVital:(i,o={})=>{qu(s,n,i,o)}}}function Wu({vitalsByName:e,vitalsByReference:t},n,r={}){const s={name:n,startClocks:Re(),context:r.context,description:r.description},i={__dd_vital_reference:!0};return e.set(n,s),t.set(i,s),i}function qu(e,{vitalsByName:t,vitalsByReference:n},r,s={}){const i=typeof r=="string"?t.get(r):n.get(r);i&&(e(Yy(i,i.startClocks,s,Re())),typeof r=="string"?t.delete(r):n.delete(r))}function Yy(e,t,n,r){var s;return{name:e.name,type:"duration",startClocks:t,duration:ve(t.timeStamp,r.timeStamp),context:it(e.context,n.context),description:(s=n.description)!==null&&s!==void 0?s:e.description}}function Zy(e,t){const n={date:e.startClocks.timeStamp,vital:{id:_e(),type:e.type,name:e.name,duration:B(e.duration),description:e.description},type:"vital"};return n._dd={vital:{computed_value:!0}},{rawRumEvent:n,startTime:e.startClocks.relative,duration:e.duration,customerContext:e.context,domainContext:{}}}function Gu(e,t,n){if(e)for(const r of e){const s=r[t];s&&s(n)}}function Jy(){return Yu(64)}function Ku(){return Yu(63)}function Yu(e){const t=crypto.getRandomValues(new Uint32Array(2));return e===63&&(t[t.length-1]>>>=1),{toString(n=10){let r=t[1],s=t[0],i="";do{const o=r%n*4294967296+s;r=Math.floor(r/n),s=Math.floor(o/n),i=(o%n).toString(n)+i}while(r||s);return i}}}function Bn(e){return e.toString(16).padStart(16,"0")}let xs;function Xy(e,t){if(t===100)return!0;if(t===0)return!1;if(xs&&e===xs.sessionId)return xs.decision;let n;return window.BigInt?n=Qy(BigInt(`0x${e.split("-")[4]}`),t):n=Nt(t),xs={sessionId:e,decision:n},n}function Qy(e,t){const n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000"),s=e*n%r;return Number(s)<=t/100*Number(r)}function eb(e){const t=e;return en(t)==="object"&&io(t.match)&&Array.isArray(t.propagatorTypes)}function tb(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function nb(e,t,n){return{clearTracingIfNeeded:tb,traceFetch:r=>Zu(e,r,t,n,s=>{var i;if(r.input instanceof Request&&!(!((i=r.init)===null||i===void 0)&&i.headers))r.input=new Request(r.input),Object.keys(s).forEach(o=>{r.input.headers.append(o,s[o])});else{r.init=gr(r.init);const o=[];r.init.headers instanceof Headers?r.init.headers.forEach((a,c)=>{o.push([c,a])}):Array.isArray(r.init.headers)?r.init.headers.forEach(a=>{o.push(a)}):r.init.headers&&Object.keys(r.init.headers).forEach(a=>{o.push([a,r.init.headers[a]])}),r.init.headers=o.concat(Mi(s))}}),traceXhr:(r,s)=>Zu(e,r,t,n,i=>{Object.keys(i).forEach(o=>{s.setRequestHeader(o,i[o])})})}}function Zu(e,t,n,r,s){const i=n.findTrackedSession();if(!i)return;const o=e.allowedTracingUrls.find(l=>ju([l.match],t.url,!0));if(!o)return;const a=Xy(i.id,e.traceSampleRate);(a||e.traceContextInjection===$i.ALL)&&(t.traceSampled=a,t.traceId=Jy(),t.spanId=Ku(),s(rb(t.traceId,t.spanId,t.traceSampled,o.propagatorTypes,r,e)))}function rb(e,t,n,r,s,i){const o={};if(r.forEach(a=>{switch(a){case"datadog":{Object.assign(o,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break}case"tracecontext":{Object.assign(o,{traceparent:`00-0000000000000000${Bn(e)}-${Bn(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break}case"b3":{Object.assign(o,{b3:`${Bn(e)}-${Bn(t)}-${n?"1":"0"}`});break}case"b3multi":{Object.assign(o,{"X-B3-TraceId":Bn(e),"X-B3-SpanId":Bn(t),"X-B3-Sampled":n?"1":"0"});break}}}),vs(Qt.USER_ACCOUNT_TRACE_HEADER)&&i.propagateTraceBaggage){const a=s().user.id,c=s().account.id,l=[];typeof a=="string"&&l.push(`usr.id=${encodeURIComponent(a)}`),typeof c=="string"&&l.push(`account.id=${encodeURIComponent(c)}`),l.length>0&&(o.baggage=l.join(","))}return o}const Ju=["tracecontext","datadog"];function sb(e){var t,n,r,s,i,o,a;if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&q.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){q.error("Application ID is not configured, no RUM data will be collected.");return}if(!kn(e.sessionReplaySampleRate,"Session Replay")||!kn(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){q.error("Excluded Activity Urls should be an array");return}const c=ib(e);if(!c)return;const l=Q1(e);if(!l)return;const u=vs(Qt.PROFILING),d=(t=e.sessionReplaySampleRate)!==null&&t!==void 0?t:0;return{applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:d,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:d===0,traceSampleRate:(n=e.traceSampleRate)!==null&&n!==void 0?n:100,rulePsr:pr(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:c,excludedActivityUrls:(r=e.excludedActivityUrls)!==null&&r!==void 0?r:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(!((s=e.trackUserInteractions)!==null&&s!==void 0)||s),trackViewsManually:!!e.trackViewsManually,trackResources:!!(!((i=e.trackResources)!==null&&i!==void 0)||i),trackLongTasks:!!(!((o=e.trackLongTasks)!==null&&o!==void 0)||o),subdomain:e.subdomain,defaultPrivacyLevel:ls(vr,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:vr.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:ls($i,e.traceContextInjection)?e.traceContextInjection:$i.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:u&&(a=e.profilingSampleRate)!==null&&a!==void 0?a:0,propagateTraceBaggage:!!e.propagateTraceBaggage,...l}}function ib(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){q.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){q.error("Service needs to be configured when tracing is enabled");return}const t=[];return e.allowedTracingUrls.forEach(n=>{io(n)?t.push({match:n,propagatorTypes:Ju}):eb(n)?t.push(n):q.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function ob(e){const t=new Set;return Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0&&e.allowedTracingUrls.forEach(n=>{io(n)?Ju.forEach(r=>t.add(r)):en(n)==="object"&&Array.isArray(n.propagatorTypes)&&n.propagatorTypes.forEach(r=>t.add(r))}),Array.from(t)}function ab(e){var t;const n=e0(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0,selected_tracing_propagators:ob(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(e.excludedActivityUrls)&&e.excludedActivityUrls.length>0,use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:(t=e.plugins)===null||t===void 0?void 0:t.map(r=>{var s;return{name:r.name,...(s=r.getConfigurationTelemetry)===null||s===void 0?void 0:s.call(r)}}),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,...n}}const cb="v1";function lb(e,t){db(e,n=>{t(ub(e,n))})}function ub(e,t){return{...e,...t}}function db(e,t){const n=new XMLHttpRequest;ne(e,n,"load",function(){if(n.status===200){const r=JSON.parse(n.responseText);t(r.rum)}else Xu()}),ne(e,n,"error",function(){Xu()}),n.open("GET",fb(e)),n.send()}function fb(e){return`https://sdk-configuration.${hu("rum",e)}/${cb}/${encodeURIComponent(e.remoteConfigurationId)}.json`}function Xu(){q.error("Error fetching the remote configuration.")}function pb(e){const t=Qu();return e.storeContextsAcrossPages&&so(e,t,"rum",2),t}function Qu(){return Cs("global context")}function hb(e){const t=ed();return e.storeContextsAcrossPages&&so(e,t,"rum",1),t}function ed(){return Cs("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function mb(e){const t=td();return e.storeContextsAcrossPages&&so(e,t,"rum",4),t}function td(){return Cs("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function gb({ignoreInitIfSyntheticsWillInjectRum:e,startDeflateWorker:t},n,r,s){const i=Tu(),o=Qu();oo(o,ge.globalContext,i);const a=ed();oo(a,ge.userContext,i);const c=td();oo(c,ge.accountContext,i);let l,u,d,f;const h=n.observable.subscribe(m),p={};function m(){if(!d||!f||!n.isGranted())return;h.unsubscribe();let w;if(f.trackViewsManually){if(!l)return;i.remove(l.callback),w=l.options}const S=s(f,u,w);i.drain(S)}function g(w){const S=nn();if(S&&(w=yb(w)),d=w,H0(ab(w)),f){Su("DD_RUM",w);return}const O=sb(w);if(O){if(!S&&!O.sessionStoreStrategyType){q.warn("No storage available for session. We will not send any data.");return}O.compressIntakeRequests&&!S&&t&&(u=t(O,"Datadog RUM",G),!u)||(f=O,Vu().subscribe(G),n.tryToInit(O.trackingConsent),m())}}const b=w=>{i.add(S=>S.addDurationVital(w))};return{init(w,S){if(!w){q.error("Missing configuration");return}t0(w.enableExperimentalFeatures),d=w,!(e&&Hu())&&(Gu(w.plugins,"onInit",{initConfiguration:w,publicApi:S}),w.remoteConfigurationId?lb(w,g):g(w))},get initConfiguration(){return d},getInternalContext:G,stopSession:G,addTiming(w,S=he()){i.add(O=>O.addTiming(w,S))},startView(w,S=Re()){const O=A=>{A.startView(w,S)};i.add(O),l||(l={options:w,callback:O},m())},setViewName(w){i.add(S=>S.setViewName(w))},setViewContext(w){i.add(S=>S.setViewContext(w))},setViewContextProperty(w,S){i.add(O=>O.setViewContextProperty(w,S))},getViewContext:()=>p,globalContext:o,userContext:a,accountContext:c,addAction(w){i.add(S=>S.addAction(w))},addError(w){i.add(S=>S.addError(w))},addFeatureFlagEvaluation(w,S){i.add(O=>O.addFeatureFlagEvaluation(w,S))},startDurationVital(w,S){return Wu(r,w,S)},stopDurationVital(w,S){qu(b,r,w,S)},addDurationVital:b}}function yb(e){var t,n;return{...e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(n=Dn())===null||n===void 0?void 0:n.getPrivacyLevel()}}function oo(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.add(s=>s[t].setContext(r))})}function bb(e,t,n,r={}){const s=L1(),i=Gy();let o=gb(r,s,i,(u,d,f)=>{const h=e(u,t,n,f,d&&r.createDeflateEncoder?p=>r.createDeflateEncoder(u,d,p):yy,s,i);return t.onRumStart(h.lifeCycle,u,h.session,h.viewHistory,d),n.onRumStart(h.lifeCycle,u,h.session,h.viewHistory),o=wb(o,h),Gu(u.plugins,"onRumStart",{strategy:o}),h});const a=$(u=>{const d=typeof u=="object"?u:{name:u};o.startView(d),ke({feature:"start-view"})});function c(u,d,f){return $((...h)=>(ke({feature:f}),o[u][d](...h)))}const l=A0({init:$(u=>{o.init(u,l)}),setTrackingConsent:$(u=>{s.update(u),ke({feature:"set-tracking-consent",tracking_consent:u})}),setViewName:$(u=>{o.setViewName(u),ke({feature:"set-view-name"})}),setViewContext:$(u=>{o.setViewContext(u),ke({feature:"set-view-context"})}),setViewContextProperty:$((u,d)=>{o.setViewContextProperty(u,d),ke({feature:"set-view-context-property"})}),getViewContext:$(()=>(ke({feature:"set-view-context-property"}),o.getViewContext())),getInternalContext:$(u=>o.getInternalContext(u)),getInitConfiguration:$(()=>Ki(o.initConfiguration)),addAction:(u,d)=>{const f=_s("action");Kt(()=>{o.addAction({name:ce(u),context:ce(d),startClocks:Re(),type:"custom",handlingStack:f}),ke({feature:"add-action"})})},addError:(u,d)=>{const f=_s("error");Kt(()=>{o.addError({error:u,handlingStack:f,context:ce(d),startClocks:Re()}),ke({feature:"add-error"})})},addTiming:$((u,d)=>{o.addTiming(ce(u),d)}),setGlobalContext:c(ge.globalContext,Pe.setContext,"set-global-context"),getGlobalContext:c(ge.globalContext,Pe.getContext,"get-global-context"),setGlobalContextProperty:c(ge.globalContext,Pe.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:c(ge.globalContext,Pe.removeContextProperty,"remove-global-context-property"),clearGlobalContext:c(ge.globalContext,Pe.clearContext,"clear-global-context"),setUser:c(ge.userContext,Pe.setContext,"set-user"),getUser:c(ge.userContext,Pe.getContext,"get-user"),setUserProperty:c(ge.userContext,Pe.setContextProperty,"set-user-property"),removeUserProperty:c(ge.userContext,Pe.removeContextProperty,"remove-user-property"),clearUser:c(ge.userContext,Pe.clearContext,"clear-user"),setAccount:c(ge.accountContext,Pe.setContext,"set-account"),getAccount:c(ge.accountContext,Pe.getContext,"get-account"),setAccountProperty:c(ge.accountContext,Pe.setContextProperty,"set-account-property"),removeAccountProperty:c(ge.accountContext,Pe.removeContextProperty,"remove-account-property"),clearAccount:c(ge.accountContext,Pe.clearContext,"clear-account"),startView:a,stopSession:$(()=>{o.stopSession(),ke({feature:"stop-session"})}),addFeatureFlagEvaluation:$((u,d)=>{o.addFeatureFlagEvaluation(ce(u),ce(d)),ke({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:$(()=>t.getSessionReplayLink()),startSessionReplayRecording:$(u=>{t.start(u),ke({feature:"start-session-replay-recording",force:u&&u.force})}),stopSessionReplayRecording:$(()=>t.stop()),addDurationVital:$((u,d)=>{ke({feature:"add-duration-vital"}),o.addDurationVital({name:ce(u),type:"duration",startClocks:Gg(d.startTime),duration:d.duration,context:ce(d&&d.context),description:ce(d&&d.description)})}),startDurationVital:$((u,d)=>(ke({feature:"start-duration-vital"}),o.startDurationVital(ce(u),{context:ce(d&&d.context),description:ce(d&&d.description)}))),stopDurationVital:$((u,d)=>{ke({feature:"stop-duration-vital"}),o.stopDurationVital(typeof u=="string"?ce(u):u,{context:ce(d&&d.context),description:ce(d&&d.description)})})});return l}function wb(e,t){return{init:n=>{Su("DD_RUM",n)},initConfiguration:e.initConfiguration,...t}}function vb(){const e=nd();return new X(t=>{if(!e)return;const n=new e($(()=>t.notify()));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function nd(){let e;const t=window;if(t.Zone&&(e=Mt(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){const n=new t.MutationObserver(G),r=Mt(n,"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}function _b(){const e=new X,{stop:t}=De(window,"open",()=>e.notify());return{observable:e,stop:t}}function Sb(e,t,n,r,s){return{get:i=>{const o=n.findView(i),a=s.findUrl(i),c=t.findTrackedSession(i);if(c&&o&&a){const l=r.findActionId(i);return{application_id:e,session_id:c.id,user_action:l?{id:l}:void 0,view:{id:o.id,name:o.name,referrer:a.referrer,url:a.url}}}}}}const Eb=by,Cb=Yt;function xb(e){const t=Mn({expireDelay:Cb});e.subscribe(1,r=>{t.add(n(r),r.startClocks.relative)}),e.subscribe(6,({endClocks:r})=>{t.closeActive(r.relative)}),e.subscribe(3,r=>{const s=t.find(r.startClocks.relative);s&&r.name&&(s.name=r.name),s&&r.context&&(s.context=r.context)}),e.subscribe(10,()=>{t.reset()});function n(r){return{service:r.service,version:r.version,context:r.context,id:r.id,name:r.name,startClocks:r.startClocks}}return{findView:r=>t.find(r),getAllEntries:()=>t.getAllEntries(),getDeletedEntries:()=>t.getDeletedEntries(),stop:()=>{t.stop()}}}const rd="initial_document",Ib=[["document",e=>rd===e],["xhr",e=>e==="xmlhttprequest"],["fetch",e=>e==="fetch"],["beacon",e=>e==="beacon"],["css",(e,t)=>/\.css$/i.test(t)],["js",(e,t)=>/\.js$/i.test(t)],["image",(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],["font",(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],["media",(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function Tb(e){const t=e.name;if(!N1(t))return At(`Failed to construct URL for "${e.name}"`),"other";const n=M1(t);for(const[r,s]of Ib)if(s(e.initiatorType,n))return r;return"other"}function sd(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function Ab(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function id(e){const{duration:t,startTime:n,responseEnd:r}=e;return t===0&&n<r?ve(n,r):t}function Rb(e){if(!ad(e))return;const{startTime:t,fetchStart:n,workerStart:r,redirectStart:s,redirectEnd:i,domainLookupStart:o,domainLookupEnd:a,connectStart:c,secureConnectionStart:l,connectEnd:u,requestStart:d,responseStart:f,responseEnd:h}=e,p={download:rn(t,f,h),first_byte:rn(t,d,f)};return 0<r&&r<n&&(p.worker=rn(t,r,n)),n<u&&(p.connect=rn(t,c,u),c<=l&&l<=u&&(p.ssl=rn(t,l,u))),n<a&&(p.dns=rn(t,o,a)),t<i&&(p.redirect=rn(t,s,i)),p}function od(e){return e.duration>=0}function ad(e){const t=sd(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=kb(e)?sd(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function kb(e){return e.redirectEnd>e.startTime}function rn(e,t,n){if(e<=t&&t<=n)return{duration:B(ve(t,n)),start:B(ve(e,t))}}function cd(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function ld(e){return e.deliveryType===""?"other":e.deliveryType}function Pb(e){if(e.startTime<e.responseStart){const{encodedBodySize:t,decodedBodySize:n,transferSize:r}=e;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function ao(e){return e&&!J1(e)}const Ob=/data:(.+)?(;base64)?,/g,ud=24e3;function dd(e){return e.length<=ud?!1:e.substring(0,5)==="data:"?(e=e.substring(0,ud),!0):!1}function fd(e){return`${e.match(Ob)[0]}[...]`}let pd=1;function Lb(e,t,n,r){const s=nb(t,n,r);Nb(e,t,s),Mb(e,s)}function Nb(e,t,n){const r=vy(t).subscribe(s=>{const i=s;if(ao(i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=hd(),e.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),e.notify(8,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"xhr",url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack});break}});return{stop:()=>r.unsubscribe()}}function Mb(e,t){const n=Vu().subscribe(r=>{const s=r;if(ao(s.url))switch(s.state){case"start":t.traceFetch(s),s.requestIndex=hd(),e.notify(7,{requestIndex:s.requestIndex,url:s.url});break;case"resolve":Db(s,i=>{t.clearTracingIfNeeded(s),e.notify(8,{duration:i,method:s.method,requestIndex:s.requestIndex,responseType:s.responseType,spanId:s.spanId,startClocks:s.startClocks,status:s.status,traceId:s.traceId,traceSampled:s.traceSampled,type:"fetch",url:s.url,response:s.response,init:s.init,input:s.input,isAborted:s.isAborted,handlingStack:s.handlingStack})});break}});return{stop:()=>n.unsubscribe()}}function hd(){const e=pd;return pd+=1,e}function Db(e,t){const n=e.response&&ty(e.response);!n||!n.body?t(ve(e.startClocks.timeStamp,he())):Vy(n.body,()=>{t(ve(e.startClocks.timeStamp,he()))},{bytesLimit:Number.POSITIVE_INFINITY})}function md(e){return pr(e)&&e<0?void 0:e}function gd({lifeCycle:e,isChildEvent:t,onChange:n=G}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},s=e.subscribe(13,i=>{var o;if(!(i.type==="view"||i.type==="vital"||!t(i)))switch(i.type){case"error":r.errorCount+=1,n();break;case"action":r.actionCount+=1,i.action.frustration&&(r.frustrationCount+=i.action.frustration.type.length),n();break;case"long_task":r.longTaskCount+=1,n();break;case"resource":!((o=i._dd)===null||o===void 0)&&o.discarded||(r.resourceCount+=1,n());break}});return{stop:()=>{s.unsubscribe()},eventCounts:r}}function Fb(e,t){const n=Ke();let r=!1;const{stop:s}=Fe(e,window,["click","mousedown","keydown","touchstart","pointerdown"],a=>{if(!a.cancelable)return;const c={entryType:"first-input",processingStart:Ye(),processingEnd:Ye(),startTime:a.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};a.type==="pointerdown"?i(e,c):o(c)},{passive:!0,capture:!0});return{stop:s};function i(a,c){Fe(a,window,["pointerup","pointercancel"],l=>{l.type==="pointerup"&&o(c)},{once:!0})}function o(a){if(!r){r=!0,s();const c=a.processingStart-a.startTime;c>=0&&c<Ke()-n&&t(a)}}}var Z;(function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource",e.VISIBILITY_STATE="visibility-state"})(Z||(Z={}));function gt(e,t){return new X(n=>{if(!window.PerformanceObserver)return;const r=c=>{const l=$b(c);l.length>0&&n.notify(l)};let s,i=!0;const o=new PerformanceObserver($(c=>{i?s=me(()=>r(c.getEntries())):r(c.getEntries())}));try{o.observe(t)}catch{if([Z.RESOURCE,Z.NAVIGATION,Z.LONG_TASK,Z.PAINT].includes(t.type)){t.buffered&&(s=me(()=>r(performance.getEntriesByType(t.type))));try{o.observe({entryTypes:[t.type]})}catch{return}}}i=!1,Bb(e);let a;return!sn(Z.FIRST_INPUT)&&t.type===Z.FIRST_INPUT&&({stop:a}=Fb(e,c=>{r([c])})),()=>{o.disconnect(),a&&a(),Me(s)}})}let Ir;function Bb(e){return!Ir&&Ub()&&"addEventListener"in performance&&(Ir=ne(e,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{Ir==null||Ir.stop()}}function Ub(){return window.performance!==void 0&&"getEntries"in performance}function sn(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function $b(e){return e.filter(t=>!Vb(t))}function Vb(e){return e.entryType===Z.RESOURCE&&(!ao(e.name)||!od(e))}const yd=100,zb=100;function co(e,t,n,r,s,i){const o=jb(e,t,n,r);return Hb(o,s,i)}function Hb(e,t,n){let r,s=!1;const i=me($(()=>l({hadActivity:!1})),yd),o=n!==void 0?me($(()=>l({hadActivity:!0,end:he()})),n):void 0,a=e.subscribe(({isBusy:u})=>{Me(i),Me(r);const d=he();u||(r=me($(()=>l({hadActivity:!0,end:d})),zb))}),c=()=>{s=!0,Me(i),Me(r),Me(o),a.unsubscribe()};function l(u){s||(c(),t(u))}return{stop:c}}function jb(e,t,n,r){return new X(s=>{const i=[];let o,a=0;return i.push(t.subscribe(c),n.subscribe(c),gt(r,{type:Z.RESOURCE}).subscribe(l=>{l.some(u=>!lo(r,u.name))&&c()}),e.subscribe(7,l=>{lo(r,l.url)||(o===void 0&&(o=l.requestIndex),a+=1,c())}),e.subscribe(8,l=>{lo(r,l.url)||o===void 0||l.requestIndex<o||(a-=1,c())})),()=>{i.forEach(l=>l.unsubscribe())};function c(){s.notify({isBusy:a>0})}})}function lo(e,t){return ju(e.excludedActivityUrls,t)}function bd(e){return e.nodeType===Node.TEXT_NODE}function Wb(e){return e.nodeType===Node.COMMENT_NODE}function Un(e){return e.nodeType===Node.ELEMENT_NODE}function Is(e){return Un(e)&&!!e.shadowRoot}function uo(e){const t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Un(t.host)}function qb(e){return e.childNodes.length>0||Is(e)}function wd(e,t){let n=e.firstChild;for(;n;)t(n),n=n.nextSibling;Is(e)&&t(e.shadowRoot)}function Ts(e){return uo(e)?e.host:e.parentNode}const D={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:vr.ALLOW,MASK:vr.MASK,MASK_USER_INPUT:vr.MASK_USER_INPUT},fo="data-dd-privacy",Gb="hidden",Kb="dd-privacy-",$t="***",vd="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Yb={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},Zb="x";function yt(e,t,n){if(n&&n.has(e))return n.get(e);const r=Ts(e),s=r?yt(r,t,n):t,i=Sd(e),o=_d(i,s);return n&&n.set(e,o),o}function _d(e,t){switch(t){case D.HIDDEN:case D.IGNORE:return t}switch(e){case D.ALLOW:case D.MASK:case D.MASK_USER_INPUT:case D.HIDDEN:case D.IGNORE:return e;default:return t}}function Sd(e){if(Un(e)){if(e.tagName==="BASE")return D.ALLOW;if(e.tagName==="INPUT"){const t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return D.MASK;const n=t.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return D.MASK}if(e.matches($n(D.HIDDEN)))return D.HIDDEN;if(e.matches($n(D.MASK)))return D.MASK;if(e.matches($n(D.MASK_USER_INPUT)))return D.MASK_USER_INPUT;if(e.matches($n(D.ALLOW)))return D.ALLOW;if(Xb(e))return D.IGNORE}}function As(e,t){switch(t){case D.MASK:case D.HIDDEN:case D.IGNORE:return!0;case D.MASK_USER_INPUT:return bd(e)?Ed(e.parentNode):Ed(e);default:return!1}}function Ed(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!Yb[t.tagName]}const Jb=e=>e.replace(/\S/g,Zb);function Cd(e,t,n){var r;const s=(r=e.parentElement)===null||r===void 0?void 0:r.tagName;let i=e.textContent||"";if(t&&!i.trim())return;const o=n;if(s==="SCRIPT")i=$t;else if(o===D.HIDDEN)i=$t;else if(As(e,o))if(s==="DATALIST"||s==="SELECT"||s==="OPTGROUP"){if(!i.trim())return}else s==="OPTION"?i=$t:i=Jb(i);return i}function Xb(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){const n=t("rel");return/preload|prefetch/i.test(n)&&t("as")==="script"||n==="shortcut icon"||n==="icon"}if(e.nodeName==="META"){const n=t("name"),r=t("rel"),s=t("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||r==="icon"||r==="apple-touch-icon"||r==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(s)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(s)||/^product:/.test(s)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function t(n){return(e.getAttribute(n)||"").toLowerCase()}return!1}function $n(e){return`[${fo}="${e}"], .${Kb}${e}`}const po="data-dd-action-name",Qb="Masked Element";function e2(e,{enablePrivacyForActionName:t,actionNameAttribute:n},r){const s=xd(e,po)||n&&xd(e,n);return s?{name:s,nameSource:"custom_attribute"}:r===D.MASK?{name:Qb,nameSource:"mask_placeholder"}:Id(e,n,t2,t)||Id(e,n,n2,t)||{name:"",nameSource:"blank"}}function xd(e,t){const n=e.closest(`[${t}]`);if(!n)return;const r=n.getAttribute(t);return Ad(Td(r.trim()))}const t2=[(e,t)=>{if("labels"in e&&e.labels&&e.labels.length>0)return Rs(e.labels[0],t)},e=>{if(e.nodeName==="INPUT"){const t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t,n)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return Rs(e,t,n)},e=>Tr(e,"aria-label"),(e,t,n)=>{const r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(s=>s2(e,s)).filter(s=>!!s).map(s=>Rd(s,t,n)).join(" "),nameSource:"text_content"}},e=>Tr(e,"alt"),e=>Tr(e,"name"),e=>Tr(e,"title"),e=>Tr(e,"placeholder"),(e,t)=>{if("options"in e&&e.options.length>0)return Rs(e.options[0],t)}],n2=[(e,t,n)=>Rs(e,t,n)],r2=10;function Id(e,t,n,r){let s=e,i=0;for(;i<=r2&&s&&s.nodeName!=="BODY"&&s.nodeName!=="HTML"&&s.nodeName!=="HEAD";){for(const o of n){const a=o(s,t,r);if(a){const{name:c,nameSource:l}=a,u=c&&c.trim();if(u)return{name:Ad(Td(u)),nameSource:l}}}if(s.nodeName==="FORM")break;s=s.parentElement,i+=1}}function Td(e){return e.replace(/\s+/g," ")}function Ad(e){return e.length>100?`${Jl(e,100)} [...]`:e}function s2(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function Tr(e,t){return{name:e.getAttribute(t)||"",nameSource:"standard_attribute"}}function Rs(e,t,n){return{name:Rd(e,t,n)||"",nameSource:"text_content"}}function Rd(e,t,n){if(!e.isContentEditable){if("innerText"in e){let r=e.innerText;const s=i=>{const o=e.querySelectorAll(i);for(let a=0;a<o.length;a+=1){const c=o[a];if("innerText"in c){const l=c.innerText;l&&l.trim().length>0&&(r=r.replace(l,""))}}};return s(`[${po}]`),t&&s(`[${t}]`),n&&s(`${$n(D.HIDDEN)}, ${$n(D.MASK)}`),r}return e.textContent}}const kd=[po,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],i2=[Od,a2],o2=[Od,c2,l2];function Ar(e,t){if(!e.isConnected)return;let n,r=e;for(;r&&r.nodeName!=="HTML";){const s=Ld(r,i2,d2,t,n);if(s)return s;n=Ld(r,o2,f2,t,n)||ks(u2(r),n),r=r.parentElement}return n}function Pd(e){return/[0-9]/.test(e)}function a2(e){if(e.id&&!Pd(e.id))return`#${CSS.escape(e.id)}`}function c2(e){if(e.tagName==="BODY")return;const t=e.classList;for(let n=0;n<t.length;n+=1){const r=t[n];if(!Pd(r))return`${CSS.escape(e.tagName)}.${CSS.escape(r)}`}}function l2(e){return CSS.escape(e.tagName)}function Od(e,t){if(t){const r=n(t);if(r)return r}for(const r of kd){const s=n(r);if(s)return s}function n(r){if(e.hasAttribute(r))return`${CSS.escape(e.tagName)}[${r}="${CSS.escape(e.getAttribute(r))}"]`}}function u2(e){let t=e.parentElement.firstElementChild,n=1;for(;t&&t!==e;)t.tagName===e.tagName&&(n+=1),t=t.nextElementSibling;return`${CSS.escape(e.tagName)}:nth-of-type(${n})`}function Ld(e,t,n,r,s){for(const i of t){const o=i(e,r);if(o&&n(e,o,s))return ks(o,s)}}function d2(e,t,n){return e.ownerDocument.querySelectorAll(ks(t,n)).length===1}function f2(e,t,n){let r;if(n===void 0)r=o=>o.matches(t);else{const o=ks(`${t}:scope`,n);r=a=>a.querySelector(o)!==null}let i=e.parentElement.firstElementChild;for(;i;){if(i!==e&&r(i))return!1;i=i.nextElementSibling}return!0}function ks(e,t){return t?`${e}>${t}`:e}const Nd=xe,p2=100;function h2(e,t){const n=[];let r=0,s;i(e);function i(c){c.stopObservable.subscribe(o),n.push(c),Me(s),s=me(a,Nd)}function o(){r===1&&n.every(c=>c.isStopped())&&(r=2,t(n))}function a(){Me(s),r===0&&(r=1,o())}return{tryAppend:c=>r!==0?!1:n.length>0&&!m2(n[n.length-1].event,c.event)?(a(),!1):(i(c),!0),stop:()=>{a()}}}function m2(e,t){return e.target===t.target&&g2(e,t)<=p2&&e.timeStamp-t.timeStamp<=Nd}function g2(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function y2(e,{onPointerDown:t,onPointerUp:n}){let r,s={selection:!1,input:!1,scroll:!1},i;const o=[ne(e,window,"pointerdown",a=>{Dd(a)&&(r=Md(),s={selection:!1,input:!1,scroll:!1},i=t(a))},{capture:!0}),ne(e,window,"selectionchange",()=>{(!r||!Md())&&(s.selection=!0)},{capture:!0}),ne(e,window,"scroll",()=>{s.scroll=!0},{capture:!0,passive:!0}),ne(e,window,"pointerup",a=>{if(Dd(a)&&i){const c=s;n(i,a,()=>c),i=void 0}},{capture:!0}),ne(e,window,"input",()=>{s.input=!0},{capture:!0})];return{stop:()=>{o.forEach(a=>a.stop())}}}function Md(){const e=window.getSelection();return!e||e.isCollapsed}function Dd(e){return e.target instanceof Element&&e.isPrimary!==!1}const Fd=3;function b2(e,t){if(w2(e))return t.addFrustration("rage_click"),e.some(Bd)&&t.addFrustration("dead_click"),t.hasError&&t.addFrustration("error_click"),{isRage:!0};const n=e.some(r=>r.getUserActivity().selection);return e.forEach(r=>{r.hasError&&r.addFrustration("error_click"),Bd(r)&&!n&&r.addFrustration("dead_click")}),{isRage:!1}}function w2(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t<e.length-(Fd-1);t+=1)if(e[t+Fd-1].event.timeStamp-e[t].event.timeStamp<=xe)return!0;return!1}const v2='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] *';function Bd(e){return e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll?!1:!e.event.target.matches(v2)}const Ud=10*xe,Rr=new Map;function _2(e){const t=Rr.get(e);return Rr.delete(e),t}function $d(e,t){Rr.set(e,t),Rr.forEach((n,r)=>{ve(r,Ye())>Ud&&Rr.delete(r)})}const S2=5*Ne;function E2(e,t,n,r){const s=Mn({expireDelay:S2}),i=new X;let o;e.subscribe(10,()=>{s.reset()}),e.subscribe(5,u),e.subscribe(11,d=>{d.reason===Fn.UNLOADING&&u()});const{stop:a}=y2(r,{onPointerDown:d=>C2(r,e,t,d,n),onPointerUp:({clickActionBase:d,hadActivityOnPointerDown:f},h,p)=>{x2(r,e,t,n,s,i,l,d,h,p,f)}});return{stop:()=>{u(),i.notify(),a()},actionContexts:{findActionId:d=>s.findAll(d)}};function l(d){if(!o||!o.tryAppend(d)){const f=d.clone();o=h2(d,h=>{T2(h,f)})}}function u(){o&&o.stop()}}function C2(e,t,n,r,s){const i=e.enablePrivacyForActionName?yt(r.target,e.defaultPrivacyLevel):D.ALLOW;if(i===D.HIDDEN)return;const o=I2(r,i,e);let a=!1;return co(t,n,s,e,c=>{a=c.hadActivity},yd),{clickActionBase:o,hadActivityOnPointerDown:()=>a}}function x2(e,t,n,r,s,i,o,a,c,l,u){var d;const f=Vd(t,s,l,a,c);o(f);const h=(d=a==null?void 0:a.target)===null||d===void 0?void 0:d.selector;h&&$d(c.timeStamp,h);const{stop:p}=co(t,n,r,e,b=>{b.hadActivity&&b.end<f.startClocks.timeStamp?f.discard():b.hadActivity?f.stop(b.end):u()?f.stop(f.startClocks.timeStamp):f.stop()},Ud),m=t.subscribe(5,({endClocks:b})=>{f.stop(b.timeStamp)}),g=i.subscribe(()=>{f.stop()});f.stopObservable.subscribe(()=>{m.unsubscribe(),p(),g.unsubscribe()})}function I2(e,t,n){const r=e.target.getBoundingClientRect(),s=Ar(e.target,n.actionNameAttribute);s&&$d(e.timeStamp,s);const i=e2(e.target,n,t);return{type:"click",target:{width:Math.round(r.width),height:Math.round(r.height),selector:s},position:{x:Math.round(e.clientX-r.left),y:Math.round(e.clientY-r.top)},name:i.name,nameSource:i.nameSource}}function Vd(e,t,n,r,s){const i=_e(),o=Re(),a=t.add(i,o.relative),c=gd({lifeCycle:e,isChildEvent:p=>p.action!==void 0&&(Array.isArray(p.action.id)?p.action.id.includes(i):p.action.id===i)});let l=0,u;const d=[],f=new X;function h(p){l===0&&(u=p,l=1,u?a.close(Ai(u)):a.remove(),c.stop(),f.notify())}return{event:s,stop:h,stopObservable:f,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return u!==void 0},getUserActivity:n,addFrustration:p=>{d.push(p)},startClocks:o,isStopped:()=>l===1||l===2,clone:()=>Vd(e,t,n,r,s),validate:p=>{if(h(),l!==1)return;const{resourceCount:m,errorCount:g,longTaskCount:b}=c.eventCounts,x={duration:u&&ve(o.timeStamp,u),startClocks:o,id:i,frustrationTypes:d,counts:{resourceCount:m,errorCount:g,longTaskCount:b},events:p??[s],event:s,...r};e.notify(0,x),l=2},discard:()=>{h(),l=2}}}function T2(e,t){const{isRage:n}=b2(e,t);n?(e.forEach(r=>r.discard()),t.stop(he()),t.validate(e.map(r=>r.event))):(t.discard(),e.forEach(r=>r.validate()))}function A2(e,t,n,r,s){e.subscribe(0,a=>e.notify(12,zd(a))),t.register(0,({startTime:a,eventType:c})=>{if(c!=="error"&&c!=="resource"&&c!=="long_task")return;const l=i.findActionId(a);if(l)return{type:c,action:{id:l}}});let i={findActionId:G},o=G;return s.trackUserInteractions&&({actionContexts:i,stop:o}=E2(e,n,r,s)),{addAction:a=>{e.notify(12,zd(a))},actionContexts:i,stop:o}}function zd(e){const t=Ps(e)?{action:{id:e.id,loading_time:md(B(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position,name_source:e.nameSource}}}:void 0,n=it({action:{id:_e(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action"},t),r=Ps(e)?e.duration:void 0,s=Ps(e)?void 0:e.context,i=Ps(e)?{events:e.events}:{handlingStack:e.handlingStack};return{customerContext:s,rawRumEvent:n,duration:r,startTime:e.startClocks.relative,domainContext:i}}function Ps(e){return e.type!=="custom"}function R2(e){const t=Ly([is.error]).subscribe(n=>e.notify(n.error));return{stop:()=>{t.unsubscribe()}}}function k2(e,t){const n=k0(e,[Er.cspViolation,Er.intervention]).subscribe(r=>t.notify(r));return{stop:()=>{n.unsubscribe()}}}function P2(e,t){const n=new X;return R2(n),x0(n),k2(t,n),n.subscribe(r=>e.notify(14,{error:r})),O2(e)}function O2(e){return e.subscribe(14,({error:t,customerContext:n})=>{n=it(t.context,n),e.notify(12,{customerContext:n,...L2(t)})}),{addError:({error:t,handlingStack:n,componentStack:r,startClocks:s,context:i})=>{const o=Ut(t)?Bt(t):void 0,a=bu({stackTrace:o,originalError:t,handlingStack:n,componentStack:r,startClocks:s,nonErrorPrefix:"Provided",source:Ln.CUSTOM,handling:"handled"});e.notify(14,{customerContext:i,error:a})}}}function L2(e){const t={date:e.startClocks.timeStamp,error:{id:_e(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:"error"},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startTime:e.startClocks.relative,domainContext:n}}const Hd=new WeakSet;function N2(e){if(!performance||!("getEntriesByName"in performance))return;const t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;const n=t.filter(r=>!Hd.has(r)).filter(r=>od(r)&&ad(r)).filter(r=>M2(r,e.startClocks.relative,jd({startTime:e.startClocks.relative,duration:e.duration})));if(n.length===1)return Hd.add(n[0]),n[0].toJSON()}function jd(e){return Cn(e.startTime,e.duration)}function M2(e,t,n){return e.startTime>=t-1&&jd(e)<=Cn(n,1)}const D2=2*Ne;function F2(e){const t=B2(e)||U2(e);if(!(!t||t.traceTime<=Ke()-D2))return t.traceId}function B2(e){const t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return Wd(t&&t.content,n&&n.content)}function U2(e){const t=$2(e);if(t)return Wd(yr(t,"trace-id"),yr(t,"trace-time"))}function Wd(e,t){const n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function $2(e){for(let t=0;t<e.childNodes.length;t+=1){const n=qd(e.childNodes[t]);if(n)return n}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){const n=e.body.childNodes[t],r=qd(n);if(r)return r;if(!bd(n))break}}function qd(e){if(e&&Wb(e)){const t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function Gd(){if(sn(Z.NAVIGATION)){const n=performance.getEntriesByType(Z.NAVIGATION)[0];if(n)return n}const e=V2(),t={entryType:Z.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function V2(){const e={},t=performance.timing;for(const n in t)if(pr(t[n])){const r=n,s=t[r];e[r]=s===0?0:Ai(s)}return e}function z2(e,t,n=Gd){Xi(e,"interactive",()=>{const r=n(),s=Object.assign(r.toJSON(),{entryType:Z.RESOURCE,initiatorType:rd,duration:r.responseEnd,traceId:F2(document),toJSON:()=>({...s,toJSON:void 0})});t(s)})}function H2(e,t,n,r=Oy(),s=z2){e.subscribe(8,a=>{o(()=>j2(a,t,n))});const i=gt(t,{type:Z.RESOURCE,buffered:!0}).subscribe(a=>{for(const c of a)Ab(c)||o(()=>Kd(c,t))});s(t,a=>{o(()=>Kd(a,t))});function o(a){r.push(()=>{const c=a();c&&e.notify(12,c)})}return{stop:()=>{i.unsubscribe()}}}function j2(e,t,n){const r=N2(e),s=r?cs(r.startTime):e.startClocks,i=W2(e,t);if(!t.trackResources&&!i)return;const o=e.type==="xhr"?"xhr":"fetch",a=r?Yd(r):void 0,c=r?id(r):G2(n,s,e.duration),l=it({date:s.timeStamp,resource:{id:_e(),type:o,duration:B(c),method:e.method,status_code:e.status,protocol:r&&cd(r),url:dd(e.url)?fd(e.url):e.url,delivery_type:r&&ld(r)},type:"resource",_dd:{discarded:!t.trackResources}},i,a);return{startTime:s.relative,duration:c,rawRumEvent:l,domainContext:{performanceEntry:r,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error,isAborted:e.isAborted,handlingStack:e.handlingStack}}}function Kd(e,t){const n=cs(e.startTime),r=q2(e,t);if(!t.trackResources&&!r)return;const s=Tb(e),i=Yd(e),o=id(e),a=it({date:n.timeStamp,resource:{id:_e(),type:s,duration:B(o),url:e.name,status_code:K2(e.responseStatus),protocol:cd(e),delivery_type:ld(e)},type:"resource",_dd:{discarded:!t.trackResources}},r,i);return{startTime:n.relative,duration:o,rawRumEvent:a,domainContext:{performanceEntry:e}}}function Yd(e){const{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...Pb(e),...Rb(e)}}}function W2(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function q2(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:Ku().toString(),rule_psr:t.rulePsr}}}function G2(e,t,n){return e.wasInPageStateDuringPeriod("frozen",t.relative,n)?void 0:n}function K2(e){return e===0?void 0:e}function Y2(e,t,n){const{stop:r,eventCounts:s}=gd({lifeCycle:e,isChildEvent:i=>i.view.id===t,onChange:n});return{stop:r,eventCounts:s}}const Z2=10*Ne;function J2(e,t,n){return{stop:gt(e,{type:Z.PAINT,buffered:!0}).subscribe(s=>{const i=s.find(o=>o.name==="first-contentful-paint"&&o.startTime<t.timeStamp&&o.startTime<Z2);i&&n(i.startTime)}).unsubscribe}}function X2(e,t,n){const r=gt(e,{type:Z.FIRST_INPUT,buffered:!0}).subscribe(s=>{const i=s.find(o=>o.startTime<t.timeStamp);if(i){const o=ve(i.startTime,i.processingStart);let a;i.target&&Un(i.target)&&(a=Ar(i.target,e.actionNameAttribute)),n({delay:o>=0?o:0,time:i.startTime,targetSelector:a})}});return{stop:()=>{r.unsubscribe()}}}function Q2(e,t,n=Gd){return nw(e,()=>{const r=n();tw(r)||t(ew(r))})}function ew(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=Ye()?e.responseStart:void 0}}function tw(e){return e.loadEventEnd<=0}function nw(e,t){let n;const{stop:r}=Xi(e,"complete",()=>{n=me(()=>t())});return{stop:()=>{r(),Me(n)}}}const rw=10*Ne;function sw(e,t,n,r){let s=1/0;const{stop:i}=Fe(e,n,["pointerdown","keydown"],c=>{s=c.timeStamp},{capture:!0,once:!0});let o=0;const a=gt(e,{type:Z.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(c=>{const l=l1(c,u=>u.entryType===Z.LARGEST_CONTENTFUL_PAINT&&u.startTime<s&&u.startTime<t.timeStamp&&u.startTime<rw&&u.size>o);if(l){let u;l.element&&(u=Ar(l.element,e.actionNameAttribute)),r({value:l.startTime,targetSelector:u,resourceUrl:iw(l)}),o=l.size}});return{stop:()=>{i(),a.unsubscribe()}}}function iw(e){return e.url===""?void 0:e.url}function Zd(e,t=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:G};if(sn(Z.VISIBILITY_STATE)){const s=performance.getEntriesByType(Z.VISIBILITY_STATE).find(i=>i.name==="hidden");if(s)return{timeStamp:s.startTime,stop:G}}let n=1/0;const{stop:r}=Fe(e,t,["pagehide","visibilitychange"],s=>{(s.type==="pagehide"||document.visibilityState==="hidden")&&(n=s.timeStamp,r())},{capture:!0});return{get timeStamp(){return n},stop:r}}function ow(e,t,n){const r={},{stop:s}=Q2(e,u=>{t(u.loadEvent),r.navigationTimings=u,n()}),i=Zd(e),{stop:o}=J2(e,i,u=>{r.firstContentfulPaint=u,n()}),{stop:a}=sw(e,i,window,u=>{r.largestContentfulPaint=u,n()}),{stop:c}=X2(e,i,u=>{r.firstInput=u,n()});function l(){s(),o(),a(),c(),i.stop()}return{stop:l,initialViewMetrics:r}}function aw(e,t,n){if(!fw())return{stop:G};let r=0,s;n({value:0});const i=dw(),o=gt(e,{type:Z.LAYOUT_SHIFT,buffered:!0}).subscribe(a=>{var c;for(const l of a){if(l.hadRecentInput||l.startTime<t)continue;const{cumulatedValue:u,isMaxValue:d}=i.update(l);if(d){const f=cw(l.sources);s={target:f!=null&&f.node?new WeakRef(f.node):void 0,time:ve(t,l.startTime),previousRect:f==null?void 0:f.previousRect,currentRect:f==null?void 0:f.currentRect,devicePixelRatio:window.devicePixelRatio}}if(u>r){r=u;const f=(c=s==null?void 0:s.target)===null||c===void 0?void 0:c.deref();n({value:as(r,4),targetSelector:f&&Ar(f,e.actionNameAttribute),time:s==null?void 0:s.time,previousRect:s!=null&&s.previousRect?Jd(s.previousRect):void 0,currentRect:s!=null&&s.currentRect?Jd(s.currentRect):void 0,devicePixelRatio:s==null?void 0:s.devicePixelRatio})}}});return{stop:()=>{o.unsubscribe()}}}function cw(e){return e.find(t=>!!t.node&&Un(t.node))}function Jd({x:e,y:t,width:n,height:r}){return{x:e,y:t,width:n,height:r}}const lw=5*xe,uw=xe;function dw(){let e=0,t,n,r=0;return{update:s=>{const i=t===void 0||s.startTime-n>=uw||s.startTime-t>=lw;let o;return i?(t=n=s.startTime,r=e=s.value,o=!0):(e+=s.value,n=s.startTime,o=s.value>r,o&&(r=s.value)),{cumulatedValue:e,isMaxValue:o}}}}function fw(){return sn(Z.LAYOUT_SHIFT)&&"WeakRef"in window}let Os,Xd=0,ho=1/0,mo=0;function pw(){"interactionCount"in performance||Os||(Os=new window.PerformanceObserver($(e=>{e.getEntries().forEach(t=>{const n=t;n.interactionId&&(ho=Math.min(ho,n.interactionId),mo=Math.max(mo,n.interactionId),Xd=(mo-ho)/7+1)})})),Os.observe({type:"event",buffered:!0,durationThreshold:0}))}const Qd=()=>Os?Xd:window.performance.interactionCount||0,ef=10,hw=1*Ne;function mw(e,t,n){if(!bw())return{getInteractionToNextPaint:()=>{},setViewEnd:G,stop:G};const{getViewInteractionCount:r,stopViewInteractionCount:s}=yw(n);let i=1/0;const o=gw(r);let a=-1,c,l;function u(h){for(const m of h)m.interactionId&&m.startTime>=t&&m.startTime<=i&&o.process(m);const p=o.estimateP98Interaction();p&&p.duration!==a&&(a=p.duration,l=ve(t,p.startTime),c=_2(p.startTime),!c&&p.target&&Un(p.target)&&(c=Ar(p.target,e.actionNameAttribute)))}const d=gt(e,{type:Z.FIRST_INPUT,buffered:!0}).subscribe(u),f=gt(e,{type:Z.EVENT,durationThreshold:40,buffered:!0}).subscribe(u);return{getInteractionToNextPaint:()=>{if(a>=0)return{value:Math.min(a,hw),targetSelector:c,time:l};if(r())return{value:0}},setViewEnd:h=>{i=h,s()},stop:()=>{f.unsubscribe(),d.unsubscribe()}}}function gw(e){const t=[];function n(){t.sort((r,s)=>s.duration-r.duration).splice(ef)}return{process(r){const s=t.findIndex(o=>r.interactionId===o.interactionId),i=t[t.length-1];s!==-1?r.duration>t[s].duration&&(t[s]=r,n()):(t.length<ef||r.duration>i.duration)&&(t.push(r),n())},estimateP98Interaction(){const r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}function yw(e){pw();const t=e==="initial_load"?0:Qd();let n={stopped:!1};function r(){return Qd()-t}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}function bw(){return sn(Z.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function ww(e,t,n,r,s,i,o){let a=s==="initial_load",c=!0;const l=[],u=Zd(r);function d(){if(!c&&!a&&l.length>0){const h=Math.max(...l);h<u.timeStamp&&o(h)}}const{stop:f}=co(e,t,n,r,h=>{c&&(c=!1,h.hadActivity&&l.push(ve(i.timeStamp,h.end)),d())});return{stop:()=>{f(),u.stop()},setLoadEvent:h=>{a&&(a=!1,l.push(h),d())}}}function tf(){let e;const t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function go(){let e;const t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}let yo;function nf(e){return yo||(yo=vw(e)),yo}function vw(e){return new X(t=>{const{throttled:n}=Dt(()=>{t.notify(Ls())},200);return ne(e,window,"resize",n,{capture:!0,passive:!0}).stop})}function Ls(){const e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}const _w=xe;function Sw(e,t,n,r=Cw(e)){let s=0,i=0,o=0;const a=r.subscribe(({scrollDepth:c,scrollTop:l,scrollHeight:u})=>{let d=!1;if(c>s&&(s=c,d=!0),u>i){i=u;const f=Ye();o=ve(t.relative,f),d=!0}d&&n({maxDepth:Math.min(s,i),maxDepthScrollTop:l,maxScrollHeight:i,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}function Ew(){const e=go(),{height:t}=Ls(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(t+e);return{scrollHeight:n,scrollDepth:r,scrollTop:e}}function Cw(e,t=_w){return new X(n=>{function r(){n.notify(Ew())}if(window.ResizeObserver){const s=Dt(r,t,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver($(s.throttled));i&&o.observe(i);const a=ne(e,window,"scroll",s.throttled,{passive:!0});return()=>{s.cancel(),o.disconnect(),a.stop()}}})}function xw(e,t,n,r,s,i,o){const a={},{stop:c,setLoadEvent:l}=ww(e,t,n,r,i,o,m=>{a.loadingTime=m,s()}),{stop:u}=Sw(r,o,m=>{a.scroll=m}),{stop:d}=aw(r,o.relative,m=>{a.cumulativeLayoutShift=m,s()}),{stop:f,getInteractionToNextPaint:h,setViewEnd:p}=mw(r,o.relative,i);return{stop:()=>{c(),d(),u()},stopINPTracking:f,setLoadEvent:l,setViewEnd:p,getCommonViewMetrics:()=>(a.interactionToNextPaint=h(),a)}}const Iw=3e3,Tw=5*Ne,Aw=5*Ne;function Rw(e,t,n,r,s,i,o,a){const c=new Set;let l=d("initial_load",ql(),a);f();let u;o&&(u=h(i));function d(p,m,g){const b=kw(t,n,r,s,e,p,m,g);return c.add(b),b.stopObservable.subscribe(()=>{c.delete(b)}),b}function f(){t.subscribe(10,()=>{l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})}),t.subscribe(9,()=>{l.end({sessionIsActive:!1})})}function h(p){return p.subscribe(({oldLocation:m,newLocation:g})=>{Ow(m,g)&&(l.end(),l=d("route_change"))})}return{addTiming:(p,m=he())=>{l.addTiming(p,m)},startView:(p,m)=>{l.end({endClocks:m}),l=d("route_change",m,p)},setViewContext:p=>{l.contextManager.setContext(p)},setViewContextProperty:(p,m)=>{l.contextManager.setContextProperty(p,m)},setViewName:p=>{l.setViewName(p)},getViewContext:()=>l.contextManager.getContext(),stop:()=>{u&&u.unsubscribe(),l.end(),c.forEach(p=>p.stop())}}}function kw(e,t,n,r,s,i,o=Re(),a){const c=_e(),l=new X,u={};let d=0,f;const h=gr(s),p=Cs();let m=!0,g=a==null?void 0:a.name;const b=(a==null?void 0:a.service)||r.service,x=(a==null?void 0:a.version)||r.version,w=a==null?void 0:a.context;w&&p.setContext(w);const S={id:c,name:g,startClocks:o,service:b,version:x,context:w};e.notify(1,S),e.notify(2,S);const{throttled:O,cancel:A}=Dt(oe,Iw,{leading:!1}),{setLoadEvent:y,setViewEnd:k,stop:T,stopINPTracking:P,getCommonViewMetrics:R}=xw(e,t,n,r,re,i,o),{stop:L,initialViewMetrics:N}=i==="initial_load"?ow(r,y,re):{stop:G,initialViewMetrics:{}},{stop:M,eventCounts:se}=Y2(e,c,re),be=xn(oe,Tw),Ge=e.subscribe(11,ie=>{ie.reason===Fn.UNLOADING&&oe()});oe(),p.changeObservable.subscribe(re);function nt(){e.notify(3,{id:c,name:g,context:p.getContext(),startClocks:o})}function re(){nt(),O()}function oe(){A(),nt(),d+=1;const ie=f===void 0?he():f.timeStamp;e.notify(4,{customTimings:u,documentVersion:d,id:c,name:g,service:b,version:x,context:p.getContext(),loadingType:i,location:h,startClocks:o,commonViewMetrics:R(),initialViewMetrics:N,duration:ve(o.timeStamp,ie),isActive:f===void 0,sessionIsActive:m,eventCounts:se})}return{get name(){return g},service:b,version:x,contextManager:p,stopObservable:l,end(ie={}){var Oe,Te;f||(f=(Oe=ie.endClocks)!==null&&Oe!==void 0?Oe:Re(),m=(Te=ie.sessionIsActive)!==null&&Te!==void 0?Te:!0,e.notify(5,{endClocks:f}),e.notify(6,{endClocks:f}),us(be),k(f.relative),T(),Ge.unsubscribe(),oe(),me(()=>{this.stop()},Aw))},stop(){L(),M(),P(),l.notify()},addTiming(ie,Oe){if(f)return;const Te=Jg(Oe)?Oe:ve(o.timeStamp,Oe);u[Pw(ie)]=Te,re()},setViewName(ie){g=ie,oe()}}}function Pw(e){const t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&q.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function Ow(e,t){return e.pathname!==t.pathname||!Lw(t.hash)&&rf(t.hash)!==rf(e.hash)}function Lw(e){const t=e.substring(1);return t!==""&&!!document.getElementById(t)}function rf(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}function Nw(e,t,n,r,s,i,o,a,c,l){return e.subscribe(4,u=>e.notify(12,Mw(u,n,a))),t.register(0,({startTime:u,eventType:d})=>{const{service:f,version:h,id:p,name:m,context:g}=c.findView(u);return{type:d,service:f,version:h,context:g,view:{id:p,name:m}}}),Rw(r,e,s,i,n,o,!n.trackViewsManually,l)}function Mw(e,t,n){var r,s,i,o,a,c,l,u,d,f,h,p,m,g,b,x,w,S;const O=n.getReplayStats(e.id),A=(s=(r=e.commonViewMetrics)===null||r===void 0?void 0:r.cumulativeLayoutShift)===null||s===void 0?void 0:s.devicePixelRatio,y={_dd:{document_version:e.documentVersion,replay_stats:O,cls:A?{device_pixel_ratio:A}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:"view",view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(i=e.commonViewMetrics.cumulativeLayoutShift)===null||i===void 0?void 0:i.value,cumulative_layout_shift_time:B((o=e.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.time),cumulative_layout_shift_target_selector:(a=e.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.targetSelector,first_byte:B((c=e.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.firstByte),dom_complete:B((l=e.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.domComplete),dom_content_loaded:B((u=e.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domContentLoaded),dom_interactive:B((d=e.initialViewMetrics.navigationTimings)===null||d===void 0?void 0:d.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:B(e.initialViewMetrics.firstContentfulPaint),first_input_delay:B((f=e.initialViewMetrics.firstInput)===null||f===void 0?void 0:f.delay),first_input_time:B((h=e.initialViewMetrics.firstInput)===null||h===void 0?void 0:h.time),first_input_target_selector:(p=e.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.targetSelector,interaction_to_next_paint:B((m=e.commonViewMetrics.interactionToNextPaint)===null||m===void 0?void 0:m.value),interaction_to_next_paint_time:B((g=e.commonViewMetrics.interactionToNextPaint)===null||g===void 0?void 0:g.time),interaction_to_next_paint_target_selector:(b=e.commonViewMetrics.interactionToNextPaint)===null||b===void 0?void 0:b.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:B((x=e.initialViewMetrics.largestContentfulPaint)===null||x===void 0?void 0:x.value),largest_contentful_paint_target_selector:(w=e.initialViewMetrics.largestContentfulPaint)===null||w===void 0?void 0:w.targetSelector,load_event:B((S=e.initialViewMetrics.navigationTimings)===null||S===void 0?void 0:S.loadEvent),loading_time:md(B(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:Dw(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:B(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:B(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:O?!0:void 0,is_active:e.sessionIsActive?void 0:!1},privacy:{replay_level:t.defaultPrivacyLevel}};return Gt(e.customTimings)||(y.view.custom_timings=e1(e.customTimings,B)),{rawRumEvent:y,startTime:e.startClocks.relative,duration:e.duration,domainContext:{location:e.location}}}function Dw({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,firstInput:r,largestContentfulPaint:s}){return{cls:e&&{score:e.value,timestamp:B(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:B(n)},fid:r&&{duration:B(r.delay),timestamp:B(r.time),target_selector:r.targetSelector},inp:t&&{duration:B(t.value),timestamp:B(t.time),target_selector:t.targetSelector},lcp:s&&{timestamp:B(s.value),target_selector:s.targetSelector,resource_url:s.resourceUrl}}}const Fw="rum";function Bw(e,t,n){const r=Z0(e,Fw,s=>$w(e,s),n);return r.expireObservable.subscribe(()=>{t.notify(9)}),r.renewObservable.subscribe(()=>{t.notify(10)}),r.sessionStateUpdateObservable.subscribe(({previousState:s,newState:i})=>{if(!s.forcedReplay&&i.forcedReplay){const o=r.findSession();o&&(o.isReplayForced=!0)}}),{findTrackedSession:s=>{const i=r.findSession(s);if(!(!i||!sf(i.trackingType)))return{id:i.id,sessionReplay:i.trackingType==="1"?1:i.isReplayForced?2:0,anonymousId:i.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:()=>r.updateSessionState({forcedReplay:"1"})}}function Uw(){const e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:Bu("records")?1:0};return{findTrackedSession:()=>e,expire:G,expireObservable:new X,setForcedReplay:G}}function $w(e,t){let n;return Vw(t)?n=t:Nt(e.sessionSampleRate)?Nt(e.sessionReplaySampleRate)?n="1":n="2":n="0",{trackingType:n,isTracked:sf(n)}}function Vw(e){return e==="0"||e==="1"||e==="2"}function sf(e){return e==="2"||e==="1"}function zw(e,t,n,r,s,i,o){const a=e.replica,c=gy(e,{endpoint:e.rumEndpointBuilder,encoder:o(2)},a&&{endpoint:a.rumEndpointBuilder,transformMessage:l=>it(l,{application:{id:a.applicationId}}),encoder:o(3)},r,s,i);return t.subscribe(13,l=>{l.type==="view"?c.upsert(l,l.view.id):c.add(l)}),n.subscribe(l=>c.add(l,z0(e))),c}function Hw(e){const t=Dn();e.subscribe(13,n=>{t.send("rum",n)})}const jw=Yt;function Ww(e,t,n,r){const s=Mn({expireDelay:jw});let i;e.subscribe(1,({startClocks:c})=>{const l=r.href;s.add(a({url:l,referrer:i||document.referrer}),c.relative),i=l}),e.subscribe(6,({endClocks:c})=>{s.closeActive(c.relative)});const o=n.subscribe(({newLocation:c})=>{const l=s.find();if(l){const u=Ye();s.closeActive(u),s.add(a({url:c.href,referrer:l.referrer}),u)}});function a({url:c,referrer:l}){return{url:c,referrer:l}}return t.register(0,({startTime:c,eventType:l})=>{const{url:u,referrer:d}=s.find(c);return{type:l,view:{url:u,referrer:d}}}),{findUrl:c=>s.find(c),getAllEntries:()=>s.getAllEntries(),getDeletedEntries:()=>s.getDeletedEntries(),stop:()=>{o.unsubscribe(),s.stop()}}}function qw(e,t){let n=gr(t);return new X(r=>{const{stop:s}=Gw(e,o),{stop:i}=Kw(e,o);function o(){if(n.href===t.href)return;const a=gr(t);r.notify({newLocation:a,oldLocation:n}),n=a}return()=>{s(),i()}})}function Gw(e,t){const{stop:n}=De(of("pushState"),"pushState",({onPostCall:i})=>{i(t)}),{stop:r}=De(of("replaceState"),"replaceState",({onPostCall:i})=>{i(t)}),{stop:s}=ne(e,window,"popstate",t);return{stop:()=>{n(),r(),s()}}}function Kw(e,t){return ne(e,window,"hashchange",t)}function of(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}const Yw=Yt;function Zw(e,t,n){const r=Mn({expireDelay:Yw});return e.subscribe(1,({startClocks:s})=>{r.add({},s.relative)}),e.subscribe(6,({endClocks:s})=>{r.closeActive(s.relative)}),t.register(0,({startTime:s,eventType:i})=>{if(!n.trackFeatureFlagsForEvents.concat(["view","error"]).includes(i))return;const a=r.find(s);if(!(!a||Gt(a)))return{type:i,feature_flags:a}}),{addFeatureFlagEvaluation:(s,i)=>{const o=r.find();o&&(o[s]=i)}}}const Jw=10*xe;let Vn,bo;function Xw(e,t,n,r){t.enabled&&Nt(e.customerDataTelemetrySampleRate)&&(lf(),bo=!1,n.subscribe(13,()=>{bo=!0}),r.subscribe(({bytesCount:i,messagesCount:o})=>{bo&&(Vn.batchCount+=1,cf(Vn.batchBytesCount,i),cf(Vn.batchMessagesCount,o))}),xn(Qw,Jw))}function Qw(){Vn.batchCount!==0&&(At("Customer data measures",Vn),lf())}function af(){return{min:1/0,max:0,sum:0}}function cf(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function lf(){Vn={batchCount:0,batchBytesCount:af(),batchMessagesCount:af()}}const ev=4e3,tv=500,nv=Yt;function rv(e,t,n=tv){const r=Mn({expireDelay:nv,maxEntries:ev});let s;o(uf(),Ye());const{stop:i}=Fe(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],c=>{o(iv(c),c.timeStamp)},{capture:!0});function o(c,l=Ye()){c!==s&&(s=c,r.closeActive(l),r.add({state:s,startTime:l},l))}function a(c,l,u){return r.findAll(l,u).some(d=>d.state===c)}return e.register(0,({startTime:c,duration:l=0,eventType:u})=>{if(u==="view"){const d=r.findAll(c,l);return{type:u,_dd:{page_states:sv(d,c,n)}}}if(u==="action"||u==="error")return{type:u,view:{in_foreground:a("active",c,0)}}}),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{i(),r.stop()}}}function sv(e,t,n){if(e.length!==0)return e.slice(-n).reverse().map(({state:r,startTime:s})=>({state:r,start:B(ve(t,s))}))}function iv(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":uf()}function uf(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function ov(e){let t;const n=requestAnimationFrame($(()=>{t=Ls()})),r=nf(e).subscribe(s=>{t=s}).unsubscribe;return{get:()=>t?{viewport:t}:void 0,stop:()=>{r(),n&&cancelAnimationFrame(n)}}}const av=xe;function cv(e){return new X(t=>lv(e,n=>t.notify(n)))}function lv(e,t){const n=yr(document.cookie,e),r=xn(()=>{const s=yr(document.cookie,e);s!==n&&t(s)},av);return()=>us(r)}const df="datadog-ci-visibility-test-execution-id";function uv(e,t=cv(df)){var n;let r=Ft(df)||((n=window.Cypress)===null||n===void 0?void 0:n.env("traceId"));const s=t.subscribe(i=>{r=i});return e.register(0,({eventType:i})=>{if(typeof r=="string")return{type:i,session:{type:"ci_test"},ci_test:{test_execution_id:r}}}),{stop:()=>{s.unsubscribe()}}}function dv(e,t){const n=gt(t,{type:Z.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(r=>{for(const s of r){const i=cs(s.startTime),o={date:i.timeStamp,long_task:{id:_e(),entry_type:"long-animation-frame",duration:B(s.duration),blocking_duration:B(s.blockingDuration),first_ui_event_timestamp:B(s.firstUIEventTimestamp),render_start:B(s.renderStart),style_and_layout_start:B(s.styleAndLayoutStart),start_time:B(s.startTime),scripts:s.scripts.map(a=>({duration:B(a.duration),pause_duration:B(a.pauseDuration),forced_style_and_layout_duration:B(a.forcedStyleAndLayoutDuration),start_time:B(a.startTime),execution_start:B(a.executionStart),source_url:a.sourceURL,source_function_name:a.sourceFunctionName,source_char_position:a.sourceCharPosition,invoker:a.invoker,invoker_type:a.invokerType,window_attribution:a.windowAttribution}))},type:"long_task",_dd:{discarded:!1}};e.notify(12,{rawRumEvent:o,startTime:i.relative,duration:s.duration,domainContext:{performanceEntry:s}})}});return{stop:()=>n.unsubscribe()}}function fv(e,t){const n=gt(t,{type:Z.LONG_TASK,buffered:!0}).subscribe(r=>{for(const s of r){if(s.entryType!==Z.LONG_TASK||!t.trackLongTasks)break;const i=cs(s.startTime),o={date:i.timeStamp,long_task:{id:_e(),entry_type:"long-task",duration:B(s.duration)},type:"long_task",_dd:{discarded:!1}};e.notify(12,{rawRumEvent:o,startTime:i.relative,duration:s.duration,domainContext:{performanceEntry:s}})}});return{stop(){n.unsubscribe()}}}function pv(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(r=>r!==n)}}},triggerHook(t,n){const s=(e[t]||[]).map(i=>i(n));return it(...s)}}}function hv(e){e.register(0,({eventType:t})=>{const n=Wy(),r=qy();if(!(!n||!r))return{type:t,session:{type:"synthetics"},synthetics:{test_id:n,result_id:r,injected:Hu()}}})}function mv(e,t,n){const r=Ki(e),s=n(r);return Mi(t).forEach(([i,o])=>wo(e,r,i.split(/\.|(?=\[\])/),o)),s}function wo(e,t,n,r){const[s,...i]=n;if(s==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((o,a)=>wo(o,t[a],i,r));return}if(!(!ff(e)||!ff(t))){if(i.length>0)return wo(e[s],t[s],i,r);gv(e,s,t[s],r)}}function gv(e,t,n,r){const s=en(n);s===r?e[t]=ce(n):r==="object"&&(s==="undefined"||s==="null")&&(e[t]={})}function ff(e){return en(e)==="object"}const zn={"view.name":"string","view.url":"string","view.referrer":"string"},Hn={context:"object"},vo={service:"string",version:"string"};let pf;function yv(e,t,n,r,s,i,o,a,c){pf={view:{"view.performance.lcp.resource_url":"string",...Hn,...zn},error:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...Hn,...zn,...vo},resource:{"resource.url":"string",...vs(Qt.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},...Hn,...zn,...vo},action:{"action.target.name":"string",...Hn,...zn,...vo},long_task:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...Hn,...zn},vital:{...Hn,...zn}};const l={error:Ji("error",e.eventRateLimiterThreshold,c),action:Ji("action",e.eventRateLimiterThreshold,c),vital:Ji("vital",e.eventRateLimiterThreshold,c)};t.subscribe(12,({startTime:u,duration:d,rawRumEvent:f,domainContext:h,customerContext:p})=>{const m=s.findView(u),g=i.findUrl(u),b=r.findTrackedSession(u);if(b&&m&&!g&&vs(Qt.MISSING_URL_CONTEXT_TELEMETRY)&&At("Missing URL entry",{debug:{eventType:f.type,startTime:u,urlEntries:i.getAllEntries(),urlDeletedEntries:i.getDeletedEntries(),viewEntries:s.getAllEntries(),viewDeletedEntries:s.getDeletedEntries()}}),b&&m&&g){const x=a(),w={_dd:{format_version:2,drift:Yg(),configuration:{session_sample_rate:as(e.sessionSampleRate,3),session_replay_sample_rate:as(e.sessionReplaySampleRate,3)},browser_sdk_version:nn()?"6.6.3":void 0},application:{id:e.applicationId},date:he(),source:"browser",session:{id:b.id,type:"user"},display:o.get(),connectivity:xu(),context:x.context},S=it(w,n.triggerHook(0,{eventType:f.type,startTime:u,duration:d}),{context:p},f);"has_replay"in S.session||(S.session.has_replay=x.hasReplay),S.type==="view"&&(S.session.sampled_for_replay=b.sessionReplay===1),b.anonymousId&&!x.user.anonymous_id&&e.trackAnonymousUser&&(x.user.anonymous_id=b.anonymousId),Gt(x.user)||(S.usr=x.user),!Gt(x.account)&&x.account.id&&(S.account=x.account),bv(S,e.beforeSend,h,l)&&(Gt(S.context)&&delete S.context,t.notify(13,S))}})}function bv(e,t,n,r){var s;if(t){const o=mv(e,pf[e.type],a=>t(a,n));if(o===!1&&e.type!=="view")return!1;o===!1&&q.warn("Can't dismiss view events using beforeSend!")}return!((s=r[e.type])===null||s===void 0?void 0:s.isLimitReached())}function wv(e,t,n,r){return{context:e.getContext(),user:t.getContext(),account:n.getContext(),hasReplay:r.isRecording()?!0:void 0}}function vv(e,t,n,r,s,i,o){const a=[],c=new Eb,l=pv();c.subscribe(13,de=>Gi("rum",de));const u=_v(e);u.setContextProvider(()=>{var de,Qn;return{application:{id:e.applicationId},session:{id:(de=p.findTrackedSession())===null||de===void 0?void 0:de.id},view:{id:(Qn=x.findView())===null||Qn===void 0?void 0:Qn.id},action:{id:R.findActionId()}}});const d=de=>{c.notify(14,{error:de}),At("Error reported to customer",{"error.message":de.message})},f=py(e),h=f.subscribe(de=>{c.notify(11,de)});a.push(()=>h.unsubscribe());const p=nn()?Uw():Bw(e,c,i);if(nn())Hw(c);else{const de=zw(e,c,u.observable,d,f,p.expireObservable,s);a.push(()=>de.stop()),Xw(e,u,c,de.flushObservable)}const m=vb(),g=qw(e,location),b=rv(l,e),x=xb(c),w=Ww(c,l,g,location),S=Zw(c,l,e),{observable:O,stop:A}=_b();a.push(A);const y=pb(e),k=hb(e),T=mb(e),P=()=>wv(y,k,T,t),{actionContexts:R,addAction:L,stop:N}=Sv(c,l,e,p,b,m,O,w,x,P,d);a.push(N),V0();const{addTiming:M,startView:se,setViewName:be,setViewContext:Ge,setViewContextProperty:nt,getViewContext:re,stop:oe}=Nw(c,l,e,location,m,O,g,t,x,r);a.push(oe);const{stop:ie}=H2(c,e,b);if(a.push(ie),e.trackLongTasks)if(sn(Z.LONG_ANIMATION_FRAME)){const{stop:de}=dv(c,e);a.push(de)}else fv(c,e);const{addError:Oe}=P2(c,e);Lb(c,e,p,P);const Te=Ky(c,b,o),Gc=Sb(e.applicationId,p,x,R,w);return a.push(()=>n.stop()),{addAction:L,addError:Oe,addTiming:M,addFeatureFlagEvaluation:S.addFeatureFlagEvaluation,startView:se,setViewContext:Ge,setViewContextProperty:nt,getViewContext:re,setViewName:be,lifeCycle:c,viewHistory:x,session:p,stopSession:()=>p.expire(),getInternalContext:Gc.get,startDurationVital:Te.startDurationVital,stopDurationVital:Te.stopDurationVital,addDurationVital:Te.addDurationVital,globalContext:y,userContext:k,accountContext:T,stop:()=>{a.forEach(de=>de())}}}function _v(e){const t=U0("browser-rum-sdk",e);if(nn()){const n=Dn();t.observable.subscribe(r=>n.send("internal_telemetry",r))}return t}function Sv(e,t,n,r,s,i,o,a,c,l,u){const d=A2(e,t,i,o,n),f=ov(n),h=uv(t);return hv(t),yv(n,e,t,r,c,a,f,l,u),{pageStateHistory:s,addAction:d.addAction,actionContexts:d.actionContexts,stop:()=>{d.stop(),h.stop(),f.stop(),c.stop(),s.stop(),a.stop()}}}function Ev(e,{session:t,viewContext:n,errorType:r}){const s=t?t.id:"no-session-id",i=[];r!==void 0&&i.push(`error-type=${r}`),n&&(i.push(`seed=${n.id}`),i.push(`from=${n.startClocks.timeStamp}`));const o=Cv(e),a=`/rum/replay/sessions/${s}`;return`${o}${a}?${i.join("&")}`}function Cv(e){const t=e.site,n=e.subdomain||xv(e);return`https://${n?`${n}.`:""}${t}`}function xv(e){switch(e.site){case Xt:case B1:return"app";case pu:return"dd";default:return}}const Iv=1e3;let Ze;function Tv(e){return Ns(e).segments_count}function Av(e){Ns(e).segments_count+=1}function Rv(e){Ns(e).records_count+=1}function kv(e,t){Ns(e).segments_total_raw_size+=t}function Pv(e){return Ze==null?void 0:Ze.get(e)}function Ns(e){Ze||(Ze=new Map);let t;return Ze.has(e)?t=Ze.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},Ze.set(e,t),Ze.size>Iv&&Ov()),t}function Ov(){if(!Ze)return;const e=Ze.keys().next().value;e&&Ze.delete(e)}function hf(e,t,n){let r=0,s=[],i,o=0;const a=[],{stop:c}=ne(e,t,"message",({data:d})=>{if(d.type!=="wrote"||d.streamId!==n)return;r+=d.additionalBytesCount,s.push(d.result),i=d.trailer;const f=a.shift();f&&f.id===d.id?f.writeCallback?f.writeCallback(d.result.byteLength):f.finishCallback&&f.finishCallback():(c(),At("Worker responses received out of order."))});function l(){const d=s.length===0?new Uint8Array(0):Qg(s.concat(i)),f={rawBytesCount:r,output:d,outputBytesCount:d.byteLength,encoding:"deflate"};return r=0,s=[],f}function u(){o>0&&(t.postMessage({action:"reset",streamId:n}),o=0)}return{isAsync:!0,get isEmpty(){return o===0},write(d,f){t.postMessage({action:"write",id:o,data:d,streamId:n}),a.push({id:o,writeCallback:f,data:d}),o+=1},finish(d){u(),a.length?(a.forEach(f=>{delete f.writeCallback}),a[a.length-1].finishCallback=()=>d(l())):d(l())},finishSync(){u();const d=a.map(f=>(delete f.writeCallback,delete f.finishCallback,f.data)).join("");return{...l(),pendingData:d}},estimateEncodedBytesCount(d){return d.length/8},stop(){c()}}}function _o({configuredUrl:e,error:t,source:n,scriptType:r}){if(q.error(`${n} failed to start: an error occurred while initializing the ${r}:`,t),t instanceof Event||t instanceof Error&&Lv(t.message)){let s;e?s=`Please make sure the ${r} URL ${e} is correct and CSP is correctly configured.`:s="Please make sure CSP is correctly configured.",q.error(`${s} See documentation at ${os}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else r==="worker"&&Yi(t)}function Lv(e){return e.includes("Content Security Policy")||e.includes("requires 'TrustedScriptURL'")}const Nv=30*xe;function mf(e){return new Worker(e.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<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=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]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>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<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},C=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},D=!1,M=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},j=M,L=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},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<i;s++)t=t>>>8^r[255&(t^e[s])];return~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.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>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<n;r++)m(t,t.bl_tree[2*i[r]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=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){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]&&i<u);if(n=H-(u-i),i=u-H,n>s){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},et=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-J)){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=L(s.adler,h,o,l):2===s.state.wrap&&(s.adler=T(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=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<J&&0!==t.strm.avail_in)},at=function(t,e){for(var a,n;;){if(t.lookahead<J){if(et(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,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=tt(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},nt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(et(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,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_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=tt(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(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 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 it=[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(et(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 rt(4,4,8,4,at),new rt(4,5,16,8,at),new rt(4,6,32,32,at),new rt(4,4,16,16,nt),new rt(8,16,32,32,nt),new rt(8,16,128,128,nt),new rt(8,32,128,256,nt),new rt(32,128,258,1024,nt),new rt(32,258,258,4096,nt)];function st(){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 ht=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<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),D=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=it[e.level].max_lazy,e.good_match=it[e.level].good_length,e.nice_match=it[e.level].nice_length,e.max_chain_length=it[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),i},lt=function(t,e){var a,n;if(!t||!t.state||e>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.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(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.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(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&&(et(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(et(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]&&r<i);t.match_length=H-(i-r),t.match_length>t.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):it[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)},_t=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)},ot=new Uint8Array(256),dt=0;dt<256;dt++)ot[dt]=dt>=252?6:dt>=248?5:dt>=240?4:dt>=224?3:dt>=192?2:1;ot[254]=ot[254]=1;var ut=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},ft=Object.prototype.toString;function ct(){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 ut,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 st;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,ht(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(O[n]);if(t.header&&(e=this.strm,a=t.header,e&&e.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ft.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t||!t.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=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,et(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,et(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 pt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function gt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}ct.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]"===ft.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=lt(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=_t(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},ct.prototype.onData=function(t){this.chunks.push(t)},ct.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",(n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"6.6.3"};case"write":{let n=e.get(a.streamId);n||(n=new ct,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<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|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,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:gt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){pt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){pt(e,t)}}()})();'])))}let le={status:0};function gf(e,t,n,r=mf){switch(le.status===0&&Mv(e,t,r),le.status){case 1:return le.initializationFailureCallbacks.push(n),le.worker;case 3:return le.worker}}function yf(){return le.status}function Mv(e,t,n=mf){try{const r=n(e),{stop:s}=ne(e,r,"error",a=>{So(e,t,a)}),{stop:i}=ne(e,r,"message",({data:a})=>{a.type==="errored"?So(e,t,a.error,a.streamId):a.type==="initialized"&&Fv(a.version)});r.postMessage({action:"init"}),me(()=>Dv(t),Nv),le={status:1,worker:r,stop:()=>{s(),i()},initializationFailureCallbacks:[]}}catch(r){So(e,t,r)}}function Dv(e){le.status===1&&(q.error(`${e} failed to start: a timeout occurred while initializing the Worker`),le.initializationFailureCallbacks.forEach(t=>t()),le={status:2})}function Fv(e){le.status===1&&(le={status:3,worker:le.worker,stop:le.stop,version:e})}function So(e,t,n,r){le.status===1||le.status===0?(_o({configuredUrl:e.workerUrl,error:n,source:t,scriptType:"worker"}),le.status===1&&le.initializationFailureCallbacks.forEach(s=>s()),le={status:2}):Yi(n,{worker_version:le.status===3&&le.version,stream_id:r})}function bf(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function Bv(e,t,n,r){const s=t.findTrackedSession(),i=Uv(s,r),o=n.findView();return Ev(e,{viewContext:o,errorType:i,session:s})}function Uv(e,t){if(!bf())return"browser-not-supported";if(!e)return"rum-not-tracked";if(e.sessionReplay===0)return"incorrect-session-plan";if(!t)return"replay-not-started"}function $v(e,t,n,r,s,i){let o=0,a;t.subscribe(9,()=>{(o===2||o===3)&&(u(),o=1)}),t.subscribe(10,()=>{o===1&&l()});const c=async()=>{const[d]=await Promise.all([s(),wy(e,"interactive")]);if(o!==2)return;const f=i();if(!f||!d){o=0;return}({stop:a}=d(t,e,n,r,f)),o=3};function l(d){const f=n.findTrackedSession();if(Vv(f,d)){o=1;return}zv(o)||(o=2,c().catch(Tt),Hv(f,d)&&n.setForcedReplay())}function u(){o===3&&(a==null||a()),o=0}return{start:l,stop:u,getSessionReplayLink(){return Bv(e,n,r,o!==0)},isRecording:()=>o===3}}function Vv(e,t){return!e||e.sessionReplay===0&&(!t||!t.force)}function zv(e){return e===2||e===3}function Hv(e,t){return t&&t.force&&e.sessionReplay===0}function jv(){let e=0;return{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:G},shouldStartImmediately(t){return e===1||e===0&&!t.startSessionReplayRecordingManually}}}function Wv(e,t){if(nn()&&!Bu("records")||!bf())return{start:G,stop:G,getReplayStats:()=>{},onRumStart:G,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:n,shouldStartImmediately:r}=jv();return{start:i=>n.start(i),stop:()=>n.stop(),getSessionReplayLink:()=>n.getSessionReplayLink(),onRumStart:s,isRecording:()=>yf()===3&&n.isRecording(),getReplayStats:i=>yf()===3?Pv(i):void 0};function s(i,o,a,c,l){let u;function d(){return u||(l??(l=gf(o,"Datadog Session Replay",()=>{n.stop()},t)),l&&(u=hf(o,l,1))),u}n=$v(o,i,a,c,e,d),r(o)&&n.start()}}async function qv(e=Gv){try{return await e()}catch(t){_o({error:t,source:"Recorder",scriptType:"module"})}}async function Gv(){return(await Promise.resolve().then(()=>U3)).startRecording}function Kv(){return mt().Profiler!==void 0}async function Yv(e=Zv){try{return await e()}catch(t){_o({error:t,source:"Profiler",scriptType:"module"})}}async function Zv(){return(await Promise.resolve().then(()=>Q3)).createRumProfiler}function Jv(){let e;function t(n,r,s,i){!Kv()||!Nt(r.profilingSampleRate)||Yv().then(o=>{if(!o){At("[DD_RUM] Failed to lazy load the RUM Profiler");return}e=o(r,n,s),e.start(i.findView())}).catch(Tt)}return{onRumStart:t,stop:()=>{e==null||e.stop().catch(Tt)}}}const Xv=Wv(qv),Qv=Jv(),ze=bb(vv,Xv,Qv,{startDeflateWorker:gf,createDeflateEncoder:hf});R0(mt(),"DD_RUM",ze);const Xn=class Xn{init(){if(Xn.isInitialized){console.info("Tracker [DD]: already initialized");return}ze.init({applicationId:"3ea6bf90-69cc-42fe-9e69-d461f783221d",clientToken:"pub51a171e3f587fb85f6d3f0ed2bf8f531",site:"datadoghq.com",service:"astropay-payments-library",env:"production",version:"1.0.0",sessionSampleRate:50,sessionReplaySampleRate:10,defaultPrivacyLevel:"mask-user-input",trackViewsManually:!0,trackResources:!1,trackUserInteractions:!1,beforeSend:t=>this.filterEvents(t)}),ze.startView({name:"ap_cl_view_mounted"}),ze.startSessionReplayRecording(),Xn.isInitialized=!0,console.info("Tracker [DD]: initialized")}track(t,n){ze==null||ze.addAction(t,n||{})}trackError(t,n){ze==null||ze.addError(t,{context:n})}destroy(){console.info("Tracker [DD]: destroying"),typeof ze.stopSessionReplayRecording=="function"&&ze.stopSessionReplayRecording(),ze.addAction("ap_cl_view_unmounted",{reason:"component_destroyed"}),Xn.isInitialized=!1}filterEvents(t){var n,r,s;return!!(t.type==="view"&&((n=t.view.name)!=null&&n.startsWith("ap_cl_"))||t.type==="action"&&typeof((r=t.action.target)==null?void 0:r.name)=="string"&&t.action.target.name.startsWith("ap_cl_")||t.type==="error"&&((s=t.error)==null?void 0:s.source)==="custom")}};v(Xn,"isInitialized",!1);let Eo=Xn,jn=[];class Se{static init(t){if(!t){console.info("Tracking disabled");return}jn=[new Eo],jn.forEach(n=>n.init())}static trackEvent(t,n){jn.forEach(r=>r.track(t,n))}static trackError(t,n){jn.forEach(r=>r.trackError(t,n))}static destroy(){jn.forEach(t=>t.destroy()),jn=[]}}const ye=class ye{static init(t,n){if(!t)throw console.error('AstroPay Payments Library: Missing "app-id". Call init function first.'),new Error("app-id is required for authentication.");if(ye.isInitialized){console.warn("AstroPay Payments Library: Already initialized.");return}ye.token=t,Se.init((n==null?void 0:n.tracking)??!0),z.init({theme:(n==null?void 0:n.theme)??"light",styles:(n==null?void 0:n.styles)??{}}),H.init({language:(n==null?void 0:n.language)??"en"}),st.init({environment:(n==null?void 0:n.environment)??"production",currencyMode:(n==null?void 0:n.currencyMode)??"iso"}),ct.init({appName:"ap-cl",baseURL:"https://partners-api.astropay.com/api",timeout:5e3}),Se.trackEvent("ap_cl_init",{app_id:t,origin:window.location.origin}),ye.isInitialized=!0}static registerComponent(t){ye.components.add(t)}static unregisterComponent(t){ye.components.delete(t)}static getToken(){if(!ye.isInitialized){const t="AstroPay Payments Library: Not initialized.";throw console.error(t),new Error(t)}return ye.token}static destroy(){ye.isInitialized&&(ye.components.forEach(t=>t.destroy()),ye.components.clear(),ye.isInitialized=!1,Se.destroy(),ye.token="")}static isLibInitialized(){return ye.isInitialized}};v(ye,"isInitialized",!1),v(ye,"token"),v(ye,"components",new Set);let ot=ye;function wf(e,t){return function(){return e.apply(t,arguments)}}const{toString:e_}=Object.prototype,{getPrototypeOf:Co}=Object,{iterator:Ms,toStringTag:vf}=Symbol,Ds=(e=>t=>{const n=e_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),at=e=>(e=e.toLowerCase(),t=>Ds(t)===e),Fs=e=>t=>typeof t===e,{isArray:Wn}=Array,kr=Fs("undefined");function t_(e){return e!==null&&!kr(e)&&e.constructor!==null&&!kr(e.constructor)&&Be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _f=at("ArrayBuffer");function n_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_f(e.buffer),t}const r_=Fs("string"),Be=Fs("function"),Sf=Fs("number"),Bs=e=>e!==null&&typeof e=="object",s_=e=>e===!0||e===!1,Us=e=>{if(Ds(e)!=="object")return!1;const t=Co(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(vf in e)&&!(Ms in e)},i_=at("Date"),o_=at("File"),a_=at("Blob"),c_=at("FileList"),l_=e=>Bs(e)&&Be(e.pipe),u_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Be(e.append)&&((t=Ds(e))==="formdata"||t==="object"&&Be(e.toString)&&e.toString()==="[object FormData]"))},d_=at("URLSearchParams"),[f_,p_,h_,m_]=["ReadableStream","Request","Response","Headers"].map(at),g_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Wn(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function Ef(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cf=e=>!kr(e)&&e!==on;function xo(){const{caseless:e}=Cf(this)&&this||{},t={},n=(r,s)=>{const i=e&&Ef(t,s)||s;Us(t[i])&&Us(r)?t[i]=xo(t[i],r):Us(r)?t[i]=xo({},r):Wn(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Pr(arguments[r],n);return t}const y_=(e,t,n,{allOwnKeys:r}={})=>(Pr(t,(s,i)=>{n&&Be(s)?e[i]=wf(s,n):e[i]=s},{allOwnKeys:r}),e),b_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),w_=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},v_=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Co(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},__=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},S_=e=>{if(!e)return null;if(Wn(e))return e;let t=e.length;if(!Sf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},E_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Co(Uint8Array)),C_=(e,t)=>{const r=(e&&e[Ms]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},x_=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},I_=at("HTMLFormElement"),T_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),xf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),A_=at("RegExp"),If=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pr(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},R_=e=>{If(e,(t,n)=>{if(Be(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Be(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},k_=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Wn(e)?r(e):r(String(e).split(t)),n},P_=()=>{},O_=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function L_(e){return!!(e&&Be(e.append)&&e[vf]==="FormData"&&e[Ms])}const N_=e=>{const t=new Array(10),n=(r,s)=>{if(Bs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=Wn(r)?[]:{};return Pr(r,(o,a)=>{const c=n(o,s+1);!kr(c)&&(i[a]=c)}),t[s]=void 0,i}}return r};return n(e,0)},M_=at("AsyncFunction"),D_=e=>e&&(Bs(e)||Be(e))&&Be(e.then)&&Be(e.catch),Tf=((e,t)=>e?setImmediate:t?((n,r)=>(on.addEventListener("message",({source:s,data:i})=>{s===on&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),on.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Be(on.postMessage)),F_=typeof queueMicrotask<"u"?queueMicrotask.bind(on):typeof process<"u"&&process.nextTick||Tf,_={isArray:Wn,isArrayBuffer:_f,isBuffer:t_,isFormData:u_,isArrayBufferView:n_,isString:r_,isNumber:Sf,isBoolean:s_,isObject:Bs,isPlainObject:Us,isReadableStream:f_,isRequest:p_,isResponse:h_,isHeaders:m_,isUndefined:kr,isDate:i_,isFile:o_,isBlob:a_,isRegExp:A_,isFunction:Be,isStream:l_,isURLSearchParams:d_,isTypedArray:E_,isFileList:c_,forEach:Pr,merge:xo,extend:y_,trim:g_,stripBOM:b_,inherits:w_,toFlatObject:v_,kindOf:Ds,kindOfTest:at,endsWith:__,toArray:S_,forEachEntry:C_,matchAll:x_,isHTMLForm:I_,hasOwnProperty:xf,hasOwnProp:xf,reduceDescriptors:If,freezeMethods:R_,toObjectSet:k_,toCamelCase:T_,noop:P_,toFiniteNumber:O_,findKey:Ef,global:on,isContextDefined:Cf,isSpecCompliantForm:L_,toJSONObject:N_,isAsyncFn:M_,isThenable:D_,setImmediate:Tf,asap:F_,isIterable:e=>e!=null&&Be(e[Ms])};function U(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}_.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const Af=U.prototype,Rf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Rf[e]={value:e}}),Object.defineProperties(U,Rf),Object.defineProperty(Af,"isAxiosError",{value:!0}),U.from=(e,t,n,r,s,i)=>{const o=Object.create(Af);return _.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),U.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const B_=null;function Io(e){return _.isPlainObject(e)||_.isArray(e)}function kf(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Pf(e,t,n){return e?e.concat(t).map(function(s,i){return s=kf(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function U_(e){return _.isArray(e)&&!e.some(Io)}const $_=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function $s(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!_.isUndefined(g[m])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(_.isDate(p))return p.toISOString();if(!c&&_.isBlob(p))throw new U("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(p)||_.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let b=p;if(p&&!g&&typeof p=="object"){if(_.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(_.isArray(p)&&U_(p)||(_.isFileList(p)||_.endsWith(m,"[]"))&&(b=_.toArray(p)))return m=kf(m),b.forEach(function(w,S){!(_.isUndefined(w)||w===null)&&t.append(o===!0?Pf([m],S,i):o===null?m:m+"[]",l(w))}),!1}return Io(p)?!0:(t.append(Pf(g,m,i),l(p)),!1)}const d=[],f=Object.assign($_,{defaultVisitor:u,convertValue:l,isVisitable:Io});function h(p,m){if(!_.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),_.forEach(p,function(b,x){(!(_.isUndefined(b)||b===null)&&s.call(t,b,_.isString(x)?x.trim():x,m,f))===!0&&h(b,m?m.concat(x):[x])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Of(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function To(e,t){this._pairs=[],e&&$s(e,this,t)}const Lf=To.prototype;Lf.append=function(t,n){this._pairs.push([t,n])},Lf.toString=function(t){const n=t?function(r){return t.call(this,r,Of)}:Of;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function V_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nf(e,t,n){if(!t)return e;const r=n&&n.encode||V_;_.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=_.isURLSearchParams(t)?t.toString():new To(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Df={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z_={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:To,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ao=typeof window<"u"&&typeof document<"u",Ro=typeof navigator=="object"&&navigator||void 0,H_=Ao&&(!Ro||["ReactNative","NativeScript","NS"].indexOf(Ro.product)<0),j_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",W_=Ao&&window.location.href||"http://localhost",Ie={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ao,hasStandardBrowserEnv:H_,hasStandardBrowserWebWorkerEnv:j_,navigator:Ro,origin:W_},Symbol.toStringTag,{value:"Module"})),...z_};function q_(e,t){return $s(e,new Ie.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return Ie.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function G_(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function K_(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Ff(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=n.length;return o=!o&&_.isArray(s)?s.length:o,c?(_.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!_.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&_.isArray(s[o])&&(s[o]=K_(s[o])),!a)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,s)=>{t(G_(r),s,n,0)}),n}return null}function Y_(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Or={transitional:Df,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=_.isObject(t);if(i&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return s?JSON.stringify(Ff(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return q_(t,this.formSerializer).toString();if((a=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return $s(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Y_(t)):t}],transformResponse:[function(t){const n=this.transitional||Or.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?U.from(a,U.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ie.classes.FormData,Blob:Ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{Or.headers[e]={}});const Z_=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),J_=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
517
517
|
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Z_[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bf=Symbol("internals");function Lr(e){return e&&String(e).trim().toLowerCase()}function Vs(e){return e===!1||e==null?e:_.isArray(e)?e.map(Vs):String(e)}function X_(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Q_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ko(e,t,n,r,s){if(_.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!_.isString(t)){if(_.isString(r))return t.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(t)}}function eS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function tS(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let Ue=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,c,l){const u=Lr(c);if(!u)throw new Error("header name must be a non-empty string");const d=_.findKey(s,u);(!d||s[d]===void 0||l===!0||l===void 0&&s[d]!==!1)&&(s[d||c]=Vs(a))}const o=(a,c)=>_.forEach(a,(l,u)=>i(l,u,c));if(_.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(_.isString(t)&&(t=t.trim())&&!Q_(t))o(J_(t),n);else if(_.isObject(t)&&_.isIterable(t)){let a={},c,l;for(const u of t){if(!_.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[l=u[0]]=(c=a[l])?_.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}o(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Lr(t),t){const r=_.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return X_(s);if(_.isFunction(n))return n.call(this,s,r);if(_.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Lr(t),t){const r=_.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ko(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Lr(o),o){const a=_.findKey(r,o);a&&(!n||ko(r,r[a],a,n))&&(delete r[a],s=!0)}}return _.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||ko(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return _.forEach(this,(s,i)=>{const o=_.findKey(r,i);if(o){n[o]=Vs(s),delete n[i];return}const a=t?eS(i):String(i).trim();a!==i&&delete n[i],n[a]=Vs(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&_.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
518
518
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Bf]=this[Bf]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=Lr(o);r[a]||(tS(s,o),r[a]=!0)}return _.isArray(t)?t.forEach(i):i(t),this}};Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_.reduceDescriptors(Ue.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),_.freezeMethods(Ue);function Po(e,t){const n=this||Or,r=t||n,s=Ue.from(r.headers);let i=r.data;return _.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Uf(e){return!!(e&&e.__CANCEL__)}function qn(e,t,n){U.call(this,e??"canceled",U.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(qn,U,{__CANCEL__:!0});function $f(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function nS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[i];o||(o=l),n[s]=c,r[s]=l;let d=i,f=0;for(;d!==s;)f+=n[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o<t)return;const h=u&&l-u;return h?Math.round(f*1e3/h):void 0}}function sS(e,t){let n=0,r=1e3/t,s,i;const o=(l,u=Date.now())=>{n=u,s=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?o(l,u):(s=l,i||(i=setTimeout(()=>{i=null,o(s)},r-d)))},()=>s&&o(s)]}const zs=(e,t,n=3)=>{let r=0;const s=rS(50,250);return sS(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-r,l=s(c),u=o<=a;r=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Vf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},zf=e=>(...t)=>_.asap(()=>e(...t)),iS=Ie.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ie.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ie.origin),Ie.navigator&&/(msie|trident)/i.test(Ie.navigator.userAgent)):()=>!0,oS=Ie.hasStandardBrowserEnv?{write(e,t,n,r,s,i){const o=[e+"="+encodeURIComponent(t)];_.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),_.isString(r)&&o.push("path="+r),_.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hf(e,t,n){let r=!aS(t);return e&&(r||n==!1)?cS(e,t):t}const jf=e=>e instanceof Ue?{...e}:e;function an(e,t){t=t||{};const n={};function r(l,u,d,f){return _.isPlainObject(l)&&_.isPlainObject(u)?_.merge.call({caseless:f},l,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function s(l,u,d,f){if(_.isUndefined(u)){if(!_.isUndefined(l))return r(void 0,l,d,f)}else return r(l,u,d,f)}function i(l,u){if(!_.isUndefined(u))return r(void 0,u)}function o(l,u){if(_.isUndefined(u)){if(!_.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function a(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,u,d)=>s(jf(l),jf(u),d,!0)};return _.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||s,f=d(e[u],t[u],u);_.isUndefined(f)&&d!==a||(n[u]=f)}),n}const Wf=e=>{const t=an({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=Ue.from(o),t.url=Nf(Hf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(_.isFormData(n)){if(Ie.hasStandardBrowserEnv||Ie.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Ie.hasStandardBrowserEnv&&(r&&_.isFunction(r)&&(r=r(t)),r||r!==!1&&iS(t.url))){const l=s&&i&&oS.read(i);l&&o.set(s,l)}return t},lS=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=Wf(e);let i=s.data;const o=Ue.from(s.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=s,u,d,f,h,p;function m(){h&&h(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(s.method.toUpperCase(),s.url,!0),g.timeout=s.timeout;function b(){if(!g)return;const w=Ue.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),O={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};$f(function(y){n(y),m()},function(y){r(y),m()},O),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(r(new U("Request aborted",U.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new U("Network Error",U.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const O=s.transitional||Df;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),r(new U(S,O.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&_.forEach(o.toJSON(),function(S,O){g.setRequestHeader(O,S)}),_.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),a&&a!=="json"&&(g.responseType=s.responseType),l&&([f,p]=zs(l,!0),g.addEventListener("progress",f)),c&&g.upload&&([d,h]=zs(c),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(s.cancelToken||s.signal)&&(u=w=>{g&&(r(!w||w.type?new qn(null,e,g):w),g.abort(),g=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const x=nS(s.url);if(x&&Ie.protocols.indexOf(x)===-1){r(new U("Unsupported protocol "+x+":",U.ERR_BAD_REQUEST,e));return}g.send(i||null)})},uS=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(l){if(!s){s=!0,a();const u=l instanceof Error?l:this.reason;r.abort(u instanceof U?u:new qn(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new U(`timeout ${t} of ms exceeded`,U.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>_.asap(a),c}},dS=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},fS=async function*(e,t){for await(const n of pS(e))yield*dS(n,t)},pS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},qf=(e,t,n,r)=>{const s=fS(e,t);let i=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await s.next();if(l){a(),c.close();return}let d=u.byteLength;if(n){let f=i+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),s.return()}},{highWaterMark:2})},Hs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gf=Hs&&typeof ReadableStream=="function",hS=Hs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Kf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mS=Gf&&Kf(()=>{let e=!1;const t=new Request(Ie.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Yf=64*1024,Oo=Gf&&Kf(()=>_.isReadableStream(new Response("").body)),js={stream:Oo&&(e=>e.body)};Hs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!js[t]&&(js[t]=_.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new U(`Response type '${t}' is not supported`,U.ERR_NOT_SUPPORT,r)})})})(new Response);const gS=async e=>{if(e==null)return 0;if(_.isBlob(e))return e.size;if(_.isSpecCompliantForm(e))return(await new Request(Ie.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(_.isArrayBufferView(e)||_.isArrayBuffer(e))return e.byteLength;if(_.isURLSearchParams(e)&&(e=e+""),_.isString(e))return(await hS(e)).byteLength},yS=async(e,t)=>{const n=_.toFiniteNumber(e.getContentLength());return n??gS(t)},Lo={http:B_,xhr:lS,fetch:Hs&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Wf(e);l=l?(l+"").toLowerCase():"text";let h=uS([s,i&&i.toAbortSignal()],o),p;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&mS&&n!=="get"&&n!=="head"&&(g=await yS(u,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),A;if(_.isFormData(r)&&(A=O.headers.get("content-type"))&&u.setContentType(A),O.body){const[y,k]=Vf(g,zs(zf(c)));r=qf(O.body,Yf,y,k)}}_.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let x=await fetch(p);const w=Oo&&(l==="stream"||l==="response");if(Oo&&(a||w&&m)){const O={};["status","statusText","headers"].forEach(T=>{O[T]=x[T]});const A=_.toFiniteNumber(x.headers.get("content-length")),[y,k]=a&&Vf(A,zs(zf(a),!0))||[];x=new Response(qf(x.body,Yf,y,()=>{k&&k(),m&&m()}),O)}l=l||"text";let S=await js[_.findKey(js,l)||"text"](x,e);return!w&&m&&m(),await new Promise((O,A)=>{$f(O,A,{data:S,headers:Ue.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:p})})}catch(b){throw m&&m(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new U("Network Error",U.ERR_NETWORK,e,p),{cause:b.cause||b}):U.from(b,b&&b.code,e,p)}})};_.forEach(Lo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zf=e=>`- ${e}`,bS=e=>_.isFunction(e)||e===null||e===!1,Jf={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let i=0;i<t;i++){n=e[i];let o;if(r=n,!bS(n)&&(r=Lo[(o=String(n)).toLowerCase()],r===void 0))throw new U(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+i]=r}if(!r){const i=Object.entries(s).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
|
|
519
519
|
`+i.map(Zf).join(`
|
|
520
520
|
`):" "+Zf(i[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Lo};function No(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qn(null,e)}function Xf(e){return No(e),e.headers=Ue.from(e.headers),e.data=Po.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jf.getAdapter(e.adapter||Or.adapter)(e).then(function(r){return No(e),r.data=Po.call(e,e.transformResponse,r),r.headers=Ue.from(r.headers),r},function(r){return Uf(r)||(No(e),r&&r.response&&(r.response.data=Po.call(e,e.transformResponse,r.response),r.response.headers=Ue.from(r.response.headers))),Promise.reject(r)})}const Qf="1.9.0",Ws={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ws[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ep={};Ws.transitional=function(t,n,r){function s(i,o){return"[Axios v"+Qf+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new U(s(o," has been removed"+(n?" in "+n:"")),U.ERR_DEPRECATED);return n&&!ep[o]&&(ep[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}},Ws.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function wS(e,t,n){if(typeof e!="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new U("option "+i+" must be "+c,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U("Unknown option "+i,U.ERR_BAD_OPTION)}}const qs={assertOptions:wS,validators:Ws},bt=qs.validators;let cn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Mf,response:new Mf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
521
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=an(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&qs.assertOptions(r,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),s!=null&&(_.isFunction(s)?n.paramsSerializer={serialize:s}:qs.assertOptions(s,{encode:bt.function,serialize:bt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),qs.assertOptions(n,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&_.merge(i.common,i[n.method]);i&&_.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Ue.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!c){const p=[Xf.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=a.length;let h=n;for(d=0;d<f;){const p=a[d++],m=a[d++];try{h=p(h)}catch(g){m.call(this,g);break}}try{u=Xf.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=an(this.defaults,t);const n=Hf(t.baseURL,t.url,t.allowAbsoluteUrls);return Nf(n,t.params,t.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(t){cn.prototype[t]=function(n,r){return this.request(an(r||{},{method:t,url:n,data:(r||{}).data}))}}),_.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,a){return this.request(an(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}cn.prototype[t]=n(),cn.prototype[t+"Form"]=n(!0)});let vS=class Hh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new qn(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Hh(function(s){t=s}),cancel:t}}};function _S(e){return function(n){return e.apply(null,n)}}function SS(e){return _.isObject(e)&&e.isAxiosError===!0}const Mo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mo).forEach(([e,t])=>{Mo[t]=e});function tp(e){const t=new cn(e),n=wf(cn.prototype.request,t);return _.extend(n,cn.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return tp(an(e,s))},n}const ue=tp(Or);ue.Axios=cn,ue.CanceledError=qn,ue.CancelToken=vS,ue.isCancel=Uf,ue.VERSION=Qf,ue.toFormData=$s,ue.AxiosError=U,ue.Cancel=ue.CanceledError,ue.all=function(t){return Promise.all(t)},ue.spread=_S,ue.isAxiosError=SS,ue.mergeConfig=an,ue.AxiosHeaders=Ue,ue.formToJSON=e=>Ff(_.isHTMLForm(e)?new FormData(e):e),ue.getAdapter=Jf.getAdapter,ue.HttpStatusCode=Mo,ue.default=ue;const{Axios:gE,AxiosError:yE,CanceledError:bE,isCancel:wE,CancelToken:vE,VERSION:_E,all:SE,Cancel:EE,isAxiosError:CE,spread:xE,toFormData:IE,AxiosHeaders:TE,HttpStatusCode:AE,formToJSON:RE,getAdapter:kE,mergeConfig:PE}=ue,Nr=(e,t)=>e,Q=class Q{static getAxiosInstance(){if(!this.axiosInstance)throw new Error("AstroPay Payments Library: Not initialized.");return this.axiosInstance}};v(Q,"axiosInstance"),v(Q,"config"),v(Q,"init",t=>{Q.config=t,Q.axiosInstance=ue.create({baseURL:t.baseURL,timeout:t.timeout??5e3,withCredentials:!0,headers:{"Accept-Language":H.getCurrent(),...t.headers}}),Q.setupInterceptors()}),v(Q,"GET",async({url:t,params:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s,...n}};return await Q.getAxiosInstance().get(i,o)}),v(Q,"POST",async({url:t,data:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s},headers:{"Content-Type":"text/plain"}};return await Q.getAxiosInstance().post(i,n,o)}),v(Q,"PUT",async({url:t,data:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s}};return await Q.getAxiosInstance().put(i,n,o)}),v(Q,"PATCH",async({url:t,data:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s},headers:{"Content-Type":"text/plain"}};return await Q.getAxiosInstance().patch(i,n,o)}),v(Q,"DELETE",async({url:t,params:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s,...n}};return await Q.getAxiosInstance().delete(i,o)}),v(Q,"setupInterceptors",()=>{Q.axiosInstance.interceptors.request.use(t=>{const{useQueryParams:n,...r}=t.params||{};return n?t.params={...r,data:Q.getEncodeParams()}:t.params=r,t.data&&(t.data=Jc(t.data,"camelCase-to-snake_case")),t}),Q.axiosInstance.interceptors.response.use(t=>Q.handleResponse(t),t=>Q.handleError(t))}),v(Q,"handleResponse",t=>{const n=t.status===202,r=Jc(t.data,"snake_case-to-camelCase");return n?{...r,statusCode:t.status}:r}),v(Q,"handleError",t=>{var r,s,i,o,a,c,l,u;const n={error:((s=(r=t.response)==null?void 0:r.data)==null?void 0:s.error)||"UNKNOWN_ERROR",internalTerm:(o=(i=t.response)==null?void 0:i.data)==null?void 0:o.internalTerm,message:((c=(a=t.response)==null?void 0:a.data)==null?void 0:c.message)||H.translate("generic_error"),description:(u=(l=t.response)==null?void 0:l.data)==null?void 0:u.description};return Promise.reject(n)}),v(Q,"getEncodeParams",()=>{const t={app_name:Q.config.appName,app_id:ot.getToken(),environment:st.getEnvironment(),platform:vl(),version:"0.1.5"};return Zc(t)});let ct=Q;const ln={createPayment:"/v1/web/payments",paymentDetails:"/v1/web/payments/:paymentExternalId/detail",identifyUser:"/v1/web/payments/:paymentExternalId/identify-user",paymentStatus:"/v1/web/payments/:paymentExternalId/status",paymentMethodCreation:"/v1/web/payments/:paymentExternalId/pay",paymentCardPay:"/v1/web/payments/:paymentExternalId/card/pay",pciToken:"v1/web/pci/token"};class Gs{}v(Gs,"postPaymentCardPay",async t=>{try{return await ct.POST({url:ar(ln.paymentCardPay,{paymentExternalId:t.paymentExternalId}),data:t})}catch(n){return Se.trackError(n),Promise.reject(n)}}),v(Gs,"getPciToken",async t=>{try{return await ct.POST({url:ln.pciToken,data:t})}catch(n){return Se.trackError(n),Promise.reject(n)}});var C=je;function Do(){var e=je;const t=["clear","127830LZHlSi",e(795),e(743),e(794),e(649),e(511),"1048780OzWlkN",e(668),e(412),e(465),e(180),e(520),e(373),e(419),e(562),e(422),"off"];return(Do=function(){return t})()}(function(){for(var e=je,t=Bo();;)try{if(-parseInt(e(329))/1*(parseInt(e(274))/2)+-parseInt(e(369))/3*(-parseInt(e(367))/4)+-parseInt(e(233))/5+parseInt(e(145))/6*(-parseInt(e(701))/7)+-parseInt(e(655))/8*(-parseInt(e(270))/9)+parseInt(e(315))/10*(parseInt(e(142))/11)+parseInt(e(685))/12===588751)break;t.push(t.shift())}catch{t.push(t.shift())}})();const Fo=Uo;function Bo(){var e=["3448vNCtZZ","761436JoNrAO","5310140VtlWwy","Request timeout","7672278JDWNZO","90ZjyTbp","3104038VhHmhJ","341079ldogSu","3114441jTKeeA","key","PRODUCTION","getAttribute","toDotCase","send","102532iujTOj","757371vntIDP","rule","28497zqLGhH","1965484iDLxVf","justify","10QefxGX","5066250nuHGFb","append","1380400kMJPdd","tags","3598075UDNdui","rel","latest","5679575iNTExO","@font-feature-values","700156cwVhpM","13090752DcUgRT","count","lowerFirst","box-pack:$3","@keyframes","6990495zFYjlD","timeout","SANDBOX","1764180DwriBQ","28900hQasRN","get","$2box$3","592uldMpH","1906140GGDNCn","forEach","6lcQlGI","timeZone","330066EfbpyJ","2180136rfoyVo","2548490MycJlj","3489ZHTUlC","includes","902079TZNeVj","hasOwnProperty","20cFIzva","flex-line-pack","5421zZCtjq","anim","1685971anZxDF","1118807BrroiT","633515GvGIbN","href","612712APocYB","-ms-","34347599FblyIU","5oIWUit",'/"]',"styleSheets","1149940kbRkDq","18emqyKv","216768ATlgsw","REQUIRED","1538910aqOPES","167058fDTlal","1802382UuEKog","11928996WPgChJ","297544AzCjab","7cCQubY","210052cCRFdo","15365691CaBpSv","prepend","1837320JmVWKN","apply","5488040tLgchU","6404728IJjHNF","cssRules","[HTTP]: ","function","538328lGaoiz","3WyhRFj","set","document.head or document.body","18KOgRUC","3PpNGVC","frames","request","formatKeys","2515230SGPlYS","1557YOosgA","container","4144596Ukwkkq","14mcAgvY","_createCaseFirst","80179OoRuKl","NOT_FOUND","test","1063965TOYbKD","112560WXZvtM","5855416GyXitv","authorization","insertionPoint","ctx","3122830eGkjjc","173392QMdDYZ","197776ZnKCeZ","comm","42CEhiUc","3UDJFFS","8znKpbY","1rkGFTj","1103656RUOYui","5297088ciYuDR","CopyButton","random","5589390vSVLAu","done","969632YGVaMk","flex-pack:$3","setPrototypeOf","negative","$2$3","8766CUlXUX","6555474dHVLiB","16hoClBR","10399347ouOdzC","1731331adTcvK","6011170PFMfeO","box-","2QsMDbx","396880hxDmUW","5lLsGOe","lower","288762yBOcUy","927680PXUBpa","5272970jsKcdl","210wvAPTz","4390984qBtQNZ","1042915vBnDcJ","slice","18146574kLGOdt","Content-Type","@counter-style","1635840LijluJ","assign","then","148iTkCvR","upperFirst","4586523dESxoU","102UdDlbM","13480IirCBl","application/json","-$&","snake","startCase","3782506eozEyq","[UNHANDLED]: ","1586289ZbsznC","parent","compat","style[data-emotion]:not([data-s])","41346sAgKHc","origin","1542472UUshgd","toPascalCase","domians","187957vMwqit","toSnakeCase","568pAcJOy","5590kjPEGP","@font-face","34057TCsfxk","9621207ZSMPqN","data-emotion","_startCase","print-","@media","link",":read-write","NOT_LOADED","9356KfJoDB","animationName","4mPQIOh","animation","2696336QqSQcN","start","3363787mMyewX","12991583mFbRDh","35tYPZLV","35168opQkvL","32WPbhAk","hydrate","/public/v1/token/reveal","36hVbjtN","basis","$1$2","cdn","__emotion_styles","22apMIFO","3goapWe","3275226iDBkQv","push","221142kMnpSu","querySelectorAll","114RSjmoG","reveal","2672020NupvKQ","5voBSrt","5280612FAmHRj","2YDvJFs","121946FvfpOL","TIMEOUT","BAD_REQUEST","308070mzXybL","7704828AlyWpW","4136vTyAoM","42WATbWV","17375868QkLWYY","1961979ltppkW","369356uTNDzr","5112212jRFQZI","24746700nYUjHu","$1 $2","6521168AcnhGa","style","12tOiqGC","https://tokenizer-tst.cc.astropay.com","speedy","60VyHydS","793022whjRWB","bind","kebab","10Oqises","add","1470645xRoijs","object","captureStackTrace","781649cCTwXr","182824NOFIwU","4817756GOdPsv","BASE_CDN","isArray","@supports","1244744kHEZvp","1204400cULrpT","449711XSjyNn","@namespace","57gVyDRX","emit","6236046SweZxs","defineProperties","@@INIT","3014374nROcbQ","params","sheet","1671942sLAGQH","Unable to find ","shift","canExecute","upper","UNHANDLED","321246WzqUuK","2416zstDHz","78TjMsRA","@document","486479crVyAA","1274230eUYpuD","7476MqGCll","https://tokenizer.cc.astropay.com","9qEwJkj","94mlxQmC","_insertTag","@viewport","copy-button","2oFrXUh","css","707329nPsPGZ","3903120ZTbQWm","1250232QMjwkz","993063ECHrBH","off","box$3","2387410tdnXlE","environment","type","4XTbgyi","207494VIJaqZ","207VWsTHT","6MQcvFH","35KTILAE","623aFRIRv","104MtyiFW","70fByxgL","1328390hcsUJy","11965976myZRSf","2932168wOOQED","7CAfDgU","27xTvXzF","5139khheWn","18298ErvNda","15qVcyAs","2581385zzzlSz","1531173EygmBU","5013TdEGGQ","39251454EyvEGu","1szHVRr","nextSibling","171eGkepJ","995792ZXdNpW","getFullCdn","49fgToOT","141238OYIhFf","3604728wtPlZt","9byfBJF","exec","next","message","70759QyvmDC","isSpeedy","128yfgIdV","data-s","200ROoAmA","shrink","length","282358JpRRgN","isOperational","insert","3278505kVkcHW","2558421fHqYVU","1165706VPRSLL","split","360993lzNNst","3986rrEZYp","return","3480945BQAAYg","2nMBmkS","2281844ROitQp","BASE_API","27HmsHKI","679404ZmaTyg","20xkgBFi","3908064tZgPPb","1790914KWViXl","inserted","stylisPlugins","reduce","insertBefore","26oJRKGO","119987EZDfNd","565eyruQF","Access-Control-Allow-Origin","595876LgUVRS","1992206jKEGfb","join","193550GoZXIJ","202wLqUwO","replace","baseURL"," is invalid.","99amzLEi","12446nhMFLu","1856148uSihXJ","31566270qvtShe","56045nULafv","abs","5889208ocarfU","2206497yNbZFm","7WjjEbv","@keyframes ","firstChild","305907rAOuHi","1070106SrHRtP","1KlNACj","2829256VMfbYc","801054pmVKPQ","45296tjbJvx","399116yuJdxn","TimeZone","removeEventListener","UNDEFINED",' "]',"lastIndex","18388260JgPhmo","790sQdzeI","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","39nuPwxQ","nonce","1906825qFGXWA","102Qkfvvl","name","raw","20gywqiU","7308324sgDoMc","34825311qnCLyR","991531xZguiI","4593190CadDlo","INVALID","1uSGfgo","input-$1","1501542qKAixX","prototype","registered","456wJQuIj","347732LsCzct","parse","undefined","76385hkeDYT","inline-","115026FZBXCQ","5txmdnE","32HPdvVb","8954800LNVZHA","accessToken","3GcEFSv","props","5028BbqWZE","34672561hfhCnC","6522030iNQqBd","36TYjiRw","474fHLsgQ","365994YPzeNn","toKebabCase","6SBjYSO","1HxbtmM","toCamelCase","3xMbMIj","313859KKbbgd","keys","6LCyCWH","tb-rl","1145017tuPjtp","api","10895PHjSJt","boolean","flex-$1$2","2012180BGZvZq","5JHUgnG","6eqGueN","create","1483570zwTktD","366KnZgCn","14qDkMOo","8FUVWOn","38685lFcQsk","appendChild","4wswXHb","INTERNAL_SERVER_ERROR","315634dCJvdO","32039NIQJjh","trim","entries","143352vIzUva","-grow","6vPzjsU","getOwnPropertyDescriptors","192VVRXxR","2013040uXGWiH","grow","10gWvkPZ","getOwnPropertySymbols","!important","5028340uiCobm","splitWords","1398012AIJUyj","1632420YnhDrH","ctr"," is undefined.","41812yDXNFv","2495164uYJjkv","-moz-","version","502691MEcBqX","getHeaders","3kPtUIZ","stringify","14822650JPeFEZ","@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ","42054ESbccP","_toWords","4242528bXZfiT","3344667OIHhxe","5750396vrmTdj","head","268152SJsZnw","427cxPooO","isUndefined","3930zrQOch","listeners","decl","@import","filter","stop","location","79674ZpwWYN","293732SBYxst","/public/v1/token","fromCharCode","toLowerCase","toUpperCase","call","GET","addEventListener","setAttribute","26941288CkDEbN","post","11oqlwuN","Access token not set","87GWhrFE","emitter","before","isRequired","1369700dRAXAo","5GSCGHS","string","toString","24384006yWcRvg","_canExecute","8765008liwqJC","sourceWindow","sandbox","7368UiaItP","12GMrAvZ","HTTP","dns-prefetch","4410036tOJnlJ","264834CkfPaR","children","4214610DepdAD","1472518dXJTTo","3379032afmmzz","Component selectors can only be used in conjunction with ","8ZmfgGJ","44cPbEBd","582SAPPev","350313NZGJmJ","4249880hofxWm",":read-only","436145BXkDSV","toSentenceCase","24qGiocM","flex-item-","REQUEST_TIMEOUT","UNAUTHORIZED","2924874IDKzfu","11ozoHrq","20380sohzME","284730CeOziu","6521911DlQhaK","resolve","175pzlaDH","12Wntbrz","153CwXsSP","6807462wcVIbh","$`$1","99255obnocz","8565340BeQZTN","frameId","3220704wvCPTK","9vcUkeB","5163599fsttEm","983742ZSzkPs","1880YXBEgQ","postMessage","6676776VbOJGf","value","72700aKFNWB","Request error! status: ","2685321kQBtXq","2011122iTUboz","784830EiOgSk","4Shhqxd","concat","throw","777225SHDgSu","resolvedOptions","search","24brqEuT","stretch","2353821ouiOcG","16BpXaTH","body","4168339BVBfRq","_upperFirst","styles","5GkJNGS","2498022TthXHp","match","4399206zUvsoU","defineProperty","45vUgLOB",'script[src^="',"box-$1$2","1915506xRzusT","targetOrigin","10vjgZog","map","3084189TBfDxs","2617015rxAdDp","20057BCeMKK","692668yJTffY","3275913IwuUbo","5yABJbK","charCodeAt","4DRtert","formatKey","5gnwpyW","_lowerCase","4622320DSbOxK","createElement","1428025rswbrb","AbortError","272928GGfFVj","737mdBFHW","4950912kToKgF","handleMessage","8310840DVoCar","getOwnPropertyDescriptor","109064imVtqW","createTextNode","6XsYOJz","24899zSajlN","127845nWOlks","21ZAugTX","11860803tMqYZp","3898532gnOkwM","5015045AqKKoB","1371378msYiaj","5167656aUcLyl","209740ohkUFh","7903578rApVjM","378mIpYul","UNABLE_TO_FIND","586668OMSavw","https://tokenizer-web.cc.astropay.com","39728XQruux","::placeholder","2hgGSIR","3799864GhLwZS","removeChild","toLocaleLowerCase","40869670rNPvRw","flush","235779fIEMDA","enumerable","5CDMHbY","Reveal","773584eZyLko","1907948myHfGb","61554tirTmC","4269661uBmwSk","23881380dQaLeD","296368dsyAUL"];return(Bo=function(){return e})()}function Uo(e,t){const n=Do();return(Uo=function(r,s){return n[r-=160]})(e,t)}(function(){var e=je;const t=Uo,n=Do();for(;;)try{if(-parseInt(t(176))/1*(-parseInt(t(169))/2)+-parseInt(t(175))/3+parseInt(t(172))/4*(parseInt(t(173))/5)+parseInt(t(170))/6*(-parseInt(t(161))/7)+-parseInt(t(174))/8+-parseInt(t(163))/9*(parseInt(t(167))/10)+parseInt(t(171))/11==561693)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),Fo(165),Fo(177),Fo(166);var Je,Vt,He,np,Xe,wt,rp,sp,$o,Vo,ip,Ks;function zo(){var e=je,t=[e(350),e(396),e(311),e(474),"837xAVhUS","HTTP",e(724),e(144),e(264),e(473),e(689),e(226),e(221),"TIMEOUT","NOT_LOADED",e(328),e(378),e(179),e(656),e(563),"6960805uGgNwo",e(192),e(426),"12267310uEVrHO"];return(zo=function(){return t})()}function Ys(e,t){var n=zo();return(Ys=function(r,s){return n[r-=191]})(e,t)}function Ho(e,t){var n=jo();return(Ho=function(r,s){return n[r-=203]})(e,t)}function jo(){var e=je,t=[e(718),e(707),"41710840nWONlY",e(731),e(659),e(799),"7OXGKyG",e(198),e(766),e(243),e(490),e(263)];return(jo=function(){return t})()}function Wo(e,t){var n=qo();return(Wo=function(r,s){return n[r-=166]})(e,t)}function qo(){var e=je,t=[e(622),e(657),e(242),e(732),"production",e(499),"83274xOmQWJ","4mtYUAV",e(451),e(543),e(594),"65587catFQe",e(415)];return(qo=function(){return t})()}function op(e,t){var n=Go();return(op=function(r,s){return n[r-=472]})(e,t)}function Go(){var e=je,t=[e(308),e(157),e(444),e(335),e(279),e(169),"2vZiVLA","1287DSJSxR",e(240),e(251),e(456),e(477),e(692),"96LHSqDE"];return(Go=function(){return t})()}(function(){for(var e=je,t=Ys,n=zo();;)try{if(parseInt(t(196))/1*(parseInt(t(200))/2)+-parseInt(t(209))/3*(parseInt(t(214))/4)+parseInt(t(212))/5+parseInt(t(193))/6*(-parseInt(t(204))/7)+parseInt(t(203))/8+parseInt(t(192))/9*(parseInt(t(198))/10)+-parseInt(t(191))/11==844014)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}})(),(Vt=Je||(Je={}))[(He=Ys)(210)]=He(210),Vt[He(194)]=He(194),Vt[He(211)]=He(211),Vt[C(773)]=He(206),Vt[He(207)]=He(207),Vt[He(197)]=He(197),Vt[He(205)]=C(143),Vt.UNHANDLED=He(213),wt=Ys,(Xe=np||(np={}))[Xe.OK=200]="OK",Xe[Xe[wt(199)]=400]=wt(199),Xe[Xe[wt(202)]=404]=wt(202),Xe[Xe[wt(208)]=500]=C(378),Xe[Xe[wt(201)]=408]=wt(201),Xe[Xe[wt(195)]=401]=wt(195),function(){for(var e=C,t=Ho,n=jo();;)try{if(-parseInt(t(211))/1+-parseInt(t(209))/2*(parseInt(t(210))/3)+-parseInt(t(212))/4*(parseInt(t(207))/5)+-parseInt(t(204))/6+-parseInt(t(206))/7*(parseInt(t(203))/8)+-parseInt(t(208))/9+parseInt(t(214))/10==660557)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),$o=Ho,(sp=rp||(rp={}))[C(577)]=$o(205),sp[$o(213)]=C(205),function(){for(var e=C,t=Wo,n=qo();;)try{if(parseInt(t(167))/1+parseInt(t(175))/2+parseInt(t(178))/3+parseInt(t(176))/4*(-parseInt(t(172))/5)+-parseInt(t(170))/6+-parseInt(t(171))/7*(-parseInt(t(168))/8)+parseInt(t(174))/9==266134)break;n[e(795)](n.shift())}catch{n[e(795)](n.shift())}}(),(ip=Vo||(Vo={}))[(Ks=Wo)(166)]=Ks(173),ip[Ks(169)]=Ks(177),function(){for(var e=C,t=op,n=Go();;)try{if(parseInt(t(479))/1*(-parseInt(t(485))/2)+parseInt(t(478))/3*(parseInt(t(477))/4)+parseInt(t(481))/5*(-parseInt(t(475))/6)+parseInt(t(482))/7*(parseInt(t(474))/8)+parseInt(t(472))/9*(parseInt(t(476))/10)+-parseInt(t(484))/11*(parseInt(t(480))/12)+-parseInt(t(483))/13*(parseInt(t(473))/14)==639293)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}();const Gn=Js;(function(){var e=C;const t=Js,n=Ko();for(;;)try{if(parseInt(t(494))/1+parseInt(t(487))/2*(-parseInt(t(497))/3)+-parseInt(t(485))/4*(parseInt(t(483))/5)+-parseInt(t(488))/6+parseInt(t(484))/7*(-parseInt(t(499))/8)+parseInt(t(469))/9*(-parseInt(t(480))/10)+parseInt(t(468))/11==507588)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();const Mr={isRequired:e=>e+Gn(475),isUndefined:e=>e+Gn(492),isInvalid:e=>e+Gn(490),unableToFind:e=>Gn(466)+e+".",notLoaded:e=>Gn(473)+e+"."};class Zs extends Error{constructor(t,n,r=!1){var s=C;const i=Gn;let o=n;switch(t){case Je[i(491)]:o=Mr[i(470)](n);break;case Je[i(479)]:o=Mr.isInvalid(n);break;case Je[i(486)]:o=Mr[i(476)](n);break;case Je[s(563)]:o=Mr[i(495)](n);break;case Je[i(481)]:o=Mr[i(493)](n);break;case Je[s(454)]:o=i(478)+n;break;case Je[i(471)]:o=i(496)+n;break;case Je[i(477)]:default:o=i(474)+n}var a,c,l;super(o),a=this,l=void 0,(c=i(482))in a?Object[Js(489)](a,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[c]=l,Object[i(472)](this,new.target.prototype),this[i(467)]=t,this[i(482)]=r,Error[i(498)](this)}}function Js(e,t){const n=Ko();return(Js=function(r,s){return n[r-=466]})(e,t)}function Ko(){var e=C;const t=[e(348),e(524),e(442),e(143),e(713),"Failed to load the ",e(750)," is required.",e(417),e(192),e(671),e(328),e(164),e(773),e(257),e(645),e(358),e(784),"UNDEFINED","618834PMzmgD",e(519),e(520),e(290),e(656),e(398),"notLoaded",e(218),"unableToFind","[TIMEOUT]: ",e(357),"captureStackTrace",e(223),e(188),e(321)];return(Ko=function(){return t})()}function ap(e,t){var n=Yo();return(ap=function(r,s){return n[r-=363]})(e,t)}function Yo(){var e=C,t=[e(699),"10296792NSbaBf",e(144),e(237),e(713),e(171),"3JrHjWm",e(467),e(520),e(239),"httpCode",e(390),e(590),e(280),e(303)];return(Yo=function(){return t})()}(function(){for(var e=C,t=ap,n=Yo();;)try{if(parseInt(t(365))/1*(-parseInt(t(374))/2)+-parseInt(t(368))/3*(-parseInt(t(367))/4)+-parseInt(t(373))/5*(-parseInt(t(376))/6)+parseInt(t(375))/7+-parseInt(t(377))/8*(parseInt(t(371))/9)+parseInt(t(369))/10+parseInt(t(363))/11==917605)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}})();const Dr=Jo;function Zo(){var e=C;const t=[e(683),e(336),e(629),e(541),e(446),"143705UhzlIi",e(141),e(193),e(176),e(147),e(674),e(688),e(234),e(173),e(406),e(606),"940hBWQzM"];return(Zo=function(){return t})()}function Jo(e,t){const n=Zo();return(Jo=function(r,s){return n[r-=127]})(e,t)}(function(){var e=C;const t=Jo,n=Zo();for(;;)try{if(parseInt(t(139))/1*(-parseInt(t(140))/2)+parseInt(t(127))/3*(parseInt(t(142))/4)+-parseInt(t(137))/5+-parseInt(t(141))/6+-parseInt(t(129))/7+-parseInt(t(143))/8*(parseInt(t(134))/9)+-parseInt(t(133))/10*(-parseInt(t(128))/11)==195235)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();class ES{static[Dr(135)](t){const n=Dr,r=new URLSearchParams(t),s={};return r[n(136)]((i,o)=>{var a=je;const c=n;s[o]?Array[c(130)](s[o])?s[o][a(795)](i):s[o]=[s[o],i]:s[o]=i}),s}static parseObject(t){return this[Dr(135)](t)}static[Dr(131)](t){const n=Dr,r=new URLSearchParams;for(const s in t){const i=t[s];if(Array[n(130)](i))for(const o of i)r[n(132)](s,o);else r[n(132)](s,i?i[n(138)]():"")}return r[n(138)]()}}const Xs=Xo;function Xo(e,t){const n=Qo();return(Xo=function(r,s){return n[r-=358]})(e,t)}(function(){var e=C;const t=Xo,n=Qo();for(;;)try{if(parseInt(t(368))/1+parseInt(t(367))/2*(parseInt(t(361))/3)+-parseInt(t(371))/4+-parseInt(t(358))/5*(-parseInt(t(370))/6)+parseInt(t(362))/7*(parseInt(t(366))/8)+parseInt(t(363))/9*(parseInt(t(364))/10)+-parseInt(t(372))/11==832538)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();const Kn={endpoints:{tokenizer:C(427),reveal:Xs(365)},domians:{cdn:{production:Xs(369),sandbox:"https://tokenizer-web-tst.cc.astropay.com"},api:{production:Xs(359),sandbox:Xs(360)}}};function Qo(){var e=C;const t=[e(393),e(786),e(471),"107952fYoopL",e(644),e(565),"5250978IBLHHK","2968388TUhYeT",e(236),e(537),e(200),e(158),e(317),e(780),e(677)];return(Qo=function(){return t})()}const CS=ea;function ea(e,t){const n=ta();return(ea=function(r,s){return n[r-=466]})(e,t)}(function(){var e=C;const t=ea,n=ta();for(;;)try{if(parseInt(t(475))/1+parseInt(t(466))/2*(-parseInt(t(472))/3)+parseInt(t(471))/4+-parseInt(t(467))/5*(parseInt(t(473))/6)+parseInt(t(474))/7*(-parseInt(t(469))/8)+-parseInt(t(470))/9*(-parseInt(t(477))/10)+-parseInt(t(476))/11==221555)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}})();const xS={environment:Vo[CS(468)],version:C(611)};function ta(){var e=C;const t=["50qDamSZ",e(568),"44535lKGnAe",e(622),"1198616psasvq","544302QFKtCW","162808fuaUJw","234726FeLlSb",e(798),e(662),e(469),e(623)];return(ta=function(){return t})()}function na(){var e=C;const t=["946575WsgUvq",e(268),e(533),"12681sdIGeC",e(635),"4355436uZDbJG","24iPqPHQ",e(592),e(351),e(418),e(166)];return(na=function(){return t})()}function cp(e,t){const n=na();return(cp=function(r,s){return n[r-=155]})(e,t)}(function(){var e=C;const t=cp,n=na();for(;;)try{if(parseInt(t(162))/1*(parseInt(t(155))/2)+parseInt(t(157))/3+-parseInt(t(159))/4+parseInt(t(160))/5*(-parseInt(t(163))/6)+-parseInt(t(158))/7*(parseInt(t(164))/8)+parseInt(t(161))/9*(parseInt(t(156))/10)+parseInt(t(165))/11==451934)break;n[e(795)](n.shift())}catch{n.push(n[e(189)]())}})();let ra=xS;const un=()=>ra,IS=sa;function sa(e,t){const n=ia();return(sa=function(r,s){return n[r-=379]})(e,t)}(function(){var e=C;const t=sa,n=ia();for(;;)try{if(parseInt(t(384))/1+-parseInt(t(389))/2+-parseInt(t(383))/3*(-parseInt(t(387))/4)+parseInt(t(388))/5+-parseInt(t(381))/6*(parseInt(t(385))/7)+-parseInt(t(382))/8+parseInt(t(379))/9*(parseInt(t(386))/10)==645524)break;n[e(795)](n.shift())}catch{n[e(795)](n.shift())}})();const lp=(e,t)=>e[IS(380)](new RegExp(t+"$"),"");function ia(){var e=C;const t=[e(306),e(288),e(372),e(155),e(232),e(632),"83594fyhqnZ",e(730),e(399),"3139375mafbsW",e(607)];return(ia=function(){return t})()}const Fr=aa;function oa(){var e=C;const t=[e(535),e(602),e(582),e(266),e(416),e(172),"11uyatGf",e(402),e(269),"6nfgxja",e(698),e(150),e(219),"domians",e(363),e(790),e(720),e(501),e(215)];return(oa=function(){return t})()}function aa(e,t){const n=oa();return(aa=function(r,s){return n[r-=110]})(e,t)}(function(){var e=C;const t=aa,n=oa();for(;;)try{if(parseInt(t(124))/1+-parseInt(t(128))/2+parseInt(t(119))/3*(parseInt(t(127))/4)+parseInt(t(111))/5*(parseInt(t(117))/6)+parseInt(t(112))/7*(-parseInt(t(118))/8)+parseInt(t(120))/9*(-parseInt(t(125))/10)+parseInt(t(114))/11*(parseInt(t(110))/12)==961663)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();class Qs{static get[Fr(113)](){const t=Fr;return lp(Kn[t(121)][t(123)][un()[t(126)]],"/")}static get[Fr(116)](){const t=Fr;return lp(Kn[t(121)][t(122)][un()[t(126)]],"/")}static[C(241)](t,n,r){var s=C;const i=Fr,o=ES[s(406)](r??{}),a=un(),c=o?n[s(636)]("?")?"&":"?":"";return Qs[i(113)]+"/"+t+"/"+a[i(115)]+"/"+n+c+o}}var ca=ua;function la(){var e=C,t=[e(559),e(634),e(630),e(739),e(548),e(503),e(436),e(480),e(404),"1042584XPmVvk",e(172),e(473),e(289),e(745),"json",e(795),"2166WIGGYn",e(438),e(385),e(606),e(629),"173LKkRgC",e(391),e(498),e(282),e(614),e(710),e(247),e(621),e(255),"14XmrYdp",e(182),e(735),e(504),"Bearer ",e(697),e(694),e(474),"abort","defineProperty",e(321),e(680),e(496),e(587),e(309),e(344),e(406),e(248),"status",e(542),e(386),"keys",e(586)];return(la=function(){return t})()}function ua(e,t){var n=la();return(ua=function(r,s){return n[r-=115]})(e,t)}(function(){for(var e=C,t=ua,n=la();;)try{if(-parseInt(t(126))/1*(-parseInt(t(121))/2)+-parseInt(t(160))/3*(-parseInt(t(130))/4)+parseInt(t(140))/5*(-parseInt(t(123))/6)+parseInt(t(135))/7*(parseInt(t(167))/8)+-parseInt(t(158))/9+parseInt(t(159))/10+parseInt(t(157))/11==336922)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),ca(146),ca(164),ca(166);var ei=da;function da(e,t){var n=fa();return(da=function(r,s){return n[r-=291]})(e,t)}(function(){for(var e=C,t=da,n=fa();;)try{if(-parseInt(t(301))/1+parseInt(t(307))/2+-parseInt(t(292))/3*(-parseInt(t(306))/4)+parseInt(t(291))/5+-parseInt(t(314))/6*(-parseInt(t(300))/7)+-parseInt(t(302))/8*(parseInt(t(303))/9)+-parseInt(t(293))/10==616185)break;n.push(n[e(189)]())}catch{n.push(n[e(189)]())}})(),C(597),ei(294),C(779),ei(305),ei(296),ei(315);function fa(){var e=C,t=[e(208),e(302),"336OqQgfm",e(755),e(494),e(423),e(647),"1179086uaDkqa",e(752),"emit","message",e(756),e(190),e(520),e(148),e(546),e(216),e(779),e(450),"listener",e(319),e(654),e(407),e(212),e(162),e(448),e(440),e(525),e(310)];return(fa=function(){return t})()}function pa(){var e=C;const t=[e(676),e(331),e(362),"2228304EqXFLn",e(512),e(778),e(387),e(721),e(673),"207AHFLGs",e(376),e(425)];return(pa=function(){return t})()}function ha(e,t){const n=pa();return(ha=function(r,s){return n[r-=254]})(e,t)}(function(){var e=C;const t=ha,n=pa();for(;;)try{if(parseInt(t(257))/1+parseInt(t(260))/2+parseInt(t(254))/3*(-parseInt(t(261))/4)+parseInt(t(262))/5+-parseInt(t(258))/6+parseInt(t(256))/7+-parseInt(t(263))/8*(parseInt(t(264))/9)==716064)break;n[e(795)](n.shift())}catch{n[e(795)](n[e(189)]())}})();const up=function(e){var t=C;const n=ha,r=document[t(414)]||document[n(259)];if(!r)throw new Zs(Je[t(563)],n(255),!0);return r[n(265)](e),e};(function(){var e=C;const t=ma,n=ga();for(;;)try{if(parseInt(t(128))/1+parseInt(t(125))/2+-parseInt(t(127))/3+parseInt(t(132))/4+-parseInt(t(131))/5+parseInt(t(133))/6+-parseInt(t(134))/7==688465)break;n.push(n[e(189)]())}catch{n[e(795)](n.shift())}})();const ti=function(e,t){const n=ma,r=document.createElement(n(126));r[n(129)]=e,r[n(130)]=t,up(r)};function ma(e,t){const n=ga();return(ma=function(r,s){return n[r-=125]})(e,t)}function ga(){var e=C;const t=["2178600xJfnAD",e(771),e(259),e(225),e(610),e(646),e(691),e(556),e(588),"18738601iJYruu"];return(ga=function(){return t})()}function ya(){var e=C,t=[e(608),e(186),e(570),e(376),e(652),e(301),"10439181hcqJpc",e(593),e(434),e(441),"createTextNode",e(695),e(250),e(604),"ctr",e(665),e(785),"9136jiXoxV",e(238),e(203),e(324),e(723),e(177),e(278),"insertRule",e(540),"nonce",e(670),"flush",e(767),"forEach","7294661PRwxon",e(774),e(742),e(159),"ownerNode",e(795),e(255),"2555lCYkVH",e(252),e(684),e(481)];return(ya=function(){return t})()}function dn(e,t){var n=ya();return(dn=function(r,s){return n[r-=379]})(e,t)}(function(){for(var e=C,t=dn,n=ya();;)try{if(parseInt(t(413))/1*(-parseInt(t(412))/2)+-parseInt(t(382))/3+-parseInt(t(381))/4*(-parseInt(t(387))/5)+parseInt(t(411))/6+parseInt(t(390))/7*(parseInt(t(408))/8)+parseInt(t(397))/9+-parseInt(t(404))/10*(parseInt(t(380))/11)==960039)break;n.push(n.shift())}catch{n[e(795)](n[e(189)]())}})(),function(){var e=C,t=dn;function n(s){var i=je,o=dn,a=this;this[i(203)]=function(c){var l,u=i,d=dn;l=a[d(391)][d(386)]===0?a[d(402)]?a[d(402)][d(409)]:a[d(406)]?a[d(389)][d(396)]:a[d(400)]:a[d(391)][a[d(391)][d(386)]-1][u(238)],a[d(389)][d(414)](c,l),a[d(391)][d(385)](c)},this[o(403)]=s[o(383)]===void 0||s[o(383)],this[o(391)]=[],this.ctr=0,this[o(417)]=s[i(318)],this[o(398)]=s[o(398)],this[o(389)]=s[i(684)],this[o(406)]=s[o(406)],this[o(402)]=s[o(402)],this.before=null}var r=n[e(332)];r[t(407)]=function(s){var i=e;s[t(379)](this[i(203)])},r[e(258)]=function(s){var i,o,a,c=e,l=t;this[l(405)]%(this[l(403)]?65e3:1)==0&&this[l(410)]((i=this,o=dn,(a=document[o(416)](c(156)))[o(399)](o(420),i[o(398)]),i[o(417)]!==void 0&&a[c(434)](c(318),i[c(318)]),a[o(394)](document[o(401)]("")),a[o(399)](o(388),""),a));var u=this[c(608)][this[l(391)][l(386)]-1];if(this[l(403)]){var d=function(f){var h=c,p=dn;if(f[p(392)])return f.sheet;for(var m=0;m<document[p(395)][p(386)];m++)if(document[p(395)][m][p(384)]===f)return document[h(652)][m]}(u);try{d[l(415)](s,d[l(418)][l(386)])}catch{}}else u[l(394)](document[c(550)](s));this.ctr++},r[t(419)]=function(){var s=e,i=t;this[i(391)][s(629)](function(o){var a,c=i;return(a=o.parentNode)==null?void 0:a[c(393)](o)}),this[i(391)]=[],this[s(397)]=0}}();var Qe=ba;function ba(e,t){var n=wa();return(ba=function(r,s){return n[r-=110]})(e,t)}function wa(){var e=C,t=[e(196),"152336OQhHhe",e(420),e(492),e(783),e(770),e(349),e(204),e(598),e(178),e(401),e(650),"4724nuSFUK",e(439),e(736),"@page",e(613),e(619),e(443),"@layer",e(174)];return(wa=function(){return t})()}(function(){for(var e=C,t=ba,n=wa();;)try{if(-parseInt(t(119))/1+-parseInt(t(123))/2*(-parseInt(t(124))/3)+-parseInt(t(129))/4*(parseInt(t(122))/5)+-parseInt(t(114))/6+-parseInt(t(115))/7+parseInt(t(112))/8+parseInt(t(117))/9==198272)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),C(648),Qe(121),C(700),C(600),Qe(113),Qe(126),Qe(116),Qe(118),Qe(110),Qe(111),Qe(120),Qe(128),Qe(125),Qe(127),Qe(130);var va=_a;function _a(e,t){var n=Sa();return(_a=function(r,s){return n[r-=258]})(e,t)}function Sa(){var e=C,t=[e(347),e(371),e(260),e(288),e(227),e(409),e(255),e(795),e(246),"10opKczI","charCodeAt",e(733),e(377),e(428),e(738),e(281),e(296),e(510),e(381),e(464),"3836294AMJKLE"];return(Sa=function(){return t})()}function Ea(){var e=C,t=[e(327),e(255),e(566),e(334),e(323),"14ejudnZ",e(201),"862542dyuBTR",e(552),"401898SBLqqH",e(184),e(705)];return(Ea=function(){return t})()}function dp(e,t){var n=Ea();return(dp=function(r,s){return n[r-=123]})(e,t)}function fp(e,t){var n=Ca();return(fp=function(r,s){return n[r-=435]})(e,t)}function Ca(){var e=C,t=["680775fQHTmS",e(364),e(493),e(528),e(206),e(669),"3255819aCtDxV",e(447),e(187)];return(Ca=function(){return t})()}function xa(){var e=C,t=[e(458),"2134996QawHcC","return",e(693),e(558),"15490080Hutsfa",e(496),e(228),e(216),e(346),e(255),"1837002hgOqZq",e(531),e(516),e(484),"join"];return(xa=function(){return t})()}function pp(e,t){var n=xa();return(pp=function(r,s){return n[r-=147]})(e,t)}function hp(e,t){var n=Ia();return(hp=function(r,s){return n[r-=398]})(e,t)}function Ia(){var e=C,t=[e(551),"input-$1",e(273),e(468),"root",e(749),e(287),e(567),e(772),e(549),e(716),e(346),"global",e(229),e(294),"1314449boGmmT",e(527),"4549375QrRZcY",e(265),"type"];return(Ia=function(){return t})()}function Ta(){var e=C,t=[e(271),e(209),e(453),e(734),e(545),"has","476346BHUYta","478714FKDyOG",e(760),e(253)];return(Ta=function(){return t})()}function mp(e,t){var n=Ta();return(mp=function(r,s){return n[r-=484]})(e,t)}function Aa(e,t){var n=Ra();return(Aa=function(r,s){return n[r-=236]})(e,t)}function Ra(){var e=C,t=[e(584),"953666lBllkt",e(564),"48PHUuVy",e(437),e(214),e(627),e(149),e(272),e(307),e(483),e(800),e(370)];return(Ra=function(){return t})()}(function(){for(var e=C,t=_a,n=Sa();;)try{if(-parseInt(t(259))/1*(parseInt(t(278))/2)+-parseInt(t(276))/3*(-parseInt(t(271))/4)+-parseInt(t(274))/5*(-parseInt(t(264))/6)+-parseInt(t(258))/7+-parseInt(t(263))/8+parseInt(t(261))/9*(-parseInt(t(268))/10)+parseInt(t(260))/11==402046)break;n[e(795)](n.shift())}catch{n[e(795)](n[e(189)]())}})(),Math[va(275)],String[va(272)],Object[va(273)],function(){for(var e=C,t=dp,n=Ea();;)try{if(-parseInt(t(132))/1*(parseInt(t(123))/2)+-parseInt(t(125))/3+parseInt(t(129))/4+parseInt(t(134))/5*(parseInt(t(127))/6)+parseInt(t(126))/7*(parseInt(t(133))/8)+-parseInt(t(124))/9*(-parseInt(t(130))/10)+-parseInt(t(128))/11==366270)break;n[e(795)](n.shift())}catch{n.push(n[e(189)]())}}(),function(){for(var e=C,t=fp,n=Ca();;)try{if(parseInt(t(439))/1+parseInt(t(443))/2*(parseInt(t(442))/3)+parseInt(t(441))/4*(parseInt(t(440))/5)+parseInt(t(438))/6+-parseInt(t(436))/7+parseInt(t(435))/8+-parseInt(t(437))/9==637765)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}}(),function(){for(var e=C,t=pp,n=xa();;)try{if(-parseInt(t(158))/1+-parseInt(t(150))/2+parseInt(t(149))/3+-parseInt(t(155))/4*(-parseInt(t(151))/5)+-parseInt(t(152))/6+-parseInt(t(161))/7*(-parseInt(t(157))/8)+parseInt(t(159))/9==746841)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=C,t=hp,n=Ia();;)try{if(parseInt(t(398))/1+-parseInt(t(409))/2*(-parseInt(t(413))/3)+parseInt(t(405))/4+parseInt(t(400))/5+-parseInt(t(403))/6*(-parseInt(t(408))/7)+-parseInt(t(412))/8*(-parseInt(t(416))/9)+-parseInt(t(417))/10==921092)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}}(),function(){for(var e=C,t=mp,n=Ta();;)try{if(parseInt(t(484))/1+-parseInt(t(485))/2*(-parseInt(t(490))/3)+parseInt(t(488))/4+parseInt(t(489))/5+parseInt(t(492))/6+-parseInt(t(486))/7*(parseInt(t(487))/8)+-parseInt(t(491))/9==521840)break;n.push(n[e(189)]())}catch{n.push(n[e(189)]())}}(),function(){for(var e=C,t=Aa,n=Ra();;)try{if(parseInt(t(246))/1*(parseInt(t(239))/2)+parseInt(t(248))/3*(-parseInt(t(241))/4)+parseInt(t(244))/5+-parseInt(t(236))/6*(parseInt(t(247))/7)+-parseInt(t(242))/8*(parseInt(t(243))/9)+-parseInt(t(238))/10+parseInt(t(237))/11*(parseInt(t(240))/12)==600322)break;n.push(n[e(189)]())}catch{n.push(n[e(189)]())}}();var TS=ka;function ka(e,t){var n=Pa();return(ka=function(r,s){return n[r-=373]})(e,t)}function Pa(){var e=C,t=[e(485),e(252),e(684),e(523),"column",e(337),e(515),e(275),e(159),e(366),e(332),e(312),e(197),e(265),e(321),e(601),e(752),e(603),"$2-$3",e(258),e(534),e(376),e(769),e(254),e(392),e(788),e(216),e(521),e(295),e(267),e(255),"preferred-size",e(629),"line",e(181),e(797),e(593),e(330),e(288),"compat",e(595),e(186),e(767),e(384),e(508),e(339),"prepend","push",e(503),e(496),e(472),e(276),'style[data-emotion^="',e(695),e(346),e(213),e(789),e(715),"head",e(567),"448GdQtAv",e(600),e(711),e(262),e(509),e(434),"flex-",e(626),e(318),e(389),e(560),e(468),e(463),e(431),e(781),"indexOf",e(618),e(207),e(640)];return(Pa=function(){return t})()}function Oa(){var e=C,t=[e(320),e(388),e(405),e(579),"35AIBzSb",e(534),e(505),e(411),"1274024Vuuviq","length",e(572),e(478)];return(Oa=function(){return t})()}function gp(e,t){var n=Oa();return(gp=function(r,s){return n[r-=484]})(e,t)}function yp(e,t){var n=La();return(yp=function(r,s){return n[r-=106]})(e,t)}function La(){var e=C,t=[e(526),e(340),e(765),e(703),e(487),e(489),e(146),e(639),e(729),e(664)];return(La=function(){return t})()}(function(){for(var e=C,t=ka,n=Pa();;)try{if(parseInt(t(444))/1+parseInt(t(411))/2*(-parseInt(t(397))/3)+-parseInt(t(442))/4*(-parseInt(t(410))/5)+parseInt(t(416))/6+parseInt(t(394))/7*(-parseInt(t(375))/8)+parseInt(t(409))/9*(parseInt(t(373))/10)+-parseInt(t(377))/11*(parseInt(t(426))/12)==928149)break;n.push(n.shift())}catch{n[e(795)](n[e(189)]())}})(),TS(387),function(){for(var e=C,t=gp,n=Oa();;)try{if(-parseInt(t(487))/1+parseInt(t(489))/2+-parseInt(t(495))/3*(parseInt(t(484))/4)+-parseInt(t(492))/5*(parseInt(t(493))/6)+parseInt(t(485))/7*(-parseInt(t(494))/8)+-parseInt(t(488))/9+parseInt(t(491))/10==772143)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=C,t=yp,n=La();;)try{if(-parseInt(t(106))/1*(-parseInt(t(114))/2)+parseInt(t(115))/3*(parseInt(t(107))/4)+parseInt(t(112))/5+parseInt(t(110))/6+parseInt(t(108))/7+parseInt(t(109))/8+parseInt(t(113))/9*(-parseInt(t(111))/10)==797311)break;n[e(795)](n[e(189)]())}catch{n.push(n[e(189)]())}}();var bp=Ma;function Na(){var e=C,t=["animationName","2256550Ipcodt",e(173),"compiler transform.",e(746),e(462),e(288),e(801),e(211),e(500),e(255),"number",e(791),"NO_COMPONENT_SELECTOR","1182279EAtwWa",e(682),e(321),"1304688UcogLI",e(247),"string",e(569),"styles","45ISzOCs",e(246),e(777),e(167),e(672)];return(Na=function(){return t})()}(function(){for(var e=C,t=Ma,n=Na();;)try{if(-parseInt(t(249))/1+-parseInt(t(242))/2+parseInt(t(250))/3+parseInt(t(258))/4+-parseInt(t(248))/5*(parseInt(t(256))/6)+-parseInt(t(255))/7+parseInt(t(261))/8*(parseInt(t(236))/9)==662021)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();function Ma(e,t){var n=Na();return(Ma=function(r,s){return n[r-=236]})(e,t)}function wp(e,t){var n=Da();return(wp=function(r,s){return n[r-=142]})(e,t)}function Da(){var e=C,t=[e(368),e(305),"registered",e(262),"styles",e(255),e(374),e(629),e(633),e(615),e(663),e(753),e(275),e(802),"push",e(593),e(321),e(491),e(258),e(666)];return(Da=function(){return t})()}function Fa(){var e=C,t=[e(578),e(321),e(258),e(629),e(255),e(449),e(250),e(333),e(502),"bind",e(573),"281145OZnPDr",e(547),"3uNmnOL",e(159),e(186),e(291),e(275),e(476),e(593),e(365),e(173),e(515),e(753),"6198910frrjDN",e(413),e(300),"animation-",e(195),e(599),"object"];return(Fa=function(){return t})()}function vp(e,t){var n=Fa();return(vp=function(r,s){return n[r-=250]})(e,t)}Object[Aa(245)](null),bp(246),C(408),bp(244),function(){for(var e=C,t=wp,n=Da();;)try{if(-parseInt(t(146))/1+-parseInt(t(155))/2+-parseInt(t(144))/3+-parseInt(t(157))/4+parseInt(t(156))/5*(parseInt(t(149))/6)+parseInt(t(153))/7*(parseInt(t(142))/8)+parseInt(t(145))/9==509549)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=C,t=vp,n=Fa();;)try{if(parseInt(t(274))/1*(-parseInt(t(253))/2)+-parseInt(t(258))/3*(-parseInt(t(270))/4)+parseInt(t(256))/5*(parseInt(t(273))/6)+parseInt(t(250))/7+-parseInt(t(276))/8*(parseInt(t(261))/9)+parseInt(t(269))/10*(parseInt(t(263))/11)+-parseInt(t(257))/12==769621)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}();const J=$a;function Ba(){var e=C;const t=[e(191),e(751),"toCamelCase",e(446),e(325),e(210),"toPascalCase",e(284),e(154),e(726),e(288),e(617),e(768),e(343),e(394),"4804168lIEQdb",e(410),e(539),e(430),e(678),e(353),"_lowerCase",e(596),e(733),e(518),"charAt",e(687),e(527),e(262),"42wLrOPC",e(285),"toLowerCase",e(470),e(514)];return(Ba=function(){return t})()}function _p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(function(){var e=C;const t=$a,n=Ba();for(;;)try{if(-parseInt(t(224))/1+parseInt(t(230))/2+-parseInt(t(242))/3*(parseInt(t(238))/4)+-parseInt(t(236))/5+-parseInt(t(228))/6*(-parseInt(t(252))/7)+-parseInt(t(240))/8+parseInt(t(227))/9==959733)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}})();class Ua{static[J(241)](t,n=!1){const r=J;return n?this[r(239)](t)[r(253)](" ")[r(241)]():t[r(241)]()}static[C(429)](t,n=!1){var r=C;const s=J;return n?this[s(244)](t)[s(233)](/ /g," "):t[r(429)]()}static[C(741)](t){const n=J;return this[n(249)](n(241))(t)}static[J(234)](t){const n=J;return this[n(249)](n(220))(t)}static[J(225)](t){var n=C;const r=J;return this[r(239)](t)[n(527)]((s,i)=>i===0?s[n(429)]():this[r(222)](s[r(220)]()))[r(253)]("")}static[J(229)](t){var n=C;const r=J;return this._startCase(this[r(225)](t))[n(288)](/ /g,"")}static[J(243)](t){const n=J;return this[n(239)](t)[n(253)]("-")}static[C(761)](t){const n=J;return this[C(410)](t)[n(253)]("_")}static[J(245)](t){return this[J(244)](t).replace(/ /g,".")}static[J(221)](t){const n=J;return this[n(222)](this[n(244)](t))}static toSlugCase(t){const n=J;return this[n(244)](t)[n(233)](/ /g,"-")}static[J(237)](t){return this[J(239)](t)}static[J(239)](t){const n=J;return t[n(233)](/([a-z])([A-Z])/g,n(231))[n(233)](/[\s_-]+/g," ")[n(220)]()[n(247)](/[a-zà-öø-ÿ0-9]+/gi)||[]}static[C(538)](t){var n=C;const r=J;return this[r(239)](t)[n(527)](s=>s[r(220)]())[r(253)](" ")}static[J(222)](t){const n=J;return t[n(248)](0)[n(241)]()+t[n(246)](1)[n(220)]()}static _startCase(t){const n=J;return this[C(410)](t)[n(250)](r=>this[n(222)](r))[n(253)](" ")}}function $a(e,t){const n=Ba();return($a=function(r,s){return n[r-=220]})(e,t)}_p(Ua,C(748),(e,t=!1,{splitChar:n=" ",joinChar:r=" ",to:s=J(223)}={splitChar:" ",joinChar:" ",to:J(223)})=>{const i=J,o=e!==void 0?e[i(226)]():"";return o?t?Ua[i(235)](o):o[i(251)](n).map(a=>{var c=je;const l=i;return s===l(232)?a[l(248)](0)[c(571)]()+a[l(246)](1)[c(429)]():a[l(248)](0).toUpperCase()+a[l(246)](1)[l(220)]()})[i(253)](r):""}),_p(Ua,J(249),e=>t=>{var n=C;const r=J;if(!t)return"";const s=t[r(246)](0,1),i=t[r(246)](1);return s[e]!==void 0&&n(672)==typeof s[e]?s[e]()+i:t});const AS=Va;function Va(e,t){const n=za();return(Va=function(r,s){return n[r-=328]})(e,t)}function je(e,t){var n=Bo();return(je=function(r,s){return n[r-=141]})(e,t)}function za(){var e=C;const t=[e(460),e(638),"pascal",e(620),e(152),e(353),"object",e(796),e(719),e(761),e(536),e(222),e(758),e(356),e(747),e(704),e(527),e(194),e(681),e(561)];return(za=function(){return t})()}(function(){var e=C;const t=Va,n=za();for(;;)try{if(parseInt(t(337))/1*(parseInt(t(342))/2)+-parseInt(t(329))/3+parseInt(t(346))/4+parseInt(t(345))/5+-parseInt(t(341))/6+-parseInt(t(333))/7*(-parseInt(t(339))/8)+-parseInt(t(330))/9==892829)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),C(681),AS(332);function Ha(){var e=C;const t=[e(314),e(249),e(764),e(792),"7920680CrCzXO",e(776),"kebab",e(532),e(400),"1889976zPDrSf",e(681),e(165),"574270pCgwUB"];return(Ha=function(){return t})()}function Sp(e,t){const n=Ha();return(Sp=function(r,s){return n[r-=199]})(e,t)}function Ep(e,t){const n=ja();return(Ep=function(r,s){return n[r-=310]})(e,t)}function ja(){var e=C;const t=["strategy","5941134AnJjDR",e(435),"REQUIRED",e(403),e(298),e(507),e(277),e(304),e(185),e(217),"168yAApGZ","210166RwrXjV",e(288),"replacer",e(660),e(341),e(431),e(422),e(497),"parameters.search"];return(ja=function(){return t})()}function Cp(e,t){const n=Wa();return(Cp=function(r,s){return n[r-=245]})(e,t)}function Wa(){var e=C;const t=[e(757),e(288),"749930AnkLQM",e(345),e(475),e(244),e(395),e(316),"77UAdnad",e(161),e(245),e(446),e(286),e(725)];return(Wa=function(){return t})()}function qa(){var e=C;const t=[e(235),e(583),e(580),e(224),e(355),e(787),e(653),e(256),e(612),"90faVQnR",e(486)];return(qa=function(){return t})()}function xp(e,t){const n=qa();return(xp=function(r,s){return n[r-=199]})(e,t)}function Ga(){var e=C;const t=["location",e(728),e(574),"2xpcQKU","push","768628jYCGxS",e(756),"24FLVsmp",e(752),e(293),"978200aOzrna",e(488),"63KlvtSY",e(277),e(553),e(231),e(679),e(336),e(507),e(422),e(527)];return(Ga=function(){return t})()}function Ip(e,t){const n=Ga();return(Ip=function(r,s){return n[r-=482]})(e,t)}function Ka(e,t){const n=Ya();return(Ka=function(r,s){return n[r-=252]})(e,t)}function Ya(){var e=C;const t=[e(759),e(605),e(261),e(585),e(790),e(383),e(637),"104DOhoZO","preconnect",e(215),e(175),"5jiSoDi",e(658)];return(Ya=function(){return t})()}(function(){var e=C;const t=Sp,n=Ha();for(;;)try{if(parseInt(t(206))/1*(-parseInt(t(208))/2)+-parseInt(t(199))/3*(parseInt(t(210))/4)+parseInt(t(204))/5+-parseInt(t(201))/6+-parseInt(t(200))/7+parseInt(t(209))/8+parseInt(t(205))/9==606311)break;n[e(795)](n[e(189)]())}catch{n.push(n[e(189)]())}})(),function(){var e=C;const t=Ep,n=ja();for(;;)try{if(parseInt(t(317))/1*(-parseInt(t(321))/2)+-parseInt(t(314))/3*(parseInt(t(319))/4)+parseInt(t(325))/5*(-parseInt(t(310))/6)+-parseInt(t(313))/7*(-parseInt(t(320))/8)+-parseInt(t(324))/9+parseInt(t(328))/10+parseInt(t(311))/11==808336)break;n.push(n[e(189)]())}catch{n.push(n[e(189)]())}}(),function(){var e=C;const t=Cp,n=Wa();for(;;)try{if(-parseInt(t(252))/1+-parseInt(t(249))/2*(-parseInt(t(257))/3)+parseInt(t(254))/4+-parseInt(t(253))/5*(-parseInt(t(258))/6)+parseInt(t(246))/7+-parseInt(t(245))/8*(parseInt(t(250))/9)+-parseInt(t(256))/10*(parseInt(t(248))/11)==300232)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){var e=C;const t=xp,n=qa();for(;;)try{if(-parseInt(t(200))/1*(parseInt(t(203))/2)+parseInt(t(209))/3+parseInt(t(202))/4+-parseInt(t(206))/5*(parseInt(t(201))/6)+-parseInt(t(199))/7*(parseInt(t(208))/8)+parseInt(t(207))/9*(parseInt(t(205))/10)+parseInt(t(204))/11==198596)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){var e=C;const t=Ip,n=Ga();for(;;)try{if(parseInt(t(488))/1+-parseInt(t(497))/2*(parseInt(t(496))/3)+-parseInt(t(501))/4*(parseInt(t(487))/5)+-parseInt(t(482))/6+parseInt(t(499))/7+-parseInt(t(495))/8+-parseInt(t(485))/9*(-parseInt(t(483))/10)==155517)break;n[e(795)](n.shift())}catch{n[e(795)](n.shift())}}(),function(){var e=C;const t=Ka,n=Ya();for(;;)try{if(parseInt(t(254))/1+parseInt(t(257))/2+parseInt(t(260))/3+-parseInt(t(252))/4*(-parseInt(t(253))/5)+-parseInt(t(258))/6+parseInt(t(256))/7+parseInt(t(262))/8*(-parseInt(t(261))/9)==402722)break;n[e(795)](n.shift())}catch{n[e(795)](n[e(189)]())}}(),function(){var e=C;const t=Za,n=Ja();for(;;)try{if(parseInt(t(397))/1*(-parseInt(t(389))/2)+-parseInt(t(394))/3*(parseInt(t(383))/4)+parseInt(t(391))/5+-parseInt(t(384))/6*(-parseInt(t(388))/7)+parseInt(t(382))/8*(-parseInt(t(393))/9)+parseInt(t(386))/10+parseInt(t(392))/11==453357)break;n[e(795)](n.shift())}catch{n[e(795)](n[e(189)]())}}();function Za(e,t){const n=Ja();return(Za=function(r,s){return n[r-=382]})(e,t)}function Ja(){var e=C;const t=[e(581),e(589),e(702),e(759),"api","9885ktAjwX","515144gJwABd",e(461),e(352),e(455),e(709),"environment",e(782),e(360),e(790),e(609)];return(Ja=function(){return t})()}function Xa(e,t){const n=Qa();return(Xa=function(r,s){return n[r-=188]})(e,t)}function Qa(){var e=C;const t=[e(513),e(744),e(230),e(151),e(354),e(170),e(638),"42ZfbLkm",e(529),e(527),"length",e(656),e(793),e(328),e(479),e(737),"84AZtHRP"];return(Qa=function(){return t})()}(function(){var e=C;const t=Xa,n=Qa();for(;;)try{if(parseInt(t(200))/1*(-parseInt(t(191))/2)+parseInt(t(195))/3*(-parseInt(t(193))/4)+-parseInt(t(196))/5*(parseInt(t(192))/6)+-parseInt(t(188))/7+-parseInt(t(203))/8+-parseInt(t(190))/9*(parseInt(t(189))/10)+parseInt(t(202))/11*(parseInt(t(204))/12)==863321)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();const ni=ec;function ec(e,t){const n=tc();return(ec=function(r,s){return n[r-=135]})(e,t)}(function(){var e=C;const t=ec,n=tc();for(;;)try{if(-parseInt(t(139))/1*(parseInt(t(147))/2)+-parseInt(t(142))/3+-parseInt(t(140))/4+-parseInt(t(143))/5*(-parseInt(t(148))/6)+parseInt(t(137))/7*(parseInt(t(141))/8)+-parseInt(t(138))/9+-parseInt(t(136))/10*(-parseInt(t(145))/11)==902131)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();const RS={environment:e=>typeof e===ni(146)&&/^(sandbox|production)$/[C(690)](e),version:e=>e===ni(144)||typeof e===ni(146)&&/^v\d{1,2}(\.\d{0,3}){0,3}$/[ni(135)](e)},kS=e=>{var t;((n,r)=>{var s=C;const i=Xa;if(n&&r){const o=Object[s(359)](n)[s(422)](a=>!r[i(194)](a)||r[a]===void 0||!n[a](r[a]))[i(197)](a=>new Zs(Je[i(201)],a,!0));if(o[i(198)]){const[a]=o;throw a}}})(RS,e),(t=e)&&(ra=Object.assign({},ra,t))};function tc(){var e=C;const t=[e(591),e(576),e(611),"4202RbmDMY",e(445),e(727),e(517),e(690),e(624),e(292),e(717),e(299),"1611912xHkDlR",e(452)];return(tc=function(){return t})()}function nc(){var e=C;const t=[e(379),e(380),e(686),e(522),"248VddyCN","1828569LfJoFC","11940faSemP",e(661),e(482),"9YYlhsV",e(457),e(651),e(375),e(255),e(641),e(160)];return(nc=function(){return t})()}(function(){var e=C;const t=rc,n=nc();for(;;)try{if(-parseInt(t(271))/1*(-parseInt(t(278))/2)+-parseInt(t(275))/3+-parseInt(t(274))/4*(-parseInt(t(266))/5)+-parseInt(t(280))/6*(-parseInt(t(272))/7)+parseInt(t(277))/8*(-parseInt(t(279))/9)+parseInt(t(269))/10*(-parseInt(t(270))/11)+-parseInt(t(276))/12*(-parseInt(t(268))/13)==356241)break;n[e(795)](n.shift())}catch{n[e(795)](n.shift())}})();function rc(e,t){const n=nc();return(rc=function(r,s){return n[r-=266]})(e,t)}function sc(){var e=C;const t=[e(422),e(530),e(338),e(202),"push",e(183),e(740),e(763),"137247nsOmnY",e(544),e(554),e(628),e(297),e(555)];return(sc=function(){return t})()}function Tp(e,t){const n=sc();return(Tp=function(r,s){return n[r-=169]})(e,t)}function Ap(e,t){var n=ic();return(Ap=function(r,s){return n[r-=337]})(e,t)}function ic(){var e=C,t=[e(466),e(762),e(255),e(548),e(391),e(557),e(277),e(706),"2051dwZdDh",e(199),e(503),e(342),e(422),"182295YeOYne",e(382),e(575),e(520),e(629),"apply","40247440IrIkgT",e(672),"push","getOwnPropertyDescriptors","indexOf",e(326),e(359)];return(ic=function(){return t})()}function oc(){var e=C,t=["16oYUCaR",e(495),e(643),e(220),"944418PqxCQU","808467xfwLHr",e(283),"10QxKTBX",e(153),e(459)];return(oc=function(){return t})()}function Rp(e,t){var n=oc();return(Rp=function(r,s){return n[r-=171]})(e,t)}function ac(){var e=["INVALID","UNHANDLED","HTTP","UNAUTHORIZED","13163230kGdpsc","856juyAkB","TIMEOUT","350256uPlzjN","5054ruXNQI","2450577zCNjjI","2339148NeQscF","REQUEST_TIMEOUT","REQUIRED","BAD_REQUEST","60389xcocgx","11tPlygx","NOT_FOUND","301vJXIvb","UNABLE_TO_FIND","NOT_LOADED","6497910YprBBF","40ngIbUX","UNDEFINED"];return(ac=function(){return e})()}var ri,zt,et,kp,We,Ht,Pp,Op,si,Lp,cc,ii;function oi(e,t){var n=ac();return(oi=function(r,s){return n[r-=335]})(e,t)}function lc(e,t){var n=uc();return(lc=function(r,s){return n[r-=341]})(e,t)}function uc(){var e=["CopyButton","copy-button","reveal","2917173skLMeQ","1820964OqZzNt","510315wlwfez","441522swQxzn","3761920KVvMuv","8178336dFaxYN","Reveal","5qbCaQQ","4044603UhdGqT"];return(uc=function(){return e})()}function dc(e,t){var n=fc();return(dc=function(r,s){return n[r-=235]})(e,t)}function fc(){var e=["production","33vyRaSe","238515PNqZTX","2664777SEHPlq","200dnfHzp","4RQDQWC","14080653FGOkOA","sandbox","1893258distuZ","SANDBOX","1705123ZWIxjP","171829ajvFNO","7942010cWpsFH","84YuXwGF"];return(fc=function(){return e})()}function pc(){var e=["270103qoQgEd","12itkIzk","14nsIwws","9iCTJgp","74736ETbfqk","44358azBwEp","10oyDFLF","4394507nLBhNm","2eigAEs","2127030LnauBX","11vgTOSS","164277JtqPnT","10312LfzXXQ"];return(pc=function(){return e})()}function Np(e,t){var n=pc();return(Np=function(r,s){return n[r-=366]})(e,t)}function ai(e,t){const n=hc();return(ai=function(r,s){return n[r-=152]})(e,t)}(function(){var e=C;const t=Tp,n=sc();for(;;)try{if(-parseInt(t(172))/1*(-parseInt(t(174))/2)+parseInt(t(179))/3+parseInt(t(177))/4*(-parseInt(t(173))/5)+-parseInt(t(182))/6*(-parseInt(t(181))/7)+parseInt(t(169))/8+-parseInt(t(170))/9+parseInt(t(178))/10*(-parseInt(t(180))/11)==757080)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),function(){for(var e=C,t=Ap,n=ic();;)try{if(parseInt(t(355))/1+parseInt(t(342))/2*(parseInt(t(357))/3)+parseInt(t(338))/4+-parseInt(t(362))/5+parseInt(t(340))/6*(parseInt(t(339))/7)+parseInt(t(358))/8*(parseInt(t(344))/9)+-parseInt(t(350))/10==959569)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=C,t=Rp,n=oc();;)try{if(-parseInt(t(172))/1+-parseInt(t(175))/2*(-parseInt(t(173))/3)+parseInt(t(174))/4+-parseInt(t(177))/5+-parseInt(t(171))/6*(-parseInt(t(180))/7)+-parseInt(t(178))/8*(parseInt(t(179))/9)+parseInt(t(176))/10==940869)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=oi,t=ac();;)try{if(parseInt(e(336))/1*(-parseInt(e(350))/2)+-parseInt(e(351))/3+parseInt(e(352))/4+parseInt(e(340))/5*(parseInt(e(349))/6)+parseInt(e(356))/7*(-parseInt(e(347))/8)+parseInt(e(339))/9+-parseInt(e(346))/10*(-parseInt(e(357))/11)===589533)break;t.push(t.shift())}catch{t.push(t.shift())}}(),(zt=ri||(ri={}))[(et=oi)(354)]="REQUIRED",zt[et(341)]=et(341),zt[et(337)]="UNABLE_TO_FIND",zt.NOT_LOADED=et(338),zt[et(342)]=et(342),zt.HTTP=et(344),zt[et(348)]=et(348),zt[et(343)]=et(343),We=kp||(kp={}),Ht=oi,We[We.OK=200]="OK",We[We[Ht(355)]=400]=Ht(355),We[We[Ht(335)]=404]=Ht(335),We[We.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",We[We[Ht(353)]=408]=Ht(353),We[We.UNAUTHORIZED=401]=Ht(345),function(){for(var e=lc,t=uc();;)try{if(parseInt(e(345))/1+-parseInt(e(344))/2+-parseInt(e(351))/3+parseInt(e(347))/4+-parseInt(e(350))/5*(-parseInt(e(346))/6)+parseInt(e(343))/7+parseInt(e(348))/8===704730)break;t.push(t.shift())}catch{t.push(t.shift())}}(),(Op=Pp||(Pp={}))[(si=lc)(349)]=si(342),Op[si(352)]=si(341),function(){for(var e=dc,t=fc();;)try{if(-parseInt(e(236))/1+-parseInt(e(248))/2+parseInt(e(243))/3*(parseInt(e(245))/4)+parseInt(e(242))/5*(-parseInt(e(239))/6)+parseInt(e(237))/7*(-parseInt(e(244))/8)+parseInt(e(246))/9+-parseInt(e(238))/10*(-parseInt(e(241))/11)===902110)break;t.push(t.shift())}catch{t.push(t.shift())}}(),cc=Lp||(Lp={}),ii=dc,cc.PRODUCTION=ii(240),cc[ii(235)]=ii(247),function(){for(var e=Np,t=pc();;)try{if(-parseInt(e(368))/1*(-parseInt(e(376))/2)+-parseInt(e(371))/3*(parseInt(e(367))/4)+parseInt(e(374))/5*(parseInt(e(373))/6)+parseInt(e(370))/7*(parseInt(e(372))/8)+-parseInt(e(366))/9+-parseInt(e(377))/10*(-parseInt(e(378))/11)+-parseInt(e(369))/12*(parseInt(e(375))/13)===152250)break;t.push(t.shift())}catch{t.push(t.shift())}}(),function(){const e=ai,t=hc();for(;;)try{if(-parseInt(e(166))/1*(parseInt(e(155))/2)+parseInt(e(157))/3+parseInt(e(164))/4+-parseInt(e(159))/5+parseInt(e(158))/6*(parseInt(e(168))/7)+parseInt(e(165))/8*(-parseInt(e(152))/9)+parseInt(e(154))/10===424938)break;t.push(t.shift())}catch{t.push(t.shift())}}();const PS=()=>new Promise((e,t)=>{const n=ai;if(((r=Qs[C(172)])=>{const s=rc;try{return document.querySelectorAll(s(273)+r+s(281))[s(267)]>0}catch{return!1}})()&&window[n(153)])e(window[n(153)]);else if(!window[n(153)]){const r=(()=>{const s=ai,i=document.createElement(s(161));return i.src=Qs.getFullCdn(s(156),s(163)),up(i),i})();return r.onload=()=>{const s=n;window[s(153)]?e(window.APTokenizer):t(new Zs(ri[s(167)],s(160),!0))},void(r[n(162)]=()=>t(new Zs(ri[n(169)],"SCRIPT",!0)))}});function hc(){const e=["31456JYMHzf","928wCafiN","156wRIJHE","UNDEFINED","2317DECIua","NOT_LOADED","62802oYTinX","APTokenizer","20534150rAmYXS","8482vGJDwh","tokenizer-sdk","793641JyeeYi","2676hrMTeo","2887350YWJLUu","Astropay Web Tokenizer","script","onerror","astropay-tokenizer.min.js"];return(hc=function(){return e})()}var mc=Rt;function Mp(e,t,n,r,s,i,o){var a=Rt;try{var c=e[i](o),l=c[a(293)]}catch(u){return void n(u)}c[a(304)]?t(l):Promise.resolve(l)[a(303)](r,s)}(function(){for(var e=Rt,t=gc();;)try{if(-parseInt(e(297))/1+-parseInt(e(301))/2*(parseInt(e(302))/3)+parseInt(e(292))/4+parseInt(e(305))/5+-parseInt(e(300))/6+parseInt(e(295))/7*(parseInt(e(294))/8)+parseInt(e(306))/9*(parseInt(e(298))/10)===667472)break;t.push(t.shift())}catch{t.push(t.shift())}})(),Promise[mc(308)]()[mc(303)](()=>{var e=mc;typeof window!==e(299)&&!window[e(291)]&&((()=>{const t=Za;ti(t(385),Kn[t(395)][t(390)][un()[t(387)]]),ti(t(385),Kn[t(395)][t(396)][un()[t(387)]])})(),(()=>{var t=C;const n=Ka;ti(n(263),Kn[n(255)][n(259)][un()[n(264)]]),ti(n(263),Kn[n(255)][t(363)][un()[n(264)]])})())});const OS=(Dp=function*(e){kS(e);const t={initRevealer:(n=e)=>{var r,s=Rt;return(r=window[s(291)])===null||r===void 0?void 0:r[s(307)](n)},initCollector:(n=e)=>{var r,s=Rt;return(r=window[s(291)])===null||r===void 0?void 0:r[s(289)](n)}};return new Promise((n,r)=>{var s=Rt;typeof window!==s(299)?window[s(291)]?n(t):PS()[s(303)](()=>{n(t)})[s(296)](i=>{r(i)}):r(s(290))})},Fp=function(){var e=this,t=arguments;return new Promise(function(n,r){var s=Dp[Rt(309)](e,t);function i(a){Mp(s,n,r,i,o,"next",a)}function o(a){Mp(s,n,r,i,o,"throw",a)}i(void 0)})},function(e){return Fp[Rt(309)](this,arguments)});var Dp,Fp;function Rt(e,t){var n=gc();return(Rt=function(r,s){return n[r-=289]})(e,t)}function gc(){var e=["APTokenizer","4582976tSGCgi","value","373232tEwSlg","63KVvFap","catch","1156122MmdZsQ","142260eHWUOj","undefined","7303908VsgDsd","6URBYWa","276963Gnzkoo","then","done","3355345JCZnlM","684orEnOE","initRevealer","resolve","apply","initCollector","new SDKError(ErrorType.UNDEFINED, 'window', true)"];return(gc=function(){return e})()}const LS="v1.1.3";class NS{constructor(t,n){v(this,"collector");v(this,"form");v(this,"fields");v(this,"callback");this.fields=t,this.callback=n}async init(t){const n="production";try{const r=await OS({environment:n,version:LS});this.collector=r.initCollector(),this.form=this.collector.createForm(s=>{if(this.callback){const i=Object.entries(s).reduce((o,[a,c])=>(o[a]={isValid:c.isValid||!c.isDirty&&!c.isTouched,isTouched:c.isTouched||c.isDirty},o),{});this.callback(i)}}),this.fields.forEach(({field:s,...i})=>{this.form.field(s,i)}),t==null||t()}catch(r){throw console.error(r),r}}async tokenizeCard(t,n,r){try{const{accessToken:s}=await Gs.getPciToken({userId:t});return this.form.accessToken=s,await new Promise((i,o)=>{this.form.submit(a=>{const c={paymentData:{cardNumberTkn:a.card_number.value,cvcTkn:a.card_cvc.value},visualData:{expirationDate:a.card_exp.value,firstSixDigits:a.card_number.details.bin.substring(0,6),holderName:a.card_holder.value,lastFourDigits:a.card_number.details.lastFour,type:a.card_number.details.brand||"unknown"}};n(c),i()},()=>{r(),o(new Error("generic_error"))})})}catch{return r(),Promise.reject(new Error("generic_error"))}}unmount(){var t;(t=this.form)==null||t.tearDown()}}var Bp=(e=>(e.CREATING="CREATING",e.PENDING="PENDING",e.APPROVED="APPROVED",e.EXPIRED="EXPIRED",e.FAILED="FAILED",e))(Bp||{});const ci={fontSize:"16px",lineHeight:"24px"},MS=(e,{error:t=!1,disabled:n=!1})=>W`
|
|
521
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=an(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&qs.assertOptions(r,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),s!=null&&(_.isFunction(s)?n.paramsSerializer={serialize:s}:qs.assertOptions(s,{encode:bt.function,serialize:bt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),qs.assertOptions(n,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&_.merge(i.common,i[n.method]);i&&_.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Ue.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!c){const p=[Xf.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=a.length;let h=n;for(d=0;d<f;){const p=a[d++],m=a[d++];try{h=p(h)}catch(g){m.call(this,g);break}}try{u=Xf.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=an(this.defaults,t);const n=Hf(t.baseURL,t.url,t.allowAbsoluteUrls);return Nf(n,t.params,t.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(t){cn.prototype[t]=function(n,r){return this.request(an(r||{},{method:t,url:n,data:(r||{}).data}))}}),_.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,a){return this.request(an(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}cn.prototype[t]=n(),cn.prototype[t+"Form"]=n(!0)});let vS=class Hh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new qn(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Hh(function(s){t=s}),cancel:t}}};function _S(e){return function(n){return e.apply(null,n)}}function SS(e){return _.isObject(e)&&e.isAxiosError===!0}const Mo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mo).forEach(([e,t])=>{Mo[t]=e});function tp(e){const t=new cn(e),n=wf(cn.prototype.request,t);return _.extend(n,cn.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return tp(an(e,s))},n}const ue=tp(Or);ue.Axios=cn,ue.CanceledError=qn,ue.CancelToken=vS,ue.isCancel=Uf,ue.VERSION=Qf,ue.toFormData=$s,ue.AxiosError=U,ue.Cancel=ue.CanceledError,ue.all=function(t){return Promise.all(t)},ue.spread=_S,ue.isAxiosError=SS,ue.mergeConfig=an,ue.AxiosHeaders=Ue,ue.formToJSON=e=>Ff(_.isHTMLForm(e)?new FormData(e):e),ue.getAdapter=Jf.getAdapter,ue.HttpStatusCode=Mo,ue.default=ue;const{Axios:gE,AxiosError:yE,CanceledError:bE,isCancel:wE,CancelToken:vE,VERSION:_E,all:SE,Cancel:EE,isAxiosError:CE,spread:xE,toFormData:IE,AxiosHeaders:TE,HttpStatusCode:AE,formToJSON:RE,getAdapter:kE,mergeConfig:PE}=ue,Nr=(e,t)=>e,Q=class Q{static getAxiosInstance(){if(!this.axiosInstance)throw new Error("AstroPay Payments Library: Not initialized.");return this.axiosInstance}};v(Q,"axiosInstance"),v(Q,"config"),v(Q,"init",t=>{Q.config=t,Q.axiosInstance=ue.create({baseURL:t.baseURL,timeout:t.timeout??5e3,withCredentials:!0,headers:{"Accept-Language":H.getCurrent(),...t.headers}}),Q.setupInterceptors()}),v(Q,"GET",async({url:t,params:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s,...n}};return await Q.getAxiosInstance().get(i,o)}),v(Q,"POST",async({url:t,data:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s},headers:{"Content-Type":"text/plain"}};return await Q.getAxiosInstance().post(i,n,o)}),v(Q,"PUT",async({url:t,data:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s}};return await Q.getAxiosInstance().put(i,n,o)}),v(Q,"PATCH",async({url:t,data:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s},headers:{"Content-Type":"text/plain"}};return await Q.getAxiosInstance().patch(i,n,o)}),v(Q,"DELETE",async({url:t,params:n={},mock:r=!1,useQueryParams:s=!0})=>{const i=Nr(t,r),o={params:{useQueryParams:s,...n}};return await Q.getAxiosInstance().delete(i,o)}),v(Q,"setupInterceptors",()=>{Q.axiosInstance.interceptors.request.use(t=>{const{useQueryParams:n,...r}=t.params||{};return n?t.params={...r,data:Q.getEncodeParams()}:t.params=r,t.data&&(t.data=Jc(t.data,"camelCase-to-snake_case")),t}),Q.axiosInstance.interceptors.response.use(t=>Q.handleResponse(t),t=>Q.handleError(t))}),v(Q,"handleResponse",t=>{const n=t.status===202,r=Jc(t.data,"snake_case-to-camelCase");return n?{...r,statusCode:t.status}:r}),v(Q,"handleError",t=>{var r,s,i,o,a,c,l,u;const n={error:((s=(r=t.response)==null?void 0:r.data)==null?void 0:s.error)||"UNKNOWN_ERROR",internalTerm:(o=(i=t.response)==null?void 0:i.data)==null?void 0:o.internalTerm,message:((c=(a=t.response)==null?void 0:a.data)==null?void 0:c.message)||H.translate("generic_error"),description:(u=(l=t.response)==null?void 0:l.data)==null?void 0:u.description};return Promise.reject(n)}),v(Q,"getEncodeParams",()=>{const t={app_name:Q.config.appName,app_id:ot.getToken(),environment:st.getEnvironment(),platform:vl(),version:"1.0.0"};return Zc(t)});let ct=Q;const ln={createPayment:"/v1/web/payments",paymentDetails:"/v1/web/payments/:paymentExternalId/detail",identifyUser:"/v1/web/payments/:paymentExternalId/identify-user",paymentStatus:"/v1/web/payments/:paymentExternalId/status",paymentMethodCreation:"/v1/web/payments/:paymentExternalId/pay",paymentCardPay:"/v1/web/payments/:paymentExternalId/card/pay",pciToken:"v1/web/pci/token"};class Gs{}v(Gs,"postPaymentCardPay",async t=>{try{return await ct.POST({url:ar(ln.paymentCardPay,{paymentExternalId:t.paymentExternalId}),data:t})}catch(n){return Se.trackError(n),Promise.reject(n)}}),v(Gs,"getPciToken",async t=>{try{return await ct.POST({url:ln.pciToken,data:t})}catch(n){return Se.trackError(n),Promise.reject(n)}});var C=je;function Do(){var e=je;const t=["clear","127830LZHlSi",e(795),e(743),e(794),e(649),e(511),"1048780OzWlkN",e(668),e(412),e(465),e(180),e(520),e(373),e(419),e(562),e(422),"off"];return(Do=function(){return t})()}(function(){for(var e=je,t=Bo();;)try{if(-parseInt(e(329))/1*(parseInt(e(274))/2)+-parseInt(e(369))/3*(-parseInt(e(367))/4)+-parseInt(e(233))/5+parseInt(e(145))/6*(-parseInt(e(701))/7)+-parseInt(e(655))/8*(-parseInt(e(270))/9)+parseInt(e(315))/10*(parseInt(e(142))/11)+parseInt(e(685))/12===588751)break;t.push(t.shift())}catch{t.push(t.shift())}})();const Fo=Uo;function Bo(){var e=["3448vNCtZZ","761436JoNrAO","5310140VtlWwy","Request timeout","7672278JDWNZO","90ZjyTbp","3104038VhHmhJ","341079ldogSu","3114441jTKeeA","key","PRODUCTION","getAttribute","toDotCase","send","102532iujTOj","757371vntIDP","rule","28497zqLGhH","1965484iDLxVf","justify","10QefxGX","5066250nuHGFb","append","1380400kMJPdd","tags","3598075UDNdui","rel","latest","5679575iNTExO","@font-feature-values","700156cwVhpM","13090752DcUgRT","count","lowerFirst","box-pack:$3","@keyframes","6990495zFYjlD","timeout","SANDBOX","1764180DwriBQ","28900hQasRN","get","$2box$3","592uldMpH","1906140GGDNCn","forEach","6lcQlGI","timeZone","330066EfbpyJ","2180136rfoyVo","2548490MycJlj","3489ZHTUlC","includes","902079TZNeVj","hasOwnProperty","20cFIzva","flex-line-pack","5421zZCtjq","anim","1685971anZxDF","1118807BrroiT","633515GvGIbN","href","612712APocYB","-ms-","34347599FblyIU","5oIWUit",'/"]',"styleSheets","1149940kbRkDq","18emqyKv","216768ATlgsw","REQUIRED","1538910aqOPES","167058fDTlal","1802382UuEKog","11928996WPgChJ","297544AzCjab","7cCQubY","210052cCRFdo","15365691CaBpSv","prepend","1837320JmVWKN","apply","5488040tLgchU","6404728IJjHNF","cssRules","[HTTP]: ","function","538328lGaoiz","3WyhRFj","set","document.head or document.body","18KOgRUC","3PpNGVC","frames","request","formatKeys","2515230SGPlYS","1557YOosgA","container","4144596Ukwkkq","14mcAgvY","_createCaseFirst","80179OoRuKl","NOT_FOUND","test","1063965TOYbKD","112560WXZvtM","5855416GyXitv","authorization","insertionPoint","ctx","3122830eGkjjc","173392QMdDYZ","197776ZnKCeZ","comm","42CEhiUc","3UDJFFS","8znKpbY","1rkGFTj","1103656RUOYui","5297088ciYuDR","CopyButton","random","5589390vSVLAu","done","969632YGVaMk","flex-pack:$3","setPrototypeOf","negative","$2$3","8766CUlXUX","6555474dHVLiB","16hoClBR","10399347ouOdzC","1731331adTcvK","6011170PFMfeO","box-","2QsMDbx","396880hxDmUW","5lLsGOe","lower","288762yBOcUy","927680PXUBpa","5272970jsKcdl","210wvAPTz","4390984qBtQNZ","1042915vBnDcJ","slice","18146574kLGOdt","Content-Type","@counter-style","1635840LijluJ","assign","then","148iTkCvR","upperFirst","4586523dESxoU","102UdDlbM","13480IirCBl","application/json","-$&","snake","startCase","3782506eozEyq","[UNHANDLED]: ","1586289ZbsznC","parent","compat","style[data-emotion]:not([data-s])","41346sAgKHc","origin","1542472UUshgd","toPascalCase","domians","187957vMwqit","toSnakeCase","568pAcJOy","5590kjPEGP","@font-face","34057TCsfxk","9621207ZSMPqN","data-emotion","_startCase","print-","@media","link",":read-write","NOT_LOADED","9356KfJoDB","animationName","4mPQIOh","animation","2696336QqSQcN","start","3363787mMyewX","12991583mFbRDh","35tYPZLV","35168opQkvL","32WPbhAk","hydrate","/public/v1/token/reveal","36hVbjtN","basis","$1$2","cdn","__emotion_styles","22apMIFO","3goapWe","3275226iDBkQv","push","221142kMnpSu","querySelectorAll","114RSjmoG","reveal","2672020NupvKQ","5voBSrt","5280612FAmHRj","2YDvJFs","121946FvfpOL","TIMEOUT","BAD_REQUEST","308070mzXybL","7704828AlyWpW","4136vTyAoM","42WATbWV","17375868QkLWYY","1961979ltppkW","369356uTNDzr","5112212jRFQZI","24746700nYUjHu","$1 $2","6521168AcnhGa","style","12tOiqGC","https://tokenizer-tst.cc.astropay.com","speedy","60VyHydS","793022whjRWB","bind","kebab","10Oqises","add","1470645xRoijs","object","captureStackTrace","781649cCTwXr","182824NOFIwU","4817756GOdPsv","BASE_CDN","isArray","@supports","1244744kHEZvp","1204400cULrpT","449711XSjyNn","@namespace","57gVyDRX","emit","6236046SweZxs","defineProperties","@@INIT","3014374nROcbQ","params","sheet","1671942sLAGQH","Unable to find ","shift","canExecute","upper","UNHANDLED","321246WzqUuK","2416zstDHz","78TjMsRA","@document","486479crVyAA","1274230eUYpuD","7476MqGCll","https://tokenizer.cc.astropay.com","9qEwJkj","94mlxQmC","_insertTag","@viewport","copy-button","2oFrXUh","css","707329nPsPGZ","3903120ZTbQWm","1250232QMjwkz","993063ECHrBH","off","box$3","2387410tdnXlE","environment","type","4XTbgyi","207494VIJaqZ","207VWsTHT","6MQcvFH","35KTILAE","623aFRIRv","104MtyiFW","70fByxgL","1328390hcsUJy","11965976myZRSf","2932168wOOQED","7CAfDgU","27xTvXzF","5139khheWn","18298ErvNda","15qVcyAs","2581385zzzlSz","1531173EygmBU","5013TdEGGQ","39251454EyvEGu","1szHVRr","nextSibling","171eGkepJ","995792ZXdNpW","getFullCdn","49fgToOT","141238OYIhFf","3604728wtPlZt","9byfBJF","exec","next","message","70759QyvmDC","isSpeedy","128yfgIdV","data-s","200ROoAmA","shrink","length","282358JpRRgN","isOperational","insert","3278505kVkcHW","2558421fHqYVU","1165706VPRSLL","split","360993lzNNst","3986rrEZYp","return","3480945BQAAYg","2nMBmkS","2281844ROitQp","BASE_API","27HmsHKI","679404ZmaTyg","20xkgBFi","3908064tZgPPb","1790914KWViXl","inserted","stylisPlugins","reduce","insertBefore","26oJRKGO","119987EZDfNd","565eyruQF","Access-Control-Allow-Origin","595876LgUVRS","1992206jKEGfb","join","193550GoZXIJ","202wLqUwO","replace","baseURL"," is invalid.","99amzLEi","12446nhMFLu","1856148uSihXJ","31566270qvtShe","56045nULafv","abs","5889208ocarfU","2206497yNbZFm","7WjjEbv","@keyframes ","firstChild","305907rAOuHi","1070106SrHRtP","1KlNACj","2829256VMfbYc","801054pmVKPQ","45296tjbJvx","399116yuJdxn","TimeZone","removeEventListener","UNDEFINED",' "]',"lastIndex","18388260JgPhmo","790sQdzeI","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","39nuPwxQ","nonce","1906825qFGXWA","102Qkfvvl","name","raw","20gywqiU","7308324sgDoMc","34825311qnCLyR","991531xZguiI","4593190CadDlo","INVALID","1uSGfgo","input-$1","1501542qKAixX","prototype","registered","456wJQuIj","347732LsCzct","parse","undefined","76385hkeDYT","inline-","115026FZBXCQ","5txmdnE","32HPdvVb","8954800LNVZHA","accessToken","3GcEFSv","props","5028BbqWZE","34672561hfhCnC","6522030iNQqBd","36TYjiRw","474fHLsgQ","365994YPzeNn","toKebabCase","6SBjYSO","1HxbtmM","toCamelCase","3xMbMIj","313859KKbbgd","keys","6LCyCWH","tb-rl","1145017tuPjtp","api","10895PHjSJt","boolean","flex-$1$2","2012180BGZvZq","5JHUgnG","6eqGueN","create","1483570zwTktD","366KnZgCn","14qDkMOo","8FUVWOn","38685lFcQsk","appendChild","4wswXHb","INTERNAL_SERVER_ERROR","315634dCJvdO","32039NIQJjh","trim","entries","143352vIzUva","-grow","6vPzjsU","getOwnPropertyDescriptors","192VVRXxR","2013040uXGWiH","grow","10gWvkPZ","getOwnPropertySymbols","!important","5028340uiCobm","splitWords","1398012AIJUyj","1632420YnhDrH","ctr"," is undefined.","41812yDXNFv","2495164uYJjkv","-moz-","version","502691MEcBqX","getHeaders","3kPtUIZ","stringify","14822650JPeFEZ","@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ","42054ESbccP","_toWords","4242528bXZfiT","3344667OIHhxe","5750396vrmTdj","head","268152SJsZnw","427cxPooO","isUndefined","3930zrQOch","listeners","decl","@import","filter","stop","location","79674ZpwWYN","293732SBYxst","/public/v1/token","fromCharCode","toLowerCase","toUpperCase","call","GET","addEventListener","setAttribute","26941288CkDEbN","post","11oqlwuN","Access token not set","87GWhrFE","emitter","before","isRequired","1369700dRAXAo","5GSCGHS","string","toString","24384006yWcRvg","_canExecute","8765008liwqJC","sourceWindow","sandbox","7368UiaItP","12GMrAvZ","HTTP","dns-prefetch","4410036tOJnlJ","264834CkfPaR","children","4214610DepdAD","1472518dXJTTo","3379032afmmzz","Component selectors can only be used in conjunction with ","8ZmfgGJ","44cPbEBd","582SAPPev","350313NZGJmJ","4249880hofxWm",":read-only","436145BXkDSV","toSentenceCase","24qGiocM","flex-item-","REQUEST_TIMEOUT","UNAUTHORIZED","2924874IDKzfu","11ozoHrq","20380sohzME","284730CeOziu","6521911DlQhaK","resolve","175pzlaDH","12Wntbrz","153CwXsSP","6807462wcVIbh","$`$1","99255obnocz","8565340BeQZTN","frameId","3220704wvCPTK","9vcUkeB","5163599fsttEm","983742ZSzkPs","1880YXBEgQ","postMessage","6676776VbOJGf","value","72700aKFNWB","Request error! status: ","2685321kQBtXq","2011122iTUboz","784830EiOgSk","4Shhqxd","concat","throw","777225SHDgSu","resolvedOptions","search","24brqEuT","stretch","2353821ouiOcG","16BpXaTH","body","4168339BVBfRq","_upperFirst","styles","5GkJNGS","2498022TthXHp","match","4399206zUvsoU","defineProperty","45vUgLOB",'script[src^="',"box-$1$2","1915506xRzusT","targetOrigin","10vjgZog","map","3084189TBfDxs","2617015rxAdDp","20057BCeMKK","692668yJTffY","3275913IwuUbo","5yABJbK","charCodeAt","4DRtert","formatKey","5gnwpyW","_lowerCase","4622320DSbOxK","createElement","1428025rswbrb","AbortError","272928GGfFVj","737mdBFHW","4950912kToKgF","handleMessage","8310840DVoCar","getOwnPropertyDescriptor","109064imVtqW","createTextNode","6XsYOJz","24899zSajlN","127845nWOlks","21ZAugTX","11860803tMqYZp","3898532gnOkwM","5015045AqKKoB","1371378msYiaj","5167656aUcLyl","209740ohkUFh","7903578rApVjM","378mIpYul","UNABLE_TO_FIND","586668OMSavw","https://tokenizer-web.cc.astropay.com","39728XQruux","::placeholder","2hgGSIR","3799864GhLwZS","removeChild","toLocaleLowerCase","40869670rNPvRw","flush","235779fIEMDA","enumerable","5CDMHbY","Reveal","773584eZyLko","1907948myHfGb","61554tirTmC","4269661uBmwSk","23881380dQaLeD","296368dsyAUL"];return(Bo=function(){return e})()}function Uo(e,t){const n=Do();return(Uo=function(r,s){return n[r-=160]})(e,t)}(function(){var e=je;const t=Uo,n=Do();for(;;)try{if(-parseInt(t(176))/1*(-parseInt(t(169))/2)+-parseInt(t(175))/3+parseInt(t(172))/4*(parseInt(t(173))/5)+parseInt(t(170))/6*(-parseInt(t(161))/7)+-parseInt(t(174))/8+-parseInt(t(163))/9*(parseInt(t(167))/10)+parseInt(t(171))/11==561693)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),Fo(165),Fo(177),Fo(166);var Je,Vt,He,np,Xe,wt,rp,sp,$o,Vo,ip,Ks;function zo(){var e=je,t=[e(350),e(396),e(311),e(474),"837xAVhUS","HTTP",e(724),e(144),e(264),e(473),e(689),e(226),e(221),"TIMEOUT","NOT_LOADED",e(328),e(378),e(179),e(656),e(563),"6960805uGgNwo",e(192),e(426),"12267310uEVrHO"];return(zo=function(){return t})()}function Ys(e,t){var n=zo();return(Ys=function(r,s){return n[r-=191]})(e,t)}function Ho(e,t){var n=jo();return(Ho=function(r,s){return n[r-=203]})(e,t)}function jo(){var e=je,t=[e(718),e(707),"41710840nWONlY",e(731),e(659),e(799),"7OXGKyG",e(198),e(766),e(243),e(490),e(263)];return(jo=function(){return t})()}function Wo(e,t){var n=qo();return(Wo=function(r,s){return n[r-=166]})(e,t)}function qo(){var e=je,t=[e(622),e(657),e(242),e(732),"production",e(499),"83274xOmQWJ","4mtYUAV",e(451),e(543),e(594),"65587catFQe",e(415)];return(qo=function(){return t})()}function op(e,t){var n=Go();return(op=function(r,s){return n[r-=472]})(e,t)}function Go(){var e=je,t=[e(308),e(157),e(444),e(335),e(279),e(169),"2vZiVLA","1287DSJSxR",e(240),e(251),e(456),e(477),e(692),"96LHSqDE"];return(Go=function(){return t})()}(function(){for(var e=je,t=Ys,n=zo();;)try{if(parseInt(t(196))/1*(parseInt(t(200))/2)+-parseInt(t(209))/3*(parseInt(t(214))/4)+parseInt(t(212))/5+parseInt(t(193))/6*(-parseInt(t(204))/7)+parseInt(t(203))/8+parseInt(t(192))/9*(parseInt(t(198))/10)+-parseInt(t(191))/11==844014)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}})(),(Vt=Je||(Je={}))[(He=Ys)(210)]=He(210),Vt[He(194)]=He(194),Vt[He(211)]=He(211),Vt[C(773)]=He(206),Vt[He(207)]=He(207),Vt[He(197)]=He(197),Vt[He(205)]=C(143),Vt.UNHANDLED=He(213),wt=Ys,(Xe=np||(np={}))[Xe.OK=200]="OK",Xe[Xe[wt(199)]=400]=wt(199),Xe[Xe[wt(202)]=404]=wt(202),Xe[Xe[wt(208)]=500]=C(378),Xe[Xe[wt(201)]=408]=wt(201),Xe[Xe[wt(195)]=401]=wt(195),function(){for(var e=C,t=Ho,n=jo();;)try{if(-parseInt(t(211))/1+-parseInt(t(209))/2*(parseInt(t(210))/3)+-parseInt(t(212))/4*(parseInt(t(207))/5)+-parseInt(t(204))/6+-parseInt(t(206))/7*(parseInt(t(203))/8)+-parseInt(t(208))/9+parseInt(t(214))/10==660557)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),$o=Ho,(sp=rp||(rp={}))[C(577)]=$o(205),sp[$o(213)]=C(205),function(){for(var e=C,t=Wo,n=qo();;)try{if(parseInt(t(167))/1+parseInt(t(175))/2+parseInt(t(178))/3+parseInt(t(176))/4*(-parseInt(t(172))/5)+-parseInt(t(170))/6+-parseInt(t(171))/7*(-parseInt(t(168))/8)+parseInt(t(174))/9==266134)break;n[e(795)](n.shift())}catch{n[e(795)](n.shift())}}(),(ip=Vo||(Vo={}))[(Ks=Wo)(166)]=Ks(173),ip[Ks(169)]=Ks(177),function(){for(var e=C,t=op,n=Go();;)try{if(parseInt(t(479))/1*(-parseInt(t(485))/2)+parseInt(t(478))/3*(parseInt(t(477))/4)+parseInt(t(481))/5*(-parseInt(t(475))/6)+parseInt(t(482))/7*(parseInt(t(474))/8)+parseInt(t(472))/9*(parseInt(t(476))/10)+-parseInt(t(484))/11*(parseInt(t(480))/12)+-parseInt(t(483))/13*(parseInt(t(473))/14)==639293)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}();const Gn=Js;(function(){var e=C;const t=Js,n=Ko();for(;;)try{if(parseInt(t(494))/1+parseInt(t(487))/2*(-parseInt(t(497))/3)+-parseInt(t(485))/4*(parseInt(t(483))/5)+-parseInt(t(488))/6+parseInt(t(484))/7*(-parseInt(t(499))/8)+parseInt(t(469))/9*(-parseInt(t(480))/10)+parseInt(t(468))/11==507588)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();const Mr={isRequired:e=>e+Gn(475),isUndefined:e=>e+Gn(492),isInvalid:e=>e+Gn(490),unableToFind:e=>Gn(466)+e+".",notLoaded:e=>Gn(473)+e+"."};class Zs extends Error{constructor(t,n,r=!1){var s=C;const i=Gn;let o=n;switch(t){case Je[i(491)]:o=Mr[i(470)](n);break;case Je[i(479)]:o=Mr.isInvalid(n);break;case Je[i(486)]:o=Mr[i(476)](n);break;case Je[s(563)]:o=Mr[i(495)](n);break;case Je[i(481)]:o=Mr[i(493)](n);break;case Je[s(454)]:o=i(478)+n;break;case Je[i(471)]:o=i(496)+n;break;case Je[i(477)]:default:o=i(474)+n}var a,c,l;super(o),a=this,l=void 0,(c=i(482))in a?Object[Js(489)](a,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[c]=l,Object[i(472)](this,new.target.prototype),this[i(467)]=t,this[i(482)]=r,Error[i(498)](this)}}function Js(e,t){const n=Ko();return(Js=function(r,s){return n[r-=466]})(e,t)}function Ko(){var e=C;const t=[e(348),e(524),e(442),e(143),e(713),"Failed to load the ",e(750)," is required.",e(417),e(192),e(671),e(328),e(164),e(773),e(257),e(645),e(358),e(784),"UNDEFINED","618834PMzmgD",e(519),e(520),e(290),e(656),e(398),"notLoaded",e(218),"unableToFind","[TIMEOUT]: ",e(357),"captureStackTrace",e(223),e(188),e(321)];return(Ko=function(){return t})()}function ap(e,t){var n=Yo();return(ap=function(r,s){return n[r-=363]})(e,t)}function Yo(){var e=C,t=[e(699),"10296792NSbaBf",e(144),e(237),e(713),e(171),"3JrHjWm",e(467),e(520),e(239),"httpCode",e(390),e(590),e(280),e(303)];return(Yo=function(){return t})()}(function(){for(var e=C,t=ap,n=Yo();;)try{if(parseInt(t(365))/1*(-parseInt(t(374))/2)+-parseInt(t(368))/3*(-parseInt(t(367))/4)+-parseInt(t(373))/5*(-parseInt(t(376))/6)+parseInt(t(375))/7+-parseInt(t(377))/8*(parseInt(t(371))/9)+parseInt(t(369))/10+parseInt(t(363))/11==917605)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}})();const Dr=Jo;function Zo(){var e=C;const t=[e(683),e(336),e(629),e(541),e(446),"143705UhzlIi",e(141),e(193),e(176),e(147),e(674),e(688),e(234),e(173),e(406),e(606),"940hBWQzM"];return(Zo=function(){return t})()}function Jo(e,t){const n=Zo();return(Jo=function(r,s){return n[r-=127]})(e,t)}(function(){var e=C;const t=Jo,n=Zo();for(;;)try{if(parseInt(t(139))/1*(-parseInt(t(140))/2)+parseInt(t(127))/3*(parseInt(t(142))/4)+-parseInt(t(137))/5+-parseInt(t(141))/6+-parseInt(t(129))/7+-parseInt(t(143))/8*(parseInt(t(134))/9)+-parseInt(t(133))/10*(-parseInt(t(128))/11)==195235)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();class ES{static[Dr(135)](t){const n=Dr,r=new URLSearchParams(t),s={};return r[n(136)]((i,o)=>{var a=je;const c=n;s[o]?Array[c(130)](s[o])?s[o][a(795)](i):s[o]=[s[o],i]:s[o]=i}),s}static parseObject(t){return this[Dr(135)](t)}static[Dr(131)](t){const n=Dr,r=new URLSearchParams;for(const s in t){const i=t[s];if(Array[n(130)](i))for(const o of i)r[n(132)](s,o);else r[n(132)](s,i?i[n(138)]():"")}return r[n(138)]()}}const Xs=Xo;function Xo(e,t){const n=Qo();return(Xo=function(r,s){return n[r-=358]})(e,t)}(function(){var e=C;const t=Xo,n=Qo();for(;;)try{if(parseInt(t(368))/1+parseInt(t(367))/2*(parseInt(t(361))/3)+-parseInt(t(371))/4+-parseInt(t(358))/5*(-parseInt(t(370))/6)+parseInt(t(362))/7*(parseInt(t(366))/8)+parseInt(t(363))/9*(parseInt(t(364))/10)+-parseInt(t(372))/11==832538)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();const Kn={endpoints:{tokenizer:C(427),reveal:Xs(365)},domians:{cdn:{production:Xs(369),sandbox:"https://tokenizer-web-tst.cc.astropay.com"},api:{production:Xs(359),sandbox:Xs(360)}}};function Qo(){var e=C;const t=[e(393),e(786),e(471),"107952fYoopL",e(644),e(565),"5250978IBLHHK","2968388TUhYeT",e(236),e(537),e(200),e(158),e(317),e(780),e(677)];return(Qo=function(){return t})()}const CS=ea;function ea(e,t){const n=ta();return(ea=function(r,s){return n[r-=466]})(e,t)}(function(){var e=C;const t=ea,n=ta();for(;;)try{if(parseInt(t(475))/1+parseInt(t(466))/2*(-parseInt(t(472))/3)+parseInt(t(471))/4+-parseInt(t(467))/5*(parseInt(t(473))/6)+parseInt(t(474))/7*(-parseInt(t(469))/8)+-parseInt(t(470))/9*(-parseInt(t(477))/10)+-parseInt(t(476))/11==221555)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}})();const xS={environment:Vo[CS(468)],version:C(611)};function ta(){var e=C;const t=["50qDamSZ",e(568),"44535lKGnAe",e(622),"1198616psasvq","544302QFKtCW","162808fuaUJw","234726FeLlSb",e(798),e(662),e(469),e(623)];return(ta=function(){return t})()}function na(){var e=C;const t=["946575WsgUvq",e(268),e(533),"12681sdIGeC",e(635),"4355436uZDbJG","24iPqPHQ",e(592),e(351),e(418),e(166)];return(na=function(){return t})()}function cp(e,t){const n=na();return(cp=function(r,s){return n[r-=155]})(e,t)}(function(){var e=C;const t=cp,n=na();for(;;)try{if(parseInt(t(162))/1*(parseInt(t(155))/2)+parseInt(t(157))/3+-parseInt(t(159))/4+parseInt(t(160))/5*(-parseInt(t(163))/6)+-parseInt(t(158))/7*(parseInt(t(164))/8)+parseInt(t(161))/9*(parseInt(t(156))/10)+parseInt(t(165))/11==451934)break;n[e(795)](n.shift())}catch{n.push(n[e(189)]())}})();let ra=xS;const un=()=>ra,IS=sa;function sa(e,t){const n=ia();return(sa=function(r,s){return n[r-=379]})(e,t)}(function(){var e=C;const t=sa,n=ia();for(;;)try{if(parseInt(t(384))/1+-parseInt(t(389))/2+-parseInt(t(383))/3*(-parseInt(t(387))/4)+parseInt(t(388))/5+-parseInt(t(381))/6*(parseInt(t(385))/7)+-parseInt(t(382))/8+parseInt(t(379))/9*(parseInt(t(386))/10)==645524)break;n[e(795)](n.shift())}catch{n[e(795)](n.shift())}})();const lp=(e,t)=>e[IS(380)](new RegExp(t+"$"),"");function ia(){var e=C;const t=[e(306),e(288),e(372),e(155),e(232),e(632),"83594fyhqnZ",e(730),e(399),"3139375mafbsW",e(607)];return(ia=function(){return t})()}const Fr=aa;function oa(){var e=C;const t=[e(535),e(602),e(582),e(266),e(416),e(172),"11uyatGf",e(402),e(269),"6nfgxja",e(698),e(150),e(219),"domians",e(363),e(790),e(720),e(501),e(215)];return(oa=function(){return t})()}function aa(e,t){const n=oa();return(aa=function(r,s){return n[r-=110]})(e,t)}(function(){var e=C;const t=aa,n=oa();for(;;)try{if(parseInt(t(124))/1+-parseInt(t(128))/2+parseInt(t(119))/3*(parseInt(t(127))/4)+parseInt(t(111))/5*(parseInt(t(117))/6)+parseInt(t(112))/7*(-parseInt(t(118))/8)+parseInt(t(120))/9*(-parseInt(t(125))/10)+parseInt(t(114))/11*(parseInt(t(110))/12)==961663)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();class Qs{static get[Fr(113)](){const t=Fr;return lp(Kn[t(121)][t(123)][un()[t(126)]],"/")}static get[Fr(116)](){const t=Fr;return lp(Kn[t(121)][t(122)][un()[t(126)]],"/")}static[C(241)](t,n,r){var s=C;const i=Fr,o=ES[s(406)](r??{}),a=un(),c=o?n[s(636)]("?")?"&":"?":"";return Qs[i(113)]+"/"+t+"/"+a[i(115)]+"/"+n+c+o}}var ca=ua;function la(){var e=C,t=[e(559),e(634),e(630),e(739),e(548),e(503),e(436),e(480),e(404),"1042584XPmVvk",e(172),e(473),e(289),e(745),"json",e(795),"2166WIGGYn",e(438),e(385),e(606),e(629),"173LKkRgC",e(391),e(498),e(282),e(614),e(710),e(247),e(621),e(255),"14XmrYdp",e(182),e(735),e(504),"Bearer ",e(697),e(694),e(474),"abort","defineProperty",e(321),e(680),e(496),e(587),e(309),e(344),e(406),e(248),"status",e(542),e(386),"keys",e(586)];return(la=function(){return t})()}function ua(e,t){var n=la();return(ua=function(r,s){return n[r-=115]})(e,t)}(function(){for(var e=C,t=ua,n=la();;)try{if(-parseInt(t(126))/1*(-parseInt(t(121))/2)+-parseInt(t(160))/3*(-parseInt(t(130))/4)+parseInt(t(140))/5*(-parseInt(t(123))/6)+parseInt(t(135))/7*(parseInt(t(167))/8)+-parseInt(t(158))/9+parseInt(t(159))/10+parseInt(t(157))/11==336922)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),ca(146),ca(164),ca(166);var ei=da;function da(e,t){var n=fa();return(da=function(r,s){return n[r-=291]})(e,t)}(function(){for(var e=C,t=da,n=fa();;)try{if(-parseInt(t(301))/1+parseInt(t(307))/2+-parseInt(t(292))/3*(-parseInt(t(306))/4)+parseInt(t(291))/5+-parseInt(t(314))/6*(-parseInt(t(300))/7)+-parseInt(t(302))/8*(parseInt(t(303))/9)+-parseInt(t(293))/10==616185)break;n.push(n[e(189)]())}catch{n.push(n[e(189)]())}})(),C(597),ei(294),C(779),ei(305),ei(296),ei(315);function fa(){var e=C,t=[e(208),e(302),"336OqQgfm",e(755),e(494),e(423),e(647),"1179086uaDkqa",e(752),"emit","message",e(756),e(190),e(520),e(148),e(546),e(216),e(779),e(450),"listener",e(319),e(654),e(407),e(212),e(162),e(448),e(440),e(525),e(310)];return(fa=function(){return t})()}function pa(){var e=C;const t=[e(676),e(331),e(362),"2228304EqXFLn",e(512),e(778),e(387),e(721),e(673),"207AHFLGs",e(376),e(425)];return(pa=function(){return t})()}function ha(e,t){const n=pa();return(ha=function(r,s){return n[r-=254]})(e,t)}(function(){var e=C;const t=ha,n=pa();for(;;)try{if(parseInt(t(257))/1+parseInt(t(260))/2+parseInt(t(254))/3*(-parseInt(t(261))/4)+parseInt(t(262))/5+-parseInt(t(258))/6+parseInt(t(256))/7+-parseInt(t(263))/8*(parseInt(t(264))/9)==716064)break;n[e(795)](n.shift())}catch{n[e(795)](n[e(189)]())}})();const up=function(e){var t=C;const n=ha,r=document[t(414)]||document[n(259)];if(!r)throw new Zs(Je[t(563)],n(255),!0);return r[n(265)](e),e};(function(){var e=C;const t=ma,n=ga();for(;;)try{if(parseInt(t(128))/1+parseInt(t(125))/2+-parseInt(t(127))/3+parseInt(t(132))/4+-parseInt(t(131))/5+parseInt(t(133))/6+-parseInt(t(134))/7==688465)break;n.push(n[e(189)]())}catch{n[e(795)](n.shift())}})();const ti=function(e,t){const n=ma,r=document.createElement(n(126));r[n(129)]=e,r[n(130)]=t,up(r)};function ma(e,t){const n=ga();return(ma=function(r,s){return n[r-=125]})(e,t)}function ga(){var e=C;const t=["2178600xJfnAD",e(771),e(259),e(225),e(610),e(646),e(691),e(556),e(588),"18738601iJYruu"];return(ga=function(){return t})()}function ya(){var e=C,t=[e(608),e(186),e(570),e(376),e(652),e(301),"10439181hcqJpc",e(593),e(434),e(441),"createTextNode",e(695),e(250),e(604),"ctr",e(665),e(785),"9136jiXoxV",e(238),e(203),e(324),e(723),e(177),e(278),"insertRule",e(540),"nonce",e(670),"flush",e(767),"forEach","7294661PRwxon",e(774),e(742),e(159),"ownerNode",e(795),e(255),"2555lCYkVH",e(252),e(684),e(481)];return(ya=function(){return t})()}function dn(e,t){var n=ya();return(dn=function(r,s){return n[r-=379]})(e,t)}(function(){for(var e=C,t=dn,n=ya();;)try{if(parseInt(t(413))/1*(-parseInt(t(412))/2)+-parseInt(t(382))/3+-parseInt(t(381))/4*(-parseInt(t(387))/5)+parseInt(t(411))/6+parseInt(t(390))/7*(parseInt(t(408))/8)+parseInt(t(397))/9+-parseInt(t(404))/10*(parseInt(t(380))/11)==960039)break;n.push(n.shift())}catch{n[e(795)](n[e(189)]())}})(),function(){var e=C,t=dn;function n(s){var i=je,o=dn,a=this;this[i(203)]=function(c){var l,u=i,d=dn;l=a[d(391)][d(386)]===0?a[d(402)]?a[d(402)][d(409)]:a[d(406)]?a[d(389)][d(396)]:a[d(400)]:a[d(391)][a[d(391)][d(386)]-1][u(238)],a[d(389)][d(414)](c,l),a[d(391)][d(385)](c)},this[o(403)]=s[o(383)]===void 0||s[o(383)],this[o(391)]=[],this.ctr=0,this[o(417)]=s[i(318)],this[o(398)]=s[o(398)],this[o(389)]=s[i(684)],this[o(406)]=s[o(406)],this[o(402)]=s[o(402)],this.before=null}var r=n[e(332)];r[t(407)]=function(s){var i=e;s[t(379)](this[i(203)])},r[e(258)]=function(s){var i,o,a,c=e,l=t;this[l(405)]%(this[l(403)]?65e3:1)==0&&this[l(410)]((i=this,o=dn,(a=document[o(416)](c(156)))[o(399)](o(420),i[o(398)]),i[o(417)]!==void 0&&a[c(434)](c(318),i[c(318)]),a[o(394)](document[o(401)]("")),a[o(399)](o(388),""),a));var u=this[c(608)][this[l(391)][l(386)]-1];if(this[l(403)]){var d=function(f){var h=c,p=dn;if(f[p(392)])return f.sheet;for(var m=0;m<document[p(395)][p(386)];m++)if(document[p(395)][m][p(384)]===f)return document[h(652)][m]}(u);try{d[l(415)](s,d[l(418)][l(386)])}catch{}}else u[l(394)](document[c(550)](s));this.ctr++},r[t(419)]=function(){var s=e,i=t;this[i(391)][s(629)](function(o){var a,c=i;return(a=o.parentNode)==null?void 0:a[c(393)](o)}),this[i(391)]=[],this[s(397)]=0}}();var Qe=ba;function ba(e,t){var n=wa();return(ba=function(r,s){return n[r-=110]})(e,t)}function wa(){var e=C,t=[e(196),"152336OQhHhe",e(420),e(492),e(783),e(770),e(349),e(204),e(598),e(178),e(401),e(650),"4724nuSFUK",e(439),e(736),"@page",e(613),e(619),e(443),"@layer",e(174)];return(wa=function(){return t})()}(function(){for(var e=C,t=ba,n=wa();;)try{if(-parseInt(t(119))/1+-parseInt(t(123))/2*(-parseInt(t(124))/3)+-parseInt(t(129))/4*(parseInt(t(122))/5)+-parseInt(t(114))/6+-parseInt(t(115))/7+parseInt(t(112))/8+parseInt(t(117))/9==198272)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),C(648),Qe(121),C(700),C(600),Qe(113),Qe(126),Qe(116),Qe(118),Qe(110),Qe(111),Qe(120),Qe(128),Qe(125),Qe(127),Qe(130);var va=_a;function _a(e,t){var n=Sa();return(_a=function(r,s){return n[r-=258]})(e,t)}function Sa(){var e=C,t=[e(347),e(371),e(260),e(288),e(227),e(409),e(255),e(795),e(246),"10opKczI","charCodeAt",e(733),e(377),e(428),e(738),e(281),e(296),e(510),e(381),e(464),"3836294AMJKLE"];return(Sa=function(){return t})()}function Ea(){var e=C,t=[e(327),e(255),e(566),e(334),e(323),"14ejudnZ",e(201),"862542dyuBTR",e(552),"401898SBLqqH",e(184),e(705)];return(Ea=function(){return t})()}function dp(e,t){var n=Ea();return(dp=function(r,s){return n[r-=123]})(e,t)}function fp(e,t){var n=Ca();return(fp=function(r,s){return n[r-=435]})(e,t)}function Ca(){var e=C,t=["680775fQHTmS",e(364),e(493),e(528),e(206),e(669),"3255819aCtDxV",e(447),e(187)];return(Ca=function(){return t})()}function xa(){var e=C,t=[e(458),"2134996QawHcC","return",e(693),e(558),"15490080Hutsfa",e(496),e(228),e(216),e(346),e(255),"1837002hgOqZq",e(531),e(516),e(484),"join"];return(xa=function(){return t})()}function pp(e,t){var n=xa();return(pp=function(r,s){return n[r-=147]})(e,t)}function hp(e,t){var n=Ia();return(hp=function(r,s){return n[r-=398]})(e,t)}function Ia(){var e=C,t=[e(551),"input-$1",e(273),e(468),"root",e(749),e(287),e(567),e(772),e(549),e(716),e(346),"global",e(229),e(294),"1314449boGmmT",e(527),"4549375QrRZcY",e(265),"type"];return(Ia=function(){return t})()}function Ta(){var e=C,t=[e(271),e(209),e(453),e(734),e(545),"has","476346BHUYta","478714FKDyOG",e(760),e(253)];return(Ta=function(){return t})()}function mp(e,t){var n=Ta();return(mp=function(r,s){return n[r-=484]})(e,t)}function Aa(e,t){var n=Ra();return(Aa=function(r,s){return n[r-=236]})(e,t)}function Ra(){var e=C,t=[e(584),"953666lBllkt",e(564),"48PHUuVy",e(437),e(214),e(627),e(149),e(272),e(307),e(483),e(800),e(370)];return(Ra=function(){return t})()}(function(){for(var e=C,t=_a,n=Sa();;)try{if(-parseInt(t(259))/1*(parseInt(t(278))/2)+-parseInt(t(276))/3*(-parseInt(t(271))/4)+-parseInt(t(274))/5*(-parseInt(t(264))/6)+-parseInt(t(258))/7+-parseInt(t(263))/8+parseInt(t(261))/9*(-parseInt(t(268))/10)+parseInt(t(260))/11==402046)break;n[e(795)](n.shift())}catch{n[e(795)](n[e(189)]())}})(),Math[va(275)],String[va(272)],Object[va(273)],function(){for(var e=C,t=dp,n=Ea();;)try{if(-parseInt(t(132))/1*(parseInt(t(123))/2)+-parseInt(t(125))/3+parseInt(t(129))/4+parseInt(t(134))/5*(parseInt(t(127))/6)+parseInt(t(126))/7*(parseInt(t(133))/8)+-parseInt(t(124))/9*(-parseInt(t(130))/10)+-parseInt(t(128))/11==366270)break;n[e(795)](n.shift())}catch{n.push(n[e(189)]())}}(),function(){for(var e=C,t=fp,n=Ca();;)try{if(parseInt(t(439))/1+parseInt(t(443))/2*(parseInt(t(442))/3)+parseInt(t(441))/4*(parseInt(t(440))/5)+parseInt(t(438))/6+-parseInt(t(436))/7+parseInt(t(435))/8+-parseInt(t(437))/9==637765)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}}(),function(){for(var e=C,t=pp,n=xa();;)try{if(-parseInt(t(158))/1+-parseInt(t(150))/2+parseInt(t(149))/3+-parseInt(t(155))/4*(-parseInt(t(151))/5)+-parseInt(t(152))/6+-parseInt(t(161))/7*(-parseInt(t(157))/8)+parseInt(t(159))/9==746841)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=C,t=hp,n=Ia();;)try{if(parseInt(t(398))/1+-parseInt(t(409))/2*(-parseInt(t(413))/3)+parseInt(t(405))/4+parseInt(t(400))/5+-parseInt(t(403))/6*(-parseInt(t(408))/7)+-parseInt(t(412))/8*(-parseInt(t(416))/9)+-parseInt(t(417))/10==921092)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}}(),function(){for(var e=C,t=mp,n=Ta();;)try{if(parseInt(t(484))/1+-parseInt(t(485))/2*(-parseInt(t(490))/3)+parseInt(t(488))/4+parseInt(t(489))/5+parseInt(t(492))/6+-parseInt(t(486))/7*(parseInt(t(487))/8)+-parseInt(t(491))/9==521840)break;n.push(n[e(189)]())}catch{n.push(n[e(189)]())}}(),function(){for(var e=C,t=Aa,n=Ra();;)try{if(parseInt(t(246))/1*(parseInt(t(239))/2)+parseInt(t(248))/3*(-parseInt(t(241))/4)+parseInt(t(244))/5+-parseInt(t(236))/6*(parseInt(t(247))/7)+-parseInt(t(242))/8*(parseInt(t(243))/9)+-parseInt(t(238))/10+parseInt(t(237))/11*(parseInt(t(240))/12)==600322)break;n.push(n[e(189)]())}catch{n.push(n[e(189)]())}}();var TS=ka;function ka(e,t){var n=Pa();return(ka=function(r,s){return n[r-=373]})(e,t)}function Pa(){var e=C,t=[e(485),e(252),e(684),e(523),"column",e(337),e(515),e(275),e(159),e(366),e(332),e(312),e(197),e(265),e(321),e(601),e(752),e(603),"$2-$3",e(258),e(534),e(376),e(769),e(254),e(392),e(788),e(216),e(521),e(295),e(267),e(255),"preferred-size",e(629),"line",e(181),e(797),e(593),e(330),e(288),"compat",e(595),e(186),e(767),e(384),e(508),e(339),"prepend","push",e(503),e(496),e(472),e(276),'style[data-emotion^="',e(695),e(346),e(213),e(789),e(715),"head",e(567),"448GdQtAv",e(600),e(711),e(262),e(509),e(434),"flex-",e(626),e(318),e(389),e(560),e(468),e(463),e(431),e(781),"indexOf",e(618),e(207),e(640)];return(Pa=function(){return t})()}function Oa(){var e=C,t=[e(320),e(388),e(405),e(579),"35AIBzSb",e(534),e(505),e(411),"1274024Vuuviq","length",e(572),e(478)];return(Oa=function(){return t})()}function gp(e,t){var n=Oa();return(gp=function(r,s){return n[r-=484]})(e,t)}function yp(e,t){var n=La();return(yp=function(r,s){return n[r-=106]})(e,t)}function La(){var e=C,t=[e(526),e(340),e(765),e(703),e(487),e(489),e(146),e(639),e(729),e(664)];return(La=function(){return t})()}(function(){for(var e=C,t=ka,n=Pa();;)try{if(parseInt(t(444))/1+parseInt(t(411))/2*(-parseInt(t(397))/3)+-parseInt(t(442))/4*(-parseInt(t(410))/5)+parseInt(t(416))/6+parseInt(t(394))/7*(-parseInt(t(375))/8)+parseInt(t(409))/9*(parseInt(t(373))/10)+-parseInt(t(377))/11*(parseInt(t(426))/12)==928149)break;n.push(n.shift())}catch{n[e(795)](n[e(189)]())}})(),TS(387),function(){for(var e=C,t=gp,n=Oa();;)try{if(-parseInt(t(487))/1+parseInt(t(489))/2+-parseInt(t(495))/3*(parseInt(t(484))/4)+-parseInt(t(492))/5*(parseInt(t(493))/6)+parseInt(t(485))/7*(-parseInt(t(494))/8)+-parseInt(t(488))/9+parseInt(t(491))/10==772143)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=C,t=yp,n=La();;)try{if(-parseInt(t(106))/1*(-parseInt(t(114))/2)+parseInt(t(115))/3*(parseInt(t(107))/4)+parseInt(t(112))/5+parseInt(t(110))/6+parseInt(t(108))/7+parseInt(t(109))/8+parseInt(t(113))/9*(-parseInt(t(111))/10)==797311)break;n[e(795)](n[e(189)]())}catch{n.push(n[e(189)]())}}();var bp=Ma;function Na(){var e=C,t=["animationName","2256550Ipcodt",e(173),"compiler transform.",e(746),e(462),e(288),e(801),e(211),e(500),e(255),"number",e(791),"NO_COMPONENT_SELECTOR","1182279EAtwWa",e(682),e(321),"1304688UcogLI",e(247),"string",e(569),"styles","45ISzOCs",e(246),e(777),e(167),e(672)];return(Na=function(){return t})()}(function(){for(var e=C,t=Ma,n=Na();;)try{if(-parseInt(t(249))/1+-parseInt(t(242))/2+parseInt(t(250))/3+parseInt(t(258))/4+-parseInt(t(248))/5*(parseInt(t(256))/6)+-parseInt(t(255))/7+parseInt(t(261))/8*(parseInt(t(236))/9)==662021)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();function Ma(e,t){var n=Na();return(Ma=function(r,s){return n[r-=236]})(e,t)}function wp(e,t){var n=Da();return(wp=function(r,s){return n[r-=142]})(e,t)}function Da(){var e=C,t=[e(368),e(305),"registered",e(262),"styles",e(255),e(374),e(629),e(633),e(615),e(663),e(753),e(275),e(802),"push",e(593),e(321),e(491),e(258),e(666)];return(Da=function(){return t})()}function Fa(){var e=C,t=[e(578),e(321),e(258),e(629),e(255),e(449),e(250),e(333),e(502),"bind",e(573),"281145OZnPDr",e(547),"3uNmnOL",e(159),e(186),e(291),e(275),e(476),e(593),e(365),e(173),e(515),e(753),"6198910frrjDN",e(413),e(300),"animation-",e(195),e(599),"object"];return(Fa=function(){return t})()}function vp(e,t){var n=Fa();return(vp=function(r,s){return n[r-=250]})(e,t)}Object[Aa(245)](null),bp(246),C(408),bp(244),function(){for(var e=C,t=wp,n=Da();;)try{if(-parseInt(t(146))/1+-parseInt(t(155))/2+-parseInt(t(144))/3+-parseInt(t(157))/4+parseInt(t(156))/5*(parseInt(t(149))/6)+parseInt(t(153))/7*(parseInt(t(142))/8)+parseInt(t(145))/9==509549)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=C,t=vp,n=Fa();;)try{if(parseInt(t(274))/1*(-parseInt(t(253))/2)+-parseInt(t(258))/3*(-parseInt(t(270))/4)+parseInt(t(256))/5*(parseInt(t(273))/6)+parseInt(t(250))/7+-parseInt(t(276))/8*(parseInt(t(261))/9)+parseInt(t(269))/10*(parseInt(t(263))/11)+-parseInt(t(257))/12==769621)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}();const J=$a;function Ba(){var e=C;const t=[e(191),e(751),"toCamelCase",e(446),e(325),e(210),"toPascalCase",e(284),e(154),e(726),e(288),e(617),e(768),e(343),e(394),"4804168lIEQdb",e(410),e(539),e(430),e(678),e(353),"_lowerCase",e(596),e(733),e(518),"charAt",e(687),e(527),e(262),"42wLrOPC",e(285),"toLowerCase",e(470),e(514)];return(Ba=function(){return t})()}function _p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(function(){var e=C;const t=$a,n=Ba();for(;;)try{if(-parseInt(t(224))/1+parseInt(t(230))/2+-parseInt(t(242))/3*(parseInt(t(238))/4)+-parseInt(t(236))/5+-parseInt(t(228))/6*(-parseInt(t(252))/7)+-parseInt(t(240))/8+parseInt(t(227))/9==959733)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n.shift())}})();class Ua{static[J(241)](t,n=!1){const r=J;return n?this[r(239)](t)[r(253)](" ")[r(241)]():t[r(241)]()}static[C(429)](t,n=!1){var r=C;const s=J;return n?this[s(244)](t)[s(233)](/ /g," "):t[r(429)]()}static[C(741)](t){const n=J;return this[n(249)](n(241))(t)}static[J(234)](t){const n=J;return this[n(249)](n(220))(t)}static[J(225)](t){var n=C;const r=J;return this[r(239)](t)[n(527)]((s,i)=>i===0?s[n(429)]():this[r(222)](s[r(220)]()))[r(253)]("")}static[J(229)](t){var n=C;const r=J;return this._startCase(this[r(225)](t))[n(288)](/ /g,"")}static[J(243)](t){const n=J;return this[n(239)](t)[n(253)]("-")}static[C(761)](t){const n=J;return this[C(410)](t)[n(253)]("_")}static[J(245)](t){return this[J(244)](t).replace(/ /g,".")}static[J(221)](t){const n=J;return this[n(222)](this[n(244)](t))}static toSlugCase(t){const n=J;return this[n(244)](t)[n(233)](/ /g,"-")}static[J(237)](t){return this[J(239)](t)}static[J(239)](t){const n=J;return t[n(233)](/([a-z])([A-Z])/g,n(231))[n(233)](/[\s_-]+/g," ")[n(220)]()[n(247)](/[a-zà-öø-ÿ0-9]+/gi)||[]}static[C(538)](t){var n=C;const r=J;return this[r(239)](t)[n(527)](s=>s[r(220)]())[r(253)](" ")}static[J(222)](t){const n=J;return t[n(248)](0)[n(241)]()+t[n(246)](1)[n(220)]()}static _startCase(t){const n=J;return this[C(410)](t)[n(250)](r=>this[n(222)](r))[n(253)](" ")}}function $a(e,t){const n=Ba();return($a=function(r,s){return n[r-=220]})(e,t)}_p(Ua,C(748),(e,t=!1,{splitChar:n=" ",joinChar:r=" ",to:s=J(223)}={splitChar:" ",joinChar:" ",to:J(223)})=>{const i=J,o=e!==void 0?e[i(226)]():"";return o?t?Ua[i(235)](o):o[i(251)](n).map(a=>{var c=je;const l=i;return s===l(232)?a[l(248)](0)[c(571)]()+a[l(246)](1)[c(429)]():a[l(248)](0).toUpperCase()+a[l(246)](1)[l(220)]()})[i(253)](r):""}),_p(Ua,J(249),e=>t=>{var n=C;const r=J;if(!t)return"";const s=t[r(246)](0,1),i=t[r(246)](1);return s[e]!==void 0&&n(672)==typeof s[e]?s[e]()+i:t});const AS=Va;function Va(e,t){const n=za();return(Va=function(r,s){return n[r-=328]})(e,t)}function je(e,t){var n=Bo();return(je=function(r,s){return n[r-=141]})(e,t)}function za(){var e=C;const t=[e(460),e(638),"pascal",e(620),e(152),e(353),"object",e(796),e(719),e(761),e(536),e(222),e(758),e(356),e(747),e(704),e(527),e(194),e(681),e(561)];return(za=function(){return t})()}(function(){var e=C;const t=Va,n=za();for(;;)try{if(parseInt(t(337))/1*(parseInt(t(342))/2)+-parseInt(t(329))/3+parseInt(t(346))/4+parseInt(t(345))/5+-parseInt(t(341))/6+-parseInt(t(333))/7*(-parseInt(t(339))/8)+-parseInt(t(330))/9==892829)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),C(681),AS(332);function Ha(){var e=C;const t=[e(314),e(249),e(764),e(792),"7920680CrCzXO",e(776),"kebab",e(532),e(400),"1889976zPDrSf",e(681),e(165),"574270pCgwUB"];return(Ha=function(){return t})()}function Sp(e,t){const n=Ha();return(Sp=function(r,s){return n[r-=199]})(e,t)}function Ep(e,t){const n=ja();return(Ep=function(r,s){return n[r-=310]})(e,t)}function ja(){var e=C;const t=["strategy","5941134AnJjDR",e(435),"REQUIRED",e(403),e(298),e(507),e(277),e(304),e(185),e(217),"168yAApGZ","210166RwrXjV",e(288),"replacer",e(660),e(341),e(431),e(422),e(497),"parameters.search"];return(ja=function(){return t})()}function Cp(e,t){const n=Wa();return(Cp=function(r,s){return n[r-=245]})(e,t)}function Wa(){var e=C;const t=[e(757),e(288),"749930AnkLQM",e(345),e(475),e(244),e(395),e(316),"77UAdnad",e(161),e(245),e(446),e(286),e(725)];return(Wa=function(){return t})()}function qa(){var e=C;const t=[e(235),e(583),e(580),e(224),e(355),e(787),e(653),e(256),e(612),"90faVQnR",e(486)];return(qa=function(){return t})()}function xp(e,t){const n=qa();return(xp=function(r,s){return n[r-=199]})(e,t)}function Ga(){var e=C;const t=["location",e(728),e(574),"2xpcQKU","push","768628jYCGxS",e(756),"24FLVsmp",e(752),e(293),"978200aOzrna",e(488),"63KlvtSY",e(277),e(553),e(231),e(679),e(336),e(507),e(422),e(527)];return(Ga=function(){return t})()}function Ip(e,t){const n=Ga();return(Ip=function(r,s){return n[r-=482]})(e,t)}function Ka(e,t){const n=Ya();return(Ka=function(r,s){return n[r-=252]})(e,t)}function Ya(){var e=C;const t=[e(759),e(605),e(261),e(585),e(790),e(383),e(637),"104DOhoZO","preconnect",e(215),e(175),"5jiSoDi",e(658)];return(Ya=function(){return t})()}(function(){var e=C;const t=Sp,n=Ha();for(;;)try{if(parseInt(t(206))/1*(-parseInt(t(208))/2)+-parseInt(t(199))/3*(parseInt(t(210))/4)+parseInt(t(204))/5+-parseInt(t(201))/6+-parseInt(t(200))/7+parseInt(t(209))/8+parseInt(t(205))/9==606311)break;n[e(795)](n[e(189)]())}catch{n.push(n[e(189)]())}})(),function(){var e=C;const t=Ep,n=ja();for(;;)try{if(parseInt(t(317))/1*(-parseInt(t(321))/2)+-parseInt(t(314))/3*(parseInt(t(319))/4)+parseInt(t(325))/5*(-parseInt(t(310))/6)+-parseInt(t(313))/7*(-parseInt(t(320))/8)+-parseInt(t(324))/9+parseInt(t(328))/10+parseInt(t(311))/11==808336)break;n.push(n[e(189)]())}catch{n.push(n[e(189)]())}}(),function(){var e=C;const t=Cp,n=Wa();for(;;)try{if(-parseInt(t(252))/1+-parseInt(t(249))/2*(-parseInt(t(257))/3)+parseInt(t(254))/4+-parseInt(t(253))/5*(-parseInt(t(258))/6)+parseInt(t(246))/7+-parseInt(t(245))/8*(parseInt(t(250))/9)+-parseInt(t(256))/10*(parseInt(t(248))/11)==300232)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){var e=C;const t=xp,n=qa();for(;;)try{if(-parseInt(t(200))/1*(parseInt(t(203))/2)+parseInt(t(209))/3+parseInt(t(202))/4+-parseInt(t(206))/5*(parseInt(t(201))/6)+-parseInt(t(199))/7*(parseInt(t(208))/8)+parseInt(t(207))/9*(parseInt(t(205))/10)+parseInt(t(204))/11==198596)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){var e=C;const t=Ip,n=Ga();for(;;)try{if(parseInt(t(488))/1+-parseInt(t(497))/2*(parseInt(t(496))/3)+-parseInt(t(501))/4*(parseInt(t(487))/5)+-parseInt(t(482))/6+parseInt(t(499))/7+-parseInt(t(495))/8+-parseInt(t(485))/9*(-parseInt(t(483))/10)==155517)break;n[e(795)](n.shift())}catch{n[e(795)](n.shift())}}(),function(){var e=C;const t=Ka,n=Ya();for(;;)try{if(parseInt(t(254))/1+parseInt(t(257))/2+parseInt(t(260))/3+-parseInt(t(252))/4*(-parseInt(t(253))/5)+-parseInt(t(258))/6+parseInt(t(256))/7+parseInt(t(262))/8*(-parseInt(t(261))/9)==402722)break;n[e(795)](n.shift())}catch{n[e(795)](n[e(189)]())}}(),function(){var e=C;const t=Za,n=Ja();for(;;)try{if(parseInt(t(397))/1*(-parseInt(t(389))/2)+-parseInt(t(394))/3*(parseInt(t(383))/4)+parseInt(t(391))/5+-parseInt(t(384))/6*(-parseInt(t(388))/7)+parseInt(t(382))/8*(-parseInt(t(393))/9)+parseInt(t(386))/10+parseInt(t(392))/11==453357)break;n[e(795)](n.shift())}catch{n[e(795)](n[e(189)]())}}();function Za(e,t){const n=Ja();return(Za=function(r,s){return n[r-=382]})(e,t)}function Ja(){var e=C;const t=[e(581),e(589),e(702),e(759),"api","9885ktAjwX","515144gJwABd",e(461),e(352),e(455),e(709),"environment",e(782),e(360),e(790),e(609)];return(Ja=function(){return t})()}function Xa(e,t){const n=Qa();return(Xa=function(r,s){return n[r-=188]})(e,t)}function Qa(){var e=C;const t=[e(513),e(744),e(230),e(151),e(354),e(170),e(638),"42ZfbLkm",e(529),e(527),"length",e(656),e(793),e(328),e(479),e(737),"84AZtHRP"];return(Qa=function(){return t})()}(function(){var e=C;const t=Xa,n=Qa();for(;;)try{if(parseInt(t(200))/1*(-parseInt(t(191))/2)+parseInt(t(195))/3*(-parseInt(t(193))/4)+-parseInt(t(196))/5*(parseInt(t(192))/6)+-parseInt(t(188))/7+-parseInt(t(203))/8+-parseInt(t(190))/9*(parseInt(t(189))/10)+parseInt(t(202))/11*(parseInt(t(204))/12)==863321)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();const ni=ec;function ec(e,t){const n=tc();return(ec=function(r,s){return n[r-=135]})(e,t)}(function(){var e=C;const t=ec,n=tc();for(;;)try{if(-parseInt(t(139))/1*(parseInt(t(147))/2)+-parseInt(t(142))/3+-parseInt(t(140))/4+-parseInt(t(143))/5*(-parseInt(t(148))/6)+parseInt(t(137))/7*(parseInt(t(141))/8)+-parseInt(t(138))/9+-parseInt(t(136))/10*(-parseInt(t(145))/11)==902131)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})();const RS={environment:e=>typeof e===ni(146)&&/^(sandbox|production)$/[C(690)](e),version:e=>e===ni(144)||typeof e===ni(146)&&/^v\d{1,2}(\.\d{0,3}){0,3}$/[ni(135)](e)},kS=e=>{var t;((n,r)=>{var s=C;const i=Xa;if(n&&r){const o=Object[s(359)](n)[s(422)](a=>!r[i(194)](a)||r[a]===void 0||!n[a](r[a]))[i(197)](a=>new Zs(Je[i(201)],a,!0));if(o[i(198)]){const[a]=o;throw a}}})(RS,e),(t=e)&&(ra=Object.assign({},ra,t))};function tc(){var e=C;const t=[e(591),e(576),e(611),"4202RbmDMY",e(445),e(727),e(517),e(690),e(624),e(292),e(717),e(299),"1611912xHkDlR",e(452)];return(tc=function(){return t})()}function nc(){var e=C;const t=[e(379),e(380),e(686),e(522),"248VddyCN","1828569LfJoFC","11940faSemP",e(661),e(482),"9YYlhsV",e(457),e(651),e(375),e(255),e(641),e(160)];return(nc=function(){return t})()}(function(){var e=C;const t=rc,n=nc();for(;;)try{if(-parseInt(t(271))/1*(-parseInt(t(278))/2)+-parseInt(t(275))/3+-parseInt(t(274))/4*(-parseInt(t(266))/5)+-parseInt(t(280))/6*(-parseInt(t(272))/7)+parseInt(t(277))/8*(-parseInt(t(279))/9)+parseInt(t(269))/10*(-parseInt(t(270))/11)+-parseInt(t(276))/12*(-parseInt(t(268))/13)==356241)break;n[e(795)](n.shift())}catch{n[e(795)](n.shift())}})();function rc(e,t){const n=nc();return(rc=function(r,s){return n[r-=266]})(e,t)}function sc(){var e=C;const t=[e(422),e(530),e(338),e(202),"push",e(183),e(740),e(763),"137247nsOmnY",e(544),e(554),e(628),e(297),e(555)];return(sc=function(){return t})()}function Tp(e,t){const n=sc();return(Tp=function(r,s){return n[r-=169]})(e,t)}function Ap(e,t){var n=ic();return(Ap=function(r,s){return n[r-=337]})(e,t)}function ic(){var e=C,t=[e(466),e(762),e(255),e(548),e(391),e(557),e(277),e(706),"2051dwZdDh",e(199),e(503),e(342),e(422),"182295YeOYne",e(382),e(575),e(520),e(629),"apply","40247440IrIkgT",e(672),"push","getOwnPropertyDescriptors","indexOf",e(326),e(359)];return(ic=function(){return t})()}function oc(){var e=C,t=["16oYUCaR",e(495),e(643),e(220),"944418PqxCQU","808467xfwLHr",e(283),"10QxKTBX",e(153),e(459)];return(oc=function(){return t})()}function Rp(e,t){var n=oc();return(Rp=function(r,s){return n[r-=171]})(e,t)}function ac(){var e=["INVALID","UNHANDLED","HTTP","UNAUTHORIZED","13163230kGdpsc","856juyAkB","TIMEOUT","350256uPlzjN","5054ruXNQI","2450577zCNjjI","2339148NeQscF","REQUEST_TIMEOUT","REQUIRED","BAD_REQUEST","60389xcocgx","11tPlygx","NOT_FOUND","301vJXIvb","UNABLE_TO_FIND","NOT_LOADED","6497910YprBBF","40ngIbUX","UNDEFINED"];return(ac=function(){return e})()}var ri,zt,et,kp,We,Ht,Pp,Op,si,Lp,cc,ii;function oi(e,t){var n=ac();return(oi=function(r,s){return n[r-=335]})(e,t)}function lc(e,t){var n=uc();return(lc=function(r,s){return n[r-=341]})(e,t)}function uc(){var e=["CopyButton","copy-button","reveal","2917173skLMeQ","1820964OqZzNt","510315wlwfez","441522swQxzn","3761920KVvMuv","8178336dFaxYN","Reveal","5qbCaQQ","4044603UhdGqT"];return(uc=function(){return e})()}function dc(e,t){var n=fc();return(dc=function(r,s){return n[r-=235]})(e,t)}function fc(){var e=["production","33vyRaSe","238515PNqZTX","2664777SEHPlq","200dnfHzp","4RQDQWC","14080653FGOkOA","sandbox","1893258distuZ","SANDBOX","1705123ZWIxjP","171829ajvFNO","7942010cWpsFH","84YuXwGF"];return(fc=function(){return e})()}function pc(){var e=["270103qoQgEd","12itkIzk","14nsIwws","9iCTJgp","74736ETbfqk","44358azBwEp","10oyDFLF","4394507nLBhNm","2eigAEs","2127030LnauBX","11vgTOSS","164277JtqPnT","10312LfzXXQ"];return(pc=function(){return e})()}function Np(e,t){var n=pc();return(Np=function(r,s){return n[r-=366]})(e,t)}function ai(e,t){const n=hc();return(ai=function(r,s){return n[r-=152]})(e,t)}(function(){var e=C;const t=Tp,n=sc();for(;;)try{if(-parseInt(t(172))/1*(-parseInt(t(174))/2)+parseInt(t(179))/3+parseInt(t(177))/4*(-parseInt(t(173))/5)+-parseInt(t(182))/6*(-parseInt(t(181))/7)+parseInt(t(169))/8+-parseInt(t(170))/9+parseInt(t(178))/10*(-parseInt(t(180))/11)==757080)break;n[e(795)](n[e(189)]())}catch{n[e(795)](n[e(189)]())}})(),function(){for(var e=C,t=Ap,n=ic();;)try{if(parseInt(t(355))/1+parseInt(t(342))/2*(parseInt(t(357))/3)+parseInt(t(338))/4+-parseInt(t(362))/5+parseInt(t(340))/6*(parseInt(t(339))/7)+parseInt(t(358))/8*(parseInt(t(344))/9)+-parseInt(t(350))/10==959569)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=C,t=Rp,n=oc();;)try{if(-parseInt(t(172))/1+-parseInt(t(175))/2*(-parseInt(t(173))/3)+parseInt(t(174))/4+-parseInt(t(177))/5+-parseInt(t(171))/6*(-parseInt(t(180))/7)+-parseInt(t(178))/8*(parseInt(t(179))/9)+parseInt(t(176))/10==940869)break;n.push(n[e(189)]())}catch{n[e(795)](n[e(189)]())}}(),function(){for(var e=oi,t=ac();;)try{if(parseInt(e(336))/1*(-parseInt(e(350))/2)+-parseInt(e(351))/3+parseInt(e(352))/4+parseInt(e(340))/5*(parseInt(e(349))/6)+parseInt(e(356))/7*(-parseInt(e(347))/8)+parseInt(e(339))/9+-parseInt(e(346))/10*(-parseInt(e(357))/11)===589533)break;t.push(t.shift())}catch{t.push(t.shift())}}(),(zt=ri||(ri={}))[(et=oi)(354)]="REQUIRED",zt[et(341)]=et(341),zt[et(337)]="UNABLE_TO_FIND",zt.NOT_LOADED=et(338),zt[et(342)]=et(342),zt.HTTP=et(344),zt[et(348)]=et(348),zt[et(343)]=et(343),We=kp||(kp={}),Ht=oi,We[We.OK=200]="OK",We[We[Ht(355)]=400]=Ht(355),We[We[Ht(335)]=404]=Ht(335),We[We.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",We[We[Ht(353)]=408]=Ht(353),We[We.UNAUTHORIZED=401]=Ht(345),function(){for(var e=lc,t=uc();;)try{if(parseInt(e(345))/1+-parseInt(e(344))/2+-parseInt(e(351))/3+parseInt(e(347))/4+-parseInt(e(350))/5*(-parseInt(e(346))/6)+parseInt(e(343))/7+parseInt(e(348))/8===704730)break;t.push(t.shift())}catch{t.push(t.shift())}}(),(Op=Pp||(Pp={}))[(si=lc)(349)]=si(342),Op[si(352)]=si(341),function(){for(var e=dc,t=fc();;)try{if(-parseInt(e(236))/1+-parseInt(e(248))/2+parseInt(e(243))/3*(parseInt(e(245))/4)+parseInt(e(242))/5*(-parseInt(e(239))/6)+parseInt(e(237))/7*(-parseInt(e(244))/8)+parseInt(e(246))/9+-parseInt(e(238))/10*(-parseInt(e(241))/11)===902110)break;t.push(t.shift())}catch{t.push(t.shift())}}(),cc=Lp||(Lp={}),ii=dc,cc.PRODUCTION=ii(240),cc[ii(235)]=ii(247),function(){for(var e=Np,t=pc();;)try{if(-parseInt(e(368))/1*(-parseInt(e(376))/2)+-parseInt(e(371))/3*(parseInt(e(367))/4)+parseInt(e(374))/5*(parseInt(e(373))/6)+parseInt(e(370))/7*(parseInt(e(372))/8)+-parseInt(e(366))/9+-parseInt(e(377))/10*(-parseInt(e(378))/11)+-parseInt(e(369))/12*(parseInt(e(375))/13)===152250)break;t.push(t.shift())}catch{t.push(t.shift())}}(),function(){const e=ai,t=hc();for(;;)try{if(-parseInt(e(166))/1*(parseInt(e(155))/2)+parseInt(e(157))/3+parseInt(e(164))/4+-parseInt(e(159))/5+parseInt(e(158))/6*(parseInt(e(168))/7)+parseInt(e(165))/8*(-parseInt(e(152))/9)+parseInt(e(154))/10===424938)break;t.push(t.shift())}catch{t.push(t.shift())}}();const PS=()=>new Promise((e,t)=>{const n=ai;if(((r=Qs[C(172)])=>{const s=rc;try{return document.querySelectorAll(s(273)+r+s(281))[s(267)]>0}catch{return!1}})()&&window[n(153)])e(window[n(153)]);else if(!window[n(153)]){const r=(()=>{const s=ai,i=document.createElement(s(161));return i.src=Qs.getFullCdn(s(156),s(163)),up(i),i})();return r.onload=()=>{const s=n;window[s(153)]?e(window.APTokenizer):t(new Zs(ri[s(167)],s(160),!0))},void(r[n(162)]=()=>t(new Zs(ri[n(169)],"SCRIPT",!0)))}});function hc(){const e=["31456JYMHzf","928wCafiN","156wRIJHE","UNDEFINED","2317DECIua","NOT_LOADED","62802oYTinX","APTokenizer","20534150rAmYXS","8482vGJDwh","tokenizer-sdk","793641JyeeYi","2676hrMTeo","2887350YWJLUu","Astropay Web Tokenizer","script","onerror","astropay-tokenizer.min.js"];return(hc=function(){return e})()}var mc=Rt;function Mp(e,t,n,r,s,i,o){var a=Rt;try{var c=e[i](o),l=c[a(293)]}catch(u){return void n(u)}c[a(304)]?t(l):Promise.resolve(l)[a(303)](r,s)}(function(){for(var e=Rt,t=gc();;)try{if(-parseInt(e(297))/1+-parseInt(e(301))/2*(parseInt(e(302))/3)+parseInt(e(292))/4+parseInt(e(305))/5+-parseInt(e(300))/6+parseInt(e(295))/7*(parseInt(e(294))/8)+parseInt(e(306))/9*(parseInt(e(298))/10)===667472)break;t.push(t.shift())}catch{t.push(t.shift())}})(),Promise[mc(308)]()[mc(303)](()=>{var e=mc;typeof window!==e(299)&&!window[e(291)]&&((()=>{const t=Za;ti(t(385),Kn[t(395)][t(390)][un()[t(387)]]),ti(t(385),Kn[t(395)][t(396)][un()[t(387)]])})(),(()=>{var t=C;const n=Ka;ti(n(263),Kn[n(255)][n(259)][un()[n(264)]]),ti(n(263),Kn[n(255)][t(363)][un()[n(264)]])})())});const OS=(Dp=function*(e){kS(e);const t={initRevealer:(n=e)=>{var r,s=Rt;return(r=window[s(291)])===null||r===void 0?void 0:r[s(307)](n)},initCollector:(n=e)=>{var r,s=Rt;return(r=window[s(291)])===null||r===void 0?void 0:r[s(289)](n)}};return new Promise((n,r)=>{var s=Rt;typeof window!==s(299)?window[s(291)]?n(t):PS()[s(303)](()=>{n(t)})[s(296)](i=>{r(i)}):r(s(290))})},Fp=function(){var e=this,t=arguments;return new Promise(function(n,r){var s=Dp[Rt(309)](e,t);function i(a){Mp(s,n,r,i,o,"next",a)}function o(a){Mp(s,n,r,i,o,"throw",a)}i(void 0)})},function(e){return Fp[Rt(309)](this,arguments)});var Dp,Fp;function Rt(e,t){var n=gc();return(Rt=function(r,s){return n[r-=289]})(e,t)}function gc(){var e=["APTokenizer","4582976tSGCgi","value","373232tEwSlg","63KVvFap","catch","1156122MmdZsQ","142260eHWUOj","undefined","7303908VsgDsd","6URBYWa","276963Gnzkoo","then","done","3355345JCZnlM","684orEnOE","initRevealer","resolve","apply","initCollector","new SDKError(ErrorType.UNDEFINED, 'window', true)"];return(gc=function(){return e})()}const LS="v1.1.3";class NS{constructor(t,n){v(this,"collector");v(this,"form");v(this,"fields");v(this,"callback");this.fields=t,this.callback=n}async init(t){const n="production";try{const r=await OS({environment:n,version:LS});this.collector=r.initCollector(),this.form=this.collector.createForm(s=>{if(this.callback){const i=Object.entries(s).reduce((o,[a,c])=>(o[a]={isValid:c.isValid||!c.isDirty&&!c.isTouched,isTouched:c.isTouched||c.isDirty},o),{});this.callback(i)}}),this.fields.forEach(({field:s,...i})=>{this.form.field(s,i)}),t==null||t()}catch(r){throw console.error(r),r}}async tokenizeCard(t,n,r){try{const{accessToken:s}=await Gs.getPciToken({userId:t});return this.form.accessToken=s,await new Promise((i,o)=>{this.form.submit(a=>{const c={paymentData:{cardNumberTkn:a.card_number.value,cvcTkn:a.card_cvc.value},visualData:{expirationDate:a.card_exp.value,firstSixDigits:a.card_number.details.bin.substring(0,6),holderName:a.card_holder.value,lastFourDigits:a.card_number.details.lastFour,type:a.card_number.details.brand||"unknown"}};n(c),i()},()=>{r(),o(new Error("generic_error"))})})}catch{return r(),Promise.reject(new Error("generic_error"))}}unmount(){var t;(t=this.form)==null||t.tearDown()}}var Bp=(e=>(e.CREATING="CREATING",e.PENDING="PENDING",e.APPROVED="APPROVED",e.EXPIRED="EXPIRED",e.FAILED="FAILED",e))(Bp||{});const ci={fontSize:"16px",lineHeight:"24px"},MS=(e,{error:t=!1,disabled:n=!1})=>W`
|
|
522
522
|
display: flex;
|
|
523
523
|
flex-direction: column;
|
|
524
524
|
gap: 12px;
|
|
@@ -12045,7 +12045,7 @@ async function c5(e = l5) {
|
|
|
12045
12045
|
async function l5() {
|
|
12046
12046
|
return (await import(
|
|
12047
12047
|
/* webpackChunkName: "recorder" */
|
|
12048
|
-
"./startRecording-
|
|
12048
|
+
"./startRecording-BCEjhzBl.js"
|
|
12049
12049
|
)).startRecording;
|
|
12050
12050
|
}
|
|
12051
12051
|
function u5() {
|
|
@@ -12065,7 +12065,7 @@ async function d5(e = p5) {
|
|
|
12065
12065
|
async function p5() {
|
|
12066
12066
|
return (await import(
|
|
12067
12067
|
/* webpackChunkName: "profiler" */
|
|
12068
|
-
"./profiler-
|
|
12068
|
+
"./profiler-DT2ixCdB.js"
|
|
12069
12069
|
)).createRumProfiler;
|
|
12070
12070
|
}
|
|
12071
12071
|
function f5() {
|
|
@@ -12103,7 +12103,7 @@ const gn = class gn {
|
|
|
12103
12103
|
site: "datadoghq.com",
|
|
12104
12104
|
service: "astropay-payments-library",
|
|
12105
12105
|
env: "production",
|
|
12106
|
-
version: "0.
|
|
12106
|
+
version: "1.0.0",
|
|
12107
12107
|
sessionSampleRate: 50,
|
|
12108
12108
|
sessionReplaySampleRate: 10,
|
|
12109
12109
|
defaultPrivacyLevel: "mask-user-input",
|
|
@@ -14039,7 +14039,7 @@ v(X, "GET", async ({
|
|
|
14039
14039
|
app_id: bt.getToken(),
|
|
14040
14040
|
environment: Qe.getEnvironment(),
|
|
14041
14041
|
platform: Ku(),
|
|
14042
|
-
version: "0.
|
|
14042
|
+
version: "1.0.0"
|
|
14043
14043
|
};
|
|
14044
14044
|
return Lu(t);
|
|
14045
14045
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as A, C, b as ft, i as Y, g as V, N as h, P as X, S as pt, a as B, c as ht, d as mt, e as St, f as q, r as gt, h as Et, j as yt, k as Tt, l as j, m as J, t as _, n as x, o as M, p as K, q as N, u as Q, v as Z, w as Nt, x as vt, y as b, z as D, A as R, B as wt, D as Mt, E as It, F as Rt, G as Ct, H as bt, I as _t, J as Lt, K as Dt, L as xt, M as Ot, O as At, Q as Vt, R as Pt, T as kt, U as zt } from "./main
|
|
1
|
+
import { s as A, C, b as ft, i as Y, g as V, N as h, P as X, S as pt, a as B, c as ht, d as mt, e as St, f as q, r as gt, h as Et, j as yt, k as Tt, l as j, m as J, t as _, n as x, o as M, p as K, q as N, u as Q, v as Z, w as Nt, x as vt, y as b, z as D, A as R, B as wt, D as Mt, E as It, F as Rt, G as Ct, H as bt, I as _t, J as Lt, K as Dt, L as xt, M as Ot, O as At, Q as Vt, R as Pt, T as kt, U as zt } from "./main-1w_Hhk-H.js";
|
|
2
2
|
const P = /* @__PURE__ */ new WeakMap();
|
|
3
3
|
function T(t) {
|
|
4
4
|
return P.has(t);
|
package/package.json
CHANGED