PageSourceSearch

https://assets.tanp.jp/362ea4b/js/laravel-mix/dist/pc/init.js

js tanp.jp collected 2026-09-24 18:12:29 UTC 53,722 bytes, 1 lines download raw bytes

1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=93)}({3:function(e,t,n){"use strict";t.a={API_KEY_HEADER_NAME:"X-Api-Key",WEB_API_KEY:"PMhFJKteWLdy4kt5",PAYMENT_SHOP_ID:"9101873461439",ALGOLIA_APPLICATION_ID:"PNEP5CSTIV",ALGOLIA_SEARCH_ONLY_API_KEY:"c62c6dfe0e21da1afd7a282fd85aaf9d",DATADOG_CLIENT_KEY:"pub300267a93cce3d77984382129826655b",DATADOG_ENV_TAG:"prd",DATADOG_SESSION_SAMPLE_RATE:10,ENABLE_DATADOG_CLIENT:!0}},56:function(e,t,n){"use strict";var r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},o=console,i={};Object.keys(r).forEach((function(e){i[e]=o[e]}));var a="Datadog Browser SDK:",s={debug:i.debug.bind(o,a),log:i.log.bind(o,a),info:i.info.bind(o,a),warn:i.warn.bind(o,a),error:i.error.bind(o,a)};function u(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(e){s.error(t,e)}}}var c,f=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},l=!1;function d(e){l=e}function p(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=c?v(r):r;return n.apply(this,e)}}function v(e){return function(){return g(e,this,arguments)}}function g(e,t,n){try{return e.apply(t,n)}catch(e){if(h(e),c)try{c(e)}catch(e){h(e)}}}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];l&&s.error.apply(s,f(["[MONITOR]"],e,!1))}function y(e,t){return-1!==e.indexOf(t)}function b(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach((function(e){return t.push(e)}));else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function m(e){return Object.keys(e).map((function(t){return e[t]}))}function w(e,t){return e.slice(0,t.length)===t}function _(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function S(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}var E=/[^\u0000-\u007F]/;function x(e){return E.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length}function C(e,t){var n,r=S();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function k(e,t){return C(S(),"setTimeout")(v(e),t)}function O(e){C(S(),"clearTimeout")(e)}function T(e,t){return C(S(),"setInterval")(v(e),t)}function A(e){C(S(),"clearInterval")(e)}function R(e,t,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];s?r=n:(i?e.apply(void 0,n):r=n,s=!0,o=k((function(){a&&r&&e.apply(void 0,r),s=!1,r=void 0}),t))},cancel:function(){O(o),s=!1,r=void 0}}}function L(){}function I(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function P(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;
1return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var o=Array.isArray(e)?e:[],i=0;i<t.length;++i)o[i]=P(o[i],t[i],n);return o}var a="object"===I(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=P(a[s],t[s],n));return a}}function D(e){return P(void 0,e)}function B(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];null!=i&&(e=P(e,i))}return e}function N(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=M(Object.prototype),o=M(Array.prototype),i=M(Object.getPrototypeOf(e)),a=M(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function M(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):L}function j(e,t){var n;void 0===t&&(t=225280);var r=M(Object.prototype),o=M(Array.prototype),i=[],a=new WeakMap,s=q(e,"$",void 0,i,a),u=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(!(u>t)){for(;i.length>0&&u<t;){var c=i.shift(),f=0;if(Array.isArray(c.source))for(var l=0;l<c.source.length;l++){if(u+=void 0!==(d=q(c.source[l],c.path,l,i,a))?JSON.stringify(d).length:4,u+=f,f=1,u>t){U(t,"truncated",e);break}c.target[l]=d}else for(var l in c.source)if(Object.prototype.hasOwnProperty.call(c.source,l)){var d;if(void 0!==(d=q(c.source[l],c.path,l,i,a))&&(u+=JSON.stringify(d).length+f+l.length+3,f=1),u>t){U(t,"truncated",e);break}c.target[l]=d}}return r(),o(),s}U(t,"discarded",e)}function q(e,t,n,r,o){var i=function(e){var t=e;if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(e){}return e}(e);if(!i||"object"!=typeof i)return function(e){if("bigint"==typeof e)return"[BigInt] ".concat(e.toString());if("function"==typeof e)return"[Function] ".concat(e.name||"unknown");if("symbol"==typeof e)return"[Symbol] ".concat(e.description||e.toString());return e}(i);var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=e;if(o.has(s))return"[Reference seen at ".concat(o.get(s),"]");var u=void 0!==n?"".concat(t,".").concat(n):t,c=Array.isArray(i)?[]:{};return o.set(s,u),r.push({source:i,target:c,path:u}),c}function U(e,t,n){s.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var F,G=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function H(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new G((function(){var t=e.map((function(e){return e.subscribe((function(e){return n.notify(e)}))}));return function(){return t.forEach((function(e){return e.unsubscribe()}))}}));return n}var z=((F={})[0]="feature flag evaluation",F[1]="user",F[2]="global context",F[3]="logger context",F);function V(e,t){void 0===t&&(t=x);var n,r={},o=!1,i=new G,a=R((function(r){n=t(N(r)),o||(o=function(e,t){return e>3072&&(s.warn("The ".concat(z[t]," data exceeds the recommended ").concat(3,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0)}(n,e))}),200).throttled,u={getBytesCount:function(){return n},get:function(){return r},add:function(e,t){r[e]=t,a(r),i.notify()},remove:function(e){delete r[e],a(r),i.notify()},set:function(e){a(r=e),i.notify()},getContext:function(){return D(r)},setContext:function(e){"object"===I(e)?(r=j(e),a(r)):u.clearContext(),i.notify()},setContextProperty:function(e,t){r[e]=j(t),a(r),i.notify()},removeContextProperty:function(e){delete r[e],a(r),i.notify()},clearContext:function(){r={},n=0,i.notify()},changeObservable:i};return u}var J=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.drain=function(){this.buffer.forEach((function(e){return e()})),this.buffer.length=0},e}();function Y(e){return 0!==e&&100*Math.random()<=e}function W(e){return $(e)&&e>=0&&e<=100}function $(e){return"number"==typeof e}var K;function X(){return(new Date).getTime()}function Z(){return X()}function Q(){return performance.now()}function ee(){return{relative:Q(),timeStamp:Z()}}function te(e,t){return e+t}function ne(){return void 0===K&&(K=performance.timing.navigationStart),K}function re(){var e=S().DatadogEventBridge;if(e)return{getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n){e.send(JSON.stringify({eventType:t,event:n}))}}}function oe(e){var t;void 0===e&&(e=null===(t=S().location)||void 0===t?void 0:t.hostname);var n=re();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function ie(e,t,n,r,o){return ae(e,t,[n],r,o)}function ae(e,t,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,u=i.passive,c=v(a?function(e){d(),r(e)}:r),f=u?{capture:s,passive:u}:s,l=C(t,"addEventListener");function d(){var e=C(t,"removeEventListener");
1n.forEach((function(n){return e.call(t,n,c,f)}))}return n.forEach((function(e){return l.call(t,e,c,f)})),{stop:d}}var se,ue=[];function ce(e,t,n,r){void 0===r&&(r=x);var o=function(e,t){return"".concat("_dd_c","_").concat(e,"_").concat(t)}(t,n),i=V(n,r);return a(),ue.push(ie(e,window,"storage",(function(e){var t=e.key;o===t&&a()}))),i.changeObservable.subscribe((function(){localStorage.setItem(o,JSON.stringify(i.getContext()))})),i;function a(){var e=localStorage.getItem(o),t=null!==e?JSON.parse(e):{};i.setContext(t)}}function fe(e){var t=_({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}!function(e){e.PAGEHIDE="pagehide",e.FEATURE_FLAGS="feature_flags",e.RESOURCE_PAGE_STATES="resource_page_states",e.PAGE_STATES="page_states",e.COLLECT_FLUSH_REASON="collect_flush_reason",e.NO_RESOURCE_DURATION_FROZEN_STATE="no_resource_duration_frozen_state",e.SCROLLMAP="scrollmap",e.INTERACTION_TO_NEXT_PAINT="interaction_to_next_paint",e.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",e.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css"}(se||(se={}));var le=new Set;function de(e){return le.has(e)}function pe(e){return 0===Object.keys(e).length}function ve(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,ve)}function ge(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),o=r>=55296&&r<=56319?t+1:t;return e.length<=o?e:"".concat(e.slice(0,o)).concat(n)}var he,ye;function be(e,t,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(u)}function me(e){return function(e,t){var n=new RegExp("(?:^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)")).exec(e);return n?n[1]:void 0}(document.cookie,e)}function we(e,t){be(e,"",0,t)}var _e=/^([a-z]+)=([a-z0-9-]+)$/;function Se(e){return pe(e)}function Ee(e){e.expire=String(X()+9e5)}function xe(e){return(t=e,Object.keys(t).map((function(e){return[e,t[e]]}))).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join("&");var t}function Ce(e){var t={};return function(e){return!!e&&(-1!==e.indexOf("&")||_e.test(e))}(e)&&e.split("&").forEach((function(e){var n=_e.exec(e);if(null!==n){var r=n[1],o=n[2];t[r]=o}})),t}function ke(e){var t=function(e){var t={};t.secure=!!e.useSecureSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.useCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===ye){for(var e="dd_site_test_".concat(ve()),t=window.location.hostname.split("."),n=t.pop();t.length&&!me(e);)be(e,"test",1e3,{domain:n="".concat(t.pop(),".").concat(n)});we(e,{domain:n}),ye=n}return ye}());return t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(ve());be(t,"test",6e4,e);var n="test"===me(t);return we(t,e),n}catch(e){return s.error(e),!1}}
1(t)?{type:"Cookie",cookieOptions:t}:void 0}function Oe(e){var t,n={isLockEnabled:null!=he?he:he=!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent),persistSession:(t=e,function(e){be("_dd_s",xe(e),9e5,t)}),retrieveSession:Te,clearSession:Ae(e)};return function(e){if(!me("_dd_s")){var t=me("_dd"),n=me("_dd_r"),r=me("_dd_l"),o={};t&&(o.id=t),r&&/^[01]$/.test(r)&&(o.logs=r),n&&/^[012]$/.test(n)&&(o.rum=n),Se(o)||(Ee(o),e.persistSession(o))}}(n),n}function Te(){return Ce(me("_dd_s"))}function Ae(e){return function(){we("_dd_s",e)}}function Re(e){localStorage.setItem("_dd_s",xe(e))}function Le(){return Ce(localStorage.getItem("_dd_s"))}function Ie(){localStorage.removeItem("_dd_s")}var Pe,De=[];function Be(e,t,n){var r;void 0===n&&(n=0);var o=t.isLockEnabled,i=t.retrieveSession,a=t.persistSession,s=t.clearSession;if(Pe||(Pe=e),e===Pe)if(o&&n>=100)Me(t);else{var u,c=i();if(o){if(c.lock)return void Ne(e,t,n);if(u=ve(),c.lock=u,a(c),(c=i()).lock!==u)return void Ne(e,t,n)}var f=e.process(c);if(o&&(c=i()).lock!==u)Ne(e,t,n);else{if(f&&(Se(f)?s():(Ee(f),a(f))),o&&(!f||!Se(f))){if((c=i()).lock!==u)return void Ne(e,t,n);delete c.lock,a(c),f=c}null===(r=e.after)||void 0===r||r.call(e,f||c),Me(t)}}else De.push(e)}function Ne(e,t,n){k((function(){Be(e,t,n+1)}),10)}function Me(e){Pe=void 0;var t=De.shift();t&&Be(t,e)}function je(e){var t=ke(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=ve(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(e){return}}()),t}function qe(e,t,n){var r=new G,o=new G,i="Cookie"===e.type?Oe(e.cookieOptions):{isLockEnabled:!1,persistSession:Re,retrieveSession:Le,clearSession:Ie},a=i.clearSession,s=i.retrieveSession,u=T((function(){Be({process:function(e){return d(e)?void 0:{}},after:f},i)}),1e3),c=function(){var e=s();if(d(e))return e;return{}}();function f(e){return d(e)||(e={}),l()&&(!function(e){return c.id!==e.id||c[t]!==e[t]}(e)?c=e:(c={},o.notify())),e}function l(){return void 0!==c[t]}function d(e){return(void 0===e.created||X()-Number(e.created)<144e5)&&(void 0===e.expire||X()<Number(e.expire))}return{expandOrRenewSession:R((function(){var e;Be({process:function(r){var o=f(r);return e=function(e){var r=n(e[t]),o=r.trackingType,i=r.isTracked;e[t]=o,i&&!e.id&&(e.id=ve(),e.created=String(X()));return i}(o),o},after:function(t){e&&!l()&&function(e){c=e,r.notify()}(t),c=t}},i)}),1e3).throttled,expandSession:function(){Be({process:function(e){return l()?f(e):void 0}},i)},getSession:function(){return c},renewObservable:r,expireObservable:o,expire:function(){a(),f({})},stop:function(){A(u)}}}function Ue(e){return Fe(e,ze(window.location)).href}function Fe(e,t){var n=function(){if(void 0===Ge)try{var e=new He("http://test/path");Ge="http://test/path"===e.href}catch(e){Ge=!1}return Ge?He:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(N({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,o=r.createElement("a");if(void 0!==t){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,r.head.appendChild(i),r.body.appendChild(o)}return o.href=e,o}var Ge,He=URL;function ze(e){if(e.origin&&"null"!==e.origin)return e.origin;var t=e.host.replace(/(:80|:443)$/,"");return"".concat(e.protocol,"//").concat(t)}var Ve={logs:"logs",rum:"rum",sessionReplay:"session-replay"},Je={logs:"logs",rum:"rum",sessionReplay:"replay"};function Ye(e,t,n){var r=function(e,t){var n="/api/v2/".concat(Je[t]),r=e.proxy,o=e.proxyUrl;if(r){var i=Ue(r);return function(e){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}var a=function(e,t){var n=e.site,r=void 0===n?"datadoghq.com":n,o=e.internalAnalyticsSubdomain;if(o&&"datadoghq.com"===r)return"".concat(o,".").concat("datadoghq.com");var i=r.split("."),a=i.pop(),s="ap1.datadoghq.com"!==r?"".concat(Ve[t],"."):"";return"".concat(s,"browser-intake-").concat(i.join("-"),".").concat(a)}(e,t);if(void 0===r&&o){var s=Ue(o);return function(e){return"".concat(s,"?ddforward=").concat(encodeURIComponent("https://".concat(a).concat(n,"?").concat(e)))}}return function(e){return"https://".concat(a).concat(n,"?").concat(e)}}(e,t);return{build:function(o,i){var a=function(e,t,n,r,o){var i=e.clientToken,a=e.internalAnalyticsSubdomain,s=o.retry,u=o.flushReason,c=o.encoding,f=["sdk_version:".concat("4.50.1"),"api:".concat(r)].concat(n);u&&de(se.COLLECT_FLUSH_REASON)&&f.push("flush_reason:".concat(u));s&&f.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var l=["ddsource=browser","ddtags=".concat(encodeURIComponent(f.join(","))),"dd-api-key=".concat(i),"dd-evp-origin-version=".concat(encodeURIComponent("4.50.1")),"dd-evp-origin=browser","dd-request-id=".concat(ve())];c&&l.push("dd-evp-encoding=".concat(c));"rum"===t&&l.push("batch_time=".concat(Z()));a&&l.reverse();return l.join("&")}(e,t,n,o,i);return r(a)},urlPrefix:r(""),endpointType:t}}var We=/[^a-z0-9_:./-]/;function $e(e,t){var n=200-e.length-1;(t.length>n||We.test(t))&&s.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function Ke(e){var t=function(e){var t=e.env,n=e.service,r=e.version,o=e.datacenter,i=[];return t&&i.push($e("env",t)),n&&i.push($e("service",n)),r&&i.push($e("version",r)),o&&i.push($e("datacenter",o)),i}(e),n=function(e,t){return{logsEndpointBuilder:Ye(e,"logs",t),rumEndpointBuilder:Ye(e,"rum",t),sessionReplayEndpointBuilder:Ye(e,"sessionReplay",t)}}(e,t),r=m(n).map((function(e){return e.urlPrefix})),o=function(e,t,n){if(!e.replica)return;var r=_({},e,{site:"datadoghq.com",clientToken:e.replica.clientToken}),o={logsEndpointBuilder:Ye(r,"logs",n),rumEndpointBuilder:Ye(r,"rum",n)};return t.push.apply(t,m(o).map((function(e){return e.urlPrefix}))),_({applicationId:e.replica.applicationId},o)}(e,r,t);return _({isIntakeUrl:function(e){return r.some((function(t){return 0===e.indexOf(t)}))},replica:o,site:e.site||"datadoghq.com"},n)}function Xe(e){var t,n,r;if(e&&e.clientToken){var o=null!==(t=e.sessionSampleRate)&&void 0!==t?t:e.sampleRate;if(void 0===o||W(o))if(void 0===e.telemetrySampleRate||W(e.telemetrySampleRate)){if(void 0===e.telemetryConfigurationSampleRate||W(e.telemetryConfigurationSampleRate))return Array.isArray(e.enableExperimentalFeatures)&&e.enableExperimentalFeatures.filter((function(e){return t=se,n=e,Object.keys(t).some((function(e){return t[e]===n}));var t,n}
1)).forEach((function(e){le.add(e)})),_({beforeSend:e.beforeSend&&u(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:je(e),sessionSampleRate:null!=o?o:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},Ke(e));s.error("Telemetry Configuration Sample Rate should be a number between 0 and 100")}else s.error("Telemetry Sample Rate should be a number between 0 and 100");else s.error("Session Sample Rate should be a number between 0 and 100")}else s.error("Client Token is not configured, we will not send any data.")}function Ze(e){var t=[],n=at(e,"stack"),r=String(e);return n&&w(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(e){var n=function(e){var t=et.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=tt.exec(t[2]);r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=nt.exec(e);if(!t)return;return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=rt.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){var t=ot.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=it.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func="?"),t.push(n))})),{message:at(e,"message"),name:at(e,"name"),stack:t}}var Qe="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",et=new RegExp("^\\s*at (.*?) ?\\(".concat(Qe).concat("(?::(\\d+))","?").concat("(?::(\\d+))","?\\)?\\s*$"),"i"),tt=new RegExp("\\((\\S*)".concat("(?::(\\d+))").concat("(?::(\\d+))","\\)"));var nt=new RegExp("^\\s*at ?".concat(Qe).concat("(?::(\\d+))","?").concat("(?::(\\d+))","??\\s*$"),"i");var rt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var ot=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,it=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function at(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}function st(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,o=e.startClocks,i=e.nonErrorPrefix,a=e.source,s=e.handling,u=n instanceof Error,c=function(e,t,n,r){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":"".concat(n," ").concat(N(j(r)))}(t,u,i,n),f=function(e,t){if(void 0===t)return!1;if(e)return!0;return t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url)}(u,t)?ct(t):"No stack, consider using an instance of Error",l=u?function(e,t){var n=e,r=[];for(;(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=Ze(n.cause);r.push({message:n.cause.message,source:t,type:null==o?void 0:o.name,stack:o&&ct(o)}),n=n.cause}return r.length?r:void 0}(n,a):void 0;return{startClocks:o,source:a,handling:s,handlingStack:r,originalError:n,type:null==t?void 0:t.name,message:c,stack:f,causes:l,fingerprint:ut(n)}}function ut(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function ct(e){var t=ft(e);return e.stack.forEach((function(e){var n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",o=e.line?":".concat(e.line):"",i=e.line&&e.column?":".concat(e.column):"";t+="\n  at ".concat(n).concat(r," @ ").concat(e.url).concat(o).concat(i)})),t}function ft(e){return"".concat(e.name||"Error",": ").concat(e.message)}function lt(){var e,t=new Error;if(!t.stack)try{throw t}catch(e){}return g((function(){var n=Ze(t);n.stack=n.stack.slice(2),e=ct(n)})),e}var dt={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function pt(e,t){var n=[];y(t,dt.cspViolation)&&n.push(function(e){var t=new G((function(){return ie(e,document,"securitypolicyviolation",(function(e){t.notify(function(e){var t=dt.cspViolation,n="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return{type:dt.cspViolation,subtype:e.effectiveDirective,message:"".concat(t,": ").concat(n),stack:vt(e.effectiveDirective,e.originalPolicy?"".concat(n,' of the policy "').concat(ge(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)}}(e))})).stop}));return t}(e));var r=t.filter((function(e){return e!==dt.cspViolation}));return r.length&&n.push(function(e){var t=new G((function(){if(window.ReportingObserver){var n=v((function(e,n){return e.forEach((function(e){var n,r,o;t.notify((r=(n=e).type,o=n.body,{type:r,subtype:o.id,message:"".concat(r,": ").concat(o.message),stack:vt(o.id,o.message,o.sourceFile,o.lineNumber,o.columnNumber)}))}))})),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}}));return t}(r)),H.apply(void 0,n)}function vt(e,t,n,r,o){return n?ct({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}function gt(e,t,n){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every((function(e){return y(t,e)}))?"all"===e?t:(r=e,o=new Set,r.forEach((function(e){return o.add(e)})),b(o)):void s.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'));var r,o}var ht="agent",yt="console",bt="logger",mt="network",wt="source",_t="report",St=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Et={debug:"debug",error:"error",info:"info",warn:"warn"},xt="console",Ct="http",kt=Object.keys(Et),Ot=function(){function e(e,t,n,r,o){void 0===n&&(n=Ct),void 0===r&&(r=Et.debug),void 0===o&&(o={}),this.handleLogStrategy=e,this.handlerType=n,this.level=r,this.contextManager=V(3),this.contextManager.set(_({},o,t?{logger:{name:t}}:void 0))}return e.prototype.log=function(e,t,n,r){var o;if(void 0===n&&(n=Et.info),n===Et.error&&(o={origin:bt}),null!=r){var i=st({stackTrace:r instanceof Error?Ze(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:bt,handling:"handled",startClocks:ee()});o={origin:bt,stack:i.stack,kind:i.type,message:i.message}}var a=j(t),s=o?B({error:o},a):a;this.handleLogStrategy({message:j(e),context:s,status:n},this)},e.prototype.debug=function(e,t,n){this.log(e,t,Et.debug,n)},e.prototype.info=function(e,t,n){this.log(e,t,Et.info,n)},e.prototype.warn=function(e,t,n){this.log(e,t,Et.warn,n)},e.prototype.error=function(e,t,n){this.log(e,t,Et.error,n)},e.prototype.setContext=function(e){this.contextManager.set(e)},e.prototype.getContext=function(){return this.contextManager.get()},e.prototype.addContext=function(e,t){this.contextManager.add(e,t)},e.prototype.removeContext=function(e){this.contextManager.remove(e)},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},St([p],e.prototype,"log",null),e}();function Tt(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}var At,Rt="log",Lt="configuration",It=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],Pt=["ddog-gov.com"],Dt={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function Bt(e,t){var n,r=new G;Dt.telemetryEnabled=!y(Pt,t.site)&&Y(t.telemetrySampleRate),Dt.telemetryConfigurationEnabled=Dt.telemetryEnabled&&Y(t.telemetryConfigurationSampleRate);var o={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return At=function(t){if(Dt.telemetryEnabled){var i=function(e,t,r){return B({type:"telemetry",date:Z(),service:e,version:"4.50.1",source:"browser",_dd:{format_version:2},telemetry:B(t,{runtime_env:r}),experimental_features:b(le)},void 0!==n?n():{})}(e,t,o);r.notify(i),Tt("telemetry",i)}},c=Mt,_(Dt,{maxEventsPerPage:t.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(e){n=e},observable:r,enabled:Dt.telemetryEnabled}}function Nt(e,t){h(r.debug,e,t),jt(_({type:Rt,message:e,status:"debug"},t))}function Mt(e,t){jt(_({type:Rt,status:"error"},function(e){if(e instanceof Error){var t=Ze(e);return{error:{kind:t.name,stack:ct(qt(t))},message:t.message}}return{error:{stack:"No stack, consider using an instance of Error"},message:"".concat("Uncaught"," ").concat(N(e))}}(e),t))}function jt(e){At&&Dt.sentEventCount<Dt.maxEventsPerPage&&(Dt.sentEventCount+=1,At(e))}function qt(e){return e.stack=e.stack.filter((function(e){return!e.url||It.some((function(t){return w(e.url,t)}))})),e}var Ut={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Ft(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||me("datadog-synthetics-injects-rum"))}function Gt(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||me("datadog-synthetics-result-id");return"string"==typeof e?e:void 0}var Ht=function(){function e(e,t,n){var r=this;this.request=e,this.flushController=t,this.messageBytesLimit=n,this.pushOnlyBuffer=[],this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe((function(e){return r.flush(e)}))}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},e.prototype.stop=function(){this.flushSubscription.unsubscribe()},e.prototype.flush=function(e){var t=this.pushOnlyBuffer.concat(m(this.upsertBuffer));this.pushOnlyBuffer=[],this.upsertBuffer={};var n,r={data:t.join("\n"),bytesCount:e.bytesCount,flushReason:e.reason};n=e.reason,y(m(Ut),n)?this.request.sendOnExit(r):this.request.send(r)},e.prototype.addOrUpdate=function(e,t){var n=this.process(e),r=n.processedMessage,o=n.messageBytesCount;o>=this.messageBytesLimit?s.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(t)&&this.remove(t),this.push(r,o,t))},e.prototype.process=function(e){var t=N(e);return{processedMessage:t,messageBytesCount:x(t)}},e.prototype.push=function(e,t,n){var r=this.flushController.messagesCount>0?1:0;this.flushController.notifyBeforeAddMessage(t+r),void 0!==n?this.upsertBuffer[n]=e:this.pushOnlyBuffer.push(e),this.flushController.notifyAfterAddMessage()},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=x(t),r=this.flushController.messagesCount>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}();function zt(e){return e>=500}function Vt(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?Jt(e,t,n,{onSuccess:function(){return Yt(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,n,r,o){if(2!==t.transportStatus)return;k((function(){Jt(t.queuedPayloads.first(),t,n,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,Yt(1,t,n,r,o)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,n,r,o)}})}),t.currentBackoffTime)}(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function Jt(e,t,n,r){var o=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||zt(e.status))}(n)?(t.transportStatus=0,o()):(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i())}))}function Yt(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:ht,startClocks:ee()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=Wt();i.size()>0;)Vt(i.dequeue(),t,n,r,o)}function Wt(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=3145728}}}function $t(e,t,n,r){var o={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:Wt(),queueFullReported:!1},i=function(r,o){return function(e,t,n,r,o){if(function(){try{return window.Request&&"keepalive"in new Request
1("http://a")}catch(e){return!1}}()&&r.bytesCount<n){var i=t.build("fetch",r);fetch(i,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(v((function(e){return null==o?void 0:o({status:e.status,type:e.type})})),v((function(){var n=t.build("xhr",r);Xt(e,n,r.data,o)})))}else{var a=t.build("xhr",r);Xt(e,a,r.data,o)}}(e,t,n,r,o)};return{send:function(e){Vt(e,o,i,t.endpointType,r)},sendOnExit:function(r){!function(e,t,n,r){if(navigator.sendBeacon&&r.bytesCount<n)try{var o=t.build("beacon",r);if(navigator.sendBeacon(o,r.data))return}catch(e){!function(e){Kt||(Kt=!0,Mt(e))}(e)}var i=t.build("xhr",r);Xt(e,i,r.data)}(e,t,n,r)}}}var Kt=!1;function Xt(e,t,n,r){var o=new XMLHttpRequest;o.open("POST",t,!0),ie(e,o,"loadend",(function(){null==r||r({status:o.status})}),{once:!0}),o.send(n)}function Zt(e){var t,n=e.messagesLimit,r=e.bytesLimit,o=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,s=i.subscribe((function(e){return d(e.reason)})),u=a.subscribe((function(){return d("session_expire")})),c=new G((function(){return function(){s.unsubscribe(),u.unsubscribe()}})),f=0,l=0;function d(e){if(0!==l){var t=l,n=f;l=0,f=0,p(),c.notify({reason:e,messagesCount:t,bytesCount:n})}}function p(){O(t),t=void 0}return{flushObservable:c,get messagesCount(){return l},notifyBeforeAddMessage:function(e){f+e>=r&&d("bytes_limit"),l+=1,f+=e,void 0===t&&(t=k((function(){d("duration_limit")}),o))},notifyAfterAddMessage:function(){l>=n?d("messages_limit"):f>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){f-=e,0===(l-=1)&&p()}}}function Qt(e,t,n,r,o,i){var a=u(e,t.endpoint),s=n&&u(e,n.endpoint);function u(e,t){return new Ht($t(e,t,e.batchBytesLimit,r),Zt({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),e.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),a.add(e),s&&t&&s.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){a.upsert(e,t),s&&s.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){a.stop(),null==s||s.stop()}}}var en=function(){function e(e,t){var n=this;this.expireDelay=e,this.maxEntries=t,this.entries=[],this.clearOldValuesInterval=T((function(){return n.clearOldValues()}),6e4)}return e.prototype.add=function(e,t){var n=this,r={value:e,startTime:t,endTime:1/0,remove:function(){var e=n.entries.indexOf(r);e>=0&&n.entries.splice(e,1)},close:function(e){r.endTime=e}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=1/0);for(var t=0,n=this.entries;t<n.length;t++){var r=n[t];if(r.startTime<=e){if(e<=r.endTime)return r.value;break}}},e.prototype.closeActive=function(e){var t=this.entries[0];t&&t.endTime===1/0&&t.close(e)},e.prototype.findAll=function(e,t){void 0===e&&(e=1/0),void 0===t&&(t=0);var n=te(e,t);return this.entries.filter((function(t){return t.startTime<=n&&e<=t.endTime})).map((function(e){return e.value}))},e.prototype.reset=function(){this.entries=[]},e.prototype.stop=function(){A(this.clearOldValuesInterval)},e.prototype.clearOldValues=function(){for(var e=Q()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<e;)this.entries.pop()},e}(),tn=[];function nn(e,t,n){var r=qe(e.sessionStoreStrategyType,t,n);tn.push((function(){return r.stop()}));var o,i=new en(144e5);function a(){return{id:r.getSession().id,trackingType:r.getSession()[t]}}return tn.push((function(){return i.stop()})),r.renewObservable.subscribe((function(){i.add(a(),Q())})),r.expireObservable.subscribe((function(){i.closeActive(Q())})),r.expandOrRenewSession(),i.add(a(),[0,ne()][0]),o=ae(0,window,["click","touchstart","keydown","scroll"],(function(){return r.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,tn.push(o),function(e,t){var n=function(){"visible"===document.visibilityState&&t()},r=ie(e,document,"visibilitychange",n).stop;tn.push(r);var o=T(n,6e4);tn.push((function(){A(o)}))}(e,(function(){return r.expandSession()})),{findActiveSession:function(e){return i.find(e)},renewObservable:r.renewObservable,expireObservable:r.expireObservable,expire:r.expire}}var rn;function on(e){var t=nn(e,"logs",(function(t){return function(e,t){var n=function(e){return"0"===e||"1"===e}(t)?t:an(e);return{trackingType:n,isTracked:"1"===n}}(e,t)}));return{findTrackedSession:function(e){var n=t.findActiveSession(e);return n&&"1"===n.trackingType?{id:n.id}:void 0},expireObservable:t.expireObservable}}function an(e){return Y(e.sessionSampleRate)?"1":"0"}var sn=((rn={})[Et.debug]=0,rn[Et.info]=1,rn[Et.warn]=2,rn[Et.error]=3,rn);function un(e){return{handleLog:function(t,n,r,a){var s=t.context;cn(t.status,xt,n)&&function(e,t){i[e.status].call(o,e.message,t)}(t,B(n.getContext(),s)),e.notify(0,{rawLogsEvent:{date:a||Z(),message:t.message,status:t.status,origin:bt},messageContext:s,savedCommonContext:r,logger:n})}}}function cn(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return sn[e]>=sn[n.getLevel()]&&y(o,t)}function fn(e,t,n,r,o,i){var a=kt.concat(["custom"]),s={};a.forEach((function(e){var n,r,o,a,u;s[e]=(n=e,r=t.eventRateLimiterThreshold,o=i,a=0,u=!1,{isLimitReached:function(){if(0===a&&k((function(){a=0}),6e4),(a+=1)<=r||u)return u=!1,!1;if(a===r+1){u=!0;try{o({message:"Reached max number of ".concat(n,"s by minute: ").concat(r),source:ht,startClocks:ee()})}finally{u=!1}}return!0}})})),n.subscribe(0,(function(i){var a,u,c,f=i.rawLogsEvent,l=i.messageContext,d=void 0===l?void 0:l,p=i.savedCommonContext,v=void 0===p?void 0:p,g=i.logger,h=void 0===g?o:g,y=f.date-ne(),b=e.findTrackedSession(y);if(b){var m=v||r(),w=B({service:t.service,session_id:b.id,usr:pe(m.user)?void 0:m.user,view:m.view},m.context,dn(y),f,h.getContext(),d);!cn(f.status,Ct,h)||!1===(null===(a=t.beforeSend)||void 0===a?void 0:a.call(t,w))||(null===(u=w.error)||void 0===u?void 0:u.origin)!==ht&&(null!==(c=s[w.status])&&void 0!==c?c:s.custom).isLimitReached()||n.notify(1,w)}}))}var ln=!1;function dn(e){var t,n=window;if(Ft()){var r=o(n.DD_RUM_SYNTHETICS);return r||ln||(ln=!0,Nt("Logs sent before RUM is injected by the synthetics worker",{testId:(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||me("datadog-synthetics-public-id"),"string"==typeof t?t:void 0),resultId:Gt()})),r}return o(n.DD_RUM);function o(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}var pn,vn={};function gn(e){var t=e.map((function(e){return vn[e]||(vn[e]=function(e){var t=new G((function(){var n=o[e];return o[e]=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n.apply(console,r);var i=lt();g((function(){t.notify(hn(r,e,i))}
1))},function(){o[e]=n}}));return t}(e)),vn[e]}));return H.apply(void 0,t)}function hn(e,t,n){var o,i,a=e.map((function(e){return function(e){if("string"==typeof e)return j(e);if(e instanceof Error)return ft(Ze(e));return N(j(e),void 0,2)}(e)})).join(" ");if(t===r.error){var s=function(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}(e,(function(e){return e instanceof Error}));o=s?ct(Ze(s)):void 0,i=ut(s),a="console error: ".concat(a)}return{api:t,message:a,stack:o,handlingStack:n,fingerprint:i}}var yn,bn=((pn={})[r.log]=Et.info,pn[r.debug]=Et.debug,pn[r.info]=Et.info,pn[r.warn]=Et.warn,pn[r.error]=Et.error,pn);var mn,wn=((yn={})[dt.cspViolation]=Et.error,yn[dt.intervention]=Et.error,yn[dt.deprecation]=Et.warn,yn);function _n(e,t,n){var r=e[t],o=n(r),i=function(){if("function"==typeof o)return o.apply(this,arguments)};return e[t]=i,{stop:function(){e[t]===i?e[t]=r:o=r}}}function Sn(e,t,n){var r=n.before,o=n.after;return _n(e,t,(function(e){return function(){var t,n=arguments;return r&&g(r,this,n),"function"==typeof e&&(t=e.apply(this,n)),o&&g(o,this,n),t}}))}var En,xn=new WeakMap;function Cn(e){return mn||(mn=function(e){var t=new G((function(){var n=Sn(XMLHttpRequest.prototype,"open",{before:kn}).stop,r=Sn(XMLHttpRequest.prototype,"send",{before:function(){On.call(this,e,t)}}).stop,o=Sn(XMLHttpRequest.prototype,"abort",{before:Tn}).stop;return function(){n(),r(),o()}}));return t}(e)),mn}function kn(e,t){xn.set(this,{state:"open",method:e,url:Ue(String(t))})}function On(e,t){var n=this,r=xn.get(this);if(r){var o=r;o.state="start",o.startTime=Q(),o.startClocks=ee(),o.isAborted=!1,o.xhr=this;var i=!1,a=Sn(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&s()}}).stop,s=function(){if(u(),a(),!i){i=!0;var e,s=r;s.state="complete",s.duration=(e=o.startClocks.timeStamp,Z()-e),s.status=n.status,t.notify(_({},s))}},u=ie(e,this,"loadend",s).stop;t.notify(o)}}function Tn(){var e=xn.get(this);e&&(e.isAborted=!0)}function An(){var e;return En||(e=new G((function(){if(window.fetch)return _n(window,"fetch",(function(t){return function(n,r){var o,i=g(Rn,null,[e,n,r]);return i?(o=t.call(this,i.input,i.init),g(Ln,null,[e,o,i])):o=t.call(this,n,r),o}})).stop})),En=e),En}function Rn(e,t,n){var r=n&&n.method||t instanceof Request&&t.method||"GET",o=t instanceof Request?t.url:Ue(String(t)),i={state:"start",init:n,input:t,method:r,startClocks:ee(),url:o};return e.notify(i),i}function Ln(e,t,n){var r=function(t){var r=n;r.state="resolve","stack"in t||t instanceof Error?(r.status=0,r.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t):"status"in t&&(r.response=t,r.responseType=t.type,r.status=t.status,r.isAborted=!1),e.notify(r)};t.then(v(r),v(r))}function In(e,t){if(!e.forwardErrorsToLogs)return{stop:L};var n=Cn(e).subscribe((function(e){"complete"===e.state&&o("xhr",e)})),r=An().subscribe((function(e){"resolve"===e.state&&o("fetch",e)}));function o(n,r){function o(e){t.notify(0,{rawLogsEvent:{message:"".concat(Dn(n)," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{origin:mt,stack:e||"Failed to load"},http:{method:r.method,status_code:r.status,url:r.url},status:Et.error,origin:mt}})}e.isIntakeUrl(r.url)||!function(e){return 0===e.status&&"opaque"!==e.responseType}(r)&&!zt(r.status)||("xhr"in r?function(e,t,n){"string"==typeof e.response?n(Pn(e.response,t)):n(e.response)}(r.xhr,e,o):r.response?function(e,t,n){var r=function(e){try{return e.clone()}catch(e){return}}(e);r&&r.body?window.TextDecoder?function(e,t,n){!function(e,t,n){var r=e.getReader(),o=[],i=0;function a(){var e,a;if(r.cancel().catch(L),n.collectStreamBody){var s;if(1===o.length)s=o[0];else{s=new Uint8Array(i);var u=0;o.forEach((function(e){s.set(e,u),u+=e.length}))}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(v((function(t){t.done?a():(n.collectStreamBody&&o.push(t.value),(i+=t.value.length)>n.bytesLimit?a():e())})),v((function(e){return t(e)})))}()}(e,(function(e,t,r){if(e)n(e);else{var o=(new TextDecoder).decode(t);r&&(o+="..."),n(void 0,o)}}),{bytesLimit:t,collectStreamBody:!0})}(r.body,t.requestErrorResponseLengthLimit,(function(e,t){n(e?"Unable to retrieve response: ".concat(e):t)})):r.text().then(v((function(e){return n(Pn(e,t))})),v((function(e){return n("Unable to retrieve response: ".concat(e))}))):n()}(r.response,e,o):r.error&&function(e,t,n){n(Pn(ct(Ze(e)),t))}(r.error,e,o))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function Pn(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function Dn(e){return"xhr"===e?"XHR":"Fetch"}var Bn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Nn(e){var t=function(e){return Sn(window,"onerror",{before:function(t,n,r,o,i){var a;if(i instanceof Error)a=Ze(i);else{var s=[{url:n,column:o,line:r}],u=function(e){var t,n,r;"[object String]"==={}.toString.call(e)&&(t=Bn.exec(e),n=t[1],r=t[2]);return{name:n,message:r}}(t);a={name:u.name,message:u.message,stack:s}}e(a,null!=i?i:t)}})}(e).stop,n=function(e){return Sn(window,"onunhandledrejection",{before:function(t){var n=t.reason||"Empty reason",r=Ze(n);e(r,n)}})}(e).stop;return{stop:function(){t(),n()}}}function Mn(e,t){if(!e.forwardErrorsToLogs)return{stop:L};var n,r=new G,o=(n=r,Nn((function(e,t){n.notify(st({stackTrace:e,originalError:t,startClocks:ee(),nonErrorPrefix:"Uncaught",source:wt,handling:"unhandled"}))}))).stop,i=r.subscribe((function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{kind:e.type,origin:wt,stack:e.stack},origin:wt,status:Et.error}})}));return{stop:function(){o(),i.unsubscribe()}}}var jn=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];
1n&&n.forEach((function(e){return e(t)}))},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter((function(e){return t!==e}))}}},e}();var qn,Un,Fn,Gn,Hn=function(e){var t,n,o=!1,i=V(2),a=V(1),u={},c=function(){},f=new J,l=function(e,t,n,r){void 0===n&&(n=D(h())),void 0===r&&(r=Z()),f.add((function(){return l(e,t,n,r)}))},p=function(){},g=new Ot((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.apply(void 0,e)}));function h(){return{view:{referrer:document.referrer,url:window.location.href},context:i.getContext(),user:a.getContext()}}return t={logger:g,init:v((function(t){var n;if(t){if(p=function(){return D(t)},oe()&&(t=function(e){return _({},e,{clientToken:"empty"})}(t)),function(e){return!o||(e.silentMultipleInit||s.error("DD_LOGS is already initialized."),!1)}(t)){var u=function(e){var t=Xe(e),n=gt(e.forwardConsoleLogs,m(r),"Forward Console Logs"),o=gt(e.forwardReports,m(dt),"Forward Reports");if(t&&n&&o)return e.forwardErrorsToLogs&&!y(n,r.error)&&n.push(r.error),_({forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:n,forwardReports:o,requestErrorResponseLengthLimit:32768},t)}(t);if(u){if(t.storeContextsAcrossPages){var d=i.getContext();(i=ce(u,"logs",2)).setContext(B(i.getContext(),d));var v=a.getContext();(a=ce(u,"logs",1)).setContext(B(a.getContext(),v))}n=e(t,u,h,g),l=n.handleLog,c=n.getInternalContext,f.drain(),o=!0}}}else s.error("Missing configuration")})),getLoggerGlobalContext:v((function(){return i.get()})),getGlobalContext:v((function(){return i.getContext()})),setLoggerGlobalContext:v((function(e){return i.set(e)})),setGlobalContext:v((function(e){return i.setContext(e)})),addLoggerGlobalContext:v((function(e,t){return i.add(e,t)})),setGlobalContextProperty:v((function(e,t){return i.setContextProperty(e,t)})),removeLoggerGlobalContext:v((function(e){return i.remove(e)})),removeGlobalContextProperty:v((function(e){return i.removeContextProperty(e)})),clearGlobalContext:v((function(){return i.clearContext()})),createLogger:v((function(e,t){return void 0===t&&(t={}),u[e]=new Ot((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.apply(void 0,e)}),j(e),t.handler,t.level,j(t.context)),u[e]})),getLogger:v((function(e){return u[e]})),getInitConfiguration:v((function(){return p()})),getInternalContext:v((function(e){return c(e)})),setUser:v((function(e){(function(e){var t="object"===I(e);return t||s.error("Unsupported user:",e),t})(e)&&a.setContext(fe(e))})),getUser:v((function(){return a.getContext()})),setUserProperty:v((function(e,t){var n,r=fe((n={},n[e]=t,n))[e];a.setContextProperty(e,r)})),removeUserProperty:v((function(e){return a.removeContextProperty(e)})),clearUser:v((function(){return a.clearContext()}))},n=_({version:"4.50.1",onReady:function(e){e()}},t),Object.defineProperty(n,"_setDebug",{get:function(){return d},enumerable:!1}),n}((function(e,t,n,o){var i=new jn,a=[];i.subscribe(1,(function(e){return Tt("logs",e)}));var s=function(e){i.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{origin:ht},origin:ht,status:Et.error}}),Nt("Error reported to customer",{"error.message":e.message})},u=function(e){var t=new G((function(){var n=de(se.PAGEHIDE),r=ae(0,window,["visibilitychange","freeze","pagehide"],(function(e){"pagehide"===e.type&&n?t.notify({reason:Ut.PAGEHIDE}):"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:Ut.HIDDEN}):"freeze"===e.type&&t.notify({reason:Ut.FROZEN})}),{capture:!0}).stop,o=L;return n||(o=ie(e,window,"beforeunload",(function(){t.notify({reason:Ut.UNLOADING})})).stop),function(){r(),o()}}));return t}(t),c=!t.sessionStoreStrategyType||oe()||Ft()?function(e){var t="1"===an(e)?{}:void 0;return{findTrackedSession:function(){return t},expireObservable:new G}}(t):on(t),f=function(e,t,n,r){var o=Bt("browser-logs-sdk",e),i=[];if(oe()){var a=re(),s=o.observable.subscribe((function(e){return a.send("internal_telemetry",e)}));i.push((function(){return s.unsubscribe()}))}else{var u=Qt(e,{endpoint:e.rumEndpointBuilder},e.replica&&{endpoint:e.replica.rumEndpointBuilder},t,n,r);i.push((function(){return u.stop()}));var c=o.observable.subscribe((function(t){return u.add(t,function(e){return"datad0g.com"===e.site}(e))}));i.push((function(){return c.unsubscribe()}))}
1return{telemetry:o,stop:function(){i.forEach((function(e){return e()}))}}}(t,s,u,c.expireObservable),l=f.telemetry,d=f.stop;a.push((function(){return d()})),l.setContextProvider((function(){var e,t,n,r,o,i;return{application:{id:null===(e=dn())||void 0===e?void 0:e.application_id},session:{id:null===(t=c.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(r=null===(n=dn())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(i=null===(o=dn())||void 0===o?void 0:o.user_action)||void 0===i?void 0:i.id}}})),In(t,i),Mn(t,i),function(e,t){var n=gn(e.forwardConsoleLogs).subscribe((function(e){t.notify(0,{rawLogsEvent:{date:Z(),message:e.message,origin:yt,error:e.api===r.error?{origin:yt,stack:e.stack,fingerprint:e.fingerprint}:void 0,status:bn[e.api]}})}))}(t,i),function(e,t){var n=pt(e,e.forwardReports).subscribe((function(e){var n,r,o,i=e.message,a=wn[e.type];a===Et.error?n={kind:e.subtype,origin:_t,stack:e.stack}:e.stack&&(i+=" Found in ".concat((r=e.stack,null===(o=/@ (.+)/.exec(r))||void 0===o?void 0:o[1]))),t.notify(0,{rawLogsEvent:{date:Z(),message:i,origin:_t,error:n,status:a}})}))}(t,i);var p,v=un(i).handleLog;if(fn(c,t,i,n,o,s),oe())!function(e){var t=re();e.subscribe(1,(function(e){t.send("log",e)}))}(i);else{var g=function(e,t,n,r,o){var i=Qt(e,{endpoint:e.logsEndpointBuilder},e.replica&&{endpoint:e.replica.logsEndpointBuilder},n,r,o);return t.subscribe(1,(function(e){i.add(e)})),i}(t,i,s,u,c.expireObservable).stop;a.push((function(){return g()}))}return function(e){Dt.telemetryConfigurationEnabled&&jt({type:Lt,configuration:e})}(function(e){var t,n,r,o,i=(o=null!==(n=(t=e).proxy)&&void 0!==n?n:t.proxyUrl,{session_sample_rate:null!==(r=t.sessionSampleRate)&&void 0!==r?r:t.sampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:void 0!==o?!!o:void 0,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,track_resources:t.trackResources,track_long_task:t.trackLongTasks,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages});return _({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports},i)}(e)),{handleLog:v,getInternalContext:(p=c,{get:function(e){var t=p.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,stop:function(){a.forEach((function(e){return e()}))}}}));qn=S(),Fn=Hn,Gn=qn[Un="DD_LOGS"],qn[Un]=Fn,Gn&&Gn.q&&Gn.q.forEach((function(e){return u(e,"onReady callback threw an error:")()}));var zn=n(3);zn.a.ENABLE_DATADOG_CLIENT&&Hn.init({clientToken:zn.a.DATADOG_CLIENT_KEY,beforeSend:function(e){return(!e.http||404!==e.http.status_code)&&("debug"!==e.status&&"info"!==e.status&&(!/^XHR error POST https:\/\/.+\.clarity\.ms\/collect$/.test(e.message)&&void 0))},service:"tanp",env:zn.a.DATADOG_ENV_TAG,sessionSampleRate:zn.a.DATADOG_SESSION_SAMPLE_RATE})},93:function(e,t,n){e.exports=n(94)},94:function(e,t,n){"use strict";n.r(t);n(56)}});

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.