enqueueScripts([function(){ !function(e){function t(t){for(var r,s,a=t[0],c=t[1],u=t[2],f=0,d=[];f=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof g?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}},,,function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"InvariantError",(function(){return s})),n.d(t,"invariant",(function(){return a})),n.d(t,"process",(function(){return u}));var r=n(1),o=Object.setPrototypeOf,i=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(n){void 0===n&&(n="Invariant Violation");var r=e.call(this,"number"==typeof n?"Invariant Violation: "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name="Invariant Violation",i(r,t.prototype),r}return Object(r.__extends)(t,e),t}(Error);function a(e,t){if(!e)throw new s(t)}function c(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=c("warn"),e.error=c("error")}(a||(a={}));var u={env:{}};if("object"==typeof e)u=e;else try{Function("stub","process = stub")(u)}catch(e){}var l=a;t.default=l}.call(this,n(79))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(90);var o=n(65),i=n(91);function s(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},function(e,t,n){e.exports=n(135)},function(e,t,n){e.exports=global.ExEnv=n(562)},function(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}));const o="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof global&&r(global)||function(){return this}()||{};function i(){return o}function s(e,t,n){const r=n||o,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},,function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},,,function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return l})),n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"l",(function(){return m})),n.d(t,"m",(function(){return u})),n.d(t,"n",(function(){return g})),n.d(t,"o",(function(){return y})),n.d(t,"p",(function(){return _}));const r=Object.prototype.toString;function o(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function i(e,t){return r.call(e)===`[object ${t}]`}function s(e){return i(e,"ErrorEvent")}function a(e){return i(e,"DOMError")}function c(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function f(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function d(e){return i(e,"Object")}function p(e){return"undefined"!=typeof Event&&b(e,Event)}function h(e){return"undefined"!=typeof Element&&b(e,Element)}function m(e){return i(e,"RegExp")}function y(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function b(e,t){try{return e instanceof t}catch(e){return!1}}function _(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n{const r=s[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const c=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.a?i.forEach(n=>{t[n]=(...t)=>{e&&a(()=>{o.a.console[n](`Sentry Logger [${n}]:`,...t)})}}):i.forEach(e=>{t[e]=()=>{}}),t}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return d}));var r=n(144),o=n(34),i=n(16),s=n(19),a=n(40);function c(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&l(o,r),e[t]=o}function u(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){o.a&&s.c.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}catch(e){}}function f(e){return e.__sentry_original__}function d(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function p(e){if(Object(i.d)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(Object(i.f)(e)){const t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&Object(i.g)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return Object(i.c)(e)?Object(r.c)(e):Object.prototype.toString.call(e)}catch(e){return""}}function m(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function y(e,t=40){const n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(a.d)(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Object(a.d)(r,t)}return""}function g(e){return function e(t,n){if(function(e){if(!Object(i.j)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){const r=n.get(t);if(void 0!==r)return r;const o={};n.set(t,o);for(const r of Object.keys(t))void 0!==t[r]&&(o[r]=e(t[r],n));return o}if(Array.isArray(t)){const r=n.get(t);if(void 0!==r)return r;const o=[];return n.set(t,o),t.forEach(t=>{o.push(e(t,n))}),o}return t}(e,new Map)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return i}));var r=n(20),o=(n(40),n(8));function i(){const e=o.a,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function a(e){const{message:t,event_id:n}=e;if(t)return t;const r=s(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function c(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function u(e,t){const n=s(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function l(e){if(e&&e.__sentry_captured__)return!0;try{Object(r.a)(e,"__sentry_captured__",!0)}catch(e){}return!1}function f(e){return Array.isArray(e)?e:[e]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return w}));var r=n(16),o=n(22),i=n(49),s=n(19),a=n(8),c=n(51),u=n(11),l=n(60),f=n(37),d=n(74);const p=parseFloat(d.a),h=100;class m{constructor(e,t,n,r=p){let o,i;this._version=r,t?o=t:(o=new l.a,o.setClient(e)),n?i=n:(i=new l.a,i.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),n)}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(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:Object(o.f)(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Object(o.f)(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Object(o.f)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=h}=r.getOptions&&r.getOptions()||{};if(a<=0)return;const c={timestamp:Object(i.b)(),...e},u=o?Object(s.b)(()=>o(c,t)):c;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,t),n.addBreadcrumb(u,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=g(this);try{e(this)}finally{g(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return u.a&&s.c.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(u.a&&!n){this.getClient()?s.c.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):s.c.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&Object(f.a)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=c.a}=n&&n.getOptions()||{},{userAgent:i}=a.a.navigator||{},s=Object(f.b)({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&Object(f.c)(u,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=y().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);u.a&&s.c.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function y(){return a.a.__SENTRY__=a.a.__SENTRY__||{extensions:{},hub:void 0},a.a}function g(e){const t=y(),n=S(t);return j(t,e),n}function v(){const e=y();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return _(e)}function b(){return v().getIsolationScope()}function _(e=y()){return O(e)&&!S(e).isOlderThan(p)||j(e,new m),S(e)}function w(e,t={}){const n=y();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function O(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function S(e){return Object(a.c)("hub",()=>new m,e)}function j(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(63);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(45),o=n(59);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";n.r(t),n.d(t,"Observable",(function(){return o}));var r=n(147),o=n.n(r).a;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var r="__RENDER_8_RUNTIME__",o="__RENDER_8_COMPONENTS__",i=!("undefined"==typeof window||!window.document);i&&!window.global&&(window.global=window),window[o]=window[o]||{},t.register=function(e,t,n,i,s){var a="".concat(n,"/").concat(s),c="".concat(i,"/").concat(s),u=function(){return function(e,t){try{var n=e();return n.__esModule?n.default:n.default||n}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,a)};if(window[r]&&window[r].registerComponent){var l=!!window.__RENDER_LAZY__;window[r].registerComponent(t,l?u:u(),n,s,l)}else{var f=u();window[r]&&window[r].withHMR?window[o][a]=window[o][c]=window[r].withHMR(t,f):window[o][a]=window[o][c]=f}return{}},t.getPublicPath=function(e){var t=window.__hostname__,n="/_v/public/assets/v1/published/";return i&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,n=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+n+"".concat(e,"/public/react/")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=Object.prototype,o=r.toString,i=r.hasOwnProperty,s=new Map;function a(e,t){try{return function e(t,n){if(t===n)return!0;var r=o.call(t),s=o.call(n);if(r!==s)return!1;switch(r){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(c(t,n))return!0;var a=Object.keys(t),u=Object.keys(n),l=a.length;if(l!==u.length)return!1;for(var f=0;f(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function p(){return Object(i.a)().getClient()}function h(){return Object(i.a)().getScope()}function m(e){const t=p(),n=Object(i.b)(),a=h(),{release:c,environment:u=o.a}=t&&t.getOptions()||{},{userAgent:l}=r.a.navigator||{},f=Object(s.b)({release:c,environment:u,user:a.getUser()||n.getUser(),...l&&{userAgent:l},...e}),d=n.getSession();return d&&"ok"===d.status&&Object(s.c)(d,{status:"exited"}),y(),n.setSession(f),a.setSession(f),f}function y(){const e=Object(i.b)(),t=h(),n=t.getSession()||e.getSession();n&&Object(s.a)(n),g(),e.setSession(),t.setSession()}function g(){const e=Object(i.b)(),t=h(),n=p(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function v(e=!1){e?y():g()}},function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return m}));var r="function"==typeof Symbol?Symbol:void 0,o=r&&r.iterator,i=o||"@@iterator";function s(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function a(e){return Object(e)===e&&(s(e)||function(e){return!!u(e)}(e))}function c(e){var t=u(e);if(t)return t.call(e)}function u(e){if(null!=e){var t=o&&e[o]||e["@@iterator"];if("function"==typeof t)return t}}function l(e){this._o=e,this._i=0}function f(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,o=c(e);if(o){for(var i;!(i=o.next()).done;)if(t.call(n,i.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(s(e))for(;r=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}};var d=r&&r.asyncIterator,p=d||"@@asyncIterator";function h(e){return!!y(e)}function m(e){var t=y(e);if(t)return t.call(e)}function y(e){if(null!=e){var t=d&&e[d]||e["@@asyncIterator"];if("function"==typeof t)return t}}function g(e){this._i=e}g.prototype[p]=function(){return this},g.prototype.next=function(){var e=this._i.next();return Promise.resolve(e.value).then((function(t){return{value:t,done:e.done}}))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},function(e,t,n){"use strict";var r=n(598),o=n(137),i=n(599);function s(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function a(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function c(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=o({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),s=t.length>0?t.join("="):void 0;s=void 0===s?null:i(s),n(i(o),s,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):r}t.extract=a,t.parse=c,t.stringify=function(e,t){!1===(t=o({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[s(t,e),"[",r,"]"].join(""):[s(t,e),"[",s(r,e),"]=",s(n,e)].join("")};case"bracket":return function(t,n){return null===n?s(t,e):[s(t,e),"[]=",s(n,e)].join("")};default:return function(t,n){return null===n?s(t,e):[s(t,e),"=",s(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(r){var o=e[r];if(void 0===o)return"";if(null===o)return s(r,t);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(n(r,e,i.length))})),i.join("&")}return s(r,t)+"="+s(o,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:c(a(e),t)}}},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,l=u&&u(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(l){var d=u(n);d&&d!==l&&e(t,d,f)}var p=s(n);a&&(p=p.concat(a(n)));for(var h=0;hfunction(e){return Object(i.c)({sid:""+e.sid,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?""+e.did:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&a(n,e),n}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Object(r.c)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Object(o.f)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=""+t.did),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o}));var r=n(16);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:e.slice(0,t)+"..."}function i(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),ifunction(e,t,n=!1){return!!Object(r.m)(e)&&(Object(r.l)(t)?t.test(e):!!Object(r.m)(t)&&(n?e===t:e.includes(t)))}(e,t,n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(7),o=function(e){return new Promise((function(t){r.canUseDOM?setTimeout((function(){return e(t)}),1):e(t)}))}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(83)("wks"),o=n(72),i=n(43).Symbol,s="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}));var r=n(20);n(34),n(16),n(19);n(22);new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");n(49);function o(e){const{spanId:t,traceId:n}=e.spanContext(),{data:o,op:s,parent_span_id:a,status:c,tags:u,origin:l}=i(e);return Object(r.c)({data:o,op:s,parent_span_id:a,span_id:t,status:c,tags:u,trace_id:n,origin:l})}function i(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function s(e){const{traceFlags:t}=e.spanContext();return Boolean(1&t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i}));var r=n(8);function o(){return Date.now()/1e3}const i=function(){const{performance:e}=r.a;if(!e||!e.now)return o;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let s;const a=(()=>{const{performance:e}=r.a;if(!e||!e.now)return void(s="none");const t=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=o<36e5,a=e.timing&&e.timing.navigationStart,c="number"==typeof a?Math.abs(a+t-n):36e5;return i||c<36e5?o<=c?(s="timeOrigin",e.timeOrigin):(s="navigationStart",a):(s="dateNow",n)})()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="production"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}));var r=n(8),o=n(76),i=n(19),s=n(16),a=n(11);function c(){return Object(r.c)("globalEventProcessors",()=>[])}function u(e){c().push(e)}function l(e,t,n,r=0){return new o.a((o,c)=>{const u=e[r];if(null===t||"function"!=typeof u)o(t);else{const f=u({...t},n);a.a&&u.id&&null===f&&i.c.log(`Event processor "${u.id}" dropped event`),Object(s.o)(f)?f.then(t=>l(e,t,n,r+1).then(o)).then(null,c):l(e,f,n,r+1).then(o).then(null,c)}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return C}));var r=null,o={},i=1,s=Array,a=s["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",i++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===o)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=o),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,o){var i,s=((i={__proto__:null})[this.id]=e,i),a=r;r={parent:a,slots:s};try{return t.apply(o,n)}finally{r=a}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var o=r;try{return r=null,e.apply(n,t)}finally{r=o}},e}();try{Object.defineProperty(s,"@wry/context:Slot",{value:s["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();a.bind,a.noContext;function c(){}var u=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=c),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),l=new a,f=[],d=[];function p(e,t){if(!e)throw new Error(t||"assertion failure")}function h(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var m=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(p(!this.recomputing,"already recomputing"),function(e){var t=l.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),g(e)?_(t,e):w(t,e),t}(this)||!S(this))return g(this)?function(e){var t=j(e);l.withValue(e,y,[e]),function(e){if("function"==typeof e.subscribe)try{k(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,g(e))return;b(e)}(e);return t.forEach(S),h(e.value)}(this):h(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,v(this),k(this))},e.prototype.dispose=function(){var e=this;j(this).forEach(S),k(this),this.parents.forEach((function(t){t.setDirty(),E(t,e)}))},e.count=0,e}();function y(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function g(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function v(e){e.parents.forEach((function(t){return _(t,e)}))}function b(e){e.parents.forEach((function(t){return w(t,e)}))}function _(e,t){if(p(e.childValues.has(t)),p(g(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=d.pop()||new Set;e.dirtyChildren.add(t),v(e)}function w(e,t){p(e.childValues.has(t)),p(!g(t));var n,r,o,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(n=i,r=t.value,(o=n.length)>0&&o===r.length&&n[o-1]===r[o-1]||e.setDirty()),O(e,t),g(e)||b(e)}function O(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(d.length<100&&d.push(n),e.dirtyChildren=null))}function S(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function j(e){var t=f;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(n,r){E(e,r),t.push(r)}))),p(null===e.dirtyChildren),t}function E(e,t){t.parents.delete(e),e.childValues.delete(t),O(e,t)}function k(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var x=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t=a){h[t]="[MaxProperties ~]";break}const n=y[t];h[t]=e(t,n,d-1,a,c),m++}return l(n),h}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function a(e,t=3,n=102400){const r=s(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?a(e,t-1,n):r;var o}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(80)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(58),o=n(82);e.exports=n(56)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(81),o=n(126),i=n(99),s=Object.defineProperty;t.f=n(56)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(16),o=n(49),i=n(22),s=n(19),a=n(52),c=n(37),u=n(68);let l;class f{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(e){return e?e.clone():new f}clone(){const e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Object(c.c)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof f){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(Object(r.j)(t)){const t=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(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Object(o.b)(),...e},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(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:i,_level:s,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:f,_span:d}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:i,level:s,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:f,span:d}}applyToEvent(e,t={},n=[]){Object(u.a)(e,this.getScopeData());const r=[...n,...Object(a.b)(),...this._eventProcessors];return Object(a.c)(r,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Object(i.f)();if(!this._client)return s.c.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Object(i.f)();if(!this._client)return s.c.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Object(i.f)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(s.c.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function d(){return l||(l=new f),l}function p(){return{traceId:Object(i.f)(),spanId:Object(i.f)().substring(16)}}},,function(e,t,n){var r=n(571),o=n(103);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(7);function o(){if(!r.canUseDOM)return!1;var e=window.location.host;if(!(void 0===e?"":e).includes("myvtex.com"))return!1;var t=window.location.pathname,n=void 0===t?"":t;return["/admin","/_v/segment/admin-login/v1/login"].some((function(e){return n.startsWith(e)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(75);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){e.exports=global.ReactHelmet=n(600)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n(20),o=n(22),i=n(88),s=n(87),a=n(48);function c(e,t){const{fingerprint:n,span:c,breadcrumbs:u,sdkProcessingMetadata:l}=t;!function(e,t){const{extra:n,tags:o,user:i,contexts:s,level:a,transactionName:c}=t,u=Object(r.c)(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const l=Object(r.c)(o);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const f=Object(r.c)(i);f&&Object.keys(f).length&&(e.user={...f,...e.user});const d=Object(r.c)(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});a&&(e.level=a);c&&(e.transaction=c)}(e,t),c&&function(e,t){e.contexts={trace:Object(a.c)(t),...e.contexts};const n=Object(s.a)(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Object(i.b)(t),...e.sdkProcessingMetadata};const r=Object(a.b)(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,c),function(e,t){e.fingerprint=e.fingerprint?Object(o.c)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,u),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,l)}function u(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:f,attachments:d,propagationContext:p,transactionName:h,span:m}=t;l(e,"extra",n),l(e,"tags",r),l(e,"user",o),l(e,"contexts",i),l(e,"sdkProcessingMetadata",a),s&&(e.level=s),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function l(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(43),o=n(57),i=n(55),s=n(72)("src"),a=n(565),c=(""+a).split("toString");n(69).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,s)||o(n,s,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||a.call(this)}))},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="7.118.0"},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{t(e)})}function s(e){return new a((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class a{constructor(e){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new a((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===r.PENDING&&(Object(o.o)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)})}}}},,,function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=a(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f1)for(var n=1;ne.name);!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:c.a);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==o&&(e.dist=o);e.message&&(e.message=Object(i.d)(e.message,s));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Object(i.d)(a.value,s));const u=e.request;u&&u.url&&(u.url=Object(i.d)(u.url,s))}(b,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(b,_),void 0===t.type&&function(e,t){const n=s.a._sentryDebugIds;if(!n)return;let r;const o=h.get(t);o?r=o:(r=new Map,h.set(t,r));const i=Object.keys(n).reduce((e,o)=>{let i;const s=r.get(o);s?i=s:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=i[e.filename])})})}catch(e){}}(b,e.stackParser);const w=function(e,t){if(!t)return e;const n=e?e.clone():new l.a;return n.update(t),n}(p,n.captureContext);n.mechanism&&Object(r.a)(b,n.mechanism);const O=m&&m.getEventProcessors?m.getEventProcessors():[],S=Object(l.b)().getScopeData();if(y){const e=y.getScopeData();Object(f.b)(S,e)}if(w){const e=w.getScopeData();Object(f.b)(S,e)}const j=[...n.attachments||[],...S.attachments];j.length&&(n.attachments=j),Object(f.a)(b,S);const E=[...O,...Object(u.b)(),...S.eventProcessors];return Object(u.c)(E,b,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof g&&g>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Object(a.a)(e.data,t,n)}}))},...e.user&&{user:Object(a.a)(e.user,t,n)},...e.contexts&&{contexts:Object(a.a)(e.contexts,t,n)},...e.extra&&{extra:Object(a.a)(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Object(a.a)(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>{const r=Object(d.b)(e).data;return r&&(e.data=Object(a.a)(r,t,n)),e}));return r}(e,g,v):e))}const h=new WeakMap;function m(e){if(e)return function(e){return e instanceof l.a||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>y.includes(e))}(e)?{captureContext:e}:e}const y=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));const r=/\(error: (.*)\)/,o=/captureMessage|captureException/;function i(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{const i=[],s=e.split("\n");for(let e=n;e1024)continue;const o=r.test(n)?n.replace(r,"$1"):n;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){i.push(t);break}}if(i.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),o.test(t[t.length-1].function||"")&&(t.pop(),o.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(i)}}function s(e){return Array.isArray(e)?i(...e):e}function a(e){try{return e&&"function"==typeof e&&e.name||""}catch(e){return""}}},,,function(e,t,n){"use strict";var r=n(605);e.exports=r},,,function(e,t,n){var r=n(70);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(58).f,o=n(55),i=n(44)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(44)},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(83)("keys"),o=n(72);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(110),o=n(592);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o>6|192,n[r++]=63&s|128):i(e,o)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,s=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,s,a){var c=0,u=t;return c+=(u=u+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,o,i,s,a){return t+r+i+a>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,s,a,c,u){var l=0,f=t;return l+=(f=f+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,o,i,s,a,c,u){return t+r+i+a+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"renderReadyPromise",(function(){return Hd})),n.d(t,"ExtensionContainer",(function(){return iu})),n.d(t,"Block",(function(){return su})),n.d(t,"ExtensionPoint",(function(){return ru})),n.d(t,"LayoutContainer",(function(){return uu})),n.d(t,"LegacyExtensionContainer",(function(){return lu})),n.d(t,"Helmet",(function(){return ps})),n.d(t,"Link",(function(){return Ll})),n.d(t,"NoSSR",(function(){return ys})),n.d(t,"useSSR",(function(){return ms})),n.d(t,"RenderContextConsumer",(function(){return Od})),n.d(t,"TreePathContextConsumer",(function(){return Sd})),n.d(t,"ExperimentalLazyImages",(function(){return ra})),n.d(t,"useExperimentalLazyImagesContext",(function(){return oa})),n.d(t,"canUseDOM",(function(){return Ul})),n.d(t,"render",(function(){return _d})),n.d(t,"start",(function(){return wd})),n.d(t,"withHMR",(function(){return wa})),n.d(t,"registerComponent",(function(){return Ea})),n.d(t,"withRuntimeContext",(function(){return Fl})),n.d(t,"ChildBlock",(function(){return fa})),n.d(t,"useChildBlock",(function(){return la})),n.d(t,"useRuntime",(function(){return Dl})),n.d(t,"useTreePath",(function(){return Ks})),n.d(t,"withSession",(function(){return ad})),n.d(t,"Loading",(function(){return Zs})),n.d(t,"LoadingContextProvider",(function(){return ca})),n.d(t,"buildCacheLocator",(function(){return Vf})),n.d(t,"renderExtension",(function(){return yd})),n.d(t,"Unstable__ChildBlock",(function(){return fa})),n.d(t,"useChildBlock__unstable",(function(){return la}));var r={};n.r(r),n.d(r,"ExtensionContainer",(function(){return iu})),n.d(r,"Block",(function(){return su})),n.d(r,"ExtensionPoint",(function(){return ru})),n.d(r,"LayoutContainer",(function(){return uu})),n.d(r,"LegacyExtensionContainer",(function(){return lu})),n.d(r,"Helmet",(function(){return ps})),n.d(r,"Link",(function(){return Ll})),n.d(r,"NoSSR",(function(){return ys})),n.d(r,"useSSR",(function(){return ms})),n.d(r,"RenderContextConsumer",(function(){return Od})),n.d(r,"TreePathContextConsumer",(function(){return Sd})),n.d(r,"ExperimentalLazyImages",(function(){return ra})),n.d(r,"useExperimentalLazyImagesContext",(function(){return oa})),n.d(r,"canUseDOM",(function(){return Ul})),n.d(r,"render",(function(){return _d})),n.d(r,"start",(function(){return wd})),n.d(r,"withHMR",(function(){return wa})),n.d(r,"registerComponent",(function(){return Ea})),n.d(r,"withRuntimeContext",(function(){return Fl})),n.d(r,"ChildBlock",(function(){return fa})),n.d(r,"useChildBlock",(function(){return la})),n.d(r,"useRuntime",(function(){return Dl})),n.d(r,"useTreePath",(function(){return Ks})),n.d(r,"withSession",(function(){return ad})),n.d(r,"Loading",(function(){return Zs})),n.d(r,"LoadingContextProvider",(function(){return ca})),n.d(r,"buildCacheLocator",(function(){return Vf})),n.d(r,"renderExtension",(function(){return yd})),n.d(r,"Unstable__ChildBlock",(function(){return fa})),n.d(r,"useChildBlock__unstable",(function(){return la}));var o=n(19),i=n(22),s=n(40),a=n(11),c=n(52),u=n(31),l=n(23);const f=[];function d(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach(e=>{e.isDefaultInstance=!0}),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?Object(i.c)(n(t)):t;const o=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(r),s=function(e,t){for(let n=0;n"Debug"===e.name);if(-1!==s){const[e]=o.splice(s,1);o.push(e)}return o}function p(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function h(e,t,n){if(n[t.name])a.a&&o.c.log("Integration skipped because it was already installed: "+t.name);else{if(n[t.name]=t,-1===f.indexOf(t.name)&&(t.setupOnce(c.a,l.a),f.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}a.a&&o.c.log("Integration installed: "+t.name)}}function m(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}const y=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],g=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],v=(e={})=>({name:"InboundFilters",setupOnce(){},processEvent(t,n,r){const c=r.getOptions();return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return a.a&&o.c.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(i.e)(e)),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));a.a&&0===t.length&&o.c.error("Could not extract message for event "+Object(i.e)(e));return t}(e).some(e=>Object(s.c)(e,t))}(e,t.ignoreErrors))return a.a&&o.c.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(i.e)(e)),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Object(s.c)(n,t)}(e,t.ignoreTransactions))return a.a&&o.c.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: "+Object(i.e)(e)),!0;if(function(e,t){if(!t||!t.length)return!1;const n=b(e);return!!n&&Object(s.c)(n,t)}(e,t.denyUrls))return a.a&&o.c.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Object(i.e)(e)}.\nUrl: ${b(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=b(e);return!n||Object(s.c)(n,t)}(e,t.allowUrls))return a.a&&o.c.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Object(i.e)(e)}.\nUrl: ${b(e)}`),!0;return!1}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:y],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:g],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,c))?null:t}});m("InboundFilters",v);function b(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return a.a&&o.c.error("Cannot extract url for event "+Object(i.e)(e)),null}}var _=n(20);let w;const O=new WeakMap,S=()=>({name:"FunctionToString",setupOnce(){w=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Object(_.f)(this),n=O.has(Object(u.e)())&&void 0!==t?t:this;return w.apply(n,e)}}catch(e){}},setup(e){O.set(e,!0)}});m("FunctionToString",S);function j(e,t){!0===t.debug&&(a.a?o.c.enable():Object(o.b)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));Object(u.f)().update(t.initialScope);const n=new e(t);!function(e){const t=Object(l.a)().getStackTop();t.client=e,t.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}var E=n(34);const k=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function x(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?":"+o:""}@${n}${i?":"+i:""}/${r?r+"/":r}${s}`}function T(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function I(e){const t="string"==typeof e?function(e){const t=k.exec(e);if(!t)return void Object(o.b)(()=>{console.error("Invalid Sentry Dsn: "+e)});const[n,r,i="",s,a="",c]=t.slice(1);let u="",l=c;const f=l.split("/");if(f.length>1&&(u=f.slice(0,-1).join("/"),l=f.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return T({host:s,pass:i,path:u,projectId:l,port:a,protocol:n,publicKey:r})}(e):T(e);if(t&&function(e){if(!E.a)return!0;const{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(o.c.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?!t||!isNaN(parseInt(t,10))||(o.c.error("Invalid Sentry Dsn: Invalid port "+t),!1):(o.c.error("Invalid Sentry Dsn: Invalid protocol "+r),!1):(o.c.error("Invalid Sentry Dsn: Invalid projectId "+n),!1))}(t))return t}function R(e){const t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return`${t}//${e.host}${n}${e.path?"/"+e.path:""}/api/`}function C(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${R(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return Object(_.h)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}var A=n(93),M=n(8);const P=Object(M.b)();function N(){if(!("fetch"in P))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function L(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const D=Object(M.b)();const F={},U={};function q(e,t){F[e]=F[e]||[],F[e].push(t)}function B(e,t){U[e]||(t(),U[e]=!0)}function z(e,t){const n=e&&F[e];if(n)for(const r of n)try{r(t)}catch(t){E.a&&o.c.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Object(A.b)(r)}\nError:`,t)}}const H=M.a;let $;function W(e){q("history",e),B("history",G)}function G(){if(!function(){const e=D.chrome,t=e&&e.app&&e.app.runtime,n="history"in D&&!!D.history.pushState&&!!D.history.replaceState;return!t&&n}())return;const e=H.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=$,t=String(n);$=t;z("history",{from:e,to:t})}return e.apply(this,t)}}H.onpopstate=function(...t){const n=H.location.href,r=$;$=n;if(z("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Object(_.e)(H.history,"pushState",t),Object(_.e)(H.history,"replaceState",t)}var V=n(16),J=n(76),Y=n(54);function K(e,t=[]){return[e,t]}function X(e,t){const[n,r]=e;return[n,[...r,t]]}function Q(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function Z(e,t){return(t||new TextEncoder).encode(e)}function ee(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(e){"string"==typeof o?o="string"==typeof e?o+e:[Z(o,t),e]:o.push("string"==typeof e?Z(e,t):e)}for(const e of r){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Object(Y.a)(n))}i(e)}}return"string"==typeof o?o:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(o)}function te(e,t){const n="string"==typeof e.data?Z(e.data,t):e.data;return[Object(_.c)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const ne={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 re(e){return ne[e]}function oe(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ie(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:x(r)},...o&&{trace:Object(_.c)({...o})}}}class se extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function ae(e,t,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=x(t));return K(o,[function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?"|#"+e.map(([e,t])=>`${e}:${t}`).join(","):"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e)])}var ce=n(37),ue=n(88),le=n(89);const fe="Not capturing exception because it's already been captured.";function de(e){return void 0===e.type}function pe(e){return"transaction"===e.type}var he=n(74);function me(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:"sentry.javascript."+t,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:he.a})),version:he.a}),e._metadata=o}var ye=n(145),ge=n(49);const ve="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function be(e,t){const n=we(e,t),r={type:t&&t.name,value:Se(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function _e(e,t){return{exception:{values:[be(e,t)]}}}function we(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Oe.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const Oe=/Minified React error #\d+;/i;function Se(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function je(e,t,n,r,o){let s;if(Object(V.e)(t)&&t.error){return _e(e,t.error)}if(Object(V.a)(t)||Object(V.b)(t)){const o=t;if("stack"in t)s=_e(e,t);else{const t=o.name||(Object(V.a)(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;s=Ee(e,a,n,r),Object(i.b)(s,a)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":""+o.code}),s}if(Object(V.d)(t))return _e(e,t);if(Object(V.j)(t)||Object(V.f)(t)){return s=function(e,t,n,r){const o=Object(u.e)(),i=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:Object(V.f)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ke(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Object(Y.b)(t,i)}};if(n){const t=we(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}(e,t,n,o),Object(i.a)(s,{synthetic:!0}),s}return s=Ee(e,t,n,r),Object(i.b)(s,""+t,void 0),Object(i.a)(s,{synthetic:!0}),s}function Ee(e,t,n,r){const o={};if(r&&n){const r=we(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(Object(V.i)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function ke(e,{isUnhandledRejection:t}){const n=Object(_.d)(e),r=t?"promise rejection":"exception";if(Object(V.e)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(Object(V.f)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}const xe=M.a;let Te=0;function Ie(){return Te>0}function Re(){Te++,setTimeout(()=>{Te--})}function Ce(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(Object(_.f)(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const o=r.map(e=>Ce(e,t));return e.apply(this,o)}catch(e){throw Re(),Object(u.i)(n=>{n.addEventProcessor(e=>(t.mechanism&&(Object(i.b)(e,void 0,void 0),Object(i.a)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),Object(u.c)(e)}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}Object(_.g)(r,e),Object(_.a)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class Ae extends class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=I(e.dsn):a.a&&o.c.warn("No DSN provided, client will not send events."),this._dsn){const t=C(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Object(i.d)(e))return void(a.a&&o.c.log(fe));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=Object(V.i)(e)?e:String(e),s=Object(V.k)(e)?this.eventFromMessage(i,t,n):this.eventFromException(e,n);return this._process(s.then(e=>this._captureEvent(e,n,r)).then(e=>{o=e})),o}captureEvent(e,t,n){if(t&&t.originalException&&Object(i.d)(t.originalException))return void(a.a&&o.c.log(fe));let r=t&&t.event_id;const s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,s||n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?a.a&&o.c.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Object(ce.c)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):Object(J.c)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return a.a&&o.c.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];h(this,e,this._integrations),t||p(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=oe(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=ie(e,o,r,t);return delete e.sdkProcessingMetadata,K(s,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=X(n,te(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,r){const o=oe(n);return K({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:x(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;a.a&&o.c.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){a.a&&o.c.log("Flushing aggregated metrics, number of metrics: "+e.length);const t=ae(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&h(e,t,n)}),n}(this,e),p(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(Object(ce.c)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new J.a(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=Object(l.b)()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),Object(le.b)(o,e,t,n,this,r).then(e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:i,dsc:s}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:i},...e.contexts};const a=s||Object(ue.a)(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if(a.a){const t=e;"log"===t.logLevel?o.c.log(t.message):o.c.warn(t)}})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=pe(e),s=de(e),a=e.type||"error",c=`before send for type \`${a}\``;if(s&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),Object(J.b)(new se(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u="replay_event"===a?"replay":a,l=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,l).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new se("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;return function(e,t){const n=t+" must return `null` or a valid event.";if(Object(V.o)(e))return e.then(e=>{if(!Object(V.j)(e)&&null!==e)throw new se(n);return e},e=>{throw new se(`${t} rejected with ${e}`)});if(!Object(V.j)(e)&&null!==e)throw new se(n);return e}(function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;if(de(t)&&r)return r(t,n);if(pe(t)&&o)return o(t,n);return t}(r,n,t),c)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new se(c+" returned `null`, will not send event.","log");const o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);const s=r.transaction_info;if(i&&s&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...s,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof se)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new se("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{a.a&&o.c.error("Error while sending event:",e)});a.a&&o.c.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}{constructor(e){me(e,"browser",["browser"],xe.SENTRY_SDK_SOURCE||Object(ye.a)()),super(e),e.sendClientReports&&xe.document&&xe.document.addEventListener("visibilitychange",()=>{"hidden"===xe.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const o=je(e,t,n&&n.syntheticException||void 0,r);return Object(i.a)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Object(J.c)(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=Ee(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),Object(J.c)(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(ve&&o.c.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){return K({event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:x(r)}},[function(e){return[{type:"user_report"},e]}(e)])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(ve&&o.c.log("No outcomes to send"));if(!this._dsn)return void(ve&&o.c.log("No dsn provided, will not send outcomes"));ve&&o.c.log("Sending outcomes:",e);const t=(n=e,K((r=this._options.tunnel&&x(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||Object(ge.b)(),discarded_events:n}]]));var n,r,i;this._sendEnvelope(t)}}function Me(){"console"in M.a&&o.a.forEach((function(e){e in M.a.console&&Object(_.e)(M.a.console,e,(function(t){return o.d[e]=t,function(...t){z("console",{args:t,level:e});const n=o.d[e];n&&n.apply(M.a.console,t)}}))}))}const Pe=M.a;let Ne,Le,De;function Fe(e){q("dom",e),B("dom",Ue)}function Ue(){if(!Pe.document)return;const e=z.bind(null,"dom"),t=qe(e,!0);Pe.document.addEventListener("click",t,!1),Pe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=Pe[t]&&Pe[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(_.e)(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=i[n]=i[n]||{refCount:0};if(!s.handler){const r=qe(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch(e){}return t.call(this,n,r,o)}})),Object(_.e)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))})}function qe(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;Object(_.a)(n,"_sentryCaptured",!0),r&&!r._sentryId&&Object(_.a)(r,"_sentryId",Object(i.f)());const o="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Le)return!1;try{if(!e.target||e.target._sentryId!==De)return!1}catch(e){}return!0}(n)){e({event:n,name:o,global:t}),Le=n.type,De=r?r._sentryId:void 0}clearTimeout(Ne),Ne=Pe.setTimeout(()=>{De=void 0,Le=void 0},1e3)}}const Be=M.a;function ze(e){q("xhr",e),B("xhr",He)}function He(){if(!Be.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Object(_.e)(e,"open",(function(e){return function(...t){const n=Date.now(),r=Object(V.m)(t[0])?t[0].toUpperCase():void 0,o=function(e){if(Object(V.m)(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!r||!o)return e.apply(this,t);this.__sentry_xhr_v3__={method:r,url:o,request_headers:{}},"POST"===r&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const e=this.__sentry_xhr_v3__;if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}z("xhr",{args:[r,o],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Object(_.e)(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),Object(_.e)(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,o=this.__sentry_xhr_v3__;return o&&Object(V.m)(n)&&Object(V.m)(r)&&(o.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),Object(_.e)(e,"send",(function(e){return function(...t){const n=this.__sentry_xhr_v3__;if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return z("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function $e(e){q("fetch",e),B("fetch",We)}function We(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!N())return!1;if(L(P.fetch))return!0;let e=!1;const t=P.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=L(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){E.a&&o.c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&Object(_.e)(M.a,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Ve(t),method:Ge(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Ve(t),method:Ge(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return z("fetch",{...o}),e.apply(M.a,t).then(e=>(z("fetch",{...o,endTimestamp:Date.now(),response:e}),e),e=>{throw z("fetch",{...o,endTimestamp:Date.now(),error:e}),e})}}))}function Ge(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Ve(e){return"string"==typeof e?e:e?Ge(e,"url")?e.url:e.toString?e.toString():"":""}var Je=n(144);const Ye=["fatal","error","warning","log","info","debug"];function Ke(e){return"warn"===e?"warning":Ye.includes(e)?e:"log"}function Xe(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Qe=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setupOnce(){},setup(e){t.console&&(q("console",function(e){return function(t){if(Object(u.e)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Ke(t.level),message:Object(s.a)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: "+(Object(s.a)(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}Object(u.a)(n,{input:t.args,level:t.level})}}(e)),B("console",Me)),t.dom&&Fe(function(e,t){return function(n){if(Object(u.e)()!==e)return;let r,i,s="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>1024&&(ve&&o.c.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=Object(Je.c)(t,{keyAttrs:s,maxStringLength:a}),i=Object(Je.a)(t)}catch(e){r=""}if(0===r.length)return;const c={category:"ui."+n.name,message:r};i&&(c.data={"ui.component_name":i}),Object(u.a)(c,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&ze(function(e){return function(t){if(Object(u.e)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr.__sentry_xhr_v3__;if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o,l={method:i,url:s,status_code:a},f={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};Object(u.a)({category:"xhr",data:l,type:"http"},f)}}(e)),t.fetch&&$e(function(e){return function(t){if(Object(u.e)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};Object(u.a)({category:"fetch",data:e,level:"error",type:"http"},o)}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},i={input:t.args,response:e,startTimestamp:n,endTimestamp:r};Object(u.a)({category:"fetch",data:o,type:"http"},i)}}}(e)),t.history&&W(function(e){return function(t){if(Object(u.e)()!==e)return;let n=t.from,r=t.to;const o=Xe(xe.location.href);let i=n?Xe(n):void 0;const s=Xe(r);i&&i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),Object(u.a)({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Object(u.e)()===e&&Object(u.a)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Object(i.e)(t)},{event:t})}}(e))}}};m("Breadcrumbs",Qe);const Ze=()=>{let e;return{name:"Dedupe",setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!tt(e,t))return!1;if(!et(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=nt(t),r=nt(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!tt(e,t))return!1;if(!et(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return ve&&o.c.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};m("Dedupe",Ze);function et(e,t){let n=rt(e),r=rt(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let e=0;e{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){t=t=>{const{stackParser:n,attachStacktrace:r}=ft();if(Object(u.e)()!==e||Ie())return;const{msg:o,url:i,line:s,column:a,error:c}=t,l=void 0===c&&Object(V.m)(o)?function(e,t,n,r){let o=Object(V.e)(e)?e.message:e,i="Error";const s=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(i=s[1],o=s[2]),ut({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,s,a):ut(je(n,c||o,void 0,r,!1),i,s,a);l.level="error",Object(u.b)(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})},q("error",t),B("error",it);var t}(e),lt("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";q(t,e),B(t,at)}(t=>{const{stackParser:n,attachStacktrace:r}=ft();if(Object(u.e)()!==e||Ie())return;const o=function(e){if(Object(V.k)(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),i=Object(V.k)(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o)}]}}:je(n,o,void 0,r,!0);i.level="error",Object(u.b)(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),lt("onunhandledrejection"))}}};m("GlobalHandlers",ct);function ut(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=Object(V.m)(t)&&t.length>0?t:Object(Je.b)();return 0===c.length&&c.push({colno:u,filename:f,function:"?",in_app:!0,lineno:l}),e}function lt(e){ve&&o.c.log("Global Handler attached: "+e)}function ft(){const e=Object(u.e)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const dt=()=>({name:"HttpContext",setupOnce(){},preprocessEvent(e){if(!xe.navigator&&!xe.location&&!xe.document)return;const t=e.request&&e.request.url||xe.location&&xe.location.href,{referrer:n}=xe.document||{},{userAgent:r}=xe.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}});m("HttpContext",dt);function pt(e,t,n=250,r,o,i,a){if(!(i.exception&&i.exception.values&&a&&Object(V.g)(a.originalException,Error)))return;const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var u,l;c&&(i.exception.values=(u=function e(t,n,r,o,i,s,a,c){if(s.length>=r+1)return s;let u=[...s];if(Object(V.g)(o[i],Error)){ht(a,c);const s=t(n,o[i]),l=u.length;mt(s,i,l,c),u=e(t,n,r,o[i],i,[s,...u],s,l)}return Array.isArray(o.errors)&&o.errors.forEach((o,s)=>{if(Object(V.g)(o,Error)){ht(a,c);const l=t(n,o),f=u.length;mt(l,`errors[${s}]`,f,c),u=e(t,n,r,o,i,[l,...u],l,f)}}),u}(e,t,o,a.originalException,r,i.exception.values,c,0),l=n,u.map(e=>(e.value&&(e.value=Object(s.d)(e.value,l)),e))))}function ht(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function mt(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const yt=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",setupOnce(){},preprocessEvent(e,r,o){const i=o.getOptions();pt(be,i.stackParser,i.maxValueLength,n,t,e,r)}}},gt=(m("LinkedErrors",yt),["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"]),vt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"TryCatch",setupOnce(){t.setTimeout&&Object(_.e)(xe,"setTimeout",bt),t.setInterval&&Object(_.e)(xe,"setInterval",bt),t.requestAnimationFrame&&Object(_.e)(xe,"requestAnimationFrame",_t),t.XMLHttpRequest&&"XMLHttpRequest"in xe&&Object(_.e)(XMLHttpRequest.prototype,"send",wt);const e=t.eventTarget;if(e){(Array.isArray(e)?e:gt).forEach(Ot)}}}};m("TryCatch",vt);function bt(e){return function(...t){const n=t[0];return t[0]=Ce(n,{mechanism:{data:{function:Object(A.b)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function _t(e){return function(t){return e.apply(this,[Ce(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(A.b)(e)},handled:!1,type:"instrument"}})])}}function wt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&Object(_.e)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:Object(A.b)(t)},handled:!1,type:"instrument"}},r=Object(_.f)(t);return r&&(n.mechanism.data.handler=Object(A.b)(r)),Ce(t,n)}))}),e.apply(this,t)}}function Ot(e){const t=xe,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(_.e)(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ce(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Object(A.b)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Ce(r,{mechanism:{data:{function:"addEventListener",handler:Object(A.b)(r),target:e},handled:!1,type:"instrument"}}),o])}})),Object(_.e)(n,"removeEventListener",(function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}})))}function St(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const jt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Et=/\((\S*)(?::(\d+))(?::(\d+))\)/,kt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Tt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,It=[[30,e=>{const t=jt.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Et.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Ct(t[1]||"?",t[2]);return St(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=kt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=xt.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=Ct(n,e),St(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Tt.exec(e);return t?St(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]],Rt=Object(A.a)(...It),Ct=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function At(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new J.a((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{Object(J.c)(e).then(()=>{--o||(clearTimeout(i),n(!0))},r)})})}}}function Mt(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function Pt(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,i]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(""+e);return isNaN(r)?6e4:r-t}(s,r):429===t&&(o.all=r+6e4);return o}function Nt(e,t,n=At(e.bufferSize||30)){let r={};function i(i){const s=[];if(Q(i,(t,n)=>{const o=re(n);if(Mt(r,o)){const r=Lt(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(t)}),0===s.length)return Object(J.c)();const c=K(i[0],s),u=t=>{Q(c,(n,r)=>{const o=Lt(n,r);e.recordDroppedEvent(t,re(r),o)})};return n.add(()=>t({body:ee(c,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&a.a&&o.c.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Pt(r,e),e),e=>{throw u("network_error"),e})).then(e=>e,e=>{if(e instanceof se)return a.a&&o.c.error("Skipped sending event because buffer is full."),u("queue_overflow"),Object(J.c)();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function Lt(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Dt=void 0;function Ft(e,t=function(){if(Dt)return Dt;if(L(xe.fetch))return Dt=xe.fetch.bind(xe);const e=xe.document;let t=xe.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){ve&&o.c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Dt=t.bind(xe)}()){let n=0,r=0;return Nt(e,(function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return Dt=void 0,n-=i,r--,Object(J.b)(e)}}))}function Ut(e){return Nt(e,(function(t){return new J.a((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{4===o.readyState&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)})}))}const qt=[v(),S(),vt(),Qe(),ct(),yt(),Ze(),dt()];function Bt(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...qt]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),xe.SENTRY_RELEASE&&xe.SENTRY_RELEASE.id&&(e.release=xe.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:Object(A.c)(e.stackParser||Rt),integrations:d(e),transport:e.transport||(N()?Ft:Ut)};j(Ae,t),e.autoSessionTracking&&function(){if(void 0===xe.document)return void(ve&&o.c.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));Object(u.h)({ignoreDuration:!0}),Object(u.d)(),W(({from:e,to:t})=>{void 0!==e&&e!==t&&(Object(u.h)({ignoreDuration:!0}),Object(u.d)())})}()}function zt(e){let t=void 0,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}function Ht(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){if(!t)return!1;return $t(e)===$t(t)}(e,o)}function $t(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var Wt=n(48);var Gt=n(146);function Vt(){return"undefined"!=typeof window&&(!Object(Gt.a)()||void 0!==M.a.process&&"renderer"===M.a.process.type)}const Jt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Yt=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||void 0===r)&&(r=t.value,t.delta=o,e(t)))}},Kt=M.a,Xt=()=>Kt.__WEB_VITALS_POLYFILL__?Kt.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=Kt.performance.timing,t=Kt.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):Kt.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Qt=()=>{const e=Xt();return e&&e.activationStart||0},Zt=(e,t)=>{const n=Xt();let r="navigate";return n&&(r=Kt.document&&Kt.document.prerendering||Qt()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},en=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},tn=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==Kt.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Kt.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))};let nn=-1;const rn=()=>(nn<0&&(Kt.document&&Kt.document.visibilityState&&(nn="hidden"!==Kt.document.visibilityState||Kt.document.prerendering?1/0:0),tn(({timeStamp:e})=>{nn=e},!0)),{get firstHiddenTime(){return nn}});const on={},sn={},an={};let cn;function un(e,t){return pn(e,t),an[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);en(e,t=>{ln(e,{entries:t})},t)}(e),an[e]=!0),hn(e,t)}function ln(e,t){const n=sn[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){Jt&&o.c.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Object(A.b)(r)}\nError:`,t)}}function fn(){return(e=>{const t=rn(),n=Zt("LCP");let r;const o=e=>{const o=e[e.length-1];if(o){const e=Math.max(o.startTime-Qt(),0);e{on[n.id]||(o(i.takeRecords()),i.disconnect(),on[n.id]=!0,r(!0))};return["keydown","click"].forEach(e=>{Kt.document&&addEventListener(e,t,{once:!0,capture:!0})}),tn(t,!0),t}})(e=>{ln("lcp",{metric:e}),cn=e})}function dn(e,t,n,r,o=!1){let i;return pn(e,t),an[e]||(i=n(),an[e]=!0),r&&t({metric:r}),hn(e,t,o?i:void 0)}function pn(e,t){sn[e]=sn[e]||[],sn[e].push(t)}function hn(e,t,n){return()=>{n&&n();const r=sn[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const mn=M.a;function yn(e){let t=void 0,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}var gn;function vn(e){const t=yn([e,"optionalAccess",e=>e.host]);return Boolean(yn([t,"optionalAccess",e=>e.shadowRoot])===e)}function bn(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function _n(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,wn).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function wn(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=_n(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(gn||(gn={}));class On{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=yn([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return r=()=>-1,null!=(n=t)?n:r();var n,r}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Sn({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function jn({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function En(e){return e.toLowerCase()}function kn(e){return e.toUpperCase()}function xn(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?En(t):null}function Tn(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let In=1;const Rn=new RegExp("[^a-z0-9-_:]");function Cn(){return In++}let An,Mn;const Pn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Nn=/^(?:[a-z+]+:)?\/\//i,Ln=/^www\..*/i,Dn=/^(data:)([^,]*),(.*)/i;function Fn(e,t){return(e||"").replace(Pn,(e,n,r,o,i,s)=>{const a=r||i||s,c=n||o||"";if(!a)return e;if(Nn.test(a)||Ln.test(a))return`url(${c}${a}${c})`;if(Dn.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`})}const Un=/^[^ \t\n\r\u000c]+/,qn=/^[, \t\n\r\u000c]+/;function Bn(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function zn(){const e=document.createElement("a");return e.href="",e.href}function Hn(e,t,n,r,o,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Bn(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(qn),!(n>=t.length);){let i=r(Un);if(","===i.slice(-1))i=Bn(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=Bn(e,i);let s=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?Fn(r,zn()):"object"===t&&"data"===n?Bn(e,r):"function"==typeof i?i(n,r,o):r:Bn(e,r):r}function $n(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Wn(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Wn(e.parentNode,t,n,r+1):-1}function Gn(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches("."+e))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function Vn(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=Wn(s,Gn(r,o)),c<0)return!0;a=Wn(s,Gn(t,n),c>=0?c:1/0)}else{if(a=Wn(s,Gn(t,n)),a<0)return!1;c=Wn(s,Gn(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!i}catch(e){}return!!i}function Jn(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,O=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:gn.Document,childNodes:[],compatMode:e.compatMode}:{type:gn.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:gn.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:O};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,w=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,i),O=function(e){if(e instanceof HTMLFormElement)return"form";const t=En(e.tagName);return Rn.test(t)?"div":t}(e);let S={};const j=e.attributes.length;for(let t=0;tt.href===e.href);let r=null;t&&(r=_n(t)),r&&(delete S.rel,delete S.href,S._cssText=Fn(r,t.href))}if("style"===O&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=_n(e.sheet);t&&(S._cssText=Fn(t,zn()))}if("input"===O||"textarea"===O||"select"===O||"option"===O){const t=e,n=xn(t),r=Tn(t,kn(O),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Vn(t,g,b,v,_,Sn({type:n,tagName:kn(O),maskInputOptions:a}));S.value=jn({isMasked:e,element:t,value:r,maskInputFn:u})}o&&(S.checked=o)}"option"===O&&(e.selected&&!a.select?S.selected=!0:delete S.selected);if("canvas"===O&&d)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e))return!1}return!0})(e)||(S.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;const r=n.toDataURL(l.type,l.quality);t!==r&&(S.rr_dataURL=t)}if("img"===O&&f){An||(An=n.createElement("canvas"),Mn=An.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{An.width=t.naturalWidth,An.height=t.naturalHeight,Mn.drawImage(t,0,0),S.rr_dataURL=An.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?S.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==O&&"video"!==O||(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop));if(w){const{width:t,height:n}=e.getBoundingClientRect();S={class:S.class,rr_width:t+"px",rr_height:n+"px"}}"iframe"!==O||p(S.src)||(e.contentDocument||(S.rr_src=S.src),delete S.src);let E;try{customElements.get(O)&&(E=!0)}catch(e){}return{type:gn.Element,tagName:O,attributes:S,childNodes:[],isSVG:(k=e,Boolean("svg"===k.tagName||k.ownerSVGElement)||void 0),needBlock:w,rootId:m,isCustom:E};var k}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:O,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,f=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const p="STYLE"===f||void 0,h="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(p&&d){try{e.nextSibling||e.previousSibling||yn([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=_n(e.parentNode.sheet))}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: "+t,e)}d=Fn(d,zn())}h&&(d="SCRIPT_PLACEHOLDER");const y=Vn(e,r,i,o,s,n);p||h||m||!d||!y||(d=a?a(d,e.parentElement):d.replace(/[\S]/g,"*"));m&&d&&(c.textarea||y)&&(d=u?u(d,e.parentNode):d.replace(/[\S]/g,"*"));if("OPTION"===f&&d){const t=Sn({type:null,tagName:f,maskInputOptions:c});d=jn({isMasked:Vn(e,r,i,o,s,t),element:e,value:d,maskInputFn:u})}return{type:gn.Text,textContent:d||"",isStyle:p,rootId:l}}(e,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:y,rootId:O});case e.CDATA_SECTION_NODE:return{type:gn.CDATA,textContent:"",rootId:O};case e.COMMENT_NODE:return{type:gn.Comment,textContent:e.textContent||"",rootId:O};default:return!1}}function Yn(e){return null==e?"":e.toLowerCase()}function Kn(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:O,onIframeLoad:S,iframeLoadTimeout:j=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:x=(()=>!1),newlyAddedElement:T=!1}=t;let{preserveWhiteSpace:I=!0}=t;const R=Jn(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:x,newlyAddedElement:T});if(!R)return console.warn(e,"not serialized"),null;let C;C=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===gn.Comment)return!0;if(e.type===gn.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Yn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Yn(e.attributes.name)||"icon"===Yn(e.attributes.rel)||"apple-touch-icon"===Yn(e.attributes.rel)||"shortcut icon"===Yn(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Yn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Yn(e.attributes.property).match(/^(og|twitter|fb):/)||Yn(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Yn(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Yn(e.attributes.name)||"googlebot"===Yn(e.attributes.name)||"bingbot"===Yn(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Yn(e.attributes.name)||"generator"===Yn(e.attributes.name)||"framework"===Yn(e.attributes.name)||"publisher"===Yn(e.attributes.name)||"progid"===Yn(e.attributes.name)||Yn(e.attributes.property).match(/^article:/)||Yn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Yn(e.attributes.name)||"yandex-verification"===Yn(e.attributes.name)||"csrf-token"===Yn(e.attributes.name)||"p:domain_verify"===Yn(e.attributes.name)||"verify-v1"===Yn(e.attributes.name)||"verification"===Yn(e.attributes.name)||"shopify-checkout-api-token"===Yn(e.attributes.name)))return!0}}return!1}(R,v)&&(I||R.type!==gn.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?Cn():-2;const A=Object.assign(R,{id:C});if(r.add(e,A),-2===C)return null;O&&O(e);let M=!d;if(A.type===gn.Element){M=M&&!A.needBlock,delete A.needBlock;const t=e.shadowRoot;t&&bn(t)&&(A.isShadowHost=!0)}if((A.type===gn.Document||A.type===gn.Element)&&M){v.headWhitespace&&A.type===gn.Element&&"head"===A.tagName&&(I=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,skipChild:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:S,iframeLoadTimeout:j,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:x};for(const n of Array.from(e.childNodes)){const e=Kn(n,t);e&&A.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Kn(n,t);r&&(bn(e.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}return e.parentNode&&vn(e.parentNode)&&bn(e.parentNode)&&(A.isShadow=!0),A.type===gn.Element&&"iframe"===A.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout(()=>{i||(t(),i=!0)},n);return void e.addEventListener("load",()=>{clearTimeout(r),i=!0,t()})}if("about:blank"!==r.location.href||"about:blank"===e.src||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=e.contentDocument;if(t&&S){const n=Kn(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:S,iframeLoadTimeout:j,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:x});n&&S(e,n)}},j),A.type===gn.Element&&"link"===A.tagName&&"stylesheet"===A.attributes.rel&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),o=!0,t()})}(e,()=>{if(E){const t=Kn(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:S,iframeLoadTimeout:j,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:x});t&&E(e,t)}},k),A}function Xn(e){let t=void 0,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}function Qn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Zn="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let er={map:{},getId:()=>(console.error(Zn),-1),getNode:()=>(console.error(Zn),null),removeNodeFromMap(){console.error(Zn)},has:()=>(console.error(Zn),!1),reset(){console.error(Zn)}};function tr(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();o||!1!==n.leading||(o=s);const a=t-(s-o),c=this;a<=0||a>t?(r&&(!function(...e){br("clearTimeout")(...e)}(r),r=null),o=s,e.apply(c,i)):r||!1===n.trailing||(r=_r(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,i)},a))}}function nr(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(er=new Proxy(er,{get:(e,t,n)=>("map"===t&&console.error(Zn),Reflect.get(e,t,n))}));let rr=Date.now;function or(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Xn([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Xn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Xn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Xn([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Xn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Xn([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function ir(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ar(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function cr(e,t,n,r,o){if(!e)return!1;const i=ar(e);if(!i)return!1;const s=Gn(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=Wn(i,s);let c=-1;return!(a<0)&&(r&&(c=Wn(i,Gn(null,r))),a>-1&&c<0||ae.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(rr=()=>(new Date).getTime());class hr{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function mr(e){let t=null;return Xn([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function yr(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=mr(n);)n=t;return n}(e);return t.contains(n)}function gr(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||yr(e))}const vr={};function br(e){const t=vr[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return vr[e]=r.bind(window)}function _r(...e){return br("setTimeout")(...e)}var wr=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(wr||{}),Or=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Or||{}),Sr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Sr||{}),jr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(jr||{});function Er(e){let t=void 0,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}function kr(e){return"__ln"in e}class xr{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;ne.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&kr(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&kr(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Tr=(e,t)=>`${e}@${t}`;class Ir{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new xr,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!gr(o))return;const i=vn(o.parentNode)?this.mirror.getId(mr(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===i||-1===s)return n.addNode(o);const a=Kn(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{fr(e,this.mirror)&&this.iframeManager.addIframe(e),dr(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),pr(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:i,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Cr(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Ar(this.droppedSet,e)||Cr(this.removes,e,this.mirror)?Ar(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),o(e.value)}const s={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!ur(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;cr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Vn(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ar(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=xn(t),o=t.tagName;r=Tn(t,o,n);const i=Sn({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=jn({isMasked:Vn(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(cr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!$n(t.tagName,n)&&(o.attributes[n]=Hn(this.doc,En(t.tagName),En(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?r:[r,i]:o._unchangedStyles[e]=[r,i]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(cr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=vn(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);cr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ur(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Rr(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(vn(t))return!1;const r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Tr(n,r)]?Rr(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!vn(e.target)||!bn(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(ur(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Tr(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);cr(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),pr(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Rr(e,t){e.delete(t),t.childNodes.forEach(t=>Rr(e,t))}function Cr(e,t,n){return 0!==e.length&&function e(t,n,r){const{parentNode:o}=n;if(!o)return!1;const i=r.getId(o);if(t.some(e=>e.id===i))return!0;return e(t,o,r)}(e,t,n)}function Ar(e,t){return 0!==e.size&&function e(t,n){const{parentNode:r}=n;if(!r)return!1;if(t.has(r))return!0;return e(t,r)}(e,t)}let Mr;const Pr=e=>{if(!Mr)return e;return(...t)=>{try{return e(...t)}catch(e){if(Mr&&!0===Mr(e))return()=>{};throw e}}};function Nr(e){let t=void 0,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}const Lr=[];function Dr(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Fr(e,t){const n=new Ir;Lr.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Nr([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const i=new r(Pr(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Ur({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(Sr).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(s=>{let a=En(s);const l=(t=>s=>{const a=Dr(s);if(cr(a,r,o,i,!0))return;let c=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":c=jr.Mouse;break;case"touch":c=jr.Touch;break;case"pen":c=jr.Pen}c===jr.Touch?Sr[t]===Sr.MouseDown?l="TouchStart":Sr[t]===Sr.MouseUp&&(l="TouchEnd"):jr.Pen}else lr(s)&&(c=jr.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===jr.Touch||l.startsWith("Mouse")&&c===jr.Mouse)&&(c=null)):Sr[t]===Sr.Click&&(c=u,u=null);const f=lr(s)?s.changedTouches[0]:s;if(!f)return;const d=n.getId(a),{clientX:p,clientY:h}=f;Pr(e)({type:Sr[l],id:d,x:p,y:h,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(Sr[s]){case Sr.MouseDown:case Sr.MouseUp:a=a.replace("mouse","pointer");break;case Sr.TouchStart:case Sr.TouchEnd:return}c.push(Qn(a,l,t))}),Pr(()=>{c.forEach(e=>e())})}function qr({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){return Qn("scroll",Pr(tr(Pr(s=>{const a=Dr(s);if(!a||cr(a,r,o,i,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=or(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),s.scroll||100)),t)}const Br=["INPUT","TEXTAREA","SELECT"],zr=new WeakMap;function Hr({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let n=Dr(e);const l=e.isTrusted,y=n&&kn(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||Br.indexOf(y)<0||cr(n,r,o,i,!0))return;const v=n;if(v.classList.contains(s)||a&&v.matches(a))return;const b=xn(n);let _=Tn(v,y,b),w=!1;const O=Sn({maskInputOptions:c,tagName:y,type:b}),S=Vn(n,d,h,p,m,O);"radio"!==b&&"checkbox"!==b||(w=n.checked),_=jn({isMasked:S,element:n,value:_,maskInputFn:u}),g(n,f?{text:_,isChecked:w,userTriggered:l}:{text:_,isChecked:w});const j=n.name;"radio"===b&&j&&w&&t.querySelectorAll(`input[type="radio"][name="${j}"]`).forEach(e=>{if(e!==n){const t=jn({isMasked:S,element:e,value:Tn(e,y,b),maskInputFn:u});g(e,f?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function g(t,r){const o=zr.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){zr.set(t,r);const o=n.getId(t);Pr(e)({...r,id:o})}}const v=("last"===l.input?["change"]:["input","change"]).map(e=>Qn(e,Pr(y),t)),b=t.defaultView;if(!b)return()=>{v.forEach(e=>e())};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map(e=>function e(t,n,r,o,i=window){const s=i.Object.getOwnPropertyDescriptor(t,n);return i.Object.defineProperty(t,n,o?r:{set(e){_r(()=>{r.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,n,s||{},!0)}(e[0],e[1],{set(){Pr(y)({target:this,isTrusted:!1})}},!1,b))),Pr(()=>{v.forEach(e=>e())})}function $r(e){return function(e,t){if(Jr("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Jr("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Jr("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Jr("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Wr(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Gr({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?Nr([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Nr([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),i=Nr([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Nr([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Nr([i,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Nr([i,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Pr(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function Vr(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Fr(e,e.doc),o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=tr(Pr(t=>{const n=Date.now()-s;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],s=null}),i),u=Pr(tr(Pr(e=>{const t=Dr(e),{clientX:n,clientY:o}=lr(e)?e.changedTouches[0]:e;s||(s=rr()),a.push({x:n,y:o,id:r.getId(t),timeOffset:rr()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Or.Drag:e instanceof MouseEvent?Or.MouseMove:Or.TouchMove)}),o,{trailing:!1})),l=[Qn("mousemove",u,n),Qn("touchmove",u,n),Qn("drag",u,n)];return Pr(()=>{l.forEach(e=>e())})}(e),i=Ur(e),s=qr(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Qn("resize",Pr(tr(Pr(()=>{const t=ir(),o=sr();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)}),200)),t)}(e,{win:n}),c=Hr(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const a=Pr(s=>tr(Pr(i=>{const a=Dr(i);if(!a||cr(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:f}=a;e({type:s,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:f})}),i.media||500)),c=[Qn("play",a(0),s),Qn("pause",a(1),s),Qn("seeked",a(2),s),Qn("volumechange",a(3),s),Qn("ratechange",a(4),s)];return Pr(()=>{c.forEach(e=>e())})}(e),l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Pr((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Wr(o,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),r.apply(o,i)})});const i=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Pr((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Wr(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),r.apply(o,i)})}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Pr((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Wr(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),r.apply(o,i)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Pr((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Wr(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),r.apply(o,i)})}));const c={};Yr("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Yr("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Yr("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Yr("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([r,o])=>{u[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Pr((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Wr(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[...$r(o),a||0]}]}),r.apply(o,i)})}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Pr((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Wr(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...$r(o),s]}]}),r.apply(o,i)})})}),Pr(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),f=Gr(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Pr((o,s,a)=>{const[c,u,l]=a;if(n.has(c))return i.apply(s,[c,u,l]);const{id:f,styleId:d}=Wr(Nr([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&e({id:f,styleId:d,set:{property:c,value:u,priority:l},index:$r(s.parentRule)}),o.apply(s,a)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Pr((o,i,a)=>{const[c]=a;if(n.has(c))return s.apply(i,[c]);const{id:u,styleId:l}=Wr(Nr([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:$r(i.parentRule)}),o.apply(i,a)})}),Pr(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=nr(t.fonts,"add",(function(t){return function(n){return _r(Pr(()=>{const t=o.get(n);t&&(e(t),o.delete(n))}),0),t.apply(this,[n])}}));return r.push(()=>{n.FontFace=i}),r.push(s),Pr(()=>{r.forEach(e=>e())})}(e):()=>{},h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=Pr(()=>{const e=t.getSelection();if(!e||a&&Nr([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t{}}(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return Pr(()=>{Lr.forEach(e=>e.reset()),r.disconnect(),o(),i(),s(),a(),c(),u(),l(),f(),d(),p(),h(),m(),y.forEach(e=>e())})}function Jr(e){return void 0!==window[e]}function Yr(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Kr{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=r.get(t);return o||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Xr(e){let t=void 0,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}class Qr{constructor(){this.crossOriginIframeMirror=new Kr(Cn),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Zr{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Kr(Cn),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Kr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Xr([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case wr.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:wr.IncrementalSnapshot,data:{source:Or.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case wr.Meta:case wr.Load:case wr.DomContentLoaded:return!1;case wr.Plugin:return t;case wr.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case wr.IncrementalSnapshot:switch(t.data.source){case Or.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Or.Drag:case Or.TouchMove:case Or.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Or.ViewportResize:return!1;case Or.MediaInteraction:case Or.MouseInteraction:case Or.Scroll:case Or.CanvasMutation:case Or.Input:return this.replaceIds(t.data,e,["id"]),t;case Or.StyleSheetRule:case Or.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Or.Font:return t;case Or.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Or.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Xr([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===gn.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class eo{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class to{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!bn(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=Fr({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(qr({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),_r(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Gr({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(nr(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&gr(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class no{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class ro{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new hr,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:wn(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class oo{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){br("requestAnimationFrame")(...e)}(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let io,so;const ao=new On;function co(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:O,sampling:S={},dataURLOptions:j={},mousemoveWait:E,recordCanvas:k=!1,recordCrossOriginIframes:x=!1,recordAfter:T=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:R=!1,inlineImages:C=!1,plugins:A,keepIframeSrcFn:M=(()=>!1),ignoreCSSAttributes:P=new Set([]),errorHandler:N,onMutation:L,getCanvasManager:D}=e;Mr=N;const F=!x||window.parent===window;let U=!1;if(!F)try{window.parent.document&&(U=!1)}catch(e){U=!0}if(F&&!t)throw new Error("emit function is required");void 0!==E&&void 0===S.mousemove&&(S.mousemove=E),ao.reset();const q=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},B=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};let z;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let H=0;const $=e=>{for(const t of A||[])t.eventProcessor&&(e=t.eventProcessor(e));return O&&!U&&(e=O(e)),e};io=(e,o)=>{const i=e;if(i.timestamp=rr(),!zt([Lr,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||i.type===wr.FullSnapshot||i.type===wr.IncrementalSnapshot&&i.data.source===Or.Mutation||Lr.forEach(e=>e.unfreeze()),F)zt([t,"optionalCall",e=>e($(i),o)]);else if(U){const e={type:"rrweb",event:$(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===wr.FullSnapshot)z=i,H=0;else if(i.type===wr.IncrementalSnapshot){if(i.data.source===Or.Mutation&&i.data.isAttachIframe)return;H++;const e=r&&H>=r,t=n&&z&&i.timestamp-z.timestamp>n;(e||t)&&Z(!0)}};const W=e=>{io({type:wr.IncrementalSnapshot,data:{source:Or.Mutation,...e}})},G=e=>io({type:wr.IncrementalSnapshot,data:{source:Or.Scroll,...e}}),V=e=>io({type:wr.IncrementalSnapshot,data:{source:Or.CanvasMutation,...e}}),J=new ro({mutationCb:W,adoptedStyleSheetCb:e=>io({type:wr.IncrementalSnapshot,data:{source:Or.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Qr:new Zr({mirror:ao,mutationCb:W,stylesheetManager:J,recordCrossOriginIframes:x,wrappedEmit:io});for(const e of A||[])e.getMirror&&e.getMirror({nodeMirror:ao,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const K=new oo,X=function(e,t){try{return e?e(t):new no}catch(e){return console.warn("Unable to initialize CanvasManager"),new no}}(D,{mirror:ao,win:window,mutationCb:e=>io({type:wr.IncrementalSnapshot,data:{source:Or.CanvasMutation,...e}}),recordCanvas:k,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:w,sampling:S.canvas,dataURLOptions:j,errorHandler:N}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new eo:new to({mutationCb:W,scrollCb:G,bypassOptions:{onMutation:L,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:q,dataURLOptions:j,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:k,inlineImages:C,sampling:S,slimDOMOptions:B,iframeManager:Y,stylesheetManager:J,canvasManager:X,keepIframeSrcFn:M,processedNodeManager:K},mirror:ao}),Z=(e=!1)=>{io({type:wr.Meta,data:{href:window.location.href,width:sr(),height:ir()}},e),J.reset(),Q.init(),Lr.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new On,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:O,iframeLoadTimeout:S,onStylesheetLoad:j,stylesheetLoadTimeout:E,keepIframeSrcFn:k=(()=>!1)}=t||{};return Kn(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:d,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:O,iframeLoadTimeout:S,onStylesheetLoad:j,stylesheetLoadTimeout:E,keepIframeSrcFn:k,newlyAddedElement:!1})}(document,{mirror:ao,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:q,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:B,dataURLOptions:j,recordCanvas:k,inlineImages:C,onSerialize:e=>{fr(e,ao)&&Y.addIframe(e),dr(e,ao)&&J.trackLinkElement(e),pr(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},keepIframeSrcFn:M});if(!t)return console.warn("Failed to snapshot the document");io({type:wr.FullSnapshot,data:{node:t,initialOffset:or(window)}}),Lr.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,ao.getId(document))};so=Z;try{const e=[],t=e=>Pr(Vr)({onMutation:L,mutationCb:W,mousemoveCb:(e,t)=>io({type:wr.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>io({type:wr.IncrementalSnapshot,data:{source:Or.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>io({type:wr.IncrementalSnapshot,data:{source:Or.ViewportResize,...e}}),inputCb:e=>io({type:wr.IncrementalSnapshot,data:{source:Or.Input,...e}}),mediaInteractionCb:e=>io({type:wr.IncrementalSnapshot,data:{source:Or.MediaInteraction,...e}}),styleSheetRuleCb:e=>io({type:wr.IncrementalSnapshot,data:{source:Or.StyleSheetRule,...e}}),styleDeclarationCb:e=>io({type:wr.IncrementalSnapshot,data:{source:Or.StyleDeclaration,...e}}),canvasMutationCb:V,fontCb:e=>io({type:wr.IncrementalSnapshot,data:{source:Or.Font,...e}}),selectionCb:e=>{io({type:wr.IncrementalSnapshot,data:{source:Or.Selection,...e}})},customElementCb:e=>{io({type:wr.IncrementalSnapshot,data:{source:Or.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,maskInputOptions:q,inlineStylesheet:h,sampling:S,recordCanvas:k,inlineImages:C,userTriggeredOnInput:I,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:M,blockSelector:i,unblockSelector:s,slimDOMOptions:B,dataURLOptions:j,mirror:ao,iframeManager:Y,stylesheetManager:J,shadowDomManager:Q,processedNodeManager:K,canvasManager:X,ignoreCSSAttributes:P,plugins:zt([A,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>io({type:wr.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});Y.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{Z(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Qn("DOMContentLoaded",()=>{io({type:wr.DomContentLoaded,data:{}}),"DOMContentLoaded"===T&&n()})),e.push(Qn("load",()=>{io({type:wr.Load,data:{}}),"load"===T&&n()},window))),()=>{e.forEach(e=>e()),K.destroy(),so=void 0,Mr=void 0}}catch(e){console.warn(e)}}co.mirror=ao,co.takeFullSnapshot=function(e){if(!so)throw new Error("please take full snapshot after start recording");so(e)};function uo(e){return e>9999999999?e:1e3*e}function lo(e){return e>9999999999?e/1e3:e}function fo(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:wr.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:Object(Y.a)(t,10,1e3)}}),"console"===t.category)))}function po(e){return e.closest("button,a")||e}function ho(e){const t=mo(e);return t&&t instanceof Element?po(t):t}function mo(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let yo;function go(e){return yo||(yo=[],Object(_.e)(mn,"open",(function(e){return function(...t){if(yo)try{yo.forEach(e=>e())}catch(e){}return e.apply(mn,t)}}))),yo.push(e),()=>{const t=yo?yo.indexOf(e):-1;t>-1&&yo.splice(t,1)}}class vo{constructor(e,t,n=fo){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=go(()=>{this._lastMutation=_o()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!bo.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:lo(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=lo(e)}registerScroll(e=Date.now()){this._lastScroll=lo(e)}registerClick(e){const t=po(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=_o();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:s}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:mn.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(i>1){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:mn.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const bo=["A","BUTTON","INPUT"];function _o(){return Date.now()/1e3}function wo(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(n===Or.Mutation&&e.registerMutation(t.timestamp),n===Or.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Or.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=co.mirror.getNode(r);o instanceof HTMLElement&&n===Sr.Click&&e.registerClick(o)}}catch(e){}}function Oo(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var So;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(So||(So={}));const jo=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Eo(e){const t={};for(const n in e)if(jo.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const ko=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?ho(e.event):mo(e.event),n=Object(Je.c)(r,{maxStringLength:200})||""}catch(e){n=""}return{target:r,message:n}}(e);return Oo({category:"ui."+e.name,...xo(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;var i,s,a;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(i=e.clickDetector,s=n,a=ho(t.event),i.handleClick(s,a)),fo(e,n)};function xo(e,t){const n=co.mirror.getId(e),r=n&&co.mirror.getNode(n),o=r&&co.mirror.getMeta(r),i=o&&function(e){return e.type===So.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>e.type===So.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:Eo(i.attributes)}}:{}}}function To(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(s)||!i)return null;const a=t||r||o,c=1===i.length;if(!a&&c)return null;const u=Object(Je.c)(s,{maxStringLength:200})||"",l=xo(s,u);return Oo({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}(t);n&&fo(e,n)}const Io={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:Co(i),end:Co(o),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Co(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:f,redirectCount:d,startTime:p,transferSize:h,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:Co(p),end:Co(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:f,domComplete:i,redirectCount:d}}}};function Ro(e){return Io[e.entryType]?Io[e.entryType](e):null}function Co(e){return((ge.a||mn.performance.timeOrigin)+e)/1e3}function Ao(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(e=>{r.push(un(e,n))}),r.push(function(e,t=!1){return dn("lcp",e,fn,cn,t)}(({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=Co(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?co.mirror.getId(r):void 0}}}(t))})),()=>{r.forEach(e=>e())}}const Mo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Po(e,t){Mo&&(o.c.info(e),t&&Lo(e))}function No(e,t){Mo&&(o.c.info(e),t&&setTimeout(()=>{Lo(e)},0))}function Lo(e){Object(u.a)({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class Do extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Fo{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new Do;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(e=>e.timestamp).sort()[0];return e?uo(e):null}}class Uo{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){Po("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((r,i)=>{const s=({data:t})=>{const a=t;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",s),!a.success)return Mo&&o.c.error("[Replay]",a.response),void i(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class qo{constructor(e){this._worker=new Uo(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=uo(e.timestamp);(!this._earliestTimestamp||t2e7?Promise.reject(new Do):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Mo&&o.c.warn('[Replay] Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Bo{constructor(e){this._fallback=new Fo,this._compression=new qo(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void Po("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){Mo&&o.c.warn("[Replay] Failed to add events when switching buffers.",e)}}}function zo({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([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,0,0,0]),i=new t([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,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;Po("[Replay] Using compression worker"+(e?" from "+e:""));const n=new Worker(t);return new Bo(n)}catch(e){Po("[Replay] Failed to create compression worker")}}(t);if(e)return e}return Po("[Replay] Using simple buffer"),new Fo}function Ho(){try{return"sessionStorage"in mn&&!!mn.sessionStorage}catch(e){return!1}}function $o(e){!function(){if(!Ho())return;try{mn.sessionStorage.removeItem("sentryReplaySession")}catch(e){}}(),e.session=void 0}function Wo(e){return void 0!==e&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Po(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function ni(e){return!e.type}function ri(e){return"transaction"===e.type}function oi(e){return"feedback"===e.type}function ii(e){const t=function(){const e=Object(u.e)();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!e.isEnabled()||!ni(n)&&!ri(n))return;const o=r&&r.statusCode;t&&(!o||o<200||o>=300)||(ri(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;setTimeout(()=>{e.sendBufferedReplayOrFlush()})}(e,n))}}function si(e){return t=>{e.isEnabled()&&ni(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){const t=Oo({category:"replay.hydrate-error"});fo(e,t)}}(e,t)}}function ai(e,t=!1){const n=t?ii(e):void 0;return Object.assign((t,r)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!ni(t)&&!ri(t)&&!oi(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(oi(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:wr.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return Mo&&o.c.log("[Replay] Ignoring error from rrweb internals",t),null;return(function(e,t){return"buffer"===e.recordingMode&&("Unable to send Replay"!==t.message&&(!(!t.exception||t.type)&&Wo(e.getOptions().errorSampleRate)))}(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t},{id:"Replay"})}function ci(e,t){return t.map(({type:t,start:n,end:r,name:o,data:i})=>{const s=e.throttledAddEvent({type:wr.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof s?Promise.resolve(null):s})}function ui(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ci(e,[n]),!1)))}}function li(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Mo||!e.getOptions()._experiments.traceInternals)&&Ht(t,Object(u.e)())}(e,t.name)||e.addUpdate(()=>(ci(e,[t]),!0)))}function fi(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=bi(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function di(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function pi(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[bi(e)];if(!e)return[void 0]}catch(t){return Mo&&o.c.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Mo&&o.c.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function hi(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function mi(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Object(_.c)({method:i,statusCode:s,request:a,response:c})}}function yi(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function gi(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>15e4,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:t+"…",warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function vi(e,t){return Object.keys(e).reduce((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n},{})}function bi(e){return new URLSearchParams(e).toString()}function _i(e,t){const n=function(e,t=mn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(mn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return Object(s.c)(n,t)}async function wi(e,t,n){try{const r=mi("resource.fetch",await async function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:a,method:c,status_code:u=0,request_body_size:l,response_body_size:f}=e.data,d=_i(a,n.networkDetailAllowUrls)&&!_i(a,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return ji(e[0],t);if(2===e.length)return ji(e[1],t);return{}}(n,t):{};if(!e)return gi(o,r,void 0);const i=Oi(n),[s,a]=pi(i),c=gi(o,r,s);if(a)return hi(c,a);return c}(n,t.input,l):yi(l),h=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,s){if(!e&&void 0!==s)return yi(s);const a=i?Si(i.headers,r):{};if(!i||!t&&void 0!==s)return gi(a,s,void 0);const[c,u]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Mo&&o.c.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await function(e){return new Promise((t,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);(async function(e){return await e.text()})(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}(t)]}catch(e){return Mo&&o.c.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(i),l=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:i,headers:s}){try{const o=e&&e.length&&void 0===r?fi(e,n):r;return i?gi(s,o,t?e:void 0):yi(o)}catch(e){return Mo&&o.c.warn("[Replay] Failed to serialize response body",e),gi(s,r,void 0)}}(c,{networkCaptureBodies:t,textEncoder:n,responseBodySize:s,captureDetails:e,headers:a});if(u)return hi(l,u);return l}(d,n,t.response,f);return{startTimestamp:i,endTimestamp:s,url:a,method:c,statusCode:u,request:p,response:h}}(e,t,n));li(n.replay,r)}catch(e){Mo&&o.c.error("[Replay] Failed to capture fetch breadcrumb",e)}}function Oi(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Si(e,t){const n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function ji(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Si(n,t):Array.isArray(n)?{}:vi(n,t):{}}async function Ei(e,t,n){try{const r=mi("resource.xhr",function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:a,xhr:c}=t,{url:u,method:l,status_code:f=0,request_body_size:d,response_body_size:p}=e.data;if(!u)return null;if(!c||!_i(u,n.networkDetailAllowUrls)||_i(u,n.networkDetailDenyUrls)){const e=yi(d),t=yi(p);return{startTimestamp:i,endTimestamp:s,url:u,method:l,statusCode:f,request:e,response:t}}const h=c.__sentry_xhr_v3__,m=h?vi(h.request_headers,n.networkRequestHeaders):{},y=vi(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e},{})}(c),n.networkResponseHeaders),[g,v]=n.networkCaptureBodies?pi(a):[void 0],[b,_]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Mo&&o.c.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Mo&&o.c.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Mo&&o.c.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(c):[void 0],w=gi(m,d,g),O=gi(y,p,b);return{startTimestamp:i,endTimestamp:s,url:u,method:l,statusCode:f,request:v?hi(w,v):w,response:_?hi(O,_):O}}(e,t,n));li(n.replay,r)}catch(e){Mo&&o.c.error("[Replay] Failed to capture xhr breadcrumb",e)}}function ki(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const i=fi(o,n.textEncoder),s=r.getResponseHeader("content-length")?di(r.getResponseHeader("content-length")):function(e,t,n){try{return fi("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(e){return}}(r.response,r.responseType,n.textEncoder);void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}function xi(e){const t=Object(u.e)();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:a,networkResponseHeaders:c}=e.getOptions(),u={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:a,networkResponseHeaders:c};t&&t.on?t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(ki(t,n,e),Ei(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:r,response:o}=t,i=fi(r?Oi(r):void 0,n.textEncoder),s=o?di(o.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n,e),wi(t,n,e))}catch(e){Mo&&o.c.warn("Error when enriching network breadcrumb")}}(u,e,t)):($e(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:i,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:i,statusCode:o?o.status:void 0}}}(t);li(e,n)}}(e)),ze(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r.__sentry_xhr_v3__;if(!t||!n||!o)return null;const{method:i,url:s,status_code:a}=o;return void 0===s?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:i,statusCode:a}}}(t);li(e,n)}}(e)))}catch(e){}}let Ti=null;const Ii=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Ti===t||!t)return null;if(Ti=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Oo(e);let n=!1;const r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,e.slice(0,5e3)+"…"):e;if("object"==typeof e)try{const t=Object(Y.a)(e,7);return JSON.stringify(t).length>5e3?(n=!0,JSON.stringify(t,null,2).slice(0,5e3)+"…"):t}catch(e){}return e});return Oo({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Oo(t)}(t);n&&fo(e,n)};function Ri(e){const t=Object(u.f)(),n=Object(u.e)();t.addScopeListener(Ii(e)),Fe(ko(e)),W(ui(e)),xi(e);const r=ai(e,!Ci(n));n&&n.addEventProcessor?n.addEventProcessor(r):function(e){const t=Object(u.e)();t&&t.addEventProcessor&&t.addEventProcessor(e)}(r),Ci(n)&&(n.on("beforeSendEvent",si(e)),n.on("afterSendEvent",ii(e)),n.on("createDsc",t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}}),n.on("startTransaction",t=>{e.lastTransaction=t}),n.on("finishTransaction",t=>{e.lastTransaction=t}),n.on("beforeSendFeedback",(t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}function Ci(e){return!(!e||!e.on)}function Ai(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Mi(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Mo&&o.c.warn("[Replay] Received replay event after session expired."));const i=r||!t;t=!0,e.clickDetector&&wo(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!Zo(e,n,i))return!0;if(!i)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Zo(e,function(e){const t=e.getOptions();return{type:wr.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Po("[Replay] Updating session start time to earliest event in buffer to "+new Date(t),e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Vo(e.session))}return"session"===e.recordingMode&&e.flush(),!0})}}async function Pi({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=function({recordingData:e,headers:t}){let n;const r=JSON.stringify(t)+"\n";if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:f,initialTimestamp:d}=r,p=Object(u.e)(),h=Object(u.f)(),m=p&&p.getTransport(),y=p&&p.getDsn();if(!(p&&m&&y&&i.sampled))return;const g={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:c,trace_ids:f,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},v=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",r,o);const i=await Object(le.b)(e.getOptions(),r,o,t,e,Object(l.b)());if(!i)return null;i.platform=i.platform||"javascript";const s=e.getSdkMetadata&&e.getSdkMetadata(),{name:a,version:c}=s&&s.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},i}({scope:h,client:p,replayId:t,event:g});if(!v)return p.recordDroppedEvent("event_processor","replay",g),void Po("An event processor returned `null`, will not send event.");delete v.sdkProcessingMetadata;const b=function(e,t,n,r){return K(ie(e,oe(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(v,s,y,p.getOptions().tunnel);let _;try{_=await m.send(b)}catch(e){const t=new Error("Unable to send Replay");try{t.cause=e}catch(e){}throw t}if(!_)return _;if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new Ni(_.statusCode);const w=Pt({},_);if(Mt(w,"replay"))throw new Li(w);return _}class Ni extends Error{constructor(e){super("Transport returned status code "+e)}}class Li extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}function Di(e,t,n){const r=new Map;let o=!1;return(...i)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach((e,n)=>{ne+t,0)>=t){const e=o;return o=!0,e?"__SKIPPED":"__THROTTLED"}o=!1;const a=r.get(s)||0;return r.set(s,a+1),e(...i)}}class Fi{constructor({options:e,recordingOptions:t}){Fi.prototype.__init.call(this),Fi.prototype.__init2.call(this),Fi.prototype.__init3.call(this),Fi.prototype.__init4.call(this),Fi.prototype.__init5.call(this),Fi.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,i;const s=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function u(){return o&&clearTimeout(o),o=setTimeout(a,t),s&&void 0===i&&(i=setTimeout(a,s)),r}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==i?a():r},u}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Di((e,t)=>function(e,t,n){return ti(e,t)?ei(e,t,n):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;o&&(this.clickDetector=new vo(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",No(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");No("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=Qo({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");No("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Qo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=co({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Mi(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Po("[Replay] Stopping Replay"+(t?" triggered by "+t:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,$o(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Po("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Po("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Po("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Yo(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${mn.location.pathname}${mn.location.hash}${mn.location.search}`,t=`${mn.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if("__THROTTLED"===n){const e=Oo({category:"replay.throttled"});this.addUpdate(()=>!Zo(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastTransaction||Object(u.f)().getTransaction(),t=(e&&Object(Wt.b)(e).data||{})["sentry.source"];if(e&&t&&["route","custom"].includes(t))return Object(Wt.b)(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=zo({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Mo&&o.c.error("[Replay]",e),Mo&&this._options._experiments&&this._options._experiments.captureExceptions&&Object(u.c)(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Qo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Xo(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{mn.document.addEventListener("visibilitychange",this._handleVisibilityChange),mn.addEventListener("blur",this._handleWindowBlur),mn.addEventListener("focus",this._handleWindowFocus),mn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Ri(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=Ao(this)}_removeListeners(){try{mn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),mn.removeEventListener("blur",this._handleWindowBlur),mn.removeEventListener("focus",this._handleWindowFocus),mn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===mn.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Oo({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Oo({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{To(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Ko(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Po("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:wr.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Ro).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ci(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await async function e(t,n={count:0,interval:5e3}){const{recordingData:r,options:o}=t;if(r.length)try{return await Pi(t),!0}catch(r){if(r instanceof Ni||r instanceof Li)throw r;if(Object(u.g)("Replays",{_retryCount:n.count}),Mo&&o._experiments&&o._experiments.captureExceptions&&Object(u.c)(r),n.count>=3){const e=new Error("Unable to send Replay - max retries exceeded");try{e.cause=r}catch(e){}throw e}return n.interval*=++n.count,new Promise((r,o)=>{setTimeout(async()=>{try{await e(t,n),r(!0)}catch(e){o(e)}},n.interval)})}}({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Object(u.e)();t&&t.recordDroppedEvent("send_error","replay")}}else Mo&&o.c.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Mo&&o.c.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=nthis._options.maxReplayDuration+5e3;if(r||i)return Po(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const s=this.eventBuffer;if(s&&0===this.session.segmentId&&!s.hasCheckout&&Po("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){Mo&&o.c.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Vo(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Oo({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Ui(e,t,n,r){const i=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&i.push("."+n),Object(o.b)(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}const qi='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Bi=["content-length","content-type","accept"];let zi=!1;const Hi=e=>new $i(e);class $i{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:s,_experiments:a={},sessionSampleRate:c,errorSampleRate:u,maskAllText:l=!0,maskAllInputs:f=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:v=[],networkCaptureBodies:b=!0,networkRequestHeaders:_=[],networkResponseHeaders:w=[],mask:O=[],maskAttributes:S=["title","placeholder"],unmask:j=[],block:E=[],unblock:k=[],ignore:x=[],maskFn:T,beforeAddRecordingEvent:I,beforeErrorSampling:R,blockClass:C,blockSelector:A,maskInputOptions:M,maskTextClass:P,maskTextSelector:N,ignoreClass:L}={}){this.name=$i.id;const D=function({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){const l={maskTextSelector:Ui(e,[".sentry-mask","[data-sentry-mask]"],a,c),unmaskTextSelector:Ui(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:Ui(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],i,s),unblockSelector:Ui(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Ui(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return i instanceof RegExp&&(l.blockClass=i),a instanceof RegExp&&(l.maskTextClass=a),l}({mask:O,unmask:j,block:E,unblock:k,ignore:x,blockClass:C,blockSelector:A,maskTextClass:P,maskTextSelector:N,ignoreClass:L});if(this._recordingOptions={maskAllInputs:f,maskAllText:l,maskInputOptions:{...M||{},password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:S,maskAllText:l,privacyOptions:D,key:e,value:t,el:n}),...D,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:o,sessionSampleRate:c,errorSampleRate:u,useCompression:i,workerUrl:s,blockAllMedia:d,maskAllInputs:f,maskAllText:l,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:m,slowClickIgnoreSelectors:y,networkDetailAllowUrls:g,networkDetailDenyUrls:v,networkCaptureBodies:b,networkRequestHeaders:Wi(_),networkResponseHeaders:Wi(w),beforeAddRecordingEvent:I,beforeErrorSampling:R,_experiments:a},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof u&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${qi}`:qi),this._isInitialized&&Vt())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return zi}set _isInitialized(e){zi=e}setupOnce(){Vt()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=Object(u.e)(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Object(_.c)(e)};if(!n)return Object(o.b)(()=>{console.warn("SDK client is not available.")}),r;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&Object(o.b)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")});"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate);return r}(this._initialOptions);this._replay=new Fi({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=Object(u.e)().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function Wi(e){return[...Bi,...e.map(e=>e.toLowerCase())]}$i.__initStatic();var Gi=n(64);function Vi(){var e,t=window.location.host,n=void 0===t?"":t,r="",o="";return n.includes("--")?(o=n.split("--")[0],r=n.split("--")[1].split(".")[0]):(r=n.split(".")[0],o="master"),{account:r,workspace:o,route:{path:window.location.pathname,blockId:null},culture:{locale:null!==(e=null===navigator||void 0===navigator?void 0:navigator.language)&&void 0!==e?e:Intl.DateTimeFormat().resolvedOptions().locale}}}function Ji(e,t){return Object.assign(Object.assign({},e),{tags:Object.assign(Object.assign({},null==e?void 0:e.tags),t)})}Object(Gi.a)()&&function(e){const t={...e};me(t,"react"),Bt(t)}({dsn:"https://2fac72ea180d48ae9bf1dbb3104b4000@o191317.ingest.us.sentry.io/1292015",integrations:[Hi()],tracesSampleRate:.1,tracePropagationTargets:[/^\//,/^(https?:\/\/)?([a-z0-9]+[.])*myvtex\.com/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:.5,beforeSend:function(e){var t,n,r=function(){var e,t=null!==(e=null===window||void 0===window?void 0:window.__RUNTIME__)&&void 0!==e?e:Vi(),n=t.account,r=void 0===n?null:n,o=t.workspace,i=void 0===o?null:o,s=t.culture,a=(s=void 0===s?{locale:null}:s).locale,c=t.route,u=(c=void 0===c?{path:null,blockId:null}:c).path,l=c.blockId,f=t.loadedDevices,d=void 0===f?null:f,p=t.production,h=void 0===p?null:p;return{admin_account:r,admin_workspace:i,admin_locale:a,admin_path:u,admin_app_block:l,admin_device:Array.isArray(d)?d[0]:d,admin_production:h,admin_runtime_available:!!(null===window||void 0===window?void 0:window.__RUNTIME__)}}();return!1===r.admin_production?"true"===(null===(n=new URL(null===(t=null===document||void 0===document?void 0:document.location)||void 0===t?void 0:t.toString()))||void 0===n?void 0:n.searchParams).get("forceLogs")?Ji(e,r):null:Ji(e,r)}});n(563),n(582);var Yi=n(7);function Ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xi=n(6),Qi=n.n(Xi),Zi=n(5),es=n(18),ts=n(111),ns=n(112),rs=(n(596),n(29)),os=n(113),is=n(35),ss=n.n(is),as=n(0),cs=n.n(as),us=n(46),ls=n(39),fs=n.n(ls),ds=n(66),ps=ds.Helmet,hs="undefined"!=typeof window?as.useLayoutEffect:as.useEffect,ms=function(){var e=Object(as.useState)(!1),t=Object(Zi.a)(e,2),n=t[0],r=t[1];return hs((function(){r(!0)}),[]),!n},ys=function(e){var t=e.children,n=e.onSSR,r=ms();return cs.a.createElement(cs.a.Fragment,null,r?n:t)},gs=n(9),vs=n(14),bs=n(17),_s=n(24),ws=n(25),Os=n(10),Ss=n(149),js=n.n(Ss),Es=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,i=e.width,s=e.height,a=e.borderRadius,c=void 0===a?5:a;return cs.a.createElement("div",{style:{width:i,height:s,overflow:"hidden",position:"absolute",top:o,left:n,borderRadius:c}},cs.a.createElement("div",{className:js.a.slide,style:{width:"300vw",height:"100%",position:"relative",left:-n,backgroundColor:"#e0e0e0",backgroundImage:"linear-gradient(90deg, ".concat("#e0e0e0",", ").concat("#e0e0e0"," 50%, ").concat("#e8e8e8"," 60%, ").concat("#e0e0e0"," 65%, ").concat("#e0e0e0",")"),backgroundSize:"50% 100%",backgroundRepeat:"repeat-x"}}))},ks=function(e){var t=e.width,n=e.height,r=e.children;return cs.a.createElement("div",{style:{width:t,height:n,position:"relative"},suppressHydrationWarning:!0},r)},xs=function(e){var t=e.width,n=e.height;return cs.a.createElement(ks,{width:t,height:n},cs.a.createElement(Es,{x:0,y:0,width:t,height:n}))},Ts=function(e){var t=e.width,n=e.height;return cs.a.createElement(ks,{width:t,height:n},cs.a.createElement(Es,{width:t,height:n,borderRadius:"100%"}))},Is=function(e){var t=e.width,n=e.height;if(ms()||"string"==typeof t||"string"==typeof n)return cs.a.createElement(xs,{width:t,height:n});var r=Math.floor(t/260),o=Math.floor(n/430),i=(t-250*r)/(r>1?r-1:2),s=(n-400*o)/(o>1?o-1:2);return cs.a.createElement(ks,{width:t,height:n},Array.from({length:r}).map((function(e,t){return Array.from({length:o}).map((function(e,n){return cs.a.createElement(Es,{key:"".concat(t,"-").concat(n),x:t*(250+i),y:n*(400+s),width:250,height:400})}))})))},Rs=function(e){var t=e.width,n=e.height;return cs.a.createElement("div",{className:"flex items-center justify-center",style:{width:t,height:n}},cs.a.createElement("svg",{width:"26px",height:"26px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},cs.a.createElement("use",{xlinkHref:"#sti-loading"})))},Cs=function(e){var t=e.width,n=e.height,r=e.fontSize,o=void 0===r?16:r,i=e.lineHeight,s=void 0===i?1.5:i;if("string"==typeof n)return cs.a.createElement(xs,{width:t,height:n});var a=o*s,c=Math.round(n/a);return cs.a.createElement(ks,{width:t,height:n},Array.from({length:c}).map((function(e,n){var r=t;return cs.a.createElement(Es,{key:n,x:0,y:Math.round(n*a),width:r,height:o})})))};function As(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var Ms=function(e){Object(_s.a)(n,e);var t=As(n);function n(e){var r;return Object(vs.a)(this,n),(r=t.call(this,e)).renderPreviewGraphic=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n||"none"===n)return null;switch(n){case"box":case"block":return cs.a.createElement(xs,{width:e,height:t});case"text":return cs.a.createElement(Cs,{width:e,height:t,fontSize:r.fontSize,lineHeight:r.lineHeight});case"grid":return cs.a.createElement(Is,{width:e,height:t});case"circle":return cs.a.createElement(Ts,{width:e,height:t});case"spinner":return cs.a.createElement(Rs,{width:e,height:t});case"transparent":return cs.a.createElement("div",{style:{width:e,height:t}});default:return null}},r.getDimension=function(e){if("number"==typeof e)return e;if(!e)return null;var t=r.props.extension,n=e.desktop;if(!n)return null;var o=n.defaultValue,i=n.fromProp&&t.props[n.fromProp];return"number"==typeof i?i:o},r.getDimensions=function(){var e=r.props.extension;if(!e.preview)return{width:null,height:null};var t=e.preview,n=t.width,o=t.height;return{height:r.getDimension(o),width:r.getDimension(n)}},r.container=cs.a.createRef(),r.state={containerWidth:null},r}return Object(bs.a)(n,[{key:"componentDidMount",value:function(){var e=this.container.current;e&&this.setState({containerWidth:e.offsetWidth})}},{key:"render",value:function(){var e=this.props.extension;if(!e.preview)return null;var t=e.preview,n=t.type,r=t.options,o=void 0===r?{}:r,i=t.fullWidth,s=this.getDimensions(),a=s.width,c=s.height,u=this.state.containerWidth||window&&window.innerWidth||a||0,l=null==o.padding?20:o.padding,f=Math.max(("number"==typeof a?Math.min(u,a):u)-2*l,0),d=c&&c>2*l?c-2*l:0;return 0===d?null:cs.a.createElement("div",{ref:this.container,className:i?"":"mw9 center w-100","data-testid":"loading-preview",style:{padding:l}},this.renderPreviewGraphic(f||"100%",d,n,o))}}]),n}(cs.a.PureComponent),Ps=n(75);function Ns(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var Ls=n(65);function Ds(e){return function(e){if(Array.isArray(e))return Object(Ps.a)(e)}(e)||Ns(e)||Object(Ls.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fs(){return(Fs=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.children,n=Hs(),r=n.extensions,o=Ks(),i=o.treePath,s=t?Xs(i,Array.isArray(t)?t:[t]):i,a=s&&r[s];return a||null},Zs=function(){var e=Qs();return e&&e.preview?cs.a.createElement(Ms,{extension:e}):null},ea=n(150),ta=n.n(ea),na=cs.a.createContext({lazyLoad:!1,method:"lazysizes"}),ra=function(e){var t=e.children,n=e.lazyLoad,r=void 0===n||n,o=e.experimentalMethod,i=void 0===o?"lazysizes":o;return cs.a.createElement(na.Provider,{value:{lazyLoad:r,method:i}},t)},oa=function(){return Object(as.useContext)(na)},ia=function(e){var t,n=e.createElement,r=void 0===n?cs.a.createElement:n,o=e.imageProps,i=oa(),s=i.lazyLoad,a=i.method;if(s){var c=o;switch(a){case"native":c=Object.assign(Object.assign({},o),{loading:"lazy"});break;case"lazysizes":c=Object.assign(Object.assign({},o),{key:o.src,className:"lazyload ".concat(null!==(t=o.className)&&void 0!==t?t:""," ").concat(ta.a.lazyload),src:void 0,"data-src":o.src,loading:"lazy"})}return r.apply(cs.a,["img",c])}return"true"===String(o["data-vtex-preload"])?cs.a.createElement(cs.a.Fragment,null,cs.a.createElement(ds.Helmet,{link:[{rel:"preload",as:"image",href:o.src,crossOrigin:o.crossOrigin}]}),r.apply(cs.a,["img",o])):r.apply(cs.a,["img",o])},sa=function(){var e=window&&window.innerHeight||1400;return cs.a.createElement("div",{className:"center w-100 mw9",style:{padding:20}},cs.a.createElement(xs,{height:e,width:"100%"}))},aa=cs.a.createContext({setLoading:function(){},isParentLoading:!1});aa.displayName="LoadingContext";var ca=aa.Provider,ua=function(e){var t=e.children,n=Object(as.useRef)({components:{}}),r=Object(as.useContext)(aa).isParentLoading,o=Object(as.useRef)(null),i=Object(as.useRef)(null),s=Object(as.useRef)(null),a=Object(as.useRef)(!1),c=Object(as.useCallback)((function(){var e,t,c=Object.values(n.current.components).some(Boolean);r||c?(a.current||null===s.current||(window.clearTimeout(s.current),s.current=null),r&&a.current&&(a.current=!1,function(e,t){e.current&&(e.current.style.position="absolute",e.current.style.width="100%",e.current.style.opacity="0"),t.current&&(t.current.style.display="")}(o,i))):(t=i,(e=o).current&&(e.current.style.position="",e.current.style.width="",e.current.style.opacity=""),t.current&&(t.current.style.display="none"),a.current=!0)}),[r]),u=Object(as.useCallback)((function(e,t){a.current||(n.current.components[e]=t,c())}),[c]);Object(as.useEffect)((function(){c()}),[r,c]);var l=Object(as.useMemo)((function(){return{setLoading:u}}),[u]),f=!Yi.canUseDOM;return Object(as.useMemo)((function(){return cs.a.createElement(ca,{value:l},cs.a.createElement("div",{ref:o,suppressHydrationWarning:!0,style:{opacity:f?1:0,position:f?"unset":"absolute",width:f?"unset":"100%"}},t),cs.a.createElement("div",{ref:i,suppressHydrationWarning:!0,style:{display:f?"none":"unset"}},cs.a.createElement(sa,null)))}),[t,f,l])};var la=function(e){if("string"==typeof e)throw new Error('You are passing a string as a parameter to useChildBlock ("'.concat(e,'"). You should pass an object like {id: "').concat(e,'"}.'));var t=e.id;if(!t)throw new Error("The id you are sending to useChildBlock is empty");var n=Qs({children:t});return n?{props:n.props}:null};var fa=function(e){var t=e.id;return(0,e.children)(la({id:t}))},da=n(90),pa=n(91);function ha(e){return Object(da.a)(e)||Ns(e)||Object(Ls.a)(e)||Object(pa.a)()}var ma=n(63);function ya(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function ga(e,t,n){return(ga=ya()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Object(ma.a)(o,n.prototype),o}).apply(null,arguments)}function va(e){var t="function"==typeof Map?new Map:void 0;return(va=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ga(e,arguments,Object(Os.a)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object(ma.a)(r,e)})(e)}function ba(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var _a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o4&&void 0!==arguments[4]&&arguments[4],i=["".concat(n,"/").concat(r),"".concat(ja(n),"/").concat(r)];if(e.hot||!o){var s=o?t():t,a=wa(e,s);return i.forEach((function(e){window.__RENDER_8_COMPONENTS__[e]=a,Oa[e]={implementer:a}})),a}return i.forEach((function(e){Object.defineProperty(window.__RENDER_8_COMPONENTS__,e,{get:function(){if(Oa[e])return Oa[e].implementer;var n=t();return i.forEach((function(e){Oa[e]={implementer:n}})),n}})})),t};window.flags={RENDER_NAVIGATION:!0,VTEX_ASSETS_URL:!0,PREFETCH:!1};var ka=function(e){return window.flags[e]};function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var Ta=ka("VTEX_ASSETS_URL")?"vtexassets.com":"vteximg.com.br";function Ia(e){var t=e.split("?")[0],n=/\.\w+$/.exec(t);return n?n[0]:""}var Ra=function(e){return"https://".concat(e,".").concat(Ta)},Ca=function(e){Object(_s.a)(n,e);var t=xa(n);function n(){return Object(vs.a)(this,n),t.call(this,"Loading assets on server side rendering is not supported")}return n}(va(Error));function Aa(e){return e&&!e.startsWith("/")}function Ma(e){return new Promise((function(t,n){if(!document||!document.head)throw new Ca;var r=document.createElement("script");r.type="text/javascript",r.onload=function(){return t()},r.onerror=function(){return n()},r.async=!1,r.src=e,Aa(e)&&(r.crossOrigin="anonymous"),document.body.appendChild(r)}))}function Pa(e){if(!document||!document.head)throw new Ca;var t=document.createElement("link");t.href=e,t.type="text/css",t.rel="stylesheet",Aa(e)&&(t.crossOrigin="anonymous");var n=document.getElementById("styles_bundled")||document.getElementById("override_link_0");n?document.head.insertBefore(t,n):document.head.appendChild(t)}var Na=function(e){var t=e&&e.getAttribute("href");if(t){var n=Date.now(),r=t.replace(/build(\d)+/,"build".concat(Math.round(n/1e3))),o=document.createElement("link"),i=e.nextElementSibling;o.rel="stylesheet",o.type="text/css",o.href=r,o.id="hot_reload_css"+n,o.onload=function(){requestAnimationFrame((function(){i&&e.parentNode&&i.id.indexOf("hot_reload_css")>-1&&e.parentNode.removeChild(i),e.disabled=!0}))},e.parentNode&&e.parentNode.insertBefore(o,i)}},La=function(){Array.from(document.querySelectorAll(".override_link")).forEach(Na)},Da=function(){Array.from(document.querySelectorAll(".style_link")).forEach(Na)};function Fa(e){if(!document||!document.head)throw new Ca;var t=document.createElement("link");t.href=e,t.as="style",t.rel="prefetch",Aa(e)&&(t.crossOrigin="anonymous"),document.head.appendChild(t)}function Ua(e){if(!document||!document.head)throw new Ca;var t=document.createElement("link");t.href=e,t.as="script",t.rel="prefetch",Aa(e)&&(t.crossOrigin="anonymous"),document.head.appendChild(t)}function qa(){for(var e=[],t=0;t').concat(t,"")},nc=function(e,t){return'').concat(t,"")},rc=function(e,t){for(var n=[],r=window.__hasPortals__&&Xa.exec(t),o=t;r;){var i=r,s=Object(Zi.a)(i,3),a=s[0],c=s[1],u=s[2];o=o.replace(a,""),n.push({markup:tc(c,nc(c,u)),name:c}),r=Xa.exec(t)}return n.unshift({markup:tc(e,o),name:e}),n},oc=function(){try{return Yi.canUseDOM&&window.top!==window.self&&window.top.__provideRuntime&&!!window.top.__provideRuntime&&"store"===window.__RUNTIME__.route.domain}catch(e){return!1}}(),ic=function(){if(!Yi.canUseDOM)throw new Error("Should not try to get container on server side");var e=document.getElementsByClassName("render-container")[0];if(e)return{container:e,created:!1};var t=document.createElement("div");return t.className="render-container ".concat(ec(name)),t.style.display="none",document.body.appendChild(t),{container:t,created:!0}},sc=n(59);function ac(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var cc=function(e){Object(_s.a)(n,e);var t=ac(n);function n(){var e;return Object(vs.a)(this,n),(e=t.apply(this,arguments)).addDataToElementIfEditable=function(){var t=e.props,n=t.component,r=t.treePath,o=t.runtime.extensions[r],i=n&&Wa(n);if((null==o?void 0:o.hasContentSchema)||(null==i?void 0:i.hasOwnProperty("schema"))||(null==i?void 0:i.hasOwnProperty("getSchema"))){var s=fs.a.findDOMNode(Object(sc.a)(e));s&&s.setAttribute&&s.setAttribute("data-extension-point",r)}},e.removeDataFromElement=function(){if(oc){var t=fs.a.findDOMNode(Object(sc.a)(e));t&&t.removeAttribute&&t.removeAttribute("data-extension-point")}},e}return Object(bs.a)(n,[{key:"componentDidMount",value:function(){this.addDataToElementIfEditable()}},{key:"componentDidUpdate",value:function(){this.addDataToElementIfEditable()}},{key:"componentWillUnmount",value:function(){this.removeDataFromElement()}},{key:"render",value:function(){return cs.a.createElement(cs.a.Fragment,null,this.props.children)}}]),n}(cs.a.Component),uc=/([^/]+?)(?:$|\?)/,lc=/(\.min)?(\.js|\.css)/,fc=Object(gs.uniqWith)((function(e,t){return e.path===t.path})),dc=function(e){var t=e.split("/"),n=Object(Zi.a)(t,1)[0].split("@"),r=Object(Zi.a)(n,2);return{app:r[0],version:r[1]}},pc=function(e,t){var n=Object.keys(t).reduce((function(e,t){var n=dc(t),r=n.app,o=n.version,i=o.split("."),s=Object(Zi.a)(i,1)[0];return e[r]?e[r][s]=o:e[r]=Ki({},s,o),e}),{});return Object.keys(e).some((function(e){var t,r=dc(e),o=r.app,i=r.version,s=i.split("."),a=Object(Zi.a)(s,1)[0],c=null===(t=n[o])||void 0===t?void 0:t[a];return c&&c!==i}))},hc=function(){var e=Object(es.a)(Qi.a.mark((function e(t,n,r){var o,i,s;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r||(o=Object.keys(t),r=o.reduce((function(e,t){return e[t]={component:t},e}),{})),0!==(i=Object.values(r).reduce((function(e,t){var n;if(!t)return e;if("lazy"===t.render)return e;Ga(t.component)||e.push(t.component);var r=null===(n=null==t?void 0:t.context)||void 0===n?void 0:n.component;return r&&!Ga(r)&&e.push(r),e}),[])).length){e.next=4;break}return e.abrupt("return");case 4:return s=mc(t,i),e.next=7,Va(n,s);case 7:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),mc=function(e,t){var n=t.reduce((function(t,n){var r=yc(e,n,!1);return t.push.apply(t,Ds(r)),t}),[]);return fc(n)},yc=function e(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t[n],i=n.split("/"),s=Object(Zi.a)(i,1),a=s[0];if(Array.isArray(o))return o.map((function(e){return{path:e,app:a,name:gc(e)}}));var c=o.dependencies,u=o.assets,l=c.reduce((function(n,r){return e(t,r,!1).concat(n)}),u.map((function(e){return{path:e,app:a,name:gc(e)}})));return r?fc(l):l},gc=function(e){var t=uc.exec(e),n=(t&&t.length>0?t[1]:"").replace(lc,"");return n},vc=function(e){var t=Object(as.useState)((function(){var t,n;return null===(n=null===(t=null===window||void 0===window?void 0:window.document)||void 0===t?void 0:t.querySelector)||void 0===n?void 0:n.call(t,'[data-hydration-id="'.concat(e,'"]'))})),n=Object(Zi.a)(t,1)[0],r=Object(as.useState)(!!n&&n.childElementCount>0);return{hasRenderedOnServer:!!n,hasDehydratedContent:Object(Zi.a)(r,1)[0],dehydratedElement:n}};function bc(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function _c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==u[2]?u[2]:10,s=null===(i=null===(o=null==t?void 0:t.extensions)||void 0===o?void 0:o[n])||void 0===i?void 0:i.component,!(s&&Wa(s))){e.next=5;break}return e.abrupt("return",!0);case 5:if(!(r>0)){e.next=13;break}return a=1100-100*r,e.next=9,new Promise((function(e){return setTimeout(e,a)}));case 9:return e.next=11,wc(t,n,r-1);case 11:return c=e.sent,e.abrupt("return",c);case 13:throw new Error("Unable to fetch component ".concat(s));case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sc(e,t){if(Yi.canUseDOM){var n=function e(t,n,r,o){var i,s,a=t[r];if(!a)return[];var c=null!==(s=null===(i=a.blocks)||void 0===i?void 0:i.map((function(e){return"".concat(r,"/").concat(e.extensionPointId)})))&&void 0!==s?s:[],u=a.component,l=yc(n,u,o),f=c.map((function(r){return e(t,n,r,!1)})).reduce((function(e,t){return e.push.apply(e,Ds(t)),e}),[]);return l.concat(f)}(e.extensions,e.components,t,!0);return new Promise((function(r){Va(e,n).then((function(){wc(e,t).then(r)}))}))}return new Promise((function(){}))}var jc=function(e,t){var n=Object(as.useRef)([]);if(t){var r=function(e){try{return document.querySelectorAll(e)}catch(e){return console.error(e),[]}}('[data-hydration-id="'.concat(e,'"] img.lazyloaded'));n.current=Array.from(r)}Object(as.useLayoutEffect)((function(){if(t){var e=n.current.map((function(e){return function(e){try{return document.querySelector(e)}catch(e){return console.error(e),null}}('img[data-src="'.concat(e.src,'"]'))}));if(e){var r,o=bc(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i){i.classList.remove("lazyload"),i.setAttribute("loading","eager");var s=i.getAttribute("data-src");!i.src&&s&&(i.src=s)}}}catch(e){o.e(e)}finally{o.f()}}}}),[e,t])},Ec=function(e){var t=e.children,n=e.shouldHydrate,r=e.treePath,o=Object(as.useRef)(n),i=vc(r).hasRenderedOnServer,s=!i||n&&n===o.current,a=function(e,t){var n=Hs(),r=!Yi.canUseDOM,o=Object(as.useState)(r),i=Object(Zi.a)(o,2),s=i[0],a=i[1];return Object(as.useEffect)((function(){!s&&e&&t&&Sc(n,e).then((function(){a(!0)}))}),[s,e,t,n]),{isLoaded:s}}(r,s||n).isLoaded;jc(r,n&&!s&&a);var c={"data-hydration-id":r,style:{display:"contents"}};return a||i?s||n&&a?cs.a.createElement("div",c,t):cs.a.createElement("div",Fs({},c,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}})):cs.a.createElement("div",c)};Ec.displayName="PreventHydration";var kc=cs.a.memo(Ec),xc=function(e){var t=e.ref,n=e.onView,r=e.threshold,o=void 0===r?0:r,i=e.once,s=void 0!==i&&i,a=e.bailOut,c=void 0!==a&&a,u=e.initializeOnInteraction,l=void 0!==u&&u,f=Object(as.useRef)(!1),d=Object(as.useRef)(!1);Object(as.useEffect)((function(){var e,r,i=function(){var e=t.current;if(c||f.current||!e||!n||s&&d.current)return function(){};f.current=!0;var r=function(){f.current&&(i.unobserve(e),f.current=!1)},i=new IntersectionObserver((function(e){var t=Object(Zi.a)(e,1)[0];t.isIntersecting&&(t.intersectionRatio0&&p(),u}return i()}),[c,l,n,s,t,o])},Tc=function(e){var t=e.children,n=e.treePath,r=Object(as.useRef)(null),o=Object(as.useState)(!1),i=Object(Zi.a)(o,2),s=i[0],a=i[1],c=vc(n).hasRenderedOnServer;return xc({ref:r,once:!0,initializeOnInteraction:!0,bailOut:!c||s,onView:function(){a(!0)}}),cs.a.createElement("div",{ref:r},cs.a.createElement(kc,{shouldHydrate:s||!c,treePath:n},t))},Ic=function(e){var t=e.hydration,n=e.treePath,r=e.children;return"on-view"===t?cs.a.createElement(Tc,{treePath:n},r):cs.a.createElement(cs.a.Fragment,null,r)};function Rc(e){var t=e.treePath,n=e.slotName,r=e.slotValue,o=e.hydration,i="".concat(t,"/").concat(r),s=function(e){var t,n,r,s=Hs(),a=s.extensions[i],c=Xc(s,i),u=null!==(t=null==a?void 0:a.props)&&void 0!==t?t:{},l=null!==(n=null==a?void 0:a.content)&&void 0!==n?n:{},f=Object(as.useMemo)((function(){return Object.assign(Object.assign(Object.assign({},e),u),l)}),[u,l,e]);return cs.a.createElement(Fc,{component:null!==(r=null==a?void 0:a.component)&&void 0!==r?r:null,props:f,treePath:i,runtime:s,hydration:o},Array.isArray(c)&&0===c.length&&f.children?f.children:c)};return s.displayName="".concat(n,"Slot"),s}function Cc(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ac(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ac(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function Ac(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==i[2]?i[2]:3,!(o=t&&Wa(t))){e.next=4;break}return e.abrupt("return",o);case 4:if(t in Mc){e.next=8;break}Mc[t]=n(t),e.next=14;break;case 8:if(!Pc[t]){e.next=14;break}if(!(r>0)){e.next=13;break}return e.next=12,new Promise((function(e){return setTimeout(e,1e3)}));case 12:return e.abrupt("return",Nc(t,n,r-1));case 13:throw new Error("Unable to fetch component ".concat(t));case 14:return e.next=16,Mc[t];case 16:return Pc[t]=!0,e.abrupt("return",Wa(t));case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Dc=function(e){var t=e.component,n=e.children,r=e.treePath,o=e.props,i=e.runtime,s=-1===r.indexOf("/"),a=-1!==r.indexOf("$around"),c=Object(as.useState)((function(){return t&&Wa(t)||null})),u=Object(Zi.a)(c,2),l=u[0],f=u[1];return Object(as.useEffect)((function(){!l&&t&&Nc(t,i.fetchComponent).then((function(e){l||f((function(){return e}))}))}),[l,t,i.fetchComponent]),l?cs.a.createElement(l,o,n):s||a?cs.a.createElement(cs.a.Fragment,null,o.beforeElements,cs.a.createElement(sa,null),o.afterElements):cs.a.createElement(Zs,null)},Fc=function(e){var t,n,r=e.component,o=e.children,i=e.treePath,s=e.props,a=e.runtime,c=e.hydration,u=Object(as.useMemo)((function(){if(!s)return{};var e,t={},n=Cc(Object.keys(s).filter((function(e){return e[0]!==e[0].toLowerCase()})));try{for(n.s();!(e=n.n()).done;){var r=e.value;t[r]=Rc({treePath:i,slotName:r,slotValue:s[r],hydration:c})}}catch(e){n.e(e)}finally{n.f()}return t}),[c,i]),l=Object(as.useMemo)((function(){return Object.assign(Object.assign({},s),u)}),[s,u]),f=Object(as.useMemo)((function(){return Object.assign(Object.assign({},e),{props:l})}),[l,e]),d=r&&Wa(r);if(null==r?void 0:r.includes("Fold"))return null;var p=d?cs.a.createElement(d,l,o):cs.a.createElement(Dc,f,o),h=null!==(n=null===(t=null==a?void 0:a.route)||void 0===t?void 0:t.queryString)&&void 0!==n?n:{},m=Object.keys(h).includes("__siteEditor"),y=!c||"always"===c||(null==i?void 0:i.substring((null==i?void 0:i.indexOf("/"))+1).indexOf("/"))>-1;return m||y||(p=cs.a.createElement(ra,null,cs.a.createElement(Ic,{treePath:i,hydration:c},p))),p=cs.a.createElement(Ys,{treePath:i},p),oc&&(p=cs.a.createElement(cc,e,p)),p};function Uc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var qc=function(e){Object(_s.a)(n,e);var t=Uc(n);function n(e){var r;return Object(vs.a)(this,n),(r=t.call(this,e)).handleToggleErrorDetails=function(){r.setState({errorDetails:!r.state.errorDetails})},r.state={},r}return Object(bs.a)(n,[{key:"render",value:function(){var e=this.props,t=e.treePath,n=e.error,r=e.errorInfo,o=e.operationIds,i=this.state.errorDetails,s=r&&r.componentStack;return cs.a.createElement("div",{className:"bg-washed-red pa6 f5 serious-black br3 pre"},cs.a.createElement("span",null,"Error rendering extension point ",cs.a.createElement("strong",null,t)),cs.a.createElement("button",{type:"button",className:"red ph0 ma0 mh3 bg-transparent bn pointer link",onClick:this.handleToggleErrorDetails},"(",i?"hide":"show"," details)"),i&&n&&cs.a.createElement(cs.a.Fragment,null,cs.a.createElement("ul",{className:"f6 list pl0"},o&&o.map((function(e){return cs.a.createElement("li",{key:e},cs.a.createElement("span",null,"Operation ID:")," ",cs.a.createElement("span",{className:"i"},e))}))),cs.a.createElement("pre",null,cs.a.createElement("code",{className:"f6"},n.stack))),i&&s&&cs.a.createElement("pre",null,cs.a.createElement("code",{className:"f6"},s)))}}]),n}(as.PureComponent);function Bc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var zc=function(e){Object(_s.a)(n,e);var t=Bc(n);function n(){var e;return Object(vs.a)(this,n),(e=t.apply(this,arguments)).state={error:void 0,errorInfo:void 0},e}return Object(bs.a)(n,[{key:"componentDidCatch",value:function(e,t){if(this.setState({error:e,errorInfo:t}),Object(Gi.a)()){Object(u.c)(this.state,{tags:{admin_render_runtime_page:"ErrorBoundary"}})}}},{key:"render",value:function(){var e=this.props.runtime.production,t=this.state,n=t.error,r=t.errorInfo;return n?e?null:cs.a.createElement(qc,{error:n,errorInfo:r}):this.props.children}}]),n}(cs.a.Component),Hc=n(151),$c=n.n(Hc),Wc=function(){return cs.a.createElement("div",{className:"".concat($c.a.loadingBarAnimation," fixed top-0 left-0 right-0 z-max bg-action-primary"),style:{height:4}},cs.a.createElement("div",{style:{background:"linear-gradient(90deg, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0.5) 90%, rgba(255, 255, 255, 0.8))",width:"100%",height:"100%"}}))},Gc=function(e){var t=e.children,n=e.height,r=void 0===n?400:n,o=e.offset,i=void 0===o?300:o,s=Object(as.useRef)(null),a=Object(as.useState)(!1),c=Object(Zi.a)(a,2),u=c[0],l=c[1];return xc({ref:s,onView:function(){l(!0)},once:!0,initializeOnInteraction:!0}),u?cs.a.createElement(cs.a.Fragment,null,t):cs.a.createElement("div",{style:{position:"relative",width:"100%",height:r},className:"vtex-render__lazy-container"},cs.a.createElement("div",{ref:s,style:{position:"relative",width:"100%",top:-i,height:"100%",paddingBottom:2*i,boxSizing:"content-box"}}))},Vc=function(e){var t=e.children,n=e.foldIndex;if(null==n||-1===n)return cs.a.createElement(cs.a.Fragment,null,t);var r=cs.a.Children.toArray(t),o=r.slice(0,n),i=r.slice(n).map((function(e,t){return cs.a.createElement(Gc,{key:t},e)}));return cs.a.createElement(cs.a.Fragment,null,o,i)},Jc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o-1?cs.a.createElement(Vc,{foldIndex:s},a):a}}var Qc=function(e){var t,n=Hs(),r=n.inspect,o=n.getSettings,i=Ks(),s=e.children,a=e.params,c=e.query,u=e.id,l=e.blockProps,f=Jc(e,["children","params","query","id","blockProps"]),d=cs.a.useMemo((function(){return Kc(u,e.treePath||i.treePath)}),[u,e.treePath,i.treePath]),p=n.extensions&&n.extensions[d],h=p||{},m=h.component,y=void 0===m?null:m,g=h.after,v=void 0===g?[]:g,b=h.around,_=void 0===b?[]:b,w=h.before,O=void 0===w?[]:w,S=h.content,j=void 0===S?{}:S,E=h.render,k=void 0===E?null:E,x=h.hydration,T=void 0===x?"always":x,I=h.props,R=void 0===I?{}:I,C=null==y?void 0:y.substr(0,y.indexOf("@")),A=C?o(C):{},M=cs.a.useMemo((function(){return Object(gs.reduce)(gs.mergeDeepRight,{},[A?{appSettings:A}:{},f,R,l||{},j,{params:a,query:c}])}),[f,R,l,j,a,c,A]),P=Object(as.useMemo)((function(){return p&&"children"===p.composition&&(null==p?void 0:p.blocks)?Xc(n,d):s}),[s,p,d,n]);if(!p)return null;var N=-1===d.indexOf("/"),L=cs.a.createElement(Fc,{component:y,props:M,runtime:n,treePath:d,hydration:T},y?P:N?cs.a.createElement(sa,null):cs.a.createElement(Zs,null)),D=Boolean(null===(t=o("vtex.store"))||void 0===t?void 0:t.enableLazyFooter),F=function(e,t,n,r,o,i,s,a){if(0===n.length&&0===e.length&&0===t.length)return i;var c=n.map((function(e){return cs.a.createElement(Qc,{id:e,key:e,treePath:r,params:o.params,query:o.query})})),u=e.map((function(e){var t=cs.a.createElement(Qc,{id:e,key:e,treePath:r,params:o.params,query:o.query});return s&&"$after_footer"===e&&!(null==a?void 0:a.path.includes("__siteEditor"))?cs.a.createElement(Gc,{key:e},t):t})),l=-1===r.indexOf("/"),f=cs.a.createElement(as.Fragment,{key:"wrapped-".concat(r)},cs.a.createElement(ra,null,c),i,l&&cs.a.createElement("div",{className:"flex flex-grow-1 bg-below-element"}),cs.a.createElement(ra,null,u));return t.reduce((function(e,t){return cs.a.createElement(Qc,Fs({},o,{id:t,key:t,treePath:r,beforeElements:c,afterElements:u}),e)}),f)}(v,_,O,d,M,L,D,null==n?void 0:n.route),U=cs.a.createElement(as.Fragment,null,n.preview&&N&&cs.a.createElement(Wc,null),"client"!==k||n.amp?F:cs.a.createElement(ys,{onSSR:cs.a.createElement(Zs,null)},F));return r?cs.a.createElement(as.Suspense,{fallback:U},cs.a.createElement(Yc,{extension:p,treePath:d},U)):U};Qc.defaultProps={blockProps:{},treePath:""};var Zc,eu,tu,nu=(eu=function(e){var t=Hs();return cs.a.createElement(zc,{runtime:t},cs.a.createElement(Zc,e))},(tu=(Zc=Qc).displayName||Zc.name)&&(eu.displayName="withErrorBoundary(".concat(tu,")")),eu),ru=nu,ou=function(e,t){return[e,t].filter((function(e){return!!e})).join("/")},iu=function(e){var t=e.id,n=Hs().extensions,r=Ks().treePath,o=ou(r,t);return cs.a.createElement(as.Fragment,null,Vs(n,o).map((function(n){var r=ou(t,n);return cs.a.createElement(ru,Fs({},e,{key:r,id:r}))})))},su=nu,au=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o-1,h=o.indexOf("__fold__.experimentalLazyImages"),m=h>-1,y=o.length;a&&null!=r&&(y=r);var g=o.slice(0,y).map((function(t,n){var r=cs.a.createElement(e,Fs({key:t.toString(),elements:t,isMobile:s,isRow:!i},l),c);return m&&n>h&&(r=cs.a.createElement(ra,{key:t.toString()},r)),r}));return!p||oc||(null===(n=null==u?void 0:u.path)||void 0===n?void 0:n.includes("__siteEditor"))?cs.a.createElement("div",{className:f},g):cs.a.createElement("div",{className:f},cs.a.createElement(Vc,{foldIndex:d},g))},uu=function(e){var t,n,r,o=Hs(),i=o.extensions,s=o.preview,a=o.hints,c=o.route,u=Ks().treePath,l=i[u],f=null!==(r=null===(n=null===(t=null==l?void 0:l.blocks)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(function(e){return e.extensionPointId})))&&void 0!==r?r:[],d=Object.assign(Object.assign({},e),{elements:f}),p=cs.a.createElement(cu,Fs({},d,{preview:s,isRow:!1,isMobile:a.mobile,route:c})),h=-1===u.indexOf("/");return(null==l?void 0:l.preview)&&h?cs.a.createElement(ua,null,p):p},lu=function(e){var t=e.query,n=e.params,r=Object(as.useState)(!1),o=Object(Zi.a)(r,2),i=o[0],s=o[1];Object(as.useEffect)((function(){s(!0)}),[]);var a=Hs().extensions,c=Ks().treePath;return cs.a.createElement(as.Fragment,null,Vs(a,c).map((function(e){return function(e,t,n){if(window.__hasPortals__=!0,!n)return Yi.canUseDOM?null:cs.a.createElement(as.Fragment,null,"START_SERVER_PORTAL_".concat(t,"!"),e,"END_SERVER_PORTAL_".concat(t,"!"));var r=document.getElementById(Za(t));r&&r.remove();var o=document.getElementsByClassName(ec(t))[0];return o?Object(ls.createPortal)(e,o):(console.warn("Missing React Portal container div.".concat(ec(t))),null)}(cs.a.createElement(ru,{id:e,query:t,params:n}),"".concat(c,"/").concat(e),i)})))},fu=n(96),du=n.n(fu);function pu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return hu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function hu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return ss.a.stringify(e,{encode:!1})}function ju(e,t){var n=t&&/\*\w+$/.test(t)?t:t.replace(/\/?$/,"*_rest");return t&&Eu(n,e)||mu}function Eu(e,t){var n,r=bu(e),o=(n=t.split("#"),vu(Object(Zi.a)(n,1)[0]));return new du.a(r).match(o)}function ku(e,t){var n=t[e],r=n.path,o=n.cname;return o&&o===(Yi.canUseDOM?window.location.hostname:window.__hostname__)?"/":r}function xu(e,t,n){var r=Object.keys(n).filter((function(e){return!e.startsWith("__")})).reduce((function(e,t){return e[t]=n[t],e}),{}),o=wu(e,t,r)||"";return function(e,t,n,r){var o=Eu(_u(e,t)||"",n),i=Object(gs.difference)(Object(gs.keys)(r),Object(gs.keys)(o));Object(gs.isEmpty)(i)||console.warn("The following params are invalid: ".concat(i.join(", ")))}(e,t,o,r),o?{id:e,path:o,params:n}:null}function Tu(e,t){var n=bu(e),r=new du.a(n).reverse(t);return r||(console.warn("Canonical path template '".concat(e,"' could not be created with params: ").concat(t)),!1)}function Iu(e,t){var n=Lu(e,t);if(!n)return null;var r=ju(e,n.path),o=n.canonical&&Tu(n.canonical,r)||e;return{id:n.id,params:r,path:o}}function Ru(e,t,n,r){var o=function(e,t,n){var r=t.map?t.map.split(","):[],o=null;r.length>0&&!ka("RENDER_NAVIGATION")&&(o=function(e,t){var n,r,o=Number.NEGATIVE_INFINITY;for(var i in t){var s=t[i],a=s.map,c=void 0===a?[]:a;s.path&&0!==c.length&&Object(gs.startsWith)(c,e)&&(r=c.length,o>r||(o=r,n=i))}if(!n)return null;var u=t[n].path.split("/").slice(0,o+1).join("/");return{id:n,path:yu(u)}}(r,n));o||(o=Lu(e,n));return o}(e,n?Ou(r?n+r:n):{},t);if(!o)return null;var i=ju(e,o.path),s=o.canonical&&Tu(o.canonical,i)||e;return{id:o.id,params:i,path:s}}var Cu=function(e){var t={};for(var n in e)t[n]=decodeURI(e[n]);return t};function Au(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.page,o=t.params,i=t.query,s=t.to,a=void 0===s?"":s,c=t.rootPath,u=t.modifiers,l=t.modifiersOptions;if(!r&&!a)return n&&console.error("Invalid navigation options. You should use 'page' or 'to' parameters"),null;if(a&&i&&n&&console.warn("You shouldn't pass 'query' in a separate prop when using 'to'"),0===a.indexOf("#")&&-1===a.indexOf("?"))return{hash:a};var f=(Object(gs.is)(String,a)?a:"").split("?"),d=Object(Zi.a)(f,2),p=d[0],h=d[1],m=(Object(gs.is)(String,h)?h:"").split("#"),y=Object(Zi.a)(m,2),g=y[0],v=y[1],b=Object(gs.is)(String,v)?"#".concat(v):"",_=i||g,w=Cu(o),O={};if(ka("RENDER_NAVIGATION")){var S={path:p,params:{},id:""},j=r&&xu(r,e,w),E=Iu(p,e);O=j||E||S}else O=r?xu(r,e,w):Ru(p,e,_,b);if(!O)return n&&console.warn("Unable to find route for ".concat(r?"page '".concat(r,"' and the passed parameters"):"path '".concat(p,"'"))),null;if(O.path=Pu(O.path,c),u){var k,x=pu(u);try{for(x.s();!(k=x.n()).done;){var T=k.value,I=T({path:O.path,query:_,options:l}),R=I.path,C=I.query;O.path=R||O.path,_=C||_}}catch(e){x.e(e)}finally{x.f()}}return O.realHash=b,O.query=_,O}function Mu(e,t,n){var r,o,i,s,a,c=n.scrollOptions,u=n.fallbackToWindowLocation,l=void 0===u||u,f=n.replace,d=n.fetchPage,p=void 0===d||d,h=n.preventRemount,m=n.skipSetPath,y=void 0!==m&&m,g=Au(t,n,!0);if(g.hash)return window.location.hash=g.hash,!0;if(null==g)return!1;if(e){var v=function(e,t){var n=t.hash,r=t.query,o=t.scrollOptions,i=t.fetchPage,s=t.preventRemount,a=t.skipSetPath;return Object.assign(Object.assign(Object.assign({state:{fetchPage:i,navigationRoute:e,preventRemount:s,renderRouting:!0,scrollOptions:o}},a?{}:{pathname:e.path}),r&&{search:r}),n&&{hash:n})}(g,{fetchPage:p,preventRemount:h,query:(r=e.location.search,o=g.query,i=Ou(r),s=Ou(o),a=["disableUserLand","__bindingAddress","__siteEditor"].reduce((function(e,t){var n;return!(n=i[t])&&null!==n||"false"===i[t]||(e[t]=i[t]),e}),{}),Su(Object.assign(Object.assign({},a),s))),scrollOptions:c,hash:g.realHash,skipSetPath:y}),b=f?"replace":"push";return window.setTimeout((function(){return e[b](v)}),0),!0}return!!l&&(window.location.href="".concat(g.path).concat(g.query),!0)}function Pu(e,t){return!t||e.startsWith("http")||e.startsWith("".concat(t,"/"))?e:t+e}function Nu(e){try{window.scrollTo(e)}catch(r){var t=null==e.left?window.scrollX:e.left,n=null==e.top?window.scrollY:e.top;window.scrollTo(t,n)}}function Lu(e,t){var n,r,o=null;for(var i in t){var s=ku(i,t);if(s)!!Eu(s,e)&&(r=gu(s),null!==o&&o2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4?arguments[4]:void 0;Object(vs.a)(this,e),this.next=r,this.value=n,this.prev=o,this.key=t,this.time=null!=i?i:Date.now()},Fu=function(){function e(t){Object(vs.a)(this,e),this.maxSize=1/0,this.maxAge=0,this.head=null,this.tail=null,this.map=new Map;var n="number"==typeof t;this.maxSize=(n?t:t.max||t.maxSize)||1/0,this.maxAge=n?0:t.maxAge||0,this.disposeFn=t.disposeFn}return Object(bs.a)(e,[{key:"isExpired",value:function(e){if(this.maxAge<=0)return!1;var t=Date.now()-this.maxAge;return e.time=t;n--)e[n+1]=e[n]}var qu=function(e,t){return e.findIndex((function(e){return t>e.priority}))},Bu=function(){function e(t){var n;Object(vs.a)(this,e),this.queue=[],this.concurrency=0,this.runningPromisesCount=0,this.isActive=!0,this.concurrency=null!==(n=null==t?void 0:t.concurrency)&&void 0!==n?n:0,!1===(null==t?void 0:t.autoStart)&&(this.isActive=!1)}return Object(bs.a)(e,[{key:"pause",value:function(){this.isActive=!1}},{key:"clear",value:function(){this.queue=[],this.runningPromisesCount=0}},{key:"add",value:function(e,t){this.canStart()?this.startPromise(e):this.enqueue(e,t)}},{key:"start",value:function(){this.isActive=!0;var e=this.concurrency>0?this.concurrency-this.runningPromisesCount:this.queue.length;if(!(e<=0||0===this.queue.length))for(var t=0;t0&&this.runningPromisesCount>=this.concurrency}},{key:"canStart",value:function(){return this.isActive&&!this.isFull()}},{key:"startPromise",value:function(e){var t=this;this.runningPromisesCount+=1,e().then((function(){t.runningPromisesCount-=1,t.dequeue()})).catch((function(){t.runningPromisesCount-=1,t.dequeue()}))}},{key:"dequeue",value:function(){if(this.queue.length>0&&this.canStart()){var e=this.queue.shift().promise;this.startPromise(e)}}},{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={promise:e,priority:null!==(t=n.priority)&&void 0!==t?t:0};if(this.queue.length>1){var o=this.queue[this.queue.length-1];if(r.priority>o.priority){var i=qu(this.queue,r.priority);return Uu(this.queue,i),void(this.queue[i]=r)}}this.queue.push(r)}}]),e}(),zu=n(152),Hu=n.n(zu),$u=n(153),Wu=n.n($u),Gu=n(154),Vu=n.n(Gu),Ju=function(e){var t=e.split("/");return t[0]="*",t.join("/")},Yu=function(e,t,n,r){var o={},i=r.routeId;return function e(t,n,r,o,i,s,a){var c=[];if(!i[t])return c;var u=i[t],l=u.blockIdMap,f=u.contentIdMap,d=l[n]||l[Ju(n)]||l["*"],p=s[d],h=p.blockId,m=p.after,y=void 0===m?[]:m,g=p.around,v=void 0===g?[]:g,b=p.before,_=void 0===b?[]:b,w=p.blocks,O=void 0===w?[]:w,S=f[r]||f[Ju(r)]||h,j="".concat(S,"+").concat(h),E=a[j]||a[S]||{content:{},contentIds:[]},k=E.content||E,x=E.contentIds||[],T=[{treePath:n,extension:{after:y.map((function(e){return e.extensionPointId})),around:v.map((function(e){return e.extensionPointId})),before:_.map((function(e){return e.extensionPointId})),blockId:p.originalBlockId||h,blocks:O,component:p.component,composition:p.composition,content:k,contentIds:x,context:p.context,hasContentSchema:p.hasContentSchema,preview:p.preview,props:p.props,render:p.render,title:p.title,track:p.track}}],I=[y,v,_].map((function(t){return t.reduce((function(t,o){var c=o.extensionPointId,u="".concat(n,"/").concat(c),l=e(c,u,r,!0,i,s,a);return t.push.apply(t,Ds(l)),t}),[])})),R=Object(Zi.a)(I,3),C=R[0],A=R[1],M=R[2],P=O.reduce((function(c,u){var l=u.extensionPointId,f="".concat(t,"/").concat(l),d="".concat(n,"/").concat(l),p=o?r:"".concat(r,"/").concat(l),h=e(f,d,p,o,i,s,a);return c.push.apply(c,Ds(h)),c}),[]);return c.concat(T,C,A,M,P)}(i,i,i,!1,e,t,n).forEach((function(e){o[e.treePath]=e.extension})),o},Ku=function(e){return new Promise((function(t){return setTimeout(t,e)}))},Xu=[0,408,425,429,500,501,502,503,504,505,506,507,508,510,511],Qu=function(e){return Xu.includes(e)},Zu=function(e){return 200<=e&&e<300},el=function(e){return 404===e},tl=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,o=500,i=function i(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n(e,t).then((function(e){return o=e.status,Zu(o)||el(o)?{response:e,error:null}:e.json().then((function(t){return{response:e,error:t}})).catch((function(){return{response:e,error:{message:"Unable to parse JSON"}}}))})).then((function(e){var t=e.response,n=e.error;if(n)throw new Error(n.message||"Unknown error");return{response:t,error:null}})).catch((function(e){if(console.error(e),s>=r||!Qu(o))throw e;var t=500*Math.pow(2,s);return Ku(t).then((function(){return i(++s)}))}))};return i()},nl=function(e){return e&&Object(gs.zipObj)(Object(gs.pluck)("key",e),Object(gs.pluck)("message",e))};function rl(e){if(!e)return"/api/io";var t=e.startsWith("/")?"":"/";return"/api/io".concat(t).concat(e)}var ol=["appsEtag","blocks","blocksTree","components","contentMap","extensions","messages","page","pages","query","queryData","route","runtimeMeta","settings"].join(",");function il(e){var t=e.path,n=e.query,r=window.location.origin,o=new URL(t,r);return o.search="",Object.entries(n).forEach((function(e){var t=Object(Zi.a)(e,2),n=t[0],r=t[1];void 0!==r&&o.searchParams.set(n,r)})),o.href.slice(r.length)}var sl=function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n,r,o,i,s,a,c,u,l,f,d,p,h,m,y,g,v,b,_,w;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.fetcher,r=t.path,o=t.query,i=t.workspace,s=t.deviceInfo,a=t.isJanusProxied,c=a?rl(r):r,u=il({path:c,query:Object.assign(Object.assign(Object.assign(Object.assign({},o),i?{workspace:i}:{}),{__pickRuntime:ol}),s&&{__device:s.type})}),e.next=5,tl(u,{credentials:"same-origin",headers:{accept:"application/json"}},n).then((function(e){return e.response.json()}));case 5:return l=e.sent,f=l.blocksTree,d=l.blocks,p=l.contentMap,h=l.extensions,m=l.pages,y=l.route,g=l.route.routeId,v=l.queryData,"redirect"===g&&(window.location.href=a?rl(y.path):y.path),b=Object(is.stringify)(o||{}),_="".concat(c).concat(b?"?"+b:b),w=!Object(gs.isEmpty)(f)&&f&&d&&p?Yu(f,d,p,m[g]):h,e.abrupt("return",Object.assign(Object.assign({},l),{extensions:w,matchingPage:Object.assign(Object.assign({},y),{path:_}),queryData:v}));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),al={pages:0,render:0},cl=function(e,t){return e.then((function(e){return al[t]=0,e})).catch((function(e){throw al[t]++,e}))},ul=function(e){return Boolean(ka("PREFETCH")&&(null==e?void 0:e.enablePrefetch))},ll=function(e){return al.pages<4&&al.render<4&&ul(e)},fl=function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n,r,o,i,s,a,c;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.fetcher,r=t.path,o=t.query,i=t.workspace,s=il({path:r,query:Object.assign(Object.assign(Object.assign({},o),i?{workspace:i}:{}),{__pickRuntime:"page,queryData,contentResponse,route"})}),a=tl(s,{credentials:"same-origin",headers:{accept:"application/json"}},n,0).then((function(e){return e.response.json()})),e.next=5,cl(a,"render").catch((function(){return null}));case 5:return c=e.sent,e.abrupt("return",c);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),dl=function(e){return e.desktop?"desktop":e.phone?"phone":e.tablet?"tablet":"unknown"},pl=function(e){var t=e.apolloClient,n=e.routeId,r=e.declarer,o=e.query,i=e.hints,s=e.renderMajor,a=t.query({fetchPolicy:"no-cache",query:Vu.a,variables:{declarer:r,query:o,routeId:n,device:dl(i),renderMajor:s}}).then((function(e){var t,n=e.data.prefetchBlocks,r=e.errors;return r?Promise.reject(r):(t=n,{extensions:JSON.parse(t.extensionsJSON),components:JSON.parse(t.componentsJSON),messages:nl(t.messages)})}));return cl(a,"pages")},hl=function(e){var t=e.apolloClient,n=e.routeId,r=e.declarer,o=e.production,i=e.paramsJSON,s=e.renderMajor,a=e.skipCache,c=e.query;return t.query({fetchPolicy:o&&!a?"cache-first":"network-only",query:Hu.a,variables:{declarer:r,params:i,production:o,query:c,renderMajor:s,routeId:n}}).then((function(e){var t=e.data.navigationPage,n=e.errors;return n?Promise.reject(n):function(e){var t=e.appsEtag,n=e.appsSettingsJSON,r=e.blocksJSON,o=e.blocksTreeJSON,i=e.contentMapJSON,s=e.cacheHintsJSON,a=e.componentsJSON,c=e.extensionsJSON,u=e.messages,l=e.pagesJSON,f=e.page,d=f.blockId,p=f.canonicalPath,h=f.metaTags,m=f.pageContext,y=m.id,g=m.type,v=f.routeId,b=f.title,_=[r,o,i,s,a,l,n].map((function(e){return JSON.parse(e)})),w=Object(Zi.a)(_,7),O=w[0],S=w[1],j=w[2],E=w[3],k=w[4],x=w[5],T=w[6];return{appsEtag:t,cacheHints:E,blocks:O,blocksTree:S,contentMap:j,components:k,extensions:Object(gs.isEmpty)(S)?JSON.parse(c):Yu(S,O,j,x[v]),matchingPage:{blockId:d,canonicalPath:p,metaTags:h,pageContext:{id:y,type:g},routeId:v,title:b},messages:nl(u),pages:x,settings:T}}(t)}))},ml=function(e,t){return e.filter((function(e){return e in t})).map((function(e){return{declarer:t[e].declarer,routeId:e}}))},yl=function(e){var t=e.apolloClient,n=e.pages,r=e.routeIds,o=e.renderMajor;return t.query({query:Wu.a,variables:{renderMajor:o,routes:ml(r,n)}}).then((function(e){var t=e.data.defaultPages,n=e.errors;return n?Promise.reject(n):function(e){var t=e.componentsJSON;return{components:JSON.parse(t)}}(t)}))},gl=function(e){return delete vl.pathsState[e]},vl={routesCache:new Fu({max:100,maxAge:18e5}),pathsCache:{product:new Fu({max:100,disposeFn:gl,maxAge:18e5}),search:new Fu({max:75,disposeFn:gl,maxAge:18e5}),other:new Fu({max:75,disposeFn:gl,maxAge:18e5})},pathsState:{},routePromise:{},queue:new Bu({autoStart:!1,concurrency:5})},bl=Object(as.createContext)(vl),_l=function(e){return"store.product"===e?vl.pathsCache.product:e.startsWith("store.search")?vl.pathsCache.search:vl.pathsCache.other},wl=function(e){return 3500*(e?2:1)},Ol=function(e){var t=e.children,n=e.history,r=Hs(),o=r.hints,i=r.getSettings,s=Object(as.useRef)(null),a=i("vtex.store"),c=Object(as.useCallback)((function(){vl.queue.pause(),vl.queue.clear(),setTimeout((function(){ul(a)&&vl.queue.start()}),1e3)}),[a]);return Object(as.useEffect)((function(){var e,t;return n&&(s.current=n.listen(c)),ul(a)&&("complete"===(null===(e=null===window||void 0===window?void 0:window.document)||void 0===e?void 0:e.readyState)?setTimeout((function(){vl.queue.start()}),wl(o.mobile)):null===(t=null===window||void 0===window?void 0:window.document)||void 0===t||t.addEventListener("load",(function(){setTimeout((function(){vl.queue.start()}),wl(o.mobile))}),{once:!0})),function(){s.current&&s.current()}}),[o.mobile,n,c,s,a]),cs.a.createElement(bl.Provider,{value:vl},t)},Sl=function(e,t,n){return fl({path:e,fetcher:fetch,query:Object.assign(Object.assign({},Ou(t)),n&&{__bindingAddress:n})})},jl=function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n,r,o,i,s,a,c,u,l;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.canonicalBaseAddress,r=t.prefetchState,o=t.navigationRoute,i=t.validCache,s=t.page,a=r.pathsState,!i.pathValid){e.next=4;break}return e.abrupt("return",a[o.path].page);case 4:return e.next=6,Sl(o.path,o.query,n);case 6:if(c=e.sent,u=null!=s?s:null==c?void 0:c.page,a[o.path]={fetching:!1,page:u},null!=c&&null!=u){e.next=11;break}return e.abrupt("return",null);case 11:return l={routeId:u,matchingPage:c.route,contentResponse:c.contentResponse,queryData:c.queryData},_l(u).set(o.path,l),e.abrupt("return",u);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),El=function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n,r,o,i,s,a,c,u,l,f,d,p,h,m,y,g,v,b,_,w;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.canonicalBaseAddress,r=t.client,o=t.navigationRoute,i=t.page,s=t.pages,a=t.prefetchState,c=t.hints,u=t.renderMajor,l=t.validCache,f=t.storeSettings,p=a.pathsState,h=a.routesCache,m=a.routePromise,ll(f)){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,jl({canonicalBaseAddress:n,prefetchState:a,navigationRoute:o,validCache:l,page:i});case 6:if(y=e.sent,p[o.path]={fetching:!1,page:y},null!=y){e.next=10;break}return e.abrupt("return");case 10:if(void 0!==(g=null===(d=s[y])||void 0===d?void 0:d.declarer)){e.next=13;break}return e.abrupt("return");case 13:if(v=h.get(y),b=m[y],v||b||((_={promisePending:!0,promise:pl({apolloClient:r,routeId:y,declarer:g,hints:c,renderMajor:u})}).promise.then((function(e){h.set(y,e)})).finally((function(){_.promisePending=!1,_.promise=null,m[y]=null})),m[y]=_),!(null==(w=m[y])?void 0:w.promisePending)){e.next=21;break}return e.next=20,w.promise;case 20:v=h.get(y);case 21:if(v){e.next=23;break}return e.abrupt("return");case 23:return e.next=25,hc(v.components,window.__RUNTIME__,v.extensions);case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),kl=function(e){var t=e.ref,n=e.page,r=e.href,o=e.options,i=e.waitToPrefetch,s=Hs(),a=Object(as.useContext)(bl),c=Object(us.useApolloClient)(),u=Object(as.useRef)(!1),l=Object(as.useRef)(!i||0===i);Object(as.useEffect)((function(){l.current||setTimeout((function(){l.current=!0}),i)}),[l,i]);var f=s.pages,d=s.navigationRouteModifiers,p=s.hints,h=s.query,m=s.renderMajor,y=s.getSettings,g=null==h?void 0:h.__bindingAddress,v=y("vtex.store"),b=Object(as.useCallback)((function(){var e;if(!u.current&&ll(v)&&l.current){var t=a.pathsState,i=a.queue;if(!r||"/"===r[0]){o.modifiers=d;var s=Au(f,o);if(s.original=o.to,null===(e=t[s.path])||void 0===e?void 0:e.fetching)u.current=!0;else{var h=function(e,t){var n,r=t.pathsState,o=t.routesCache,i=null===(n=r[e])||void 0===n?void 0:n.page;return i?{pathValid:_l(i).has(e),routeValid:o.has(i)}:{pathValid:!1,routeValid:!1}}(s.path,a);if(h.pathValid&&h.routeValid)u.current=!0;else{h.pathValid||(t[s.path]={fetching:!0});var y=function(e){return"store.product"===e?1:0}(n);u.current=!0,i.add(Object(es.a)(Qi.a.mark((function e(){return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",El({canonicalBaseAddress:g,client:c,navigationRoute:s,page:n,pages:f,prefetchState:a,hints:p,renderMajor:m,validCache:h,storeSettings:v}));case 1:case"end":return e.stop()}}),e)}))),{priority:y})}}}}}),[g,c,p,r,d,o,n,f,a,m,v]);return xc({ref:t,onView:function(e){var t=e.unobserve;setTimeout((function(){l.current&&(b(),t())}),1)},bailOut:!p.mobile,initializeOnInteraction:!0,threshold:.75}),Object(as.useCallback)((function(){p.desktop&&b()}),[b,p.desktop])},xl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o-1?e:e+(String(e).includes("?")?"&":"?")+"workspace="+t},Ll=function(e){var t,n,r=e.page,o=e.onClick,i=void 0===o?function(){}:o,s=e.params,a=e.to,c=e.scrollOptions,u=e.query,l=e.children,f=e.modifiers,d=e.replace,p=e.modifiersOptions,h=e.target,m=e.waitToPrefetch,y=Il(e,["page","onClick","params","to","scrollOptions","query","children","modifiers","replace","modifiersOptions","target","waitToPrefetch"]),g=Hs(),v=g.pages,b=g.navigate,_=g.rootPath,w=void 0===_?"":_,O=g.route.domain,S=g.query,j=null==S?void 0:S.workspace,E=(n=(0,Hs().getSettings)("vtex.store"),ll(n)),k=Object(as.useMemo)((function(){return{fallbackToWindowLocation:!1,page:r,params:s,query:j?Nl(null!=u?u:"",j):u,rootPath:w,scrollOptions:c,to:Nl(a,j),modifiers:f,replace:d,modifiersOptions:p}}),[r,s,u,j,w,c,a,f,d,p]),x=Object(as.useCallback)((function(e){var t;(function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)})(e)||!function(e){return 0===e.button}(e)||a&&(t=a,Rl.test(t)||Ml(a)||Pl(a))||(i(e),"_self"!==h&&h||!b(k)||e.preventDefault())}),[a,i,b,h,k]),T=null!==(t=Nl(function(){if(a)return!w||a.startsWith("http")||a.startsWith(w)||Ml(a)||Pl(a)?a:w+a;if(r){var e=wu(r,v,s),t=u?"?".concat(u):"";if(e)return Nl(w+e+t,j)}return"#"}(),j))&&void 0!==t?t:"",I=O&&"admin"===O&&T.startsWith("/admin/app/")?T.replace("/admin/app/","/admin/"):T,R=Object.assign(Object.assign({target:h,href:I},y),{onClick:x});return E?cs.a.createElement(Tl,Fs({waitToPrefetch:m,page:r,options:k},R),l):cs.a.createElement("a",R,l)},Dl=Hs,Fl=$s,Ul=Yi.canUseDOM,ql=n(116),Bl=n.n(ql),zl=n(2),Hl=n.n(zl),$l=n(67),Wl=function(e,t){if(!e)return"?".concat(ss.a.stringify(t,{encode:!1}));var n=ss.a.parse(e),r=Object(gs.pickBy)((function(e,t){return!(t in n)}),t),o=ss.a.stringify(r,{encode:!1});return o?"".concat(e,"&").concat(o):e};function Gl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var Vl=$s(function(e){Object(_s.a)(n,e);var t=Gl(n);function n(e){var r;return Object(vs.a)(this,n),(r=t.call(this,e)).clearTimeouts=function(){clearTimeout(r.animateOutHandle),clearTimeout(r.hideHandle)},r.hideWithDelay=function(e){r.animateOutHandle=window.setTimeout((function(){return r.setState({animateOut:!0})}),e),r.hideHandle=window.setTimeout((function(){return r.setState({status:null,interrupted:null,animateOut:!1})}),e+300)},r.handleMouseOver=function(){r.setState((function(e){return{anchor:"left"===e.anchor?"right":"left"}}))},r.updateStatus=function(e){if("reload"!==r.state.status&&(r.setState({status:e,animateOut:!1}),r.clearTimeouts(),"success"===e||"hmr:success"===e)){var t="success"===e?2e3:0;r.hideWithDelay(t)}},r.updateInterrupted=function(){r.clearTimeouts(),r.setState({interrupted:!0,animateOut:!1});r.hideWithDelay(2e3)},r.subscribeToStatus=function(){r.props.runtime.emitter.addListener("build.status",r.updateStatus)},r.unsubscribeToStatus=function(){r.props.runtime.emitter.removeListener("build.status",r.updateStatus)},r.subscribeToLinkInterrupted=function(){r.props.runtime.emitter.addListener("link_interrupted",r.updateInterrupted)},r.unsubscribeToLinkInterrupted=function(){r.props.runtime.emitter.removeListener("link_interrupted",r.updateInterrupted)},r.renderLoading=function(){return cs.a.createElement("svg",{width:"26px",height:"26px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},cs.a.createElement("style",null,"\n @keyframes build-status-rotate {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n\n .build-status-rotate {\n transform-origin: 50px 50px;\n animation: build-status-rotate 0.7s infinite linear;\n }\n\n "),cs.a.createElement("g",null,cs.a.createElement("circle",{cx:"50",opacity:"0.4",cy:"50",fill:"none",stroke:"#F71963",r:"40",strokeWidth:"14"}),cs.a.createElement("circle",{cx:"50",cy:"50",fill:"none",stroke:"#F71963",r:"40",strokeDasharray:"60 900",strokeWidth:"12",strokeLinecap:"round",className:"build-status-rotate"})))},r.state={animateOut:!1,status:null,interrupted:null,anchor:"left"},r}return Object(bs.a)(n,[{key:"componentDidMount",value:function(){this.subscribeToStatus(),this.subscribeToLinkInterrupted()}},{key:"componentWillUnmount",value:function(){this.unsubscribeToStatus(),this.unsubscribeToLinkInterrupted(),this.clearTimeouts()}},{key:"render",value:function(){var e,t=this.state,n=t.status,r=t.animateOut,o=t.anchor,i=t.interrupted;if(null===n&&null===i)return null;var s="build-status ".concat(n," z-max fixed animated pa3 bg-near-white br3 rebel-pink flex items-center shadow-4 ").concat(r?"fadeOut":"fadeIn"),a=i?"Link interrupted":"fail"===n?"Oops! Build failed. Check your terminal for more information":"reload"===n?"Performing full reload":null;return cs.a.createElement("div",{"aria-hidden":!0,className:s,style:(e={top:"12px"},Ki(e,o,"12px"),Ki(e,"animationDuration","0.2s"),Ki(e,"opacity",.8),e),onMouseOver:this.handleMouseOver},a?cs.a.createElement("p",{className:"ma2"},a):this.renderLoading())}}]),n}(as.Component));function Jl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var Yl=function(e){Object(_s.a)(n,e);var t=Jl(n);function n(e){return Object(vs.a)(this,n),t.call(this,e)}return Object(bs.a)(n,[{key:"render",value:function(){var e=this.props.extension,t=e.extensionName,n=e.destination,r=e.props;return Object(ls.createPortal)(cs.a.createElement(nu,Fs({id:t},r)),n)}}]),n}(as.Component);function Kl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var Xl,Ql=function(e){Object(_s.a)(n,e);var t=Kl(n);function n(e){var r;return Object(vs.a)(this,n),(r=t.call(this,e)).updateExtensions=function(e){r.setState({extensionsToRender:r.addOrUpdateExtension(r.state.extensionsToRender,e)})},r.addOrUpdateExtension=function(e,t){return Object(gs.any)((function(e){return e.extensionName===t.extensionName}))(e)?Object(gs.map)((function(e){return e.extensionName===t.extensionName?t:e}),e):Object(gs.append)(t,e)},r.state={extensionsToRender:[]},r}return Object(bs.a)(n,[{key:"componentDidMount",value:function(){this.props.runtime.emitter.addListener("renderExtensionLoader.addOrUpdateExtension",this.updateExtensions)}},{key:"componentWillUnmount",value:function(){this.props.runtime.emitter.removeListener("renderExtensionLoader.addOrUpdateExtension",this.updateExtensions)}},{key:"render",value:function(){return this.state.extensionsToRender.map((function(e){return cs.a.createElement(Yl,{key:e.extensionName,extension:e})}))}}]),n}(as.Component),Zl=function(e){var t=e.children,n=e.nestedPage,r=e.query,o=e.params,i=e.runtime,s=function(e){var t,n=e.nestedPage,r=e.query,o=e.params,i=null!==(t=e.runtime.extensions[n])&&void 0!==t?t:{},s=i.context,a=i.before,c=i.after,u=i.props,l=u&&u.context,f=a&&a.map((function(e){return cs.a.createElement(ru,{id:e,key:e,treePath:n})})),d=c&&c.map((function(e){return cs.a.createElement(ru,{id:e,key:e,treePath:n})}));return[Object(as.useMemo)((function(){if(s)return Object.assign(Object.assign(Object.assign({},l),{beforeElements:f,afterElements:d,nextTreePath:n,params:o,query:r}),s.props)}),[s,l,f,d,n,o,r]),s?s.component:void 0]}({nestedPage:n,query:r,params:o,runtime:i}),a=Object(Zi.a)(s,2),c=a[0],u=a[1];return u?cs.a.createElement(Fc,{component:u,props:c,runtime:i,treePath:n,hydration:"always"},t):cs.a.createElement(as.Fragment,null,t)},ef=function(e){var t=Hs(),n=e.page,r=e.query,o=t.route.params;return cs.a.createElement(Zl,{nestedPage:n,query:r,params:o,runtime:t},cs.a.createElement(ru,Fs({id:n,query:r,params:o},e)))},tf=n(117),nf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function of(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.merge,o=void 0===n||n,i=t.replace,s=void 0!==i&&i,a=t.scrollOptions,c=void 0!==a&&a,u=r.props,l=u.history,f=u.runtime.rootPath,d=r.state,p=d.pages,h=d.page,m=d.route.params;if(!l)return!1;var y=l.location.search,g=Ou(y),v=Su(o?Object.assign(Object.assign({},g),e):e);return Mu(l,p,{fetchPage:!1,skipSetPath:!0,page:h,params:m,query:v,replace:s,scrollOptions:c,rootPath:f,modifiers:r.navigationRouteModifiers})},r.navigate=function(e){var t,n,o=r.props,i=o.history,s=o.runtime.rootPath,a=r.state.pages;if(e.rootPath=s,e.modifiers=r.navigationRouteModifiers,r.navigationModifierOptions=Object.assign(Object.assign({},r.navigationModifierOptions),e.modifiersOptions),e.modifiersOptions=r.navigationModifierOptions,r.navigationState.isNavigating){var c=r.navigationState.lastOptions;if(n=e,(t=c).page===n.page&&t.query===n.query&&t.to===n.to&&t.rootPath===n.rootPath&&Object(gs.equals)(t.params,n.params))return!1}return r.navigationState={isNavigating:!0,lastOptions:e},Mu(i,a,e)},r.updateDeviceBlocks=function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n,o,i,s,a,c,u,l,f;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.props.runtime,o=n.isJanusProxied,i=n.rootPath,s=r.state.route.path,a=Ou(location.search),e.next=5,sl({fetcher:r.fetcher,path:uf(s,i),query:a,deviceInfo:t,isJanusProxied:o});case 5:return c=e.sent,u=c.components,l=c.extensions,f=c.messages,e.next=11,r.fetchComponents(u,l);case 11:r.setState((function(e){return{extensions:Object.assign(Object.assign({},e.extensions),l),components:Object.assign(Object.assign({},e.components),u),messages:Object.assign(Object.assign({},e.messages),f)}}));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.addNavigationRouteModifier=function(e){r.navigationRouteModifiers.add(e)},r.replaceRouteClass=function(e){try{var t=document.getElementsByClassName("render-container"),n=t[0].className.split(" ").find((function(e){return e.startsWith("render-route-")})),r=ec(e);Array.prototype.forEach.call(t,(function(e){n&&e.classList.remove(n),e.classList.add(r)}))}catch(t){console.error("Failed to set route class",ec(e))}},r.scrollTo=function(e){try{if(!1===e)return;var t=e||{top:0,left:0};window.setTimeout((function(){return function(e){var t=(e||{}).baseElementId,n=void 0===t?null:t,r=n&&document.querySelector("#".concat(n));if(!r)return Nu(e);var o=r.getBoundingClientRect(),i=o.top;Nu({left:o.left+window.scrollX+(e.left||0),top:i+window.scrollY+(e.top||0)})}(t)}),0)}catch(e){console.warn("Failed to scroll after page navigation.")}},r.afterPageChanged=function(e,t){r.navigationState={isNavigating:!1},r.replaceRouteClass(e),r.scrollTo(t),r.sendInfoFromIframe()},r.onPageChanged=function(e){var t=r.props,n=t.runtime,o=n.renderMajor,i=n.query,s=n.isJanusProxied,a=t.history,c=r.state,u=c.culture.locale,l=c.pages,f=c.production,d=c.route,p=c.loadedPages,h=c.deviceInfo,m=e.state;if(m&&m.renderRouting&&!m.preventRemount){var y=m.navigationRoute,g=m.fetchPage,v=y.id,b=y.params,_=Object.assign(Object.assign({},d),y),w=l[v]&&l[v].allowConditions,O=l[v]&&l[v].declarer,S=!w&&p.has(v)||!1===g,j=Ou(e.search),E=v||d.id;if(S)return r.setState({page:E,query:j,route:_},(function(){return r.afterPageChanged(E,m.scrollOptions)}));var k=JSON.stringify(b),x=r.apolloClient,T=E,I=function(e){var t,n=null===(t=vl.pathsState[e])||void 0===t?void 0:t.page;if(!n)return{routeData:null,prefetchedPathData:null,destinationRouteId:null};var r;return{routeData:(r=_l(n).get(e))?vl.routesCache.get(n):null,prefetchedPathData:r,destinationRouteId:n}}(y.path),R=I.prefetchedPathData,C=I.routeData,A=I.destinationRouteId;if(R&&C&&A){var M=A,P=R.matchingPage,N=R.contentResponse,L=C.extensions,D=C.messages;if(N){L=JSON.parse(JSON.stringify(C.extensions)),D=Object.assign(Object.assign({},D),N.contentMessages);var F,U=rf(N.extensionsContent||[]);try{for(U.s();!(F=U.n()).done;){var q=F.value,B=q.treePath,z=q.contentJSON,H=q.contentIds;"{}"!==z&&(L[B].content=z?JSON.parse(z):void 0),L[B].contentIds=H}}catch(e){U.e(e)}finally{U.f()}}return r.hydrateApollo(R.queryData).then((function(){r.setState((function(e){return Object.assign(Object.assign({},e),{components:Object.assign(Object.assign({},e.components),C.components),extensions:Object.assign(Object.assign({},e.extensions),L),loadedPages:p.add(M),messages:Object.assign(Object.assign({},e.messages),D),page:M,preview:!1,query:j,route:r.mergeRouteParams(P,_)})}),(function(){r.navigationState={isNavigating:!1},r.replaceRouteClass(M),r.sendInfoFromIframe(),r.scrollTo(m.scrollOptions)}))})),Promise.resolve()}r.setState({preview:!0});var $=null==i?void 0:i.workspace,W=ka("RENDER_NAVIGATION")?sl({fetcher:r.fetcher,path:y.path,query:j,workspace:$,deviceInfo:h,isJanusProxied:s}).then(function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n,o,i,s,c,u,l,f;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.appsEtag,o=t.components,i=t.extensions,s=t.matchingPage,c=t.messages,u=t.pages,l=t.settings,f=t.queryData,!pc(o,r.state.components)){e.next=5;break}return r.scrollTo({top:0,left:0}),window.location.reload(),e.abrupt("return",new Promise((function(){})));case 5:return e.next=7,Promise.all([r.hydrateApollo(f),r.fetchComponents(o,i)]);case 7:r.setState((function(e){return Object.assign(Object.assign({},e),{appsEtag:n,components:Object.assign(Object.assign({},e.components),o),extensions:Object.assign(Object.assign({},e.extensions),i),loadedDevices:[h.type],loadedPages:p.add(s.routeId),messages:Object.assign(Object.assign({},e.messages),c),page:s.routeId,pages:u,preview:!1,query:j,route:r.mergeRouteParams(s,_),settings:l})}),(function(){var e="POP"!==(null==a?void 0:a.action)&&m.scrollOptions;r.navigationState={isNavigating:!1},r.replaceRouteClass(s.routeId),r.sendInfoFromIframe(),r.scrollTo(e)}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):hl({apolloClient:x,declarer:O,locale:u,paramsJSON:k,production:f,query:JSON.stringify(j),renderMajor:o,routeId:T,skipCache:!1}).then(function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n,o,i,s,a,c,u,l,f;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.appsEtag,o=t.cacheHints,i=t.components,s=t.extensions,a=t.matchingPage,c=t.messages,u=t.pages,l=t.settings,f=Object.assign(Object.assign({},_),a),e.next=4,r.fetchComponents(i,s);case 4:r.setState({appsEtag:n,cacheHints:Object(gs.mergeWith)(gs.merge,r.state.cacheHints,o),components:Object.assign(Object.assign({},r.state.components),i),extensions:Object.assign(Object.assign({},r.state.extensions),s),loadedPages:p.add(E),messages:Object.assign(Object.assign({},r.state.messages),c),page:E,pages:u,preview:!1,query:j,route:r.mergeRouteParams(f,_),settings:l},(function(){r.navigationState={isNavigating:!1},r.replaceRouteClass(E),r.sendInfoFromIframe(),r.scrollTo(m.scrollOptions)}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());return W.finally((function(){r.navigationState.isNavigating&&(r.navigationState={isNavigating:!1})})),W}},r.prefetchPage=function(e){var t,n=null===(t=r.state.extensions[e])||void 0===t?void 0:t.component;if(n){var o=r.props.runtime,i=r.state.components;return Ya(o,yc(i,n))}},r.prefetchDefaultPages=function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.props.runtime.query,n&&"__disablePrefetchPages"in n&&"false"!==n.__disablePrefetchPages){e.next=7;break}if(!r.rendered){e.next=6;break}return console.warn("prefetchDefaultPages should only be called before RenderProvider's render."),e.abrupt("return");case 6:t.forEach((function(e){return r.prefetchRoutes.add(e)}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.updateComponentAssets=function(e){r.setState({components:Object.assign(Object.assign({},r.state.components),e)})},r.fetchComponents=function(){var e=Object(es.a)(Qi.a.mark((function e(t,n){var o;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r.props.runtime,e.next=3,hc(t,o,n);case 3:r.sendInfoFromIframe({shouldUpdateRuntime:!0});case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),r.fetchComponent=function(e){if(!Yi.canUseDOM)throw new Error("Cannot fetch components during server side rendering.");var t=r.props.runtime,n=r.state.components;if(!!Ga(e))return Promise.resolve();var o=Va(t,yc(n,e));return o.then((function(){r.sendInfoFromIframe({shouldUpdateRuntime:!0})})),o},r.onLocaleSelected=function(e,t,n){if(e!==r.state.culture.locale){var o={public:{}};return o.public=t&&"admin"===t?{admin_cultureInfo:{value:e}}:{cultureInfo:{value:e}},r.patchSession(o).then((function(){return n?n(e):window.location.reload()})).catch((function(e){console.log("Failed to fetch new locale file."),console.error(e)}))}},r.updateRuntime=function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n,o,i,s,a,c,u,l,f,d,p,h,m,y,g,v,b,_,w,O,S,j,E,k;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.props.runtime,o=n.renderMajor,i=n.query,s=n.isJanusProxied,a=r.state,c=a.page,u=a.pages,l=a.production,f=a.culture.locale,d=a.route,p=a.query,h=a.deviceInfo,m=u[c]&&u[c].declarer,y=window.location.pathname,g=JSON.stringify(d.params||{}),v=null==i?void 0:i.workspace,!ka("RENDER_NAVIGATION")){e.next=12;break}return e.next=9,sl({path:d.path,query:p,fetcher:r.fetcher,workspace:v,deviceInfo:h,isJanusProxied:s});case 9:e.t0=e.sent,e.next=15;break;case 12:return e.next=14,hl(Object.assign({apolloClient:r.apolloClient,declarer:m,locale:f,paramsJSON:g,path:y,production:l,query:"",renderMajor:o,routeId:c,skipCache:!0},t));case 14:e.t0=e.sent;case 15:return b=e.t0,_=b.appsEtag,w=b.cacheHints,O=b.components,S=b.extensions,j=b.messages,E=b.pages,k=b.settings,e.next=25,r.fetchComponents(O,S);case 25:return e.next=27,new Promise((function(e){r.setState((function(e){return{appsEtag:_,cacheHints:ka("RENDER_NAVIGATION")?e.cacheHints:w,components:O,extensions:Object.assign(Object.assign({},e.extensions),S),messages:Object.assign(Object.assign({},e.messages),j),page:c,pages:E,route:d,settings:k}}),e)}));case 27:return e.next=29,r.sendInfoFromIframe();case 29:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.updateExtension=function(){var e=Object(es.a)(Qi.a.mark((function e(t,n){var o;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r.state.extensions,e.next=3,new Promise((function(e){r.setState({extensions:Object.assign(Object.assign({},o),Ki({},t,n))},e)}));case 3:if("store/__overlay"===t){e.next=6;break}return e.next=6,r.sendInfoFromIframe();case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),r.handleSetDevice=function(e){r.setState({device:e})},r.addMessages=function(){var e=Object(es.a)(Qi.a.mark((function e(t){return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){r.setState((function(e){return Object.assign(Object.assign({},e),{messages:Object.assign(Object.assign({},e.messages),t)})}),e)}));case 2:return e.next=4,r.sendInfoFromIframe();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.updateDevice=Bl()(function(){var e=Object(es.a)(Qi.a.mark((function e(t){var n,o;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(r.state.loadedDevices.includes(t.type)){e.next=10;break}return n=["desktop","tablet","phone"],o=r.state.deviceInfo.type,n.indexOf(t.type)0&&setTimeout(r.execPrefetchPages,6e3)},r.execPrefetchPages=Object(es.a)(Qi.a.mark((function e(){var t,n,o,i,s,a,c,u,l;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.props,n=t.runtime,o=t.runtime.renderMajor,i=r.state,s=i.pages,a=i.culture.locale,e.next=4,yl({apolloClient:r.apolloClient,locale:a,pages:s,renderMajor:o,routeIds:Array.from(r.prefetchRoutes)});case 4:return c=e.sent,u=c.components,l=mc(u,Object.keys(u)),e.next=9,Ya(n,l);case 9:case"end":return e.stop()}}),e)})));var o=e.runtime,i=o.appsEtag,s=o.binding,a=o.blocks,c=o.blocksTree,u=o.cacheHints,l=o.contentMap,f=o.culture,d=o.messages,p=o.components,h=o.exposeBindingAddress,m=o.extensions,y=o.isJanusProxied,g=o.pages,v=o.page,b=o.query,_=o.production,w=o.rootPath,O=void 0===w?"":w,S=o.route,j=o.settings,E=o.loadedDevices,k=e.apollo,x=e.history,T=e.deviceInfo,I=e.sessionPromise,R=y||b&&b.map;if(r.fetcher=fetch,s&&Yi.canUseDOM&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:31536e3;Yi.canUseDOM&&(window.document.cookie="".concat(e,"=").concat(t,";path=").concat(n,";max-age=").concat(r))}("vtex_binding_address",s.canonicalBaseAddress),x){var C=Object.assign(Object.assign({},x.location),{search:h&&s?Wl(x.location.search,{__bindingAddress:s.canonicalBaseAddress}):x.location.search,pathname:R||!S.canonicalPath?x.location.pathname:O+S.canonicalPath,state:{navigationRoute:{id:S.id,params:S.params,path:x.location.pathname},renderRouting:!0}});Object(gs.equals)(x.location,C)||x.replace(C),window.browserHistory=global.browserHistory=x}return r.sessionPromise=I,r.apolloClient=k.getClient(Object(sc.a)(r)),r.hydrateApollo=k.hydrate,r.state={appsEtag:i,blocks:a,blocksTree:c,cacheHints:u,contentMap:l,components:p,culture:f,defaultExtensions:{},device:"any",loadedDevices:null!=E?E:[e.deviceInfo.type],deviceInfo:T,extensions:m,loadedPages:new Set([v]),messages:d,page:v,pages:g,preview:!1,production:_,query:b,route:S,settings:j||{},inspect:!1},r.prefetchRoutes=new Set,r.navigationRouteModifiers=new Set,r.navigationModifierOptions={},r}return Object(bs.a)(n,[{key:"componentDidMount",value:function(){this.rendered=!0;var e=this.props,t=e.history,n=e.runtime,r=n.production,o=n.emitter,i=n.publicEndpoint;this.unlisten=null==t?void 0:t.listen(this.onPageChanged),o.addListener("localesChanged",this.onLocaleSelected),r||(o.addListener("extensionsUpdated",this.updateRuntime),o.addListener("blocksUpdated",this.updateRuntime),o.addListener("styleOverrides",La),o.addListener("styleTachyonsUpdate",Da)),this.sendInfoFromIframe(),this.prefetchPages(),"myvtex.com"===i&&!r&&"__inspect"in(this.state.query||{})&&this.setState({inspect:!0})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=Object(gs.difference)(Object.entries(e),Object.entries(this.props)).map((function(e){return Object(Zi.a)(e,1)[0]})).includes("runtime");if(this.rendered&&t){var n=e.runtime.extensions;this.setState({extensions:n})}}},{key:"componentWillUnmount",value:function(){var e=this.props.runtime,t=e.production,n=e.emitter;this.unlisten&&this.unlisten(),n.removeListener("localesChanged",this.onLocaleSelected),t||(n.removeListener("extensionsUpdated",this.updateRuntime),n.removeListener("blocksUpdated",this.updateRuntime),n.removeListener("styleOverrides",La),n.removeListener("styleTachyonsUpdate",Da))}},{key:"getChildContext",value:function(){var e=this.props,t=e.history,n=e.runtime,r=this.state,o=r.components,i=r.contentMap,s=r.extensions,a=r.inspect,c=r.messages,u=r.page,l=r.pages,f=r.preview,d=r.culture,p=r.device,h=r.deviceInfo,m=r.route,y=r.query,g=r.defaultExtensions,v=n.account,b=n.amp,_=n.binding,w=n.emitter,O=n.hints,S=n.platform,j=n.production,E=n.publicEndpoint,k=n.renderMajor,x=n.rootPath,T=n.workspace;return{account:v,addMessages:this.addMessages,amp:b,binding:_,components:o,contentMap:i,culture:d,defaultExtensions:g,device:p,deviceInfo:h,emitter:w,ensureSession:this.ensureSession,extensions:s,fetchComponent:this.fetchComponent,fetchComponents:this.fetchComponents,getSettings:this.getSettings,goBack:this.goBack,hints:O,history:t,inspect:a,messages:c,navigate:this.navigate,onPageChanged:this.onPageChanged,page:u,pages:l,patchSession:this.patchSession,platform:S,prefetchDefaultPages:this.prefetchDefaultPages,addNavigationRouteModifier:this.addNavigationRouteModifier,navigationRouteModifiers:this.navigationRouteModifiers,prefetchPage:this.prefetchPage,preview:f,production:j,publicEndpoint:E,query:y,renderMajor:k,rootPath:x,route:m,setDevice:this.handleSetDevice,setQuery:this.setQuery,updateComponentAssets:this.updateComponentAssets,updateExtension:this.updateExtension,updateRuntime:this.updateRuntime,workspace:T}}},{key:"mergeRouteParams",value:function(e,t){return Object.assign(Object.assign({},e),{params:Object.assign(Object.assign({},t.params),e.params)})}},{key:"componentDidUpdate",value:function(){Object(gs.equals)(this.state.deviceInfo,this.props.deviceInfo)||this.updateDevice(this.props.deviceInfo)}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.culture.locale,r=t.messages,o=t.pages,i=t.page,s=t.query,a=t.production,c=t.inspect,u=this.getCustomMessages(n),l=Object.assign(Object.assign({},r),u),f=e?cs.a.cloneElement(e,{query:s}):cs.a.createElement("div",{className:"render-provider"},cs.a.createElement(ds.Helmet,{title:o[i]&&o[i].title}),cs.a.createElement(ef,{page:i,query:s})),d=this.getChildContext();return cs.a.createElement(zs,{runtime:d},cs.a.createElement(Ys,{treePath:""},cs.a.createElement(us.ApolloProvider,{client:this.apolloClient},cs.a.createElement($l.IntlProvider,{locale:n,messages:l,textComponent:as.Fragment},cs.a.createElement(Ol,{history:this.props.history},cs.a.createElement(as.Fragment,null,cs.a.createElement(Ql,{runtime:this.props.runtime}),!a&&!oc&&cs.a.createElement(Vl,null),f,oc?cs.a.createElement(ru,{id:"store/__overlay"}):null,c&&cs.a.createElement(as.Suspense,{fallback:null},cs.a.createElement(af,null))))))))}}]),n}(as.Component);lf.childContextTypes={account:Hl.a.string,addMessages:Hl.a.func,amp:Hl.a.bool,binding:Hl.a.object,blocks:Hl.a.object,blocksTree:Hl.a.object,contentMap:Hl.a.object,components:Hl.a.object,culture:Hl.a.object,defaultExtensions:Hl.a.object,device:Hl.a.string,deviceInfo:Hl.a.shape({type:Hl.a.oneOf(["desktop","tablet","phone","unknown"]),isMobile:Hl.a.bool}),isMobile:Hl.a.bool,emitter:Hl.a.object,ensureSession:Hl.a.func,extensions:Hl.a.object,fetchComponent:Hl.a.func,fetchComponents:Hl.a.func,getSettings:Hl.a.func,goBack:Hl.a.func,hints:Hl.a.object,history:Hl.a.object,inspect:Hl.a.bool,messages:Hl.a.object,navigate:Hl.a.func,onPageChanged:Hl.a.func,page:Hl.a.string,pages:Hl.a.object,patchSession:Hl.a.func,platform:Hl.a.string,prefetchDefaultPages:Hl.a.func,addNavigationRouteModifier:Hl.a.func,prefetchPage:Hl.a.func,preview:Hl.a.bool,production:Hl.a.bool,publicEndpoint:Hl.a.string,query:Hl.a.object,renderMajor:Hl.a.number,rootPath:Hl.a.string,route:Hl.a.object,setDevice:Hl.a.func,setQuery:Hl.a.func,updateComponentAssets:Hl.a.func,updateExtension:Hl.a.func,updateRuntime:Hl.a.func,workspace:Hl.a.string,navigationRouteModifiers:Hl.a.object};var ff=function(e){var t=cs.a.memo((function(t){var n=t.type,r=t.isMobile,o=nf(t,["type","isMobile"]);return cs.a.createElement(e,Fs({deviceInfo:{type:n,isMobile:r}},o))}));t.displayName="MemoizedWithDevice";return function(e){var n=nf(e,[]),r=function(e){var t=ms(),n=Object(tf.useMediaLayout)({minWidth:"40rem"}),r=Object(tf.useMediaLayout)({minWidth:"64.1rem"}),o={type:e.phone?Xl.phone:e.tablet?Xl.tablet:Xl.desktop,isMobile:e.mobile},i={type:r?Xl.desktop:n?Xl.tablet:Xl.phone,isMobile:!r};return t?o:i}(n.runtime.hints);return cs.a.createElement(t,Fs({type:r.type,isMobile:r.isMobile},n))}}(lf),df=function(e){var t=e.headers.get("cache-control");if(!t)return 600;var n,r,o,i=(n=t.split(",").map((function(e){return e.trim()})),r=n.find((function(e){return e.startsWith("max-age")})),{maxAge:(o=r?r.split("=")[1]:null)?parseInt(o,10):0,noCache:n.includes("no-cache"),noStore:n.includes("no-store")}),s=i.maxAge;return i.noCache||i.noStore?5:Math.max(5,s)},pf=function(){function e(){Object(vs.a)(this,e),this.maxAges=[]}return Object(bs.a)(e,[{key:"evaluate",value:function(e){var t=df(e);this.maxAges.push(t)}},{key:"maxAge",get:function(){return this.maxAges.length>0?Math.min.apply(Math,Ds(this.maxAges)):604800}}]),e}(),hf=n(92),mf=n(47),yf=n(12),gf=n(159),vf=n(114);var bf=["UserInputError","AuthenticationError","ForbiddenError"],_f=new(function(){function e(){Object(vs.a)(this,e),this.operationIds=[]}return Object(bs.a)(e,[{key:"addOperationIds",value:function(e){var t=e.reduce((function(e,t){return function(e){return"operationId"in e}(t)&&!bf.includes(t.extensions.exception&&t.extensions.exception.name||"")?e.concat(t.operationId):e}),[]);this.operationIds=this.operationIds.concat(t)}},{key:"getOperationIds",value:function(){var e=this.operationIds.slice();return this.operationIds=[],e}}]),e}()),wf=function(e){if((t=e)&&t.documentId)return e.documentId;var t,n={hash:""};return Object(rs.visit)(e,{Argument:function(e){if("hash"===e.name.value)return n.hash=e.value.value,rs.BREAK}}),n.hash},Of=n(157),Sf=new yf.a((function(e,t){var n=e.extensions,r=e.variables;return r&&Object.keys(r).length>0&&(e.variables={},e.extensions=Object.assign(Object.assign({},n),{variables:Of.Base64.encode(JSON.stringify(r))})),t?t(e):null})),jf=function(e){return new yf.a((function(t,n){return n?n(t).map((function(n){var r=t.getContext().response;return e.evaluate(r),n})):null}))},Ef=n(26),kf=new Set(["segment","private"]),xf=function(e){return new yf.a((function(t,n){return new Ef.default((function(r){var o,i=t.getContext().scope;return(kf.has(i)?e:Promise.resolve()).then((function(){o=n&&n(t).subscribe({complete:r.complete.bind(r),error:r.error.bind(r),next:r.next.bind(r)})})).catch(r.error.bind(r)),function(){o&&o.unsubscribe()}}))}))},Tf=function e(t){return(n=t)instanceof File||n instanceof Blob||n instanceof FileList||Object(t)===t&&Object.values(t).some((function(t){return e(t)}));var n},If=function(e){var t=e.variables;return!Yi.canUseDOM||!Tf(t)},Rf=function(e,t){return t?t(e):null},Cf=n(45),Af=function(e,t){return"__typename"===e?void 0:t},Mf=new yf.a((function(e,t){var n=e.variables;return n&&Yi.canUseDOM&&(e.variables=JSON.parse(JSON.stringify(e.variables),Af),function e(t,n){return t&&"object"===Object(Cf.a)(t)&&Object.keys(t).forEach((function(r){t[r]instanceof File||t[r]instanceof Blob||t[r]instanceof FileList?n[r]=t[r]:e(t[r],n[r])}))}(n,e.variables)),t?t(e):null})),Pf=function(e,t){var n=function(e){var t={operationType:"mutation"};return Object(rs.visit)(e,{Directive:function(e){if("context"===e.name.value){var n=e.arguments&&e.arguments.find((function(e){return"scope"===e.name.value}));n&&(t.queryScope=n.value.value)}},OperationDefinition:function(e){t.operationType=e.operation}}),t}(e),r=n.operationType,o=n.queryScope,i="query"===(null==r?void 0:r.toLowerCase())?t||{scope:o}:Object.assign(Object.assign({},t),{scope:"private"}),s=i.maxAge,a=void 0===s?"long":s,c=i.scope,u=void 0===c?"private":c,l=i.version,f=void 0===l?1:l,d=i.provider,p=i.sender;return{maxAge:a.toLowerCase(),operationType:r,scope:u.toLowerCase(),version:f,provider:d,sender:p}},Nf=n(118),Lf=function(e){return"runtimeMeta"===e.name.value},Df=function(e,t){var n={};return Object(rs.visit)(e,{Variable:function(e){n[e.name.value]=t[e.name.value]}}),n},Ff=["query","mutation","subscription"],Uf=function(e){var t=function(e,t){var n=[];return Object(rs.visit)(e,{Field:function(e){e.directives&&e.directives.find(Lf)&&n.push({selection:e,usedVariables:Df(e,t)})}}),n}(e,function(e){var t={};return Object(rs.visit)(e,{VariableDefinition:function(e){t[e.variable.name.value]=e}}),t}(e));return function(e){if(e.definitions.filter((function(e){return Ff.includes(e.operation)})).length>1)throw new Error("Only one operation definition is allowed per query. Please split your queries in two different files")}(e),t.map(function(e){return function(t){return Object(rs.visit)(Object(rs.parse)(Object(rs.print)(e)),{OperationDefinition:function(e){return Ff.includes(e.operation)?Object.assign(Object.assign({},e),{selectionSet:Object.assign(Object.assign({},e.selectionSet),{selections:[t.selection]}),variableDefinitions:Object.values(t.usedVariables)}):null}})}}(e))},qf=function(e){return Uf(e.query).map(function(e){return function(t){var n=Object.assign(Object.assign({},e),{query:t,extensions:Object.assign({},e.extensions)}),r=Object(Nf.validateOperation)(Object(Nf.transformOperation)(n));return Object(yf.b)(e.getContext(),r)}}(e))},Bf=function(e,t){return new Ef.default((function(n){var r={},o=0;e.forEach((function(i){return t(i).subscribe({complete:function(){o===e.length&&(o++,n.next(r),n.complete())},error:function(e){o++,n.error(e)},next:function(e){o++,function e(t,n){return n&&Object.keys(n).forEach((function(r){t[r]&&"object"===Object(Cf.a)(n[r])?t[r]=e(t[r],n[r]):t[r]=n[r]})),t}(r,e)}})}))}))},zf=new yf.a((function(e,t){if(t){var n=e.query,r=qf(e);return r.length&&(o=n,i={isQuery:!1},Object(rs.visit)(o,{OperationDefinition:function(e){if("query"===e.operation)return i.isQuery=!0,rs.BREAK}}),i.isQuery)?Bf(r,t):t(e)}var o,i;return null}));var Hf=n(158),$f=n(41),Wf=function(e,t,n,r,o){return t&&n?"".concat(e,".").concat(t,"@").concat(n,".x:").concat(r,":").concat(o):"".concat(r,":").concat(o)},Gf=function(e){var t=e||{},n=t.cacheId,r=t.__typename;if(e&&r&&n){var o=ha(r.split("_")),i=o[0],s=o[1],a=o[2],c=o.slice(3).join("_")||r;return Wf(i,s,a,c,n)}return null},Vf=function(e,t,n){var r=e.replace(/-/g,"").split("."),o=Object(Zi.a)(r,2),i=o[0],s=o[1],a=s&&s.split("@"),c=Object(Zi.a)(a,2),u=c[0],l=c[1];return Wf(i,u,l,t,n)},Jf={},Yf=function(e){var t=e.account,n=e.workspace,r=Jf["".concat(t,"/").concat(n)];return r?r.cache.extract():{}},Kf=function(e,t,n,r,o,i){var s=e.account,a=e.workspace,c=e.introspectionResult;if(!Jf["".concat(s,"/").concat(a)]){var u=new hf.a({addTypename:!0,dataIdFromObject:Gf,fragmentMatcher:new hf.b({introspectionQueryResultData:c})}),l=function(e,t){return new yf.a(Rf).split(If,e,t)}(yf.a.from([Sf,Object(vf.a)({credentials:"include",useGETForQueries:!1,fetch:o})]),Object(ns.a)({credentials:"include"})),f=Object(ts.createPersistedQueryLink)({disable:function(){return!1},generateHash:wf,useGETForHashedQueries:!0}),d=function(e,t){return new yf.a((function(n,r){return n.setContext((function(r){var o,i,s,a=r.fetchOptions,c=void 0===a?{}:a,u=r.runtime,l=u.appsEtag,f=u.cacheHints,d=u.culture.locale,p=n.extensions,h=t.binding,m=t.workspace,y=t.route.domain,g=t.production,v=wf(n.query);if(!g&&!v)throw new Error("Could not generate hash from query. Are you using graphql-tag ? Split your graphql queries in .graphql files and import them instead");var b=(null===(o=r.http)||void 0===o?void 0:o.includeQuery)||!v,_=Pf(n.query,f[v]),w=_.maxAge,O=_.scope,S=_.version,j=_.provider,E=_.sender,k=null===(s=null===(i=t.settings)||void 0===i?void 0:i["vtex.".concat(y)])||void 0===s?void 0:s.requiresAuthorization,x="private"===t.channelPrivacy,T=k||x?"private":O,I=b?"POST":c.method||"POST",R=Yi.canUseDOM?"https:":"http:",C="private"===(null==T?void 0:T.toLowerCase())?"POST":I;p.persistedQuery=Object.assign(Object.assign({},p.persistedQuery),{sender:E,provider:j});var A="?workspace=".concat(m,"&maxAge=").concat(w,"&appsEtag=").concat(l,"&domain=").concat(y,"&locale=").concat(d);return h&&h.id&&(A=Wl(A,{__bindingId:h.id})),Object.assign(Object.assign({},r),{http:Object.assign(Object.assign({},r.http),{includeQuery:b}),scope:T,fetchOptions:Object.assign(Object.assign({},c),{method:C}),uri:"".concat(R,"//").concat(e,"/_v/").concat(T,"/graphql/v").concat(S).concat(A)})})),r?r(n):null}))}(t,e),p=i?[jf(i)]:[],h=Object(gf.a)((function(e){var t=e.graphQLErrors;t&&_f.addOperationIds(t)})),m=yf.a.from([h,Mf,zf,n,f,d,xf(r)].concat(p,[l]));Jf["".concat(s,"/").concat(a)]=new mf.a({cache:Yi.canUseDOM?u.restore(window.__STATE__):u,link:m,resolvers:{},ssrMode:!Yi.canUseDOM,typeDefs:[]})}return Jf["".concat(s,"/").concat(a)]},Xf=function(e,t,n,r){return Object($f.a)((function(o){var i,s,a=(i=e,{setRenderProviderInstance:function(e){s=e},link:new yf.a((function(e,t){var n,r=null!==(n=null==s?void 0:s.state)&&void 0!==n?n:i,o=r.appsEtag,a=r.cacheHints,c=r.components,u=r.culture,l=r.extensions,f=r.messages,d=r.pages;return e.setContext((function(e){return Object.assign(Object.assign({},e),{runtime:{appsEtag:o,cacheHints:a,components:c,culture:u,extensions:l,messages:f,pages:d}})})),t?t(e):null}))}),c=a.setRenderProviderInstance,u=Kf(e,t,a.link,n,fetch,r);o({getClient:function(e){return c(e),u},hydrate:Object(Hf.a)(u)})}))},Qf=n(160),Zf=n.n(Qf),ed={},td=function(e,t,r,o){if(!o){n(616);var i=n(124),s="vtex.builder-hub:*:react2,pages0,build.status,pages1,styles?workspace=".concat(t),a="colossus:*:link_interrupted?workspace=".concat(t),c=i(e,t,s,{verbose:!1,host:r}),u=i(e,t,a,{verbose:!1,host:r}),l=function(n){var r=n.data,o=JSON.parse(r),i=o.key,s=o.body,a=s.code,c=s.type,u=s.hash,l=s.locales,f=s.subject,d=s.updated;if("build.status"!==i)switch("link_interrupted"===i&&(console.log("[colossus] Link interrupted."),ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("link_interrupted",a)}))),c){case"hmr":console.log("[react2] Received update. app=".concat(f," hash=").concat(u)),window.__RENDER_8_HOT__[f]&&window.__RENDER_8_HOT__[f].emit("webpackHotUpdate",u);break;case"reload":console.log("[react2] Received reload. app=".concat(f)),ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("build.status","reload")})),location.reload(!0);break;case"locales":console.log("[react2] Received locale update. appId=".concat(f," locales=").concat(l)),ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("localesUpdated",l)}));break;case"changed":console.log("[pages0] Extensions changed."),ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("extensionsUpdated")}));break;case"blocks":console.log("[pages1] Blocks changed."),ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("blocksUpdated")}));break;case"styles":console.log("[styles] Styles changed."),d.some((function(e){return/style\.json/gi.test(e)}))&&ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("styleTachyonsUpdate")})),d.some((function(e){return/overrides\.css/gi.test(e)}))&&ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("styleOverrides")}))}else switch(a){case"start":console.log("[build] Build started. app=".concat(f)),ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("build.status",a)}));break;case"success":console.log("[build] Build success. app=".concat(f)),ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("build.status",a)}));break;case"fail":console.log("[build] Build failed. app=".concat(f)),ed["".concat(e,"/").concat(t)].forEach((function(e){return e.emit("build.status",a)}))}};return c.onmessage=l,u.onmessage=l,c.onopen=function(){return console.log("[render] Connected to event server successfully")},c.onerror=function(){return console.log("[render] Connection to event server failed")},u.onopen=function(){return console.log("[colossus] Connected to event server successfully")},u.onerror=function(){return console.log("[colossus] Connection to event server failed")},c}},nd=function(e,t){if(!Yi.canUseDOM)return null;var n=e.account,r=e.production,o=e.workspace;return ed["".concat(n,"/").concat(o)]||(ed["".concat(n,"/").concat(o)]=[],ed["".concat(n,"/").concat(o)].eventSource=td(n,o,t,r),r||document.addEventListener("visibilitychange",(function(){var e=ed["".concat(n,"/").concat(o)].eventSource;!document.hidden&&e&&2===e.readyState&&(ed["".concat(n,"/").concat(o)].eventSource=td(n,o,t,r))}))),e.emitter||(e.emitter=new Zf.a,ed["".concat(n,"/").concat(o)].push(e.emitter)),e.emitter};function rd(e){var t=e.account,n=e.workspace,r=e.publicEndpoint,o=e.isJanusProxied,i=e.rootPath,s=void 0===i?"":i;if(!Yi.canUseDOM)return"".concat(n,"--").concat(t,".").concat(r);var a,c,u=window.location.hostname;return o?"".concat(u,"/api/io"):u.endsWith(".".concat(r))||(a=document.querySelector("meta[name='generator']"),(c=a&&a.getAttribute("content"))&&c.startsWith("vtex.render-server"))?u+s:"".concat(u,"/api/io")}var od=function(e){var t=e.renderWhileLoading,n=e.children,r=Object(as.useState)(!1),o=Object(Zi.a)(r,2),i=o[0],s=o[1],a=Object(as.useState)(null),c=Object(Zi.a)(a,2),u=c[0],l=c[1],f=Hs().ensureSession;return Object(as.useEffect)((function(){var e=!0;if(!i&&!u)return f().then((function(){e&&s(!0)})).catch((function(t){e&&l(t)})),function(){e=!1}}),[f,i,u]),i||t?cs.a.createElement(as.Fragment,null,n):u?cs.a.createElement("div",{className:"bg-washed-red pa6 f5 serious-black br3 pre"},cs.a.createElement("span",null,"Error initializing session"),cs.a.createElement("pre",null,cs.a.createElement("code",{className:"f6"},u))):cs.a.createElement(Zs,null)};function id(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var sd,ad=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.renderWhileLoading;return function(e){var n=function(n){Object(_s.a)(o,n);var r=id(o);function o(){return Object(vs.a)(this,o),r.apply(this,arguments)}return Object(bs.a)(o,[{key:"render",value:function(){return cs.a.createElement(od,{renderWhileLoading:t},cs.a.createElement(e,this.props))}}],[{key:"displayName",get:function(){return"WithSession(".concat(e.displayName||e.name||"Component",")")}},{key:"WrappedComponent",get:function(){return e}}]),o}(cs.a.Component);return qs()(n,e)}},cd=/url\("?(.*\/)assets\/vtex\.file-manager-graphql/,ud=function(e){return ka("VTEX_ASSETS_URL")?e.replace("vteximg.com.br","vtexassets.com"):e};function ld(e,t){try{return t&&0===t.indexOf("//")?ud(t.replace("//","https://")):!t||0!==t.indexOf("/arquivos")&&0!==t.indexOf("/assets")?ud(t):e+t}catch(e){return console.warn("Failed to optimize image source."),t}}function fd(e,t){try{if(t&&t.backgroundImage){var n=cd.exec(t.backgroundImage);n&&n[1]&&(t.backgroundImage=t.backgroundImage.replace(n[1],e+"/"))}return t}catch(e){return console.warn("Failed to optimize style."),t}}function dd(e){var t=Object.getOwnPropertyDescriptor(e,"style");return t&&t.writable||!1}!function(e){e.blocks="blocks",e.children="children"}(sd||(sd={}));var pd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o2&&void 0!==arguments[2]?arguments[2]:{};if(!hd)throw new Error("ExtensionPortal can't be rendered before RenderProvider");hd.emit("renderExtensionLoader.addOrUpdateExtension",{destination:t,extensionName:e,props:n})};function gd(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(){return n?Promise.resolve():Object(us.getDataFromTree)(e)},o=window.hrtime();return r().then((function(){var n=window.hrtime(o),r=window.hrtime();return{markup:t(e),renderTimeMetric:{getDataFromTree:n,renderToString:window.hrtime(r)}}}))}var vd=function(e,t,n,r){return Object($f.a)((function(o){r?(Object(ls.unstable_createRoot)(t,{hydrate:n}).render(e),o()):n?Object(ls.hydrate)(e,t,o):Object(ls.render)(e,t,o)}))},bd=function(e,t,n,r){var o=Ul?window.__RENDER_8_SESSION__.sessionPromise:Promise.resolve();return Xf(t,n,o,r).then((function(n){return n.hydrate(t.queryData).then((function(){return function(e,t,n,r){var o,i=t.customRouting,s=t.pages,a=t.extensions,c=!!s[e]&&!!s[e].path&&!!(null===(o=a[e])||void 0===o?void 0:o.component),u=Ul&&c&&!i?Object(os.createBrowserHistory)():null;return cs.a.createElement(ff,{apollo:r,history:u,root:e,runtime:t,sessionPromise:n},c?null:cs.a.createElement(ru,{id:e}))}(e,t,o,n)}))}))},_d=function(){var e=Object(es.a)(Qi.a.mark((function e(t,r,o){var i,s,a,c,u,l,f,d,p,h,m,y,g,v;return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=r.concurrentMode,s=r.disableSSR,a=r.disableSSQ,c=r.page,u=Ul?void 0:new pf,l=rd(r),hd=nd(r,l),!Ul){e.next=8;break}return f=o?{container:o,created:!1}:ic(),d=f.container,p=f.created,h=!(s||p),e.abrupt("return",Object($f.a)((function(e){bd(t,r,l,u).then((function(e){return vd(e,d,h,i)})).then(e)})));case 8:if(m=n(73),y=m.renderToStaticMarkup,g=m.renderToString,v={maxAge:u.maxAge,page:c},!r.amp){e.next=12;break}return e.abrupt("return",Promise.all([bd(t,r,l,u),Promise.resolve().then((function(){if(!n.m[120]){var e=new Error("Module '120' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return n(120)}))]).then((function(e){var n=Object(Zi.a)(e,2),o=n[0],i=(0,n[1].setupAMP)(o,y,r),s=i.ampRoot,c=i.getExtraRenderedData;return gd(s,y,a).then((function(e){var n=e.markup,r=e.renderTimeMetric;return Object.assign(Object.assign(Object.assign({},v),{markups:rc(t,n),renderTimeMetric:r}),c())}))})));case 12:return e.abrupt("return",bd(t,r,l,u).then((function(e){return gd(e,g,a).then((function(e){var n=e.markup,r=e.renderTimeMetric;return Object.assign(Object.assign({},v),{markups:rc(t,n),renderTimeMetric:r})}))})));case 13:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function wd(){var e,t;try{if(window.__RUNTIME__.blocksTree&&!Object(gs.isEmpty)(window.__RUNTIME__.blocksTree)&&(window.__RUNTIME__.hasNewExtensions=!0,window.__RUNTIME__.extensions=Yu(window.__RUNTIME__.blocksTree,window.__RUNTIME__.blocks,window.__RUNTIME__.contentMap,window.__RUNTIME__.pages[window.__RUNTIME__.page])),Ul){var n=window.location.search?ss.a.parse(window.location.search):{},r=null!==(e=window.__RUNTIME__.serverQuery)&&void 0!==e?e:{};window.__RUNTIME__.query=Object.assign(Object.assign({},r),n)}var o=window.__RUNTIME__;o.isJanusProxied=Ul&&window.location.pathname.startsWith("/api/io/");var i=o.page;!function(e,t){var n;if(!t[e])throw new Error("Missing extension point for page ".concat(e));if(!(null===(n=t[e])||void 0===n?void 0:n.component))throw new Error("Missing component for extension point ".concat(e))}(i,o.extensions);var s=cs.a.createElement,a=Ra(o.account);cs.a.createElement=function(e,t){if(!Ul&&"string"==typeof e&&e[0].toLowerCase()===e[0]&&t&&t.className){var n=t.className.trim().split(/\s+/);n.forEach((function(e){return md.add(e)}))}if("a"===e&&t){t.target&&!t.href&&(t.target=void 0);var r=t.rel?t.rel.split(" "):[];"_blank"===t.target&&-1===r.indexOf("noopener")&&-1===r.indexOf("noreferrer")&&(t.rel=r.concat("noopener").join(" "))}return"img"===e?(t.src=ld(a,t.src),"string"==typeof t.src&&t.src.startsWith(a)&&(t.crossOrigin=t.crossOrigin||"anonymous"),s.apply(cs.a,[ia,{createElement:s,imageProps:t}])):(t&&t.style&&dd(t)&&(t.style=fd(a,t.style)),s.apply(cs.a,arguments))};var c=_d(i,o);Ul?((t=o.workspaceCookie)&&(document.cookie=t),c.then((function(){window.__HAS_HYDRATED__=!0})).catch((function(e){console.error("Error during hydration",e)}))):window.rendered=c.then((function(e){var t=e.markups,n=e.maxAge,r=e.page,i=e.renderTimeMetric,s=pd(e,["markups","maxAge","page","renderTimeMetric"]);return Object.assign({cssClasses:Array.from(md).sort(),extensions:t.reduce((function(e,t){var n=t.name,r=t.markup;return e[n]=r,e}),{}),head:ps.rewind(),maxAge:n,renderMetrics:Ki({},r,i),state:Yf(o)},s)}))}catch(e){console.error("Unexpected error rendering:",e),Ul||(window.rendered={error:e})}}var Od=Ws.Consumer,Sd=Js.Consumer;function jd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Os.a)(e);if(t){var o=Object(Os.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(ws.a)(this,n)}}var Ed=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=1},Ld=function(e,t){var n=t&&t.intlPropName||"intl",r=t&&t.forwardRef||!1,o=Object($l.injectIntl)((function(t){var o,i=t[n];return i&&(i.formatRelative=(o=i,function(e){var t;if(console.warn("formatRelative was removed in react-intl@3.x, please start using formatRelativeTime."),e instanceof Date&&(t=e.getTime()-Date.now()),"string"==typeof e&&(t=new Date(e).getTime()-Date.now()),!t)return null;var n=Rd(t),r=n.value,i=n.unit;return o.formatRelativeTime(r,i)})),cs.a.createElement(e,Fs({},t,{ref:r?t.forwardedRef:null}))}),t);return o.displayName="renderRuntimeInjectIntl(".concat(function(e){return e.displayName||e.name||"Component"}(e)),o.WrappedComponent=e,r?qs()(cs.a.forwardRef((function(e,t){return cs.a.createElement(o,Fs({},e,{forwardedRef:t}))})),e):qs()(o,e)};function Dd(){var e,t;"undefined"!=typeof window&&"function"==typeof(null===(t=null===window||void 0===window?void 0:window.performance)||void 0===t?void 0:t.mark)&&(e=window.performance).mark.apply(e,arguments)}var Fd=function(){var e=Object(es.a)(Qi.a.mark((function e(){return Qi.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Yi.canUseDOM||"function"!=typeof window.__CRITICAL__RAISE_UNCRITICAL_EVENT__){e.next=3;break}return window.__CRITICAL__RAISE_UNCRITICAL_EVENT__(),e.abrupt("return",window.__CRITICAL__UNCRITICAL_APPLIED__);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()();Dd("uncritical-styles-start"),Fd.then((function(){Dd("uncritical-styles-end")})),Dd("intl-polyfill-start");var Ud,qd,Bd,zd=(window.IntlPolyfill&&(window.IntlPolyfill.__disableRegExpRestore(),window.Intl||(window.Intl=window.IntlPolyfill)),!window.Intl||!Yi.canUseDOM||window.Intl.PluralRules&&window.Intl.RelativeTimeFormat?Promise.resolve():Promise.resolve().then(n.bind(null,623)).then(Object(gs.prop)("default")));zd.then((function(){Dd("intl-polyfill-end")})),Ud=r,window.__RENDER_8_RUNTIME__=Object.assign({},Ud),window.__RENDER_8_COMPONENTS__=window.__RENDER_8_COMPONENTS__||global.__RENDER_8_COMPONENTS__,window.__RENDER_8_HOT__=window.__RENDER_8_HOT__||global.__RENDER_8_HOT__,window.__RUNTIME__.amp||(window.ReactAMPHTML=window.ReactAMPHTMLHelpers="undefined"!=typeof Proxy?new Proxy({},{get:function(e,t){if("__esModule"!==t&&"constructor"!==t){var n=Yi.canUseDOM?"You can not render AMP components on client-side":"You must check runtime.amp to render AMP components";throw new Error(n)}}}):{}),window.ReactApollo&&(window.ReactApollo=((qd=window.ReactApollo).Query,qd.Mutation,Bd=Ed(qd,["Query","Mutation"]),Object.assign(Object.assign({},Bd),{Query:xd,Mutation:Td,compose:gs.compose}))),window.ReactIntl&&(window.ReactIntl=function(){var e=window.ReactIntl,t=(e.injectIntl,Id(e,["injectIntl"]));return window.ReactIntlLocaleData||(window.ReactIntlLocaleData={}),Object.assign(Object.assign({},t),{injectIntl:Ld,intlShape:Hl.a.any,FormattedRelative:Cd,addLocaleData:Ad})}());var Hd=Yi.canUseDOM?function(){var e=new Promise((function(e){window.addEventListener("DOMContentLoaded",e),window.__DOM_READY__&&e()}));e.then((function(){Dd("content-loaded-promise-resolved")}));var t=new Promise((function(e){if(void 0===window.__ASYNC_SCRIPTS_READY__)return e();window.addEventListener("asyncScriptsReady",e),window.__ASYNC_SCRIPTS_READY__&&e()}));return Promise.all([e,zd,t,Fd])}():Promise.resolve();function $d(){global.__RUNTIME__=window.__RUNTIME__,window.__RUNTIME__.start&&!window.__ERROR__&&(Yi.canUseDOM?Hd.then((function(){setTimeout((function(){var e,t;Dd("render-start"),window.__RENDER_8_RUNTIME__.start(),Dd("render-end"),null===(t=null===(e=null===window||void 0===window?void 0:window.performance)||void 0===e?void 0:e.measure)||void 0===t||t.call(e,"[VTEX IO] Rendering/Hydration","render-start","render-end")}),1)})):window.__RENDER_8_RUNTIME__.start())}Yi.canUseDOM?function(){var e,t=null===(e=null===window||void 0===window?void 0:window.document)||void 0===e?void 0:e.querySelectorAll('template[data-type="json"]');if(!t||0===t.length)return Promise.resolve();var n=Array.from(t).map((function(e){return Object($f.a)((function(t){t(function(e){if(void 0===e.content)return e.textContent;for(var t="",n=e.content.childNodes,r=0;r=0?r=setTimeout(c,t-u):(r=null,n||(a=e.apply(i,o),i=o=null))}null==t&&(t=100);var u=function(){i=this,o=arguments,s=Date.now();var u=n&&!r;return r||(r=setTimeout(c,t)),u&&(a=e.apply(i,o),i=o=null),a};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(a=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},u}n.debounce=n,e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(612);t.default=r.default,t.useMedia=r.useMedia,t.useMediaLayout=r.useMediaLayout},,,,,,,function(e,t,n){(function(e){var t;t=function(e){"use strict";e.exports=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{verbose:!1},o=arguments[4],i=/myvtexdev\.com/.test(window.location.hostname)?"myvtexdev":"myvtex",s=r.host||t+"--"+e+"."+i+".com",a="https://"+s+"/_v/sse/"+n,c=new EventSource(a);if(r.verbose&&(c.addEventListener("open",(function(){return console.log("[myvtex-sse] Connected to path '"+n+"'.")})),c.addEventListener("error",(function(e){return console.log("[myvtex-sse] Error from path '"+n+"':",e)})),c.addEventListener("message",(function(e){return console.log("[myvtex-sse] Message from path '"+n+"':",e)}))),o&&"function"==typeof o){var u=function(e){var t=e.data;try{t=JSON.parse(t)}catch(e){console.error("[myvtex-sse] Failed to parse message's data to JSON")}o(t)};c.addEventListener("message",u)}return c}},"function"==typeof define&&define.amd?define(["module"],t):t(e)}).call(this,n(561)(e))},function(e,t,n){var r=n(43),o=n(69),i=n(57),s=n(71),a=n(566),c=function(e,t,n){var u,l,f,d,p=e&c.F,h=e&c.G,m=e&c.S,y=e&c.P,g=e&c.B,v=h?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),_=b.prototype||(b.prototype={});for(u in h&&(n=t),n)f=((l=!p&&v&&void 0!==v[u])?v:n)[u],d=g&&l?a(f,r):y&&"function"==typeof f?a(Function.call,f):f,v&&s(v,u,f,e&c.U),b[u]!=f&&i(b,u,d),y&&_[u]!=f&&(_[u]=f)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){e.exports=!n(56)&&!n(80)((function(){return 7!=Object.defineProperty(n(127)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(70),o=n(43).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(55),o=n(62),i=n(572)(!1),s=n(105)("IE_PROTO");e.exports=function(e,t){var n,a=o(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(u,n)||u.push(n));return u}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(103);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(81),o=n(576),i=n(106),s=n(105)("IE_PROTO"),a=function(){},c=function(){var e,t=n(127)("iframe"),r=i.length;for(t.style.display="none",n(577).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("