1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8678:function(t,e,n){"use strict";n.d(e,{r:function(){return a},y:function(){return s}});var r=n(812),i=n(4933),o=n(3842);function a(t){let e={version:"6.23.0",onReady(t){t()},...t};return Object.defineProperty(e,"_setDebug",{get:()=>i.yD,enumerable:!1}),e}function s(t,e,n){let i=t[e];i&&!i.q&&i.version&&o.jf.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=n,i&&i.q&&i.q.forEach(t=>(0,r.Z)(t,"onReady callback threw an error:")())}},3206:function(t,e,n){"use strict";n.d(e,{O:function(){return o},y:function(){return a}});var r=n(4933),i=n(9693);function o(t,e,n,r,i){return a(t,e,[n],r,i)}function a(t,e,n,o,{once:a,capture:s,passive:u}={}){let c=(0,r.zk)(e=>{(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(a&&p(),o(e))}),l=u?{capture:s,passive:u}:s,d=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,f=(0,i.I)(d,"addEventListener");function p(){let t=(0,i.I)(d,"removeEventListener");n.forEach(n=>t.call(e,n,c,l))}return n.forEach(t=>f.call(e,t,c,l)),{stop:p}}},7581:function(t,e,n){"use strict";n.d(e,{FP:function(){return s},PT:function(){return u},k$:function(){return a}});var r=n(5721),i=n(4776),o=n(3206);let a={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function s(t){return new r.y$(e=>{let{stop:n}=(0,o.y)(t,window,["visibilitychange","freeze"],t=>{"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:a.HIDDEN}):"freeze"===t.type&&e.notify({reason:a.FROZEN})},{capture:!0}),r=(0,o.O)(t,window,"beforeunload",()=>{e.notify({reason:a.UNLOADING})}).stop;return()=>{n(),r()}})}function u(t){return(0,i.TT)(a).includes(t)}},193:function(t,e,n){"use strict";n.d(e,{T:function(){return o},_:function(){return a}});var r=n(251),i=n(3206);function o(t,e,n){return document.readyState===e||"complete"===document.readyState?(n(),{stop:r.Z}):(0,i.O)(t,window,"complete"===e?"load":"DOMContentLoaded",n,{once:!0})}function a(t,e){return new Promise(n=>{o(t,e,n)})}},8826:function(t,e,n){"use strict";n.d(e,{T:function(){return i}});var r=n(1145);function i(){var t;let e=r.Zf.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}},5242:function(t,e,n){"use strict";n.d(e,{AP:function(){return u},K$:function(){return s},VZ:function(){return c}});var r=n(8566),i=n(9012),o=n(2685),a=n(4507);let s="No stack, consider using an instance of Error";function u({stackTrace:t,originalError:e,handlingStack:n,componentStack:u,startClocks:l,nonErrorPrefix:d,useFallbackStack:f=!0,source:p,handling:h}){var g;let m=c(e);return!t&&m&&(t=(0,o._)(e)),{startClocks:l,source:p,handling:h,handlingStack:n,componentStack:u,originalError:e,type:t?t.name:void 0,message:(null==(g=t)?void 0:g.message)&&(null==g?void 0:g.name)?g.message:m?"Empty message":`${d} ${(0,i.l)((0,r.N)(e))}`,stack:t?(0,a.P3)(t):f?s:void 0,causes:m?function(t,e){let n=t,r=[];for(;c(null==n?void 0:n.cause)&&r.length<10;){let t=(0,o._)(n.cause);r.push({message:n.cause.message,source:e,type:null==t?void 0:t.name,stack:t&&(0,a.P3)(t)}),n=n.cause}return r.length?r:void 0}(e,p):void 0,fingerprint:c(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0,context:function(t){if(null!==t&&"object"==typeof t&&"dd_context"in t)return t.dd_context}(e)}}function c(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}},2419:function(t,e,n){"use strict";n.d(e,{z:function(){return r}});let r={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}},3909:function(t,e,n){"use strict";n.d(e,{DZ:function(){return r},D_:function(){return o},Ds:function(){return a},Rg:function(){return c},by:function(){return i},iL:function(){return u},y7:function(){return s}});let r="datad0g.com",i="dd0g-gov.com",o="datadoghq.com",a="datadoghq.eu",s="ddog-gov.com",u="pci.browser-intake-datadoghq.com",c=["ddsource","dd-api-key","dd-request-id"]},9276:function(t,e,n){"use strict";n.d(e,{MS:function(){return i}});var r=n(3842);function i(t){let{env:e,service:n,version:r,datacenter:i,sdkVersion:a,variant:s}=t,u=[o("sdk_version",null!=a?a:"6.23.0")];return e&&u.push(o("env",e)),n&&u.push(o("service",n)),r&&u.push(o("version",r)),i&&u.push(o("datacenter",i)),s&&u.push(o("variant",s)),u}function o(t,e){let n=e?`${t}:${e}`:t;return(n.length>200||function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(t){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(n))&&r.jf.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${r.IA} ${r.aA}/getting_started/tagging/#defining-tags`),n.replace(/,/g,"_")}},8797:function(t,e,n){"use strict";let r;n.d(e,{Uo:function(){return P},eJ:function(){return R},Sz:function(){return A},qZ:function(){return N},eG:function(){return L},VL:function(){return I}});var i=n(3842),o=n(5242),a=n(4507),s=n(7549),u=n(9276),c=n(3909),l=n(5721),d=n(5026),f=n(4933),p=n(8971),h=n(3603),g=n(9012),m=n(2904),v=n(2685),y=n(8826),_=n(6876),b=n(3789),S=n(481),w=n(5419),E=n(9643),k=n(1145);let O={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},T=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],x=[c.y7];function C(){return r||(r=new l.fk(100)),r}function I(t,e,n,r,i,o){let a=new l.y$,{stop:v}=function(t,e,n,r,i){let o=[];if((0,_.xT)()){let t=(0,_.Ad)(),e=i.subscribe(e=>t.send("internal_telemetry",e));o.push(e.unsubscribe)}else{let a=[t.rumEndpointBuilder];t.replica&&t.site===c.DZ&&a.push(t.replica.rumEndpointBuilder);let s=(0,b.n)({encoder:r(4),request:(0,S.UF)(a,t.batchBytesLimit,e),flushController:(0,w.r)({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageMayExitObservable:n,sessionExpireOb
1servable:new l.y$}),messageBytesLimit:t.messageBytesLimit});o.push(s.stop);let u=i.subscribe(s.add);o.push(u.unsubscribe)}return{stop:()=>o.forEach(t=>t())}}(e,r,i,o,a),{enabled:T,metricsEnabled:I}=function(t,e,n,r,i=1){var o;let a={},c=!x.includes(e.site)&&(0,h.y7)(e.telemetrySampleRate),l={[O.LOG]:c,[O.CONFIGURATION]:c&&(0,h.y7)(e.telemetryConfigurationSampleRate),[O.USAGE]:c&&(0,h.y7)(e.telemetryUsageSampleRate),metric:c&&(0,h.y7)(i)},v={is_local_file:(null===(o=k.Zf.location)||void 0===o?void 0:o.protocol)==="file:",is_worker:k.jX},_=C();return _.subscribe(({rawEvent:i,metricName:o})=>{if(o&&!l.metric||!l[i.type])return;let c=o||i.status||i.type,f=a[c];if(f||(f=a[c]=new Set),f.size>=e.maxTelemetryEventsPerPage)return;let h=(0,g.l)(i);if(f.has(h))return;let _=n.triggerHook(1,{startTime:(0,d.$I)().relative});if(_===E.C_)return;let b=function(t,n,r,i){let o=(0,d.$I)(),a={type:"telemetry",date:o.timeStamp,service:n,version:"6.23.0",source:"browser",_dd:{format_version:2},telemetry:(0,m.$e)(r,{runtime_env:i,connectivity:(0,y.T)(),sdk_setup:"npm"}),ddtags:(0,u.MS)(e).join(","),experimental_features:Array.from((0,s.u0)())};return(0,m.$e)(a,t)}(_,t,i,v);r.notify(b),(0,p.j)("telemetry",b),f.add(h)}),_.unbuffer(),(0,f.P_)(A),{enabled:c,metricsEnabled:l.metric}}(t,e,n,a);return{stop:v,enabled:T,metricsEnabled:I}}function R(t,e){(0,f.DV)(i.vA.debug,t,e),C().notify({rawEvent:{type:O.LOG,message:t,status:"debug",...e}})}function A(t,e){C().notify({rawEvent:{type:O.LOG,status:"error",...function(t){if((0,o.VZ)(t)){let e=(0,v._)(t);return{error:{kind:e.name,stack:(0,a.P3)((e.stack=e.stack.filter(t=>!t.url||T.some(e=>t.url.startsWith(e))),e))},message:e.message}}return{error:{stack:o.K$},message:`Uncaught ${(0,g.l)(t)}`}}(t),...e}})}function P(t){C().notify({rawEvent:{type:O.CONFIGURATION,configuration:t}})}function N(t,e){C().notify({rawEvent:{type:O.LOG,message:t,status:"debug",...e},metricName:t})}function L(t){C().notify({rawEvent:{type:O.USAGE,usage:t}})}},9643:function(t,e,n){"use strict";n.d(e,{C_:function(){return i},kb:function(){return o},uR:function(){return a}});var r=n(2904);let i="DISCARDED",o="SKIPPED";function a(){let t={};return{register:(e,n)=>(t[e]||(t[e]=[]),t[e].push(n),{unregister:()=>{t[e]=t[e].filter(t=>t!==n)}}),triggerHook(e,n){let a=t[e]||[],s=[];for(let t of a){let e=t(n);if(e===i)return i;e!==o&&s.push(e)}return(0,r.$e)(...s)}}}},812:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(3842);function i(t,e){return(...n)=>{try{return t(...n)}catch(t){r.jf.error(e,t)}}}},3842:function(t,e,n){"use strict";n.d(e,{IA:function(){return l},Qo:function(){return c},aA:function(){return u},jG:function(){return i},jf:function(){return s},vA:function(){return r}});let r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},i=console,o={};Object.keys(r).forEach(t=>{o[t]=i[t]});let a="Datadog Browser SDK:",s={debug:o.debug.bind(i,a),log:o.log.bind(i,a),info:o.info.bind(i,a),warn:o.warn.bind(i,a),error:o.error.bind(i,a)},u="https://docs.datadoghq.com",c=`${u}/real_user_monitoring/browser/troubleshooting`,l="More details:"},7549:function(t,e,n){"use strict";n.d(e,{W_:function(){return u},fG:function(){return s},u0:function(){return c},uh:function(){return i}});var r,i,o=n(4162);(r=i||(i={})).TRACK_INTAKE_REQUESTS="track_intake_requests",r.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",r.FEATURE_OPERATION_VITAL="feature_operation_vital",r.SHORT_SESSION_INVESTIGATION="short_session_investigation",r.ENCODE_COOKIE_OPTIONS="encode_cookie_options",r.AVOID_FETCH_KEEPALIVE="avoid_fetch_keepalive";let a=new Set;function s(t){Array.isArray(t)&&function(t){t.forEach(t=>{a.add(t)})}(t.filter(t=>(0,o.E5)(i,t)))}function u(t){return a.has(t)}function c(){return a}},9693:function(t,e,n){"use strict";n.d(e,{I:function(){return i}});var r=n(1145);function i(t,e){let n;let i=(0,r.Rf)();return i.Zone&&"function"==typeof i.Zone.__symbol__&&(n=t[i.Zone.__symbol__(e)]),n||(n=t[e]),n}},1145:function(t,e,n){"use strict";function r(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}n.d(e,{Rf:function(){return r},Zf:function(){return i},jX:function(){return o}});let i=r(),o="WorkerGlobalScope"in i},5801:function(t,e,n){"use strict";n.d(e,{S:function(){return s},X:function(){return u}});var r=n(5483),i=n(4933),o=n(251),a=n(4507);function s(t,e,n,{computeHandlingStack:r}={}){let s=t[e];if("function"!=typeof s){if(!(e in t&&e.startsWith("on")))return{stop:o.Z};s=o.Z}
1let u=!1,c=function(){let t;if(u)return s.apply(this,arguments);let e=Array.from(arguments);(0,i.L6)(n,null,[{target:this,parameters:e,onPostCall:e=>{t=e},handlingStack:r?(0,a.Xp)("instrumented method"):void 0}]);let o=s.apply(this,e);return t&&(0,i.L6)(t,null,[o]),o};return t[e]=c,{stop:()=>{u=!0,t[e]===c&&(t[e]=s)}}}function u(t,e,n){let i=Object.getOwnPropertyDescriptor(t,e);if(!i||!i.set||!i.configurable)return{stop:o.Z};let a=o.Z,s=(t,e)=>{(0,r.iK)(()=>{s!==a&&n(t,e)},0)},u=function(t){i.set.call(this,t),s(this,t)};return Object.defineProperty(t,e,{set:u}),{stop:()=>{var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===u&&Object.defineProperty(t,e,i),s=a}}}},2904:function(t,e,n){"use strict";n.d(e,{$e:function(){return a},I8:function(){return o}});var r=n(3234);function i(t,e,n=function(){if("undefined"!=typeof WeakSet){let t=new WeakSet;return{hasAlreadyBeenSeen(e){let n=t.has(e);return n||t.add(e),n}}}let t=[];return{hasAlreadyBeenSeen(e){let n=t.indexOf(e)>=0;return n||t.push(e),n}}}()){if(void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return RegExp(e.source,t)}if(n.hasAlreadyBeenSeen(e))return;if(Array.isArray(e)){let r=Array.isArray(t)?t:[];for(let t=0;t<e.length;++t)r[t]=i(r[t],e[t],n);return r}let o="object"===(0,r.o)(t)?t:{};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=i(o[t],e[t],n));return o}function o(t){return i(void 0,t)}function a(...t){let e;for(let n of t)null!=n&&(e=i(e,n));return e}},4933:function(t,e,n){"use strict";let r;n.d(e,{$y:function(){return l},DV:function(){return d},L6:function(){return c},P_:function(){return a},yD:function(){return s},zk:function(){return u}});var i=n(3842);let o=!1;function a(t){r=t}function s(t){o=t}function u(t){return function(){return c(t,this,arguments)}}function c(t,e,n){try{return t.apply(e,n)}catch(t){l(t)}}function l(t){if(d(t),r)try{r(t)}catch(t){d(t)}}function d(...t){o&&i.jf.error("[MONITOR]",...t)}},5721:function(t,e,n){"use strict";n.d(e,{fk:function(){return u},y$:function(){return a},$Z:function(){return s}});var r=n(4933),i=n(1145);function o(t){var e;let n=null===(e=i.Zf.queueMicrotask)||void 0===e?void 0:e.bind(i.Zf);"function"==typeof n?n((0,r.zk)(t)):Promise.resolve().then((0,r.zk)(t))}class a{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(e=>e(t))}addObserver(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(e=>t!==e),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function s(...t){return new a(e=>{let n=t.map(t=>t.subscribe(t=>e.notify(t)));return()=>n.forEach(t=>t.unsubscribe())})}class u extends a{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}subscribe(t){let e=!1;return o(()=>{for(let n of this.buffer){if(e)return;t(n)}e||this.addObserver(t)}),{unsubscribe:()=>{e=!0,this.removeObserver(t)}}}unbuffer(){o(()=>{this.maxBufferSize=this.buffer.length=0})}}},1337:function(t,e,n){"use strict";n.d(e,{Kk:function(){return a}});var r=n(5483),i=n(4933),o=n(5026);function a(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){let n=window.requestIdleCallback((0,i.zk)(t),e);return()=>window.cancelIdleCallback(n)}return function(t){let e=(0,o.m6)(),n=(0,r.iK)(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,o.m6)()-e))})},0);return()=>(0,r.gr)(n)}(t)}},8971:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});var r=n(1145);function i(t,e){let n=r.Zf.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}},9012:function(t,e,n){"use strict";n.d(e,{l:function(){return i},y:function(){return o}});var r=n(251);function i(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);let r=o(Object.prototype),i=o(Array.prototype),a=o(Object.getPrototypeOf(t)),s=o(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),a(),s()}}function o(t){let e=t,n=e.toJSON;return n?(delete e.toJSON,()=>{e.toJSON=n}):r.Z}},8566:function(t,e,n){"use strict";n.d(e,{N:function(){return s}});var r=n(3842),i=n(1962),o=n(9012);let a=220*i.Hi;function s(t,e=a){let n=(0,o.y)(Object.prototype),r=(0,o.y)(Array.prototype),i=[],s=new WeakMap,l=u(t,"$",void 0,i,s),d=JSON.stringify(l),f=d?d.length:0;if(f>e){c(e,"discarded",t);return}for(;i.length>0&&f<e;){let n=i.shift(),r=0;if(Array.isArray(n.source))for(let o=0;o<n.source.length;o++){let a=u(n.source[o],n.path,o,i,s);if(void 0!==a?f+=JSON.stringify(a).length:f+=4,f+=r,r=1,f>e){c(e,"truncated",t);break}n.target[o]=a}else for(let o in n.source)if(Object.prototype.hasOwnProperty.call(n.source,o)){let a=u(n.source[o],n.path,o,i,s);if(void 0!==a&&(f+=JSON.stringify(a).length+r+o.length+3,r=1),f>e){c(e,"truncated",t);break}n.target[o]=a}}return n(),r(),l}function u(t,e,n,r,i){let o=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!o||"object"!=typeof o)return"bigint"==typeof o?`[BigInt] ${o.toString()}`:"function"==typeof o?`[Function] ${o.name||"unknown"}`:"symbol"==typeof o?`[Symbol] ${o.description||o.toString()}`:o;let a=function t(e){try{if(e instanceof Event)return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?t(e.currentTarget):null,target:e.target?t(e.target):null};if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;let n=Object.prototype.toString.call(e),r=n.match(/\[object (.*)\]/);if(r&&r[1])return`[${r[1]}]`}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;
1if(i.has(t))return`[Reference seen at ${i.get(t)}]`;let s=void 0!==n?`${e}.${n}`:e,u=Array.isArray(o)?[]:{};return i.set(t,s),r.push({source:o,target:u,path:s}),u}function c(t,e,n){r.jf.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,n)}},2685:function(t,e,n){"use strict";let r;function i(t){var e,n;let i=[],o=p(t,"stack"),a=String(t);if(o&&o.startsWith(a)&&(o=o.slice(a.length)),o&&o.split("\n").forEach(t=>{let e=function(t){let e=s.exec(t);if(!e)return;let n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=u.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){let e=c.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:"?",line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){let e=l.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:+e[3],url:e[2]}}(t)||function(t){let e=d.exec(t);if(!e)return;let n=e[3]&&e[3].indexOf(" > eval")>-1,r=f.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||"?",line:e[4]?+e[4]:void 0,url:e[3]}}(t);e&&(!e.func&&e.line&&(e.func="?"),i.push(e))}),i.length>0&&function(){if(void 0!==r)return r;let[t,e]=[class extends Error{constructor(){super(),this.name="Error"}},Error].map(t=>new t);return r=m(Object.getPrototypeOf(t))&&e.stack!==t.stack}()&&t instanceof Error){let r=[],o=t;for(;(o=Object.getPrototypeOf(o))&&m(o);){let t=(null===(e=o.constructor)||void 0===e?void 0:e.name)||"?";r.push(t)}for(let t=r.length-1;t>=0&&(null===(n=i[0])||void 0===n?void 0:n.func)===r[t];t--)i.shift()}return{message:p(t,"message"),name:p(t,"name"),stack:i}}n.d(e,{_:function(){return i},f:function(){return h}});let o="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",a="(?::(\\d+))",s=RegExp(`^\\s*at (.*?) ?\\(${o}${a}?${a}?\\)?\\s*$`,"i"),u=RegExp(`\\((\\S*)${a}${a}\\)`),c=RegExp(`^\\s*at ?${o}${a}?${a}??\\s*$`,"i"),l=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,d=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,f=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function p(t,e){if("object"!=typeof t||!t||!(e in t))return;let n=t[e];return"string"==typeof n?n:void 0}function h(t,e,n,r){let i,o;if(void 0===e)return;let{name:a,message:s}=("[object String]"===({}).toString.call(t)&&([,i,o]=g.exec(t)),{name:i,message:o});return{name:a,message:s,stack:[{url:e,column:r,line:n}]}}let g=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function m(t){return String(t.constructor).startsWith("class ")}},4507:function(t,e,n){"use strict";n.d(e,{P3:function(){return a},Xp:function(){return o},jN:function(){return s}});var r=n(4933),i=n(2685);function o(t){let e;let n=Error(t);return n.name="HandlingStack",(0,r.L6)(()=>{let t=(0,i._)(n);t.stack=t.stack.slice(2),e=a(t)}),e}function a(t){let e=s(t);return t.stack.forEach(t=>{let n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",i=t.line?`:${t.line}`:"",o=t.line&&t.column?`:${t.column}`:"";e+=` 2 at ${n}${r} @ ${t.url}${i}${o}`}),e}function s(t){return`${t.name||"Error"}: ${t.message}`}},5483:function(t,e,n){"use strict";n.d(e,{Zi:function(){return u},cv:function(){return c},gr:function(){return s},iK:function(){return a}});var r=n(9693),i=n(4933),o=n(1145);function a(t,e){return(0,r.I)((0,o.Rf)(),"setTimeout")((0,i.zk)(t),e)}function s(t){(0,r.I)((0,o.Rf)(),"clearTimeout")(t)}function u(t,e){return(0,r.I)((0,o.Rf)(),"setInterval")((0,i.zk)(t),e)}function c(t){(0,r.I)((0,o.Rf)(),"clearInterval")(t)}},2172:function(t,e,n){"use strict";let r;function i(){return 0===a()}function o(){return 1===a()}function a(){return null!=r?r:r=function(t=window){var e;let n=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(n)?0:(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}()}n.d(e,{G6:function(){return o},mJ:function(){return i}})},1962:function(t,e,n){"use strict";n.d(e,{Hi:function(){return r},Kb:function(){return s},X9:function(){return i},qt:function(){return a}});let r=1024,i=1024*r,o=/[^\u0000-\u007F]/;function a(t){return o.test(t)?void 0!==window.TextEncoder?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function s(t){let e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e),r=0;for(let e of t)n.set(e,r),r+=e.length;return n}},251:function(t,e,n){"use strict";n.d(e,{P:function(){return i},Z:function(){return o}});var r=n(5483);function i(t,e,n){let i,o;let a=!n||void 0===n.leading||n.leading,s=!n||void 0===n.trailing||n.trailing,u=!1;return{throttled:(...n)=>{if(u){i=n;return}a?t(...n):i=n,u=!0,o=(0,r.iK)(()=>{s&&i&&t(...i),u=!1,i=void 0},e)},cancel:()=>{(0,r.gr)(o),u=!1,i=void 0}}}function o(){}},3603:function(t,e,n){"use strict";function r(t){return 0!==t&&100*Math.random()<=t}function i(t,e){return+t.toFixed(e)}function o(t){return a(t)&&t>=0&&t<=100}function a(t){return"number"==typeof t}n.d(e,{NM:function(){return i},hj:function(){return a},y7:function(){return r},zz:function(){return o}})},4162:function(t,e,n){"use strict";function r(t){return{...t}}function i(t,e){return Object.keys(t).some(n=>t[n]===e)}function o(t){return 0===Object.keys(t).length}function a(t,e){let n={};for(let r of Object.keys(t))n[r]=e(t[r]);return n}n.d(e,{E5:function(){return i},Q8:function(){return a},Qr:function(){return o},mv:function(){return r}})},4776:function(t,e,n){"use strict";function r(t,e){for(let n=t.length-1;n>=0;n-=1){let r=t[n];if(e(r,n,t))return r}}function i(t){return Object.values(t)}function o(t){return Object.entries(t)}n.d(e,{TT:function(){return i},dF:function(){return r},qP:function(){return o}})},9100:function(t,e,n){"use strict";function r(t){return t>=500}function i(t){try{return t.clone()}catch(t){return}}n.d(e,{o:function(){return r},u:function(){return i}})},5026:function(t,e,n){"use strict";let r;n.d(e,{$I:function(){return m},Cn:function(){return S},DY:function(){return c},P5:function(){return u},QA:function(){return d},WK:function(){return _},WT:function(){return o},_J:function(){return y},_q:function(){return g},c0:function(){return f},cQ:function(){return v},dV:function(){return s}
2,lO:function(){return l},m6:function(){return p},n$:function(){return h},ni:function(){return b},yR:function(){return a}});var i=n(3603);let o=1e3,a=60*o,s=60*a,u=365*(24*s);function c(t){return{relative:t,timeStamp:function(t){var e,n;let r=p()-performance.now();return r>w()?Math.round((e=r)+(n=t)):Math.round(w()+t)}(t)}}function l(t){return{relative:b(t),timeStamp:t}}function d(){var t;return Math.round(p()-(w()+performance.now()))}function f(t){return(0,i.hj)(t)?(0,i.NM)(1e6*t,0):t}function p(){return new Date().getTime()}function h(){return p()}function g(){return performance.now()}function m(){return{relative:g(),timeStamp:h()}}function v(){return{relative:0,timeStamp:w()}}function y(t,e){return e-t}function _(t,e){return t+e}function b(t){return t-w()}function S(t){return t<u}function w(){var t,e;return void 0===r&&(r=null!==(e=null===(t=performance.timing)||void 0===t?void 0:t.navigationStart)&&void 0!==e?e:performance.timeOrigin),r}},3234:function(t,e,n){"use strict";function r(t){return null===t?"null":Array.isArray(t)?"array":typeof t}n.d(e,{o:function(){return r}})},170:function(t,e,n){"use strict";let r;n.d(e,{D5:function(){return o},Q2:function(){return u},jv:function(){return a},ye:function(){return s}});var i=n(1145);function o(t){return u(t,location.href).href}function a(t){try{return!!u(t)}catch(t){return!1}}function s(t){let e=u(t).pathname;return"/"===e[0]?e:`/${e}`}function u(t,e){let{URL:n}=function(){if(!r){let t,e;try{(t=document.createElement("iframe")).style.display="none",document.body.appendChild(t),e=t.contentWindow}catch(t){e=i.Zf}r={URL:e.URL},null==t||t.remove()}return r}();try{return void 0!==e?new n(t,e):new n(t)}catch(t){throw Error(`Failed to construct URL: ${String(t)}`)}}},3789:function(t,e,n){"use strict";n.d(e,{n:function(){return u}});var r=n(3842),i=n(4776),o=n(7581),a=n(9012),s=n(1962);function u({encoder:t,request:e,flushController:n,messageBytesLimit:u}){let l={},d=n.flushObservable.subscribe(n=>(function(n){let r=(0,i.TT)(l).join("\n");l={};let a=(0,o.PT)(n.reason),u=a?e.sendOnExit:e.send;if(a&&t.isAsync){let e=t.finishSync();e.outputBytesCount&&u(c(e));let n=[e.pendingData,r].filter(Boolean).join("\n");n&&u({data:n,bytesCount:(0,s.qt)(n)})}else r&&t.write(t.isEmpty?r:` 3${r}`),t.finish(t=>{u(c(t))})})(n));function f(e,i){let o=(0,a.l)(e),s=t.estimateEncodedBytesCount(o);if(s>=u){r.jf.warn(`Discarded a message whose size was bigger than the maximum allowed size ${u}KB. ${r.IA} ${r.Qo}/#technical-limitations`);return}void 0!==i&&void 0!==l[i]&&function(e){let r=l[e];delete l[e];let i=t.estimateEncodedBytesCount(r);n.notifyAfterRemoveMessage(i)}(i),n.notifyBeforeAddMessage(s),void 0!==i?(l[i]=o,n.notifyAfterAddMessage()):t.write(t.isEmpty?o:` 4${o}`,t=>{n.notifyAfterAddMessage(t-s)})}return{flushController:n,add:f,upsert:f,stop:d.unsubscribe}}function c(t){let e;return e="string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),{data:e,bytesCount:t.outputBytesCount,encoding:t.encoding}}},6876:function(t,e,n){"use strict";n.d(e,{Ad:function(){return i},ke:function(){return o},xT:function(){return a}});var r=n(1145);function i(){let t=(0,r.Rf)().DatadogEventBridge;if(t)return{getCapabilities(){var e;return JSON.parse((null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t))||"[]")},getPrivacyLevel(){var e;return null===(e=t.getPrivacyLevel)||void 0===e?void 0:e.call(t)},getAllowedWebViewHosts:()=>JSON.parse(t.getAllowedWebViewHosts()),send(e,n,r){t.send(JSON.stringify({eventType:e,event:n,view:r?{id:r}:void 0}))}}}function o(t){let e=i();return!!e&&e.getCapabilities().includes(t)}function a(t){var e;void 0===t&&(t=null===(e=(0,r.Rf)().location)||void 0===e?void 0:e.hostname);let n=i();return!!n&&n.getAllowedWebViewHosts().some(e=>t===e||t.endsWith(`.${e}`))}},5419:function(t,e,n){"use strict";n.d(e,{r:function(){return o}});var r=n(5721),i=n(5483);function o({messagesLimit:t,bytesLimit:e,durationLimit:n,pageMayExitObservable:o,sessionExpireObservable:a}){let s;let u=o.subscribe(t=>p(t.reason)),c=a.subscribe(()=>p("session_expire")),l=new r.y$(()=>()=>{u.unsubscribe(),c.unsubscribe()}),d=0,f=0;function p(t){if(0===f)return;let e=f,n=d;f=0,d=0,h(),l.notify({reason:t,messagesCount:e,bytesCount:n})}function h(){(0,i.gr)(s),s=void 0}return{flushObservable:l,get messagesCount(){return f},notifyBeforeAddMessage(t){d+t>=e&&p("bytes_limit"),f+=1,d+=t,void 0===s&&(s=(0,i.iK)(()=>{p("duration_limit")},n))},notifyAfterAddMessage(n=0){d+=n,f>=t?p("messages_limit"):d>=e&&p("bytes_limit")},notifyAfterRemoveMessage(t){d-=t,0==(f-=1)&&h()}}}},481:function(t,e,n){"use strict";n.d(e,{UF:function(){return _}});var r=n(4933),i=n(7549),o=n(5721),a=n(5483),s=n(5026),u=n(1962),c=n(9100),l=n(2419);let d=80*u.Hi,f=20*u.X9,p=s.yR,h=s.WT;function g(t,e,n,r,i,o){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?m(t,e,n,o,{onSuccess:()=>v(0,e,n,r,i,o),onFailure:()=>{e.queuedPayloads.enqueue(t)||o.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),function t(e,n,r,i,o){2===e.transportStatus&&(0,a.iK)(()=>{let a=e.queuedPayloads.first();m(a,e,n,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=h,v(1,e,n,r,i,o)},onFailure:()=>{e.currentBackoffTime=Math.min(p,2*e.currentBackoffTime),t(e,n,r,i,o)}})},e.currentBackoffTime)}(e,n,r,i,o)}}):e.queuedPayloads.enqueue(t)||o.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function m(t,e,n,r,{onSuccess:i,onFailure:o}){e.bandwidthMonitor.add(t),n(t,n=>{e.bandwidthMonitor.remove(t),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||(0,c.o)(n.status))?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status}
4,r.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),o()):(e.transportStatus=0,r.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),i())})}function v(t,e,n,r,i,o){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:`Reached max ${r} events size queued for upload: ${f/u.X9}MiB`,source:l.z.AGENT,startClocks:(0,s.$I)()}),e.queueFullReported=!0);let a=e.queuedPayloads;for(e.queuedPayloads=y();a.size()>0;)g(a.dequeue(),e,n,r,i,o)}function y(){let t=[];return{bytesCount:0,enqueue(e){return!this.isFull()&&(t.push(e),this.bytesCount+=e.bytesCount,!0)},first:()=>t[0],dequeue(){let e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:()=>t.length,isFull(){return this.bytesCount>=f}}}function _(t,e,n){let a=new o.y$,s={transportStatus:0,currentBackoffTime:h,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=d&&this.ongoingRequestCount<32},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:y(),queueFullReported:!1};return{observable:a,send:o=>{for(let u of t)g(o,s,(t,n)=>{(0,i.W_)(i.uh.AVOID_FETCH_KEEPALIVE)?S(u,t,n):function(t,e,n,i){let o=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&n.bytesCount<e;if(o){let e=t.build("fetch-keepalive",n);fetch(e,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then((0,r.zk)(t=>null==i?void 0:i({status:t.status,type:t.type}))).catch((0,r.zk)(()=>S(t,n,i)))}else S(t,n,i)}(u,e,t,n)},u.trackType,n,a)},sendOnExit:n=>{for(let i of t)!function(t,e,n){let i=!!navigator.sendBeacon&&n.bytesCount<e;if(i)try{let e=t.build("beacon",n),r=navigator.sendBeacon(e,n.data);if(r)return}catch(t){b||(b=!0,(0,r.$y)(t))}S(t,n)}(i,e,n)}}}let b=!1;function S(t,e,n){let i=t.build("fetch",e);fetch(i,{method:"POST",body:e.data,mode:"cors"}).then((0,r.zk)(t=>null==n?void 0:n({status:t.status,type:t.type}))).catch((0,r.zk)(()=>null==n?void 0:n({status:0})))}},488:function(t,e,n){"use strict";let r,i,o,a,s,u,c,l,d,f,p;n.d(e,{Us:function(){return G},Xn:function(){return ny},k6:function(){return nv},zx:function(){return nh},$n:function(){return ng},nw:function(){return nm},D$:function(){return M},uo:function(){return g},YO:function(){return ni},QB:function(){return rY},Uo:function(){return e6},q5:function(){return ex},IE:function(){return nS},SZ:function(){return nE},Ow:function(){return e9},$1:function(){return rm},X_:function(){return rv},Gm:function(){return rX},FB:function(){return nx},PA:function(){return r_},Sn:function(){return e8},AX:function(){return ry},aT:function(){return e5},VO:function(){return e4},HR:function(){return er},_r:function(){return eE},Ch:function(){return nw},Pu:function(){return eZ},gR:function(){return nk},iB:function(){return rJ},wM:function(){return e1}});var h,g,m=n(5721);let v={GRANTED:"granted",NOT_GRANTED:"not-granted"};var y=n(5801),_=n(5026),b=n(2685),S=n(1145),w=n(5242),E=n(2419);function k(){return new m.y$(t=>{let e=(e,n)=>{let r=(0,w.AP)({stackTrace:n,originalError:e,startClocks:(0,_.$I)(),nonErrorPrefix:"Uncaught",source:E.z.SOURCE,handling:"unhandled"});t.notify(r)},{stop:n}=(0,y.S)((0,S.Rf)(),"onerror",({parameters:[t,n,r,i,o]})=>{let a;(0,w.VZ)(o)||(a=(0,b.f)(t,n,r,i)),e(null!=o?o:t,a)}),{stop:r}=(0,y.S)((0,S.Rf)(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")});return()=>{n(),r()}})}var O=n(1962);function T(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(n,r){let i=(0,O.qt)(n);e+=i,t+=n,r&&r(i)},finish(t){t(this.finishSync())},finishSync(){let n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:t=>t.length}}var x=n(4933),C=n(8797),I=n(8678),R=n(2904),A=n(4507),P=n(8566);function N(t,e,n,r){return(0,x.zk)((...i)=>(r&&(0,C.eG)({feature:r}),t()[e][n](...i)))}let L={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},j={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};var D=n(3842);function $(t,e){e.silentMultipleInit||D.jf.error(`${t} is already initialized.`)}let M={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},U={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},F={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},G={CLICK:"click",CUSTOM:"custom"},q={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"}
4,H={DURATION:"duration",OPERATION_STEP:"operation_step"};var z=n(7549);function B(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,B)}let V=/([\w-]+)\s*=\s*([^;]+)/g;function W(t,e){for(V.lastIndex=0;;){let n=V.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function K(t,e,n=""){let r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:`${t.slice(0,i)}${n}`}function Z({vitalsByName:t,vitalsByReference:e},n,r={}){let i={name:n,startClocks:(0,_.$I)(),...r},o={__dd_vital_reference:!0};return t.set(n,i),e.set(o,i),o}function J(t,{vitalsByName:e,vitalsByReference:n},r,i={}){let o="string"==typeof r?e.get(r):n.get(r);if(o){var a,s,u;t((a=o.startClocks,s=(0,_.$I)(),{name:o.name,type:H.DURATION,startClocks:a,duration:(0,_._J)(a.timeStamp,s.timeStamp),context:(0,R.$e)(o.context,i.context),description:null!==(u=i.description)&&void 0!==u?u:o.description})),"string"==typeof r?e.delete(r):n.delete(r)}}function X(t){let{startClocks:e,type:n,name:r,description:i,context:o}=t,a={id:B(),type:n,name:r,description:i,...n===H.DURATION?{duration:(0,_.c0)(t.duration)}:{step_type:t.stepType,operation_key:t.operationKey,failure_reason:t.failureReason}};return{rawRumEvent:{date:e.timeStamp,vital:a,type:M.VITAL,context:o},startTime:e.relative,duration:n===H.DURATION?t.duration:void 0,domainContext:{}}}function Y(t,e,n){if(t)for(let r of t){let t=r[e];t&&t(n)}}function Q(t,e){let n=t.indexOf(e);n>=0&&t.splice(n,1)}function tt(t){return Array.isArray(t)&&t.length>0}var te=n(3206),tn=n(4162);let tr=[];function ti(t,e,n,r){let i=`_dd_c_${n}_${r}`;tr.push((0,te.O)(t,window,"storage",({key:t})=>{i===t&&e.setContext(a())})),e.changeObservable.subscribe(function(){localStorage.setItem(i,JSON.stringify(e.getContext()))});let o=(0,R.$e)(a(),e.getContext());function a(){let t=localStorage.getItem(i);return t?JSON.parse(t):{}}(0,tn.Qr)(o)||e.setContext(o)}var to=n(3234);function ta(t,e,n){let r={...t};for(let[t,{required:i,type:o}]of Object.entries(e))"string"!==o||ts(r[t])||(r[t]=String(r[t])),i&&ts(r[t])&&D.jf.warn(`The property ${t} of ${n} is required; context will not be sent to the intake.`);return r}function ts(t){return null==t||""===t}function tu(t="",{propertiesConfig:e={}}={}){let n={},r=new m.y$,i={getContext:()=>(0,R.I8)(n),setContext:o=>{!function(t){let e="object"===(0,to.o)(t);return e||D.jf.error("Unsupported context:",t),e}(o)?i.clearContext():n=(0,P.N)(ta(o,e,t)),r.notify()},setContextProperty:(i,o)=>{n=(0,P.N)(ta({...n,[i]:o},e,t)),r.notify()},removeContextProperty:i=>{delete n[i],ta(n,e,t),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return i}function tc(){return tu("global context")}var tl=n(9643);function td(){return tu("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function tf(){return tu("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}var tp=n(6876),th=n(251),tg=n(170);function tm(){return r||(r=new m.y$(t=>{if(!S.Zf.fetch)return;let{stop:e}=(0,y.S)(S.Zf,"fetch",e=>(function({parameters:t,onPostCall:e,handlingStack:n},r){let[i,o]=t,a=o&&o.method;void 0===a&&i instanceof Request&&(a=i.method);let s=void 0!==a?String(a).toUpperCase():"GET",u=i instanceof Request?i.url:(0,tg.D5)(String(i)),c=(0,_.$I)(),l={state:"start",init:o,input:i,method:s,startClocks:c,url:u,handlingStack:n};r.notify(l),t[0]=l.input,t[1]=l.init,e(t=>(function(t,e,n){let r=n;function i(e){r.state="resolve",Object.assign(r,e),t.notify(r)}e.then((0,x.zk)(t=>{i({response:t,responseType:t.type,status:t.status,isAborted:!1})}),(0,x.zk)(t=>{var e,n;i({status:0,isAborted:(null===(n=null===(e=r.init)||void 0===e?void 0:e.signal)||void 0===n?void 0:n.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})}))})(r,t,l))})(e,t),{computeHandlingStack:!0});return e})),r}function tv(t,e,n=0,r){let i=new Date;i.setTime(i.getTime()+n);let o=`expires=${i.toUTCString()}`,a=r&&r.crossSite?"none":"strict",s=r&&r.domain?`;domain=${r.domain}`:"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie=`${t}=${e};${o};path=/;samesite=${a}${s}${u}${c}`}function ty(t){return W(document.cookie,t)}
4function t_(t){return i||(i=function(t){let e=new Map;for(V.lastIndex=0;;){let n=V.exec(t);if(n)e.set(n[1],n[2]);else break}return e}(document.cookie)),i.get(t)}function tb(t=location.hostname,e=document.referrer){if(void 0===o){let n=function(t,e){try{return t||(0,tg.Q2)(e).hostname}catch(t){}}(t,e);if(n){let t=`dd_site_test_${B()}`,e=n.split("."),r=e.pop();for(;e.length&&!ty(t);)r=`${e.pop()}.${r}`,tv(t,"test",_.WT,{domain:r});tv(t,"",0,{domain:r}),o=r}}return o}function tS(){return!S.jX&&Boolean(S.Zf._DATADOG_SYNTHETICS_INJECTS_RUM||t_("datadog-synthetics-injects-rum"))}function tw(){let t=window._DATADOG_SYNTHETICS_PUBLIC_ID||t_("datadog-synthetics-public-id");return"string"==typeof t?t:void 0}function tE(){let t=window._DATADOG_SYNTHETICS_RESULT_ID||t_("datadog-synthetics-result-id");return"string"==typeof t?t:void 0}function tk(){return Boolean(tw()&&tE())}var tO=n(812),tT=n(3603),tx=n(5483),tC=n(2172);let tI="_dd_s";var tR=n(4776);let tA=4*_.dV,tP=15*_.yR,tN=_.P5,tL={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},tj=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function tD(t,e){let n={isExpired:"1"};return e.trackAnonymousUser&&(null==t?void 0:t.anonymousId)&&(n.anonymousId=null==t?void 0:t.anonymousId),n}function t$(t){return(0,tn.Qr)(t)}function tM(t){return void 0!==t.isExpired||!((void 0===t.created||(0,_.m6)()-Number(t.created)<tA)&&(void 0===t.expire||(0,_.m6)()<Number(t.expire)))}function tU(t){t.expire=String((0,_.m6)()+tP)}function tF(t){return(0,tR.qP)(t).map(([t,e])=>"anonymousId"===t?`aid=${e}`:`${t}=${e}`).join("&")}function tG(t){let e={};return t&&(-1!==t.indexOf("&")||tj.test(t))&&t.split("&").forEach(t=>{let n=tj.exec(t);if(null!==n){let[,t,r]=n;"aid"===t?e.anonymousId=r:e[t]=r}}),e}function tq(t){let e=function(t){let e={};if(e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains){let t=tb();if(!t)return;e.domain=t}return e}(t);return e&&function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{let e=`dd_cookie_test_${B()}`,n="test";tv(e,n,_.yR,t);let r=ty(e)===n;return tv(e,"",0,t),r}catch(t){return D.jf.error(t),!1}}(e)?{type:tL.COOKIE,cookieOptions:e}:void 0}function tH(t,e,n,r){let i=tF(n);(0,z.W_)(z.uh.ENCODE_COOKIE_OPTIONS)&&(i=tF({...n,...(0,tn.Qr)(n)?{}:{c:tB(t)}})),tv(tI,i,e.trackAnonymousUser?tN:r,t)}function tz(t){if((0,z.W_)(z.uh.ENCODE_COOKIE_OPTIONS))return function(t){let e;let n=(function(t){let e=new Map;for(V.lastIndex=0;;){let n=V.exec(t);if(n){let t=n[1],r=n[2];e.has(t)?e.get(t).push(r):e.set(t,[r])}else break}return e})(document.cookie).get(tI)||[],r=tB(t);for(let t of n.reverse())if((e=tG(t)).c===r)break;return null==e||delete e.c,null!=e?e:{}}(t);let e=ty(tI),n=tG(e);return n}function tB(t){let e=t.domain?t.domain.split(".").length-1:0;return(0|e<<1|(t.crossSite?1:0)).toString(16)}function tV(){try{let t=B(),e=`_dd_test_${t}`;localStorage.setItem(e,t);let n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:tL.LOCAL_STORAGE}:void 0}catch(t){return}}function tW(t){localStorage.setItem(tI,tF(t))}function tK(){let t=localStorage.getItem(tI);return tG(t)}let tZ=_.WT,tJ=[];function tX(t,e,n=0){var r;let i;let{isLockEnabled:o,persistSession:s,expireSession:u}=e,c=t=>s({...t,lock:i}),l=()=>{let{lock:t,...n}=e.retrieveSession();return{session:n,lock:t&&!function(t){let[,e]=t.split("--");return!e||(0,_._J)(Number(e),(0,_.n$)())>tZ}(t)?t:void 0}};if(a||(a=t),t!==a){tJ.push(t);return}if(o&&n>=100){tQ(e);return}let d=l();if(o&&(d.lock||(i=B()+"--"+(0,_.n$)(),c(d.session),(d=l()).lock!==i))){tY(t,e,n);return}let f=t.process(d.session);if(o&&(d=l()).lock!==i){tY(t,e,n);return}if(f&&(tM(f)?u(f):(tU(f),o?c(f):s(f))),o&&!(f&&tM(f))){if((d=l()).lock!==i){tY(t,e,n);return}s(d.session),f=d.session}null===(r=t.after)||void 0===r||r.call(t,f||d.session),tQ(e)}function tY(t,e,n){(0,tx.iK)(()=>{tX(t,e,n+1)},10)}function tQ(t){a=void 0;let e=tJ.shift();e&&tX(e,t)}let t0=_.WT;function t1(t){let e=(0,to.o)(t);return"string"===e||"function"===e||t instanceof RegExp}function t2(t,e,n=!1){return t.some(t=>{try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);
4if("string"==typeof t)return n?e.startsWith(t):t===e}catch(t){D.jf.error(t)}return!1})}let t3=["chrome-extension://","moz-extension://"];function t5(t){return t3.some(e=>t.includes(e))}var t4=n(3909);function t8(t,e,n){let r=function(t,e){let n=`/api/v2/${e}`,r=t.proxy;if("string"==typeof r){let t=(0,tg.D5)(r);return e=>`${t}?ddforward=${encodeURIComponent(`${n}?${e}`)}`}if("function"==typeof r)return t=>r({path:n,parameters:t});let i=t6(e,t);return t=>`https://${i}${n}?${t}`}(t,e);return{build(i,o){let a=function({clientToken:t,internalAnalyticsSubdomain:e,source:n="browser"},r,i,{retry:o,encoding:a},s=[]){let u=[`ddsource=${n}`,`dd-api-key=${t}`,`dd-evp-origin-version=${encodeURIComponent("6.23.0")}`,"dd-evp-origin=browser",`dd-request-id=${B()}`].concat(s);return a&&u.push(`dd-evp-encoding=${a}`),"rum"===r&&(u.push(`batch_time=${(0,_.n$)()}`,`_dd.api=${i}`),o&&u.push(`_dd.retry_count=${o.count}`,`_dd.retry_after=${o.lastFailureStatus}`)),e&&u.reverse(),u.join("&")}(t,e,i,o,n);return r(a)},trackType:e}}function t6(t,e){let{site:n=t4.D_,internalAnalyticsSubdomain:r}=e;if("logs"===t&&e.usePciIntake&&n===t4.D_)return t4.iL;if(r&&n===t4.D_)return`${r}.${t4.D_}`;if(n===t4.by)return`http-intake.logs.${n}`;let i=n.split("."),o=i.pop();return`browser-intake-${i.join("-")}.${o}`}let t9={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},t7={ALL:"all",SAMPLED:"sampled"};function et(t,e){return null==t||"string"==typeof t||(D.jf.error(`${e} must be defined as a string`),!1)}function ee(t,e){return!!(void 0===t||(0,tT.zz)(t))||(D.jf.error(`${e} Sample Rate should be a number between 0 and 100`),!1)}let en=new Map;function er(t,e){let n;if(100===e)return!0;if(0===e)return!1;let r=en.get(e);return r&&t===r.sessionId?r.decision:(n=window.BigInt?function(t,e){let n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(BigInt(`0x${t.split("-")[4]}`),e):(0,tT.y7)(e),en.set(e,{sessionId:t,decision:n}),n)}function ei(t){let e=crypto.getRandomValues(new Uint32Array(2));return 63===t&&(e[e.length-1]>>>=1),{toString(t=10){let n=e[1],r=e[0],i="";do{let e=n%t*4294967296+r;n=Math.floor(n/t),r=Math.floor(e/t),i=(e%t).toString(t)+i}while(n||r);return i}}}function eo(t){return t.toString(16).padStart(16,"0")}function ea(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function es(t,e,n,r,i,o){let a=n.findTrackedSession();if(!a)return;let s=t.allowedTracingUrls.find(t=>t2([t.match],e.url,!0));if(!s)return;let u=er(a.id,t.traceSampleRate),c=u||t.traceContextInjection===t7.ALL;c&&(e.traceSampled=u,e.traceId=ei(64),e.spanId=ei(63),o(function(t,e,n,r,i,o,a,s){let u={};if(i.forEach(r=>{switch(r){case"datadog":Object.assign(u,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":Object.assign(u,{traceparent:`00-0000000000000000${eo(t)}-${eo(e)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break;case"b3":Object.assign(u,{b3:`${eo(t)}-${eo(e)}-${n?"1":"0"}`});break;case"b3multi":Object.assign(u,{"X-B3-TraceId":eo(t),"X-B3-SpanId":eo(e),"X-B3-Sampled":n?"1":"0"})}}),s.propagateTraceBaggage){let t={"session.id":r},e=o.getContext().id;"string"==typeof e&&(t["user.id"]=e);let n=a.getContext().id;"string"==typeof n&&(t["account.id"]=n);let i=Object.entries(t).map(([t,e])=>`${t}=${encodeURIComponent(e)}`).join(",");i&&(u.baggage=i)}return u}(e.traceId,e.spanId,e.traceSampled,a.id,s.propagatorTypes,r,i,t)))}let eu=["tracecontext","datadog"],ec=/[a-zA-Z_$]/,el=/[a-zA-Z0-9_$]/,ed=/[0-9]/,ef=/[a-fA-F0-9]/,ep={0:()=>!1,1:()=>!1,2:t=>ec.test(t),3:t=>el.test(t),4:t=>"."===t,5:t=>"["===t,6:t=>"]"===t,7:t=>ed.test(t),8:t=>"'\"".includes(t),9:(t,e)=>t===e.quote,10:()=>!0,11:t=>"\\"===t,12:(t,e)=>void 0===e.escapeSequence?`${e.quote}/\\bfnrtu`.includes(t):!!e.escapeSequence.startsWith("u")&&e.escapeSequence.length<5&&ef.test(t)},eh={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},eg=[2,3,7,10],em=[4,5,6],ev={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},ey=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyF
4orActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function e_(t,e){let n;let r=function(){let t={fetch:{}};return{get:()=>t,increment:(e,n)=>{t[e]||(t[e]={}),t[e][n]||(t[e][n]=0),t[e][n]=t[e][n]+1}}}(),i=await eS(t);return i.ok?(r.increment("fetch","success"),n=function(t,e,n,r){let i={...t};return ey.forEach(t=>{t in e&&(i[t]=o(e[t]))}),Object.keys(n).forEach(t=>{void 0!==e[t]&&function(t,e){e.forEach(({key:e,value:n})=>{t.setContextProperty(e,o(n))})}(n[t],e[t])}),i;function o(t){if(Array.isArray(t))return t.map(o);if("object"==typeof t&&null!==t){if("rcSerializedType"in t){let e=t.rcSerializedType;switch(e){case"string":return t.value;case"regex":return eb(t.value);case"dynamic":return function(t){let e;let n=t.strategy;switch(n){case"cookie":e=function({name:t}){let e=ty(t);return r.increment("cookie",void 0!==e?"success":"missing"),e}(t);break;case"dom":e=function({selector:t,attribute:e}){let n;try{n=document.querySelector(t)}catch(e){D.jf.error(`Invalid selector in the remote configuration: '${t}'`),r.increment("dom","failure");return}if(!n){r.increment("dom","missing");return}if("password"===n.getAttribute("type")&&"value"===e){D.jf.error(`Forbidden element selected by the remote configuration: '${t}'`),r.increment("dom","failure");return}let i=void 0!==e?n.getAttribute(e):n.textContent;if(null===i){r.increment("dom","missing");return}return r.increment("dom","success"),i}(t);break;case"js":e=function({path:t}){let e=window,n=function(t){let e;let n=[],r=0,i={quote:void 0,escapeSequence:void 0},o="";for(let u of t){if(!(e=eh[r].find(t=>ep[t](u,i))))return[];if(void 0!==i.escapeSequence&&12!==e){var a,s;if(a=i.escapeSequence,!("\"'/\\bfnrt".includes(a)||a.startsWith("u")&&5===a.length))return[];o+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):ev[s],i.escapeSequence=void 0}eg.includes(e)?o+=u:em.includes(e)&&""!==o?(n.push(o),o=""):12===e?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${u}`:u:8===e?i.quote=u:9===e&&(i.quote=void 0),r=e}return eh[r].includes(1)?(""!==o&&n.push(o),n):[]}(t);if(0===n.length){D.jf.error(`Invalid JSON path in the remote configuration: '${t}'`),r.increment("js","failure");return}for(let i of n){if(!(i in e)){r.increment("js","missing");return}try{e=e[i]}catch(e){D.jf.error(`Error accessing: '${t}'`,e),r.increment("js","failure");return}}return r.increment("js","success"),e}(t);break;default:D.jf.error(`Unsupported remote configuration: "strategy": "${n}"`);return}let i=t.extractor;return void 0!==i&&"string"==typeof e?function(t,e){let n=eb(t.value);if(void 0===n)return;let r=n.exec(e);if(null===r)return;let[i,o]=r;return o||i}(i,e):e}(t);default:D.jf.error(`Unsupported remote configuration: "rcSerializedType": "${e}"`);return}}return(0,tn.Q8)(t,o)}return t}}(t,i.value,e,r)):(r.increment("fetch","failure"),D.jf.error(i.error)),(0,C.qZ)("remote configuration metrics",{metrics:r.get()}),n}function eb(t){try{return RegExp(t)}catch(e){D.jf.error(`Invalid regex in the remote configuration: '${t}'`)}}async function eS(t){let e;try{e=await fetch(t.remoteConfigurationProxy?t.remoteConfigurationProxy:`https://sdk-configuration.${t6("rum",t)}/v1/${encodeURIComponent(t.remoteConfigurationId)}.json`)}catch(t){e=void 0}if(!e||!e.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let n=await e.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function ew(t,e,n){t.changeObservable.subscribe(()=>{let r=t.getContext();n.add(t=>t[e].setContext(r))})}function eE(t,e,n,r={}){let i=function(t){let e=new m.y$;return{tryToInit(e){t||(t=e)},update(n){t=n,e.notify()},isGranted:()=>t===v.GRANTED,observable:e}}(),o=function(){let t=new Map,e=new WeakMap;return{vitalsByName:t,vitalsByReference:e}}(),a=function(t=k){let e=new m.fk(500),n=t().subscribe(t=>{e.notify({type:0,error:t})});return{observable:e,stop:()=>{n.unsubscribe()}}}().observable,s=function({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e},n,r,i){let o,a,s,u;let c=function(){let t=[],e=e=>{let n=t.push(e);n>500&&t.splice(0,1)},n=e=>{Q(t,e)},r=e=>{t.forEach(t=>t(e)),t.length=0};return{add:e,remove:n,drain:r}}(),l=tc();ew(l,L.globalContext,c);let d=td();ew(d,L.userContext,c);let f=tf();ew(f,L.accountContext,c);let p=n.observable.subscribe(g),h={};function g(){let t;if(!s||!u||!n.isGranted())return;if(p.unsubscribe(),u.trackViewsManually){if(!o)return;c.remove(o.callback),t=o.options}let e=i(u,a,t);c.drain(e)}function m(t,r){var i,o,c;let l=(0,tp.xT)();if(l&&(t={...i=t,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(o=i.defaultPrivacyLevel)&&void 0!==o?o:null===(c=(0,tp.Ad)())||void 0===c?void 0:c.getPrivacyLevel()}),s=t,(0,C.Uo)(function(t){var e,n;let r={session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,track_anonymous_user:t.trackAnonymousUser,session_persistence:t.sessionPersistence,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent,use_allowed_tracking_origins:Array.isArray(t.allowedTrackingOrigins),source:t.source,sdk_version:t.sdkVersion,variant:t.variant};return{session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,prop
4agate_trace_baggage:t.propagateTraceBaggage,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:tt(t.allowedTracingUrls),use_allowed_graph_ql_urls:tt(t.allowedGraphQlUrls),use_track_graph_ql_payload:tt(n=t.allowedGraphQlUrls)&&n.some(t=>"object"==typeof t&&"trackPayload"in t&&!!t.trackPayload),selected_tracing_propagators:function(t){let e=new Set;return tt(t.allowedTracingUrls)&&t.allowedTracingUrls.forEach(t=>{t1(t)?eu.forEach(t=>e.add(t)):"object"===(0,to.o)(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(t=>e.add(t))}),Array.from(e)}(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyForActionName,use_excluded_activity_urls:tt(t.excludedActivityUrls),use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,track_bfcache_views:t.trackBfcacheViews,track_early_requests:t.trackEarlyRequests,plugins:null===(e=t.plugins)||void 0===e?void 0:e.map(t=>{var e;return{name:t.name,...null===(e=t.getConfigurationTelemetry)||void 0===e?void 0:e.call(t)}}),track_feature_flags_for_events:t.trackFeatureFlagsForEvents,remote_configuration_id:t.remoteConfigurationId,profiling_sample_rate:t.profilingSampleRate,use_remote_configuration_proxy:!!t.remoteConfigurationProxy,...r}}(t)),u){$("DD_RUM",t);return}let d=function(t,e){var n,r,i,o,a,s,u;if(void 0===t.trackFeatureFlagsForEvents||Array.isArray(t.trackFeatureFlagsForEvents)||D.jf.warn("trackFeatureFlagsForEvents should be an array"),!t.applicationId){D.jf.error("Application ID is not configured, no RUM data will be collected.");return}if(!ee(t.sessionReplaySampleRate,"Session Replay")||!ee(t.traceSampleRate,"Trace"))return;if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls)){D.jf.error("Excluded Activity Urls should be an array");return}let c=function(t){if(void 0===t.allowedTracingUrls)return[];if(!Array.isArray(t.allowedTracingUrls)){D.jf.error("Allowed Tracing URLs should be an array");return}if(0!==t.allowedTracingUrls.length&&void 0===t.service){D.jf.error("Service needs to be configured when tracing is enabled");return}let e=[];return t.allowedTracingUrls.forEach(t=>{t1(t)?e.push({match:t,propagatorTypes:eu}):"object"===(0,to.o)(t)&&t1(t.match)&&Array.isArray(t.propagatorTypes)?e.push(t):D.jf.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}(t);if(!c)return;let l=function(t,e){var n,r,i,o,a,s,u,c,l,d,f;if(!t||!t.clientToken){D.jf.error("Client Token is not configured, we will not send any data.");return}if(void 0!==t.allowedTrackingOrigins&&!Array.isArray(t.allowedTrackingOrigins)){D.jf.error("Allowed Tracking Origins must be an array");return}if((!(f=t.site)||"string"!=typeof f||/(datadog|ddog|datad0g|dd0g)/.test(f)||(D.jf.error(`Site should be a valid Datadog site. ${D.IA} ${D.aA}/getting_started/site/.`),0))&&ee(t.sessionSampleRate,"Session")&&ee(t.telemetrySampleRate,"Telemetry")&&ee(t.telemetryConfigurationSampleRate,"Telemetry Configuration")&&ee(t.telemetryUsageSampleRate,"Telemetry Usage")&&et(t.version,"Version")&&et(t.env,"Env")&&et(t.service,"Service")&&function(t,e,n="undefined"!=typeof location?location.origin:""){let r=t.allowedTrackingOrigins;if(!r)return!function(t,e=""){if(t5(t))return!1;let n=e.split("\n").filter(t=>{let e=t.trim();return e.length&&/^at\s+|@/.test(e)}),r=n[1]||"";return t5(r)}(n,e)||(D.jf.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let i=t2(r,n);return i||D.jf.error("SDK initialized on a non-allowed domain."),i}(t,null!=e?e:"")){if(void 0!==t.trackingConsent&&!(0,tn.E5)(v,t.trackingConsent)){D.jf.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:t.beforeSend&&(0,tO.Z)(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:S.jX?void 0:function(t){switch(t.sessionPersistence){case tL.COOKIE:return tq(t);case tL.LOCAL_STORAGE:return tV();case void 0:{let e=tq(t);return!e&&t.allowFallbackToLocalStorage&&(e=tV()),e}default:D.jf.error(`Invalid session persistence '${String(t.sessionPersistence)}'`)}}(t),sessionSampleRate:null!==(n=t.sessionSampleRate)&&void 0!==n?n:100,telemetrySampleRate:null!==(r=t.telemetrySampleRate)&&void 0!==r?r:20,telemetryConfigurationSampleRate:null!==(i=t.telemetryConfigurationSampleRate)&&void 0!==i?i:5,telemetryUsageSampleRate:null!==(o=t.telemetryUsageSampleRate)&&void 0!==o?o:5,service:null!==(a=t.service)&&void 0!==a?a:void 0,env:null!==(s=t.env)&&void 0!==s?s:void 0,version:null!==(u=t.version)&&void 0!==u?u:void 0,datacenter:null!==(c=t.datacenter)&&void 0!==c?c:void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(l=t.trackingConsent)&&void 0!==l?l:v.GRANTED,trackAnonymousUser:null===(d=t.trackAnonymousUser)||void 0===d||d,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16*O.Hi,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*_.WT,batchMessagesLimit:S.jX?1:50,messageBytesLimit:256*O.Hi,variant:t.variant,sdkVersion:t.sdkVersion,...function(t){var e,n;let r=t.site||t4.D_,i="flutter"===(e=t.source)||"unity"===e?e:"browser",o={logsEndpointBuilder:t8(n={...t,site:r,source:i},"logs"),rumEndpointBuilder:t8(n,"rum"),profilingEndpointBuilder:t8(n,"profile"),sessionReplayEndpointBuilder:t8(n,"replay"),exposuresEndpointBuilder:t8(n,"exposures")},a=function(t){if(!t.replica)return;let e={...t,site:t4.D_,clientToken:t.replica.clientToken};return{logsEndpointBuilder:t8(e,"logs"),rumEndpointBuilder:t8(e,"rum",[`application.id=${t.replica.applicationId}`])}}({...t,site:r,source:i});return{replica:a,site:r,source:i,...o}}(t)}}}(t,e),d=function(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return D.jf.warn("allowedGraphQlUrls should be an array"),[];let e=[];
4return t.allowedGraphQlUrls.forEach(t=>{t1(t)?e.push({match:t,trackPayload:!1}):t&&"object"==typeof t&&"match"in t&&t1(t.match)&&e.push({match:t.match,trackPayload:!!t.trackPayload})}),e}(t);if(!l)return;let f=null!==(n=t.sessionReplaySampleRate)&&void 0!==n?n:0;return{applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:f,startSessionReplayRecordingManually:void 0!==t.startSessionReplayRecordingManually?!!t.startSessionReplayRecordingManually:0===f,traceSampleRate:null!==(r=t.traceSampleRate)&&void 0!==r?r:100,rulePsr:(0,tT.hj)(t.traceSampleRate)?t.traceSampleRate/100:void 0,allowedTracingUrls:c,excludedActivityUrls:null!==(i=t.excludedActivityUrls)&&void 0!==i?i:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!(null===(o=t.trackUserInteractions)||void 0===o||o),trackViewsManually:!!t.trackViewsManually,trackResources:!!(null===(a=t.trackResources)||void 0===a||a),trackLongTasks:!!(null===(s=t.trackLongTasks)||void 0===s||s),trackBfcacheViews:!!t.trackBfcacheViews,trackEarlyRequests:!!t.trackEarlyRequests,subdomain:t.subdomain,defaultPrivacyLevel:(0,tn.E5)(t9,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:t9.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,traceContextInjection:(0,tn.E5)(t7,t.traceContextInjection)?t.traceContextInjection:t7.SAMPLED,plugins:t.plugins||[],trackFeatureFlagsForEvents:t.trackFeatureFlagsForEvents||[],profilingSampleRate:null!==(u=t.profilingSampleRate)&&void 0!==u?u:0,propagateTraceBaggage:!!t.propagateTraceBaggage,allowedGraphQlUrls:d,...l}}(t,r);if(d){if(!l&&!d.sessionStoreStrategyType){D.jf.warn("No storage available for session. We will not send any data.");return}(!d.compressIntakeRequests||l||!e||(a=e(d,"Datadog RUM",th.Z)))&&(u=d,tm().subscribe(th.Z),n.tryToInit(d.trackingConsent),g())}}let y=t=>{c.add(e=>e.addDurationVital(t))},b=(t,e,n,r)=>{c.add(i=>i.addOperationStepVital((0,P.N)(t),e,(0,P.N)(n),(0,P.N)(r)))},w={init(e,n,r){if(!e){D.jf.error("Missing configuration");return}(0,z.fG)(e.enableExperimentalFeatures),s=e,t&&tS()||(Y(e.plugins,"onInit",{initConfiguration:e,publicApi:n}),e.remoteConfigurationId?e_(e,{user:d,context:l}).then(t=>{t&&m(t,r)}).catch(x.$y):m(e,r))},get initConfiguration(){return s},getInternalContext:th.Z,stopSession:th.Z,addTiming(t,e=(0,_.n$)()){c.add(n=>n.addTiming(t,e))},startView(t,e=(0,_.$I)()){let n=n=>{n.startView(t,e)};c.add(n),o||(o={options:t,callback:n},g())},setViewName(t){c.add(e=>e.setViewName(t))},setViewContext(t){c.add(e=>e.setViewContext(t))},setViewContextProperty(t,e){c.add(n=>n.setViewContextProperty(t,e))},getViewContext:()=>h,globalContext:l,userContext:d,accountContext:f,addAction(t){c.add(e=>e.addAction(t))},addError(t){c.add(e=>e.addError(t))},addFeatureFlagEvaluation(t,e){c.add(n=>n.addFeatureFlagEvaluation(t,e))},startDurationVital:(t,e)=>Z(r,t,e),stopDurationVital(t,e){J(y,r,t,e)},addDurationVital:y,addOperationStepVital:b};return w}(r,i,o,(u,c,l)=>{let d=c&&r.createDeflateEncoder?t=>r.createDeflateEncoder(u,c,t):T,f=t(u,e,n,l,d,i,o,a,r.sdkName);return e.onRumStart(f.lifeCycle,u,f.session,f.viewHistory,c,f.telemetry),n.onRumStart(f.lifeCycle,f.hooks,u,f.session,f.viewHistory,d),s={init:t=>{$("DD_RUM",t)},initConfiguration:s.initConfiguration,...f},Y(u.plugins,"onRumStart",{strategy:s,addEvent:f.addEvent}),f}),u=()=>s,c=(0,x.zk)(t=>{s.startView("object"==typeof t?t:{name:t}),(0,C.eG)({feature:"start-view"})}),l=(0,I.r)({init:t=>{let e=Error().stack;(0,x.L6)(()=>s.init(t,l,e))},setTrackingConsent:(0,x.zk)(t=>{i.update(t),(0,C.eG)({feature:"set-tracking-consent",tracking_consent:t})}),setViewName:(0,x.zk)(t=>{s.setViewName(t),(0,C.eG)({feature:"set-view-name"})}),setViewContext:(0,x.zk)(t=>{s.setViewContext(t),(0,C.eG)({feature:"set-view-context"})}),setViewContextProperty:(0,x.zk)((t,e)=>{s.setViewContextProperty(t,e),(0,C.eG)({feature:"set-view-context-property"})}),getViewContext:(0,x.zk)(()=>((0,C.eG)({feature:"set-view-context-property"}),s.getViewContext())),getInternalContext:(0,x.zk)(t=>s.getInternalContext(t)),getInitConfiguration:(0,x.zk)(()=>(0,R.I8)(s.initConfiguration)),addAction:(t,e)=>{let n=(0,A.Xp)("action");(0,x.L6)(()=>{s.addAction({name:(0,P.N)(t),context:(0,P.N)(e),startClocks:(0,_.$I)(),type:G.CUSTOM,handlingStack:n}),(0,C.eG)({feature:"add-action"})})},addError:(t,e)=>{let n=(0,A.Xp)("error");(0,x.L6)(()=>{s.addError({error:t,handlingStack:n,context:(0,P.N)(e),startClocks:(0,_.$I)()}),(0,C.eG)({feature:"add-error"})})},addTiming:(0,x.zk)((t,e)=>{s.addTiming((0,P.N)(t),e)}),setGlobalContext:N(u,L.globalContext,j.setContext,"set-global-context"),getGlobalContext:N(u,L.globalContext,j.getContext,"get-global-context"),setGlobalContextProperty:N(u,L.globalContext,j.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:N(u,L.globalContext,j.removeContextProperty,"remove-global-context-property"),clearGlobalContext:N(u,L.globalContext,j.clearContext,"clear-global-context"),setUser:N(u,L.userContext,j.setContext,"set-user"),getUser:N(u,L.userContext,j.getContext,"get-user"),setUserProperty:N(u,L.userContext,j.setContextProperty,"set-user-property"),removeUserProperty:N(u,L.userContext,j.removeContextProperty,"remove-user-property"),clearUser:N(u,L.userContext,j.clearContext,"clear-user"),setAccount:N(u,L.accountContext,j.setContext,"set-account"),getAccount:N(u,L.accountContext,j.getContext,"get-account"),setAccountProperty:N(u,L.accountContext,j.setContextProperty,"set-account-property"),removeAccountProperty:N(u,L.accountContext,j.removeContextProperty,"remove-account-property"),clearAccount:N(u,L.accountContext,j.clearContext,"clear-account"),startView:c,stopSession:(0,x.zk)(()=>{s.stopSession(),(0,C.eG)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,x.zk)((t,e)=>
4{s.addFeatureFlagEvaluation((0,P.N)(t),(0,P.N)(e)),(0,C.eG)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,x.zk)(()=>e.getSessionReplayLink()),startSessionReplayRecording:(0,x.zk)(t=>{e.start(t),(0,C.eG)({feature:"start-session-replay-recording",force:t&&t.force})}),stopSessionReplayRecording:(0,x.zk)(()=>e.stop()),addDurationVital:(0,x.zk)((t,e)=>{(0,C.eG)({feature:"add-duration-vital"}),s.addDurationVital({name:(0,P.N)(t),type:H.DURATION,startClocks:(0,_.lO)(e.startTime),duration:e.duration,context:(0,P.N)(e&&e.context),description:(0,P.N)(e&&e.description)})}),startDurationVital:(0,x.zk)((t,e)=>((0,C.eG)({feature:"start-duration-vital"}),s.startDurationVital((0,P.N)(t),{context:(0,P.N)(e&&e.context),description:(0,P.N)(e&&e.description)}))),stopDurationVital:(0,x.zk)((t,e)=>{(0,C.eG)({feature:"stop-duration-vital"}),s.stopDurationVital("string"==typeof t?(0,P.N)(t):t,{context:(0,P.N)(e&&e.context),description:(0,P.N)(e&&e.description)})}),startFeatureOperation:(0,x.zk)((t,e)=>{(0,C.eG)({feature:"add-operation-step-vital",action_type:"start"}),s.addOperationStepVital(t,"start",e)}),succeedFeatureOperation:(0,x.zk)((t,e)=>{(0,C.eG)({feature:"add-operation-step-vital",action_type:"succeed"}),s.addOperationStepVital(t,"end",e)}),failFeatureOperation:(0,x.zk)((t,e,n)=>{(0,C.eG)({feature:"add-operation-step-vital",action_type:"fail"}),s.addOperationStepVital(t,"end",n,e)})});return l}var ek=n(8971),eO=n(7581),eT=n(9693);function ex(){let t;let e=window;if(e.Zone&&(t=(0,eT.I)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){let n=new e.MutationObserver(th.Z),r=(0,eT.I)(n,"originalInstance");t=r&&r.constructor}return t||(t=e.MutationObserver),t}let eC=class{constructor(){this.callbacks={}}notify(t,e){let n=this.callbacks[t];n&&n.forEach(t=>t(e))}subscribe(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(t=>e!==t)}}}},eI=1/0,eR=_.yR,eA=null,eP=new Set;function eN({expireDelay:t,maxEntries:e}){let n=[];eA||(eA=(0,tx.Zi)(()=>void eP.forEach(t=>t()),eR));let r=()=>{let e=(0,_._q)()-t;
4for(;n.length>0&&n[n.length-1].endTime<e;)n.pop()};return eP.add(r),{add:function(t,r){let i={value:t,startTime:r,endTime:eI,remove:()=>{Q(n,i)},close:t=>{i.endTime=t}};return e&&n.length>=e&&n.pop(),n.unshift(i),i},find:function(t=eI,e={returnInactive:!1}){for(let r of n)if(r.startTime<=t){if(e.returnInactive||t<=r.endTime)return r.value;break}},closeActive:function(t){let e=n[0];e&&e.endTime===eI&&e.close(t)},findAll:function(t=eI,e=0){let r=(0,_.WK)(t,e);return n.filter(e=>e.startTime<=r&&t<=e.endTime).map(t=>t.value)},reset:function(){n=[]},stop:function(){eP.delete(r),0===eP.size&&eA&&((0,tx.cv)(eA),eA=null)}}}let eL=new WeakMap;function ej({target:t,parameters:[e,n]}){eL.set(t,{state:"open",method:String(e).toUpperCase(),url:(0,tg.D5)(String(n))})}function eD({target:t}){let e=eL.get(t);e&&(e.isAborted=!0)}let e$={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},eM={FETCH:e$.FETCH,XHR:e$.XHR};var eU=n(9100);let eF="initial_document",eG=[[e$.DOCUMENT,t=>eF===t],[e$.XHR,t=>"xmlhttprequest"===t],[e$.FETCH,t=>"fetch"===t],[e$.BEACON,t=>"beacon"===t],[e$.CSS,(t,e)=>/\.css$/i.test(e)],[e$.JS,(t,e)=>/\.js$/i.test(e)],[e$.IMAGE,(t,e)=>["image","img","icon"].includes(t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)],[e$.FONT,(t,e)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)],[e$.MEDIA,(t,e)=>["audio","video"].includes(t)||null!==/\.(mp3|mp4)$/i.exec(e)]];function eq(...t){for(let e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function eH(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType}function ez(t){return t.duration>=0}function eB(t){let e=eq(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!(t.redirectEnd>t.startTime)||eq(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function eV(t,e,n){if(t<=e&&e<=n)return{duration:(0,_.c0)((0,_._J)(e,n)),start:(0,_.c0)((0,_._J)(t,e))}}function eW(t){return t&&(!t4.Rg.every(e=>t.includes(e))||(0,z.W_)(z.uh.TRACK_INTAKE_REQUESTS))}let eK=/data:(.+)?(;base64)?,/g;function eZ(t,e=24e3){if(t.length<=e||!t.startsWith("data:"))return t;let n=t.substring(0,100).match(eK);return n?`${n[0]}[...]`:t}let eJ=1;function eX(){let t=eJ;return eJ+=1,t}function eY(t){return(0,tT.hj)(t)&&t<0?void 0:t}function eQ({lifeCycle:t,isChildEvent:e,onChange:n=th.Z}){let r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=t.subscribe(13,t=>{var i;if("view"!==t.type&&"vital"!==t.type&&e(t))switch(t.type){case M.ERROR:r.errorCount+=1,n();break;case M.ACTION:r.actionCount+=1,t.action.frustration&&(r.frustrationCount+=t.action.frustration.type.length),n();break;case M.LONG_TASK:r.longTaskCount+=1,n();break;case M.RESOURCE:(null===(i=t._dd)||void 0===i?void 0:i.discarded)||(r.resourceCount+=1,n())}});return{stop:()=>{i.unsubscribe()},eventCounts:r}}function e0(t,e){return new m.y$(n=>{let r,i;if(!window.PerformanceObserver)return;let o=t=>{let e=t.filter(t=>!(t.entryType===g.RESOURCE&&(!eW(t.name)||!ez(t))));e.length>0&&n.notify(e)},a=!0,s=new PerformanceObserver((0,x.zk)(t=>{a?r=(0,tx.iK)(()=>o(t.getEntries())):o(t.getEntries())}));try{s.observe(e)}catch(n){let t=[g.RESOURCE,g.NAVIGATION,g.LONG_TASK,g.PAINT];if(t.includes(e.type)){e.buffered&&(r=(0,tx.iK)(()=>o(performance.getEntriesByType(e.type))));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}return a=!1,!u&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(u=(0,te.O)(t,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),e1(g.FIRST_INPUT)||e.type!==g.FIRST_INPUT||({stop:i}=function(t,e){let n=(0,_.m6)(),r=!1,{stop:i}=(0,te.y)(t,window,["click","mousedown","keydown","touchstart","pointerdown"],e=>{if(!e.cancelable)return;let n={entryType:"first-input",processingStart:(0,_._q)(),processingEnd:(0,_._q)(),startTime:e.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};"pointerdown"===e.type?(0,te.y)(t,window,["pointerup","pointercancel"],t=>{"pointerup"===t.type&&o(n)},{once:!0}):o(n)},{passive:!0,capture:!0});return{stop:i};function o(t){if(!r){r=!0,i();let o=t.processingStart-t.startTime;o>=0&&o<(0,_.m6)()-n&&e(t)}}}(t,t=>{o([t])})),()=>{s.disconnect(),i&&i(),(0,tx.gr)(r)}})}function e1(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function e2(t){return t.nodeType===Node.TEXT_NODE}function e3(t){return t.nodeType===Node.ELEMENT_NODE}function e5(t){return e3(t)&&Boolean(t.shadowRoot)}function e4(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e3(t.host)}function e8(t){return t.childNodes.length>0||e5(t)}function e6(t,e){let n=t.firstChild;for(;n;)e(n),n=n.nextSibling;e5(t)&&e(t.shadowRoot)}function e9(t){return e4(t)?t.host:t.parentNode}(h=g||(g={})).EVENT="event",h.FIRST_INPUT="first-input",h.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",h.LAYOUT_SHIFT="layout-shift",h.LONG_TASK="longtask",h.LONG_ANIMATION_FRAME="long-animation-frame",h.NAVIGATION="navigation",h.PAINT="paint",h.RESOURCE="resource",h.VISIBILITY_STATE="visibility-state";let e7="data-dd-excluded-activity-mutations";function nt(t,e,n,r,i,o){let a=new m.y$(i=>{let o;let a=[],s=0;return a.push(e.subscribe(t=>{t.every(nn)||u()}),n.subscribe(u),e0(r,{type:g.RESOURCE}).subscribe(t=>{t.some(t=>!ne(r,t.name))&&u()}),t.subscribe(7,t=>{ne(r,t.url)||(void 0===o&&(o=t.requestIndex),s+=1,u())}),t.subscribe(8,t=>{ne(r,t.url)||void 0===o||t.requestIndex<o||(s-=1,u())})),()=>{a.forEach(t=>t.unsubscribe())};function u(){i.notify({isBusy:s>0})}});return function(t,e,n){let r;let i=!1,o=(0,tx.iK)((0,x.zk)(()=>c({hadActivity:!1})),100),a=void 0!==n?(0,tx.iK)((0,x.zk)(()=>c({hadActivity:!0,end:(0,_.n$)()})),n):void 0,s=t.subscribe(({isBusy:t})=>{(0,tx.gr)(o),(0,tx.gr)(r);let e=(0,_.n$)();t||(r=(0,tx.iK)((0,x.zk)(()=>c({hadActivity:!0,end:e})),100))}),u=()=>{i=!0,(0,tx.gr)(o),(0,tx.gr)(r),(0,tx.gr)(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(a,i,o)}function ne(t,e){return t2(t.excludedActivityUrls,e)}function nn(t){let e="characterData"===t.type?t.target.parentElement:t.target;return Boolean(e&&e3(e)&&e.matches(`[${e7}], [${e7}] *`))}let nr="data-dd-action-name",ni=[nr,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],no=[nc,function(t){if(t.id&&!nu(t.i
4d))return`#${CSS.escape(t.id)}`}],na=[nc,function(t){if("BODY"===t.tagName)return;let e=t.classList;for(let n=0;n<e.length;n+=1){let r=e[n];if(!nu(r))return`${CSS.escape(t.tagName)}.${CSS.escape(r)}`}},function(t){return CSS.escape(t.tagName)}];function ns(t,e){let n;if(!t.isConnected)return;let r=t;for(;r&&"HTML"!==r.nodeName;){let t=nl(r,no,nd,e,n);if(t)return t;let i=nl(r,na,nf,e,n);n=i||np(function(t){let e=t.parentElement.firstElementChild,n=1;for(;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return`${CSS.escape(t.tagName)}:nth-of-type(${n})`}(r),n),r=r.parentElement}return n}function nu(t){return/[0-9]/.test(t)}function nc(t,e){if(e){let t=n(e);if(t)return t}for(let t of ni){let e=n(t);if(e)return e}function n(e){if(t.hasAttribute(e))return`${CSS.escape(t.tagName)}[${e}="${CSS.escape(t.getAttribute(e))}"]`}}function nl(t,e,n,r,i){for(let o of e){let e=o(t,r);if(e&&n(t,e,i))return np(e,i)}}function nd(t,e,n){return 1===t.ownerDocument.querySelectorAll(np(e,n)).length}function nf(t,e,n){let r;if(void 0===n)r=t=>t.matches(e);else{let t=np(`${e}:scope`,n);r=e=>null!==e.querySelector(t)}let i=t.parentElement,o=i.firstElementChild;for(;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function np(t,e){return e?`${t}>${e}`:t}let nh={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:t9.ALLOW,MASK:t9.MASK,MASK_USER_INPUT:t9.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:t9.MASK_UNLESS_ALLOWLISTED},ng="data-dd-privacy",nm="hidden",nv="***",ny="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",n_={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function nb(t){return`[${ng}="${t}"], .dd-privacy-${t}`}function nS(t,e,n){if(n&&n.has(t))return n.get(t);let r=e9(t),i=r?nS(r,e,n):e,o=nE(t),a=nw(o,i);return n&&n.set(t,a),a}function nw(t,e){switch(e){case nh.HIDDEN:case nh.IGNORE:return e}switch(t){case nh.ALLOW:case nh.MASK:case nh.MASK_USER_INPUT:case nh.MASK_UNLESS_ALLOWLISTED:case nh.HIDDEN:case nh.IGNORE:return t;default:return e}}function nE(t){if(e3(t)){if("BASE"===t.tagName)return nh.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return nh.MASK;let e=t.getAttribute("autocomplete");if(e&&(e.startsWith("cc-")||e.endsWith("-password")))return nh.MASK}return t.matches(nb(nh.HIDDEN))?nh.HIDDEN:t.matches(nb(nh.MASK))?nh.MASK:t.matches(nb(nh.MASK_UNLESS_ALLOWLISTED))?nh.MASK_UNLESS_ALLOWLISTED:t.matches(nb(nh.MASK_USER_INPUT))?nh.MASK_USER_INPUT:t.matches(nb(nh.ALLOW))?nh.ALLOW:!function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){let t=e("rel");return/preload|prefetch/i.test(t)&&"script"===e("as")||"shortcut icon"===t||"icon"===t}if("META"===t.nodeName){let n=e("name"),r=e("rel"),i=e("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===r||"apple-touch-icon"===r||"shortcut icon"===r||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function e(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?void 0:nh.IGNORE}}function nk(t,e){switch(e){case nh.MASK:case nh.HIDDEN:case nh.IGNORE:return!0;case nh.MASK_UNLESS_ALLOWLISTED:if(e2(t))return!!nO(t.parentNode)||!nC(t.textContent||"");return nO(t);case nh.MASK_USER_INPUT:return e2(t)?nO(t.parentNode):nO(t);default:return!1}}function nO(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!n_[t.tagName]}let nT=t=>t.replace(/\S/g,"x");function nx(t,e){var n,r;let i=null===(n=t.parentElement)||void 0===n?void 0:n.tagName,o=t.textContent||"";if("HEAD"!==i||o.trim()){if("SCRIPT"===i)o=nv;else if(e===nh.HIDDEN)o=nv;else if(nk(t,e)){if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?nv:e===nh.MASK_UNLESS_ALLOWLISTED?nC(r=o)?r:nT(r):nT(o)}return o}}function nC(t){var e;return!(t&&t.trim())||(null===(e=window.$DD_ALLOW)||void 0===e?void 0:e.has(t.toLocaleLowerCase()))||!1}let nI=_.WT;function nR(t,e){let n=t.closest(`[${e}]`);if(!n)return;let r=n.getAttribute(e);return nj(nL(r.trim()))}let nA=[(t,e)=>{if("labels"in t&&t.labels&&t.labels.length>0)return n$(t.labels[0],e)},t=>{if("INPUT"===t.nodeName){let e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return{name:t.value,nameSource:"text_content"}}},(t,e)=>{if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return n$(t,e)},t=>nD(t,"aria-label"),(t,e)=>{let n=t.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(e=>t.ownerDocument?t.ownerDocument.getElementById(e):null).filter(t=>Boolean(t)).map(t=>nM(t,e)).join(" "),nameSource:"text_content"}},t=>nD(t,"alt"),t=>nD(t,"name"),t=>nD(t,"title"),t=>nD(t,"placeholder"),(t,e)=>{if("options"in t&&t.options.length>0)return n$(t.options[0],e)}],nP=[(t,e)=>n$(t,e)];function nN(t,e,n){let r=t,i=0;for(;
4i<=10&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(let t of e){let e=t(r,n);if(e){let{name:t,nameSource:n}=e,r=t&&t.trim();if(r)return{name:nj(nL(r)),nameSource:n}}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function nL(t){return t.replace(/\s+/g," ")}function nj(t){return t.length>100?`${K(t,100)} [...]`:t}function nD(t,e){return{name:t.getAttribute(e)||"",nameSource:"standard_attribute"}}function n$(t,e){return{name:nM(t,e)||"",nameSource:"text_content"}}function nM(t,e){if(t.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:r,defaultPrivacyLevel:i}=e;if((0,z.W_)(z.uh.USE_TREE_WALKER_FOR_ACTION_NAME))return function(t,e,n,r){let i=new Map,o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(t){let o=nS(t,r,i);if(n&&o&&nk(t,o))return NodeFilter.FILTER_REJECT;if(e3(t)){if(t.hasAttribute(nr)||e&&t.hasAttribute(e))return NodeFilter.FILTER_REJECT;let n=getComputedStyle(t);if("visible"!==n.visibility||"none"===n.display||n.contentVisibility&&"visible"!==n.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),a="";for(;o.nextNode();){let t=o.currentNode;if(e3(t)){("BR"===t.nodeName||"P"===t.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(t).display))&&(a+=" ");continue}a+=t.textContent||""}return a.replace(/\s+/g," ").trim()}(t,r,n,i);if("innerText"in t){let e=t.innerText,i=n=>{let r=t.querySelectorAll(n);for(let t=0;t<r.length;t+=1){let n=r[t];if("innerText"in n){let t=n.innerText;t&&t.trim().length>0&&(e=e.replace(t,""))}}};return i(`[${nr}]`),r&&i(`[${r}]`),n&&i(`${nb(nh.HIDDEN)}, ${nb(nh.MASK)}`),e}return t.textContent}function nU(){let t=window.getSelection();return!t||t.isCollapsed}function nF(t){return t.target instanceof Element&&!1!==t.isPrimary}function nG(t){if(t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll)return!1;let e=t.event.target;return"LABEL"===e.tagName&&e.hasAttribute("for")&&(e=document.getElementById(e.getAttribute("for"))),!e||!e.matches('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] *')}let nq=10*_.WT,nH=new Map;
4function nz(t,e){nH.set(t,e),nH.forEach((t,e)=>{(0,_._J)(e,(0,_._q)())>nq&&nH.delete(e)})}let nB=5*_.yR;function nV(t){let e=nW(t)?{action:{id:t.id,loading_time:eY((0,_.c0)(t.duration)),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position,name_source:t.nameSource}}}:{context:t.context},n=(0,R.$e)({action:{id:B(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:M.ACTION},e),r=nW(t)?t.duration:void 0,i=nW(t)?{events:t.events}:{handlingStack:t.handlingStack};return{rawRumEvent:n,duration:r,startTime:t.startClocks.relative,domainContext:i}}function nW(t){return t.type!==G.CUSTOM}var nK=n(9012);let nZ={},nJ={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function nX(t){return{startClocks:(0,_.$I)(),source:E.z.REPORT,handling:"unhandled",...t}}function nY(t,e,n,r,i){return n?(0,A.P3)({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}var nQ=n(1337);let n0=_.WT,n1=new WeakSet;function n2(t){return(0,_.WK)(t.startTime,t.duration)}var n3=n(193);let n5=2*_.yR;function n4(t,e){let n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function n8(t){if(t&&t.nodeType===Node.COMMENT_NODE){let e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function n6(){if(e1(g.NAVIGATION)){let t=performance.getEntriesByType(g.NAVIGATION)[0];if(t)return t}let t=function(){let t={},e=performance.timing;for(let n in e)if((0,tT.hj)(e[n])){let r=n,i=e[r];t[r]=0===i?0:(0,_.ni)(i)}return t}(),e={entryType:g.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...e,toJSON:void 0}),...t};return e}function n9(t,e,n=n6){(0,n3.T)(t,"interactive",()=>{let t=n(),r=Object.assign(t.toJSON(),{entryType:g.RESOURCE,initiatorType:eF,duration:t.responseEnd,traceId:function(t){let e=function(t){let e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return n4(e&&e.content,n&&n.content)}(t)||function(t){let e=function(t){for(let e=0;e<t.childNodes.length;e+=1){let n=n8(t.childNodes[e]);if(n)return n}if(t.body)for(let e=t.body.childNodes.length-1;e>=0;e-=1){let n=t.body.childNodes[e],r=n8(n);if(r)return r;if(!e2(n))break}}(t);if(e)return n4(W(e,"trace-id"),W(e,"trace-time"))}(t);if(!(!e||e.traceTime<=(0,_.m6)()-n5))return e.traceId}(document),toJSON:()=>({...r,toJSON:void 0})});e(r)})}let n7=32*O.Hi;function rt(t,e,n,r){let i=eH(t)&&r?r.getMatchingRequest(t):void 0;return re(t,i,n,e)}function re(t,e,n,r){var i,o;if(!t&&!e)return;let a=e?function(t,e){let n=t.traceSampled&&t.traceId&&t.spanId;if(n)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}(e,r):function(t,e){let n=t.traceId;if(n)return{_dd:{trace_id:t.traceId,span_id:ei(63).toString(),rule_psr:e.rulePsr}}}(t,r);if(!r.trackResources&&!a)return;let s=t?(0,_.DY)(t.startTime):e.startClocks,u=t?function(t){let{duration:e,startTime:n,responseEnd:r}=t;return 0===e&&n<r?(0,_._J)(n,r):e}(t):(i=e.duration,n.wasInPageStateDuringPeriod("frozen",s.relative,i)?void 0:i),c=e&&function(t,e){var n;let r=(n=t.url,e.allowedGraphQlUrls.find(t=>t2([t.match],n)));if(r)return function(t,e=!1){var n;let r,i;if(!t||"string"!=typeof t)return;try{r=JSON.parse(t)}catch(t){return}if(!r||!r.query)return;let o=r.query.trim(),a=null===(n=o.match(/^\s*(query|mutation|subscription)\b/i))||void 0===n?void 0:n[1],s=r.operationName;if(a)return r.variables&&(i=JSON.stringify(r.variables)),{operationType:a,operationName:s,variables:i,payload:e?K(o,n7,"..."):void 0}}(t.body,r.trackPayload)}(e,r),l=(0,R.$e)({date:s.timeStamp,resource:{id:B(),duration:(0,_.c0)(u),type:e?e.type===eM.XHR?e$.XHR:e$.FETCH:function(t){let e=t.name;if(!(0,tg.jv)(e))return e$.OTHER;let n=(0,tg.ye)(e);for(let[e,r]of eG)if(r(t.initiatorType,n))return e;return e$.OTHER}(t),method:e?e.method:void 0,status_code:e?e.status:0===(o=t.responseStatus)?void 0:o,url:e?eZ(e.url):t.name,protocol:t&&(""===t.nextHopProtocol?void 0:t.nextHopProtocol),delivery_type:t&&(""===t.deliveryType?"other":t.deliveryType),graphql:c},type:M.RESOURCE,_dd:{discarded:!r.trackResources}},a,t&&function(t){let{renderBlockingStatus:e}=t;return{resource:{render_blocking_status:e,...function(t){if(t.startTime<t.responseStart){let{encodedBodySize:e,decodedBodySize:n,transferSize:r}=t;return{size:n,encoded_body_size:e,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}}(t),...function(t){if(!eB(t))return;let{startTime:e,fetchStart:n,workerStart:r,redirectStart:i,redirectEnd:o,domainLookupStart:a,domainLookupEnd:s,connectStart:u,secureConnectionStart:c,connectEnd:l,requestStart:d,responseStart:f,responseEnd:p}=t,h={download:eV(e,f,p),first_byte:eV(e,d,f)};return 0<r&&r<n&&(h.worker=eV(e,r,n)),n<l&&(h.connect=eV(e,u,l),u<=c&&c<=l&&(h.ssl=eV(e,c,l))),n<s&&(h.dns=eV(e,a,s)),e<o&&(h.redirect=eV(e,i,o)),h}(t)}}}(t));return{startTime:s.relative,duration:u,rawRumEvent:l,domainContext:function(t,e){if(e){let n={performanceEntry:t,isAborted:e.isAborted,handlingStack:e.handlingStack};return e.type===eM.XHR?{xhr:e.xhr,...n}:{requestInput:e.input,requestInit:e.init,response:e.response,error:e.error,...n}}return{performanceEntry:t}}(t,e)}}let rn=10*_.yR,rr=10*_.yR;function ri(t,e,n=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:th.Z};if(e1(g.VISIBILITY_STATE)){let t=performance.getEntriesByType(g.VISIBILITY_STATE).filter(t=>"hidden"===t.name).find(t=>t.startTime>=e.relative);if(t)return{timeStamp:t.startTime,stop:th.Z}}let r=1/0,{stop:i}=(0,te.y)(t,n,["pagehide","visibilitychange"],t=>{("pagehide"===t.type||"hidden"===document.visibilityState)&&(r=t.timeStamp,i())},{capture:!0});return{get timeStamp(){return r},stop:i}}let ro=(t,e)=>t*e,ra=(t,e)=>{let n=Math.max(t.left,e.left),r=Math.max(t.top,e.top),i=Math.min(t.right,e.right),o=Math.min(t.bottom,e.bottom);return n>=i||r>=o?0:ro(i-n,o-r)},rs=t=>{let e=ro(t.previousRect.width,t.previousRect.height),n=ro(t.currentRect.width,t.currentRect.height),r=ra(t.previousRect,t.currentRect);return e+n-r};function ru({x:t,y:e,width:n,height:r}){return{x:t,y:e,width:n,height:r}}let rc=5*_.WT,rl=_.WT,rd=0,rf=1/0,rp=0,rh=()=>c?rd:window.performance.interactionCount||0,rg=1*_.yR;
4function rm(){let t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function rv(){let t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function ry(t){return l||(l=new m.y$(e=>{let{throttled:n}=(0,th.P)(()=>{e.notify(r_())},200);return(0,te.O)(t,window,"resize",n,{capture:!0,passive:!0}).stop})),l}function r_(){let t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}let rb=_.WT,rS=5*_.yR,rw=5*_.yR;function rE(t){let e=t.indexOf("?");return e<0?t:t.slice(0,e)}let rk=_.yR,rO=[];async function rT(t){let e,n;let r=t.sessionStoreStrategyType;r&&(r.type===tL.COOKIE?(e=tz(r.cookieOptions),n={cookie:await rx(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):e=tK(),(0,C.eJ)("Unexpected session state",{sessionStoreStrategyType:r.type,session:e,isSyntheticsTest:tk(),createdTimestamp:null==e?void 0:e.created,expireTimestamp:null==e?void 0:e.expire,...n}))}async function rx(){let t;return{count:(t="cookieStore"in window?await window.cookieStore.getAll(tI):document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(tI))).length,domain:tb()||"undefined",...t}}var rC=n(3789),rI=n(481),rR=n(5419);function rA(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}let rP=10*_.WT;function rN(){0!==d.batchCount&&((0,C.qZ)("Customer data measures",d),rD())}function rL(){return{min:1/0,max:0,sum:0}}function rj(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function rD(){d={batchCount:0,batchBytesCount:rL(),batchMessagesCount:rL()}}function r$(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}let rM=_.WT;function rU(t,e){let n=W(document.cookie,t),r=(0,tx.Zi)(()=>{let r=W(document.cookie,t);r!==n&&e(r)},rM);return()=>{(0,tx.cv)(r)}}let rF="datadog-ci-visibility-test-execution-id";function rG(t,e,n){let r=0,i=!1;return{isLimitReached(){if(0===r&&(0,tx.iK)(()=>{r=0},_.yR),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:`Reached max number of ${t}s by minute: ${e}`,source:E.z.AGENT,startClocks:(0,_.$I)()})}finally{i=!1}}return!0}}}var rq=n(9276);function rH(t){return"object"===(0,to.o)(t)}let rz={"view.name":"string","view.url":"string","view.referrer":"string"},rB={context:"object"},rV={service:"string",version:"string"};var rW=n(8826);let rK=tl.uR,rZ=[M.ACTION,M.ERROR,M.LONG_TASK,M.RESOURCE,M.VITAL];function rJ(t,e,n,r,i,o,a,u,l){var h,v,S,k;let O;let T=[],I=new eC,N=rK();I.subscribe(13,t=>(0,ek.j)("rum",t));let L=t=>{I.notify(14,{error:t}),(0,C.eJ)("Error reported to customer",{"error.message":t.message})},j=(0,eO.FP)(t),$=j.subscribe(t=>{I.notify(11,t)});T.push(()=>$.unsubscribe());let V=(0,C.VL)("browser-rum-sdk",t,N,L,j,i);T.push(V.stop);let W=(0,tp.xT)()?function(){let t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:(0,tp.ke)("records")?1:0};return{findTrackedSession:()=>t,expire:th.Z,expireObservable:new m.y$,setForcedReplay:th.Z}}():function(t,e,n){let r=function(t,e,n,r){let i=new m.y$,o=new m.y$,a=function(t,e,n,r,i=t.type===tL.COOKIE?function(t,e){let n={isLockEnabled:(0,tC.mJ)(),persistSession:n=>tH(e,t,n,tP),retrieveSession:()=>tz(e),expireSession:n=>tH(e,t,tD(n,t),tA)};return function(t){let e=t_(tI);if(!e){let e=t_("_dd"),n=t_("_dd_r"),r=t_("_dd_l"),i={};e&&(i.id=e),r&&/^[01]$/.test(r)&&(i.logs=r),n&&/^[012]$/.test(n)&&(i.rum=n),t$(i)||(tU(i),t.persistSession(i))}}(n),n}(e,t.cookieOptions):{isLockEnabled:!1,persistSession:tW,retrieveSession:tK,expireSession:t=>{tW(tD(t,e))}}){let o;let a=new m.y$,s=new m.y$,u=new m.y$,c=(0,tx.Zi)(function(){let t=i.retrieveSession();tM(t)?tX({process:t=>tM(t)?tD(t,e):void 0,after:f},i):f(t)},t0);p();let{throttled:l,cancel:d}=(0,th.P)(()=>{tX({process:t=>{if(t$(t))return;let e=f(t);return function(t){if(t$(t))return 0;let e=r(t[n]);t[n]=e,delete t.isExpired,"0"===e||t.id||(t.id=B(),t.created=String((0,_.m6)()))}(e),e},after:t=>{!t$(t)&&!h()&&(o=t,a.notify()),o=t}},i)},t0);function f(t){var r;return tM(t)&&(t=tD(t,e)),h()&&((r=t,o.id!==r.id||o[n]!==r[n])?(o=tD(o,e),s.notify()):(u.n
4otify({previousState:o,newState:t}),o=t)),t}function p(){tX({process:t=>{if(t$(t))return t.anonymousId=B(),tD(t,e)},after:t=>{o=t}},i)}function h(){return(null==o?void 0:o[n])!==void 0}return{expandOrRenewSession:l,expandSession:function(){tX({process:t=>h()?f(t):void 0},i)},getSession:()=>o,renewObservable:a,expireObservable:s,sessionStateUpdateObservable:u,restartSession:p,expire:t=>{d(),!1===t&&o&&delete o.anonymousId,i.expireSession(o),f(tD(o,e))},stop:()=>{(0,tx.cv)(c)},updateSessionState:function(t){tX({process:e=>({...e,...t}),after:f},i)}}}(t.sessionStoreStrategyType,t,e,n);rO.push(()=>a.stop());let s=eN({expireDelay:tA});if(rO.push(()=>s.stop()),a.renewObservable.subscribe(()=>{s.add(u(),(0,_._q)()),i.notify()}),a.expireObservable.subscribe(()=>{o.notify(),s.closeActive((0,_._q)())}),a.expandOrRenewSession(),s.add(u(),(0,_.cQ)().relative),(0,z.W_)(z.uh.SHORT_SESSION_INVESTIGATION)){let e=a.getSession();e&&function(t,e){if(!window.cookieStore||!e.created)return;let n=Number(e.created),r=(0,_.m6)(),{stop:i}=(0,te.O)(t,cookieStore,"change",function(t){let o=(0,tR.dF)(t.changed,t=>t.name===tI);if(!o)return;let a=(0,_.m6)()-n;if(a>14*_.yR)i();else{let t=tG(o.value);if(t.id&&t.id!==e.id){i();let n=(0,_.m6)()-r;rx().then(r=>{(0,C.eJ)("Session cookie changed",{time:n,session_age:a,old:e,new:t,cookie:r})}).catch(x.$y)}}});rO.push(i)}(t,e)}function u(){let n=a.getSession();return n?{id:n.id,trackingType:n[e],isReplayForced:!!n.forcedReplay,anonymousId:n.anonymousId}:(rT(t).catch(()=>void 0),{id:"invalid",trackingType:"0",isReplayForced:!1,anonymousId:void 0})}return r.observable.subscribe(()=>{r.isGranted()?a.expandOrRenewSession():a.expire(!1)}),function(t,e){let{stop:n}=(0,te.y)(t,window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0});rO.push(n)}(t,()=>{r.isGranted()&&a.expandOrRenewSession()}),function(t,e){let n=()=>{"visible"===document.visibilityState&&e()},{stop:r}=(0,te.O)(t,document,"visibilitychange",n);rO.push(r);let i=(0,tx.Zi)(n,rk);rO.push(()=>{(0,tx.cv)(i)})}(t,()=>a.expandSession()),function(t,e){let{stop:n}=(0,te.O)(t,window,"resume",e,{capture:!0});rO.push(n)}(t,()=>a.restartSession()),{findSession:(t,e)=>s.find(t,e),renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}(t,"rum",e=>"0"===e||"1"===e||"2"===e?e:(0,tT.y7)(t.sessionSampleRate)?(0,tT.y7)(t.sessionReplaySampleRate)?"1":"2":"0",n);return r.expireObservable.subscribe(()=>{e.notify(9)}
4),r.renewObservable.subscribe(()=>{e.notify(10)}),r.sessionStateUpdateObservable.subscribe(({previousState:t,newState:e})=>{if(!t.forcedReplay&&e.forcedReplay){let t=r.findSession();t&&(t.isReplayForced=!0)}}),{findTrackedSession:t=>{let e=r.findSession(t);if(e&&"0"!==e.trackingType)return{id:e.id,sessionReplay:"1"===e.trackingType?1:e.isReplayForced?2:0,anonymousId:e.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:()=>r.updateSessionState({forcedReplay:"1"})}}(t,I,o);if((0,tp.xT)())!function(t){let e=(0,tp.Ad)();t.subscribe(13,t=>{e.send("rum",t)})}(I);else{let e=function(t,e,n,r,i,o){let a=[t.rumEndpointBuilder];t.replica&&a.push(t.replica.rumEndpointBuilder);let s=(0,rC.n)({encoder:o(2),request:(0,rI.UF)(a,t.batchBytesLimit,n),flushController:(0,rR.r)({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageMayExitObservable:r,sessionExpireObservable:i}),messageBytesLimit:t.messageBytesLimit});return e.subscribe(13,t=>{t.type===M.VIEW?s.upsert(t,t.view.id):s.add(t)}),s}(t,I,L,j,W.expireObservable,i);T.push(()=>e.stop()),k=e.flushController.flushObservable,V.metricsEnabled&&(rD(),f=!1,I.subscribe(13,()=>{f=!0}),k.subscribe(({bytesCount:t,messagesCount:e})=>{f&&(f=!1,d.batchCount+=1,rj(d.batchBytesCount,t),rj(d.batchMessagesCount,e))}),(0,tx.Zi)(rN,rP))}let Y=function(){let t=ex();return new m.y$(e=>{if(!t)return;let n=new t((0,x.zk)(t=>e.notify(t)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}(),Q=(h=location,O=(0,tn.mv)(h),new m.y$(e=>{let{stop:n}=function(t,e){let{stop:n}=(0,y.S)(rA("pushState"),"pushState",({onPostCall:t})=>{t(e)}),{stop:r}=(0,y.S)(rA("replaceState"),"replaceState",({onPostCall:t})=>{t(e)}),{stop:i}=(0,te.O)(t,window,"popstate",e);return{stop:()=>{n(),r(),i()}}}(t,i),{stop:r}=(0,te.O)(t,window,"hashchange",i);function i(){if(O.href===h.href)return;let t=(0,tn.mv)(h);e.notify({newLocation:t,oldLocation:O}),O=t}return()=>{n(),r()}})),{observable:tt,stop:tr}=function(){let t=new m.y$,{stop:e}=(0,y.S)(window,"open",()=>t.notify());return{observable:t,stop:e}}();T.push(tr),N.register(0,({eventType:e})=>{let n=t.source;return{type:e,_dd:{format_version:2,drift:(0,_.QA)(),configuration:{session_sample_rate:(0,tT.NM)(t.sessionSampleRate,3),session_replay_sample_rate:(0,tT.NM)(t.sessionReplaySampleRate,3),profiling_sample_rate:(0,tT.NM)(t.profilingSampleRate,3)},browser_sdk_version:(0,tp.xT)()?"6.23.0":void 0,sdk_name:l},application:{id:t.applicationId},date:(0,_.n$)(),source:n}}),N.register(1,()=>({application:{id:t.applicationId}}));let ta=function(t,e,n=500){let r;let i=eN({expireDelay:tA,maxEntries:4e3});if(e1(g.VISIBILITY_STATE)){let t=performance.getEntriesByType(g.VISIBILITY_STATE);t.forEach(t=>{let e="hidden"===t.name?"hidden":"active";a(e,t.startTime)})}a(r$(),(0,_._q)());let{stop:o}=(0,te.y)(e,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],t=>{a("freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":r$(),t.timeStamp)},{capture:!0});function a(t,e=(0,_._q)()){t!==r&&(r=t,i.closeActive(e),i.add({state:r,startTime:e},e))}function s(t,e,n){return i.findAll(e,n).some(e=>e.state===t)}return t.register(0,({startTime:t,duration:e=0,eventType:r})=>{if(r===M.VIEW){let o=i.findAll(t,e);return{type:r,_dd:{page_states:function(t,e,n){if(0!==t.length)return t.slice(-n).reverse().map(({state:t,startTime:n})=>({state:t,start:(0,_.c0)((0,_._J)(e,n))}))}(o,t,n)}}}return r===M.ACTION||r===M.ERROR?{type:r,view:{in_foreground:s("active",t,0)}}:tl.kb}),{wasInPageStateDuringPeriod:s,addPageState:a,stop:()=>{o(),i.stop()}}}(N,t),ts=function(t){let e=eN({expireDelay:tA});return t.subscribe(1,t=>{e.add({service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},t.startClocks.relative)}),t.subscribe(6,({endClocks:t})=>{e.closeActive(t.relative)}),t.subscribe(3,t=>{let n=e.find(t.startClocks.relative);n&&(t.name&&(n.name=t.name),t.context&&(n.context=t.context),n.sessionIsActive=t.sessionIsActive)}),t.subscribe(10,()=>{e.reset()}),{findView:t=>e.find(t),stop:()=>{e.stop()}}}(I);T.push(()=>ts.stop());let tg=function(t,e,n,r){let i;let o=eN({expireDelay:tA});t.subscribe(1,({startClocks:t})=>{let e=r.href;o.add(s({url:e,referrer:i||document.referrer}),t.relative),i=e}),t.subscribe(6,({endClocks:t})=>{o.closeActive(t.relative)});let a=n.subscribe(({newLocation:t})=>{let e=o.find();if(e){let n=(0,_._q)();o.closeActive(n),o.add(s({url:t.href,referrer:e.referrer}),n)}});function s({url:t,referrer:e}){return{url:t,referrer:e}}return e.register(0,({startTime:t,eventType:e})=>{let n=o.find(t);return n?{type:e,view:{url:n.url,referrer:n.referrer}}:tl.C_}),{findUrl:t=>o.find(t),stop:()=>{a.unsubscribe(),o.stop()}}}(I,N,Q,location);T.push(()=>tg.stop());let tv=function(t,e,n){let r=eN({expireDelay:tA});return t.subscribe(1,({startClocks:t})=>{r.add({},t.relative)}),t.subscribe(6,({endClocks:t})=>{r.closeActive(t.relative)}),e.register(0,({startTime:t,eventType:e})=>{let i=n.trackFeatureFlagsForEvents.concat([M.VIEW,M.ERROR]);if(!i.includes(e))return tl.kb;let o=r.find(t);return!o||(0,tn.Qr)(o)?tl.kb:{type:e,feature_flags:o}}),{addFeatureFlagEvaluation:(t,e)=>{let n=r.find();n&&(n[t]=e)}}}(I,N,t);N.register(0,({eventType:t,startTime:n})=>{let r,i,o;let a=W.findTrackedSession(n),s=ts.findView(n);return a&&s?(t===M.VIEW?(r=!!e.getReplayStats(s.id)||void 0,i=1===a.sessionReplay,o=!!s.sessionIsActive&&void 0):r=!!e.isRecording()||void 0,{type:t,session:{id:a.id,type:"user",has_replay:r,sampled_for_replay:i,is_active:o}}):tl.C_}),N.register(1,({startTime:t})=>{let e=W.findTrackedSession(t);return e?{session:{id:e.id}}:tl.kb}),function(t){t.register(0,({eventType:t})=>({type:t,connectivity:(0,rW.T)()}))}(N),function(t,e){t.register(1,()=>{let t=e.isGranted();return t?tl.kb:tl.C_})}(N,o);let ty=function(t,e,n,r){let i=tc();return e.storeContextsAcrossPages&&ti(e,i,"rum",2),t.register(0,()=>{let t=i.getContext();return r?{context:t}:t}),i}(N,t,0,!0),tb=function(t,e,n,r){let i=td();return e.storeContextsAcrossPages&&ti(e,i,"rum",1),t.register(0,({eventType:t,startTime:r})=>{let o=i.getContext(),a=n.findTrackedSession(r);return(a&&a.anonymousId&&!o.anonymous_id&&e.trackAnonymousUser&&(o.anonymous_id=a.anonymousId),(0,tn.Qr)(o))?tl.kb:{type:t,usr:o}}),t.register(1,({startTime:t})=>{var e;return{anonymous_id:null===(e=n.findTrackedSession(t))||void 0===e?void 0:e.anonymousId}}),i}(N,t,W,0),tO=function(t,e,n){let r=tf();return e.storeContextsAcrossPages&&ti(e,r,"rum",4),t.register(0,()=>{let t=r.getContext();return(0,tn.Qr)(t)||!t.id?tl.kb:{account:t}}),r}(N,t,0),{actionContexts:tN,addAction:tj,addEvent:tF,stop:tq}=function(t,e,n,r,i,o,a){let s=function(t,e,n,r,i){let{unsubscribe:o}=t.subscribe(0,e=>{t.notify(12,nV(e))});e.register(0,({startTime:t,eventType:e})=>
4{if(e!==M.ERROR&&e!==M.RESOURCE&&e!==M.LONG_TASK)return tl.kb;let n=a.findActionId(t);return n?{type:e,action:{id:n}}:tl.kb}),e.register(1,({startTime:t})=>({action:{id:a.findActionId(t)}}));let a={findActionId:th.Z},s=th.Z;return i.trackUserInteractions&&({actionContexts:a,stop:s}=function(t,e,n,r){let i;let o=eN({expireDelay:nB}),a=new m.y$;t.subscribe(10,()=>{o.reset()}),t.subscribe(5,c),t.subscribe(11,t=>{t.reason===eO.k$.UNLOADING&&c()});let{stop:s}=function(t,{onPointerDown:e,onPointerUp:n}){let r,i;let o={selection:!1,input:!1,scroll:!1},a=[(0,te.O)(t,window,"pointerdown",t=>{nF(t)&&(r=nU(),o={selection:!1,input:!1,scroll:!1},i=e(t))},{capture:!0}),(0,te.O)(t,window,"selectionchange",()=>{r&&nU()||(o.selection=!0)},{capture:!0}),(0,te.O)(t,window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),(0,te.O)(t,window,"pointerup",t=>{if(nF(t)&&i){let e=o;n(i,t,()=>e),i=void 0}},{capture:!0}),(0,te.O)(t,window,"input",()=>{o.input=!0},{capture:!0})];return{stop:()=>{a.forEach(t=>t.stop())}}}(r,{onPointerDown:i=>(function(t,e,n,r,i){let o;if((o=t.enablePrivacyForActionName?nS(r.target,t.defaultPrivacyLevel):nh.ALLOW)===nh.HIDDEN)return;let a=function(t,e,n){let r=t.target.getBoundingClientRect(),i=ns(t.target,n.actionNameAttribute);i&&nz(t.timeStamp,i);let{name:o,nameSource:a}=function(t,e,n=nh.ALLOW){let{actionNameAttribute:r}=e,i=nR(t,nr)||r&&nR(t,r);return i?{name:i,nameSource:"custom_attribute"}:n===nh.MASK?{name:"Masked Element",nameSource:"mask_placeholder"}:nN(t,nA,e)||nN(t,nP,e)||{name:"",nameSource:"blank"}}(t.target,n,e);return{type:G.CLICK,target:{width:Math.round(r.width),height:Math.round(r.height),selector:i},position:{x:Math.round(t.clientX-r.left),y:Math.round(t.clientY-r.top)},name:o,nameSource:a}}(r,o,t),s=!1;return nt(e,n,i,t,t=>{s=t.hadActivity},100),{clickActionBase:a,hadActivityOnPointerDown:()=>s}})(r,t,e,i,n),onPointerUp:({clickActionBase:i,hadActivityOnPointerDown:s},c,l)=>{(function(t,e,n,r,i,o,a,s,u,c,l){var d;let f=function t(e,n,r,i,o){let a;let s=B(),u=(0,_.$I)(),c=n.add(s,u.relative),l=eQ({lifeCycle:e,isChildEvent:t=>void 0!==t.action&&(Array.isArray(t.action.id)?t.action.id.includes(s):t.action.id===s)}),d=0,f=[],p=new m.y$;function h(t){0===d&&(d=1,(a=t)?c.close((0,_.ni)(a)):c.remove(),l.stop(),p.notify())}return{event:o,stop:h,stopObservable:p,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==a},getUserActivity:r,addFrustration:t=>{f.push(t)},startClocks:u,isStopped:()=>1===d||2===d,clone:()=>t(e,n,r,i,o),validate:t=>{if(h(),1!==d)return;let{resourceCount:n,errorCount:r,longTaskCount:c}=l.eventCounts,p={duration:a&&(0,_._J)(u.timeStamp,a),startClocks:u,id:s,frustrationTypes:f,counts:{resourceCount:n,errorCount:r,longTaskCount:c},events:null!=t?t:[o],event:o,...i};e.notify(0,p),d=2},discard:()=>{h(),d=2}}}(e,i,c,s,u);a(f);let p=null===(d=null==s?void 0:s.target)||void 0===d?void 0:d.selector;p&&nz(u.timeStamp,p);let{stop:h}=nt(e,n,r,t,t=>{t.hadActivity&&t.end<f.startClocks.timeStamp?f.discard():t.hadActivity?f.stop(t.end):l()?f.stop(f.startClocks.timeStamp):f.stop()},nq),g=e.subscribe(5,({endClocks:t})=>{f.stop(t.timeStamp)}),v=o.subscribe(()=>{f.stop()});f.stopObservable.subscribe(()=>{g.unsubscribe(),h(),v.unsubscribe()})})(r,t,e,n,o,a,u,i,c,l,s)}});return{stop:()=>{c(),a.notify(),s()},actionContexts:{findActionId:t=>o.findAll(t)}};function u(t){if(!i||!i.tryAppend(t)){let e=t.clone();i=function(t,e){let n;let r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),(0,tx.gr)(n),n=(0,tx.iK)(s,nI)}function a(){1===i&&r.every(t=>t.isStopped())&&(i=2,e(r))}function s(){(0,tx.gr)(n),0===i&&(i=1,a())}return o(t),{tryAppend:t=>{var e,n;return 0===i&&(!(r.length>0)||(e=r[r.length-1].event,n=t.event,e.target===n.target&&100>=Math.sqrt(Math.pow(e.clientX-n.clientX,2)+Math.pow(e.clientY-n.clientY,2))&&e.timeStamp-n.timeStamp<=nI)?(o(t),!0):(s(),!1))},stop:()=>{s()}}}(t,t=>{(function(t,e){let{isRage:n}=function(t,e){if(function(t){if(t.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=_.WT)return!0;return!1}(t))return e.addFrustration(q.RAGE_CLICK),t.some(nG)&&e.addFrustration(q.DEAD_CLICK),e.hasError&&e.addFrustration(q.ERROR_CLICK),{isRage:!0};let n=t.some(t=>t.getUserActivity().selection);return t.forEach(t=>{t.hasError&&t.addFrustration(q.ERROR_CLICK),nG(t)&&!n&&t.addFrustration(q.DEAD_CLICK)}),{isRage:!1}}(t,e);n?(t.forEach(t=>t.discard()),e.stop((0,_.n$)()),e.validate(t.map(t=>t.event))):(e.discard(),t.forEach(t=>t.validate()))})(t,e)})}}function c(){i&&i.stop()}}(t,n,r,i)),{addAction:e=>{t.notify(12,nV(e))},actionContexts:a,stop:()=>{o(),s()}}}(t,e,i,o,n),u=function(t,e){let n;let r=requestAnimationFrame((0,x.zk)(()=>
4{n=r_()})),i=ry(e).subscribe(t=>{n=t}).unsubscribe;return t.register(0,({eventType:t})=>({type:t,display:n?{viewport:n}:void 0})),{stop:()=>{i(),r&&cancelAnimationFrame(r)}}}(e,n),c=function(t,e,n=function(t,e){let n=window.cookieStore?(e,n)=>{let r=(0,te.O)(t,window.cookieStore,"change",t=>{let r=t.changed.find(t=>t.name===e)||t.deleted.find(t=>t.name===e);r&&n(r.value)});return r.stop}:rU;return new m.y$(t=>n(e,e=>t.notify(e)))}(t,rF)){var r;let i=t_(rF)||(null===(r=window.Cypress)||void 0===r?void 0:r.env("traceId")),o=n.subscribe(t=>{i=t});return e.register(0,({eventType:t})=>"string"!=typeof i?tl.kb:{type:t,session:{type:"ci_test"},ci_test:{test_execution_id:i}}),{stop:()=>{o.unsubscribe()}}}(n,e);return!function(t){t.register(0,({eventType:t})=>{if(!tk())return tl.kb;let e=tw(),n=tE();return{type:t,session:{type:"synthetics"},synthetics:{test_id:e,result_id:n,injected:tS()}}})}(e),!function(t,e,n,r){p={[M.VIEW]:{"view.performance.lcp.resource_url":"string",...rB,...rz,...rV},[M.ERROR]:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...rB,...rz,...rV},[M.RESOURCE]:{"resource.url":"string",...rB,...rz,...rV},[M.ACTION]:{"action.target.name":"string",...rB,...rz,...rV},[M.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...rB,...rz,...rV},[M.VITAL]:{...rB,...rz,...rV}};let i={[M.ERROR]:rG(M.ERROR,t.eventRateLimiterThreshold,r),[M.ACTION]:rG(M.ACTION,t.eventRateLimiterThreshold,r),[M.VITAL]:rG(M.VITAL,t.eventRateLimiterThreshold,r)};e.subscribe(12,({startTime:r,duration:o,rawRumEvent:a,domainContext:s})=>{let u=n.triggerHook(0,{eventType:a.type,startTime:r,duration:o});if(u===tl.C_)return;let c=(0,R.$e)(u,a,{ddtags:(0,rq.MS)(t).join(",")});(function(t,e,n,r){var i;if(e){let r=function(t,e,n){let r=(0,R.I8)(t),i=n(r);return(0,tR.qP)(e).forEach(([e,n])=>(function t(e,n,r,i){let[o,...a]=r;if("[]"===o){Array.isArray(e)&&Array.isArray(n)&&e.forEach((e,r)=>t(e,n[r],a,i));return}if(rH(e)&&rH(n)){if(a.length>0)return t(e[o],n[o],a,i);(function(t,e,n,r){let i=(0,to.o)(n);i===r?t[e]=(0,P.N)(n):"object"===r&&("undefined"===i||"null"===i)&&(t[e]={})})(e,o,n[o],i)}})(t,r,e.split(/\.|(?=\[\])/),n)),i}(t,p[t.type],t=>e(t,n));if(!1===r&&t.type!==M.VIEW)return!1;!1===r&&D.jf.warn("Can't dismiss view events using beforeSend!")}let o=null===(i=r[t.type])||void 0===i?void 0:i.isLimitReached();return!o})(c,t.beforeSend,s,i)&&((0,tn.Qr)(c.context)&&delete c.context,e.notify(13,c))})}(n,t,e,a),{pageStateHistory:r,addAction:s.addAction,addEvent:(e,n,r,i)=>{rZ.includes(n.type)&&t.notify(12,{startTime:e,rawRumEvent:n,domainContext:r,duration:i})},actionContexts:s.actionContexts,stop:()=>{s.stop(),c.stop(),u.stop(),r.stop()}}}(I,N,t,ta,Y,tt,L);T.push(tq);let{addTiming:tB,startView:tV,setViewName:tZ,setViewContext:tJ,setViewContextProperty:tY,getViewContext:tQ,stop:t1}=(v=location,I.subscribe(4,n=>I.notify(12,function(t,e,n){var r,i,o,a,s,u,c,l,d,f,p,h,g,m,v,y,b,S;let w=n.getReplayStats(t.id),E=null===(i=null===(r=t.commonViewMetrics)||void 0===r?void 0:r.cumulativeLayoutShift)||void 0===i?void 0:i.devicePixelRatio,k={_dd:{document_version:t.documentVersion,replay_stats:w,cls:E?{device_pixel_ratio:E}:void 0,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually}},date:t.startClocks.timeStamp,type:M.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:null===(o=t.commonViewMetrics.cumulativeLayoutShift)||void 0===o?void 0:o.value,cumulative_layout_shift_time:(0,_.c0)(null===(a=t.commonViewMetrics.cumulativeLayoutShift)||void 0===a?void 0:a.time),cumulative_layout_shift_target_selector:null===(s=t.commonViewMetrics.cumulativeLayoutShift)||void 0===s?void 0:s.targetSelector,first_byte:(0,_.c0)(null===(u=t.initialViewMetrics.navigationTimings)||void 0===u?void 0:u.firstByte),dom_complete:(0,_.c0)(null===(c=t.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domComplete),dom_content_loaded:(0,_.c0)(null===(l=t.initialViewMetrics.navigationTimings)||void 0===l?void 0:l.domContentLoaded),dom_interactive:(0,_.c0)(null===(d=t.initialViewMetrics.navigationTimings)||void 0===d?void 0:d.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:(0,_.c0)(t.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,_.c0)(null===(f=t.initialViewMetrics.firstInput)||void 0===f?void 0:f.delay),first_input_time:(0,_.c0)(null===(p=t.initialViewMetrics.firstInput)||void 0===p?void 0:p.time),first_input_target_selector:null===(h=t.initialViewMetrics.firstInput)||void 0===h?void 0:h.targetSelector,interaction_to_next_paint:(0,_.c0)(null===(g=t.commonViewMetrics.interactionToNextPaint)||void 0===g?void 0:g.value),interaction_to_next_paint_time:(0,_.c0)(null===(m=t.commonViewMetrics.interactionToNextPaint)||void 0===m?void 0:m.time),interaction_to_next_paint_target_selector:null===(v=t.commonViewMetrics.interactionToNextPaint)||void 0===v?void 0:v.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:(0,_.c0)(null===(y=t.initialViewMetrics.largestContentfulPaint)||void 0===y?void 0:y.value),largest_contentful_paint_target_selector:null===(b=t.initialViewMetrics.largestContentfulPaint)||void 0===b?void 0:b.targetSelector,load_event:(0,_.c0)(null===(S=t.initialViewMetrics.navigationTimings)||void 0===S?void 0:S.loadEvent),loading_time:eY((0,_.c0)(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:t,interactionToNextPaint:e},{firstContentfulPaint:n,firstInput:r,largestContentfulPaint:i}){return{cls:t&&{score:t.value,timestamp:(0,_.c0)(t.time),target_selector:t.targetSelector,previous_rect:t.previousRect,current_rect:t.currentRect},fcp:n&&{timestamp:(0,_.c0)(n)},fid:r&&{duration:(0,_.c0)(r.delay),timestamp:(0,_.c0)(r.time),target_selector:r.targetSelector},inp:e&&{duration:(0,_.c0)(e.value),timestamp:(0,_.c0)(e.time),target_selector:e.targetSelector},lcp:i&&{timestamp:(0,_.c0)(i.value),target_selector:i.targetSelector,resource_url:i.resourceUrl}}}(t.commonViewMetrics,t.initialViewMetrics),resource:{count:t.eventCounts.resourceCount},time_spent:(0,_.c0)(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,_.c0)(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:e.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{let t=new Intl.DateTimeFormat;return t.resolvedOptions().timeZone}catch(t){return}}()}};return(0,tn.Qr)(t.customTimings)||(k.view.custom_timings=(0,tn.Q8)(t.customTimings,_.c0)),{rawRumEvent:k,startTime:t.startClocks.relative,duration:t.duration,domainContext:{location:t.location}}}(n,t,e))),N.register(0,({startTime:t,eventType:e})=>{let n=ts.findView(t);return n?{type:e,service:n.service,version:n.version,context:n.context,view:{id:n.id,name:n.name}}:tl.C_}),N.register(1,({startTime:t})=>{var e;return{view:{id:null===(e=ts.findView(t))||void 0===e?void 0:e.id}}}),function(t,e,n,r,i,o,a,s){let u,l;let d=new Set,f=p(F.INITIAL_LOAD,(0,_.cQ)(),s);function p(o,a,s){let u=function(t,e,n,r,i,o,a=(0,_.$I)(),s){let u;let l=B(),d=new m.y$,f={},p=0,h=(0,tn.mv)(i),v=tu(),y=!0,b=null==s?void 0:s.name,S=(null==s?void 0:s.service)||r.service,w=(null==s?void 0:s.version)||r.version,E=null==s?void 0:s.context;E&&v.setContext(E);let k={id:l,name:b,startClocks:a,service:S,version:w,context:E};t.notify(1,k),t.notify(2,k);let{throttled:O,cancel:T}=(0,th.P)(W,3e3,{leading:!1}),{setLoadEvent:C,setViewEnd:I,stop:R,stopINPTracking:A,getCommonViewMetrics:P}=function(t,e,n,r,i,o,a){let s={},{stop:u,setLoadEvent:l}=function(t,e,n,r,i,o,a){let s=i===F.INITIAL_LOAD,u=!0,c=[],l=ri(r,o);function d(){if(!u&&!s&&c.length>0){let t=Math.max(...c);t<l.timeStamp-o.relative&&a(t)}}let{stop:f}=nt(t,e,n,r,t=>{u&&(u=!1,t.hadActivity&&c.push((0,_._J)(o.timeStamp,t.end)),d())});return{stop:()=>{f(),l.stop()}
4,setLoadEvent:t=>{s&&(s=!1,c.push(t),d())}}}(t,e,n,r,o,a,t=>{s.loadingTime=t,i()}),{stop:d}=function(t,e,n,r=function(t,e=rb){return new m.y$(n=>{if(window.ResizeObserver){let r=(0,th.P)(function(){n.notify(function(){let t=rv(),{height:e}=r_(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight);return{scrollHeight:n,scrollDepth:Math.round(e+t),scrollTop:t}}())},e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver((0,x.zk)(r.throttled));i&&o.observe(i);let a=(0,te.O)(t,window,"scroll",r.throttled,{passive:!0});return()=>{r.cancel(),o.disconnect(),a.stop()}}})}(t)){let i=0,o=0,a=0,s=r.subscribe(({scrollDepth:t,scrollTop:r,scrollHeight:s})=>{let u=!1;if(t>i&&(i=t,u=!0),s>o){o=s;let t=(0,_._q)();a=(0,_._J)(e.relative,t),u=!0}u&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:r,maxScrollHeight:o,maxScrollHeightTime:a})});return{stop:()=>s.unsubscribe()}}(r,a,t=>{s.scroll=t}),{stop:f}=function(t,e,n){let r,i,o,a,s;if(!(e1(g.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:th.Z};let u=0;n({value:0});let c=(a=0,s=0,{update:t=>{let e;let n=void 0===i||t.startTime-o>=rl||t.startTime-i>=rc;return n?(i=o=t.startTime,s=a=t.value,e=!0):(a+=t.value,o=t.startTime,(e=t.value>s)&&(s=t.value)),{cumulatedValue:a,isMaxValue:e}}}),l=e0(t,{type:g.LAYOUT_SHIFT,buffered:!0}).subscribe(i=>{var o;for(let a of i){if(a.hadRecentInput||a.startTime<e)continue;let{cumulatedValue:i,isMaxValue:s}=c.update(a);if(s){let t=function(t){let e;for(let n of t)if(n.node&&e3(n.node)){let t=rs(n);(!e||rs(e)<t)&&(e=n)}return e}(a.sources);r={target:(null==t?void 0:t.node)?new WeakRef(t.node):void 0,time:(0,_._J)(e,a.startTime),previousRect:null==t?void 0:t.previousRect,currentRect:null==t?void 0:t.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>u){u=i;let e=null===(o=null==r?void 0:r.target)||void 0===o?void 0:o.deref();n({value:(0,tT.NM)(u,4),targetSelector:e&&ns(e,t.actionNameAttribute),time:null==r?void 0:r.time,previousRect:(null==r?void 0:r.previousRect)?ru(r.previousRect):void 0,currentRect:(null==r?void 0:r.currentRect)?ru(r.currentRect):void 0,devicePixelRatio:null==r?void 0:r.devicePixelRatio})}}});return{stop:()=>{l.unsubscribe()}}}(r,a.relative,t=>{s.cumulativeLayoutShift=t,i()}),{stop:p,getInteractionToNextPaint:h,setViewEnd:v}=function(t,e,n){let r,i;if(!(e1(g.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:th.Z,stop:th.Z};let{getViewInteractionCount:o,stopViewInteractionCount:a}=function(t){"interactionCount"in performance||c||(c=new window.PerformanceObserver((0,x.zk)(t=>{t.getEntries().forEach(t=>{t.interactionId&&(rf=Math.min(rf,t.interactionId),rd=((rp=Math.max(rp,t.interactionId))-rf)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0});let e=t===F.INITIAL_LOAD?0:rh(),n={stopped:!1};return{getViewInteractionCount:()=>n.stopped?n.interactionCount:rh()-e,stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:rh()-e}}}}(n),s=1/0,u=function(t){let e=[];function n(){e.sort((t,e)=>e.duration-t.duration).splice(10)}return{process(t){let r=e.findIndex(e=>t.interactionId===e.interactionId),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction(){let n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(o),l=-1;function d(n){for(let t of n)t.interactionId&&t.startTime>=e&&t.startTime<=s&&u.process(t);let o=u.estimateP98Interaction();o&&o.duration!==l&&(l=o.duration,i=(0,_._J)(e,o.startTime),!(r=function(t){let e=nH.get(t);return nH.delete(t),e}(o.startTime))&&o.target&&e3(o.target)&&(r=ns(o.target,t.actionNameAttribute)))}let f=e0(t,{type:g.FIRST_INPUT,buffered:!0}).subscribe(d),p=e0(t,{type:g.EVENT,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:()=>l>=0?{value:Math.min(l,rg),targetSelector:r,time:i}:o()?{value:0}:void 0,setViewEnd:t=>{s=t,a()},stop:()=>{p.unsubscribe(),f.unsubscribe()}}}(r,a.relative,o);return{stop:()=>{u(),f(),d()}
4,stopINPTracking:p,setLoadEvent:l,setViewEnd:v,getCommonViewMetrics:()=>(s.interactionToNextPaint=h(),s)}}(t,e,n,r,V,o,a),{stop:N,initialViewMetrics:L}=o===F.INITIAL_LOAD?function(t,e,n,r){let i={},{stop:o}=function(t,e,n=n6){return function(t,e){let n;let{stop:r}=(0,n3.T)(t,"complete",()=>{n=(0,tx.iK)(()=>e())});return{stop:()=>{r(),(0,tx.gr)(n)}}}(t,()=>{let t=n();t.loadEventEnd<=0||e({domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:t.responseStart>=0&&t.responseStart<=(0,_._q)()?t.responseStart:void 0})})}(t,t=>{n(t.loadEvent),i.navigationTimings=t,r()}),a=ri(t,e),{stop:s}=function(t,e,n){let r=e0(t,{type:g.PAINT,buffered:!0}).subscribe(t=>{let r=t.find(t=>"first-contentful-paint"===t.name&&t.startTime<e.timeStamp&&t.startTime<rn);r&&n(r.startTime)});return{stop:r.unsubscribe}}(t,a,t=>{i.firstContentfulPaint=t,r()}),{stop:u}=function(t,e,n,r){let i=1/0,{stop:o}=(0,te.y)(t,n,["pointerdown","keydown"],t=>{i=t.timeStamp},{capture:!0,once:!0}),a=0,s=e0(t,{type:g.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(n=>{let o=(0,tR.dF)(n,t=>t.entryType===g.LARGEST_CONTENTFUL_PAINT&&t.startTime<i&&t.startTime<e.timeStamp&&t.startTime<rr&&t.size>a);if(o){let e;o.element&&(e=ns(o.element,t.actionNameAttribute)),r({value:o.startTime,targetSelector:e,resourceUrl:""===o.url?void 0:o.url}),a=o.size}});return{stop:()=>{o(),s.unsubscribe()}}}(t,a,window,t=>{i.largestContentfulPaint=t,r()}),{stop:c}=function(t,e,n){let r=e0(t,{type:g.FIRST_INPUT,buffered:!0}).subscribe(r=>{let i=r.find(t=>t.startTime<e.timeStamp);if(i){let e;let r=(0,_._J)(i.startTime,i.processingStart);i.target&&e3(i.target)&&(e=ns(i.target,t.actionNameAttribute)),n({delay:r>=0?r:0,time:i.startTime,targetSelector:e})}});return{stop:()=>{r.unsubscribe()}}}(t,a,t=>{i.firstInput=t,r()});return{stop:function(){o(),s(),u(),c(),a.stop()},initialViewMetrics:i}}(r,a,C,V):{stop:th.Z,initialViewMetrics:{}};if(o===F.BF_CACHE){var j,$,M;j=L,$=a.relative,M=t=>{j.firstContentfulPaint=t,j.largestContentfulPaint={value:t},V()},requestAnimationFrame(()=>{requestAnimationFrame(()=>{M((0,_._J)($,(0,_._q)()))})})}let{stop:U,eventCounts:G}=function(t,e,n){let{stop:r,eventCounts:i}=eQ({lifeCycle:t,isChildEvent:t=>t.view.id===e,onChange:n});return{stop:r,eventCounts:i}}(t,l,V),q=(0,tx.Zi)(W,rS),H=t.subscribe(11,t=>{t.reason===eO.k$.UNLOADING&&W()});function z(){t.notify(3,{id:l,name:b,context:v.getContext(),startClocks:a,sessionIsActive:y})}function V(){z(),O()}function W(){T(),z(),p+=1;let e=void 0===u?(0,_.n$)():u.timeStamp;t.notify(4,{customTimings:f,documentVersion:p,id:l,name:b,service:S,version:w,context:v.getContext(),loadingType:o,location:h,startClocks:a,commonViewMetrics:P(),initialViewMetrics:L,duration:(0,_._J)(a.timeStamp,e),isActive:void 0===u,sessionIsActive:y,eventCounts:G})}return W(),v.changeObservable.subscribe(V),{get name(){return b},service:S,version:w,contextManager:v,stopObservable:d,end(e={}){var n,r;u||(u=null!==(n=e.endClocks)&&void 0!==n?n:(0,_.$I)(),y=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(5,{endClocks:u}),t.notify(6,{endClocks:u}),(0,tx.cv)(q),I(u.relative),R(),H.unsubscribe(),W(),(0,tx.iK)(()=>{this.stop()},rw))},stop(){N(),U(),A(),d.notify()},addTiming(t,e){if(u)return;let n=(0,_.Cn)(e)?e:(0,_._J)(a.timeStamp,e);f[function(t){let e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&D.jf.warn(`Invalid timing name: ${t}, sanitized to: ${e}`),e}(t)]=n,V()},setViewName(t){b=t,W()}}}(e,n,r,i,t,o,a,s);return d.add(u),u.stopObservable.subscribe(()=>{d.delete(u)}),u}return e.subscribe(10,()=>{f=p(F.ROUTE_CHANGE,void 0,{name:f.name,service:f.service,version:f.version,context:f.contextManager.getContext()})}),e.subscribe(9,()=>{f.end({sessionIsActive:!1})}),a&&(l=o.subscribe(({oldLocation:t,newLocation:e})=>{(t.pathname!==e.pathname||!function(t){let e=t.substring(1);return""!==e&&!!document.getElementById(e)}(e.hash)&&rE(e.hash)!==rE(t.hash))&&(f.end(),f=p(F.ROUTE_CHANGE))}),i.trackBfcacheViews&&(u=function(t,e){let{stop:n}=(0,te.O)(t,window,"pageshow",t=>{t.persisted&&e(t)},{capture:!0});return n}(i,t=>{f.end();let e=(0,_.DY)(t.timeStamp);f=p(F.BF_CACHE,e,void 0)}))),{addTiming:(t,e=(0,_.n$)())=>{f.addTiming(t,e)},startView:(t,e)=>{f.end({endClocks:e}),f=p(F.ROUTE_CHANGE,e,t)}
4,setViewContext:t=>{f.contextManager.setContext(t)},setViewContextProperty:(t,e)=>{f.contextManager.setContextProperty(t,e)},setViewName:t=>{f.setViewName(t)},getViewContext:()=>f.contextManager.getContext(),stop:()=>{l&&l.unsubscribe(),u&&u(),f.end(),d.forEach(t=>t.stop())}}}(v,I,Y,tt,t,Q,!t.trackViewsManually,r));T.push(t1);let{stop:t2}=function(t,e){if(!e.metricsEnabled)return{stop:th.Z};let{unsubscribe:n}=t.subscribe(4,({initialViewMetrics:t})=>{if(t.largestContentfulPaint&&t.navigationTimings){var e,r;(0,C.qZ)("Initial view metrics",{metrics:(e=t.largestContentfulPaint,r=t.navigationTimings,{lcp:{value:e.value},navigation:{domComplete:r.domComplete,domContentLoaded:r.domContentLoaded,domInteractive:r.domInteractive,firstByte:r.firstByte,loadEvent:r.loadEvent}})}),n()}});return{stop:n}}(I,V);T.push(t2);let{stop:t3}=function(t,e,n,r=function(){let t=[];function e(e){let r;if(e.didTimeout){let t=performance.now();r=()=>30-(performance.now()-t)}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){(0,nQ.Kk)(e,{timeout:n0})}return{push(e){1===t.push(e)&&n()},stop(){t.length=0}}}(),i=n9){let o;let a=e.trackEarlyRequests;a?o=function(t){let e=new Set,n=t.subscribe(8,t=>{e.add(t),e.size>1e3&&((0,C.eJ)("Too many requests"),e.delete(e.values().next().value))});return{getMatchingRequest(t){let n,r=1/0;for(let i of e){let e=t.startTime-i.startClocks.relative;0<=e&&e<r&&i.url===t.name&&(r=Math.abs(e),n=i)}return n&&e.delete(n),n},stop(){n.unsubscribe()}}}(t):t.subscribe(8,t=>{u(()=>(function(t,e,n){let r=function(t){if(!performance||!("getEntriesByName"in performance))return;let e=performance.getEntriesByName(t.url,"resource");if(!e.length||!("toJSON"in e[0]))return;let n=e.filter(t=>!n1.has(t)).filter(t=>ez(t)&&eB(t)).filter(e=>{var n,r;return n=t.startClocks.relative,r=n2({startTime:t.startClocks.relative,duration:t.duration}),e.startTime>=n-1&&n2(e)<=(0,_.WK)(r,1)});if(1===n.length)return n1.add(n[0]),n[0].toJSON()}(t);return re(r,t,n,e)})(t,e,n))});let s=e0(e,{type:g.RESOURCE,buffered:!0}).subscribe(t=>{for(let r of t)(a||!eH(r))&&u(()=>rt(r,e,n,o))});function u(e){r.push(()=>{let n=e();n&&t.notify(12,n)})}return i(e,t=>{u(()=>rt(t,e,n,o))}),{stop:()=>{r.stop(),s.unsubscribe()}}}(I,t,ta);if(T.push(t3),t.trackLongTasks){if(e1(g.LONG_ANIMATION_FRAME)){let{stop:e}=function(t,e){let n=e0(e,{type:g.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(e=>{for(let n of e){let e=(0,_.DY)(n.startTime),r={date:e.timeStamp,long_task:{id:B(),entry_type:U.LONG_ANIMATION_FRAME,duration:(0,_.c0)(n.duration),blocking_duration:(0,_.c0)(n.blockingDuration),first_ui_event_timestamp:(0,_.c0)(n.firstUIEventTimestamp),render_start:(0,_.c0)(n.renderStart),style_and_layout_start:(0,_.c0)(n.styleAndLayoutStart),start_time:(0,_.c0)(n.startTime),scripts:n.scripts.map(t=>({duration:(0,_.c0)(t.duration),pause_duration:(0,_.c0)(t.pauseDuration),forced_style_and_layout_duration:(0,_.c0)(t.forcedStyleAndLayoutDuration),start_time:(0,_.c0)(t.startTime),execution_start:(0,_.c0)(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}))},type:M.LONG_TASK,_dd:{discarded:!1}};t.notify(12,{rawRumEvent:r,startTime:e.relative,duration:n.duration,domainContext:{performanceEntry:n}})}});return{stop:()=>n.unsubscribe()}}(I,t);T.push(e)}else!function(t,e){e0(e,{type:g.LONG_TASK,buffered:!0}).subscribe(n=>{for(let r of n){if(r.entryType!==g.LONG_TASK||!e.trackLongTasks)break;let n=(0,_.DY)(r.startTime),i={date:n.timeStamp,long_task:{id:B(),entry_type:U.LONG_TASK,duration:(0,_.c0)(r.duration)},type:M.LONG_TASK,_dd:{discarded:!1}};t.notify(12,{rawRumEvent:i,startTime:n.relative,duration:r.duration,domainContext:{performanceEntry:r}})}})}(I,t)}let{addError:t5}=function(t,e,n){let r=new m.y$;return n.subscribe(t=>{0===t.type&&r.notify(t.error)}),(function(t){let e=t.map(t=>(nZ[t]||(nZ[t]=new m.y$(e=>{let n=D.jG[t];return D.jG[t]=(...r)=>{n.apply(console,r);let i=(0,A.Xp)("console error");(0,x.L6)(()=>
4{e.notify(function(t,e,n){let r=t.map(t=>"string"==typeof t?(0,P.N)(t):(0,w.VZ)(t)?(0,A.jN)((0,b._)(t)):(0,nK.l)((0,P.N)(t),void 0,2)).join(" ");if(e===D.vA.error){let i=t.find(w.VZ),o=(0,w.AP)({originalError:i,handlingStack:n,startClocks:(0,_.$I)(),source:E.z.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=r,{api:e,message:r,handlingStack:n,error:o}}return{api:e,message:r,error:void 0,handlingStack:n}}(r,t,i))})},()=>{D.jG[t]=n}})),nZ[t]));return(0,m.$Z)(...e)})([D.vA.error]).subscribe(t=>r.notify(t.error)),!function(t,e){(function(t,e){let n=[];e.includes(nJ.cspViolation)&&n.push(new m.y$(e=>{let{stop:n}=(0,te.O)(t,document,"securitypolicyviolation",t=>{e.notify(function(t){let e=`'${t.blockedURI}' blocked by '${t.effectiveDirective}' directive`;return nX({type:t.effectiveDirective,message:`${nJ.cspViolation}: ${e}`,originalError:t,csp:{disposition:t.disposition},stack:nY(t.effectiveDirective,t.originalPolicy?`${e} of the policy "${K(t.originalPolicy,100,"...")}"`:"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(t))});return n}));let r=e.filter(t=>t!==nJ.cspViolation);return r.length&&n.push(new m.y$(t=>{if(!window.ReportingObserver)return;let e=(0,x.zk)((e,n)=>e.forEach(e=>t.notify(function(t){let{type:e,body:n}=t;return nX({type:n.id,message:`${e}: ${n.message}`,originalError:t,stack:nY(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(e)))),n=new window.ReportingObserver(e,{types:r,buffered:!0});return n.observe(),()=>{n.disconnect()}})),(0,m.$Z)(...n)})(t,[nJ.cspViolation,nJ.intervention]).subscribe(t=>e.notify(t))}(e,r),r.subscribe(e=>t.notify(14,{error:e})),t.subscribe(14,({error:e})=>{t.notify(12,function(t){let e={date:t.startClocks.timeStamp,error:{id:B(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:M.ERROR,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:e,startTime:t.startClocks.relative,domainContext:n}}(e))}),{addError:({error:e,handlingStack:n,componentStack:r,startClocks:i,context:o})=>{let a=(0,w.AP)({originalError:e,handlingStack:n,componentStack:r,startClocks:i,nonErrorPrefix:"Provided",source:E.z.CUSTOM,handling:"handled"});a.context=(0,R.$e)(a.context,o),t.notify(14,{error:a})}}}(I,t,u);u.unbuffer(),function(t,e,n,r,i){let o={clearTracingIfNeeded:ea,traceFetch:t=>es(e,t,n,r,i,e=>{var n;if(t.input instanceof Request&&!(null===(n=t.init)||void 0===n?void 0:n.headers))t.input=new Request(t.input),Object.keys(e).forEach(n=>{t.input.headers.append(n,e[n])});else{t.init=(0,tn.mv)(t.init);let n=[];t.init.headers instanceof Headers?t.init.headers.forEach((t,e)=>{n.push([e,t])}):Array.isArray(t.init.headers)?t.init.headers.forEach(t=>{n.push(t)}):t.init.headers&&Object.keys(t.init.headers).forEach(e=>{n.push([e,t.init.headers[e]])}),t.init.headers=n.concat((0,tR.qP)(e))}}),traceXhr:(t,o)=>es(e,t,n,r,i,t=>{Object.keys(t).forEach(e=>{o.setRequestHeader(e,t[e])})})};(function(t,e,n){(s||(s=new m.y$(t=>{let{stop:n}=(0,y.S)(XMLHttpRequest.prototype,"open",ej),{stop:r}=(0,y.S)(XMLHttpRequest.prototype,"send",n=>{(function({target:t,parameters:[e],handlingStack:n},r,i){let o=eL.get(t);if(!o)return;let a=o;a.state="start",a.startClocks=(0,_.$I)(),a.isAborted=!1,a.xhr=t,a.handlingStack=n,a.body=e;let s=!1,{stop:u}=(0,y.S)(t,"onreadystatechange",()=>{t.readyState===XMLHttpRequest.DONE&&c()}),c=()=>{if(l(),u(),s)return;s=!0;let e=o;e.state="complete",e.duration=(0,_._J)(a.startClocks.timeStamp,(0,_.n$)()),e.status=t.status,i.notify((0,tn.mv)(e))},{stop:l}=(0,te.O)(r,t,"loadend",c);i.notify(a)})(n,e,t)},{computeHandlingStack:!0}),{stop:i}=(0,y.S)(XMLHttpRequest.prototype,"abort",eD);return()=>{n(),r(),i()}})),s).subscribe(e=>{let r=e;if(eW(r.url))switch(r.state){case"start":n.traceXhr(r,r.xhr),r.requestIndex=eX(),t.notify(7,{requestIndex:r.requestIndex,url:r.url});break;case"complete":n.clearTracingIfNeeded(r),t.notify(8,{duration:r.duration,method:r.method,requestIndex:r.requestIndex,spanId:r.spanId,startClocks:r.startClocks,status:r.status,traceId:r.traceId,traceSampled:r.traceSampled,type:eM.XHR,url:r.url,xhr:r.xhr,isAborted:r.isAborted,handlingStack:r.handlingStack,body:r.body})}})})(t,e,o),tm().subscribe(e=>{let n=e;if(eW(n.url))switch(n.state){case"start":o.traceFetch(n),n.requestIndex=eX(),t.notify(7,{requestIndex:n.requestIndex,url:n.url});break;case"resolve":(function(t,e){let n=t.response&&(0,eU.u)(t.response);n&&n.body?function(t,e,n){let r=t.getReader(),i=[],o=0;function a(){let t,a;if(r.cancel().catch(th.Z),n.collectStreamBody){let e;if(1===i.length)e=i[0];else{e=new Uint8Array(o);let t=0;
4i.forEach(n=>{e.set(n,t),t+=n.length})}t=e.slice(0,n.bytesLimit),a=e.length>n.bytesLimit}e(void 0,t,a)}(function t(){r.read().then((0,x.zk)(e=>{if(e.done){a();return}n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t()}),(0,x.zk)(t=>e(t)))})()}(n.body,()=>{e((0,_._J)(t.startClocks.timeStamp,(0,_.n$)()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e((0,_._J)(t.startClocks.timeStamp,(0,_.n$)()))})(n,e=>{var r;o.clearTracingIfNeeded(n),t.notify(8,{duration:e,method:n.method,requestIndex:n.requestIndex,responseType:n.responseType,spanId:n.spanId,startClocks:n.startClocks,status:n.status,traceId:n.traceId,traceSampled:n.traceSampled,type:eM.FETCH,url:n.url,response:n.response,init:n.init,input:n.input,isAborted:n.isAborted,handlingStack:n.handlingStack,body:null===(r=n.init)||void 0===r?void 0:r.body})})}})}(I,t,W,tb,tO);let t4=function(t,e,n){function r(n){e.wasInPageStateDuringPeriod("frozen",n.startClocks.relative,n.duration)||t.notify(12,X(n))}return{addOperationStepVital:function(e,n,r,i){if(!(0,z.W_)(z.uh.FEATURE_OPERATION_VITAL))return;let{operationKey:o,context:a,description:s}=r||{},u={name:e,type:H.OPERATION_STEP,operationKey:o,failureReason:i,stepType:n,startClocks:(0,_.$I)(),context:(0,P.N)(a),description:s};t.notify(12,X(u))},addDurationVital:r,startDurationVital:(t,e={})=>Z(n,t,e),stopDurationVital:(t,e={})=>{J(r,n,t,e)}}}(I,ta,a),t8=(S=t.applicationId,{get:t=>{let e=ts.findView(t),n=tg.findUrl(t),r=W.findTrackedSession(t);if(r&&e&&n){let i=tN.findActionId(t);return{application_id:S,session_id:r.id,user_action:i?{id:i}:void 0,view:{id:e.id,name:e.name,referrer:n.referrer,url:n.url}}}}});return T.push(()=>n.stop()),{addAction:tj,addEvent:tF,addError:t5,addTiming:tB,addFeatureFlagEvaluation:tv.addFeatureFlagEvaluation,startView:tV,setViewContext:tJ,setViewContextProperty:tY,getViewContext:tQ,setViewName:tZ,lifeCycle:I,viewHistory:ts,session:W,stopSession:()=>W.expire(),getInternalContext:t8.get,startDurationVital:t4.startDurationVital,stopDurationVital:t4.stopDurationVital,addDurationVital:t4.addDurationVital,addOperationStepVital:t4.addOperationStepVital,globalContext:ty,userContext:tb,accountContext:tO,telemetry:V,stop:()=>{T.forEach(t=>t())},hooks:N}}function rX(t,{session:e,viewContext:n,errorType:r}){let i=e?e.id:"no-session-id",o=[];void 0!==r&&o.push(`error-type=${r}`),n&&(o.push(`seed=${n.id}`),o.push(`from=${n.startClocks.timeStamp}`));let a=function(t){let e=t.site,n=t.subdomain||function(t){switch(t.site){case t4.D_:case t4.Ds:return"app";case t4.DZ:return"dd";default:return}}(t);return`https://${n?`${n}.`:""}${e}`}(t),s=`/rum/replay/sessions/${i}`;return`${a}${s}?${o.join("&")}`}function rY(t,e,n,r){let i=t=>{e.notify(14,{error:t}),(0,C.eJ)("Error reported to customer",{"error.message":t.message})},o=(0,rI.UF)([t.profilingEndpointBuilder],t.batchBytesLimit,i),a=n(r);return{async send({event:t,...e}){let n=new FormData,r=(0,nK.l)(t);if(!r)throw Error("Failed to serialize event");n.append("event",new Blob([r],{type:"application/json"}),"event.json");let i=r.length;for(let[t,r]of(0,tR.qP)(e)){let e=(0,nK.l)(r);if(!e)throw Error("Failed to serialize attachment");let o=await function(t,e){return new Promise(n=>{t.write(e),t.finish(t=>{n(t)})})}(a,e);i+=o.outputBytesCount,n.append(t,new Blob([o.output]),t)}o.send({data:n,bytesCount:i})}}}},8290:function(t,e,n){"use strict";let r;function i(t){return c(t).segments_count}function o(t){c(t).segments_count+=1}function a(t){c(t).records_count+=1}function s(t,e){c(t).segments_total_raw_size+=e}function u(t){return null==r?void 0:r.get(t)}function c(t){let e;return r||(r=new Map),r.has(t)?e=r.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},r.set(t,e),r.size>1e3&&function(){if(!r)return;let t=r.keys().next().value;t&&r.delete(t)}()),e}n.d(e,{FT:function(){return i},MA:function(){return u},pk:function(){return s},ui:function(){return o},xK:function(){return a}})},1131:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="production"},1703:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1195:function(t,e,n){"use strict";n.d(e,{RP:function(){return function t(e,n,r,u=0){return new i.cW((i,c)=>{let l=e[u];if(null===n||"function"!=typeof l)i(n);else{let d=l({...n},r);s.X&&l.id&&null===d&&o.kg.log(`Event processor "${l.id}" dropped event`),(0,a.J8)(d)?d.then(n=>t(e,n,r,u+1).then(i)).then(null,c):t(e,d,r,u+1).then(i).then(null,c)}})}},cc:function(){return c},fH:function(){return u}});var r=n(1235),i=n(6893),o=n(2343),a=n(7597),s=n(1703);function u(){return(0,r.YO)("globalEventProcessors",()=>[])}function c(t){u().push(t)}},4487:function(t,e,n){"use strict";n.d(e,{$e:function(){return f},Tb:function(){return u},YA:function(){return d},cg:function(){return y},eN:function(){return c},nZ:function(){return h},n_:function(){return l},s3:function(){return p},yj:function(){return g}});var r=n(1235),i=n(1131),o=n(5659),a=n(9015),s=n(8942);function u(t,e){return(0,o.Gd)().captureException(t,(0,s.U0)(e))}function c(t,e){return(0,o.Gd)().captureEvent(t,e)}function l(t,e){(0,o.Gd)().addBreadcrumb(t,e)}function d(t,e){(0,o.Gd)().setTag(t,e)}function f(...t){let e=(0,o.Gd)();if(2===t.length){let[n,r]=t;return n?e.withScope(()=>(e.getStackTop().scope=n,r(n))):e.withScope(r)}return e.withScope(t[0])}function p(){return(0,o.Gd)().getClient()}function h(){return(0,o.Gd)().getScope()}function g(t){let e=p(),n=(0,o.aF)(),s=h(),{release:u,environment:c=i.J}=e&&e.getOptions()||{},{userAgent:l}=r.n2.navigator||{},d=(0,a.Hv)({release:u,environment:c,user:s.getUser()||n.getUser(),...l&&{userAgent:l},...t}),f=n.getSession();return f&&"ok"===f.status&&(0,a.CT)(f,{status:"exited"}),m(),n.setSession(d),s.setSession(d),d}function m(){let t=(0,o.aF)(),e=h(),n=e.getSession()||t.getSession();n&&(0,a.RJ)(n),v(),t.setSession(),e.setSession()}function v(){let t=(0,o.aF)(),e=h(),n=p(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function y(t=!1){if(t){m();return}v()}},5659:function(t,e,n){"use strict";n.d(e,{Gd:function(){return v},aF:function(){return y},cu:function(){return g}});var r=n(7597),i=n(2844),o=n(1170),a=n(2343),s=n(1235),u=n(1131),c=n(1703),l=n(350),d=n(9015),f=n(105);let p=parseFloat(f.J);class h{constructor(t,e,n,r=p){let i,o;this._version=r,e?i=e:(i=new l.sX).setClient(t),n?o=n:(o=new l.sX).setClient(t),this._stack=[{scope:i}
4],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){let e=this.getStackTop();e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){let t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){let e;let n=this.pushScope();try{e=t(n)}catch(t){throw this.popScope(),t}return(0,r.J8)(e)?e.then(t=>(this.popScope(),t),t=>{throw this.popScope(),t}):(this.popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){let n=this._lastEventId=e&&e.event_id?e.event_id:(0,i.DM)(),r=Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){let r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.DM)(),o=Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureEvent(t,e){let n=e&&e.event_id?e.event_id:(0,i.DM)();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=100}=r.getOptions&&r.getOptions()||{};if(s<=0)return;let u=(0,o.yW)(),c={timestamp:u,...t},l=i?(0,a.Cf)(()=>i(c,e)):c;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){let{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){let e=m(this);try{t(this)}finally{m(e)}}getIntegration(t){let e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return c.X&&a.kg.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){let n=this._callExtensionMethod("startTransaction",t,e);if(c.X&&!n){let t=this.getClient();t?a.kg.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 5Sentry.addTracingExtensions(); 6Sentry.init({...}); 7`):a.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){let t=this.getStackTop(),e=t.scope,n=e.getSession();n&&(0,d.RJ)(n),this._sendSessionUpdate(),e.setSession()}startSession(t){let{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=u.J}=n&&n.getOptions()||{},{userAgent:o}=s.n2.navigator||{},a=(0,d.Hv)({release:r,environment:i,user:e.getUser(),...o&&{userAgent:o},...t}),c=e.getSession&&e.getSession();return c&&"ok"===c.status&&(0,d.CT)(c,{status:"exited"}),this.endSession(),e.setSession(a),a}shouldSendDefaultPii(){let t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){let{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){let n=g(),r=n.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,e);c.X&&a.kg.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function g(){return s.n2.__SENTRY__=s.n2.__SENTRY__||{extensions:{},hub:void 0},s.n2}function m(t){let e=g(),n=_(e);return b(e,t),n}function v(){let t=g();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=g()){return(!(t&&t.__SENTRY__&&t.__SENTRY__.hub)||_(t).isOlderThan(p))&&b(t,new h),_(t)}(t)}function y(){return v().getIsolationScope()}function _(t){return(0,s.YO)("hub",()=>new h,t)}function b(t,e){if(!t)return!1;let n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}},350:function(t,e,n){"use strict";let r;n.d(e,{lW:function(){return f},sX:function(){return d}});var i=n(7597),o=n(1170),a=n(2844),s=n(2343),u=n(1195),c=n(9015),l=n(3379);class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=p()}static clone(t){return t?t.clone():new d}clone(){let t=new d;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,c.CT)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let e="function"==typeof t?t(this):t;if(e instanceof d){let t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else(0,i.PO)(e)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=p(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:(0,o.yW)(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){let t=this.getScopeData();return t.attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:l,_transactionName:d,_span:f}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:l,transactionName:d,span:f}}
7applyToEvent(t,e={},n=[]){(0,l.gi)(t,this.getScopeData());let r=[...n,...(0,u.fH)(),...this._eventProcessors];return(0,u.RP)(r,t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=e&&e.event_id?e.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){let r=n&&n.event_id?n.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureEvent(t,e){let n=e&&e.event_id?e.event_id:(0,a.DM)();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(s.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function f(){return r||(r=new d),r}function p(){return{traceId:(0,a.DM)(),spanId:(0,a.DM)().substring(16)}}},9015:function(t,e,n){"use strict";n.d(e,{CT:function(){return s},Hv:function(){return a},RJ:function(){return u}});var r=n(1170),i=n(2844),o=n(535);function a(t){let e=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return t&&s(n,t),n}function s(t,e={}){if(!e.user||(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,r.ph)(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,i.DM)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function u(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),s(t,n)}},454:function(t,e,n){"use strict";n.d(e,{_:function(){return u},j:function(){return c}});var r=n(535),i=n(1131),o=n(4487),a=n(5102),s=n(3371);function u(t,e,n){let o=e.getOptions(),{publicKey:a}=e.getDsn()||{},{segment:s}=n&&n.getUser()||{},u=(0,r.Jr)({environment:o.environment||i.J,release:o.release,user_segment:s,public_key:a,trace_id:t});return e.emit&&e.emit("createDsc",u),u}function c(t){let e=(0,o.s3)();if(!e)return{};let n=u((0,s.XU)(t).trace_id||"",e,(0,o.nZ)()),r=(0,a.G)(t);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:c,source:l}=r.metadata;null!=c&&(n.sample_rate=`${c}`);let d=(0,s.XU)(r);return l&&"url"!==l&&(n.transaction=d.description),n.sampled=String((0,s.Tt)(r)),e.emit&&e.emit("createDsc",n),n}},3379:function(t,e,n){"use strict";n.d(e,{gi:function(){return u},yo:function(){return c}});var r=n(535),i=n(2844),o=n(454),a=n(5102),s=n(3371);function u(t,e){var n,u;let{fingerprint:c,span:l,breadcrumbs:d,sdkProcessingMetadata:f}=e;(function(t,e){let{extra:n,tags:i,user:o,contexts:a,level:s,transactionName:u}=e,c=(0,r.Jr)(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});let l=(0,r.Jr)(i);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});let d=(0,r.Jr)(o);d&&Object.keys(d).length&&(t.user={...d,...t.user});let f=(0,r.Jr)(a);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts}),s&&(t.level=s),u&&(t.transaction=u)})(t,e),l&&function(t,e){t.contexts={trace:(0,s.wy)(e),...t.contexts};let n=(0,a.G)(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:(0,o.j)(e),...t.sdkProcessingMetadata};let r=(0,s.XU)(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,l),(n=t).fingerprint=n.fingerprint?(0,i.lE)(n.fingerprint):[],c&&(n.fingerprint=n.fingerprint.concat(c)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint,function(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,d),(u=t).sdkProcessingMetadata={...u.sdkProcessingMetadata,...f}}function c(t,e){let{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:f,propagationContext:p,transactionName:h,span:g}=e;l(t,"extra",n),l(t,"tags",r),l(t,"user",i),l(t,"contexts",o),l(t,"sdkProcessingMetadata",s),a&&(t.level=a),h&&(t.transactionName=h),g&&(t.span=g),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...p}}function l(t,e,n){if(n&&Object.keys(n).length)for(let r in t[e]={...t[e]},n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}},5102:function(t,e,n){"use strict";function r(t){return t.transaction}n.d(e,{G:function(){return r}})},8942:function(t,e,n){"use strict";n.d(e,{R:function(){return p},U0:function(){return g}});var r=n(2844),i=n(1170),o=n(7321),a=n(1235),s=n(4754),u=n(1131),c=n(1195),l=n(350),d=n(3379),f=n(3371);function p(t,e,n,p,g,m){var v;let{normalizeDepth:y=3,normalizeMaxBreadth:_=1e3}
7=t,b={...e,event_id:e.event_id||n.event_id||(0,r.DM)(),timestamp:e.timestamp||(0,i.yW)()},S=n.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:i,maxValueLength:a=250}=e;"environment"in t||(t.environment="environment"in e?n:u.J),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,o.$G)(t.message,a));let s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=(0,o.$G)(s.value,a));let c=t.request;c&&c.url&&(c.url=(0,o.$G)(c.url,a))})(b,t),v=b,S.length>0&&(v.sdk=v.sdk||{},v.sdk.integrations=[...v.sdk.integrations||[],...S]),void 0===e.type&&function(t,e){let n;let r=a.n2._sentryDebugIds;if(!r)return;let i=h.get(e);i?n=i:(n=new Map,h.set(e,n));let o=Object.keys(r).reduce((t,i)=>{let o;let a=n.get(i);a?o=a:(o=e(i),n.set(i,o));for(let e=o.length-1;e>=0;e--){let n=o[e];if(n.filename){t[n.filename]=r[i];break}}return t},{});try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.filename&&(t.debug_id=o[t.filename])})})}catch(t){}}(b,t.stackParser);let w=function(t,e){if(!e)return t;let n=t?t.clone():new l.sX;return n.update(e),n}(p,n.captureContext);n.mechanism&&(0,r.EG)(b,n.mechanism);let E=g&&g.getEventProcessors?g.getEventProcessors():[],k=(0,l.lW)().getScopeData();if(m){let t=m.getScopeData();(0,d.yo)(k,t)}if(w){let t=w.getScopeData();(0,d.yo)(k,t)}let O=[...n.attachments||[],...k.attachments];O.length&&(n.attachments=O),(0,d.gi)(b,k);let T=[...E,...(0,c.fH)(),...k.eventProcessors],x=(0,c.RP)(T,b,n);return x.then(t=>(t&&function(t){let e={};try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})})}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.keys(e).forEach(t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})})}(t),"number"==typeof y&&y>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,s.Fv)(t.data,e,n)}}))},...t.user&&{user:(0,s.Fv)(t.user,e,n)},...t.contexts&&{contexts:(0,s.Fv)(t.contexts,e,n)},...t.extra&&{extra:(0,s.Fv)(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=(0,s.Fv)(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>{let r=(0,f.XU)(t).data;return r&&(t.data=(0,s.Fv)(r,e,n)),t})),r}(t,y,_):t)}let h=new WeakMap;function g(t){return t?t instanceof l.sX||"function"==typeof t||Object.keys(t).some(t=>m.includes(t))?{captureContext:t}:t:void 0}let m=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},3371:function(t,e,n){"use strict";n.d(e,{$k:function(){return l},Hb:function(){return c},Tt:function(){return p},XU:function(){return f},i0:function(){return s},ve:function(){return a},wy:function(){return u}});var r=n(535),i=n(7638),o=n(1170);let a=0,s=1;function u(t){let{spanId:e,traceId:n}=t.spanContext(),{data:i,op:o,parent_span_id:a,status:s,tags:u,origin:c}=f(t);return(0,r.Jr)({data:i,op:o,parent_span_id:a,span_id:e,status:s,tags:u,trace_id:n,origin:c})}function c(t){let{traceId:e,spanId:n}=t.spanContext(),r=p(t);return(0,i.$p)(e,n,r)}function l(t){return"number"==typeof t?d(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?d(t.getTime()):(0,o.ph)()}function d(t){return t>9999999999?t/1e3:t}function f(t){return"function"==typeof t.getSpanJSON?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function p(t){let{traceFlags:e}=t.spanContext();return Boolean(e&s)}},105:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="7.120.4"},9181:function(t,e,n){"use strict";n.d(e,{EN:function(){return c},IQ:function(){return l},bU:function(){return a}});var r=n(3897),i=n(7597),o=n(2343);let a="baggage",s="sentry-",u=/^sentry-/;function c(t){if(!(0,i.HD)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((t,e)=>{let n=d(e);for(let e of Object.keys(n))t[e]=n[e];return t},{});else{if(!t)return;e=d(t)}let n=Object.entries(e).reduce((t,[e,n])=>{if(e.match(u)){let r=e.slice(s.length);t[r]=n}return t},{});return Object.keys(n).length>0?n:void 0}function l(t){if(!t)return;let e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${s}${e}`]=n),t),{});return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce((t,[e,n],i)=>{let a=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,s=0===i?a:`${t},${a}`;return s.length>8192?(r.X&&o.kg.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},"")}(e)}function d(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,[e,n])=>(t[e]=n,t),{})}},8464:function(t,e,n){"use strict";n.d(e,{Rt:function(){return a},iY:function(){return c},l4:function(){return s},qT:function(){return u}});var r=n(7597),i=n(1235);let o=(0,i.Rf)();function a(t,e={}){if(!t)return"<unknown>";try{let n,i=t,a=[],s=0,u=0,c=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;i&&s++<5&&(n=function(t,e){let n,i,a,s,u;
7let c=[];if(!t||!t.tagName)return"";if(o.HTMLElement&&t instanceof HTMLElement&&t.dataset&&t.dataset.sentryComponent)return t.dataset.sentryComponent;c.push(t.tagName.toLowerCase());let l=e&&e.length?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(l&&l.length)l.forEach(t=>{c.push(`[${t[0]}="${t[1]}"]`)});else if(t.id&&c.push(`#${t.id}`),(n=t.className)&&(0,r.HD)(n))for(u=0,i=n.split(/\s+/);u<i.length;u++)c.push(`.${i[u]}`);let d=["aria-label","type","name","title","alt"];for(u=0;u<d.length;u++)a=d[u],(s=t.getAttribute(a))&&c.push(`[${a}="${s}"]`);return c.join("")}(i,c),"html"!==n&&(!(s>1)||!(u+3*a.length+n.length>=l)));)a.push(n),u+=n.length,i=i.parentNode;return a.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(){try{return o.document.location.href}catch(t){return""}}function u(t){return o.document&&o.document.querySelector?o.document.querySelector(t):null}function c(t){if(!o.HTMLElement)return null;let e=t;for(let t=0;t<5&&e;t++){if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}},3897:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},7597:function(t,e,n){"use strict";n.d(e,{Cy:function(){return v},HD:function(){return c},J8:function(){return m},Kj:function(){return g},Le:function(){return l},PO:function(){return f},TX:function(){return s},V9:function(){return _},VW:function(){return a},VZ:function(){return i},cO:function(){return p},fm:function(){return u},i2:function(){return y},kK:function(){return h},pt:function(){return d},y1:function(){return b}});let r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(t,Error)}}function o(t,e){return r.call(t)===`[object ${e}]`}function a(t){return o(t,"ErrorEvent")}function s(t){return o(t,"DOMError")}function u(t){return o(t,"DOMException")}function c(t){return o(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function d(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function f(t){return o(t,"Object")}function p(t){return"undefined"!=typeof Event&&_(t,Event)}function h(t){return"undefined"!=typeof Element&&_(t,Element)}function g(t){return o(t,"RegExp")}function m(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function v(t){return f(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function y(t){return"number"==typeof t&&t!=t}function _(t,e){try{return t instanceof e}catch(t){return!1}}function b(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue))}},2343:function(t,e,n){"use strict";n.d(e,{Cf:function(){return s},LD:function(){return a},RU:function(){return o},kg:function(){return u}});var r=n(3897),i=n(1235);let o=["debug","info","warn","error","log","assert","trace"],a={};function s(t){if(!("console"in i.n2))return t();let e=i.n2.console,n={},r=Object.keys(a);r.forEach(t=>{let r=a[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}let u=function(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return r.X?o.forEach(n=>{e[n]=(...e)=>{t&&s(()=>{i.n2.console[n](`Sentry Logger [${n}]:`,...e)})}}):o.forEach(t=>{e[t]=()=>void 0}),e}()},2844:function(t,e,n){"use strict";n.d(e,{DM:function(){return o},Db:function(){return u},EG:function(){return c},YO:function(){return l},jH:function(){return s},lE:function(){return d}});var r=n(535),i=n(1235);function o(){let t=i.n2,e=t.crypto||t.msCrypto,n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&n())>>t/4).toString(16))}function a(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function s(t){let{message:e,event_id:n}=t;if(e)return e;let r=a(t);return r?r.type&&r.value?`${r.type}: ${r.value}
7`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function u(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function c(t,e){let n=a(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...r&&r.data,...e.data};n.mechanism.data=t}}function l(t){if(t&&t.__sentry_captured__)return!0;try{(0,r.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}function d(t){return Array.isArray(t)?t:[t]}},4754:function(t,e,n){"use strict";n.d(e,{Fv:function(){return a},Qy:function(){return function t(e,n=3,r=102400){let i=a(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}}});var r=n(7597),i=n(535),o=n(360);function a(t,e=100,a=Infinity){try{return function t(e,a,s=Infinity,u=Infinity,c=function(){let t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++){let r=e[t];if(r===n)return!0}return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){let[l,d]=c;if(null==a||["number","boolean","string"].includes(typeof a)&&!(0,r.i2)(a))return a;let f=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==n.g&&e===n.g)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,r.y1)(e))return"[VueViewModel]";if((0,r.Cy)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${(0,o.$P)(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;let i=function(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);if(/^HTML(\w*)Element$/.test(i))return`[HTMLElement: ${i}]`;return`[object ${i}]`}catch(t){return`**non-serializable** (${t})`}}(e,a);if(!f.startsWith("[object "))return f;if(a.__sentry_skip_normalization__)return a;let p="number"==typeof a.__sentry_override_normalization_depth__?a.__sentry_override_normalization_depth__:s;if(0===p)return f.replace("object ","");if(l(a))return"[Circular ~]";if(a&&"function"==typeof a.toJSON)try{let e=a.toJSON();return t("",e,p-1,u,c)}catch(t){}let h=Array.isArray(a)?[]:{},g=0,m=(0,i.Sh)(a);for(let e in m){if(!Object.prototype.hasOwnProperty.call(m,e))continue;if(g>=u){h[e]="[MaxProperties ~]";break}let n=m[e];h[e]=t(e,n,p-1,u,c),g++}return d(a),h}("",t,e,a)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}},535:function(t,e,n){"use strict";n.d(e,{$Q:function(){return l},HK:function(){return d},Jr:function(){return v},Sh:function(){return p},_j:function(){return f},hl:function(){return u},xp:function(){return c},zf:function(){return m}});var r=n(8464),i=n(3897),o=n(7597),a=n(2343),s=n(7321);function u(t,e,n){if(!(e in t))return;let r=t[e],i=n(r);"function"==typeof i&&l(i,r),t[e]=i}function c(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&a.kg.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function l(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,c(t,"__sentry_original__",e)}catch(t){}}function d(t){return t.__sentry_original__}function f(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function p(t){if((0,o.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...g(t)};if(!(0,o.cO)(t))return t;{let e={type:t.type,target:h(t.target),currentTarget:h(t.currentTarget),...g(t)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(t,CustomEvent)&&(e.detail=t.detail),e}}function h(t){try{return(0,o.kK)(t)?(0,r.Rt)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function g(t){if("object"!=typeof t||null===t)return{};{let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}function m(t,e=40){let n=Object.keys(p(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,s.$G)(n[0],e);for(let t=n.length;t>0;t--){let r=n.slice(0,t).join(", ");
7if(!(r.length>e)){if(t===n.length)return r;return(0,s.$G)(r,e)}}return""}function v(t){let e=new Map;return function t(e,n){if(function(t){if(!(0,o.PO)(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(e)){let r=n.get(e);if(void 0!==r)return r;let i={};for(let r of(n.set(e,i),Object.keys(e)))void 0!==e[r]&&(i[r]=t(e[r],n));return i}if(Array.isArray(e)){let r=n.get(e);if(void 0!==r)return r;let i=[];return n.set(e,i),e.forEach(e=>{i.push(t(e,n))}),i}return e}(t,e)}},360:function(t,e,n){"use strict";n.d(e,{$P:function(){return u},Sq:function(){return a},pE:function(){return o}});let r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function o(...t){let e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0)=>{let o=[],a=t.split("\n");for(let t=n;t<a.length;t++){let n=a[t];if(n.length>1024)continue;let i=r.test(n)?n.replace(r,"$1"):n;if(!i.match(/\S*Error: /)){for(let t of e){let e=t(i);if(e){o.push(e);break}}if(o.length>=50)break}}return function(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),i.test(e[e.length-1].function||"")&&(e.pop(),i.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,50).map(t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"}))}(o)}}function a(t){return Array.isArray(t)?o(...t):t}let s="<anonymous>";function u(t){try{if(!t||"function"!=typeof t)return s;return t.name||s}catch(t){return s}}},7321:function(t,e,n){"use strict";n.d(e,{$G:function(){return i},U0:function(){return a},nK:function(){return o}});var r=n(7597);function i(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.slice(0,e)}...`}function o(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e<t.length;e++){let i=t[e];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e=[],n=!1){return e.some(e=>(function(t,e,n=!1){return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):!!(0,r.HD)(e)&&(n?t===e:t.includes(e)))})(t,e,n))}},6893:function(t,e,n){"use strict";n.d(e,{$2:function(){return s},WD:function(){return a},cW:function(){return u}});var r,i,o=n(7597);function a(t){return new u(e=>{e(t)})}function s(t){return new u((e,n)=>{n(t)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class u{constructor(t){u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new u((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new u((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}__init(){this._resolve=t=>{this._setResult(i.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(i.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{if(this._state===i.PENDING){if((0,o.J8)(e)){e.then(this._resolve,this._reject);return}this._state=t,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===i.RESOLVED&&t[1](this._value),this._state===i.REJECTED&&t[2](this._value),t[0]=!0)})}}}},1170:function(t,e,n){"use strict";n.d(e,{Z1:function(){return a},ph:function(){return o},yW:function(){return i}});var r=n(1235);function i(){return Date.now()/1e3}let o=function(){let{performance:t}=r.n2;if(!t||!t.now)return i;let e=Date.now()-t.now(),n=void 0==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}(),a=(()=>{let{performance:t}=r.n2;if(!t||!t.now)return;let e=t.now(),n=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,o=t.timing&&t.timing.navigationStart,a="number"==typeof o?Math.abs(o+e-n):36e5;return i<36e5||a<36e5?i<=a?t.timeOrigin:o:n})()},7638:function(t,e,n){"use strict";n.d(e,{$p:function(){return c},KA:function(){return s},pT:function(){return u}});var r=n(9181),i=n(2844);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(t){let e;if(!t)return;let n=t.match(o);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}function s(t,e){let n=a(t),o=(0,r.EN)(e),{traceId:s,parentSpanId:u,parentSampled:c}=n||{};return n?{traceparentData:n,dynamicSamplingContext:o||{},propagationContext:{traceId:s||(0,i.DM)(),parentSpanId:u||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:c,dsc:o||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:s||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}}function u(t,e){let n=a(t),o=(0,r.EN)(e),{traceId:s,parentSpanId:u,parentSampled:c}=n||{};return n?{traceId:s||(0,i.DM)(),parentSpanId:u||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:c,dsc:o||{}}:{traceId:s||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function c(t=(0,i.DM)(),e=(0,i.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}},1235:function(t,e,n){"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{Rf:function(){return o},YO:function(){return a},n2:function(){return i}});let i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function a(t,e,n){let r=n||i,o=r.__SENTRY__=r.__SENTRY__||{}
7,a=o[t]||(o[t]=e());return a}},8679:function(t,e,n){"use strict";var r=n(9864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&t(e,i,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(e),g=u(n),m=0;m<a.length;++m){var v=a[m];if(!o[v]&&!(r&&r[v])&&!(g&&g[v])&&!(s&&s[v])){var y=f(n,v);try{c(e,v,y)}catch(t){}}}}return e}},7875:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}}function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){return r(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||o(t,e)||a()}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===u(e)?e:String(e)}function l(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Jc:function(){return tz},$G:function(){return I}});var d,f=n(7294);function p(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function g(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var m=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,v={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"…","…":"…","/":"/","/":"/"},y=function(t){return v[t]},_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(t){return t.replace(m,y)}},b=(0,f.createContext)(),S=function(){function t(){p(this,t),this.usedNamespaces={}}return g(t,[{key:"addUsedNamespaces",value:function(t){var e=this;t.forEach(function(t){e.usedNamespaces[t]||(e.usedNamespaces[t]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function w(){if(console&&console.warn){for(var t,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var E={};function k(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];"string"==typeof e[0]&&E[e[0]]||("string"==typeof e[0]&&(E[e[0]]=new Date),w.apply(void 0,e))}function O(t,e,n){t.loadNamespaces(e,function(){t.isInitialized?n():t.on("initialized",function e(){setTimeout(function(){t.off("initialized",e)},0),n()})})}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
7e%2?T(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var C=function(t,e){var n=(0,f.useRef)();return(0,f.useEffect)(function(){n.current=e?n.current:t},[t,e]),n.current};function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.i18n,r=(0,f.useContext)(b)||{},i=r.i18n,o=r.defaultNS,a=n||i||d;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new S),!a){k("You will need to pass in an i18next instance by using initReactI18next");var u=function(t){return Array.isArray(t)?t[t.length-1]:t},c=[u,{},!1];return c.t=u,c.i18n={},c.ready=!1,c}a.options.react&&void 0!==a.options.react.wait&&k("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=x(x(x({},_),a.options.react),e),p=l.useSuspense,h=l.keyPrefix,g=t||o||a.options&&a.options.defaultNS;g="string"==typeof g?[g]:g||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(g);var m=(a.isInitialized||a.initializedStoreOnce)&&g.every(function(t){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.languages&&e.languages.length?void 0!==e.options.ignoreJSONStructure?e.hasLoadedNamespace(t,{precheck:function(e,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!r(e.isLanguageChangingTo,t))return!1}}):function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.languages[0],i=!!e.options&&e.options.fallbackLng,o=e.languages[e.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return -1===r||2===r};return(!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1)||!e.services.backendConnector.backend||!e.isLanguageChangingTo||!!a(e.isLanguageChangingTo,t))&&!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}(t,e,n):(k("i18n.languages were undefined or empty",e.languages),!0)}(t,a,l)});function v(){return a.getFixedT(null,"fallback"===l.nsMode?g:g[0],h)}var y=s((0,f.useState)(v),2),w=y[0],E=y[1],T=g.join(),I=C(T),R=(0,f.useRef)(!0);(0,f.useEffect)(function(){var t=l.bindI18n,e=l.bindI18nStore;function n(){R.current&&E(v)}return R.current=!0,m||p||O(a,g,function(){R.current&&E(v)}),m&&I&&I!==T&&R.current&&E(v),t&&a&&a.on(t,n),e&&a&&a.store.on(e,n),function(){R.current=!1,t&&a&&t.split(" ").forEach(function(t){return a.off(t,n)}),e&&a&&e.split(" ").forEach(function(t){return a.store.off(t,n)})}},[a,T]);var A=(0,f.useRef)(!0);(0,f.useEffect)(function(){R.current&&!A.current&&E(v),A.current=!1},[a,h]);var P=[w,a,m];if(P.t=w,P.i18n=a,P.ready=m,m||!m&&!p)return P;throw new Promise(function(t){O(a,g,function(){t()})})}function R(){return(R=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var A=n(8679),P=n.n(A);function N(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=(0,f.useMemo)(function(){return{i18n:e,defaultNS:n}},[e,n]);return(0,f.createElement)(b.Provider,{value:i},r)}function L(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var j={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"undefined"!=typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},D=["i18n"],$=["i18n"];function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
7e%2?M(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var F=["backend","detection"],G=function(t){if("string"!=typeof(null==t?void 0:t.lng))throw Error("config.lng was not passed into createConfig");var e,n=t.i18n,r=L(t,D),i=j.i18n,o=U(U(U(U({},L(j,$)),r),i),n),a=o.defaultNS,u=o.lng,c=o.localeExtension,l=o.localePath,d=o.localeStructure,f=o.locales.filter(function(t){return"default"!==t});if("cimode"===u)return o;if(void 0===o.fallbackLng&&(o.fallbackLng=o.defaultLocale,"default"===o.fallbackLng)){var p=s(f,1);o.fallbackLng=p[0]}return(null==t?void 0:null===(e=t.use)||void 0===e?void 0:e.some(function(t){return"backend"===t.type}))||("string"==typeof l?o.backend={addPath:"".concat(l,"/").concat(d,".missing.").concat(c),loadPath:"".concat(l,"/").concat(d,".").concat(c)}:"function"!=typeof l||(o.backend={addPath:function(t,e){return l(t,e,!0)},loadPath:function(t,e){return l(t,e,!1)}})),"string"==typeof o.ns||Array.isArray(o.ns)||(o.ns=[a]),F.forEach(function(e){t[e]&&(o[e]=U(U({},o[e]),t[e]))}),o};function q(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H(t,e){return(H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function z(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&H(t,e)}function B(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return q(t)}function V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function W(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?W(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Z={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},J=new(function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,t),this.init(e,n)}return g(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||Z,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,n,r){return r&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,K(K({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}}]),t}()),X=function(){function t(){p(this,t),this.observers={}}return g(t,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach(function(t){n.observers[t]=n.observers[t]||[],n.observers[t].push(e)}),this}},{key:"off",value:function(t,e){if(this.observers[t]){if(!e){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(function(t){return t!==e})}}},{key:"emit",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];
7this.observers[t]&&[].concat(this.observers[t]).forEach(function(t){t.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(e){e.apply(e,[t].concat(n))})}}]),t}();function Y(){var t,e,n=new Promise(function(n,r){t=n,e=r});return n.resolve=t,n.reject=e,n}function Q(t){return null==t?"":""+t}function tt(t,e,n){function r(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}for(var o="string"!=typeof e?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return i()?{}:{obj:t,k:r(o.shift())}}function te(t,e,n){var r=tt(t,e,Object);r.obj[r.k]=n}function tn(t,e){var n=tt(t,e),r=n.obj,i=n.k;if(r)return r[i]}function tr(t,e,n){var r=tn(t,n);return void 0!==r?r:tn(e,n)}function ti(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var to={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ta(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,function(t){return to[t]}):t}var ts="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,tu=[" ",",","?","!",";"];function tc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tc(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var td=function(t){z(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=V(r);if(e){var i=V(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return B(this,t)});function r(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return p(this,r),e=n.call(this),ts&&X.call(q(e)),e.data=t||{},e.options=i,void 0===e.options.keySeparator&&(e.options.keySeparator="."),void 0===e.options.ignoreJSONStructure&&(e.options.ignoreJSONStructure=!0),e}return g(r,[{key:"addNamespaces",value:function(t){0>this.options.ns.indexOf(t)&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[t,e];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(a=t.split("."));var s=tn(this.data,a);return s||!o||"string"!=typeof n?s:function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[n])return e[n];for(var i=n.split(r),o=e,a=0;a<i.length;++a){if(!o||"string"==typeof o[i[a]]&&a+1<i.length)return;if(void 0===o[i[a]]){for(var s=2,u=i.slice(a,a+s).join(r),c=o[u];void 0===c&&i.length>a+s;)s++,c=o[u=i.slice(a,a+s).join(r)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(u)){if("string"==typeof c)return c;if(u&&"string"==typeof c[u])return c[u]}var l=i.slice(a+s).join(r);if(l)return t(c,l,r);return}o=o[i[a]]}return o}}(this.data&&this.data[t]&&this.data[t][e],n,i)}},{key:"addResource",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[t,e];n&&(a=a.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(a=t.split("."),r=e,e=a[1]),this.addNamespaces(e),te(this.data,a,r),i.silent||this.emit
7("added",t,e,n,r)}},{key:"addResources",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)("string"==typeof n[i]||"[object Array]"===Object.prototype.toString.apply(n[i]))&&this.addResource(t,e,i,n[i],{silent:!0});r.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];t.indexOf(".")>-1&&(a=t.split("."),r=n,n=e,e=a[1]),this.addNamespaces(e);var s=tn(this.data,a)||{};r?function t(e,n,r){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(e[i]=n[i]):t(e[i],n[i],r):e[i]=n[i]);return e}(s,n,i):s=tl(tl({},s),n),te(this.data,a,s),o.silent||this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return(e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?tl(tl({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find(function(t){return e[t]&&Object.keys(e[t]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(X),tf={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,i){var o=this;return t.forEach(function(t){o.processors[t]&&(e=o.processors[t].process(e,n,r,i))}),e}};function tp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function th(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tp(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tg={},tm=function(t){z(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=V(r);if(e){var i=V(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return B(this,t)});function r(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,r),e=n.call(this),ts&&X.call(q(e)),!function(t,e,n){t.forEach(function(t){e[t]&&(n[t]=e[t])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
7i18nFormat","utils"],t,q(e)),e.options=i,void 0===e.options.keySeparator&&(e.options.keySeparator="."),e.logger=J.create("translator"),e}return g(r,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;var n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS||[],o=n&&t.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!function(t,e,n){e=e||"",n=n||"";var r=tu.filter(function(t){return 0>e.indexOf(t)&&0>n.indexOf(t)});if(0===r.length)return!0;var i=RegExp("(".concat(r.map(function(t){return"?"===t?"\\?":t}).join("|"),")")),o=!i.test(t);if(!o){var a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o}(t,n,r);if(o&&!a){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:i};var u=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(r)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}},{key:"translate",value:function(t,e,n){var i=this;if("object"!==u(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var o=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,a=void 0!==e.ke
vendor: 6,429 bytes, line 7
7ySeparator?e.keySeparator:this.options.keySeparator,s=this.extractFromKey(t[t.length-1],e),c=s.key,l=s.namespaces,d=l[l.length-1],f=e.lng||this.language,p=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var h=e.nsSeparator||this.options.nsSeparator;return o?(g.res="".concat(d).concat(h).concat(c),g):"".concat(d).concat(h).concat(c)}return o?(g.res=c,g):c}var g=this.resolve(t,e),m=g&&g.res,v=g&&g.usedKey||c,y=g&&g.exactUsedKey||c,_=Object.prototype.toString.apply(m),b=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(S&&m&&w&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(_)&&!("string"==typeof b&&"[object Array]"===_)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,th(th({},e),{},{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return o?(g.res=E,g):E}if(a){var k="[object Array]"===_,O=k?[]:{},T=k?y:v;for(var x in m)if(Object.prototype.hasOwnProperty.call(m,x)){var C="".concat(T).concat(a).concat(x);O[x]=this.translate(C,th(th({},e),{joinArrays:!1,ns:l})),O[x]===C&&(O[x]=m[x])}m=O}}else if(S&&"string"==typeof b&&"[object Array]"===_)(m=m.join(b))&&(m=this.extendTranslation(m,t,e,n));else{var I=!1,R=!1,A=void 0!==e.count&&"string"!=typeof e.count,P=r.hasDefaultValue(e),N=A?this.pluralResolver.getSuffix(f,e.count,e):"",L=e["defaultValue".concat(N)]||e.defaultValue;!this.isValidLookup(m)&&P&&(I=!0,m=L),this.isValidLookup(m)||(R=!0,m=c);var j=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:m,D=P&&L!==m&&this.options.updateMissing;if(R||I||D){if(this.logger.log(D?"updateKey":"missingKey",f,d,c,D?L:m),a){var $=this.resolve(c,th(th({},e),{},{keySeparator:!1}));$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var M=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var F=0;F<U.length;F++)M.push(U[F]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(e.lng||this.language):M.push(e.lng||this.language);var G=function(t,n,r){var o=P&&r!==m?r:j;i.options.missingKeyHandler?i.options.missingKeyHandler(t,d,n,o,D,e):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(t,d,n,o,D,e),i.emit("missingKey",t,d,n,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?M.forEach(function(t){i.pluralResolver.getSuffixes(t,e).forEach(function(n){G([t],c+n,e["defaultValue".concat(n)]||L)})}):G(M,c,L))}m=this.extendTranslation(m,t,e,g,n),R&&m===c&&this.options.appendNamespaceToMissingKey&&(m="".concat(d,":").concat(c)),(R||I)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(c):c,I?m:void 0):this.options.parseMissingKeyHandler(m))}return o?(g.res=m,g):m}},{key:"extendTranslation",value:function(t,e,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,th(th({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(th(th({},n),{interpolation:th(th({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var u=t.match(this.interpolator.nestingRegexp);a=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=th(th({},this.options.interpolation.defaultVariables),c)),t=this.interpolator.interpolate(t,c,n.lng||this.language,n),s){var l=t.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(t=this.interpolator.nest(t,function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(e[0])),null):o.translate.apply(o,r.concat([e]))},n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=t&&f&&f.length&&!1!==n.applyPostProcessor&&(t=tf.handle(f,t,e,this.options&&this.options.postProcessPassResolved?th({i18nResolved:r},n):n,this)),t}},{key:"resolve",value:function(t){var e,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach(function(t){if(!a.isValidLookup(e)){var u=a.extractFromKey(t,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach(function(t){a.isValidLookup(e)||(o=t,!tg["".concat(h[0],"-").concat(t)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(tg["".concat(h[0],"-").concat(t)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(n){if(!a.isValidLookup(e)){i=n;var o,u=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,c,n,t,s);else{d&&(l=a.pluralResolver.getSuffix(n,s.count,s));var l,h="".concat(a.options.pluralSeparator,"zero");if(d&&(u.push(c+l),f&&u.push(c+h)),p){var g="".concat(c).concat(a.options.contextSeparator).concat(s.context);
7u.push(g),d&&(u.push(g+l),f&&u.push(g+h))}}for(;o=u.pop();)a.isValidLookup(e)||(r=o,e=a.getResource(n,t,o,s))}}))})}}),{res:e,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&void 0!==t[n])return!0;return!1}}]),r}(X);function tv(t){return t.charAt(0).toUpperCase()+t.slice(1)}var ty=function(){function t(e){p(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=J.create("languageUtils")}return g(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||0>t.indexOf("-"))return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||0>t.indexOf("-"))return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(t){return t.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=tv(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=tv(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=tv(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,n=this;return t?(t.forEach(function(t){if(!e){var r=n.formatLanguageCode(t);(!n.options.supportedLngs||n.isSupportedCode(r))&&(e=r)}}),!e&&this.options.supportedLngs&&t.forEach(function(t){if(!e){var r=n.getLanguagePartFromCode(t);if(n.isSupportedCode(r))return e=r;e=n.options.supportedLngs.find(function(t){if(0===t.indexOf(r))return t})}}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],o=function(t){t&&(n.isSupportedCode(t)?i.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"==typeof t&&o(this.formatLanguageCode(t)),r.forEach(function(t){0>i.indexOf(t)&&o(n.formatLanguageCode(t))}),i}}]),t}(),t_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","
7sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],tb={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},tS=["v1","v2","v3"],tw={zero:0,one:1,two:2,few:3,many:4,other:5},tE=function(){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,t),this.languageUtils=e,this.options=r,this.logger=J.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},t_.forEach(function(t){t.lngs.forEach(function(e){n[e]={numbers:t.nr,plurals:tb[t.fc]}})}),n)}return g(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map(function(t){return"".concat(e).concat(t)})}},{key:"getSuffixes",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(t,e){return tw[t]-tw[e]}).map(function(t){return"".concat(e.options.prepend).concat(t)}):r.numbers.map(function(r){return e.getSuffix(t,r,n)}):[]}},{key:"getSuffix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(e)):this.getSuffixRetroCompatible(r,e):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,e){var n=this,r=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),i=t.numbers[r];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[
vendor: 5,869 bytes, line 7
70]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!tS.includes(this.options.compatibilityJSON)}}]),t}();function tk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tk(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tk(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tT=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,t),this.logger=J.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return g(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:ta,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?ti(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?ti(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?ti(e.nestingPrefix):e.nestingPrefixEscaped||ti("$t("),this.nestingSuffix=e.nestingSuffix?ti(e.nestingSuffix):e.nestingSuffixEscaped||ti(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,r){var i,o,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(t){return t.replace(/\$/g,"$$$$")}var l=function(t){if(0>t.indexOf(s.formatSeparator)){var i=tr(e,u,t);return s.alwaysFormat?s.format(i,void 0,n,tO(tO(tO({},r),e),{},{interpolationkey:t})):i}var o=t.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(tr(e,u,a),c,n,tO(tO(tO({},r),e),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return c(t)}},{regex:this.regexp,safeValue:function(t){return s.escapeValue?c(s.escape(t)):c(t)}}].forEach(function(e){for(a=0;i=e.regex.exec(t);){var n=i[1].trim();if(void 0===(o=l(n))){if("function"==typeof d){var u=d(t,i,r);o="string"==typeof u?u:""}else if(r&&r.hasOwnProperty(n))o="";else if(f){o=i[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(t)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=Q(o));var c=e.safeValue(o);if(t=t.replace(i[0],c),f?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,++a>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,e){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=tO({},o);function s(t,e){var n=this.nestingOptionsSeparator;if(0>t.indexOf(n))return t;var r=t.split(RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);t=r[0];var o=(i=this.interpolate(i,a)).match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),e&&(a=tO(tO({},e),a))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(n).concat(i)}return delete a.defaultValue,t}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(t);){var u=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(t){return t.trim()});n[1]=l.shift(),u=l,c=!0}if((r=e(s.call(this,n[1].trim(),a),a))&&n[0]===t&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Q(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),r=""),c&&(r=u.reduce(function(t,e){return i.format(t,e,o.lng,tO(tO({},o),{},{interpolationkey:n[1].trim()}))},r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}}]),t}();function tx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tC(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
7e%2?tx(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tx(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function tI(t){var e={};return function(n,r,i){var o=r+JSON.stringify(i),a=e[o];return a||(a=t(r,i),e[o]=a),a(n)}}var tR=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,t),this.logger=J.create("formatter"),this.options=e,this.formats={number:tI(function(t,e){var n=new Intl.NumberFormat(t,e);return function(t){return n.format(t)}}),currency:tI(function(t,e){var n=new Intl.NumberFormat(t,tC(tC({},e),{},{style:"currency"}));return function(t){return n.format(t)}}),datetime:tI(function(t,e){var n=new Intl.DateTimeFormat(t,tC({},e));return function(t){return n.format(t)}}),relativetime:tI(function(t,e){var n=new Intl.RelativeTimeFormat(t,tC({},e));return function(t){return n.format(t,e.range||"day")}}),list:tI(function(t,e){var n=new Intl.ListFormat(t,tC({},e));return function(t){return n.format(t)}})},this.init(e)}return g(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=e.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"addCached",value:function(t,e){this.formats[t.toLowerCase().trim()]=tI(e)}},{key:"format",value:function(t,e,n,i){var s=this;return e.split(this.formatSeparator).reduce(function(t,e){var u=function(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var i=t.split("(");e=i[0].toLowerCase().trim();var s=i[1].substring(0,i[1].length-1);"currency"===e&&0>s.indexOf(":")?n.currency||(n.currency=s.trim()):"relativetime"===e&&0>s.indexOf(":")?n.range||(n.range=s.trim()):s.split(";").forEach(function(t){if(t){var e,i=r(e=t.split(":"))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||o(e)||a(),s=i[0],u=i.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=u),"false"===u&&(n[s.trim()]=!1),"true"===u&&(n[s.trim()]=!0),isNaN(u)||(n[s.trim()]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}}(e),c=u.formatName,l=u.formatOptions;if(s.formats[c]){var d=t;try{var f=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},p=f.locale||f.lng||i.locale||i.lng||n;d=s.formats[c](t,p,tC(tC(tC({},l),i),f))}catch(t){s.logger.warn(t)}return d}return s.logger.warn("there was no format function for ".concat(c)),t},t)}}]),t}();function tA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tA(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tN=function(t){z(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=V(r);if(e){var i=V(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return B(this,t)});function r(t,e,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(this,r),o=n.call(this),ts&&X.call(q(o)),o.backend=t,o.store=e,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=J.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return g(r,[{key:"queueLoad",value:function(t,e,n,r){var i=this,o={},a={},s={},u={};return t.forEach(function(t){var r=!0;e.forEach(function(e){var s="".concat(t,"|").concat(e);!n.reload&&i.store.hasResourceBundle(t,e)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[e]&&(u[e]=!0)))}),r||(s[t]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(t,e,n){var r=t.split("|"),i=r[0],o=r[1];
7e&&this.emit("failedLoading",i,o,e),n&&this.store.addResourceBundle(i,o,n),this.state[t]=e?-1:2;var a={};this.queue.forEach(function(n){var r,s,u,c,l;(u=(s=tt(n.loaded,[i],Object)).obj)[c=s.k]=u[c]||[],r&&(u[c]=u[c].concat(o)),r||u[c].push(o),void 0!==(l=n).pending[t]&&(delete l.pending[t],l.pendingCount--),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(t){a[t]||(a[t]={});var e=n.loaded[t];e.length&&e.forEach(function(e){void 0===a[t][e]&&(a[t][e]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(t){return!t.done})}},{key:"read",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:o,callback:a});return}return this.readingCalls++,this.backend[n](t,e,function(s,u){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(s&&u&&i<r.maxRetries){setTimeout(function(){r.read.call(r,t,e,n,i+1,2*o,a)},o);return}a(s,u)})}},{key:"prepareLoading",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var o=this.queueLoad(t,e,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(function(t){n.loadOne(t)})}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,function(r,a){r&&e.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&e.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),e.loaded(t,r,a)})}},{key:"saveMissing",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,e,n,r,null,tP(tP({},o),{},{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,n,r))}}]),r}(X);function tL(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&0>t.supportedLngs.indexOf("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function tj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tD(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tj(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function t$(){}var tM=function(t){z(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=V(r);if(e){var i=V(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return B(this,t)});function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;
7if(p(this,r),t=n.call(this),ts&&X.call(q(t)),t.options=tL(e),t.services={},t.logger=J,t.modules={external:[]},!function(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))})}(q(t)),i&&!t.isInitialized&&!e.isClone){if(!t.options.initImmediate)return t.init(e,i),B(t,q(t));setTimeout(function(){t.init(e,i)},0)}return t}return g(r,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));var r={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===u(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===u(t[2])||"object"===u(t[3])){var n=t[3]||t[2];Object.keys(n).forEach(function(t){e[t]=n[t]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function i(t){return t?"function"==typeof t?new t:t:null}if(this.options=tD(tD(tD({},r),this.options),tL(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=tD(tD({}
vendor: 4,995 bytes, line 7
7,r.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){this.modules.logger?J.init(i(this.modules.logger),this.options):J.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=tR);var o,a=new ty(this.options);this.store=new td(this.options.resources,this.options);var s=this.services;s.logger=J,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new tE(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new tT(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new tN(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new tm(this.services,this.options),this.translator.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(t)})}if(this.format=this.options.interpolation.format,n||(n=t$),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}});var l=Y(),d=function(){var e=function(e,r){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(r),n(e,r)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t$,r=n,i="string"==typeof t?t:this.language;if("function"==typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(t){0>o.indexOf(t)&&o.push(t)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(t){return a(t)}),this.options.preload&&this.options.preload.forEach(function(t){return a(t)}),this.services.backendConnector.load(o,this.options.ns,function(t){t||e.resolvedLanguage||!e.language||e.setResolvedLanguage(e.language),r(t)})}else r(null)}},{key:"reloadResources",value:function(t,e,n){var r=Y();return t||(t=this.languages),e||(e=this.options.ns),n||(n=t$),this.services.backendConnector.reload(t,e,function(t){r.resolve(),n(t)}),r}},{key:"use",value:function(t){if(!t)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&tf.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var r=Y();
7this.emit("languageChanging",t);var i=function(t){n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t),n.resolvedLanguage=void 0,n.setResolvedLanguage(t)},o=function(t,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),e&&e(t,function(){return n.t.apply(n,arguments)})},a=function(e){t||e||!n.services.languageDetector||(e=[]);var r="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);r&&(n.language||i(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(t){o(t,r)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(t,e,n){var r=this,i=function t(e,i){if("object"!==u(i)){for(var o,a=arguments.length,s=Array(a>2?a-2:0),c=2;c<a;c++)s[c-2]=arguments[c];o=r.options.overloadTranslationOptionHandler([e,i].concat(s))}else o=tD({},i);o.lng=o.lng||t.lng,o.lngs=o.lngs||t.lngs,o.ns=o.ns||t.ns,o.keyPrefix=o.keyPrefix||n||t.keyPrefix;var l=r.options.keySeparator||".",d=o.keyPrefix?"".concat(o.keyPrefix).concat(l).concat(e):e;return r.t(d,o)};return"string"==typeof t?i.lng=t:i.lngs=t,i.ns=e,i.keyPrefix=n,i}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
7if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return -1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}},{key:"loadNamespaces",value:function(t,e){var n=this,r=Y();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach(function(t){0>n.options.ns.indexOf(t)&&n.options.ns.push(t)}),this.loadResources(function(t){r.resolve(),e&&e(t)}),r):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=Y();"string"==typeof t&&(t=[t]);var r=this.options.preload||[],i=t.filter(function(t){return 0>r.indexOf(t)});return i.length?(this.options.preload=r.concat(i),this.loadResources(function(t){n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){return(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),t)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t$,i=tD(tD(tD({},this.options),e),{isClone:!0}),o=new r(i);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(function(e){o[e]=t[e]}),o.services=tD({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new tm(o.services,o.options),o.translator.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];o.emit.apply(o,[t].concat(n))}),o.init(i,n),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(X);l(tM,"createInstance",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new tM(t,e)});var tU=tM.createInstance();tU.createInstance=tM.createInstance,tU.createInstance,tU.init,tU.loadResources,tU.reloadResources,tU.use,tU.changeLanguage,tU.getFixedT,tU.t,tU.exists,tU.setDefaultNamespace,tU.hasLoadedNamespace,tU.loadNamespaces,tU.loadLanguages;var tF=function(t){void 0===t.ns&&(t.ns=[]);var e,n,r=tU.createInstance(t);return r.isInitialized?e=Promise.resolve(tU.t):(null==t||null===(n=t.use)||void 0===n||n.forEach(function(t){return r.use(t)}),e=r.init(t)),{i18n:r,initPromise:e}},tG=f.createElement;function tq(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tH(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tq(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tq(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tz=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return P()(function(n){var r,i,o=n.pageProps._nextI18Next,a=null!==(r=null==o?void 0:o.initialLocale)&&void 0!==r?r:null==n?void 0:null===(i=n.router)||void 0===i?void 0:i.locale,s=null==o?void 0:o.ns,u=(0,f.useMemo)(function(){if(!o&&!e)return null;var t,n,r,i=null!=e?e:null==o?void 0:o.userConfig;if(!i&&null===e)throw Error("appWithTranslation was called without a next-i18next config");if(null!==e&&(i=e),!(null!==(t=i)&&void 0!==t&&t.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!==(n=i)&&void 0!==n&&null!==(r=n.i18n)&&void 0!==r&&r.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var u=(o||{}).initialI18nStore,c=null!=e&&e.resources?e.resources:u;return a||(a=i.i18n.defaultLocale),tF(tH(tH({},G(tH(tH({},i),{},{lng:a}))),{},{lng:a,ns:s,resources:c})).i18n},[o,a,e,s]);return null!==u?tG(N,{i18n:u},tG(t,R({key:a},n))):tG(t,R({key:a},n))},t)}},6084:function(t,e){"use strict";e.Z={globalImage:"GLOBAL_IMAGE",globalCss:"GLOBAL_CSS",globalScript:"GLOBAL_SCRIPT",siteImage:"SITE_IMAGE",siteCss:"SITE_CSS",siteHtml:"SITE_HTML",helpUiHtml:"HELP_UI_HTML",helpUiHtmlGlobal:"HELP_UI_HTML_GLOBAL",helpUiGlobal:"HELP_UI_CSS_GLOBAL",helpUiTheme:"HELP_UI_THEME",landingPage:"LANDING_PAGE",colorscheme:"COLOR_SCHEME",autoColorscheme:"AUTO_COLOR_SCHEME"}},6234:function(t,e,n){"use strict";n.d(e,{I7:function(){return h},pI:function(){return l}});var r=n(9499),i=n(7294),o=n(7144),a=n(52),s=n(5893);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
7e%2?u(Object(n),!0).forEach(function(e){(0,r.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var l=(0,i.createContext)(null),d={isShowLoginPopup:!1,language:"en",isShowRightNav:!1,isCloseButtonVisible:!0,isShowUMPopup:!1,isShowCopySiteWarningPopup:!1},f=function(t){var e=t.isShowLoginPopup,n=t.language,r=t.isShowRightNav,i=t.isCloseButtonVisible,a=t.isShowUMPopup,s=t.isShowCopySiteWarningPopup;return{isShowLoginPopup:e,platform:(0,o.L_)()||"desktop",language:n,isShowRightNav:r,isCloseButtonVisible:i,isShowUMPopup:a,isShowCopySiteWarningPopup:s}},p=function(t,e){switch(e.type){case"SHOW_LOGIN_POPUP":return c(c({},t),{},{isShowLoginPopup:!t.isShowLoginPopup});case"CHANGE_PLATFORM":switch(e.value){case"downloadapp":case"wap":return c({},t);default:return(0,a.d8)("LOGIN_PLATFORM",e.value,3650),c(c({},t),{},{platform:e.value})}case"CHANGE_LANGUAGE":return c(c({},t),{},{language:e.value});case"CHANGE_DEVICE":return c(c({},t),{},{device:e.value});case"TOGGLE_RIGHT_NAV_SHOWING":return c(c({},t),{},{isShowRightNav:e.value});case"UPDATE_LOGIN_ENTER_POINT":return c(c({},t),{},{enterPoint:e.value});case"TOGGLE_SHOWING_MEMBER_RULES":return c(c({},t),{},{isShowMemberRules:e.value});case"SET_IS_CLOSE_BUTTON_VISIBLE":return c(c({},t),{},{isCloseButtonVisible:e.value});case"SHOW_UM_POPUP":return c(c({},t),{},{isShowUMPopup:!t.isShowUMPopup});case"SHOW_COPYSITE_WARNING_POPUP":return c(c({},t),{},{isShowCopySiteWarningPopup:!0});case"HIDE_COPYSITE_WARNING_POPUP":return c(c({},t),{},{isShowCopySiteWarningPopup:!1});default:return t}},h=function(t){var e=t.children,n=(0,i.useReducer)(p,d,f),r=n[0],o=n[1],a=(0,i.useMemo)(function(){return[r,o]},[r,o]);return(0,s.jsx)(l.Provider,{value:a,children:e})}},4976:function(t,e,n){"use strict";n.d(e,{Ip:function(){return c},zK:function(){return u}});var r=n(9499),i=n(7294),o=n(5893);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){(0,r.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var u=(0,i.createContext)(null),c=function(t){var e=t.children,n={openSelectLeaugePopup:!1},r=(0,i.useReducer)(function(t,e){return"SHOW_SELECT_LEAGUE_POPUP"===e.type?s(s({},n),{},{openSelectLeaugePopup:!t.openSelectLeaugePopup}):n},n),a=r[0],c=r[1];return(0,o.jsx)(u.Provider,{value:[a,c],children:e})}},8367:function(t,e,n){"use strict";n.d(e,{Gp:function(){return c},cS:function(){return s},hq:function(){return u}});var r=n(7294),i=n(6234),o=n(1934),a=n(5893),s=(0,r.createContext)(null),u=function(){return(0,r.useContext)(s)},c=function(t){var e=t.children,n=(0,r.useContext)(i.pI)[0],u=(0,o.GY)({platform:n.platform,language:n.language,enterPoint:n.enterPoint}),c=(0,r.useReducer)(o.Zs,u),l=c[0],d=c[1];(0,r.useEffect)(function(){d({type:o.Kv.UPDATE_LOGIN_DATA_HEADER_STATE,payload:{platform:n.platform,language:n.language,enterPoint:n.enterPoint}})},[d,n.enterPoint,n.language,n.platform]);var f=(0,r.useMemo)(function(){return[l,d]},[l,d]);return(0,a.jsx)(s.Provider,{value:f,children:e})}},1975:function(t,e,n){"use strict";n.d(e,{$:function(){return d},l:function(){return f}});var r=n(9499),i=n(7294),o=n(3443),a=n(1129),s=n(5893);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){(0,r.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEac
7h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var l=(0,i.createContext)(),d=function(){var t=(0,i.useContext)(l);if(!t)throw Error("useRegisterContext must be used within a RegisterProvider");return t},f=function(t){var e=t.children,n=(0,i.useState)({password:"",custToken:""}),u=n[0],d=n[1],f=(0,o.Mj)().agentId,p=(0,i.useState)(1),h=p[0],g=p[1],m=(0,i.useState)({agentId:"",userName:"",userpwd:"",userpwdOld:"",userpwdConfirm:"",firstName:"",lastName:"",countryCode:"",phoneNumber:"",mobilePhone:"",domain:"",custToken:""}),v=m[0],y=m[1];(0,i.useEffect)(function(){if(f){var t=(0,a.Z)(window.location.href);y(function(e){return c(c({},e),{},{agentId:f.toString(),domain:"https://".concat(t)})})}},[f]),(0,i.useEffect)(function(){y(function(t){return c(c({},t),{},{custToken:u.custToken})})},[u.custToken]);var _=(0,i.useState)({userName:!1,userNameAvailable:!1,userpwd:!1,userpwdOld:!1,userpwdConfirm:!1,userpwdDifference:!1,firstName:!1,firstNameLength:!1,lastName:!1,lastNameLength:!1,countryCode:!1,phoneNumber:!1}),b=_[0],S=_[1],w=(0,i.useState)(!1),E=w[0],k=w[1],O=(0,i.useState)({code:null,message:"",showModal:!1}),T=O[0],x=O[1],C=(0,i.useState)({second:0,timer:null}),I=C[0],R=C[1],A=(0,i.useState)({process:!1,error:!1}),P=A[0],N=A[1];return(0,s.jsx)(l.Provider,{value:{currentStep:h,setCurrentStep:g,formData:v,setFormData:y,formError:b,setFormError:S,registerResponse:T,setRegisterResponse:x,handleInputChange:function(t){return function(e){var n=e.target.value;("countryCode"===t||"phoneNumber"===t)&&(n=n.replace(/[^0-9]/g,"")),y(function(e){var i=c(c({},e),{},(0,r.Z)({},t,n));if("countryCode"===t||"phoneNumber"===t){var o="countryCode"===t?n:e.countryCode,a="phoneNumber"===t?n:e.phoneNumber;i.mobilePhone="".concat(o,"-").concat(a)}return i}),S(function(e){var n=c(c({},e),{},(0,r.Z)({},t,!1));return"userName"===t?n.userNameAvailable=!1:"firstName"===t?n.firstNameLength=!1:"lastName"===t&&(n.lastNameLength=!1),("userpwd"===t||"userpwdConfirm"===t)&&(n.userpwdDifference=!1,n.userpwdConfirm=!1),n})}},countdown:I,setCountdown:R,registerLoading:E,setRegisterLoading:k,loginState:P,setLoginState:N,loginTempData:u,setLoginTempData:d,clearFormData:function(){y(function(t){return c(c({},t),{},{userName:"",userpwd:"",userpwdOld:"",userpwdConfirm:"",firstName:"",lastName:"",countryCode:"",phoneNumber:"",mobilePhone:"",custToken:""})}),S(function(t){return c(c({},t),{},{userName:!1,userNameAvailable:!1,userpwd:!1,userpwdOld:!1,userpwdConfirm:!1,userpwdDifference:!1,firstName:!1,firstNameLength:!1,lastName:!1,lastNameLength:!1,countryCode:!1,phoneNumber:!1})}),d({password:"",custToken:""})}},children:e})}},3443:function(t,e,n){"use strict";n.d(e,{Mj:function(){return c},Re:function(){return u},rq:function(){return d}});var r=n(9499),i=n(7294),o=n(5893);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){(0,r.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var u=(0,i.createContext)(null),c=function(){return(0,i.useContext)(u)},l=function(t,e){switch(e.type){case"SET_AGENT_ID":return s(s({},t),{},{agentId:e.value});case"TOGGLE_SHOW_REGISTER":return s(s({},t),{},{isShowRegister:!t.isShowRegister});case"SET_IS_SHOW_CASH_MEMBER_JOIN_NOW_BUTTON":return s(s({},t),{},{isShowCashMemberJoinNowButton:e.value});case"SET_IS_SHOW_JOIN_NOW_BUTTON":return s(s({},t),{},{isShowJoinNowButton:e.value});case"SET_IS_CASH_SITE":return s(s({},t),{},{isCashSite:e.value});
7case"SET_CASH_SITE_INFO":return s(s({},t),{},{cashSiteInfo:e.value});default:return t}},d=function(t){var e=t.children,n=s({isShowRegister:!1,isShowCashMemberJoinNowButton:!1,isShowJoinNowButton:!1,isCashSite:!1,cashSiteInfo:{}},t.siteInfo||{}),r=(0,i.useReducer)(l,n),a=r[0],c=r[1],d=function(t){c({type:"SET_AGENT_ID",value:t})},f=function(){c({type:"TOGGLE_SHOW_REGISTER"})},p=function(t){c({type:"SET_IS_SHOW_CASH_MEMBER_JOIN_NOW_BUTTON",value:t})},h=function(t){c({type:"SET_IS_SHOW_JOIN_NOW_BUTTON",value:t})},g=function(t){c({type:"SET_IS_CASH_SITE",value:t})},m=function(t){c({type:"SET_CASH_SITE_INFO",value:t})},v=(0,i.useMemo)(function(){return s(s({},a),{},{dispatch:c,setAgentId:d,toggleShowRegister:f,setIsShowCashMemberJoinNowButton:p,setIsShowJoinNowButton:h,setIsCashSite:g,setCashSiteInfo:m})},[a]);return(0,o.jsx)(u.Provider,{value:v,children:e})}},1601:function(t,e,n){"use strict";n.d(e,{Kw:function(){return c},at:function(){return l}});var r=n(7294),i=n(9499);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var a={UPDATE_UM_DATA:"UPDATE_UM_DATA"},s=function(t,e){return e.type===a.UPDATE_UM_DATA?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){(0,i.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},e.payload):t},u=n(5893),c=(0,r.createContext)(null),l=function(t){var e=t.children,n=(0,r.useReducer)(s,{umPlatform:"",isUnderMaintenance:!1,displayUmStartTime:"",displayUmEndTime:""}),i=n[0],o=n[1],a=(0,r.useMemo)(function(){return[i,o]},[i,o]);return(0,u.jsx)(c.Provider,{value:a,children:e})}},5866:function(t){t.exports="20260916104758"},6722:function(t,e,n){"use strict";let r,i,o,a,s,u,c,l,d,f,p,h,g,m,v,y,_;var b,S,w={};n.r(w),n.d(w,{FunctionToString:function(){return G},InboundFilters:function(){return W},LinkedErrors:function(){return tn}});var E={};n.r(E),n.d(E,{Breadcrumbs:function(){return er},Dedupe:function(){return ef},GlobalHandlers:function(){return tP},HttpContext:function(){return ec},LinkedErrors:function(){return ea},TryCatch:function(){return tU}});var k=n(105);function O(t,e,n=[e],r="npm"){let i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(t=>({name:`${r}:@sentry/${t}`,version:k.J})),version:k.J}),t._metadata=i}var T=n(4487);function x(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=(0,T.s3)(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}var C=n(535),I=n(2844),R=n(2343),A=n(1703),P=n(1195),N=n(5659);let L=[];function j(t,e){for(let n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function D(t,e,n){if(n[e.name]){A.X&&R.kg.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,-1===L.indexOf(e.name)&&(e.setupOnce(P.cc,N.Gd),L.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),t.on&&"function"==typeof e.preprocessEvent){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if(t.addEventProcessor&&"function"==typeof e.processEvent){let n=e.processEvent.bind(e),r=(e,r)=>n(e,r,t);r.id=e.name,t.addEventProcessor(r)}A.X&&R.kg.log(`Integration installed: ${e.name}`)}function $(t,e){let n=function(...t){return e(...t)};return n.id=t,n}let M="FunctionToString",U=new WeakMap,F=()=>({name:M,setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=(0,C.HK)(this),n=U.has((0,T.s3)())&&void 0!==e?e:this;return r.apply(n,t)}}catch(t){}},setup(t){U.set(t,!0)}}),G=$(M,F);var q=n(7321);let H=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],z=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],B="InboundFilters",V=(t={})=>({name:B,setupOnce(){},processEvent(e,n,r){var i;let o=r.getOptions(),a=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:H],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:z],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,o);return(a.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(e)?(A.X&&R.kg.warn(`Event dropped due to being internal Sentry Error. 8Event: ${(0,I.jH)(e)}`),0):(i=a.ignoreErrors,!e.type&&i&&i.length&&(function(t){let e;let n=[];t.message&&n.push(t.message);try{e=t.exception.values[t.exception.values.length-1]}catch(t){}return e&&e.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`)),A.X&&0===n.length&&R.kg.error(`Could not extract message for event ${(0,I.jH)(t)}`),n})(e).some(t=>(0,q.U0)(t,i)))?(A.X&&R.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 9Event: ${(0,I.jH)(e)}`),0):!function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;let n=t.transaction;return!!n&&(0,q.U0)(n,e)}(e,a.ignoreTransactions)?!function(t,e){if(!e||!e.length)return!1;let n=K(t);return!!n&&(0,q.U0)(n,e)}(e,a.denyUrls)?function(t,e){if(!e||!e.length)return!0;let n=K(t);return!n||(0,q.U0)(n,e)}(e,a.allowUrls)||(A.X&&R.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option. 10Event: ${(0,I.jH)(e)}. 11Url: ${K(e)}`),0):(A.X&&R.kg.warn(`Event dropped due to being matched by \`denyUrls\` option. 12Event: ${(0,I.jH)(e)}. 13Url: ${K(e)}`),0):(A.X&&R.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 14Event: ${(0,I.jH)(e)}`),0))?e:null}}),W=$(B,V);function K(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return A.X&&R.kg.error(`Cannot extract url for event ${(0,I.jH)(t)}`),null}}var Z=n(7597);function J(t,e,n=250,r,i,o,a){if(!o.exception||!o.exception.values||!a||!(0,Z.V9)(a.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=(function t(e,n,r,i,o,a,s,u){if(a.length>=r+1)return a;let c=[...a];if((0,Z.V9)(i[o],Error)){X(s,u);let a=e(n,i[o]),l=c.length;Y(a,o,l,u),c=t(e,n,r,i[o],o,[a,...c],a,l)}
14return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>{if((0,Z.V9)(i,Error)){X(s,u);let l=e(n,i),d=c.length;Y(l,`errors[${a}]`,d,u),c=t(e,n,r,i,o,[l,...c],l,d)}}),c})(t,e,i,a.originalException,r,o.exception.values,s,0).map(t=>(t.value&&(t.value=(0,q.$G)(t.value,n)),t)))}function X(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function Y(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function Q(t,e){let n={type:e.name||e.constructor.name,value:e.message},r=t(e.stack||"",1);return r.length&&(n.stacktrace={frames:r}),n}let tt="LinkedErrors",te=(t={})=>{let e=t.limit||5,n=t.key||"cause";return{name:tt,setupOnce(){},preprocessEvent(t,r,i){let o=i.getOptions();J(Q,o.stackParser,o.maxValueLength,n,e,t,r)}}},tn=$(tt,te);var tr=n(1235);let ti=tr.n2,to=0;function ta(t,e={},n){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e){if("function"==typeof e)return e;return t}if((0,C.HK)(t))return t}catch(e){return t}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(t=>ta(t,e));return t.apply(this,i)}catch(t){throw to++,setTimeout(()=>{to--}),(0,T.$e)(n=>{n.addEventProcessor(t=>(e.mechanism&&((0,I.Db)(t,void 0,void 0),(0,I.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t)),(0,T.Tb)(t)}),t}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}(0,C.$Q)(r,t),(0,C.xp)(t,"__sentry_wrapped__",r);try{let e=Object.getOwnPropertyDescriptor(r,"name");e.configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}var ts=n(3897),tu=n(360);let tc={},tl={};function td(t,e){tc[t]=tc[t]||[],tc[t].push(e)}function tf(t,e){tl[t]||(e(),tl[t]=!0)}function tp(t,e){let n=t&&tc[t];if(n)for(let r of n)try{r(e)}catch(e){ts.X&&R.kg.error(`Error while triggering instrumentation handler. 15Type: ${t} 16Name: ${(0,tu.$P)(r)} 17Error:`,e)}}let th=null;function tg(t){let e="error";td(e,t),tf(e,tm)}function tm(){th=tr.n2.onerror,tr.n2.onerror=function(t,e,n,r,i){return tp("error",{column:r,error:i,line:n,msg:t,url:e}),!!th&&!th.__SENTRY_LOADER__&&th.apply(this,arguments)},tr.n2.onerror.__SENTRY_INSTRUMENTED__=!0}let tv=null;function ty(t){let e="unhandledrejection";td(e,t),tf(e,t_)}function t_(){tv=tr.n2.onunhandledrejection,tr.n2.onunhandledrejection=function(t){return tp("unhandledrejection",t),!tv||!!tv.__SENTRY_LOADER__||tv.apply(this,arguments)},tr.n2.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var tb=n(8464);let tS="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var tw=n(4754),tE=n(6893);function tk(t,e){let n=tT(t,e),r={type:e&&e.name,value:function(t){let e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tO(t,e){return{exception:{values:[tk(t,e)]}}}function tT(t,e){let n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(tx.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}let tx=/Minified React error #\d+;/i;function tC(t,e,n,r,i){let o;if((0,Z.VW)(e)&&e.error)return tO(t,e.error);if((0,Z.TX)(e)||(0,Z.fm)(e)){if("stack"in e)o=tO(t,e);else{let i=e.name||((0,Z.TX)(e)?"DOMError":"DOMException"),a=e.message?`${i}: ${e.message}`:i;o=tI(t,a,n,r),(0,I.Db)(o,a)}return"code"in e&&(o.tags={...o.tags,"DOMException.code":`${e.code}`}),o}return(0,Z.VZ)(e)?tO(t,e):(0,Z.PO)(e)||(0,Z.cO)(e)?(o=function(t,e,n,r){let i=(0,T.s3)(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,Z.cO)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:function(t,{isUnhandledRejection:e}){let n=(0,C.zf)(t),r=e?"promise rejection":"exception";if((0,Z.VW)(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if((0,Z.cO)(t)){let e=function(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t);return`Event \`${e}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(e,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,tw.Qy)(e,o)}};if(n){let e=tT(t,n);e.length&&(a.exception.values[0].stacktrace={frames:e})}return a}(t,e,n,i),(0,I.EG)(o,{synthetic:!0}),o):(o=tI(t,e,n,r),(0,I.Db)(o,`${e}`,void 0),(0,I.EG)(o,{synthetic:!0}),o)}function tI(t,e,n,r){let i={};if(r&&n){let r=tT(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}
17if((0,Z.Le)(e)){let{__sentry_template_string__:t,__sentry_template_values__:n}=e;return i.logentry={message:t,params:n},i}return i.message=e,i}let tR="GlobalHandlers",tA=(t={})=>{let e={onerror:!0,onunhandledrejection:!0,...t};return{name:tR,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(tg(e=>{let{stackParser:n,attachStacktrace:r}=tj();if((0,T.s3)()!==t||to>0)return;let{msg:i,url:o,line:a,column:s,error:u}=e,c=void 0===u&&(0,Z.HD)(i)?function(t,e,n,r){let i=(0,Z.VW)(t)?t.message:t,o="Error",a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2]);let s={exception:{values:[{type:o,value:i}]}};return tN(s,e,n,r)}(i,o,a,s):tN(tC(n,u||i,void 0,r,!1),o,a,s);c.level="error",(0,T.eN)(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),tL("onerror")),e.onunhandledrejection&&(ty(e=>{let{stackParser:n,attachStacktrace:r}=tj();if((0,T.s3)()!==t||to>0)return;let i=function(t){if((0,Z.pt)(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(t){}return t}(e),o=(0,Z.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:tC(n,i,void 0,r,!0);o.level="error",(0,T.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),tL("onunhandledrejection"))}}},tP=$(tR,tA);function tN(t,e,n,r){let i=t.exception=t.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=(0,Z.HD)(e)&&e.length>0?e:(0,tb.l4)();return 0===u.length&&u.push({colno:c,filename:d,function:"?",in_app:!0,lineno:l}),t}function tL(t){tS&&R.kg.log(`Global Handler attached: ${t}`)}function tj(){let t=(0,T.s3)(),e=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return e}let tD=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],t$="TryCatch",tM=(t={})=>{let e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:t$,setupOnce(){e.setTimeout&&(0,C.hl)(ti,"setTimeout",tF),e.setInterval&&(0,C.hl)(ti,"setInterval",tF),e.requestAnimationFrame&&(0,C.hl)(ti,"requestAnimationFrame",tG),e.XMLHttpRequest&&"XMLHttpRequest"in ti&&(0,C.hl)(XMLHttpRequest.prototype,"send",tq);let t=e.eventTarget;if(t){let e=Array.isArray(t)?t:tD;e.forEach(tH)}}}},tU=$(t$,tM);function tF(t){return function(...e){let n=e[0];return e[0]=ta(n,{mechanism:{data:{function:(0,tu.$P)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function tG(t){return function(e){return t.apply(this,[ta(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,tu.$P)(t)},handled:!1,type:"instrument"}})])}}function tq(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&(0,C.hl)(n,t,function(e){let n={mechanism:{data:{function:t,handler:(0,tu.$P)(e)},handled:!1,type:"instrument"}},r=(0,C.HK)(e);return r&&(n.mechanism.data.handler=(0,tu.$P)(r)),ta(e,n)})}),t.apply(this,e)}}function tH(t){let e=ti[t]&&ti[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&((0,C.hl)(e,"addEventListener",function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=ta(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,tu.$P)(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,ta(r,{mechanism:{data:{function:"addEventListener",handler:(0,tu.$P)(r),target:t},handled:!1,type:"instrument"}}),i])}}),(0,C.hl)(e,"removeEventListener",function(t){return function(e,n,r){try{let i=n&&n.__sentry_wrapped__;i&&t.call(this,e,i,r)}catch(t){}return t.call(this,e,n,r)}}))}function tz(){"console"in tr.n2&&R.RU.forEach(function(t){t in tr.n2.console&&(0,C.hl)(tr.n2.console,t,function(e){return R.L
17D[t]=e,function(...e){tp("console",{args:e,level:t});let n=R.LD[t];n&&n.apply(tr.n2.console,e)}})})}let tB=tr.n2;function tV(){if(!tB.document)return;let t=tp.bind(null,"dom"),e=tW(t,!0);tB.document.addEventListener("click",e,!1),tB.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{let n=tB[e]&&tB[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,C.hl)(n,"addEventListener",function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){let r=tW(t);a.handler=r,e.call(this,n,r,i)}a.refCount++}catch(t){}return e.call(this,n,r,i)}}),(0,C.hl)(n,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}}))})}function tW(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(t){try{return t.target}catch(t){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;(0,C.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,C.xp)(r,"_sentryId",(0,I.DM)());let s="keypress"===n.type?"input":n.type;!function(t){if(t.type!==o)return!1;try{if(!t.target||t.target._sentryId!==a)return!1}catch(t){}return!0}(n)&&(t({event:n,name:s,global:e}),o=n.type,a=r?r._sentryId:void 0),clearTimeout(i),i=tB.setTimeout(()=>{a=void 0,o=void 0},1e3)}}let tK=tr.n2,tZ="__sentry_xhr_v3__";function tJ(t){td("xhr",t),tf("xhr",tX)}function tX(){if(!tK.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;(0,C.hl)(t,"open",function(t){return function(...e){let n=Date.now(),r=(0,Z.HD)(e[0])?e[0].toUpperCase():void 0,i=function(t){if((0,Z.HD)(t))return t;try{return t.toString()}catch(t){}}(e[1]);if(!r||!i)return t.apply(this,e);this[tZ]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let t=this[tZ];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}let e={args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this};tp("xhr",e)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,C.hl)(this,"onreadystatechange",function(t){return function(...e){return o(),t.apply(this,e)}}):this.addEventListener("readystatechange",o),(0,C.hl)(this,"setRequestHeader",function(t){return function(...e){let[n,r]=e,i=this[tZ];return i&&(0,Z.HD)(n)&&(0,Z.HD)(r)&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}}),t.apply(this,e)}}),(0,C.hl)(t,"send",function(t){return function(...e){let n=this[tZ];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);let r={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return tp("xhr",r),t.apply(this,e)}})}let tY=(0,tr.Rf)();function tQ(){if(!("fetch"in tY))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function t0(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function t1(t){let e="fetch";td(e,t),tf(e,t2)}function t2(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!tQ())return!1;if(t0(tY.fetch))return!0;let t=!1,e=tY.document;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");
17n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=t0(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){ts.X&&R.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&(0,C.hl)(tr.n2,"fetch",function(t){return function(...e){let{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){let[e,n]=t;return{url:t5(e),method:t3(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:t5(e),method:t3(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return tp("fetch",{...i}),t.apply(tr.n2,e).then(t=>{let e={...i,endTimestamp:Date.now(),response:t};return tp("fetch",e),t},t=>{let e={...i,endTimestamp:Date.now(),error:t};throw tp("fetch",e),t})}})}function t3(t,e){return!!t&&"object"==typeof t&&!!t[e]}function t5(t){return"string"==typeof t?t:t?t3(t,"url")?t.url:t.toString?t.toString():"":""}let t4=(0,tr.Rf)(),t8=tr.n2;function t6(t){let e="history";td(e,t),tf(e,t9)}function t9(){if(!function(){let t=t4.chrome,e=t&&t.app&&t.app.runtime,n="history"in t4&&!!t4.history.pushState&&!!t4.history.replaceState;return!e&&n}())return;let t=t8.onpopstate;function e(t){return function(...e){let n=e.length>2?e[2]:void 0;if(n){let t=s,e=String(n);s=e,tp("history",{from:t,to:e})}return t.apply(this,e)}}t8.onpopstate=function(...e){let n=t8.location.href,r=s;if(s=n,tp("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},(0,C.hl)(t8.history,"pushState",e),(0,C.hl)(t8.history,"replaceState",e)}let t7=["fatal","error","warning","log","info","debug"];function et(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}let ee="Breadcrumbs",en=(t={})=>{let e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:ee,setupOnce(){},setup(t){var n;e.console&&function(t){let e="console";td(e,t),tf(e,tz)}(function(e){var n;if((0,T.s3)()!==t)return;let r={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(n=e.level)?"warning":t7.includes(n)?n:"log",message:(0,q.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;r.message=`Assertion failed: ${(0,q.nK)(e.args.slice(1)," ")||"console.assert"}`,r.data.arguments=e.args.slice(1)}(0,T.n_)(r,{input:e.args,level:e.level})}),e.dom&&(td("dom",(n=e.dom,function(e){let r,i;if((0,T.s3)()!==t)return;let o="object"==typeof n?n.serializeAttribute:void 0,a="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;a&&a>1024&&(tS&&R.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{let t=e.event,n=t&&t.target?t.target:t;r=(0,tb.Rt)(n,{keyAttrs:o,maxStringLength:a}),i=(0,tb.iY)(n)}catch(t){r="<unknown>"}if(0===r.length)return;let s={category:`ui.${e.name}`,message:r};i&&(s.data={"ui.component_name":i}),(0,T.n_)(s,{event:e.event,name:e.name,global:e.global})})),tf("dom",tV)),e.xhr&&tJ(function(e){if((0,T.s3)()!==t)return;let{startTimestamp:n,endTimestamp:r}=e,i=e.xhr[tZ];if(!n||!r||!i)return;let{method:o,url:a,status_code:s,body:u}=i,c={xhr:e.xhr,input:u,startTimestamp:n,endTimestamp:r};(0,T.n_)({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},c)}),e.fetch&&t1(function(e){if((0,T.s3)()!==t)return;let{startTimestamp:n,endTimestamp:r}=e;if(!(!r||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method)){if(e.error){let t=e.fetchData,i={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};(0,T.n_)({category:"fetch",data:t,level:"error",type:"http"},i)}else{let t=e.response,i={...e.fetchData,status_code:t&&t.status},o={input:e.args,response:t,startTimestamp:n,endTimestamp:r};(0,T.n_)({category:"fetch",data:i,type:"http"},o)}}}),e.history&&t6(function(e){if((0,T.s3)()!==t)return;let n=e.from,r=e.to,i=et(ti.location.href),o=n?et(n):void 0,a=et(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,T.n_)({category:"navigation",data:{from:n,to:r}})}),e.sentry&&t.on&&t.on("beforeSendEvent",function(e){(0,T.s3)()===t&&(0,T.n_)({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,I.jH)(e)},{event:e})})}}},er=$(ee,en),ei="LinkedErrors",eo=(t={})=>{let e=t.limit||5,n=t.key||"cause";return{name:ei,setupOnce(){},preprocessEvent(t,r,i){let o=i.getOptions();J(tk,o.stackParser,o.maxValueLength,n,e,t,r)}}},ea=$(ei,eo),es="HttpContext",eu=()=>({name:es,setupOnce(){},preprocessEvent(t){if(!ti.navigator&&!ti.location&&!ti.document)return;let e=t.request&&t.request.url||ti.location&&ti.location.href,{referrer:n}=ti.document||{},{userAgent:r}=ti.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:i};t.request=o}}),ec=$(es,eu),el="Dedupe",ed=()=>{let t;return{name:el,setupOnce(){},processEvent(e){if(e.type)return e;try{var n;if((n=t)&&(function(t,e){let n=t.message,r=e.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&eh(t,e)&&ep(t,e))}(e,n)||function(t,e){let n=eg(e),r=eg(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&eh(t,e)&&ep(t,e))}(e,n)))return tS&&R.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}},ef=$(el,ed);function ep(t,e){let n=em(t),r=em(e);
17if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let t=0;t<r.length;t++){let e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function eh(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function eg(t){return t.exception&&t.exception.values&&t.exception.values[0]}function em(t){let e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){}}let ev={};ti.Sentry&&ti.Sentry.Integrations&&(ev=ti.Sentry.Integrations);let ey={...ev,...w,...E},e_=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function eb(t,e=!1){let{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=t;return`${s}://${u}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function eS(t){let e=e_.exec(t);if(!e){(0,R.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",o,a="",s]=e.slice(1),u="",c=s,l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){let t=c.match(/^\d+/);t&&(c=t[0])}return ew({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}function ew(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eE(t,e=[]){return[t,e]}function ek(t,e){let n=t[1];for(let t of n){let n=t[0].type,r=e(t,n);if(r)return!0}return!1}function eO(t,e){let n=e||new TextEncoder;return n.encode(t)}let eT={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function ex(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}class eC extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var eI=n(9015),eR=n(454),eA=n(8942);let eP="Not capturing exception because it's already been captured.";class eN{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){let e="string"==typeof t?eS(t):ew(t);if(e&&function(t){if(!ts.X)return!0;let{port:e,projectId:n,protocol:r}=t,i=["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(R.kg.error(`Invalid Sentry Dsn: ${e} missing`),!0));return!i&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(e&&isNaN(parseInt(e,10)))||(R.kg.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(R.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(R.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}(t.dsn):A.X&&R.kg.warn("No DSN provided, client will not send events."),this._dsn){let e=function(t,e={}){let n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${(0,C._j)({sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`}(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if((0,I.YO)(t)){A.X&&R.kg.log(eP);return}let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then(t=>this._captureEvent(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let i=n&&n.event_id,o=(0,Z.Le)(t)?t:String(t),a=(0,Z.pt)(t)?this.eventFromMessage(o,e,n):this.eventFromException(t,n);return this._process(a.then(t=>this._captureEvent(t,n,r)).then(t=>{i=t})),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,I.YO)(e.originalException)){A.X&&R.kg.log(eP);return}let r=e&&e.event_id,i=t.sdkProcessingMetadata||{},o=i.capturedSpanScope;return this._process(this._captureEvent(t,e,o||n).then(t=>{r=t})),r}captureSession(t){"string"!=typeof t.release?A.X&&R.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,eI.CT)(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isCl
17ientDoneProcessing(t).then(n=>e.flush(t).then(t=>n&&t))):(0,tE.WD)(!0)}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return A.X&&R.kg.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){let e=this._integrations[t.name];D(this,t,this._integrations),e||j(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){var i,o;let a=ex(n),s=t.type&&"replay_event"!==t.type?t.type:"event";i=t,(o=n&&n.sdk)&&(i.sdk=i.sdk||{},i.sdk.name=i.sdk.name||o.name,i.sdk.version=i.sdk.version||o.version,i.sdk.integrations=[...i.sdk.integrations||[],...o.integrations||[]],i.sdk.packages=[...i.sdk.packages||[],...o.packages||[]]);let u=function(t,e,n,r){let i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:eb(r)},...i&&{trace:(0,C.Jr)({...i})}}}(t,a,r,e);delete t.sdkProcessingMetadata;let c=[{type:s},t];return eE(u,[c])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(let t of e.attachments||[])n=function(t,e){let[n,r]=t;return[n,[...r,e]]}(n,function(t,e){let n="string"==typeof t.data?eO(t.data,e):t.data;return[(0,C.Jr)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(e=>this.emit("afterSendEvent",t,e),null)}sendSession(t){let e=function(t,e,n,r){let i=ex(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:eb(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return eE(o,[a])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){let r="number"==typeof n?n:1,i=`${t}:${e}`;A.X&&R.kg.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(t){A.X&&R.kg.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let e=function(t,e,n,r){let i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(i.dsn=eb(e));let o=function(t){let e=function(t){let e="";for(let n of t){let t=Object.entries(n.tags),r=t.length>0?`|#${t.map(([t,e])=>`${t}:${e}`).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp} 18`}return e}(t),n={type:"statsd",length:e.length};return[n,e]}(t);return eE(i,[o])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach(t=>t(...e))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=function(t,e){let n={};return e.forEach(e=>{e&&D(t,e,n)}),n}(this,t),j(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,r=!1,i=e.exception&&e.exception.values;if(i)for(let t of(r=!0,i)){let e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}let o="ok"===t.status,a=o&&0===t.errors||o&&n;a&&((0,eI.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new tE.cW(e=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r=(0,N.aF)()){let i=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>
180&&(e.integrations=o),this.emit("preprocessEvent",t,e),(0,eA.R)(i,t,e,n,this,r).then(t=>{if(null===t)return t;let e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0},i=t.contexts&&t.contexts.trace;if(!i&&e){let{traceId:r,spanId:i,parentSpanId:o,dsc:a}=e;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...t.contexts};let s=a||(0,eR._)(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:s,...t.sdkProcessingMetadata}}return t})}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then(t=>t.event_id,t=>{A.X&&("log"===t.logLevel?R.kg.log(t.message):R.kg.warn(t))})}_processEvent(t,e,n){let r=this.getOptions(),{sampleRate:i}=r,o=ej(t),a=eL(t),s=t.type||"error",u=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),(0,tE.$2)(new eC(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===s?"replay":s,l=t.sdkProcessingMetadata||{},d=l.capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,t),new eC("An event processor returned `null`, will not send event.","log");let i=e.data&&!0===e.data.__sentry__;if(i)return n;let o=function(t,e,n){let{beforeSend:r,beforeSendTransaction:i}=t;if(eL(e)&&r)return r(e,n);if(ej(e)&&i){if(e.spans){let t=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(e,n)}return e}(r,n,e);return function(t,e){let n=`${e} must return \`null\` or a valid event.`;if((0,Z.J8)(t))return t.then(t=>{if(!(0,Z.PO)(t)&&null!==t)throw new eC(n);return t},t=>{throw new eC(`${e} rejected with ${t}`)});if(!(0,Z.PO)(t)&&null!==t)throw new eC(n);return t}(o,u)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,t),o){let e=t.spans||[],n=1+e.length;this.recordDroppedEvent("before_send","span",n)}throw new eC(`${u} returned \`null\`, will not send event.`,"log")}let i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){let t=r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0,e=r.spans?r.spans.length:0,n=t-e;n>0&&this.recordDroppedEvent("before_send","span",n)}let a=r.transaction_info;return o&&a&&r.transaction!==t.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,e),r}).then(null,t=>{if(t instanceof eC)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new eC(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 19Reason: ${t}`)})}_process(t){this._numProcessing++,t.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,t=>{A.X&&R.kg.error("Error while sending event:",t)});A.X&&R.kg.error("Transport disabled")}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.keys(t).map(e=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}})}}function eL(t){return void 0===t.type}function ej(t){return"transaction"===t.type}var eD=n(1170);class e$ extends eN{constructor(t){let e=ti.SENTRY_SDK_SOURCE||"npm";O(t,"browser",["browser"],e),super(t),t.sendClientReports&&ti.document&&ti.document.addEventListener("visibilitychange",()=>{"hidden"===ti.document.visibilityState&&this._flushOutcomes()})}eventFromException(t,e){return function(t,e,n,r){let i=n&&n.syntheticException||void 0,o=tC(t,e,i,r);return(0,I.EG)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,tE.WD)(o)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){let o=r&&r.syntheticException||void 0,a=tI(t,e,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),(0,tE.WD)(a)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){tS&&R.kg.warn("SDK not enabled, will not capture user feedback.");return}let e=function(t,{metadata:e,tunnel:n,dsn:r}){let i={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:eb(r)}};return eE(i,[[{type:"user_report"},t]])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){let t=this._clearOutcomes();if(0===t.length){tS&&R.kg.log("No outcomes to send");return}if(!this._dsn){tS&&R.kg.log("No dsn provided, will not send outcomes");return}tS&&R.kg.log("Sending outcomes:",t);let e=function(t,e,n){let r=[{type:"client_report"},{timestamp:(0,eD.yW)(),discarded_events:t}];return eE(e?{dsn:e}:{},[r])}(t,this._options.tunnel&&eb(this._dsn));this._sendEnvelope(e)}}function eM(t,e,n,r){let i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}
19let eU=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eF=/\((\S*)(?::(\d+))(?::(\d+))\)/,eG=t=>{let e=eU.exec(t);if(e){let t=e[2]&&0===e[2].indexOf("eval");if(t){let t=eF.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}let[n,r]=eK(e[1]||"?",e[2]);return eM(r,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},eq=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,eH=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ez=t=>{let e=eq.exec(t);if(e){let t=e[3]&&e[3].indexOf(" > eval")>-1;if(t){let t=eH.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let n=e[3],r=e[1]||"?";return[r,n]=eK(r,n),eM(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},eB=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,eV=t=>{let e=eB.exec(t);return e?eM(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0},eW=(0,tu.pE)(...[[30,eG],[50,ez],[40,eV]]),eK=(t,e)=>{let n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:"?",n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function eZ(t,e,n=function(t){let e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return(0,tE.$2)(new eC("Not adding Promise because buffer limit was reached."));let i=r();return -1===e.indexOf(i)&&e.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(t){return new tE.cW((n,r)=>{let i=e.length;if(!i)return n(!0);let o=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{(0,tE.WD)(t).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(t.bufferSize||30)){let r={},i=t=>n.drain(t);function o(i){let o=[];if(ek(i,(e,n)=>{let i=eT[n];if(function(t,e,n=Date.now()){return(t[e]||t.all||0)>n}(r,i)){let r=eJ(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(e)}),0===o.length)return(0,tE.WD)();let a=eE(i[0],o),s=e=>{ek(a,(n,r)=>{let i=eJ(n,r);t.recordDroppedEvent(e,eT[r],i)})},u=()=>e({body:function(t,e){let[n,r]=t,i=JSON.stringify(n);function o(t){"string"==typeof i?i="string"==typeof t?i+t:[eO(i,e),t]:i.push("string"==typeof t?eO(t,e):t)}for(let t of r){let[e,n]=t;if(o(` 20${JSON.stringify(e)} 21`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,tw.Fv)(n))}o(t)}}return"string"==typeof i?i:function(t){let e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e),r=0;for(let e of t)n.set(e,r),r+=e.length;return n}(i)}(a,t.textEncoder)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&A.X&&R.kg.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=function(t,{statusCode:e,headers:n},r=Date.now()){let i={...t},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(let t of o.trim().split(",")){let[e,n,,,o]=t.split(":",5),a=parseInt(e,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let t of n.split(";"))"metric_bucket"===t?(!o||o.split(";").includes("custom"))&&(i[t]=r+s):i[t]=r+s;else i.all=r+s}else a?i.all=r+function(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(a,r):429===e&&(i.all=r+6e4);return i}(r,t),t),t=>{throw s("network_error"),t});return n.add(u).then(t=>t,t=>{if(t instanceof eC)return A.X&&R.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,tE.WD)();throw t})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function eJ(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function eX(t,e=function(){if(v)return v;if(t0(ti.fetch))return v=ti.fetch.bind(ti);let t=ti.document,e=ti.fetch;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){tS&&R.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return v=e.bind(ti)}()){let n=0,r=0;return eZ(t,function(i){let o=i.body.length;n+=o,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,a).then(t=>(n-=o,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}))}catch(t){return v=void 0,n-=o,r--,(0,tE.$2)(t)}})}function eY(t){return eZ(t,function(e){return new tE.cW((n,r)=>{let i=new XMLHttpRequest;for(let e in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)})})}let eQ=[V(),F(),tM(),en(),tA(),eo(),ed(),eu()];var e0=n(3454),e1=n(3371);function e2(t){let e=u?u.get(t):void 0;if(!e)return;let n={};for(let[,[t,r]]of e)n[t]||(n[t]=[]),n[t].push((0,C.Jr)(r));return n}let e3="sentry.source",e5="sentry.sample_rate",e4="sentry.op",e8="sentry.origin";var e6=n(5102);function e9(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);let n=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);"unknown_error"!==n&&t.setStatus(n)}(b=S||(S={})).Ok="ok",b.DeadlineExceeded="deadline_exceeded",b.Unauthenticated="unauthenticated",b.PermissionDenied="permission_denied",b.NotFound="not_found",b.ResourceExhausted="resource_exhausted",b.InvalidArgument="invalid_argument",b.Unimplemented="unimplemented",b.Unavailable="unavailable",b.InternalError="internal_error",b.UnknownError="unknown_error",b.Cancelled="cancelled",b.AlreadyExists="already_exists",b.FailedPrecondition="failed_precondition",b.Aborted="aborted",b.OutOfRange="out_of_range",b.DataLoss="data_loss";class e7{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class nt{constructor(t={}){this._traceId=t.traceId||(0,I.DM)(),this._spanId=t.spanId||(0,I.DM)().substring(16),this._startTime=t.startTimestamp||(0,eD.ph)(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[e8]:t.origin||"manual",[e4]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),void 0!==t.exclusiveTime&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[e4]}set op(t){this.setAttribute(e4,t)}get origin(){return this._attributes[e8]}set origin(t){this.setAttribute(e8,t)}spanContext(){let{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?e1.i0:e1.ve}}startChild(t){let e=new nt({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e);let n=(0,e6.G)(this);if(e.transaction=n,A.X&&n){let r=t&&t.op||"< unknown op >",i=(0,e1.XU)(e).description||"< unknown name >",o=n.spanContext().spanId,a=`[Tracing] Starting '${r}' span on transaction '${i}' (${o}).`;R.kg.log(a),this._logMessage=a}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}
21setAttributes(t){Object.keys(t).forEach(e=>this.setAttribute(e,t[e]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return e9(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return"ok"===this._status}finish(t){return this.end(t)}end(t){if(this._endTime)return;let e=(0,e6.G)(this);if(A.X&&e&&e.spanContext().spanId!==this._spanId){let t=this._logMessage;t&&R.kg.log(t.replace("Starting","Finishing"))}this._endTime=(0,e1.$k)(t)}toTraceparent(){return(0,e1.Hb)(this)}toContext(){return(0,C.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return(0,e1.wy)(this)}getSpanJSON(){return(0,C.Jr)({data:this._getData(),description:this._name,op:this._attributes[e4],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[e8],_metrics_summary:e2(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){let{data:t,_attributes:e}=this,n=Object.keys(t).length>0,r=Object.keys(e).length>0;return n||r?n&&r?{...t,...e}:n?t:e:void 0}}function ne(t){if(!x())return;let e=function(t){if(t.startTime){let e={...t};return e.startTimestamp=(0,e1.$k)(t.startTime),delete e.startTime,e}return t}(t),n=(0,N.Gd)(),r=t.scope?t.scope.getSpan():nn(),i=t.onlyIfParent&&!r;if(i)return;let o=t.scope||(0,T.nZ)(),a=o.clone();return function(t,{parentSpan:e,spanContext:n,forceTransaction:r,scope:i}){var o;let a;if(!x())return;let s=(0,N.aF)();if(e&&!r)a=e.startChild(n);else if(e){let r=(0,eR.j)(e),{traceId:i,spanId:o}=e.spanContext(),s=(0,e1.Tt)(e);a=t.startTransaction({traceId:i,parentSpanId:o,parentSampled:s,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{let{traceId:e,dsc:r,parentSpanId:o,sampled:u}={...s.getPropagationContext(),...i.getPropagationContext()};a=t.startTransaction({traceId:e,parentSpanId:o,parentSampled:u,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return i.setSpan(a),(o=a)&&((0,C.xp)(o,ni,s),(0,C.xp)(o,nr,i)),a}(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:a})}function nn(){return(0,T.nZ)().getSpan()}let nr="_sentryScope",ni="_sentryIsolationScope";class no extends nt{constructor(t,e){super(t),this._contexts={},this._hub=e||(0,N.Gd)(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;let n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[e3]&&{source:this._attributes[e3]},...this._attributes[e5]&&{sampleRate:this._attributes[e5]}}}set metadata(t){this._metadata=t}setName(t,e="custom"){this._name=t,this.setAttribute(e3,e)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new e7(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){let e=(0,e1.$k)(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){let t=super.toContext();return(0,C.Jr)({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return(0,eR.j)(this)}setHub(t){this._hub=t}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(t){if(void 0!==this._endTime)return;this._name||(A.X&&R.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);let e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this._sampled){A.X&&R.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(t=>t!==this&&(0,e1.XU)(t).timestamp):[];if(this._trimEnd&&n.length>0){let t=n.map(t=>
21(0,e1.XU)(t).timestamp).filter(Boolean);this._endTime=t.reduce((t,e)=>t>e?t:e)}let{scope:r,isolationScope:i}={scope:this[nr],isolationScope:this[ni]},{metadata:o}=this,{source:a}=o,s={contexts:{...this._contexts,trace:(0,e1.wy)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:r,capturedSpanIsolationScope:i,...(0,C.Jr)({dynamicSamplingContext:(0,eR.j)(this)})},_metrics_summary:e2(this),...a&&{transaction_info:{source:a}}},u=Object.keys(this._measurements).length>0;return u&&(A.X&&R.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),A.X&&R.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}let na={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class ns extends e7{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){let e=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),e.apply(t,n)),void 0===(0,e1.XU)(t).timestamp&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class nu extends no{constructor(t,e,n=na.idleTimeout,r=na.finalTimeout,i=na.heartbeatInterval,o=!1,a=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",this._autoFinishAllowed=!a,o&&(A.X&&R.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),e.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.end())},this._finalTimeout)}end(t){let e=(0,e1.$k)(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){for(let t of(A.X&&R.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;!(0,e1.XU)(t).timestamp&&(t.setStatus("cancelled"),t.end(e),A.X&&R.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let{start_timestamp:n,timestamp:r}=(0,e1.XU)(t),i=n&&n<e,o=(this._finalTimeout+this._idleTimeout)/1e3,a=r&&n&&r-n<o;if(A.X){let e=JSON.stringify(t,void 0,2);i?a||R.kg.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):R.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return i&&a}),A.X&&R.kg.log("[Tracing] flushing IdleTransaction")}else A.X&&R.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){let t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){let e=t=>{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new ns(e,n,this.spanContext().spanId,t),A.X&&R.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(A.X&&R.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.end(t))},this._idleTimeout)}
21_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),A.X&&R.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,A.X&&R.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(A.X&&R.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],A.X&&R.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let t=(0,eD.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason="cancelled",this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(A.X&&R.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.end()):this._pingHeartbeat()}_pingHeartbeat(){A.X&&R.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function nc(t){let e=t||(0,N.Gd)(),n=e.getScope();return n.getTransaction()}let nl=!1;function nd(){let t=nc();if(t){let e="internal_error";A.X&&R.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}function nf(t,e,n){let r;return x(e)?void 0!==t.sampled?(t.setAttribute(e5,Number(t.sampled)),t):("function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setAttribute(e5,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setAttribute(e5,Number(r))):(r=1,t.setAttribute(e5,r)),np(r))?r?(t.sampled=Math.random()<r,t.sampled)?(A.X&&R.kg.log(`[Tracing] starting ${t.op} transaction - ${(0,e1.XU)(t).description}`),t):(A.X&&R.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t):(A.X&&R.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),t.sampled=!1,t):(A.X&&R.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t):(t.sampled=!1,t)}function np(t){return(0,Z.i2)(t)||!("number"==typeof t||"boolean"==typeof t)?(A.X&&R.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):!(t<0)&&!(t>1)||(A.X&&R.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1)}function nh(){let t=this.getScope(),e=t.getSpan();return e?{"sentry-trace":(0,e1.Hb)(e)}:{}}function ng(t,e){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=t.instrumenter||"sentry";i!==o&&(A.X&&R.kg.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter. 22The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),t.sampled=!1);let a=new no(t,this);return(a=nf(a,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e})).isRecording()&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function nm(t,e,n,r,i,o,a,s=!1){let u=t.getClient(),c=u&&u.getOptions()||{},l=new nu(e,t,n,r,a,i,s);return(l=nf(l,c,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...o})).isRecording()&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",l),l}function nv(){let t=(0,N.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=ng),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=nh),nl||(nl=!0,tg(nd),ty(nd)))}nd.tag="sentry_tracingErrorCallback";var ny=n(7638);let n_="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nb=tr.n2;function nS(){nb.document?nb.document.addEventListener("visibilitychange",()=>{let t=nc();if(nb.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,e1.XU)(t);n_&&R.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):n_&&R.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}let nw=(t,e,n)=>{let r,i;return o=>{e.value>=0&&(o||n)&&((i=e.value-(r||0))||void 0===r)&&(r=e.value,e.delta=i,t(e))}},nE=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,nk=()=>{let t=nb.performance.timing,e=nb.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(let e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n},nO=()=>nb.__WEB_VITALS_POLYFILL__?nb.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||nk()):nb.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],nT=()=>{let t=nO();return t&&t.activationStart||0},nx=(t,e)=>{let n=nO(),r="navigate";return n&&(r=nb.document&&nb.document.prerendering||nT()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:nE(),navigationType:r}},nC=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let r=new PerformanceObserver(t=>{e(t.getEntries())});return r.observe({type:t,buffered:!0,...n}),r}}catch(t){}},nI=(t,e)=>{let n=r=>{("pagehide"===r.type||"hidden"===nb.document.visibilityState)&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};nb.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},nR=(t,e={})=>{let n;let r=nx("CLS",0),i=0,o=[],a=t=>{t.forEach(t=>{if(!t.hadRecentInput){let e=o[0],a=o[o.length-1];i&&0!==o.length&&t.startTime-a.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,o.push(t)):(i=t.value,o=[t]),i>r.value&&(r.value=i,r.entries=o,n&&n())}})},s=nC("layout-shift",a);if(s){n=nw(t,r,e.reportAllChanges);let i=()=>{a(s.takeRecords()),n(!0)};return nI(i),i}},nA=-1,nP=()=>{nb.document&&nb.document.visibilityState&&(nA="hidden"!==nb.document.visibilityState||nb.document.prerendering?1/0:0)},nN=()=>{nI(({timeStamp:t})=>{nA=t},!0)},nL=()=>(nA<0&&(nP(),nN()),{get firstHiddenTime(){return nA}}),nj=t=>{let e;let n=nL(),r=nx("FID"),i=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),e(!0))},o=t=>{t.forEach(i)},a=nC("first-input",o);e=nw(t,r),a&&nI(()=>{o(a.takeRecords()),a.disconnect()},!0)},nD=0,n$=1/0,nM=0,nU=t=>{t.forEach(t=>{t.interactionId&&(n$=Math.min(n$,t.interactionId),nD=(nM=Math.max(nM,t.interactionId))?(nM-n$)/7+1:0)})},nF=()=>c?nD:performance.interactionCount||0,nG=()=>{"interactionCount"in performance||c||(c=nC("event",nU,{type:"event",buffered:!0,durationThreshold:0}))},nq=()=>nF(),nH=[],nz={},nB=t=>{let e=nH[nH.length-1],n=nz[t.interactionId];if(n||nH.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);
22else{let e={id:t.interactionId,latency:t.duration,entries:[t]};nz[e.id]=e,nH.push(e)}nH.sort((t,e)=>e.latency-t.latency),nH.splice(10).forEach(t=>{delete nz[t.id]})}},nV=()=>{let t=Math.min(nH.length-1,Math.floor(nq()/50));return nH[t]},nW=(t,e)=>{let n;e=e||{},nG();let r=nx("INP"),i=t=>{t.forEach(t=>{if(t.interactionId&&nB(t),"first-input"===t.entryType){let e=!nH.some(e=>e.entries.some(e=>t.duration===e.duration&&t.startTime===e.startTime));e&&nB(t)}});let e=nV();e&&e.latency!==r.value&&(r.value=e.latency,r.entries=e.entries,n())},o=nC("event",i,{durationThreshold:e.durationThreshold||40});n=nw(t,r,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),nI(()=>{i(o.takeRecords()),r.value<0&&nq()>0&&(r.value=0,r.entries=[]),n(!0)}))},nK={},nZ=t=>{let e;let n=nL(),r=nx("LCP"),i=t=>{let i=t[t.length-1];if(i){let t=Math.max(i.startTime-nT(),0);t<n.firstHiddenTime&&(r.value=t,r.entries=[i],e())}},o=nC("largest-contentful-paint",i);if(o){e=nw(t,r);let n=()=>{nK[r.id]||(i(o.takeRecords()),o.disconnect(),nK[r.id]=!0,e(!0))};return["keydown","click"].forEach(t=>{nb.document&&addEventListener(t,n,{once:!0,capture:!0})}),nI(n,!0),n}},nJ=t=>{nb.document&&(nb.document.prerendering?addEventListener("prerenderingchange",()=>nJ(t),!0):"complete"!==nb.document.readyState?addEventListener("load",()=>nJ(t),!0):setTimeout(t,0))},nX=(t,e)=>{e=e||{};let n=nx("TTFB"),r=nw(t,n,e.reportAllChanges);nJ(()=>{let t=nO();if(t){if(n.value=Math.max(t.responseStart-nT(),0),n.value<0||n.value>performance.now())return;n.entries=[t],r(!0)}})},nY={},nQ={};function n0(t,e){return n9(t,e),nQ[t]||(function(t){let e={};"event"===t&&(e.durationThreshold=0),nC(t,e=>{n1(t,{entries:e})},e)}(t),nQ[t]=!0),n7(t,e)}function n1(t,e){let n=nY[t];if(n&&n.length)for(let r of n)try{r(e)}catch(e){n_&&R.kg.error(`Error while triggering instrumentation handler. 23Type: ${t} 24Name: ${(0,tu.$P)(r)} 25Error:`,e)}}function n2(){return nR(t=>{n1("cls",{metric:t}),l=t},{reportAllChanges:!0})}function n3(){return nj(t=>{n1("fid",{metric:t}),d=t})}function n5(){return nZ(t=>{n1("lcp",{metric:t}),f=t})}function n4(){return nX(t=>{n1("ttfb",{metric:t}),p=t})}function n8(){return nW(t=>{n1("inp",{metric:t}),h=t})}function n6(t,e,n,r,i=!1){let o;return n9(t,e),nQ[t]||(o=n(),nQ[t]=!0),r&&e({metric:r}),n7(t,e,i?o:void 0)}function n9(t,e){nY[t]=nY[t]||[],nY[t].push(e)}function n7(t,e,n){return()=>{n&&n();let r=nY[t];if(!r)return;let i=r.indexOf(e);-1!==i&&r.splice(i,1)}}function rt(t){return[{type:"span"},t]}function re(t){return"number"==typeof t&&isFinite(t)}function rn(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function rr(t){return t/1e3}function ri(){return nb&&nb.addEventListener&&nb.performance}let ro=0,ra={};function rs(){let t=ri();if(t&&eD.Z1){t.mark&&nb.performance.mark("sentry-tracing-init");let e=n6("fid",({metric:t})=>{let e=t.entries[t.entries.length-1];if(!e)return;let n=rr(eD.Z1),r=rr(e.startTime);n_&&R.kg.log("[Measurements] Adding FID"),ra.fid={value:t.value,unit:"millisecond"},ra["mark.fid"]={value:n+r,unit:"second"}},n3,d),n=function(t,e=!1){return n6("cls",t,n2,l,e)}(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(n_&&R.kg.log("[Measurements] Adding CLS"),ra.cls={value:t.value,unit:""},m=e)},!0),r=function(t,e=!1){return n6("lcp",t,n5,f,e)}(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(n_&&R.kg.log("[Measurements] Adding LCP"),ra.lcp={value:t.value,unit:"millisecond"},g=e)},!0),i=n6("ttfb",({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(n_&&R.kg.log("[Measurements] Adding TTFB"),ra.ttfb={value:t.value,unit:"millisecond"})},n4,p);return()=>{e(),n(),r(),i()}}return()=>void 0}function ru(){n0("longtask",({entries:t})=>{for(let e of t){let t=nc();if(!t)return;let n=rr(eD.Z1+e.startTime),r=rr(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})}function rc(){n0("event",({entries:t})=>{for(let e of t){let t=nc();if(!t)return;if("click"===e.name){let n=rr(eD.Z1+e.startTime),r=rr(e.duration),i={description:(0,tb.Rt)(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},o=(0,tb.iY)(e.target);o&&(i.attributes={"ui.component_name":o}),t.startChild(i)}}})}function rl(t,e){let n=ri();if(n&&eD.Z1){let n=n6("inp",({metric:n})=>{let r;if(void 0===n.value)return;let i=n.entries.find(t=>t.duration===n.value&&void 0!==rd[t.name]),o=(0,T.s3)();if(!i||!o)return;let a=rd[i.name],s=o.getOptions(),u=rr(eD.Z1+i.startTime),c=rr(n.value),l=void 0!==i.interactionId?t[i.interactionId]:void 0;if(void 0===l)return;let{routeName:d,parentContext:f,activeTransaction:p,user:h,replayId:g}=l,m=void 0!==h?h.email||h.id||h.ip_address:void 0,v=void 0!==p?p.getProfileId():void 0,y=new nt({startTimestamp:u,endTimestamp:u+c,op:`ui.interaction.${a}`,name:(0,tb.Rt)(i.target),attributes:{release:s.release,environment:s.environment,transaction:d,...void 0!==m&&""!==m?{user:m}:{},...void 0!==v?{profile_id:v}:{},...void 0!==g?{replay_id:g}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),_=!!x(s)&&(np(r=void 0!==f&&"function"==typeof s.tracesSampler?s.tracesSampler({transactionContext:f,name:f.name,parentSampled:f.parentSampled,attributes:{...f.data,...f.attributes},location:nb.location}):void 0!==f&&void 0!==f.sampled?f.sampled:void 0!==s.tracesSampleRate?s.tracesSampleRate:1)?!0===r?e:!1===r?0:r*e:(n_&&R.kg.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1));if(_&&Math.random()<_){let t=y?function(t,e){let n={sent_at:new Date().toISOString()};e&&(n.dsn=eb(e));let r=t.map(rt);return eE(n,r)}([y],o.getDsn()):void 0,e=o&&o.getTransport();e&&t&&e.send(t).then(null,t=>{n_&&R.kg.error("Error while sending interaction:",t)});return}},n8,h);return()=>{n()}}return()=>void 0}let rd={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function rf(t){let e=ri();if(!e||!nb.performance.getEntries||!eD.Z1)return;n_&&R.kg.log("[Tracing] Adding & adjusting spans using Performance API");let n=rr(eD.Z1),r=e.getEntries(),{op:i,start_timestamp:o}=(0,e1.XU)(t);
25if(r.slice(ro).forEach(e=>{let r=rr(e.startTime),i=rr(e.duration);if("navigation"!==t.op||!o||!(n+r<o))switch(e.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{rp(t,e,r,n)}),rp(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),rp(t,e,"fetch",n,"cache","domainLookupStart"),rp(t,e,"domainLookup",n,"DNS"),e.responseEnd&&(rn(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+rr(e.requestStart),endTimestamp:n+rr(e.responseEnd)}),rn(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+rr(e.responseStart),endTimestamp:n+rr(e.responseEnd)}));break;case"mark":case"paint":case"measure":{(function(t,e,n,r,i){let o=i+n;rn(t,{description:e.name,endTimestamp:o+r,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})})(t,e,r,i,n);let o=nL(),a=e.startTime<o.firstHiddenTime;"first-paint"===e.name&&a&&(n_&&R.kg.log("[Measurements] Adding FP"),ra.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&a&&(n_&&R.kg.log("[Measurements] Adding FCP"),ra.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":(function(t,e,n,r,i,o){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;let a=et(n),s={};rh(s,e,"transferSize","http.response_transfer_size"),rh(s,e,"encodedBodySize","http.response_content_length"),rh(s,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(s["resource.render_blocking_status"]=e.renderBlockingStatus),a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop()),a.host&&(s["server.address"]=a.host),s["url.same_origin"]=n.includes(nb.location.origin);let u=o+r;rn(t,{description:n.replace(nb.location.origin,""),endTimestamp:u+i,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:s})})(t,e,e.name,r,i,n)}}),ro=Math.max(r.length-1,0),function(t){let e=nb.navigator;if(!e)return;let n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),re(n.rtt)&&(ra["connection.rtt"]={value:n.rtt,unit:"millisecond"})),re(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),re(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===i){(function(t){let e=nO();if(!e)return;let{responseStart:n,requestStart:r}=e;r<=n&&(n_&&R.kg.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(ra),["fcp","fp","lcp"].forEach(t=>{if(!ra[t]||!o||n>=o)return;let e=ra[t].value,r=n+rr(e),i=Math.abs((r-o)*1e3);n_&&R.kg.log(`[Measurements] Normalized ${t} from ${e} to ${i} (${i-e})`),ra[t].value=i});let e=ra["mark.fid"];e&&ra.fid&&(rn(t,{description:"first input delay",endTimestamp:e.value+rr(ra.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:e.value}),delete ra["mark.fid"]),"fcp"in ra||delete ra.cls,Object.keys(ra).forEach(t=>{!function(t,e,n){let r=nc();r&&r.setMeasurement(t,e,n)}(t,ra[t].value,ra[t].unit)}),g&&(n_&&R.kg.log("[Measurements] Adding LCP Data"),g.element&&t.setTag("lcp.element",(0,tb.Rt)(g.element)),g.id&&t.setTag("lcp.id",g.id),g.url&&t.setTag("lcp.url",g.url.trim().slice(0,200)),t.setTag("lcp.size",g.size)),m&&m.sources&&(n_&&R.kg.log("[Measurements] Adding CLS Data"),m.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,(0,tb.Rt)(e.node))))}g=void 0,m=void 0,ra={}}function rp(t,e,n,r,i,o){let a=o?e[o]:e[`${n}End`],s=e[`${n}Start`];s&&a&&rn(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+rr(s),endTimestamp:r+rr(a)})}function rh(t,e,n,r){let i=e[n];null!=i&&i<2147483647&&(t[r]=i)}var rg=n(9181);let rm=["localhost",/^\/(?!\/)/],rv={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:rm,tracePropagationTargets:rm};function ry(t){let{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:rv.traceFetch,traceXHR:rv.traceXHR,...t},s="function"==typeof o?o:t=>!0,u=t=>(0,q.U0)(t,r||i||rm),c={};e&&t1(t=>{let e=function(t,e,n,r,i="auto.http.browser"){if(!x()||!t.fetchData)return;let o=e(t.fetchData.url);if(t.endTimestamp&&o){let e=t.fetchData.__span;if(!e)return;let n=r[e];n&&(function(t,e){if(e.response){e9(t,e.response.status);let n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){let e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus("internal_error");t.end()}(n,t),delete r[e]);return}let a=(0,T.nZ)(),s=(0,T.s3)(),{method:u,url:c}=t.fetchData,l=function(t){try{let e=new URL(t);return e.href}catch(t){return}}(c),d=l?et(l).host:void 0,f=o?ne({name:`${u} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":u,"http.url":l,"server.address":d,[e8]:i},op:"http.client"}):void 0;if(f&&(t.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f),n(t.fetchData.url)&&s){let e=t.args[0];t.args[1]=t.args[1]||{};let n=t.args[1];n.headers=function(t,e,n,r,i){let o=i||n.getSpan(),a=(0,N.aF)(),{traceId:s,spanId:u,sampled:c,dsc:l}={...a.getPropagationContext(),...n.getPropagationContext()},d=o?(0,e1.Hb)(o):(0,ny.$p)(s,u,c),f=(0,rg.IQ)(l||(o?(0,eR.j)(o):(0,eR._)(s,e,n))),p=r.headers||("undefined"!=typeof Request&&(0,Z.V9)(t,Request)?t.headers:void 0);if(!p)return{"sentry-trace":d,baggage:f};if("undefined"!=typeof Headers&&(0,Z.V9)(p,Headers)){let t=new Headers(p);return t.append("sentry-trace",d),f&&t.append(rg.bU,f),t}if(Array.isArray(p)){let t=[...p,["sentry-trace",d]];return f&&t.push([rg.bU,f]),t}{let t="baggage"in p?p.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),f&&e.push(f),{...p,"sentry-trace":d,baggage:e.length>0?e.join(","):void 0}}}(e,s,a,n,f)}return f}(t,s,u,c);if(e){let n=rS(t.fetchData.url),r=n?et(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}a&&e&&r_(e)}),n&&tJ(t=>{let e=function(t,e,n,r){let i=t.xhr,o=i&&i[tZ];if(!x()||!i||i.__sentry_own_request__||!o)return;let a=e(o.url);if(t.endTimestamp&&a){let t=i.__sentry_xhr_span_id__;if(!t)return;let e=r[t];e&&void 0!==o.status_code&&(e9(e,o.status_code),e.end(),delete r[t]);return}let s=(0,T.nZ)(),u=(0,N.aF)(),c=rS(o.url),l=c?et(c).host:void 0,d=a?ne({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":c,url:o.url,"server.address":l,[e8]:"auto.http.browser"},op:"http.client"}):void 0;d&&(i.__sentry_xhr_span_id__=d.spanContext().spanId,r[i.__sentry_xhr_span_id__]=d);let f=(0,T.s3)();if(i.setRequestHeader&&n(o.url)&&f){let{traceId:t,spanId:e,sampled:n,dsc:r}={...u.getPropagationContext(),...s.getPropagationContext()},o=d?(0,e1.Hb)(d):(0,ny.$p)(t,e,n),a=(0,rg.IQ)(r||(d?(0,eR.j)(d):(0,eR._)(t,f,s)));(function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(rg.bU,n)}catch(t){}})(i,o,a)}return d}(t,s,u,c);a&&e&&r_(e)})}function r_(t){let{url:e}=(0,e1.XU)(t).data||{};if(!e||"string"!=typeof e)return;let n=n0("resource",({entries:r})=>{r.forEach(r=>{if("resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(e)){let e=function(t){let{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(let i of t){if("/"===i){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}(t.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",e]),eD.Z1)?[...r,["http.request.redirect_start",rb(t.redirectStart)],["http.request.fetch_start",rb(t.fetchStart)],["http.request.domain_lookup_start",rb(t.domainLookupStart)],["http.request.domain_lookup_end",rb(t.domainLookupEnd)],["http.request.connect_start",rb(t.connectStart)],["http.request.secure_connection_start",rb(t.secureConnectionStart)],["http.request.connection_end",rb(t.connectEnd)],["http.request.request_start",rb(t.requestStart)],["http.request.response_start",rb(t.responseStart)],["http.request.response_end",rb(t.responseEnd)]]:r}(r);
25e.forEach(e=>t.setAttribute(...e)),setTimeout(n)}})})}function rb(t=0){return((eD.Z1||performance.timeOrigin)+t)/1e3}function rS(t){try{let e=new URL(t,nb.location.origin);return e.href}catch(t){return}}let rw={...na,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){let r;if(!nb||!nb.location){n_&&R.kg.warn("Could not initialize routing instrumentation due to invalid location");return}let i=nb.location.href;e&&(r=t({name:nb.location.pathname,startTimestamp:eD.Z1?eD.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&t6(({to:e,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(e)){i=void 0;return}n!==e&&(i=void 0,r&&(n_&&R.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=t({name:nb.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rv};class rE{constructor(t){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,nv(),n_&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...rw,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=rs(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&rl(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&ru(),this.options._experiments.enableInteractions&&rc(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,e){this._getCurrentHub=e;let n=e(),r=n.getClient(),i=r&&r.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:a,startTransactionOnPageLoad:s,markBackgroundTransactions:u,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:f,_experiments:p}=this.options,h=i&&i.tracePropagationTargets,g=h||this.options.tracePropagationTargets;n_&&this._hasSetTracePropagationTargets&&h&&R.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),o(t=>{let n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n},s,a),u&&nS(),p.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),ry({traceFetch:c,traceXHR:l,tracePropagationTargets:g,shouldCreateSpanForRequest:d,enableHTTPTimings:f})}_createRouteTransaction(t){let e;if(!this._getCurrentHub){n_&&R.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}let n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:o,heartbeatInterval:a}=this.options,s="pageload"===t.op;if(s){let n=s?rk("sentry-trace"):"",r=s?rk("baggage"):void 0,{traceId:i,dsc:o,parentSpanId:a,sampled:u}=(0,ny.pT)(n,r);e={traceId:i,parentSpanId:a,parentSampled:u,...t,metadata:{...t.metadata,dynamicSamplingContext:o},trimEnd:!0}}else e={trimEnd:!0,...t};let u="function"==typeof r?r(e):e,c=void 0===u?{...e,sampled:!1}:u;c.metadata=c.name!==e.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRoute.name=c.name,this._latestRoute.context=c,!1===c.sampled&&n_&&R.kg.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),n_&&R.kg.log(`[Tracing] Starting ${c.op} transaction on scope`);let{location:l}=nb,d=nm(n,c,i,o,!0,{location:l},a,s);return s&&nb.document&&(nb.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nb.document.readyState)&&d.sendAutoFinishSignal()}),["interactive","complete"].includes(nb.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback(t=>{this._collectWebVitals(),rf(t)}),d}_registerInteractionListener(){let t;let e=()=>{let{idleTimeout:e,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",o=nc();if(o&&o.op&&["navigation","pageload"].includes(o.op)){n_&&R.kg.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){n_&&R.kg.warn(`[Tracing] Did not create ${i}
25 transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){n_&&R.kg.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let a=this._getCurrentHub(),{location:s}=nb,u={name:this._latestRoute.name,op:i,trimEnd:!0,data:{[e3]:this._latestRoute.context?function(t){let e=t.attributes&&t.attributes[e3],n=t.data&&t.data[e3],r=t.metadata&&t.metadata.source;return e||n||r}(this._latestRoute.context):"url"}};t=nm(a,u,e,n,!0,{location:s},r)};["click"].forEach(t=>{nb.document&&addEventListener(t,e,{once:!1,capture:!0})})}_registerInpInteractionListener(){let t=({entries:t})=>{let e=(0,T.s3)(),n=void 0!==e&&void 0!==e.getIntegrationByName?e.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,i=nc(),o=(0,T.nZ)(),a=void 0!==o?o.getUser():void 0;t.forEach(t=>{if("duration"in t){let e=t.interactionId;if(void 0===e)return;let n=this._interactionIdToRouteNameMapping[e],o=t.duration,s=t.startTime,u=Object.keys(this._interactionIdToRouteNameMapping),c=u.length>0?u.reduce((t,e)=>this._interactionIdToRouteNameMapping[t].duration<this._interactionIdToRouteNameMapping[e].duration?t:e):void 0;if("first-input"===t.entryType){let t=u.map(t=>this._interactionIdToRouteNameMapping[t]).some(t=>t.duration===o&&t.startTime===s);if(t)return}if(e){if(n)n.duration=Math.max(n.duration,o);else if(u.length<10||void 0===c||o>this._interactionIdToRouteNameMapping[c].duration){let t=this._latestRoute.name,n=this._latestRoute.context;t&&n&&(c&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[c],this._interactionIdToRouteNameMapping[e]={routeName:t,duration:o,parentContext:n,user:a,activeTransaction:i,replayId:r,startTime:s})}}}})};n0("event",t),n0("first-input",t)}}function rk(t){let e=(0,tb.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}let rO={...na,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rv},rT=(t={})=>{let e=!!n_&&!!(t.tracePropagationTargets||t.tracingOrigins);nv(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);let n={...rO,...t},r=rs(),i={};n.enableInp&&rl(i,n.interactionsSampleRate),n.enableLongTask&&ru(),n._experiments.enableInteractions&&rc();let o={name:void 0,context:void 0};function a(t){let e;let i=(0,N.Gd)(),{beforeStartSpan:a,idleTimeout:s,finalTimeout:u,heartbeatInterval:c}=n,l="pageload"===t.op;if(l){let n=l?rI("sentry-trace"):"",r=l?rI("baggage"):void 0,{traceId:i,dsc:o,parentSpanId:a,sampled:s}=(0,ny.pT)(n,r);e={traceId:i,parentSpanId:a,parentSampled:s,...t,metadata:{...t.metadata,dynamicSamplingContext:o},trimEnd:!0}}else e={trimEnd:!0,...t};let d=a?a(e):e;d.metadata=d.name!==e.name?{...d.metadata,source:"custom"}:d.metadata,o.name=d.name,o.context=d,!1===d.sampled&&n_&&R.kg.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),n_&&R.kg.log(`[Tracing] Starting ${d.op} transaction on scope`);let{location:f}=nb,p=nm(i,d,s,u,!0,{location:f},c,l);return l&&nb.document&&(nb.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nb.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(nb.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(t=>{r(),rf(t)}),p}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(t){let r;let s=t.getOptions(),{markBackgroundSpan:u,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:f,_experiments:p}=n,h=s&&s.tracePropagationTargets,g=h||n.tracePropagationTargets;n_&&e&&h&&R.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let m=nb.location&&nb.location.href;if(t.on&&(t.on("startNavigationSpan",t=>{r&&(n_&&R.kg.log(`[Tracing] Finishing current transaction with op: ${(0,e1.XU)(r).op}`),r.end()),r=a({op:"navigation",...t})}),t.on("startPageLoadSpan",t=>{r&&(n_&&R.kg.log(`[Tracing] Finishing current transaction with op: ${(0,e1.XU)(r).op}`),r.end()),r=a({op:"pageload",...t})})),n.instrumentPageLoad&&t.emit&&nb.location){let e={name:nb.location.pathname,startTimestamp:eD.Z1?eD.Z1/1e3:void 0,origin:"auto.pageload.browser",attributes:{[e3]:"url"}};rx(t,e)}n.instrumentNavigation&&t.emit&&nb.location&&t6(({to:e,from:n})=>{if(void 0===n&&m&&-1!==m.indexOf(e)){m=void 0;return}if(n!==e){m=void 0;let e={name:nb.location.pathname,origin:"auto.navigation.browser",attributes:{[e3]:"url"}};rC(t,e)}}),u&&nS(),p.enableInteractions&&function(t,e){let n;let r=()=>{let{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}
25=t,a="ui.action.click",s=nc();if(s&&s.op&&["navigation","pageload"].includes(s.op)){n_&&R.kg.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!e.name){n_&&R.kg.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}let{location:u}=nb,c={name:e.name,op:a,trimEnd:!0,data:{[e3]:e.context?function(t){let e=t.attributes&&t.attributes[e3],n=t.data&&t.data[e3],r=t.metadata&&t.metadata.source;return e||n||r}(e.context):"url"}};n=nm((0,N.Gd)(),c,r,i,!0,{location:u},o)};["click"].forEach(t=>{nb.document&&addEventListener(t,r,{once:!1,capture:!0})})}(n,o),n.enableInp&&function(t,e){let n=({entries:n})=>{let r=(0,T.s3)(),i=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,o=void 0!==i?i.getReplayId():void 0,a=nc(),s=(0,T.nZ)(),u=void 0!==s?s.getUser():void 0;n.forEach(n=>{if("duration"in n){let r=n.interactionId;if(void 0===r)return;let i=t[r],s=n.duration,c=n.startTime,l=Object.keys(t),d=l.length>0?l.reduce((e,n)=>t[e].duration<t[n].duration?e:n):void 0;if("first-input"===n.entryType){let e=l.map(e=>t[e]).some(t=>t.duration===s&&t.startTime===c);if(e)return}if(r){if(i)i.duration=Math.max(i.duration,s);else if(l.length<10||void 0===d||s>t[d].duration){let n=e.name,i=e.context;n&&i&&(d&&Object.keys(t).length>=10&&delete t[d],t[r]={routeName:n,duration:s,parentContext:i,user:u,activeTransaction:a,replayId:o,startTime:c})}}}})};n0("event",n),n0("first-input",n)}(i,o),ry({traceFetch:c,traceXHR:l,tracePropagationTargets:g,shouldCreateSpanForRequest:d,enableHTTPTimings:f})},options:n}};function rx(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);let n=nn(),r=n&&(0,e1.XU)(n).op;return"pageload"===r?n:void 0}function rC(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);let n=nn(),r=n&&(0,e1.XU)(n).op;return"navigation"===r?n:void 0}function rI(t){let e=(0,tb.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}let rR={"routing.instrumentation":"next-app-router"};var rA=n(1163),rP=n.n(rA);let rN="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rL={"routing.instrumentation":"next-pages-router"},rj=(0,T.s3)();function rD(t,e=!0,n=!0,r,i){let o=!ti.document.getElementById("__NEXT_DATA__");o?function(t,e=!0,n=!0,r,i){let o;let a=ti.location.pathname;if(e){let e={name:a,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:rR,startTimestamp:eD.Z1?eD.Z1/1e3:void 0,metadata:{source:"url"}};o=t(e),r(e)}n&&t1(e=>{if(void 0!==e.endTimestamp||"GET"!==e.fetchData.method)return;let n=function(t){if(!t[0]||"object"!=typeof t[0]||void 0===t[0].searchParams||!t[1]||"object"!=typeof t[1]||!("headers"in t[1]))return null;try{let e=t[0],n=t[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:e.pathname}}catch(t){return null}}(e.args);if(null===n)return;let r=n.targetPathname,s={...rR,from:a};a=r,o&&o.end();let u={name:r,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:s,metadata:{source:"url"}};t(u),i(u)})}(t,e,n,r||(()=>void 0),i||(()=>void 0)):function(t,e=!0,n=!0,r,i){let{route:o,params:a,sentryTrace:s,baggage:u}=function(){let t;let e=ti.document.getElementById("__NEXT_DATA__");if(e&&e.innerHTML)try{t=JSON.parse(e.innerHTML)}catch(t){rN&&R.kg.warn("Could not extract __NEXT_DATA__")}if(!t)return{};let n={},{page:r,query:i,props:o}=t;return n.route=r,n.params=i,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),{traceparentData:c,dynamicSamplingContext:l,propagationContext:d}=(0,ny.KA)(s,u);if((0,T.nZ)().setPropagationContext(d),_=o||ti.location.pathname,e){let e={name:_,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:rL,startTimestamp:eD.Z1?eD.Z1/1e3:void 0,...a&&rj&&rj.getOptions().sendDefaultPii&&{data:a},...c,metadata:{source:o?"route":"url",dynamicSamplingContext:c&&!l?{}:l}};y=t(e),r(e)}n&&rP().events.on("routeChangeStart",e=>{let n,r;
25let o=e.split(/[\?#]/,1)[0],a=function(t){let e=(ti.__BUILD_MANIFEST||{}).sortedPages;if(e)return e.find(e=>{let n=function(t){let e=t.split("/"),n="";e[e.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(e.pop(),n="(?:/(.+?))?");let r=e.map(t=>t.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(e);return t.match(n)})}(o);a?(n=a,r="route"):(n=o,r="url");let s={...rL,from:_};_=n,y&&y.end();let u={name:n,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:s,metadata:{source:r}},c=t(u);if(i(u),c){let t=c.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),e=()=>{t.end(),rP().events.off("routeChangeComplete",e)};rP().events.on("routeChangeComplete",e)}})}(t,e,n,r||(()=>void 0),i||(()=>void 0))}class r$ extends rE{constructor(t){super({tracingOrigins:[...rv.tracingOrigins,/^(api\/)/],routingInstrumentation:rD,...t})}}function rM(t){let e=rT({tracingOrigins:[...rv.tracingOrigins,/^(api\/)/],...t,instrumentNavigation:!1,instrumentPageLoad:!1}),n={...e.options,instrumentPageLoad:!0,instrumentNavigation:!0,...t};return{...e,options:n,afterAllSetup(t){let r=e=>{rx(t,e)},i=e=>{rC(t,e)};rD(()=>void 0,!1,n.instrumentNavigation,r,i),e.afterAllSetup(t),rD(()=>void 0,n.instrumentPageLoad,!1,r,i)}}}let rU=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function rF(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){let i=r>=0?t[r]:"/";i&&(e=`${i}/${e}`,n="/"===i.charAt(0))}return e=(function(t,e){let n=0;for(let e=t.length-1;e>=0;e--){let r=t[e];"."===r?t.splice(e,1):".."===r?(t.splice(e,1),n++):n&&(t.splice(e,1),n--)}if(e)for(;n--;n)t.unshift("..");return t})(e.split("/").filter(t=>!!t),!n).join("/"),(n?"/":"")+e||"."}function rG(t){let e=0;for(;e<t.length&&""===t[e];e++);let n=t.length-1;for(;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}let rq="RewriteFrames",rH=(t={})=>{let e=t.root,n=t.prefix||"app:///",r=t.iteratee||(t=>{if(!t.filename)return t;let r=/^[a-zA-Z]:\\/.test(t.filename)||t.filename.includes("\\")&&!t.filename.includes("/"),i=/^\//.test(t.filename);if(r||i){var o;let i;let a=r?t.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):t.filename,s=e?function(t,e){t=rF(t).slice(1),e=rF(e).slice(1);let n=rG(t.split("/")),r=rG(e.split("/")),i=Math.min(n.length,r.length),o=i;for(let t=0;t<i;t++)if(n[t]!==r[t]){o=t;break}let a=[];for(let t=o;t<n.length;t++)a.push("..");return(a=a.concat(r.slice(o))).join("/")}(e,a):(i=function(t){let e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=rU.exec(e);return n?n.slice(1):[]}(a)[2],o&&i.slice(-1*o.length)===o&&(i=i.slice(0,i.length-o.length)),i);t.filename=`${n}${s}`}return t});return{name:rq,setupOnce(){},processEvent(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=function(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>{var e;return{...t,...t.stacktrace&&{stacktrace:{...e=t.stacktrace,frames:e&&e.frames&&e.frames.map(t=>r(t))}}}})}}}catch(e){return t}}(e)),e}}};$(rq,rH);let rz=tr.n2,rB=t=>{let e=rz.__rewriteFramesAssetPrefixPath__||"";return rH({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=function(t){let e;let n=t[0],r=1;for(;r<t.length;){let i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...t)=>n.call(e,...t)),e=void 0)}return n}([t,"access",t=>t.filename,"optionalAccess",t=>t.replace,"call",t=>t(n,"app://"),"access",t=>t.replace,"call",t=>t(e,"")])}catch(t){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t},...t})},rV=tr.n2;function rW(t){let e=t.find(t=>"BrowserTracing"===t.name);if(!e)return t;if(e.afterAllSetup&&e.options){let{options:n}=e;t[t.indexOf(e)]=rM(n)}if(!(e instanceof r$)){let n=e.options;delete n.routingInstrumentation,delete n.tracingOrigins,t[t.indexOf(e)]=new r$(n)}return t}({...ey});var rK=n(5866),rZ=n.n(rK),rJ=window;rJ.__sentryRewritesTunnelPath__=void 0,rJ.SENTRY_RELEASE={id:"prod-20260916104758"},rJ.__sentryBasePath=void 0,rJ.__rewriteFramesAssetPrefixPath__="/b";var rX="prod",rY={prod:"https://[email protected]/10",uat:"https://[email protected]/4"};!function(t){let e={environment:function(t){let e=t?e0.env.NEXT_PUBLIC_VERCEL_ENV:e0.env.VERCEL_ENV;return e?`vercel-${e}`:void 0}(!0)||"production",defaultIntegrations:function(t){let e=[...eQ,rB()];return("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&x(t)&&e.push(rM()),e}(t),...t};(function(t){let{integrations:e}=t;e&&(Array.isArray(e)?t.integrations=rW(e):t.integrations=t=>{let n=e(t);return rW(n)})})(e),function(t){let e=rV.__sentryRewritesTunnelPath__;if(e&&t.dsn){let n=eS(t.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],a=`${e}?o=${i}&p=${n.projectId}`;o&&(a+=`&r=${o}`),t.tunnel=a,rN&&R.kg.info(`Tunneling events to "${a}"`)}else rN&&R.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(e),O(e,"nextjs",["nextjs","react"]),function(t){let e={...t};O(e,"react"),function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=[...eQ]),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),ti.SENTRY_RELEASE&&ti.SENTRY_RELEASE.id&&(t.release=ti.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);let e={...t,stackParser:(0,tu.Sq)(t.stackParser||eW),integrations:function(t){let e;let n=t.defaultIntegrations||[],r=t.integrations;
25n.forEach(t=>{t.isDefaultInstance=!0}),e=Array.isArray(r)?[...n,...r]:"function"==typeof r?(0,I.lE)(r(n)):n;let i=function(t){let e={};return t.forEach(t=>{let{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.keys(e).map(t=>e[t])}(e),o=function(t,e){for(let n=0;n<t.length;n++)if(!0===e(t[n]))return n;return -1}(i,t=>"Debug"===t.name);if(-1!==o){let[t]=i.splice(o,1);i.push(t)}return i}(t),transport:t.transport||(tQ()?eX:eY)};(function(t,e){!0===e.debug&&(A.X?R.kg.enable():(0,R.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let n=(0,T.nZ)();n.update(e.initialScope);let r=new t(e);(function(t){let e=(0,N.Gd)(),n=e.getStackTop();n.client=t,n.scope.setClient(t)})(r),r.init?r.init():r.setupIntegrations&&r.setupIntegrations()})(e$,e),t.autoSessionTracking&&function(){if(void 0===ti.document){tS&&R.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,T.yj)({ignoreDuration:!0}),(0,T.cg)(),t6(({from:t,to:e})=>{void 0!==t&&t!==e&&((0,T.yj)({ignoreDuration:!0}),(0,T.cg)())})}()}(e)}(e);let n=(0,T.nZ)();n.setTag("runtime","browser");let r=t=>"transaction"===t.type&&"/404"===t.transaction?null:t;r.id="NextClient404Filter",n.addEventProcessor(r)}({dsn:rY[rX]||rY.uat,tracesSampleRate:1,debug:!1,environment:rX,release:"".concat(rX,"-").concat(rZ()||"1.0.0"),beforeSend:function(t){if(t.exception){var e,n,r=null===(e=t.exception.values)||void 0===e?void 0:e[0];if((null==r?void 0:r.type)==="ChunkLoadError"||(null==r?void 0:r.type)==="ResizeObserver loop limit exceeded"||null!=r&&null!==(n=r.value)&&void 0!==n&&n.includes("Non-Error promise rejection"))return null}return t},initialScope:{tags:{component:"client"}}})},7285:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AmpStateContext=void 0;var r=(0,n(2648).Z)(n(7294)).default.createContext({});e.AmpStateContext=r},354:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInAmpMode=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ampFirst,n=t.hybrid,r=t.hasQuery;return void 0!==e&&e||void 0!==n&&n&&void 0!==r&&r}},6505:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHead=l,e.default=void 0;var r=n(6495).Z,i=n(2648).Z,o=(0,n(1598).Z)(n(7294)),a=i(n(148)),s=n(7285),u=n(523),c=n(354);function l(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[o.default.createElement("meta",{charSet:"utf-8"})];return t||e.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),e}function d(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===o.default.Fragment?t.concat(o.default.Children.toArray(e.props.children).reduce(function(t,e){return"string"==typeof e||"number"==typeof e?t:t.concat(e)},[])):t.concat(e)}n(2783);var f=["name","httpEquiv","charSet","itemProp"];function p(t,e){var n,i,a,s,u=e.inAmpMode;return t.reduce(d,[]).reverse().concat(l(u).reverse()).filter((n=new Set,i=new Set,a=new Set,s={},function(t){var e=!0,r=!1;if(t.key&&"number"!=typeof t.key&&t.key.indexOf("$")>0){r=!0;var o=t.key.slice(t.key.indexOf("$")+1);n.has(o)?e=!1:n.add(o)}switch(t.type){case"title":case"base":i.has(t.type)?e=!1:i.add(t.type);break;case"meta":for(var u=0,c=f.length;u<c;u++){var l=f[u];if(t.props.hasOwnProperty(l)){if("charSet"===l)a.has(l)?e=!1:a.add(l);else{var d=t.props[l],p=s[l]||new Set;("name"!==l||!r)&&p.has(d)?e=!1:(p.add(d),s[l]=p)}}}}return e})).reverse().map(function(t,e){var n=t.key||e;if(!u&&"link"===t.type&&t.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(function(e){return t.props.href.startsWith(e)})){var i=r({},t.props||{});return i["data-href"]=i.href,i.href=void 0,i["data-optimized-fonts"]=!0,o.default.cloneElement(t,i)}return o.default.cloneElement(t,{key:n})})}e.default=function(t){var e=t.children,n=o.useContext(s.AmpStateContext),r=o.useContext(u.HeadManagerContext);return o.default.createElement(a.default,{reduceComponentsToState:p,headManager:r,inAmpMode:c.isInAmpMode(n)},e)},("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
25dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},148:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n=t.headManager,s=t.reduceComponentsToState;function u(){if(n&&n.mountedInstances){var e=r.Children.toArray(Array.from(n.mountedInstances).filter(Boolean));n.updateHead(s(e,t))}}return i&&(null==n||null==(e=n.mountedInstances)||e.add(t.children),u()),o(function(){var e;return null==n||null==(e=n.mountedInstances)||e.add(t.children),function(){var e;null==n||null==(e=n.mountedInstances)||e.delete(t.children)}}),o(function(){return n&&(n._pendingUpdate=u),function(){n&&(n._pendingUpdate=u)}}),a(function(){return n&&n._pendingUpdate&&(n._pendingUpdate(),n._pendingUpdate=null),function(){n&&n._pendingUpdate&&(n._pendingUpdate(),n._pendingUpdate=null)}}),null};var r=(0,n(1598).Z)(n(7294)),i=!1,o=r.useLayoutEffect,a=i?function(){}:r.useEffect},2783:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.warnOnce=void 0,e.warnOnce=function(t){}},8347:function(t,e,n){"use strict";let r;n.r(e),n.d(e,{default:function(){return t_}});var i=n(9499),o=n(7294),a=n(7875);n(5700);var s=n(2161),u=n(819),c=n(81),l=n(2379),d=n(5651);class f extends d.F{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||u._,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,r=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let n=(0,s.oE)(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),n}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let n=this.promise;return null==(e=this.retryer)||e.cancel(t),n?n.then(s.ZT).catch(s.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,s.Kp)(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var n,r,i,o;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let a=(0,s.G9)(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>
25{if(a)return this.abortSignalConsumed=!0,a.signal}})};c(u);let d=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),f={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};c(f),null==(n=this.options.behavior)||n.onFetch(f),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=f.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(o=f.fetchOptions)?void 0:o.meta});let p=t=>{if((0,l.DV)(t)&&t.silent||this.dispatch({type:"error",error:t}),!(0,l.DV)(t)){var e,n,r,i;null==(e=(n=this.cache.config).onError)||e.call(n,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,l.Mz)({fn:f.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:t=>{var e,n,r,i;if(void 0===t){p(Error(this.queryHash+" data is undefined"));return}this.setData(t),null==(e=(n=this.cache.config).onSuccess)||e.call(n,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){this.state=(e=>{var n,r;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=t.meta)?n:null,fetchStatus:(0,l.Kw)(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=t.error;if((0,l.DV)(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),c.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}var p=n(3989);class h extends p.l{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,n){var r;let i=e.queryKey,o=null!=(r=e.queryHash)?r:(0,s.Rm)(i,e),a=this.get(o);return a||(a=new f({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){c.V.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[n]=(0,s.I6)(t,e);return void 0===n.exact&&(n.exact=!0),this.queries.find(t=>(0,s._x)(n,t))}findAll(t,e){let[n]=(0,s.I6)(t,e);return Object.keys(n).length>0?this.queries.filter(t=>(0,s._x)(n,t)):this.queries}notify(t){c.V.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){c.V.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){c.V.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}var g=n(9886);class m extends p.l{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,n){let r=new g.m({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:n,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(r),r}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){c.V.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>(0,s.X7)(t,e))}findAll(t){return this.mutations.filter(e=>(0,s.X7)(t,e))}notify(t){c.V.batch(()=>
25{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return c.V.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(s.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var v=n(5761),y=n(6474);function _(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}class b{constructor(t={}){this.queryCache=t.queryCache||new h,this.mutationCache=t.mutationCache||new m,this.logger=t.logger||u._,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=v.j.subscribe(()=>{v.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=y.N.subscribe(()=>{y.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[n]=(0,s.I6)(t,e);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state.data}ensureQueryData(t,e,n){let r=(0,s._v)(t,e,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>{let n=e.data;return[t,n]})}setQueryData(t,e,n){let r=this.queryCache.find(t),i=null==r?void 0:r.state.data,o=(0,s.SE)(e,i);if(void 0===o)return;let a=(0,s._v)(t),u=this.defaultQueryOptions(a);return this.queryCache.build(this,u).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return c.V.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,n)]))}getQueryState(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state}removeQueries(t,e){let[n]=(0,s.I6)(t,e),r=this.queryCache;c.V.batch(()=>{r.findAll(n).forEach(t=>{r.remove(t)})})}resetQueries(t,e,n){let[r,i]=(0,s.I6)(t,e,n),o=this.queryCache,a={type:"active",...r};return c.V.batch(()=>(o.findAll(r).forEach(t=>{t.reset()}),this.refetchQueries(a,i)))}cancelQueries(t,e,n){let[r,i={}]=(0,s.I6)(t,e,n);void 0===i.revert&&(i.revert=!0);let o=c.V.batch(()=>this.queryCache.findAll(r).map(t=>t.cancel(i)));return Promise.all(o).then(s.ZT).catch(s.ZT)}invalidateQueries(t,e,n){let[r,i]=(0,s.I6)(t,e,n);return c.V.batch(()=>{var t,e;if(this.queryCache.findAll(r).forEach(t=>{t.invalidate()}),"none"===r.refetchType)return Promise.resolve();let n={...r,type:null!=(t=null!=(e=r.refetchType)?e:r.type)?t:"active"};return this.refetchQueries(n,i)})}refetchQueries(t,e,n){let[r,i]=(0,s.I6)(t,e,n),o=c.V.batch(()=>this.queryCache.findAll(r).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...i,cancelRefetch:null==(e=null==i?void 0:i.cancelRefetch)||e,meta:{refetchPage:r.refetchPage}})})),a=Promise.all(o).then(s.ZT);return null!=i&&i.throwOnError||(a=a.catch(s.ZT)),a}fetchQuery(t,e,n){let r=(0,s._v)(t,e,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,e,n){return this.fetchQuery(t,e,n).then(s.ZT).catch(s.ZT)}fetchInfiniteQuery(t,e,n){let r=(0,s._v)(t,e,n);return r.behavior={onFetch:t=>{t.fetchFn=()=>{var e,n,r,i,o,a,s;let u;let c=null==(e=t.fetchOptions)?void 0:null==(n=e.meta)?void 0:n.refetchPage,l=null==(r=t.fetchOptions)?void 0:null==(i=r.meta)?void 0:i.fetchMore,d=null==l?void 0:l.pageParam,f=(null==l?void 0:l.direction)==="forward",p=(null==l?void 0:l.direction)==="backward",h=(null==(o=t.state.data)?void 0:o.pages)||[],g=(null==(a=t.state.data)?void 0:a.pageParams)||[],m=g,v=!1,y=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{var e,n;return null!=(e=t.signal)&&e.aborted?v=!0:null==(n=t.signal)||n.addEventListener("abort",()=>{v=!0}),t.signal}})},b=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),S=(t,e,n,r)=>(m=r?[e,...m]:[...m,e],r?[n,...t]:[...t,n]),w=(e,n,r,i)=>{if(v)return Promise.reject("Cancelled");if(void 0===r&&!n&&e.length)return Promise.resolve(e);let o={queryKey:t.queryKey,pageParam:r,meta:t.options.meta};y(o);let a=b(o),s=Promise.resolve(a).then(t=>S(e,r,t,i));return s};if(h.length){if(f){let e=void 0!==d,n=e?d:_(t.options,h);u=w(h,e,n)}else if(p){let e=void 0!==d,n=e?d:null==(s=t.options).getPreviousPageParam?void 0:s.getPreviousPageParam(h[0],h);u=w(h,e,n,!0)}else{m=[];let e=void 0===t.options.getNextPageParam,n=!c||!h[0]||c(h[0],0,h);u=n?w([],e,g[0]):Promise.resolve(S([],g[0],h[0]));for(let n=1;n<h.length;n++)u=u.then(r=>{let i=!c||!h[n]||c(h[n],n,h);if(i){let i=e?g[n]:_(t.options,r);return w(r,e,i)}return Promise.resolve(S(r,g[n],h[n]))})}}else u=w([]);let E=u.then(t=>({pages:t,pageParams:m}));return E}}},this.fetchQuery(r)}prefetchInfiniteQuery(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(s.ZT).catch(s.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let n=this.queryDefaults.find(e=>(0,s.yF)(t)===(0,s.yF)(e.queryKey));n?n.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>(0,s.to)(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let n=this.mutationDefaults.find(e=>(0,s.yF)(t)===(0,s.yF)(e.mutationKey));n?n.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>(0,s.to)(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=(0,s.Rm)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var S=n(5945),w=n(3443),E=n(6234),k=n(4976),O=n(8367),T=n(1601),x=n(8678),C=n(1145),I=n(488),R=n(6876),A=n(251),P=n(8290),N=n(3206),L=n(1962);function j(t,e,n){let r,i=0,o=[],a=!0,s=0,u=[],{stop:c}=(0,N.O)(t,e,"message",({data:t})=>{if("wrote"!==t.type||t.streamId!==n)return;let e=u[0];e&&(e.id===t.id?(u.shift(),i+=t.additionalBytesCount,o.push(t.result),r=t.trailer,e.writeCallback?e.writeCallback(t.result.byteLength):e.finishCallback&&e.finishCallback()):e.id<t.id&&c())});function l(){let t=0===o.length?new Uint8Array(0):(0,L.Kb)(o.concat(r)),e={rawBytesCount:i,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return i=0,o=[],e}function d(){a||(e.postMessage({action:"reset",streamId:n}),a=!0)}return{isAsync:!0,get isEmpty(){return a},write(t,r){e.postMessage({action:"write",id:s,data:t,streamId:n}),u.push({id:s,writeCallback:r,data:t}),a=!1,s+=1},finish(t){d(),u.length?(u.forEach(t=>{delete t.writeCallback}),u[u.length-1].finishCallback=()=>t(l())):t(l())},finishSync(){d();let t=u.map(t=>t.data).join("");return u.length=0,{...l(),pendingData:t}},estimateEncodedBytesCount:t=>t.length/8,stop(){c()}}}var D=n(5026),$=n(5483),M=n(3842),U=n(8797);function F({configuredUrl:t,error:e,source:n,scriptType:r}){var i;if(M.jf.error(`${n} failed to start: an error occurred while initializing the ${r}:`,e),e instanceof Event||e instanceof Error&&((i=e.message).includes("Content Security Policy")||i.includes("requires 'TrustedScriptURL'"))){let e;e=t?`Please make sure the ${r} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",M.jf.error(`${e} See documentation at ${M.aA}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===r&&(0,U.Sz)(e)}let G=30*D.WT;function q(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new
vendor: 5,817 bytes, line 25
25Uint8Array([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-1^t},O={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=j,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=O[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.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;
vendor: 14,903 bytes, line 25
25for(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,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=T(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&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},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(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=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(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=et(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 it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t||!t.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){D||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<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=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[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},_t=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&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&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):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t||!t.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<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,lt(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]"===ct.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);
25i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(O[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<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.23.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,h=0;for(r=0;r<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:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let H={status:0};function z(t,e,n,r=q){switch(0===H.status&&function(t,e,n=q){try{let r=n(t),{stop:i}=(0,N.O)(t,r,"error",n=>{B(t,e,n)}),{stop:o}=(0,N.O)(t,r,"message",({data:n})=>{var r;"errored"===n.type?B(t,e,n.error,n.streamId):"initialized"===n.type&&(r=n.version,1===H.status&&(H={status:3,worker:H.worker,stop:H.stop,version:r}))});r.postMessage({action:"init"}),(0,$.iK)(()=>{1===H.status&&(M.jf.error(`${e} failed to start: a timeout occurred while initializing the Worker`),H.initializationFailureCallbacks.forEach(t=>t()),H={status:2})},G);let a=()=>{i(),o()};H={status:1,worker:r,stop:a,initializationFailureCallbacks:[]}}catch(n){B(t,e,n)}}(t,e,r),H.status){case 1:return H.initializationFailureCallbacks.push(n),H.worker;case 3:return H.worker}}function B(t,e,n,r){1===H.status||0===H.status?(F({configuredUrl:t.workerUrl,error:n,source:e,scriptType:"worker"}),1===H.status&&H.initializationFailureCallbacks.forEach(t=>t()),H={status:2}):(0,U.Sz)(n,{worker_version:3===H.status&&H.version,stream_id:r})}function V(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}var W=n(5721),K=n(193),Z=n(4933);async function J(t,e,n){try{return await n}finally{t.notify(e)}}async function X(t=Y){try{return await t()}catch(t){F({error:t,source:"Recorder",scriptType:"module"})}}async function Y(){let t=await n.e(538).then(n.bind(n,336));return t.startRecording}var Q=n(9643);let tt=t=>{let e={status:"starting"};return t.register(0,({eventType:t})=>t!==I.D$.VIEW&&t!==I.D$.LONG_TASK?Q.kb:{type:t,_dd:{profiling:e}}),{get:()=>e,set:t=>{e=t}}};async function te(t=tn){try{return await t()}catch(t){F({error:t,source:"Profiler",scriptType:"module"})}}async function tn(){let t=await n.e(983).then(n.bind(n,8574));return t.createRumProfiler}let tr=function(t,e){let n;if((0,R.xT)()&&!(0,R.ke)("records")||!V())return{start:A.Z,stop:A.Z,getReplayStats:()=>void 0,onRumStart:A.Z,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:r,shouldStartImmediately:i}=(n=0,{strategy:{start(){n=1},stop(){n=2},isRecording:()=>!1,getSessionReplayLink:A.Z},shouldStartImmediately:t=>1===n||0===n&&!t.startSessionReplayRecordingManually});return{start:t=>r.start(t),stop:()=>r.stop(),getSessionReplayLink:()=>r.getSessionReplayLink(),onRumStart:function(e,n,o,a,s,u){let c;r=function(t,e,n,r,i,o,a){let s,u=0;e.subscribe(9,()=>{(2===u||3===u)&&(f(),u=1)}),e.subscribe(10,()=>{1===u&&d()});let c=new W.y$;!function(t,e){let n,r,i;if(!t.metricsEnabled)return A.Z;let{unsubscribe:o}=e.subscribe(t=>{switch(t.type){case"start":n={forced:t.forced,timestamp:(0,D.n$)()},r=void 0,i=void 0;break;case"document-ready":n&&(r=(0,D._J)(n.timestamp,(0,D.n$)()));break;
25case"recorder-settled":n&&(i=(0,D._J)(n.timestamp,(0,D.n$)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var e,a,s,u,c;o(),n&&(0,U.qZ)("Recorder init metrics",{metrics:(e=n.forced,a=i,s=(0,D._J)(n.timestamp,(0,D.n$)()),u=t.type,c=r,{forced:e,loadRecorderModuleDuration:a,recorderInitDuration:s,result:u,waitForDocReadyDuration:c})})}})}(a,c);let l=async l=>{c.notify({type:"start",forced:l});let[d]=await Promise.all([J(c,{type:"recorder-settled"},i()),J(c,{type:"document-ready"},(0,K._)(t,"interactive"))]);if(2!==u){c.notify({type:"aborted"});return}if(!d){u=0,c.notify({type:"recorder-load-failed"});return}let f=o();if(!f){u=0,c.notify({type:"deflate-encoder-load-failed"});return}({stop:s}=d(e,t,n,r,f,a)),u=3,c.notify({type:"succeeded"})};function d(t){var e;let r=n.findTrackedSession();if(!r||0===r.sessionReplay&&(!t||!t.force)){u=1;return}if(2===(e=u)||3===e)return;u=2;let i=t&&t.force&&0===r.sessionReplay||!1;l(i).catch(Z.$y),i&&n.setForcedReplay()}function f(){3===u&&(null==s||s()),u=0}return{start:d,stop:f,getSessionReplayLink:()=>(function(t,e,n,r){let i=e.findTrackedSession(),o=V()?i?0===i.sessionReplay?"incorrect-session-plan":r?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",a=n.findView();return(0,I.Gm)(t,{viewContext:a,errorType:o,session:i})})(t,n,r,0!==u),isRecording:()=>3===u}}(n,e,o,a,t,function(){return!c&&(null!=s||(s=z(n,"Datadog Session Replay",()=>{r.stop()},void 0)),s&&(c=j(n,s,1))),c},u),i(n)&&r.start()},isRecording:()=>3===H.status&&r.isRecording(),getReplayStats:t=>3===H.status?(0,P.MA)(t):void 0}}(X),ti=(0,I._r)(I.iB,tr,{onRumStart:function(t,e,n,i,o,a){let s=i.findTrackedSession();if(!s||!(0,I.HR)(s.id,n.profilingSampleRate))return;let u=tt(e);if(!function(){let t=(0,C.Rf)(),e=t.Profiler;return void 0!==e}()){u.set({status:"error",error_reason:"not-supported-by-browser"});return}te().then(e=>{if(!e){(0,U.eJ)("[DD_RUM] Failed to lazy load the RUM Profiler"),u.set({status:"error",error_reason:"failed-to-lazy-load"});return}(r=e(n,t,i,u,a)).start(o.findView())}).catch(Z.$y)},stop:()=>{null==r||r.stop().catch(Z.$y)}},{startDeflateWorker:z,createDeflateEncoder:j,sdkName:"rum"});(0,x.y)((0,C.Rf)(),"DD_RUM",ti);var to=n(4298),ta=n.n(to),ts=n(9008),tu=n.n(ts),tc=n(1975),tl=n(6084),td={nova88:"G-C65Q6MT91B",viva88:"G-LLSCMGSDY6",bong88:"G-FR64WVHR9J",pica88:"G-19LTEDPKZ6",id8899:"G-C65Q6MT91B",ibcbet:"G-XECG1ZYH7S",bettha88:"G-SHWZGD89D3",taraplays:"G-J0MJ3MXLEF",fifabet:"G-SHWZGD89D3",ocean99:"G-SHWZGD89D3"},tf=function(t){var e=null==t?void 0:t.toLowerCase(),n=JSON.stringify([{SiteName:t},{GAID:td[e]}]);return"dataLayer =".concat(n,";\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
25j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','").concat("GTM-PPT7NL2T","');")},tp=n(5866),th=n.n(tp),tg=n(5893);function tm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tm(Object(n),!0).forEach(function(e){(0,i.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ty=function(t){var e=t.providers,n=t.children;return(0,tg.jsx)(tg.Fragment,{children:(void 0===e?[]:e).reduceRight(function(t,e){return o.cloneElement(e,{},t)},n)})},t_=(0,a.Jc)(function(t){var e=t.Component,n=t.pageProps,r=new b,i=n.siteId,a=n.siteName,s=n.enumSiteName,u=n.isDeniedIp,c=n.languageList,l=n.loginWebImageServerHost,d=n.mobileImageServerHost,f=n.underMaintenanceInfo,p=n.desktopBanners,h=n.desktopRightDownBanners,g=n.mobileBanners,m=n.vendorSiteId,v=n.useImageServer,y=n.openGesture,_=n.autoColorScheme,x=n.preferredSiteName,C=n.clientApiUrl,I=n.countryCode,R="4182696388664999",A=null==a?void 0:a.toLowerCase(),P=th()?"v=".concat(th()):"v=1.0.0",N=null!=_&&!!_.colorScheme&&"customize"!==_.colorScheme,L="",j=function(t){var e=t.pathType,n=t.language,r=t.pathName,i=v?"".concat(l,"/resb"):"/resb",o=v?"".concat(l,"/resh"):"/resh";L="pica88"===A?"neweu":A;var a=P;switch(e===tl.Z.helpUiHtmlGlobal&&N&&(a=encodeURIComponent("colorscheme=".concat(_.colorScheme)+"&darkMode=".concat(_.darkMode)+"&AutoPrimary_h=".concat(_.primary.autoHsl.hue)+"&AutoPrimary_s=".concat(_.primary.autoHsl.saturation)+"&AutoPrimary_l=".concat(_.primary.autoHsl.lightness)+"&AutoSecondary_h=".concat(_.secondary.autoHsl.hue)+"&AutoSecondary_s=".concat(_.secondary.autoHsl.saturation)+"&AutoSecondary_l=".concat(_.secondary.autoHsl.lightness)+"&PreferredSiteName=".concat(x)+"&AutoLogo=url(".concat(o,"/").concat(L,"/common/images/logo_slogan/logo_en.svg?").concat(P,'")')).replace(/[.]/g,function(t){return"%".concat(t.charCodeAt(0).toString(16).toUpperCase())})),e){case tl.Z.globalImage:return"".concat(i,"/_global/common/images/").concat(r,"?").concat(a);case tl.Z.globalCss:return"".concat(i,"/_global/common/css/").concat(r,"?").concat(a);case tl.Z.globalScript:return"".concat("/b","/scripts/").concat(r,"?").concat(a);case tl.Z.siteImage:return"".concat(i,"/").concat(L,"/common/images/").concat(r,"?").concat(a);case tl.Z.siteCss:return"".concat(i,"/").concat(L,"/common/css/").concat(r,"?").concat(a);case tl.Z.siteHtml:return"".concat(i,"/").concat(L,"/").concat(n,"/").concat(r,"?").concat(a);case tl.Z.helpUiHtml:return"".concat(o,"/").concat(L,"/").concat(n,"/").concat(r,"?").concat(a);case tl.Z.helpUiHtmlGlobal:return"".concat(o,"/_global/").concat(n,"/").concat(r,"?").concat(a);case tl.Z.helpUiGlobal:return"".concat(o,"/_global/common/css/").concat(r,"?").concat(a);case tl.Z.helpUiTheme:return"".concat(o,"/").concat(L,"/common/css/").concat(r,"?").concat(a);case tl.Z.landingPage:return"".concat(i,"/").concat(A,"/external-landing-page").concat(r,"?").concat(a);case tl.Z.colorscheme:return"".concat(i,"/_global/common/css/").concat(r,"?").concat(a);case tl.Z.autoColorscheme:return"".concat(i,"/_global/common/images/before_nova88/").concat(r,"?").concat(a);default:return""}},D=tv(tv({},n),{},{siteId:i,siteName:A,enumSiteName:s,isDeniedIp:u,languageList:void 0===c?[]:c,loginWebImageServerHost:l,mobileImageServerHost:d,underMaintenanceInfo:f,desktopBanners:p,desktopRightDownBanners:h,mobileBanners:g,vendorSiteId:m,useImageServer:v,openGesture:y,composePath:j,isAutoColorSchemeShow:N,clientApiUrl:C});return(0,o.useEffect)(function(){null!=_&&_.colorScheme&&document.querySelector("html").setAttribute("data-colorscheme",_.colorScheme),null!=D&&D.datadogClientToken&&(ti.init({site:"datadoghq.com",applicationId:D.datadogApplicationId,clientToken:D.datadogClientToken,service:"credit-prod",env:"prod",sessionSampleRate:1,sessionReplaySampleRate:0,trackBfcacheViews:!0,defaultPrivacyLevel:"mask-user-input",enableExperimentalFeatures:["feature_flags"]}),ti&&ti.addFeatureFlagEvaluation("platform","before"))},[]),(0,tg.jsxs)(tg.Fragment,{children:[(0,tg.jsx)(tu(),{children:(0,tg.jsx)("style",{children:(null==_?void 0:_.primary)&&(null==_?void 0:_.secondary)&&'\n [data-colorscheme*="auto"] {\n --auto-primary-h: '.concat(_.primary.autoHsl.hue,";\n --auto-primary-s: ").concat(_.primary.autoHsl.saturation,"%;\n --auto-primary-l: ").concat(_.primary.autoHsl.lightness,"%;\n\n --auto-secondary-h: ").concat(_.secondary.autoHsl.hue,";\n --auto-secondary-s: ").concat(_.secondary.autoHsl.saturation,"%;\n --auto-secondary-l: ").concat(_.secondary.autoHsl.lightness,"%;\n\n --auto-bet-odds-text: ").concat(_.oddsText,";\n --auto-bet-odds-minus-text: ").concat(_.oddsMinus,";\n --auto-league-header-bg: ").concat(_.leagueHeader,";\n --auto-league-text: ").concat(_.leagueText,";\n\n /* Logo */\n --auto-logo: url(").concat(j({pathType:tl.Z.siteImage,pathName:"logo_slogan/logo_en.svg"}),"); \n --auto-logo-w: url(").concat(j({pathType:tl.Z.siteImage,pathName:"logo_slogan/logo_en_w.svg"}),");\n }")})}),(0,tg.jsx)(ta(),{src:j({pathType:tl.Z.globalScript,pathName:"jquery-2.1.4.min.js"}),strategy:"beforeInteractive"}),(0,tg.jsx)(ta(),{src:j({pathType:tl.Z.globalScript,pathName:"GestureClass.js"}),strategy:"beforeInteractive"}),(0,tg.jsx)(ta(),{id:"google-tag-manager",strategy:"beforeInteractive",children:tf(a)}),I&&!["TW"].includes(I.trim())&&R&&(0,tg.jsx)(ta(),{id:"meta-pixel-id",strategy:"beforeInteractive",children:"\n !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=\n [];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)\n [0]; s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(R,"');\n fbq('track', 'PageView'); // fixed\n ")}),(0,tg.jsx)(S.aH,{client:r,children:(0,tg.jsx)(ty,{providers:[(0,tg.jsx)(w.rq,{siteInfo:D}),(0,tg.jsx)(k.Ip,{}),(0,tg.jsx)(E.I7,{}),(0,tg.jsx)(O.Gp,{}),(0,tg.jsx)(T.at,{}),(0,tg.jsx)(tc.l,{})],children:(0,tg.jsx)(e,tv({},n))})})]})})},1934:function(t,e,n){"use strict";n.d(e,{GY:function(){return s},Kv:function(){return a},Zs:function(){return u}});var r=n(9499);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?i(Object(n),!0).forEach(function(e){(0,r.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var a={UPDATE_LOGIN_DATA:"UPDATE_LOGIN_DATA",UPDATE_LOGIN_DATA_HEADER_STATE:"UPDATE_LOGIN_DATA_HEADER_STATE",SHOWING_ERROR_MESSAGE:"SHOWING_ERROR_MESSAGE",NOT_SHOWING_ERROR_MESSAGE:"NOT_SHOWING_ERROR_MESSAGE",SHOWING_GESTURE_LOGIN_FORM:"SHOWING_GESTURE_LOGIN_FORM",NOT_SHOWING_GESTURE_LOGIN_FORM:"NOT_SHOWING_GESTURE_LOGIN_FORM",SET_LOGIN_CODE_IMAGE:"SET_LOGIN_CODE_IMAGE",NOT_SHOWING_LOGIN_CODE_IMAGE:"NOT_SHOWING_LOGIN_CODE_IMAGE",UPDATE_LOGIN_DATA_WITH_GESTURE:"UPDATE_LOGIN_DATA_WITH_GESTURE",UPDATE_BACKDOOR_LOGIN_DATA:"UPDATE_BACKDOOR_LOGIN_DATA",SHOWING_MEMBER_RULES:"SHOWING_MEMBER_RULES",NOT_SHOWING_MEMBER_RULES:"NOT_SHOWING_MEMBER_RULES",CLEAR_LOGIN_DATA:"CLEAR_LOGIN_DATA"},s=function(t){return{username:"",password:"",platform:t.platform,language:t.language,loginCode:"",enterPoint:t.enterPoint,isShowLoginErrorMessage:!1,errorMessage:{errorMessage:[],replacedText:"",replacedText1:""},gestureToggle:!1,isShowLoginCodeForm:!1,loginCodeImage:"",isShowMemberRules:!1,redirectUrl:""}},u=function(t,e){switch(e.type){case a.UPDATE_LOGIN_DATA:return o(o({},t),{},(0,r.Z)({},e.payload.key,e.payload.value));case a.UPDATE_LOGIN_DATA_HEADER_STATE:return o(o({},t),{},{isGesture:e.payload.isGesture,platform:e.payload.platform,language:e.payload.language,enterPoint:e.payload.enterPoint});case a.SHOWING_ERROR_MESSAGE:return o(o({},t),{},{isShowLoginErrorMessage:!0,errorMessage:o(o({},t.errorMessage),{},{errorMessage:e.payload.errorMessage.errorMessage,replacedText:e.payload.errorMessage.replacedText,replacedText1:e.payload.errorMessage.replacedText1})});case a.NOT_SHOWING_ERROR_MESSAGE:return o(o({},t),{},{isShowLoginErrorMessage:!1,errorMessage:{errorMessage:""}});case a.SHOWING_GESTURE_LOGIN_FORM:return o(o({},t),{},{gestureToggle:!0});case a.NOT_SHOWING_GESTURE_LOGIN_FORM:return o(o({},t),{},{gestureToggle:!1});case a.SET_LOGIN_CODE_IMAGE:return o(o({},t),{},{isShowLoginCodeForm:!0,loginCodeImage:e.payload.loginCodeImage});case a.NOT_SHOWING_LOGIN_CODE_IMAGE:return o(o({},t),{},{isShowLoginCodeForm:!1});case a.UPDATE_LOGIN_DATA_WITH_GESTURE:return o(o({},t),{},{isGesture:!0,password:e.payload.password});case a.UPDATE_BACKDOOR_LOGIN_DATA:return o(o({},t),{},{platform:e.payload.platform,language:e.payload.language,alwaysGoToCloud:e.payload.alwaysGoToCloud});case a.TOGGLE_SHOWING_MEMBER_RULES:return o(o({},t),{},{isShowMemberRules:e.payload.isShowMemberRules});case a.CLEAR_LOGIN_DATA:return s(t);default:return t}}},52:function(t,e,n){"use strict";n.d(e,{A0:function(){return a},d8:function(){return o},ej:function(){return i}});var r=function(t){return t.lastIndexOf(":")>-1&&(t=t.substring(0,t.lastIndexOf(":"))),t.substring(t.indexOf(".",t.indexOf(".")-1)+1)},i=function(t){var e=document.cookie.match(RegExp("(^| )".concat(t,"=([^;]*)(;|$)")));return null!=e?decodeURI(e[2]):null},o=function(t,e,n){var i=r(window.location.host),o=new Date;o.setTime(o.getTime()+864e5*(n||365));var a="expires=".concat(o.toGMTString()),s="".concat("localhost"===i?"":".").concat(i),u="".concat(t,"=").concat(e,"; ").concat(a,"; path=/; domain=").concat(s);document.cookie=u},a=function(t){var e=r(window.location.host),n=new Date,i="expires=".concat(n.toGMTString()),o="".concat("localhost"===e?"":".").concat(e),a="".concat(t,"=; ").concat(i,"; path=/; domain=").concat(o);document.cookie=a}},1281:function(t,e,n){"use strict";function r(){var t=window.location.hostname.indexOf(".");return window.location.hostname.substring(t+1)}function i(t){var e=window.location.search.split("?")[1];return new URLSearchParams(e).get(t)}function o(t){return t.replace(/^qab\d+-/,"")}function a(t){return t.replace(/\.u\./,".")}n.d(e,{p7:function(){return r},pC:function(){return a},re:function(){return i},tx:function(){return o}})},7144:function(t,e,n){"use strict";n.d(e,{L_:function(){return r},cs:function(){return i},me:function(){return o}});var r=function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i)?"mobile":"desktop"},i=function(t){return null!=t&&t.includes("Android")?"Android":null!=t&&t.includes("iPhone")||null!=t&&t.includes("iPad")?"iOS":""},o={MOBILE:"mobile",DESKTOP:"desktop"}},1129:function(t,e,n){"use strict";var r=n(1281),i=n(3454);e.Z=function(t){var e=new URL(t);if(e.hostname.includes("simplec-")){if(e.hostname.includes(".u.")){var n=(0,r.tx)(e.hostname);return(0,r.pC)(n)}return e.hostname}var o=e.searchParams.get("agentId");if(!o)return t;if(e.hostname.startsWith("dev")&&"local"===i.env.APP_ENV){var a=e.hostname.split(".");return a.splice(0,2,"simplec-".concat(o),a[1]),e.hostname=a.join("."),e.hostname}if(e.hostname.startsWith("dev")&&"sit"===i.env.APP_ENV){var s=e.hostname.split(".");return s.splice(0,2,"simplec-".concat(o),"playonesit"),e.hostname=s.join("."),e.hostname}return"sit"===i.env.APP_ENV?"simplec-".concat(o,".playonesit.com"):t}},3454:function(t,e,n){"use strict";var r,i;t.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(7663)},3837:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(8347)}])},5700:function(){},7663:function(t){!function(){var e={229:function(t){var e,n,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u=[],c=!1,l=-1;function d(){c&&r&&(c=!1,r.length?u=r.concat(u):l=-1,u.length&&f())}function f(){if(!c){var t=s(d);c=!0;for(var e=u.length;e;){for(r=u,u=[];++l<e;)r&&r[l].run();l=-1,e=u.length}r=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function h(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}},a=!0;try{e[t](o,o.exports,r),a=!1}finally{a&&delete n[t]}return o.exports}r.ab="//";var i=r(229);t.exports=i}()},9008:function(t,e,n){t.exports=n(6505)},1163:function(t,e,n){t.exports=n(1587)},4298:function(t,e,n){t.exports=n(7829)},9921:function(t,e){"use strict";/** @license React v16.13.1 26 * react-is.production.min.js 27 * 28 * Copyright (c) Facebook, Inc. and its affiliates. 29 * 30 * This source code is licensed under the MIT license found in the 31 * LICENSE file in the root directory of this source tree. 32 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function S(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case l:case d:case o:case s:case a:case p:return t;default:switch(t=t&&t.$$typeof){case c:case f:case m:case g:case u:return t;default:return e}}case i:return e}}}function w(t){return S(t)===d}e.AsyncMode=l,e.ConcurrentMode=d,e.ContextConsumer=c,e.ContextProvider=u,e.Element=r,e.ForwardRef=f,e.Fragment=o,e.Lazy=m,e.Memo=g,e.Portal=i,e.Profiler=s,e.StrictMode=a,e.Suspense=p,e.isAsyncMode=function(t){return w(t)||S(t)===l},e.isConcurrentMode=w,e.isContextConsumer=function(t){return S(t)===c},e.isContextProvider=function(t){return S(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return S(t)===f},e.isFragment=function(t){return S(t)===o},e.isLazy=function(t){return S(t)===m},e.isMemo=function(t){return S(t)===g},e.isPortal=function(t){return S(t)===i},e.isProfiler=function(t){return S(t)===s},e.isStrictMode=function(t){return S(t)===a},e.isSuspense=function(t){return S(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===d||t===s||t===a||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===g||t.$$typeof===u||t.$$typeof===c||t.$$typeof===f||t.$$typeof===y||t.$$typeof===_||t.$$typeof===b||t.$$typeof===v)},e.typeOf=S},9864:function(t,e,n){"use strict";
32t.exports=n(9921)},5761:function(t,e,n){"use strict";n.d(e,{j:function(){return a}});var r=n(3989),i=n(2161);class o extends r.l{constructor(){super(),this.setup=t=>{if(!i.sk&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){let e=this.focused!==t;e&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let a=new o},819:function(t,e,n){"use strict";n.d(e,{_:function(){return r}});let r=console},9886:function(t,e,n){"use strict";n.d(e,{R:function(){return u},m:function(){return s}});var r=n(819),i=n(81),o=n(5651),a=n(2379);class s extends o.F{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||r._,this.observers=[],this.state=t.state||u(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,n,r,i,o,s,u,c,l,d,f,p,h,g,m,v,y,_,b;let S="loading"===this.state.status;try{if(!S){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(c=(l=this.mutationCache.config).onMutate)?void 0:c.call(l,this.state.variables,this));let t=await (null==(d=(f=this.options).onMutate)?void 0:d.call(f,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let p=await (()=>{var t;return this.retryer=(0,a.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,p,this.state.variables,this.state.context,this)),await (null==(n=(r=this.options).onSuccess)?void 0:n.call(r,p,this.state.variables,this.state.context)),await (null==(i=(o=this.mutationCache.config).onSettled)?void 0:i.call(o,p,null,this.state.variables,this.state.context,this)),await (null==(s=(u=this.options).onSettled)?void 0:s.call(u,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(t){try{throw await (null==(p=(h=this.mutationCache.config).onError)?void 0:p.call(h,t,this.state.variables,this.state.context,this)),await (null==(g=(m=this.options).onError)?void 0:g.call(m,t,this.state.variables,this.state.context)),await (null==(v=(y=this.mutationCache.config).onSettled)?void 0:v.call(y,void 0,t,this.state.variables,this.state.context,this)),await (null==(_=(b=this.options).onSettled)?void 0:_.call(b,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};
32case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,a.Kw)(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function u(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},81:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});var r=n(2161);let i=function(){let t=[],e=0,n=t=>{t()},i=t=>{t()},o=t=>{let n;e++;try{n=t()}finally{--e||u()}return n},a=i=>{e?t.push(i):(0,r.A4)(()=>{n(i)})},s=t=>(...e)=>{a(()=>{t(...e)})},u=()=>{let e=t;t=[],e.length&&(0,r.A4)(()=>{i(()=>{e.forEach(t=>{n(t)})})})},c=t=>{n=t},l=t=>{i=t};return{batch:o,batchCalls:s,schedule:a,setNotifyFunction:c,setBatchNotifyFunction:l}}()},6474:function(t,e,n){"use strict";n.d(e,{N:function(){return s}});var r=n(3989),i=n(2161);let o=["online","offline"];class a extends r.l{constructor(){super(),this.setup=t=>{if(!i.sk&&window.addEventListener){let e=()=>t();return o.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{o.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){let e=this.online!==t;e&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let s=new a},5651:function(t,e,n){"use strict";n.d(e,{F:function(){return i}});var r=n(2161);class i{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:r.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},2379:function(t,e,n){"use strict";n.d(e,{DV:function(){return c},Kw:function(){return s},Mz:function(){return l}});var r=n(5761),i=n(6474),o=n(2161);function a(t){return Math.min(1e3*2**t,3e4)}function s(t){return(null!=t?t:"online")!=="online"||i.N.isOnline()}class u{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function c(t){return t instanceof u}function l(t){let e,n,c,l=!1,d=0,f=!1,p=new Promise((t,e)=>{n=t,c=e}),h=e=>{f||(_(new u(e)),null==t.abort||t.abort())},g=()=>{l=!0},m=()=>{l=!1},v=()=>!r.j.isFocused()||"always"!==t.networkMode&&!i.N.isOnline(),y=r=>{f||(f=!0,null==t.onSuccess||t.onSuccess(r),null==e||e(),n(r))},_=n=>{f||(f=!0,null==t.onError||t.onError(n),null==e||e(),c(n))},b=()=>new Promise(n=>{e=t=>{let e=f||!v();return e&&n(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,f||null==t.onContinue||t.onContinue()}),S=()=>{let e;if(!f){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(y).catch(e=>{var n,r;if(f)return;let i=null!=(n=t.retry)?n:3,s=null!=(r=t.retryDelay)?r:a,u="function"==typeof s?s(d,e):s,c=!0===i||"number"==typeof i&&d<i||"function"==typeof i&&i(d,e);if(l||!c){_(e);return}d++,null==t.onFail||t.onFail(d,e),(0,o.Gh)(u).then(()=>{if(v())return b()}).then(()=>{l?_(e):S()})})}};return s(t.networkMode)?S():b().then(S),{promise:p,cancel:h,continue:()=>{let t=null==e?void 0:e();return t?p:Promise.resolve()},cancelRetry:g,continueRetry:m}}},3989:function(t,e,n){"use strict";n.d(e,{l:function(){return r}});
32class r{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},2161:function(t,e,n){"use strict";n.d(e,{A4:function(){return E},G9:function(){return k},Gh:function(){return w},I6:function(){return l},Kp:function(){return s},PN:function(){return a},Rm:function(){return p},SE:function(){return o},VS:function(){return v},X7:function(){return f},ZT:function(){return i},_v:function(){return u},_x:function(){return d},lV:function(){return c},oE:function(){return O},sk:function(){return r},to:function(){return g},yF:function(){return h}});let r="undefined"==typeof window||"Deno"in window;function i(){}function o(t,e){return"function"==typeof t?t(e):t}function a(t){return"number"==typeof t&&t>=0&&t!==1/0}function s(t,e){return Math.max(t+(e||0)-Date.now(),0)}function u(t,e,n){return S(t)?"function"==typeof e?{...n,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function c(t,e,n){return S(t)?"function"==typeof e?{...n,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function l(t,e,n){return S(t)?[{...e,queryKey:t},n]:[t||{},e]}function d(t,e){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=t;if(S(a)){if(r){if(e.queryHash!==p(a,e.options))return!1}else{if(!m(e.queryKey,a))return!1}}if("all"!==n){let t=e.isActive();if("active"===n&&!t||"inactive"===n&&t)return!1}return("boolean"!=typeof s||e.isStale()===s)&&(void 0===i||i===e.state.fetchStatus)&&(!o||!!o(e))}function f(t,e){let{exact:n,fetching:r,predicate:i,mutationKey:o}=t;if(S(o)){if(!e.options.mutationKey)return!1;if(n){if(h(e.options.mutationKey)!==h(o))return!1}else{if(!m(e.options.mutationKey,o))return!1}}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function p(t,e){let n=(null==e?void 0:e.queryKeyHashFn)||h;return n(t)}function h(t){return JSON.stringify(t,(t,e)=>_(e)?Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{}):e)}function g(t,e){return m(t,e)}function m(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(n=>!m(t[n],e[n]))}function v(t,e){if(t&&!e||e&&!t)return!1;for(let n in t)if(t[n]!==e[n])return!1;return!0}function y(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function _(t){if(!b(t))return!1;let e=t.constructor;if(void 0===e)return!0;let n=e.prototype;return!!(b(n)&&n.hasOwnProperty("isPrototypeOf"))}function b(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return Array.isArray(t)}function w(t){return new Promise(e=>{setTimeout(e,t)})}function E(t){w(0).then(t)}function k(){if("function"==typeof AbortController)return new AbortController}function O(t,e,n){return null!=n.isDataEqual&&n.isDataEqual(t,e)?t:"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?function t(e,n){if(e===n)return e;let r=y(e)&&y(n);if(r||_(e)&&_(n)){let i=r?e.length:Object.keys(e).length,o=r?n:Object.keys(n),a=o.length,s=r?[]:{},u=0;for(let i=0;i<a;i++){let a=r?i:o[i];s[a]=t(e[a],n[a]),s[a]===e[a]&&u++}return i===a&&u===i?e:s}return n}(t,e):e}},5945:function(t,e,n){"use strict";n.d(e,{NL:function(){return s},aH:function(){return u}});var r=n(7294);let i=r.createContext(void 0),o=r.createContext(!1);function a(t,e){return t||(e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}let s=({context:t}={})=>{let e=r.useContext(a(t,r.useContext(o)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},u=({client:t,children:e,context:n,contextSharing:i=!1})=>{r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let s=a(n,i);return r.createElement(o.Provider,{value:!n&&i},r.createElement(s.Provider,{value:t},e))}},9499:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],function(){return e(6722),e(3837),e(1587)}),_N_E=t.O()}]); 33//# sourceMappingURL=_app-324ae1b6077b9674.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.