HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: //proc/self/cwd/nueva/modules/psxmarketingwithgoogle/views/js/fetchVerificationTag.js
/*! For license information please see fetchVerificationTag.js.LICENSE.txt */
(()=>{var t,e,n,r,i={9272:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});var r=function(){function t(){this.callbacks={}}return t.prototype.on=function(t,e){return this.callbacks[t]?this.callbacks[t].push(e):this.callbacks[t]=[e],this},t.prototype.once=function(t,e){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(t,r),e.apply(n,i)};return this.on(t,r),this},t.prototype.off=function(t,e){var n,r=(null!==(n=this.callbacks[t])&&void 0!==n?n:[]).filter((function(t){return t!==e}));return this.callbacks[t]=r,this},t.prototype.emit=function(t){for(var e,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(e=this.callbacks[t])&&void 0!==e?e:[]).forEach((function(t){t.apply(n,r)})),this},t}()},9360:(t,e,n)=>{"use strict";n.d(e,{F:()=>i,U:()=>o});var r=n(3932);function i(t,e){return new Promise((function(n,r){var i=setTimeout((function(){r(Error("Promise timed out"))}),e);t.then((function(t){return clearTimeout(i),n(t)})).catch(r)}))}function o(t,e,n,o){var s;return(s=n,new Promise((function(t){return setTimeout(t,s)}))).then((function(){return i(function(){try{return(0,r.O)(e(t))}catch(t){return Promise.reject(t)}}(),null!=o?o:1e3)})).catch((function(e){null==t||t.log("warn","Callback Error",{error:e}),null==t||t.stats.increment("callback_error")})).then((function(){return t}))}},8723:(t,e,n)=>{"use strict";n.d(e,{G:()=>i,s:()=>o});var r=n(5374);function i(){return!(0,r.j)()||window.navigator.onLine}function o(){return!i()}},7589:(t,e,n)=>{"use strict";n.d(e,{_:()=>m,Y:()=>_});var r=n(8537),i=n(3034),o=n(7768);const s=function(){function t(){var t=this;this._logs=[],this.log=function(e,n,r){var i=new Date;t._logs.push({level:e,message:n,time:i,extras:r})}}return Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce((function(t,e){var n,r,i,s=(0,o.pi)((0,o.pi)({},e),{json:JSON.stringify(e.extras,null," "),extras:e.extras});delete s.time;var a=null!==(i=null===(r=e.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return t[a]&&(a="".concat(a,"-").concat(Math.random())),(0,o.pi)((0,o.pi)({},t),((n={})[a]=s,n))}),{});console.table?console.table(t):console.log(t)}else this.logs.forEach((function(t){var e=t.level,n=t.message,r=t.extras;"info"===e||"debug"===e?console.log(n,null!=r?r:""):console[e](n,null!=r?r:"")}));this._logs=[]},t}();var a=function(){function t(t){this.metrics=[],this.remoteMetrics=t}return t.prototype.increment=function(t,e,n){var r;void 0===e&&(e=1),this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"counter",timestamp:Date.now()}),null===(r=this.remoteMetrics)||void 0===r||r.increment(t,null!=n?n:[])},t.prototype.gauge=function(t,e,n){this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},t.prototype.flush=function(){var t=this.metrics.map((function(t){return(0,o.pi)((0,o.pi)({},t),{tags:t.tags.join(",")})}));console.table?console.table(t):console.log(t),this.metrics=[]},t.prototype.serialize=function(){return this.metrics.map((function(t){return{m:t.metric,v:t.value,t:t.tags,k:(e=t.type,{gauge:"g",counter:"c"}[e]),e:t.timestamp};var e}))},t}();const c=a;var u=n(3975),l=n(8536),d=n(5106);function h(t){console.error("Error sending segment performance metrics",t)}var p,f=function(){function t(t){var e,n,r,i,o=this;if(this.host=null!==(e=null==t?void 0:t.host)&&void 0!==e?e:"api.segment.io/v1",this.sampleRate=null!==(n=null==t?void 0:t.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==t?void 0:t.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==t?void 0:t.maxQueueSize)&&void 0!==i?i:20,this.queue=[],this.sampleRate>0){var s=!1,a=function(){s||(s=!0,o.flush().catch(h),s=!1,setTimeout(a,o.flushTimer))};a()}}return t.prototype.increment=function(t,e){if(t.includes("analytics_js.")&&0!==e.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=e.reduce((function(t,e){var n=e.split(":"),r=n[0],i=n[1];return t[r]=i,t}),{});n.library="analytics.js";var r=(0,d.Bz)();n.library_version="web"===r?"next-".concat(l.i):"npm:next-".concat(l.i),this.queue.push({type:"Counter",metric:t,value:1,tags:n}),t.includes("error")&&this.flush().catch(h)}},t.prototype.flush=function(){return(0,o.mG)(this,void 0,void 0,(function(){var t=this;return(0,o.Jh)(this,(function(e){switch(e.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(e){h(e),t.sampleRate=0}))];case 1:return e.sent(),[2]}}))}))},t.prototype.send=function(){return(0,o.mG)(this,void 0,void 0,(function(){var t,e,n;return(0,o.Jh)(this,(function(r){return t={series:this.queue},this.queue=[],e={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,(0,u.Z)(n,{headers:e,body:JSON.stringify(t),method:"POST"})]}))}))},t}(),_=function(t){var e,n,r;this.retry=null===(e=t.retry)||void 0===e||e,this.type=null!==(n=t.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=t.reason)&&void 0!==r?r:""},m=function(){function t(t,e){this.logger=new s,this.cancel=function(t){if(t)throw t;throw new _({reason:"Context Cancel"})},this._attempts=0,this._event=t,this._id=null!=e?e:(0,r.v4)(),this.stats=new c(p)}return t.initMetrics=function(t){p=new f(t)},t.system=function(){return new t({type:"track",event:"system"})},t.prototype.isSame=function(t){return t._id===this._id},t.prototype.log=function(t,e,n){this.logger.log(t,e,n)},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this._event},set:function(t){this._event=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attempts",{get:function(){return this._attempts},set:function(t){this._attempts=t},enumerable:!1,configurable:!0}),t.prototype.updateEvent=function(t,e){var n;if("integrations"===t.split(".")[0]){var r=t.split(".")[1];if(!1===(null===(n=this._event.integrations)||void 0===n?void 0:n[r]))return this._event}return(0,i.N)(this._event,t,e),this._event},t.prototype.failedDelivery=function(){return this._failedDelivery},t.prototype.setFailedDelivery=function(t){this._failedDelivery=t},t.prototype.logs=function(){return this.logger.logs},t.prototype.flush=function(){this.logger.flush(),this.stats.flush()},t.prototype.toJSON=function(){return{id:this._id,event:this._event,logs:this.logger.logs,metrics:this.stats.metrics}},t}()},5374:(t,e,n)=>{"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(e,{j:()=>r,s:()=>i})},4757:(t,e,n)=>{"use strict";function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}}n.d(e,{a:()=>r})},3978:(t,e,n)=>{"use strict";n.d(e,{a:()=>o,z:()=>s});var r=n(7768),i=n(7589);function o(t,e){var n="action"in e?e.action.name:e.name;t.log("debug","plugin",{plugin:n});var o=(new Date).getTime(),s=e[t.event.type];return void 0===s?Promise.resolve(t):function(n){return(0,r.mG)(this,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,s.apply(e,[t])];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}}))}))}().then((function(t){var e=(new Date).getTime()-o;return t.stats.gauge("plugin_time",e,["plugin:".concat(n)]),t})).catch((function(e){if(e instanceof i.Y&&"middleware_cancellation"===e.type)throw e;return e instanceof i.Y?(t.log("warn",e.type,{plugin:n,error:e}),e):(t.log("error","plugin Error",{plugin:n,error:e}),t.stats.increment("plugin_error",1,["plugin:".concat(n)]),e)}))}function s(t,e){return o(t,e).then((function(e){if(e instanceof i._)return e;t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(e)}))}},7264:(t,e,n)=>{"use strict";n.d(e,{P:()=>i});var r=n(6366);function i(t){var e=function(t){try{return new URL(t)}catch(t){return}}(t);if(e)for(var n=function(t){var e=t.hostname.split("."),n=e[e.length-1],r=[];if(4===e.length&&parseInt(n,10)>0)return r;if(e.length<=1)return r;for(var i=e.length-2;i>=0;--i)r.push(e.slice(i).join("."));return r}(e),i=0;i<n.length;++i){var o="__tld__",s=n[i],a={domain:"."+s};try{if(r.Z.set(o,"1",a),r.Z.get(o))return r.Z.remove(o,a),s}catch(t){return}}}},8536:(t,e,n)=>{"use strict";n.d(e,{i:()=>r});var r="1.44.0"},9217:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Analytics:()=>K,AnalyticsBrowser:()=>Lt,AnalyticsNode:()=>jt,Context:()=>v._,ContextCancelation:()=>v.Y,Cookie:()=>z,EventFactory:()=>x,Group:()=>$,LocalStorage:()=>F,User:()=>G,loadLegacySettings:()=>At});var r=n(7768);function i(t){return"string"==typeof t}function o(t){return"number"==typeof t}function s(t){return"function"==typeof t}function a(t){return"object"===Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}var c=function(t){function e(e,n){var r=t.call(this,n)||this;return r.field=e,r}return(0,r.ZT)(e,t),e}(Error);function u(t){var e,n=t&&t.event&&t.event.type,r=t.event;if(void 0===r)throw new c("event","Event is missing");if(!i(n))throw new c("event","Event is not a string");if("track"===n&&!i(r.event))throw new c("event","Event is not a string");var o=null!==(e=r.properties)&&void 0!==e?e:r.traits;if("alias"!==n&&!a(o))throw new c("properties","properties is not an object");if(!function(t){var e,n,r;return i(null!==(r=null!==(n=null!==(e=t.userId)&&void 0!==e?e:t.anonymousId)&&void 0!==n?n:t.groupId)&&void 0!==r?r:t.previousId)}(r))throw new c("userId","Missing userId or anonymousId");return t}var l={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:u,identify:u,page:u,alias:u,group:u,screen:u};function d(t,e,n,r){var o,c=[t,e,n,r],u=a(t)?t.event:t;if(!u||!i(u))throw new Error("Event missing");var l=a(t)?null!==(o=t.properties)&&void 0!==o?o:{}:a(e)?e:{},d={};return a(e)&&!s(n)&&(d=null!=n?n:{}),a(t)&&!s(e)&&(d=null!=e?e:{}),[u,l,d,c.find(s)]}function h(t,e,n,r,o){var c,u,l=null,d=null,h=[t,e,n,r,o],p=h.filter(i);void 0!==p[0]&&void 0!==p[1]&&(l=p[0],d=p[1]),1===p.length&&(l=null,d=p[0]);var f=h.find(s),_=h.filter((function(t){return null===d?a(t):a(t)||null===t})),m=null!==(c=_[0])&&void 0!==c?c:{},y=null!==(u=_[1])&&void 0!==u?u:{};return[l,d,m,y,f]}var p=function(t){return function(){for(var e,n,r,c,u,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h;h=null!==(r=null!==(e=l.find(i))&&void 0!==e?e:null===(n=l.find(o))||void 0===n?void 0:n.toString())&&void 0!==r?r:t.id();var p=l.filter((function(t){return null===h?a(t):a(t)||null===t})),f=null!==(c=p[0])&&void 0!==c?c:{},_=null!==(u=p[1])&&void 0!==u?u:{},m=l.find(s);return[h,f,_,m]}};function f(t,e,n,r){o(t)&&(t=t.toString()),o(e)&&(e=e.toString());var c=[t,e,n,r],u=c.filter(i),l=u[0],d=void 0===l?t:l,h=u[1],p=void 0===h?null:h,f=c.filter(a)[0];return[d,p,void 0===f?{}:f,c.find(s)]}var _,m,y=n(9360),g=n(8723),v=n(7589),b=n(9272),w=n(8537),S=n(3034),k=n(229),E=n.n(k),x=function(){function t(t){this.user=t}return t.prototype.track=function(t,e,n,i){return this.normalize((0,r.pi)((0,r.pi)({},this.baseEvent()),{event:t,type:"track",properties:e,options:(0,r.pi)({},n),integrations:(0,r.pi)({},i)}))},t.prototype.page=function(t,e,n,i,o){var s,a={type:"page",properties:(0,r.pi)({},n),options:(0,r.pi)({},i),integrations:(0,r.pi)({},o)};return null!==t&&(a.category=t,a.properties=null!==(s=a.properties)&&void 0!==s?s:{},a.properties.category=t),null!==e&&(a.name=e),this.normalize((0,r.pi)((0,r.pi)({},this.baseEvent()),a))},t.prototype.screen=function(t,e,n,i,o){var s={type:"screen",properties:(0,r.pi)({},n),options:(0,r.pi)({},i),integrations:(0,r.pi)({},o)};return null!==t&&(s.category=t),null!==e&&(s.name=e),this.normalize((0,r.pi)((0,r.pi)({},this.baseEvent()),s))},t.prototype.identify=function(t,e,n,i){return this.normalize((0,r.pi)((0,r.pi)({},this.baseEvent()),{type:"identify",userId:t,traits:e,options:(0,r.pi)({},n),integrations:(0,r.pi)({},i)}))},t.prototype.group=function(t,e,n,i){return this.normalize((0,r.pi)((0,r.pi)({},this.baseEvent()),{type:"group",traits:e,options:(0,r.pi)({},n),integrations:(0,r.pi)({},i),groupId:t}))},t.prototype.alias=function(t,e,n,i){var o={userId:t,type:"alias",options:(0,r.pi)({},n),integrations:(0,r.pi)({},i)};return null!==e&&(o.previousId=e),void 0===t?this.normalize((0,r.pi)((0,r.pi)({},o),this.baseEvent())):this.normalize((0,r.pi)((0,r.pi)({},this.baseEvent()),o))},t.prototype.baseEvent=function(){var t={integrations:{},options:{}},e=this.user;return e.id()&&(t.userId=e.id()),e.anonymousId()&&(t.anonymousId=e.anonymousId()),t},t.prototype.context=function(t){var e,n,r,i=["integrations","anonymousId","timestamp","userId"],o=null!==(e=t.options)&&void 0!==e?e:{};delete o.integrations;var s=Object.keys(o),a=null!==(r=null===(n=t.options)||void 0===n?void 0:n.context)&&void 0!==r?r:{},c={};return s.forEach((function(t){"context"!==t&&(i.includes(t)?(0,S.N)(c,t,o[t]):(0,S.N)(a,t,o[t]))})),[a,c]},t.prototype.normalize=function(t){var e,n,i=Object.keys(null!==(e=t.integrations)&&void 0!==e?e:{}).reduce((function(e,n){var i,o;return(0,r.pi)((0,r.pi)({},e),((i={})[n]=Boolean(null===(o=t.integrations)||void 0===o?void 0:o[n]),i))}),{}),o=(0,r.pi)((0,r.pi)({},i),null===(n=t.options)||void 0===n?void 0:n.integrations),s=this.context(t),a=s[0],c=s[1],u=(t.options,(0,r._T)(t,["options"])),l=(0,r.pi)((0,r.pi)((0,r.pi)({timestamp:new Date},u),{context:a,integrations:o}),c),d="ajs-next-"+E().hash(JSON.stringify(l)+(0,w.v4)());return(0,r.pi)((0,r.pi)({},l),{messageId:d})},t}(),T=n(4466),I=n(3065),R=function(t){return"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then},O=function(){var t,e,n=0;return{done:function(){return t},run:function(r){var i=r();return R(i)&&(1==++n&&(t=new Promise((function(t){return e=t}))),i.finally((function(){return 0==--n&&e()}))),i}}},C=n(3978),D=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null},N=null!==(_=(m=D()).__SEGMENT_INSPECTOR__)&&void 0!==_?_:m.__SEGMENT_INSPECTOR__={},A=function(t){function e(e){var n=t.call(this)||this;return n.criticalTasks=O(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=null!=e?e:new I.$(4,"event-queue"),n.queue.on(T.M,(function(){n.scheduleFlush(0)})),n}return(0,r.ZT)(e,t),e.prototype.register=function(t,e,n){return(0,r.mG)(this,void 0,void 0,(function(){var i=this;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,Promise.resolve(e.load(t,n)).then((function(){i.plugins.push(e)})).catch((function(n){if("destination"===e.type)return i.failedInitializations.push(e.name),console.warn(e.name,n),void t.log("warn","Failed to load destination",{plugin:e.name,error:n});throw n}))];case 1:return r.sent(),[2]}}))}))},e.prototype.deregister=function(t,e,n){return(0,r.mG)(this,void 0,void 0,(function(){var i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),e.unload?[4,Promise.resolve(e.unload(t,n))]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.plugins=this.plugins.filter((function(t){return t.name!==e.name})),[3,4];case 3:return i=r.sent(),t.log("warn","Failed to unload destination",{plugin:e.name,error:i}),[3,4];case 4:return[2]}}))}))},e.prototype.dispatch=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e;return(0,r.Jh)(this,(function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.push(t),e=this.subscribeToDelivery(t),this.scheduleFlush(0),[2,e]}))}))},e.prototype.subscribeToDelivery=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e=this;return(0,r.Jh)(this,(function(n){return[2,new Promise((function(n){var r=function(i,o){i.isSame(t)&&(e.off("flush",r),n(i))};e.on("flush",r)}))]}))}))},e.prototype.dispatchSingle=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e=this;return(0,r.Jh)(this,(function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.updateAttempts(t),t.attempts=1,[2,this.deliver(t).catch((function(n){return n instanceof v.Y&&!1===n.retry?(t.setFailedDelivery({reason:n}),t):e.enqueuRetry(n,t)?e.subscribeToDelivery(t):(t.setFailedDelivery({reason:n}),t)}))]}))}))},e.prototype.isEmpty=function(){return 0===this.queue.length},e.prototype.scheduleFlush=function(t){var e=this;void 0===t&&(t=500),this.flushing||(this.flushing=!0,setTimeout((function(){e.flush().then((function(){setTimeout((function(){e.flushing=!1,e.queue.length&&e.scheduleFlush(0)}),0)}))}),t))},e.prototype.deliver=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,this.criticalTasks.done()];case 1:r.sent(),e=Date.now(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.flushOne(t)];case 3:return t=r.sent(),n=Date.now()-e,t.stats.gauge("delivered",n),t.log("debug","Delivered",t.event),[2,t];case 4:throw i=r.sent(),t.log("error","Failed to deliver",i),t.stats.increment("delivery_failed"),i;case 5:return[2]}}))}))},e.prototype.enqueuRetry=function(t,e){return!(t instanceof v.Y&&!1===t.retry)&&this.queue.pushWithBackoff(e)},e.prototype.flush=function(){return(0,r.mG)(this,void 0,void 0,(function(){var t,e;return(0,r.Jh)(this,(function(n){switch(n.label){case 0:if(0===this.queue.length||!(0,g.G)())return[2,[]];if(!(t=this.queue.pop()))return[2,[]];t.attempts=this.queue.getAttempts(t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return t=n.sent(),this.emit("flush",t,!0),[3,4];case 3:return e=n.sent(),this.enqueuRetry(e,t)||(t.setFailedDelivery({reason:e}),this.emit("flush",t,!1)),[2,[]];case 4:return[2,[t]]}}))}))},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(t){var e,n,i=this.plugins.filter((function(e){var n,r,i;if("destination"!==e.type&&"Segment.io"!==e.name)return!0;var o=void 0;return null===(n=e.alternativeNames)||void 0===n||n.forEach((function(e){void 0!==t[e]&&(o=t[e])})),null!==(i=null!==(r=t[e.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===e.name||t.All)})),o=(e="type",n={},i.forEach((function(t){var i,o=void 0,s=t[e];void 0!==(o="string"!=typeof s?JSON.stringify(s):s)&&(n[o]=(0,r.ev)((0,r.ev)([],null!==(i=n[o])&&void 0!==i?i:[],!0),[t],!1))})),n),s=o.before,a=void 0===s?[]:s,c=o.enrichment,u=void 0===c?[]:c,l=o.destination,d=void 0===l?[]:l,h=o.after;return{before:a,enrichment:u,destinations:d,after:void 0===h?[]:h}},e.prototype.flushOne=function(t){var e,n,i,o;return(0,r.mG)(this,void 0,void 0,(function(){var s,a,c,u,l,d,h,p,f,_,m,y,g,b;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(!this.isReady())throw new Error("Not ready");s=this.availableExtensions(null!==(e=t.event.integrations)&&void 0!==e?e:{}),a=s.before,c=s.enrichment,u=0,l=a,r.label=1;case 1:return u<l.length?(d=l[u],[4,(0,C.z)(t,d)]):[3,4];case 2:(_=r.sent())instanceof v._&&(t=_),r.label=3;case 3:return u++,[3,1];case 4:h=0,p=c,r.label=5;case 5:return h<p.length?(f=p[h],[4,(0,C.a)(t,f)]):[3,8];case 6:(_=r.sent())instanceof v._&&(t=_),r.label=7;case 7:return h++,[3,5];case 8:return null===(n=N.enriched)||void 0===n||n.call(N,t),m=this.availableExtensions(null!==(i=t.event.integrations)&&void 0!==i?i:{}),y=m.destinations,g=m.after,[4,new Promise((function(e,n){setTimeout((function(){var r=y.map((function(e){return(0,C.a)(t,e)}));Promise.all(r).then(e).catch(n)}),0)}))];case 9:return r.sent(),t.stats.increment("message_delivered"),null===(o=N.delivered)||void 0===o||o.call(N,t,["segment.io"]),b=g.map((function(e){return(0,C.a)(t,e)})),[4,Promise.all(b)];case 10:return r.sent(),[2,t]}}))}))},e}(b.Q),M=n(6366),U=n(7264);function L(t){for(var e=t.constructor.prototype,n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);o&&"function"==typeof o.value&&(t[i]=t[i].bind(t))}}return t}var j={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},P=function(){function t(){this.cache={}}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){return this.cache[t]=e,e},t.prototype.remove=function(t){delete this.cache[t]},t}(),z=function(t){function e(n){void 0===n&&(n=e.defaults);var i=t.call(this)||this;return i.options=(0,r.pi)((0,r.pi)({},e.defaults),n),i}return(0,r.ZT)(e,t),e.available=function(){var t=window.navigator.cookieEnabled;return t||(M.Z.set("ajs:cookies","test"),t=document.cookie.includes("ajs:cookies"),M.Z.remove("ajs:cookies")),t},Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:(0,U.P)(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(t){try{var e=M.Z.get(t);if(!e)return null;try{return JSON.parse(e)}catch(t){return e}}catch(t){return null}},e.prototype.set=function(t,e){return"string"==typeof e?M.Z.set(t,e,this.opts()):null===e?M.Z.remove(t,this.opts()):M.Z.set(t,JSON.stringify(e),this.opts()),e},e.prototype.remove=function(t){return M.Z.remove(t,this.opts())},e}(P),B=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.get=function(t){return null},e.set=function(t,e){return null},e.remove=function(t){},e}return(0,r.ZT)(e,t),e}(P),F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.available=function(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}},e.prototype.get=function(t){var e=localStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(t){return JSON.parse(JSON.stringify(e))}return null},e.prototype.set=function(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch(e){console.warn("Unable to set ".concat(t," in localStorage, storage may be full."))}return e},e.prototype.remove=function(t){return localStorage.removeItem(t)},e}(P),G=function(){function t(t,e){void 0===t&&(t=j);var n,r,i,o,s=this;this.options={},this.id=function(t){var e,n;if(s.options.disable)return null;var r=s.chainGet(s.idKey);return void 0!==t&&(s.trySet(s.idKey,t),t!==r&&null!==r&&null!==t&&s.anonymousId(null)),null!==(n=null!==(e=s.chainGet(s.idKey))&&void 0!==e?e:s.cookies.get(j.cookie.oldKey))&&void 0!==n?n:null},this.anonymousId=function(t){var e,n;if(s.options.disable)return null;if(void 0===t){var r=null!==(e=s.chainGet(s.anonKey))&&void 0!==e?e:null===(n=s.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===t?(s.trySet(s.anonKey,null),s.chainGet(s.anonKey)):(s.trySet(s.anonKey,null!=t?t:(0,w.v4)()),s.chainGet(s.anonKey))},this.traits=function(t){var e,n;if(!s.options.disable)return null===t&&(t={}),t&&(s.mem.set(s.traitsKey,null!=t?t:{}),s.localStorage.set(s.traitsKey,null!=t?t:{})),null!==(n=null!==(e=s.localStorage.get(s.traitsKey))&&void 0!==e?e:s.mem.get(s.traitsKey))&&void 0!==n?n:{}},this.options=t,this.cookieOptions=e,this.idKey=null!==(r=null===(n=t.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:j.cookie.key,this.traitsKey=null!==(o=null===(i=t.localStorage)||void 0===i?void 0:i.key)&&void 0!==o?o:j.localStorage.key,this.anonKey="ajs_anonymous_id";var a=!0===t.disable,c=!1!==t.persist;this.localStorage=a||t.localStorageFallbackDisabled||!c||!F.available()?new B:new F,this.cookies=!a&&c&&z.available()?new z(e):new B,this.mem=a?new B:new P;var u=this.cookies.get(j.cookie.oldKey);u&&(u.id&&this.id(u.id),u.traits&&this.traits(u.traits)),L(this)}return t.prototype.chainGet=function(t){var e,n,r,i=null!==(r=null!==(n=null!==(e=this.localStorage.get(t))&&void 0!==e?e:this.cookies.get(t))&&void 0!==n?n:this.mem.get(t))&&void 0!==r?r:null;return this.trySet(t,"number"==typeof i?i.toString():i)},t.prototype.trySet=function(t,e){return this.localStorage.set(t,e),this.cookies.set(t,e),this.mem.set(t,e),e},t.prototype.chainClear=function(t){this.localStorage.remove(t),this.cookies.remove(t),this.mem.remove(t)},t.prototype.legacySIO=function(){var t=this.cookies.get("_sio");if(!t)return null;var e=t.split("----");return[e[0],e[1]]},t.prototype.identify=function(t,e){if(!this.options.disable){e=null!=e?e:{};var n=this.id();null!==n&&n!==t||(e=(0,r.pi)((0,r.pi)({},this.traits()),e)),t&&this.id(t),this.traits(e)}},t.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},t.prototype.reset=function(){this.logout(),this.chainClear(this.idKey),this.chainClear(this.anonKey),this.chainClear(this.traitsKey)},t.prototype.load=function(){return new t(this.options,this.cookieOptions)},t.prototype.save=function(){return!0},t.defaults=j,t}(),Y={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},$=function(t){function e(e,n){void 0===e&&(e=Y);var r=t.call(this,e,n)||this;return r.anonymousId=function(t){},L(r),r}return(0,r.ZT)(e,t),e}(G),q=n(8536),Z="This is being deprecated and will be not be available in future releases of Analytics JS",H=D(),W=null==H?void 0:H.analytics;function J(){console.warn(Z)}var K=function(t){function e(e,n,i,o,s){var a,c,u,l=this;(l=t.call(this)||this)._debug=!1,l.initialized=!1,l.user=function(){return l._user},l.init=l.initialize.bind(l),l.log=J,l.addIntegrationMiddleware=J,l.listeners=J,l.addEventListener=J,l.removeAllListeners=J,l.removeListener=J,l.removeEventListener=J,l.hasListeners=J,l.add=J,l.addIntegration=J;var d=null==n?void 0:n.cookie,h=null!==(a=null==n?void 0:n.disableClientPersistence)&&void 0!==a&&a;return l.settings=e,l.settings.timeout=null!==(c=l.settings.timeout)&&void 0!==c?c:300,l.queue=null!=i?i:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=t?4:1,r=e?new T.Z(n,[]):new I.$(n,"event-queue");return new A(r)}(null==n?void 0:n.retryQueue,h),l._user=null!=o?o:new G(h?(0,r.pi)((0,r.pi)({},null==n?void 0:n.user),{persist:!1}):null==n?void 0:n.user,d).load(),l._group=null!=s?s:new $(h?(0,r.pi)((0,r.pi)({},null==n?void 0:n.group),{persist:!1}):null==n?void 0:n.group,d).load(),l.eventFactory=new x(l._user),l.integrations=null!==(u=null==n?void 0:n.integrations)&&void 0!==u?u:{},l.options=null!=n?n:{},L(l),l}return(0,r.ZT)(e,t),e.prototype.track=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i,o,s,a,c=this;return(0,r.Jh)(this,(function(r){return e=d.apply(void 0,t),n=e[0],i=e[1],o=e[2],s=e[3],a=this.eventFactory.track(n,i,o,this.integrations),[2,this.dispatch(a,s).then((function(t){return c.emit("track",n,t.event.properties,t.event.options),t}))]}))}))},e.prototype.page=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i,o,s,a,c,u=this;return(0,r.Jh)(this,(function(r){return e=h.apply(void 0,t),n=e[0],i=e[1],o=e[2],s=e[3],a=e[4],c=this.eventFactory.page(n,i,o,s,this.integrations),[2,this.dispatch(c,a).then((function(t){return u.emit("page",n,i,t.event.properties,t.event.options),t}))]}))}))},e.prototype.identify=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i,o,s,a,c=this;return(0,r.Jh)(this,(function(r){return e=p(this._user).apply(void 0,t),n=e[0],i=e[1],o=e[2],s=e[3],this._user.identify(n,i),a=this.eventFactory.identify(this._user.id(),this._user.traits(),o,this.integrations),[2,this.dispatch(a,s).then((function(t){return c.emit("identify",t.event.userId,t.event.traits,t.event.options),t}))]}))}))},e.prototype.group=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(0===e.length)return this._group;var r=p(this._group).apply(void 0,e),i=r[0],o=r[1],s=r[2],a=r[3];this._group.identify(i,o);var c=this._group.id(),u=this._group.traits(),l=this.eventFactory.group(c,u,s,this.integrations);return this.dispatch(l,a).then((function(e){return t.emit("group",e.event.groupId,e.event.traits,e.event.options),e}))},e.prototype.alias=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i,o,s,a,c=this;return(0,r.Jh)(this,(function(r){return e=f.apply(void 0,t),n=e[0],i=e[1],o=e[2],s=e[3],a=this.eventFactory.alias(n,i,o,this.integrations),[2,this.dispatch(a,s).then((function(t){return c.emit("alias",n,i,t.event.options),t}))]}))}))},e.prototype.screen=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i,o,s,a,c,u=this;return(0,r.Jh)(this,(function(r){return e=h.apply(void 0,t),n=e[0],i=e[1],o=e[2],s=e[3],a=e[4],c=this.eventFactory.screen(n,i,o,s,this.integrations),[2,this.dispatch(c,a).then((function(t){return u.emit("screen",n,i,t.event.properties,t.event.options),t}))]}))}))},e.prototype.trackClick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,i;return(0,r.Jh)(this,(function(o){switch(o.label){case 0:return[4,n.e(119).then(n.bind(n,4578))];case 1:return e=o.sent(),[2,(i=e.link).call.apply(i,(0,r.ev)([this],t,!1))]}}))}))},e.prototype.trackLink=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,i;return(0,r.Jh)(this,(function(o){switch(o.label){case 0:return[4,n.e(119).then(n.bind(n,4578))];case 1:return e=o.sent(),[2,(i=e.link).call.apply(i,(0,r.ev)([this],t,!1))]}}))}))},e.prototype.trackSubmit=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,i;return(0,r.Jh)(this,(function(o){switch(o.label){case 0:return[4,n.e(119).then(n.bind(n,4578))];case 1:return e=o.sent(),[2,(i=e.form).call.apply(i,(0,r.ev)([this],t,!1))]}}))}))},e.prototype.trackForm=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,i;return(0,r.Jh)(this,(function(o){switch(o.label){case 0:return[4,n.e(119).then(n.bind(n,4578))];case 1:return e=o.sent(),[2,(i=e.form).call.apply(i,(0,r.ev)([this],t,!1))]}}))}))},e.prototype.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i=this;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return e=v._.system(),n=t.map((function(t){return i.queue.register(e,t,i)})),[4,Promise.all(n)];case 1:return r.sent(),[2,e]}}))}))},e.prototype.deregister=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i=this;return(0,r.Jh)(this,(function(o){switch(o.label){case 0:return e=v._.system(),n=t.map((function(t){return(0,r.mG)(i,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(r){return(n=this.queue.plugins.find((function(e){return e.name===t})))?[2,this.queue.deregister(e,n,this)]:(e.log("warn","plugin ".concat(t," not found")),[2])}))}))})),[4,Promise.all(n)];case 1:return o.sent(),[2,e]}}))}))},e.prototype.debug=function(t){return!1===t&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=t,this},e.prototype.reset=function(){this._user.reset(),this._group.reset()},e.prototype.timeout=function(t){this.settings.timeout=t},e.prototype.dispatch=function(t,e){var n;return(0,r.mG)(this,void 0,void 0,(function(){var i,o,s,a,c;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return i=new v._(t),null===(n=N.triggered)||void 0===n||n.call(N,i),(0,g.s)()&&!this.options.retryQueue?[2,i]:(o=Date.now(),this.queue.isEmpty()?[4,this.queue.dispatchSingle(i)]:[3,2]);case 1:return s=r.sent(),[3,4];case 2:return[4,this.queue.dispatch(i)];case 3:s=r.sent(),r.label=4;case 4:return a=Date.now()-o,c=this.settings.timeout,e?[4,(0,y.U)(s,e,Math.max((null!=c?c:300)-a,0),c)]:[3,6];case 5:s=r.sent(),r.label=6;case 6:return this._debug&&s.flush(),[2,s]}}))}))},e.prototype.addSourceMiddleware=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e=this;return(0,r.Jh)(this,(function(i){switch(i.label){case 0:return[4,this.queue.criticalTasks.run((function(){return(0,r.mG)(e,void 0,void 0,(function(){var e,i,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,Promise.resolve().then(n.bind(n,4862))];case 1:return e=r.sent().sourceMiddlewarePlugin,i={},this.queue.plugins.forEach((function(t){if("destination"===t.type)return i[t.name]=!0})),o=e(t,i),[4,this.register(o)];case 2:return r.sent(),[2]}}))}))}))];case 1:return i.sent(),[2,this]}}))}))},e.prototype.addDestinationMiddleware=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.queue.plugins.filter((function(e){return e.name.toLowerCase()===t.toLowerCase()})).forEach((function(t){t.addMiddleware.apply(t,e)})),Promise.resolve(this)},e.prototype.setAnonymousId=function(t){return this._user.anonymousId(t)},e.prototype.queryString=function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,n.e(96).then(n.bind(n,9196))];case 1:return[2,(0,e.sent().queryString)(this,t)]}}))}))},e.prototype.use=function(t){return t(this),this},e.prototype.ready=function(t){return void 0===t&&(t=function(t){return t}),(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,Promise.all(this.queue.plugins.map((function(t){return t.ready?t.ready():Promise.resolve()}))).then((function(e){return t(e),e}))]}))}))},e.prototype.noConflict=function(){return console.warn(Z),window.analytics=null!=W?W:this,this},e.prototype.normalize=function(t){return console.warn(Z),this.eventFactory.normalize(t)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(Z),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return q.i},enumerable:!1,configurable:!0}),e.prototype.initialize=function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return console.warn(Z),[2,Promise.resolve(this)]}))}))},e.prototype.pageview=function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return console.warn(Z),[4,this.page({path:t})];case 1:return e.sent(),[2,this]}}))}))},Object.defineProperty(e.prototype,"plugins",{get:function(){var t;return console.warn(Z),null!==(t=this._plugins)&&void 0!==t?t:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){return console.warn(Z),this.queue.plugins.filter((function(t){return"destination"===t.type})).reduce((function(t,e){var n="".concat(e.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return t;var i=r.Integration;return i?(t[e.name]=i,t):(t[e.name]=r,t)}),{})},enumerable:!1,configurable:!0}),e.prototype.push=function(t){var e=t.shift();e&&!this[e]||this[e].apply(this,t)},e}(b.Q);function V(){return"undefined"!=typeof process&&process.env?process.env:{}}var X=n(3427),Q=n(3975),tt=n(5860);function et(){var t=document.getElementsByTagName("link"),e="";return Array.prototype.slice.call(t).forEach((function(t){"canonical"===t.getAttribute("rel")&&(e=t.getAttribute("href"))})),e}function nt(){var t=et();if(!t)return window.location.pathname;var e=document.createElement("a");return e.href=t,e.pathname.startsWith("/")?e.pathname:"/"+e.pathname}function rt(t){void 0===t&&(t="");var e=et();if(e)return e.includes("?")?e:"".concat(e).concat(t);var n=window.location.href,r=n.indexOf("#");return-1===r?n:n.slice(0,r)}function it(){return{path:nt(),referrer:document.referrer,search:location.search,title:document.title,url:rt(location.search)}}function ot(t){var e,n=t.event;n.context=n.context||{};var r=it(),i=null!==(e=n.properties)&&void 0!==e?e:{};return Object.keys(r).forEach((function(t){i[t]&&(r[t]=i[t])})),n.context.page&&(r=Object.assign({},r,n.context.page)),n.context=Object.assign({},n.context,{page:r}),t.event=n,t}var st={name:"Page Enrichment",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:function(t){return t.event.properties=Object.assign({},it(),t.event.properties),t.event.name&&(t.event.properties.name=t.event.name),ot(t)},alias:ot,track:ot,identify:ot,group:ot},at=n(3932),ct=n(6505),ut=n(4862),lt=function(){function t(t,e){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=e,this.name=t,this.type=e.type,this.alternativeNames.push(e.name)}return t.prototype.addMiddleware=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];(t=this.middleware).push.apply(t,e)},t.prototype.transform=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e;return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,(0,ut.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:return null===(e=n.sent())&&t.cancel(new v.Y({retry:!1,reason:"dropped by destination middleware"})),[2,new v._(e)]}}))}))},t.prototype._createMethod=function(t){var e=this;return function(n){return(0,r.mG)(e,void 0,void 0,(function(){var e;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return this.action[t]?[4,this.transform(n)]:[2,n];case 1:return e=r.sent(),[4,this.action[t](e)];case 2:return r.sent(),[2,n]}}))}))}},t.prototype.isLoaded=function(){return this.action.isLoaded()},t.prototype.ready=function(){return this.action.ready?this.action.ready():Promise.resolve()},t.prototype.load=function(t,e){return this.action.load(t,e)},t.prototype.unload=function(t,e){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,t,e)},t}();function dt(t,e,n,i,o){var s,a,c;return(0,r.mG)(this,void 0,void 0,(function(){var u,l,d,h,p=this;return(0,r.Jh)(this,(function(f){switch(f.label){case 0:return u=[],l=(0,X.Vl)(),d=null!==(a=null===(s=t.middlewareSettings)||void 0===s?void 0:s.routingRules)&&void 0!==a?a:[],h=(null!==(c=t.remotePlugins)&&void 0!==c?c:[]).map((function(t){return(0,r.mG)(p,void 0,void 0,(function(){var s,a,c,h,p,f,_,m,y;return(0,r.Jh)(this,(function(g){switch(g.label){case 0:if(!1===e.All&&!e[t.name]||!1===e[t.name])return[2];g.label=1;case 1:if(g.trys.push([1,12,,13]),!i)return[3,7];s=t.url.split("/"),a=s[s.length-2],c=t.url.replace(a,btoa(a).replace(/=/g,"")),g.label=2;case 2:return g.trys.push([2,4,,6]),[4,(0,ct.v)(c.replace("https://cdn.segment.com",l))];case 3:return g.sent(),[3,6];case 4:return g.sent(),[4,(0,ct.v)(t.url.replace("https://cdn.segment.com",l))];case 5:return g.sent(),[3,6];case 6:return[3,9];case 7:return[4,(0,ct.v)(t.url.replace("https://cdn.segment.com",l))];case 8:g.sent(),g.label=9;case 9:return h=t.libraryName,"function"!=typeof window[h]?[3,11]:(p=window[h],[4,(0,at.O)(p((0,r.pi)((0,r.pi)({},t.settings),n[t.name])))]);case 10:f=g.sent(),function(t){if(!Array.isArray(t))throw new Error("Not a valid list of plugins");var e=["load","isLoaded","name","version","type"];t.forEach((function(t){e.forEach((function(e){var n;if(void 0===t[e])throw new Error("Plugin: ".concat(null!==(n=t.name)&&void 0!==n?n:"unknown"," missing required function ").concat(e))}))}))}(_=Array.isArray(f)?f:[f]),m=d.filter((function(e){return e.destinationName===t.creationName})),_.forEach((function(e){var n=new lt(t.creationName,e);m.length&&o&&"destination"===e.type&&n.addMiddleware(o),u.push(n)})),g.label=11;case 11:return[3,13];case 12:return y=g.sent(),console.warn("Failed to load Remote Plugin",y),[3,13];case 13:return[2]}}))}))})),[4,Promise.all(h)];case 1:return f.sent(),[2,u.filter(Boolean)]}}))}))}var ht=n(5142),pt=function(t){var e=!1;document.addEventListener("pagehide",(function(){e||(e=!0,t())})),document.addEventListener("visibilitychange",(function(){if("hidden"==document.visibilityState){if(e)return;e=!0,t()}else e=!1}))},ft=Q.Z;"undefined"!=typeof window&&(ft=window.fetch||Q.Z);var _t=500;function mt(t){return(encodeURI(JSON.stringify(t)).split(/%..|./).length-1)/1024}var yt=Q.Z;"undefined"!=typeof window&&(yt=window.fetch||Q.Z);var gt=n(5106),vt=n(3113);function bt(t,e){return(0,r.mG)(this,void 0,void 0,(function(){var n,i=this;return(0,r.Jh)(this,(function(o){switch(o.label){case 0:return n=[],(0,g.s)()?[2,e]:[4,(0,vt.x)((function(){return e.length>0&&!(0,g.s)()}),(function(){return(0,r.mG)(i,void 0,void 0,(function(){var i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return(i=e.pop())?[4,(0,C.a)(i,t)]:[2];case 1:return r.sent()instanceof v._||n.push(i),[2]}}))}))}))];case 1:return o.sent(),n.map((function(t){return e.pushWithBackoff(t)})),[2,e]}}))}))}function wt(t,e,n,i){var o=this;t||setTimeout((function(){return(0,r.mG)(o,void 0,void 0,(function(){var t,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return t=!0,[4,bt(n,e)];case 1:return o=r.sent(),t=!1,e.todo>0&&i(t,o,n,i),[2]}}))}))}),5e3*Math.random())}function St(t,e,n){var i,o,s,a,c=t.options.disableClientPersistence?new T.Z(t.queue.queue.maxAttempts,[]):new I.$(t.queue.queue.maxAttempts,"dest-Segment.io"),u=!1,l=null!==(i=null==e?void 0:e.apiHost)&&void 0!==i?i:"api.segment.io/v1",d=null!==(o=null==e?void 0:e.protocol)&&void 0!==o?o:"https",h="".concat(d,"://").concat(l),p="batching"===(null===(s=null==e?void 0:e.deliveryStrategy)||void 0===s?void 0:s.strategy)?function(t,e){var n,i,o,s=[],a=!1,c=null!==(n=null==e?void 0:e.size)&&void 0!==n?n:10,u=null!==(i=null==e?void 0:e.timeout)&&void 0!==i?i:5e3;function l(e){var n;if(0!==e.length){var r=null===(n=e[0])||void 0===n?void 0:n.writeKey;return ft("https://".concat(t,"/b"),{keepalive:a,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:e,writeKey:r})})}}function d(){return(0,r.mG)(this,void 0,void 0,(function(){var t;return(0,r.Jh)(this,(function(e){return s.length?(t=s,s=[],[2,l(t)]):[2]}))}))}return pt((function(){if(a=!0,s.length){var t=function(t){var e=[],n=0;return t.forEach((function(t){mt(e[n])>=64&&n++,e[n]?e[n].push(t):e[n]=[t]})),e}(s).map(l);Promise.all(t).catch(console.error)}})),{dispatch:function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){var t;return(0,r.Jh)(this,(function(n){return s.push(e),t=s.length>=c||function(t){return mt(t)>=_t-50}(s),[2,t||a?d():void(o||(o=setTimeout((function(){o=void 0,d().catch(console.error)}),u)))]}))}))}}}(l,null===(a=null==e?void 0:e.deliveryStrategy)||void 0===a?void 0:a.config):{dispatch:function(t,e){return yt(t,{headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(e)})}};function f(i){return(0,r.mG)(this,void 0,void 0,(function(){var o,s;return(0,r.Jh)(this,(function(r){return(0,g.s)()?(c.push(i),wt(u,c,_,wt),[2,i]):(o=i.event.type.charAt(0),s=(0,ht.D)(i.event).json(),"track"===i.event.type&&delete s.traits,"alias"===i.event.type&&(s=function(t,e){var n,r,i,o,s=t.user();return e.previousId=null!==(i=null!==(r=null!==(n=e.previousId)&&void 0!==n?n:e.from)&&void 0!==r?r:s.id())&&void 0!==i?i:s.anonymousId(),e.userId=null!==(o=e.userId)&&void 0!==o?o:e.to,delete e.from,delete e.to,e}(t,s)),[2,p.dispatch("".concat(h,"/").concat(o),(0,gt.Fv)(t,s,e,n)).then((function(){return i})).catch((function(t){return"error"!==t.type&&"Failed to fetch"!==t.message||(c.push(i),wt(u,c,_,wt)),i}))])}))}))}var _={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:f,identify:f,page:f,alias:f,group:f};return _}var kt=function(t,e,n){n.getCalls(t).forEach((function(t){Ot(e,t).catch(console.error)}))},Et=function(t,e){return(0,r.mG)(void 0,void 0,void 0,(function(){var n,i,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:n=0,i=e.getCalls("addSourceMiddleware"),r.label=1;case 1:return n<i.length?(o=i[n],[4,Ot(t,o).catch(console.error)]):[3,4];case 2:r.sent(),r.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},xt=kt.bind(void 0,"on"),Tt=kt.bind(void 0,"setAnonymousId"),It=function(t,e){e.toArray().forEach((function(e){setTimeout((function(){Ot(t,e).catch(console.error)}),0)}))},Rt=function(){function t(){this._value={}}return t.prototype.toArray=function(){var t;return(t=[]).concat.apply(t,Object.values(this._value))},t.prototype.getCalls=function(t){var e;return null!==(e=this._value[t])&&void 0!==e?e:[]},t.prototype.push=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.forEach((function(e){t._value[e.method]?t._value[e.method].push(e):t._value[e.method]=[e]})),this},t.prototype.clear=function(){return this._value={},this},t}();function Ot(t,e){return(0,r.mG)(this,void 0,void 0,(function(){var n,i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),e.called?[2,void 0]:(e.called=!0,n=t[e.method].apply(t,e.args),R(n)?[4,n]:[3,2]);case 1:r.sent(),r.label=2;case 2:return e.resolve(n),[3,4];case 3:return i=r.sent(),e.reject(i),[3,4];case 4:return[2]}}))}))}var Ct=function(){function t(t){var e=this;this._preInitBuffer=new Rt,this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=q.i,this._promise=t(this._preInitBuffer),this._promise.then((function(t){var n=t[0],r=t[1];e.instance=n,e.ctx=r})).catch((function(){}))}return t.prototype.then=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).then.apply(t,e)},t.prototype.catch=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).catch.apply(t,e)},t.prototype.finally=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).finally.apply(t,e)},t.prototype._createMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(e.instance){var o=(n=e.instance)[t].apply(n,r);return Promise.resolve(o)}return new Promise((function(n,i){e._preInitBuffer.push({method:t,args:r,resolve:n,reject:i,called:!1})}))}},t.prototype._createChainableMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.instance?((n=e.instance)[t].apply(n,r),e):(e._preInitBuffer.push({method:t,args:r,resolve:function(){},reject:console.error,called:!1}),e)}},t}();function Dt(t){var e=t[0],n=t.slice(1);return{method:e,resolve:function(){},reject:console.error,args:n,called:!1}}var Nt=function(){var t=window.analytics;return Array.isArray(t)?t.splice(0,t.length).map(Dt):[]};function At(t,e){var n=null!=e?e:(0,X.Vl)();return(0,Q.Z)("".concat(n,"/v1/projects/").concat(t,"/settings")).then((function(t){return t.ok?t.json():t.text().then((function(t){throw new Error(t)}))})).catch((function(t){throw console.error(t.message),t}))}function Mt(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return e.push.apply(e,Nt()),[4,Et(t,e)];case 1:return n.sent(),e.push.apply(e,Nt()),It(t,e),e.clear(),[2]}}))}))}function Ut(t,e,i,o,s){var a,c,u;return(0,r.mG)(this,void 0,void 0,(function(){var d,h,p,f,_,m,y,g,v,b,w=this;return(0,r.Jh)(this,(function(S){switch(S.label){case 0:return function(t){var e,n,r;return"test"!==V().NODE_ENV&&(null!==(r=null===(n=null===(e=t.middlewareSettings)||void 0===e?void 0:e.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(t)?[4,n.e(604).then(n.bind(n,1609)).then((function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)}))]:[3,2];case 1:return h=S.sent(),[3,3];case 2:h=void 0,S.label=3;case 3:return d=h,k=t,"test"!==V().NODE_ENV&&Object.keys(k.integrations).length>1?[4,n.e(464).then(n.bind(n,74)).then((function(n){return n.ajsDestinations(t,e.integrations,i,d)}))]:[3,5];case 4:return f=S.sent(),[3,6];case 5:f=[],S.label=6;case 6:return p=f,t.legacyVideoPluginsEnabled?[4,n.e(150).then(n.bind(n,511)).then((function(t){return t.loadLegacyVideoPlugins(e)}))]:[3,8];case 7:S.sent(),S.label=8;case 8:return(null===(a=i.plan)||void 0===a?void 0:a.track)?[4,n.e(493).then(n.bind(n,7177)).then((function(e){var n;return e.schemaFilter(null===(n=i.plan)||void 0===n?void 0:n.track,t)}))]:[3,10];case 9:return m=S.sent(),[3,11];case 10:m=void 0,S.label=11;case 11:return _=m,y=(0,tt.o)(t,o),[4,dt(t,e.integrations,y,o.obfuscate,d).catch((function(){return[]}))];case 12:return g=S.sent(),v=(0,r.ev)((0,r.ev)((0,r.ev)([l,st],s,!0),p,!0),g,!0),_&&v.push(_),!1===(null===(c=i.integrations)||void 0===c?void 0:c.All)&&!i.integrations["Segment.io"]||i.integrations&&!1===i.integrations["Segment.io"]||v.push(St(e,y["Segment.io"],t.integrations)),[4,e.register.apply(e,v)];case 13:return b=S.sent(),Object.entries(null!==(u=t.enabledMiddleware)&&void 0!==u?u:{}).some((function(t){return t[1]}))?[4,n.e(214).then(n.bind(n,6209)).then((function(n){var i=n.remoteMiddlewares;return(0,r.mG)(w,void 0,void 0,(function(){var n,s;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,i(b,t,o.obfuscate)];case 1:return n=r.sent(),s=n.map((function(t){return e.addSourceMiddleware(t)})),[2,Promise.all(s)]}}))}))}))]:[3,15];case 14:S.sent(),S.label=15;case 15:return[2,b]}var k}))}))}var Lt=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.load=function(t,e){return void 0===e&&(e={}),new this((function(n){return function(t,e,n){var i,o,s,a,c,u;return void 0===e&&(e={}),(0,r.mG)(this,void 0,void 0,(function(){var l,d,h,p,f,_,m,y,g,b;return(0,r.Jh)(this,(function(w){switch(w.label){case 0:return t.cdnURL&&(0,X.UH)(t.cdnURL),null===(i=t.cdnSettings)||void 0===i?[3,1]:(d=i,[3,3]);case 1:return[4,At(t.writeKey,t.cdnURL)];case 2:d=w.sent(),w.label=3;case 3:return h=null===(s=null===(o=(l=d).integrations["Segment.io"])||void 0===o?void 0:o.retryQueue)||void 0===s||s,p=(0,r.pi)({retryQueue:h},e),f=new K(t,p),_=null!==(a=t.plugins)&&void 0!==a?a:[],v._.initMetrics(l.metrics),function(t,e){e.push.apply(e,Nt()),Tt(t,e),xt(t,e)}(f,n),[4,Ut(l,f,p,e,_)];case 4:return m=w.sent(),y=null!==(c=window.location.search)&&void 0!==c?c:"",g=null!==(u=window.location.hash)&&void 0!==u?u:"",(b=y.length?y:g.replace(/(?=#).*(?=\?)/,"")).includes("ajs_")?[4,f.queryString(b).catch(console.error)]:[3,6];case 5:w.sent(),w.label=6;case 6:return f.initialized=!0,f.emit("initialize",t,e),e.initialPageview&&f.page().catch(console.error),[4,Mt(f,n)];case 7:return w.sent(),[2,[f,m]]}}))}))}(t,e,n)}))},e.standalone=function(t,n){return e.load({writeKey:t},n).then((function(t){return t[0]}))},e}(Ct),jt=function(){function t(){}return t.load=function(){return Promise.reject(new Error("AnalyticsNode is not available in browsers."))},t}()},3932:(t,e,n)=>{"use strict";function r(t){return Promise.resolve(t)}n.d(e,{O:()=>r})},6505:(t,e,n)=>{"use strict";function r(t){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find((function(e){return e.src===t}))}function i(t,e){var n=r(t);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise((function(t,e){n.addEventListener("load",(function(){return t(n)})),n.addEventListener("error",(function(t){return e(t)}))}))}return new Promise((function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=t,o.async=!0,o.setAttribute("status","loading");for(var s=0,a=Object.entries(null!=e?e:{});s<a.length;s++){var c=a[s],u=c[0],l=c[1];o.setAttribute(u,l)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(new Error("Failed to load ".concat(t)))};var d=window.document.getElementsByTagName("script")[0];null===(i=d.parentElement)||void 0===i||i.insertBefore(o,d)}))}function o(t){var e=r(t);return void 0!==e&&e.remove(),Promise.resolve()}n.d(e,{t:()=>o,v:()=>i})},5860:(t,e,n)=>{"use strict";n.d(e,{o:()=>i});var r=n(7768);function i(t,e){var n,i=Object.entries(null!==(n=e.integrations)&&void 0!==n?n:{}).reduce((function(t,e){var n,i,o=e[0],s=e[1];return"object"==typeof s?(0,r.pi)((0,r.pi)({},t),((n={})[o]=s,n)):(0,r.pi)((0,r.pi)({},t),((i={})[o]={},i))}),{});return Object.entries(t.integrations).reduce((function(t,e){var n,o=e[0],s=e[1];return(0,r.pi)((0,r.pi)({},t),((n={})[o]=(0,r.pi)((0,r.pi)({},s),i[o]),n))}),{})}},3113:(t,e,n)=>{"use strict";n.d(e,{x:()=>i});var r=n(7768),i=function(t,e){return(0,r.mG)(void 0,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(i){return n=function(i){return(0,r.mG)(void 0,void 0,void 0,(function(){var o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return t(i)?(o=n,[4,e()]):[3,2];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}}))}))},[2,n(void 0)]}))}))}},3427:(t,e,n)=>{"use strict";n.d(e,{Kg:()=>a,UH:()=>o,Vl:()=>s});var r,i=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,o=function(t){window.analytics&&(window.analytics._cdn=t),r=t},s=function(){var t,e=null!=r?r:null===(t=window.analytics)||void 0===t?void 0:t._cdn;if(e)return e;var n,o=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach((function(t){var e,r=null!==(e=t.getAttribute("src"))&&void 0!==e?e:"",o=i.exec(r);o&&o[1]&&(n=o[1])})),n);return o||"https://cdn.segment.com"},a=function(){var t=s();return"".concat(t,"/next-integrations")}},4466:(t,e,n)=>{"use strict";n.d(e,{M:()=>o,Z:()=>s});var r=n(7768),i=n(9272),o="onRemoveFromFuture",s=function(t){function e(e,n,r){var i=t.call(this)||this;return i.future=[],i.maxAttempts=e,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.ZT)(e,t),e.prototype.push=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e){return!(t.updateAttempts(e)>t.maxAttempts||t.includes(e)||(t.queue.push(e),0))}));return this.queue=this.queue.sort((function(e,n){return t.getAttempts(e)-t.getAttempts(n)})),r},e.prototype.pushWithBackoff=function(t){var e=this;if(0===this.getAttempts(t))return this.push(t)[0];var n=this.updateAttempts(t);if(n>this.maxAttempts||this.includes(t))return!1;var r=function(t){var e=Math.random()+1,n=t.minTimeout,r=void 0===n?500:n,i=t.factor,o=void 0===i?2:i,s=t.attempt,a=t.maxTimeout,c=void 0===a?1/0:a;return Math.min(e*r*Math.pow(o,s),c)}({attempt:n-1});return setTimeout((function(){e.queue.push(t),e.future=e.future.filter((function(e){return e.id!==t.id})),e.emit(o)}),r),this.future.push(t),!0},e.prototype.getAttempts=function(t){var e;return null!==(e=this.seen[t.id])&&void 0!==e?e:0},e.prototype.updateAttempts=function(t){return this.seen[t.id]=this.getAttempts(t)+1,this.getAttempts(t)},e.prototype.includes=function(t){return this.queue.includes(t)||this.future.includes(t)||Boolean(this.queue.find((function(e){return e.id===t.id})))||Boolean(this.future.find((function(e){return e.id===t.id})))},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(i.Q)},3065:(t,e,n)=>{"use strict";n.d(e,{$:()=>p});var r=n(7768),i=n(4466),o=n(7589),s=n(5374),a={getItem:function(){},setItem:function(){},removeItem:function(){}};try{a=(0,s.j)()&&window.localStorage?window.localStorage:a}catch(t){console.warn("Unable to access localStorage",t)}function c(t){var e=a.getItem(t);return(e?JSON.parse(e):[]).map((function(t){return new o._(t.event,t.id)}))}function u(t){var e=a.getItem(t);return e?JSON.parse(e):{}}function l(t){a.removeItem(t)}var d=function(){return(new Date).getTime()};function h(t,e,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(t,":lock"),i=a.getItem(r),o=i?JSON.parse(i):null,s=null===o||function(t){return(new Date).getTime()>t}(o);if(s)return a.setItem(r,JSON.stringify(d()+50)),e(),void a.removeItem(r);!s&&n<3?setTimeout((function(){h(t,e,n+1)}),50):console.error("Unable to retrieve lock")}var p=function(t){function e(e,n){var i=t.call(this,e,[])||this,o="persisted-queue:v1:".concat(n,":items"),s="persisted-queue:v1:".concat(n,":seen"),d=[],p={};return h(n,(function(){try{d=c(o),p=u(s),l(o),l(s),i.queue=(0,r.ev)((0,r.ev)([],d,!0),i.queue,!0),i.seen=(0,r.pi)((0,r.pi)({},p),i.seen)}catch(t){console.error(t)}})),document.addEventListener("pagehide",(function(){if(i.todo>0){var t=(0,r.ev)((0,r.ev)([],i.queue,!0),i.future,!0);try{h(n,(function(){!function(t,e){var n=c(t),i=(0,r.ev)((0,r.ev)([],e,!0),n,!0).reduce((function(t,e){var n;return(0,r.pi)((0,r.pi)({},t),((n={})[e.id]=e,n))}),{});a.setItem(t,JSON.stringify(Object.values(i)))}(o,t),function(t,e){var n=u(t);a.setItem(t,JSON.stringify((0,r.pi)((0,r.pi)({},n),e)))}(s,i.seen)}))}catch(t){console.error(t)}}})),i}return(0,r.ZT)(e,t),e}(i.Z)},5142:(t,e,n)=>{"use strict";n.d(e,{D:()=>i});var r=n(3825);function i(t,e){var n=new r.Facade(t,e);return"track"===t.type&&(n=new r.Track(t,e)),"identify"===t.type&&(n=new r.Identify(t,e)),"page"===t.type&&(n=new r.Page(t,e)),"alias"===t.type&&(n=new r.Alias(t,e)),"group"===t.type&&(n=new r.Group(t,e)),"screen"===t.type&&(n=new r.Screen(t,e)),Object.defineProperty(n,"obj",{value:t,writable:!0}),n}},4862:(t,e,n)=>{"use strict";n.r(e),n.d(e,{applyDestinationMiddleware:()=>c,sourceMiddlewarePlugin:()=>u});var r=n(7768),i=n(7589),o=n(3932),s=n(5142),a=function(t){return JSON.parse(JSON.stringify(t))};function c(t,e,n){return(0,r.mG)(this,void 0,void 0,(function(){function i(e,n){return(0,r.mG)(this,void 0,void 0,(function(){var i,a,c;return(0,r.Jh)(this,(function(u){switch(u.label){case 0:return i=!1,a=null,[4,(0,o.O)(n({payload:(0,s.D)(e,{clone:!0,traverse:!1}),integration:t,next:function(t){i=!0,null===t&&(a=null),t&&(a=t.obj)}}))];case 1:return u.sent(),i||null===a||(a.integrations=(0,r.pi)((0,r.pi)({},e.integrations),((c={})[t]=!1,c))),[2,a]}}))}))}var c,u,l,d,h;return(0,r.Jh)(this,(function(t){switch(t.label){case 0:c=a(e),u=0,l=n,t.label=1;case 1:return u<l.length?(d=l[u],[4,i(c,d)]):[3,4];case 2:if(null===(h=t.sent()))return[2,null];c=h,t.label=3;case 3:return u++,[3,1];case 4:return[2,c]}}))}))}function u(t,e){function n(n){return(0,r.mG)(this,void 0,void 0,(function(){var a;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return a=!1,[4,(0,o.O)(t({payload:(0,s.D)(n.event,{clone:!0,traverse:!1}),integrations:null!=e?e:{},next:function(t){a=!0,t&&(n.event=t.obj)}}))];case 1:if(r.sent(),!a)throw new i.Y({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}}))}))}return{name:"Source Middleware ".concat(t.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(t){return Promise.resolve(t)},track:n,page:n,identify:n,alias:n,group:n}}},5106:(t,e,n)=>{"use strict";n.d(e,{Bz:()=>l,Fv:()=>d});var r,i=n(7768),o=n(6366),s=n(4757),a=n(7264),c=n(8536),u="npm";function l(){return u}function d(t,e,n,u){var d,h,p,f,_=t.user(),m=window.location.search;e.context=null!==(h=null!==(d=e.context)&&void 0!==d?d:e.options)&&void 0!==h?h:{};var y=e.context,g=e.anonymousId;delete e.options,e.writeKey=null==n?void 0:n.apiKey,y.userAgent=window.navigator.userAgent;var v=navigator.userLanguage||navigator.language;if(void 0===y.locale&&void 0!==v&&(y.locale=v),!y.library){var b=l();y.library="web"===b?{name:"analytics.js",version:"next-".concat(c.i)}:{name:"analytics.js",version:"npm:next-".concat(c.i)}}m&&!y.campaign&&(y.campaign=function(t){return t.startsWith("?")&&(t=t.substring(1)),(t=t.replace(/\?/g,"&")).split("&").reduce((function(t,e){var n=e.split("="),r=n[0],i=n[1],o=void 0===i?"":i;if(r.includes("utm_")&&r.length>4){var a=r.substr(4);"campaign"===a&&(a="name"),t[a]=(0,s.a)(o)}return t}),{})}(m)),function(t,e,n){var s=o.Z.get("s:context.referrer"),c=function(t){var e={btid:"dataxu",urid:"millennial-media"};t.startsWith("?")&&(t=t.substring(1));for(var n=0,r=(t=t.replace(/\?/g,"&")).split("&");n<r.length;n++){var i=r[n].split("="),o=i[0],s=i[1];if(e[o])return{id:s,type:e[o]}}}(t);s=s?JSON.parse(s):void 0,(c=null!=c?c:s)&&(e&&(e.referrer=(0,i.pi)((0,i.pi)({},e.referrer),c)),n||o.Z.set("s:context.referrer",JSON.stringify(c),function(){if(r)return r;var t=(0,a.P)(window.location.href);return r={expires:31536e6,secure:!1,path:"/"},t&&(r.domain=t),r}()))}(m,y,null!==(p=t.options.disableClientPersistence)&&void 0!==p&&p),e.userId=e.userId||_.id(),e.anonymousId=_.anonymousId(g),e.sentAt=new Date;var w=t.queue.failedInitializations||[];w.length>0&&(e._metadata={failedInitializations:w});var S=[],k=[];for(var E in u){var x=u[E];"Segment.io"===E&&S.push(E),"bundled"===x.bundlingStatus&&S.push(E),"unbundled"===x.bundlingStatus&&k.push(E)}for(var T=0,I=(null==n?void 0:n.unbundledIntegrations)||[];T<I.length;T++){var R=I[T];k.includes(R)||k.push(R)}var O=null!==(f=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==f?f:{},C=[];S.sort().forEach((function(t){var e;(null!==(e=O[t])&&void 0!==e?e:[]).forEach((function(t){C.push(t)}))})),!1!==(null==n?void 0:n.addBundledMetadata)&&(e._metadata=(0,i.pi)((0,i.pi)({},e._metadata),{bundled:S.sort(),unbundled:k.sort(),bundledIds:C}));var D=function(){var t=o.Z.get("_ga");if(t&&t.startsWith("amp"))return t}();return D&&(y.amp={id:D}),e}},6815:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(9434));function o(t,e){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+t)||i.default(n,t)||(e?i.default(n,"address."+e):null)||(e?i.default(n,e):null)||i.default(r,"address."+t)||i.default(r,t)||(e?i.default(r,"address."+e):null)||(e?i.default(r,e):null)}}e.default=function(t){t.zip=o("postalCode","zip"),t.country=o("country"),t.street=o("street"),t.state=o("state"),t.city=o("city"),t.region=o("region")}},5665:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Alias=void 0;var i=r(n(7483)),o=n(1572);function s(t,e){o.Facade.call(this,t,e)}e.Alias=s,i.default(s,o.Facade),s.prototype.action=function(){return"alias"},s.prototype.type=s.prototype.action,s.prototype.previousId=function(){return this.field("previousId")||this.field("from")},s.prototype.from=s.prototype.previousId,s.prototype.userId=function(){return this.field("userId")||this.field("to")},s.prototype.to=s.prototype.userId},8258:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clone=void 0,e.clone=function t(e){if("[object Object]"===Object.prototype.toString.call(e)){var n={};for(var r in e)n[r]=t(e[r]);return n}return Array.isArray(e)?e.map(t):e}},6394:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=void 0;var i=r(n(7483)),o=n(1572);function s(t,e){o.Facade.call(this,t,e)}e.Delete=s,i.default(s,o.Facade),s.prototype.type=function(){return"delete"}},1572:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Facade=void 0;var i=r(n(6815)),o=n(8258),s=r(n(8458)),a=r(n(1862)),c=r(n(9434)),u=r(n(8651));function l(t,e){e=e||{},this.raw=o.clone(t),"clone"in e||(e.clone=!0),e.clone&&(t=o.clone(t)),"traverse"in e||(e.traverse=!0),t.timestamp="timestamp"in t?a.default(t.timestamp):new Date,e.traverse&&u.default(t),this.opts=e,this.obj=t}e.Facade=l;var d=l.prototype;function h(t){return o.clone(t)}d.proxy=function(t){var e=t.split("."),n=this[t=e.shift()]||this.field(t);return n?("function"==typeof n&&(n=n.call(this)||{}),0===e.length||(n=c.default(n,e.join("."))),this.opts.clone?h(n):n):n},d.field=function(t){var e=this.obj[t];return this.opts.clone?h(e):e},l.proxy=function(t){return function(){return this.proxy(t)}},l.field=function(t){return function(){return this.field(t)}},l.multi=function(t){return function(){var e=this.proxy(t+"s");if(Array.isArray(e))return e;var n=this.proxy(t);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},l.one=function(t){return function(){var e=this.proxy(t);if(e)return e;var n=this.proxy(t+"s");return Array.isArray(n)?n[0]:void 0}},d.json=function(){var t=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(t.type=this.type()),t},d.rawEvent=function(){return this.raw},d.options=function(t){var e=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(e):e;if(!t)return n;if(this.enabled(t)){var r=this.integrations(),i=r[t]||c.default(r,t);return"object"!=typeof i&&(i=c.default(this.options(),t)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(t){var e=this.proxy("options.providers.all");"boolean"!=typeof e&&(e=this.proxy("options.all")),"boolean"!=typeof e&&(e=this.proxy("integrations.all")),"boolean"!=typeof e&&(e=!0);var n=e&&s.default(t),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(t)&&(n=r.providers[t]),r.hasOwnProperty(t)){var i=r[t];n="boolean"!=typeof i||i}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var t=this.proxy("options.active");return null==t&&(t=!0),t},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=l.proxy("options.groupId"),d.traits=function(t){var e=this.proxy("options.traits")||{},n=this.userId();for(var r in t=t||{},n&&(e.id=n),t){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();null!=i&&(e[t[r]]=i,delete e[r])}return e},d.library=function(){var t=this.proxy("options.library");return t?"string"==typeof t?{name:t,version:null}:t:{name:"unknown",version:null}},d.device=function(){var t=this.proxy("context.device");"object"==typeof t&&null!==t||(t={});var e=this.library().name;return t.type||(e.indexOf("ios")>-1&&(t.type="ios"),e.indexOf("android")>-1&&(t.type="android")),t},d.userAgent=l.proxy("context.userAgent"),d.timezone=l.proxy("context.timezone"),d.timestamp=l.field("timestamp"),d.channel=l.field("channel"),d.ip=l.proxy("context.ip"),d.userId=l.field("userId"),i.default(d)},779:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;var i=r(n(7483)),o=r(n(9889)),s=r(n(1862)),a=n(1572);function c(t,e){a.Facade.call(this,t,e)}e.Group=c,i.default(c,a.Facade);var u=c.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=a.Facade.field("groupId"),u.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return s.default(t)},u.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();return o.default(e)?e:void 0},u.traits=function(t){var e=this.properties(),n=this.groupId();for(var r in t=t||{},n&&(e.id=n),t){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(e[t[r]]=i,delete e[r])}return e},u.name=a.Facade.proxy("traits.name"),u.industry=a.Facade.proxy("traits.industry"),u.employees=a.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},5005:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Identify=void 0;var i=n(1572),o=r(n(9434)),s=r(n(7483)),a=r(n(9889)),c=r(n(1862)),u=function(t){return t.trim()};function l(t,e){i.Facade.call(this,t,e)}e.Identify=l,s.default(l,i.Facade);var d=l.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(t){var e=this.field("traits")||{},n=this.userId();for(var r in t=t||{},n&&(e.id=n),t){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(e[t[r]]=i,r!==t[r]&&delete e[r])}return e},d.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();return a.default(e)?e:void 0},d.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return c.default(t)},d.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return c.default(t)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var t=this.proxy("traits.name");if("string"==typeof t)return u(t);var e=this.firstName(),n=this.lastName();return e&&n?u(e+" "+n):void 0},d.firstName=function(){var t=this.proxy("traits.firstName");if("string"==typeof t)return u(t);var e=this.proxy("traits.name");return"string"==typeof e?u(e).split(" ")[0]:void 0},d.lastName=function(){var t=this.proxy("traits.lastName");if("string"==typeof t)return u(t);var e=this.proxy("traits.name");if("string"==typeof e){var n=u(e).indexOf(" ");if(-1!==n)return u(e.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var t=this.birthday(),e=o.default(this.traits(),"age");return null!=e?e:t instanceof Date?(new Date).getFullYear()-t.getFullYear():void 0},d.avatar=function(){var t=this.traits();return o.default(t,"avatar")||o.default(t,"photoUrl")||o.default(t,"avatarUrl")},d.position=function(){var t=this.traits();return o.default(t,"position")||o.default(t,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},3825:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=e.Screen=e.Page=e.Track=e.Identify=e.Group=e.Alias=e.Facade=void 0;var i=n(1572);Object.defineProperty(e,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(5665);Object.defineProperty(e,"Alias",{enumerable:!0,get:function(){return o.Alias}});var s=n(779);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return s.Group}});var a=n(5005);Object.defineProperty(e,"Identify",{enumerable:!0,get:function(){return a.Identify}});var c=n(2338);Object.defineProperty(e,"Track",{enumerable:!0,get:function(){return c.Track}});var u=n(3684);Object.defineProperty(e,"Page",{enumerable:!0,get:function(){return u.Page}});var l=n(8701);Object.defineProperty(e,"Screen",{enumerable:!0,get:function(){return l.Screen}});var d=n(6394);Object.defineProperty(e,"Delete",{enumerable:!0,get:function(){return d.Delete}}),e.default=r(r({},i.Facade),{Alias:o.Alias,Group:s.Group,Identify:a.Identify,Track:c.Track,Page:u.Page,Screen:l.Screen,Delete:d.Delete})},9889:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=/.+\@.+\..+/;e.default=function(t){return n.test(t)}},8458:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={Salesforce:!0};e.default=function(t){return!n[t]}},3684:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Page=void 0;var i=r(n(7483)),o=n(1572),s=n(2338),a=r(n(9889));function c(t,e){o.Facade.call(this,t,e)}e.Page=c,i.default(c,o.Facade);var u=c.prototype;u.action=function(){return"page"},u.type=u.action,u.category=o.Facade.field("category"),u.name=o.Facade.field("name"),u.title=o.Facade.proxy("properties.title"),u.path=o.Facade.proxy("properties.path"),u.url=o.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(t){var e=this.field("properties")||{},n=this.category(),r=this.name();for(var i in t=t||{},n&&(e.category=n),r&&(e.name=r),t){var o=null==this[i]?this.proxy("properties."+i):this[i]();null!=o&&(e[t[i]]=o,i!==t[i]&&delete e[i])}return e},u.email=function(){var t=this.proxy("context.traits.email")||this.proxy("properties.email");if(t)return t;var e=this.userId();return a.default(e)?e:void 0},u.fullName=function(){var t=this.category(),e=this.name();return e&&t?t+" "+e:e},u.event=function(t){return t?"Viewed "+t+" Page":"Loaded a Page"},u.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new s.Track(e,this.opts)}},8701:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Screen=void 0;var i=r(n(7483)),o=n(3684),s=n(2338);function a(t,e){o.Page.call(this,t,e)}e.Screen=a,i.default(a,o.Page),a.prototype.action=function(){return"screen"},a.prototype.type=a.prototype.action,a.prototype.event=function(t){return t?"Viewed "+t+" Screen":"Loaded a Screen"},a.prototype.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new s.Track(e,this.opts)}},2338:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Track=void 0;var i=r(n(7483)),o=n(1572),s=n(5005),a=r(n(9889)),c=r(n(9434));function u(t,e){o.Facade.call(this,t,e)}e.Track=u,i.default(u,o.Facade);var l=u.prototype;l.action=function(){return"track"},l.type=l.action,l.event=o.Facade.field("event"),l.value=o.Facade.proxy("properties.value"),l.category=o.Facade.proxy("properties.category"),l.id=o.Facade.proxy("properties.id"),l.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},l.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},l.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},l.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},l.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},l.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},l.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},l.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},l.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},l.sku=o.Facade.proxy("properties.sku"),l.tax=o.Facade.proxy("properties.tax"),l.name=o.Facade.proxy("properties.name"),l.price=o.Facade.proxy("properties.price"),l.total=o.Facade.proxy("properties.total"),l.repeat=o.Facade.proxy("properties.repeat"),l.coupon=o.Facade.proxy("properties.coupon"),l.shipping=o.Facade.proxy("properties.shipping"),l.discount=o.Facade.proxy("properties.discount"),l.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},l.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},l.description=o.Facade.proxy("properties.description"),l.plan=o.Facade.proxy("properties.plan"),l.subtotal=function(){var t=c.default(this.properties(),"subtotal"),e=this.total()||this.revenue();if(t)return t;if(!e)return 0;if(this.total()){var n=this.tax();n&&(e-=n),(n=this.shipping())&&(e-=n),(n=this.discount())&&(e+=n)}return e},l.products=function(){var t=this.properties(),e=c.default(t,"products");return Array.isArray(e)?e.filter((function(t){return null!==t})):[]},l.quantity=function(){return(this.obj.properties||{}).quantity||1},l.currency=function(){return(this.obj.properties||{}).currency||"USD"},l.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},l.query=o.Facade.proxy("options.query"),l.properties=function(t){var e=this.field("properties")||{};for(var n in t=t||{}){var r=null==this[n]?this.proxy("properties."+n):this[n]();null!=r&&(e[t[n]]=r,delete e[n])}return e},l.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},l.email=function(){var t=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(t)return t;var e=this.userId();return a.default(e)?e:void 0},l.revenue=function(){var t=this.proxy("properties.revenue"),e=this.event();return!t&&e&&e.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(t=this.proxy("properties.total")),function(t){if(t){if("number"==typeof t)return t;if("string"==typeof t)return t=t.replace(/\$/g,""),t=parseFloat(t),isNaN(t)?void 0:t}}(t)},l.cents=function(){var t=this.revenue();return"number"!=typeof t?this.value()||0:100*t},l.identify=function(){var t=this.json();return t.traits=this.traits(),new s.Identify(t,this.opts)}},8651:(t,e,n)=>{"use strict";var r=n(632);t.exports=function t(e,n){return void 0===n&&(n=!0),e&&"object"==typeof e?function(e,n){return Object.keys(e).forEach((function(r){e[r]=t(e[r],n)})),e}(e,n):Array.isArray(e)?function(e,n){return e.forEach((function(r,i){e[i]=t(r,n)})),e}(e,n):r.is(e,n)?r.parse(e):e}},632:(t,e)=>{"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;e.parse=function(t){var e=[1,5,6,7,11,12],r=n.exec(t),i=0;if(!r)return new Date(t);for(var o,s=0;o=e[s];s++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i));var a=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(a)},e.is=function(t,e){return"string"==typeof t&&(!e||!1!==/^\d{4}-\d{2}-\d{2}/.test(t))&&n.test(t)}},7503:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Breadcrumbs:()=>Je,BrowserClient:()=>tn,Dedupe:()=>Pn,FunctionToString:()=>U,GlobalHandlers:()=>kn,HttpContext:()=>jn,Hub:()=>ut,InboundFilters:()=>J,Integrations:()=>Do,LinkedErrors:()=>Un,Replay:()=>bo,SDK_VERSION:()=>mt,Scope:()=>it,TryCatch:()=>Cn,WINDOW:()=>re,addBreadcrumb:()=>wt,addGlobalEventProcessor:()=>st,captureEvent:()=>vt,captureException:()=>yt,captureMessage:()=>gt,chromeStackLineParser:()=>ln,close:()=>Kn,configureScope:()=>bt,createTransport:()=>ee,defaultIntegrations:()=>Yn,defaultStackLineParsers:()=>bn,defaultStackParser:()=>wn,eventFromException:()=>Ee,eventFromMessage:()=>xe,flush:()=>Jn,forceLoad:()=>Hn,geckoStackLineParser:()=>pn,getCurrentHub:()=>ht,getHubFromCarrier:()=>ft,init:()=>$n,lastEventId:()=>Zn,makeBrowserOfflineTransport:()=>Oo,makeFetchTransport:()=>nn,makeMain:()=>dt,makeXHRTransport:()=>on,onLoad:()=>Wn,opera10StackLineParser:()=>yn,opera11StackLineParser:()=>vn,setContext:()=>St,setExtra:()=>Et,setExtras:()=>kt,setTag:()=>Tt,setTags:()=>xt,setUser:()=>It,showReportDialog:()=>qn,startTransaction:()=>Ot,winjsStackLineParser:()=>_n,withScope:()=>Rt,wrap:()=>Vn});var r={};n.r(r),n.d(r,{FunctionToString:()=>U,InboundFilters:()=>J});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>Je,Dedupe:()=>Pn,GlobalHandlers:()=>kn,HttpContext:()=>jn,LinkedErrors:()=>Un,TryCatch:()=>Cn});const o=Object.prototype.toString;function s(t){switch(o.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(t,Error)}}function a(t,e){return o.call(t)===`[object ${e}]`}function c(t){return a(t,"ErrorEvent")}function u(t){return a(t,"DOMError")}function l(t){return a(t,"String")}function d(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function h(t){return a(t,"Object")}function p(t){return"undefined"!=typeof Event&&_(t,Event)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function _(t,e){try{return t instanceof e}catch(t){return!1}}var m=n(397);const y=(0,m.Rf)(),g=80;function v(t,e={}){try{let n=t;const r=5,i=[];let o=0,s=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||g;for(;n&&o++<r&&(u=b(n,l),!("html"===u||o>1&&s+i.length*c+u.length>=d));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(a)}catch(t){return"<unknown>"}}function b(t,e){const n=t,r=[];let i,o,s,a,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&l(i))for(o=i.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)s=d[c],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function w(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function S(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function k(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!l(t)&&(a(e,"RegExp")?e.test(t):!!l(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}function E(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{T(i,r)}catch(t){}t[e]=i}function x(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function T(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,x(t,"__sentry_original__",e)}function I(t){return t.__sentry_original__}function R(t){if(s(t))return{message:t.message,name:t.name,stack:t.stack,...C(t)};if(p(t)){const e={type:t.type,target:O(t.target),currentTarget:O(t.currentTarget),...C(t)};return"undefined"!=typeof CustomEvent&&_(t,CustomEvent)&&(e.detail=t.detail),e}return t}function O(t){try{return"undefined"!=typeof Element&&_(t,Element)?v(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function C(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function D(t,e=40){const n=Object.keys(R(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return w(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:w(r,e)}return""}function N(t){return A(t,new Map)}function A(t,e){if(h(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=A(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(A(t,e))})),r}return t}let M;class U{constructor(){U.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=U.id}setupOnce(){M=Function.prototype.toString,Function.prototype.toString=function(...t){const e=I(this)||this;return M.apply(e,t)}}}U.__initStatic();const L="Sentry Logger ",j=["debug","info","warn","error","log","assert","trace"];function P(t){if(!("console"in m.n2))return t();const e=m.n2.console,n={};j.forEach((t=>{const r=e[t]&&e[t].__sentry_original__;t in e&&r&&(n[t]=e[t],e[t]=r)}));try{return t()}finally{Object.keys(n).forEach((t=>{e[t]=n[t]}))}}function z(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?j.forEach((n=>{e[n]=(...e)=>{t&&P((()=>{m.n2.console[n](`${L}[${n}]:`,...e)}))}})):j.forEach((t=>{e[t]=()=>{}})),e}let B;function F(){const t=m.n2,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function G(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Y(t){const{message:e,event_id:n}=t;if(e)return e;const r=G(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function $(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function q(t,e){const n=G(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function Z(t){if(t&&t.__sentry_captured__)return!0;try{x(t,"__sentry_captured__",!0)}catch(t){}return!1}function H(t){return Array.isArray(t)?t:[t]}B="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,m.YO)("logger",z):z();const W=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class J{static __initStatic(){this.id="InboundFilters"}__init(){this.name=J.id}constructor(t={}){this._options=t,J.prototype.__init.call(this)}setupOnce(t,e){const n=t=>{const n=e();if(n){const e=n.getIntegration(J);if(e){const r=n.getClient(),i=r?r.getOptions():{},o=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...W],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(e._options,i);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Y(t)}`),!0):function(t,e){return!(!e||!e.length)&&function(t){if(t.message)return[t.message];if(t.exception)try{const{type:e="",value:n=""}=t.exception.values&&t.exception.values[0]||{};return[`${n}`,`${e}: ${n}`]}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(`Cannot extract message for event ${Y(t)}`),[]}return[]}(t).some((t=>k(t,e)))}(t,e.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Y(t)}`),!0):function(t,e){if(!e||!e.length)return!1;const n=K(t);return!!n&&k(n,e)}(t,e.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Y(t)}.\nUrl: ${K(t)}`),!0):!function(t,e){if(!e||!e.length)return!0;const n=K(t);return!n||k(n,e)}(t,e.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Y(t)}.\nUrl: ${K(t)}`),!0)}(t,o)?null:t}}return t};n.id=this.name,t(n)}}function K(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(`Cannot extract url for event ${Y(t)}`),null}}J.__initStatic();var V,X=n(6281),Q=n(6708);function tt(t){return new nt((e=>{e(t)}))}function et(t){return new nt(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(V||(V={}));class nt{__init(){this._state=V.PENDING}__init2(){this._handlers=[]}constructor(t){nt.prototype.__init.call(this),nt.prototype.__init2.call(this),nt.prototype.__init3.call(this),nt.prototype.__init4.call(this),nt.prototype.__init5.call(this),nt.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new nt(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new nt(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init3(){this._resolve=t=>{this._setResult(V.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(V.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===V.PENDING&&(f(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===V.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===V.RESOLVED&&t[1](this._value),this._state===V.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function rt(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,X.ph)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:F()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}class it{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const e=new it;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&rt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof it?e:this}return t instanceof it?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):h(t)&&(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)),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}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,X.yW)(),...t};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction&&this._span.transaction.name;e&&(t.tags={transaction:e,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...ot(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,e,n,r=0){return new nt(((i,o)=>{const s=t[r];if(null===e||"function"!=typeof s)i(e);else{const a=s({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===a&&B.log(`Event processor "${s.id}" dropped event`),f(a)?a.then((e=>this._notifyEventProcessors(t,e,n,r+1).then(i))).then(null,o):this._notifyEventProcessors(t,a,n,r+1).then(i).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?H(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function ot(){return(0,m.YO)("globalEventProcessors",(()=>[]))}function st(t){ot().push(t)}const at=4,ct=100;class ut{__init(){this._stack=[{}]}constructor(t,e=new it,n=at){this._version=n,ut.prototype.__init.call(this),this.getStackTop().scope=e,t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=it.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:F(),r=new Error("Sentry syntheticException");return this._withClient(((i,o)=>{i.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},o)})),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:F(),i=new Error(t);return this._withClient(((o,s)=>{o.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},s)})),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:F();return t.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=ct}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const s={timestamp:(0,X.yW)(),...t},a=i?P((()=>i(s,e))):s;null!==a&&n.addBreadcrumb(a,o)}setUser(t){const e=this.getScope();e&&e.setUser(t)}setTags(t){const e=this.getScope();e&&e.setTags(t)}setExtras(t){const e=this.getScope();e&&e.setExtras(t)}setTag(t,e){const n=this.getScope();n&&n.setTag(t,e)}setExtra(t,e){const n=this.getScope();n&&n.setExtra(t,e)}setContext(t,e){const n=this.getScope();n&&n.setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();e&&n&&t(e)}run(t){const e=dt(this);try{t(this)}finally{dt(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){return this._callExtensionMethod("startTransaction",t,e)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&function(t,e){let n={};"ok"===t.status&&(n={status:"exited"}),rt(t,n)}(n),this._sendSessionUpdate(),e&&e.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{},{userAgent:o}=m.n2.navigator||{},s=function(t){const e=(0,X.ph)(),n={sid:F(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return N({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&rt(n,t),n}({release:r,environment:i,...e&&{user:e.getUser()},...o&&{userAgent:o},...t});if(e){const t=e.getSession&&e.getSession();t&&"ok"===t.status&&rt(t,{status:"exited"}),this.endSession(),e.setSession(s)}return s}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop();if(!t)return;const n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=lt().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function lt(){return m.n2.__SENTRY__=m.n2.__SENTRY__||{extensions:{},hub:void 0},m.n2}function dt(t){const e=lt(),n=ft(e);return _t(e,t),n}function ht(){const t=lt();return pt(t)&&!ft(t).isOlderThan(at)||_t(t,new ut),(0,Q.KV)()?function(t){try{const e=lt().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return ft(t);if(!pt(n)||ft(n).isOlderThan(at)){const e=ft(t).getStackTop();_t(n,new ut(e.client,it.clone(e.scope)))}return ft(n)}catch(e){return ft(t)}}(t):ft(t)}function pt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function ft(t){return(0,m.YO)("hub",(()=>new ut),t)}function _t(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}const mt="7.39.0";function yt(t,e){return ht().captureException(t,{captureContext:e})}function gt(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return ht().captureMessage(t,n,r)}function vt(t,e){return ht().captureEvent(t,e)}function bt(t){ht().configureScope(t)}function wt(t){ht().addBreadcrumb(t)}function St(t,e){ht().setContext(t,e)}function kt(t){ht().setExtras(t)}function Et(t,e){ht().setExtra(t,e)}function xt(t){ht().setTags(t)}function Tt(t,e){ht().setTag(t,e)}function It(t){ht().setUser(t)}function Rt(t){ht().withScope(t)}function Ot(t,e){return ht().startTransaction({...t},e)}class Ct extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}const Dt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Nt(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function At(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Mt(t){const e="string"==typeof t?function(t){const e=Dt.exec(t);if(!e)throw new Ct(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",o,s="",a]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return At({host:o,pass:i,path:c,projectId:u,port:s,protocol:n,publicKey:r})}(t):At(t);return function(t){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:e,projectId:n,protocol:r}=t;if(["protocol","publicKey","host","projectId"].forEach((e=>{if(!t[e])throw new Ct(`Invalid Sentry Dsn: ${e} missing`)})),!n.match(/^\d+$/))throw new Ct(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(t){return"http"===t||"https"===t}(r))throw new Ct(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(e&&isNaN(parseInt(e,10)))throw new Ct(`Invalid Sentry Dsn: Invalid port ${e}`)}(e),e}const Ut=50;function Lt(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const r=[];for(const i of t.split("\n").slice(n)){if(i.length>1024)continue;const t=i.replace(/\(error: (.*)\)/,"$1");for(const n of e){const e=n(t);if(e){r.push(e);break}}}return function(t){if(!t.length)return[];let e=t;const n=e[0].function||"",r=e[e.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,Ut).map((t=>({...t,filename:t.filename||e[0].filename,function:t.function||"?"}))).reverse()}(r)}}const jt="<anonymous>";function Pt(t){try{return t&&"function"==typeof t&&t.name||jt}catch(t){return jt}}function zt(t,e=1/0,n=1/0){try{return Ft("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Bt(t,e=3,n=102400){const r=zt(t,e);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>n?Bt(t,e-1,n):r;var i}function Ft(t,e,r=1/0,i=1/0,o=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[s,a]=o;if(null===e||["number","boolean","string"].includes(typeof e)&&("number"!=typeof(c=e)||c==c))return e;var c;const u=function(t,e){try{return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==n.g&&e===n.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":function(t){return h(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?`[Function: ${Pt(e)}]`:"symbol"==typeof e?`[${String(e)}]`:"bigint"==typeof e?`[BigInt: ${String(e)}]`:`[object ${function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e)}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!u.startsWith("[object "))return u;if(e.__sentry_skip_normalization__)return e;if(0===r)return u.replace("object ","");if(s(e))return"[Circular ~]";const l=e;if(l&&"function"==typeof l.toJSON)try{return Ft("",l.toJSON(),r-1,i,o)}catch(t){}const d=Array.isArray(e)?[]:{};let p=0;const f=R(e);for(const t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(p>=i){d[t]="[MaxProperties ~]";break}const e=f[t];d[t]=Ft(t,e,r-1,i,o),p++}return a(e),d}function Gt(t,e=[]){return[t,e]}function Yt(t,e){const[n,r]=t;return[n,[...r,e]]}function $t(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function qt(t,e){return(e||new TextEncoder).encode(t)}function Zt(t,e){const[n,r]=t;let i=JSON.stringify(n);function o(t){"string"==typeof i?i="string"==typeof t?i+t:[qt(i,e),t]:i.push("string"==typeof t?qt(t,e):t)}for(const t of r){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(zt(n))}o(t)}}return"string"==typeof i?i:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(i)}function Ht(t,e){const n="string"==typeof t.data?qt(t.data,e):t.data;return[N({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const Wt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function Jt(t){return Wt[t]}function Kt(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Vt(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:Nt(r)},..."transaction"===t.type&&i&&{trace:N({...i})}}}const Xt=6e4;function Qt(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?Xt:r-e}const te=30;function ee(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return et(new Ct("Not adding Promise because buffer limit was reached."));const i=r();return-1===e.indexOf(i)&&e.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new nt(((n,r)=>{let i=e.length;if(!i)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{tt(t).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(t.bufferSize||te)){let r={};return{send:function(i){const o=[];if($t(i,((e,n)=>{const i=Jt(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,i)){const r=ne(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(e)})),0===o.length)return tt();const s=Gt(i[0],o),a=e=>{$t(s,((n,r)=>{const i=ne(n,r);t.recordDroppedEvent(e,Jt(r),i)}))};return n.add((()=>e({body:Zt(s,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=function(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n]=t.split(":",2),o=parseInt(e,10),s=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))i[t]=r+s;else i.all=r+s}else s?i.all=r+Qt(s,r):429===e&&(i.all=r+6e4);return i}(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof Ct)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("Skipped sending event because buffer is full."),a("queue_overflow"),tt();throw t}))},flush:t=>n.drain(t)}}function ne(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}const re=m.n2;let ie=0;function oe(){return ie>0}function se(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(I(t))return t}catch(e){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((t=>se(t,e)));return t.apply(this,i)}catch(t){throw ie++,setTimeout((()=>{ie--})),Rt((n=>{n.addEventProcessor((t=>(e.mechanism&&($(t,void 0,void 0),q(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),yt(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}T(r,t),x(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}const ae="7";function ce(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function ue(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${ce(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return n={sentry_key:t.publicKey,sentry_version:ae,...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}(t,r)}`}const le=[];function de(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"==typeof n?H(n(e)):e;const i=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(r),o=i.findIndex((t=>"Debug"===t.name));if(-1!==o){const[t]=i.splice(o,1);i.push(t)}return i}function he(t,e){e[t.name]=t,-1===le.indexOf(t.name)&&(t.setupOnce(st,ht),le.push(t.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(`Integration installed: ${t.name}`))}function pe(t,e,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=t,s={...e,event_id:e.event_id||n.event_id||F(),timestamp:e.timestamp||(0,X.yW)()},a=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=w(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=w(s.value,o));const a=t.request;a&&a.url&&(a.url=w(a.url,o))}(s,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(s,a),function(t,e){const n=m.n2._sentryDebugIds;if(!n)return;const r=Object.keys(n).reduce(((t,r)=>{const i=e(r);for(const e of i)if(e.abs_path){t[e.abs_path]=n[r];break}return t}),{}),i=new Set;try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.abs_path&&i.add(t.abs_path)}))}))}catch(t){}t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const o=t.debug_meta.images;i.forEach((t=>{r[t]&&o.push({type:"sourcemap",code_file:t,debug_id:r[t]})}))}(s,t.stackParser);let c=r;n.captureContext&&(c=it.clone(c).update(n.captureContext));let u=tt(s);if(c){if(c.getAttachments){const t=[...n.attachments||[],...c.getAttachments()];t.length&&(n.attachments=t)}u=c.applyToEvent(s,n)}return u.then((t=>"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:zt(t.data,e,n)}})))},...t.user&&{user:zt(t.user,e,n)},...t.contexts&&{contexts:zt(t.contexts,e,n)},...t.extra&&{extra:zt(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=zt(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=zt(t.data,e,n)),t)))),r}(t,i,o):t))}const fe="Not capturing exception because it's already been captured.";class _e{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(t){if(_e.prototype.__init.call(this),_e.prototype.__init2.call(this),_e.prototype.__init3.call(this),_e.prototype.__init4.call(this),this._options=t,t.dsn){this._dsn=Mt(t.dsn);const e=ue(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("No DSN provided, client will not do anything.")}captureException(t,e,n){if(Z(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(fe));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let i=n&&n.event_id;const o=d(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(o.then((t=>this._captureEvent(t,n,r))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&Z(e.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(fe));let r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((t=>{r=t}))),r}captureSession(t){this._isEnabled()?"string"!=typeof t.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),rt(t,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t)))):tt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(t){const e={};return t.forEach((t=>{t&&he(t,e)})),e}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){he(t,this._integrations)}sendEvent(t,e={}){if(this._dsn){let n=function(t,e,n,r){const i=Kt(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const s=Vt(t,i,r,e);return delete t.sdkProcessingMetadata,Gt(s,[[{type:o},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=Yt(n,Ht(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(n)}}sendSession(t){if(this._dsn){const e=function(t,e,n,r){const i=Kt(n);return Gt({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:Nt(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(t,e){let n=!1,r=!1;const i=e.exception&&e.exception.values;if(i){r=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(rt(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new nt((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(t,e,n){const r=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),pe(r,t,e,n)}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=t;"log"===e.logLevel?B.log(e.message):B.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:i}=r;if(!this._isEnabled())return et(new Ct("SDK not enabled, will not capture event.","log"));const o=ye(t),s=me(t),a=t.type||"error",c=`before send for type \`${a}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),et(new Ct(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u="replay_event"===a?"replay":a;return this._prepareEvent(t,e,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new Ct("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const i=function(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;return me(e)&&r?r(e,n):ye(e)&&i?i(e,n):e}(r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(f(t))return t.then((t=>{if(!h(t)&&null!==t)throw new Ct(n);return t}),(t=>{throw new Ct(`${e} rejected with ${t}`)}));if(!h(t)&&null!==t)throw new Ct(n);return t}(i,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,t),new Ct(`${c} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);const s=r.transaction_info;if(o&&s&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...s,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof Ct)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new Ct(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){this._transport&&this._dsn?this._transport.send(t).then(null,(t=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("Error while sending event:",t)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function me(t){return void 0===t.type}function ye(t){return"transaction"===t.type}var ge=n(6267);function ve(t,e){const n=we(t,e),r={type:e&&e.name,value:ke(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function be(t,e){return{exception:{values:[ve(t,e)]}}}function we(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Se.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}const Se=/Minified React error #\d+;/i;function ke(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Ee(t,e,n,r){const i=Te(t,e,n&&n.syntheticException||void 0,r);return q(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),tt(i)}function xe(t,e,n="info",r,i){const o=Ie(t,e,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),tt(o)}function Te(t,e,n,r,i){let o;if(c(e)&&e.error)return be(t,e.error);if(u(e)||a(e,"DOMException")){const i=e;if("stack"in e)o=be(t,e);else{const e=i.name||(u(i)?"DOMError":"DOMException"),s=i.message?`${e}: ${i.message}`:e;o=Ie(t,s,n,r),$(o,s)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return s(e)?be(t,e):h(e)||p(e)?(o=function(t,e,n,r){const i=ht().getClient(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:p(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${D(e)}`}]},extra:{__serialized__:Bt(e,o)}};if(n){const e=we(t,n);e.length&&(s.exception.values[0].stacktrace={frames:e})}return s}(t,e,n,i),q(o,{synthetic:!0}),o):(o=Ie(t,e,n,r),$(o,`${e}`,void 0),q(o,{synthetic:!0}),o)}function Ie(t,e,n,r){const i={message:e};if(r&&n){const r=we(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}return i}const Re=(0,m.Rf)();function Oe(){if(!("fetch"in Re))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function Ce(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const De=(0,m.Rf)(),Ne={},Ae={};function Me(t,e){Ne[t]=Ne[t]||[],Ne[t].push(e),function(t){if(!Ae[t])switch(Ae[t]=!0,t){case"console":"console"in De&&j.forEach((function(t){t in De.console&&E(De.console,t,(function(e){return function(...n){Ue("console",{args:n,level:t}),e&&e.apply(De.console,n)}}))}));break;case"dom":!function(){if(!("document"in De))return;const t=Ue.bind(null,"dom"),e=Ge(t,!0);De.document.addEventListener("click",e,!1),De.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=De[e]&&De[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(E(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){const r=Ge(t);s.handler=r,e.call(this,n,r,i)}s.refCount++}catch(t){}return e.call(this,n,r,i)}})),E(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in De))return;const t=XMLHttpRequest.prototype;E(t,"open",(function(t){return function(...e){const n=this,r=e[1],i=n.__sentry_xhr__={method:l(e[0])?e[0].toUpperCase():e[0],url:e[1]};l(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const o=function(){if(4===n.readyState){try{i.status_code=n.status}catch(t){}Ue("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?E(n,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(n,e)}})):n.addEventListener("readystatechange",o),t.apply(n,e)}})),E(t,"send",(function(t){return function(...e){return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),Ue("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":(function(){if(!Oe())return!1;if(Ce(Re.fetch))return!0;let t=!1;const e=Re.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Ce(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&E(De,"fetch",(function(t){return function(...e){const n={args:e,fetchData:{method:Le(e),url:je(e)},startTimestamp:Date.now()};return Ue("fetch",{...n}),t.apply(De,e).then((t=>(Ue("fetch",{...n,endTimestamp:Date.now(),response:t}),t)),(t=>{throw Ue("fetch",{...n,endTimestamp:Date.now(),error:t}),t}))}}));break;case"history":!function(){if(!function(){const t=Re.chrome,e=t&&t.app&&t.app.runtime,n="history"in Re&&!!Re.history.pushState&&!!Re.history.replaceState;return!e&&n}())return;const t=De.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Pe,e=String(n);Pe=e,Ue("history",{from:t,to:e})}return t.apply(this,e)}}De.onpopstate=function(...e){const n=De.location.href,r=Pe;if(Pe=n,Ue("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},E(De.history,"pushState",e),E(De.history,"replaceState",e)}();break;case"error":Ye=De.onerror,De.onerror=function(t,e,n,r,i){return Ue("error",{column:r,error:i,line:n,msg:t,url:e}),!!Ye&&Ye.apply(this,arguments)};break;case"unhandledrejection":$e=De.onunhandledrejection,De.onunhandledrejection=function(t){return Ue("unhandledrejection",t),!$e||$e.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("unknown instrumentation type:",t)}}(t)}function Ue(t,e){if(t&&Ne[t])for(const n of Ne[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Pt(n)}\nError:`,e)}}function Le(t=[]){return"Request"in De&&_(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function je(t=[]){return"string"==typeof t[0]?t[0]:"Request"in De&&_(t[0],Request)?t[0].url:String(t[0])}let Pe;const ze=1e3;let Be,Fe;function Ge(t,e=!1){return n=>{if(!n||Fe===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===Be||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(Fe,n))&&(t({event:n,name:r,global:e}),Fe=n),clearTimeout(Be),Be=De.setTimeout((()=>{Be=void 0}),ze)}}let Ye=null,$e=null;const qe=["fatal","error","warning","log","info","debug"];function Ze(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}const He=1024,We="Breadcrumbs";class Je{static __initStatic(){this.id=We}__init(){this.name=Je.id}constructor(t){Je.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){var t;this.options.console&&Me("console",Ke),this.options.dom&&Me("dom",(t=this.options.dom,function(e){let n,r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>He&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn(`\`dom.maxStringLength\` cannot exceed ${He}, but a value of ${i} was configured. Sentry will use ${He} instead.`),i=He),"string"==typeof r&&(r=[r]);try{n=e.event.target?v(e.event.target,{keyAttrs:r,maxStringLength:i}):v(e.event,{keyAttrs:r,maxStringLength:i})}catch(t){n="<unknown>"}0!==n.length&&ht().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})})),this.options.xhr&&Me("xhr",Ve),this.options.fetch&&Me("fetch",Xe),this.options.history&&Me("history",Qe)}addSentryBreadcrumb(t){this.options.sentry&&ht().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Y(t)},{event:t})}}function Ke(t){for(let e=0;e<t.args.length;e++)if("ref=Ref<"===t.args[e]){t.args[e+1]="viewRef";break}const e={category:"console",data:{arguments:t.args,logger:"console"},level:(n=t.level,"warn"===n?"warning":qe.includes(n)?n:"log"),message:S(t.args," ")};var n;if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${S(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}ht().addBreadcrumb(e,{input:t.args,level:t.level})}function Ve(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:e,url:n,status_code:r,body:i}=t.xhr.__sentry_xhr__||{};ht().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:i})}}function Xe(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?ht().addBreadcrumb({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args}):ht().addBreadcrumb({category:"fetch",data:{...t.fetchData,status_code:t.response.status},type:"http"},{input:t.args,response:t.response})))}function Qe(t){let e=t.from,n=t.to;const r=Ze(re.location.href);let i=Ze(e);const o=Ze(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),ht().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}Je.__initStatic();class tn extends _e{constructor(t){const e=re.SENTRY_SDK_SOURCE||(0,ge.S)();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${e}:@sentry/browser`,version:mt}],version:mt},super(t),t.sendClientReports&&re.document&&re.document.addEventListener("visibilitychange",(()=>{"hidden"===re.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return Ee(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return xe(this._options.stackParser,t,e,n,this._options.attachStacktrace)}sendEvent(t,e){const n=this.getIntegrationById(We);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(t),super.sendEvent(t,e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("Sending outcomes:",t);const e=ue(this._dsn,this._options),n=(r=t,Gt((i=this._options.tunnel&&Nt(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:(0,X.yW)(),discarded_events:r}]]));var r,i;try{"[object Navigator]"===Object.prototype.toString.call(re&&re.navigator)&&"function"==typeof re.navigator.sendBeacon&&!this._options.transportOptions?re.navigator.sendBeacon.bind(re.navigator)(e,Zt(n)):this._sendEnvelope(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(t)}}}let en;function nn(t,e=function(){if(en)return en;if(Ce(re.fetch))return en=re.fetch.bind(re);const t=re.document;let e=re.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return en=e.bind(re)}()){return ee(t,(function(n){const r={body:n.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n.body.length<=65536,...t.fetchOptions};try{return e(t.url,r).then((t=>({statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return en=void 0,et(t)}}))}const rn=4;function on(t){return ee(t,(function(e){return new nt(((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===rn&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)}))}))}const sn="?";function an(t,e,n,r){const i={filename:t,abs_path:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const cn=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,un=/\((\S*)(?::(\d+))(?::(\d+))\)/,ln=[30,t=>{const e=cn.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=un.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=Sn(e[1]||sn,e[2]);return an(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],dn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,hn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,pn=[50,t=>{const e=dn.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=hn.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||sn;return[n,t]=Sn(n,t),an(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],fn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,_n=[40,t=>{const e=fn.exec(t);return e?an(e[2],e[1]||sn,+e[3],e[4]?+e[4]:void 0):void 0}],mn=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,yn=[10,t=>{const e=mn.exec(t);return e?an(e[2],e[3]||sn,+e[1]):void 0}],gn=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,vn=[20,t=>{const e=gn.exec(t);return e?an(e[5],e[3]||e[4]||sn,+e[1],+e[2]):void 0}],bn=[ln,pn,_n],wn=Lt(...bn),Sn=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:sn,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};class kn{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=kn.id}__init2(){this._installFunc={onerror:En,onunhandledrejection:xn}}constructor(t){kn.prototype.__init.call(this),kn.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}var e}}function En(){Me("error",(t=>{const[e,n,r]=Rn();if(!e.getIntegration(kn))return;const{msg:i,url:o,line:s,column:a,error:u}=t;if(oe()||u&&u.__sentry_own_request__)return;const d=void 0===u&&l(i)?function(t,e,n,r){let i=c(t)?t.message:t,o="Error";const s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(o=s[1],i=s[2]);return Tn({exception:{values:[{type:o,value:i}]}},e,n,r)}(i,o,s,a):Tn(Te(n,u||i,void 0,r,!1),o,s,a);d.level="error",In(e,u,d,"onerror")}))}function xn(){Me("unhandledrejection",(t=>{const[e,n,r]=Rn();if(!e.getIntegration(kn))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(oe()||i&&i.__sentry_own_request__)return!0;const o=d(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Te(n,i,void 0,r,!0);o.level="error",In(e,i,o,"onunhandledrejection")}))}function Tn(t,e,n,r){const i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=l(e)&&e.length>0?e:function(){try{return y.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:u,filename:h,function:"?",in_app:!0,lineno:d}),t}function In(t,e,n,r){q(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Rn(){const t=ht(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}kn.__initStatic();const On=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Cn{static __initStatic(){this.id="TryCatch"}__init(){this.name=Cn.id}constructor(t){Cn.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&E(re,"setTimeout",Dn),this._options.setInterval&&E(re,"setInterval",Dn),this._options.requestAnimationFrame&&E(re,"requestAnimationFrame",Nn),this._options.XMLHttpRequest&&"XMLHttpRequest"in re&&E(XMLHttpRequest.prototype,"send",An);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:On).forEach(Mn)}}function Dn(t){return function(...e){const n=e[0];return e[0]=se(n,{mechanism:{data:{function:Pt(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function Nn(t){return function(e){return t.apply(this,[se(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Pt(t)},handled:!0,type:"instrument"}})])}}function An(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&E(n,t,(function(e){const n={mechanism:{data:{function:t,handler:Pt(e)},handled:!0,type:"instrument"}},r=I(e);return r&&(n.mechanism.data.handler=Pt(r)),se(e,n)}))})),t.apply(this,e)}}function Mn(t){const e=re,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(E(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=se(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Pt(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.apply(this,[n,se(r,{mechanism:{data:{function:"addEventListener",handler:Pt(r),target:t},handled:!0,type:"instrument"}}),i])}})),E(n,"removeEventListener",(function(t){return function(e,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,i,r)}})))}Cn.__initStatic();class Un{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Un.id}constructor(t={}){Un.prototype.__init.call(this),this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){const t=ht().getClient();t&&st(((e,n)=>{const r=ht().getIntegration(Un);return r?function(t,e,n,r,i){if(!(r.exception&&r.exception.values&&i&&_(i.originalException,Error)))return r;const o=Ln(t,n,i.originalException,e);return r.exception.values=[...o,...r.exception.values],r}(t.getOptions().stackParser,r._key,r._limit,e,n):e}))}}function Ln(t,e,n,r,i=[]){if(!_(n[r],Error)||i.length+1>=e)return i;const o=ve(t,n[r]);return Ln(t,e,n[r],r,[o,...i])}Un.__initStatic();class jn{constructor(){jn.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=jn.id}setupOnce(){st((t=>{if(ht().getIntegration(jn)){if(!re.navigator&&!re.location&&!re.document)return t;const e=t.request&&t.request.url||re.location&&re.location.href,{referrer:n}=re.document||{},{userAgent:r}=re.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:i};return{...t,request:o}}return t}))}}jn.__initStatic();class Pn{constructor(){Pn.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Pn.id}setupOnce(t,e){const n=t=>{if(t.type)return t;const n=e().getIntegration(Pn);if(n){try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Bn(t,e)&&!!zn(t,e))))}(t,e)||!!function(t,e){const n=Fn(e),r=Fn(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Bn(t,e)&&!!zn(t,e)))}(t,e))}(t,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return n._previousEvent=t}return n._previousEvent=t}return t};n.id=this.name,t(n)}}function zn(t,e){let n=Gn(t),r=Gn(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function Bn(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function Fn(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Gn(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}Pn.__initStatic();const Yn=[new J,new U,new Cn,new Je,new kn,new Un,new Pn,new jn];function $n(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=Yn),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),re.SENTRY_RELEASE&&re.SENTRY_RELEASE.id&&(t.release=re.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(n=t.stackParser||wn,Array.isArray(n)?Lt(...n):n),integrations:de(t),transport:t.transport||(Oe()?nn:on)};var n;!function(t,e){!0===e.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?B.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=ht(),r=n.getScope();r&&r.update(e.initialScope);const i=new t(e);n.bindClient(i)}(tn,e),t.autoSessionTracking&&function(){if(void 0===re.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const t=ht();t.captureSession&&(Xn(t),Me("history",(({from:t,to:e})=>{void 0!==t&&t!==e&&Xn(ht())})))}()}function qn(t={},e=ht()){if(!re.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("Global document not defined in showReportDialog call"));const{client:n,scope:r}=e.getStackTop(),i=t.dsn||n&&n.getDsn();if(!i)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("DSN not configured for showReportDialog call"));r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());const o=re.document.createElement("script");o.async=!0,o.src=function(t,e){const n=Mt(t),r=`${ce(n)}embed/error-page/`;let i=`dsn=${Nt(n)}`;for(const t in e)if("dsn"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${i}`}(i,t),t.onLoad&&(o.onload=t.onLoad);const s=re.document.head||re.document.body;s?s.appendChild(o):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("Not injecting report dialog. No injection point found in HTML")}function Zn(){return ht().lastEventId()}function Hn(){}function Wn(t){t()}function Jn(t){const e=ht().getClient();return e?e.flush(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Cannot flush events. No client defined."),tt(!1))}function Kn(t){const e=ht().getClient();return e?e.close(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("Cannot flush events and disable SDK. No client defined."),tt(!1))}function Vn(t){return se(t)()}function Xn(t){t.startSession({ignoreDuration:!0}),t.captureSession()}const Qn=m.n2,tr="sentryReplaySession",er="replay_event",nr="Unable to send Replay",rr=3e5,ir=rr,or=36e5,sr=5e3,ar=3;var cr;function ur(t){const e=null==t?void 0:t.host;return Boolean(e&&e.shadowRoot&&e.shadowRoot===t)}function lr({maskInputOptions:t,tagName:e,type:n}){return t[e.toLowerCase()]||t[n]||"input"===e&&!n&&t.text}function dr({input:t,maskInputSelector:e,unmaskInputSelector:n,maskInputOptions:r,tagName:i,type:o,value:s,maskInputFn:a}){let c=s||"";return n&&t.matches(n)||(lr({maskInputOptions:r,tagName:i,type:o})||e&&t.matches(e))&&(c=a?a(c):"*".repeat(c.length)),c}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(cr||(cr={}));const hr="__rrweb_original__";let pr=1;const fr=new RegExp("[^a-z0-9-_:]"),_r=-2;function mr(t){return t?t.replace(/[\S]/g,"*"):""}function yr(t){try{const e=t.rules||t.cssRules;return e?Array.from(e).map(gr).join(""):null}catch(t){return null}}function gr(t){let e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=yr(t.styleSheet)||e}catch(t){}return e}let vr,br;const wr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Sr=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,kr=/^(data:)([^,]*),(.*)/i;function Er(t,e){return(t||"").replace(wr,((t,n,r,i,o,s)=>{const a=r||o||s,c=n||i||"";if(!a)return t;if(!Sr.test(a))return`url(${c}${a}${c})`;if(kr.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+a}${c})`;const u=e.split("/"),l=a.split("/");u.pop();for(const t of l)"."!==t&&(".."===t?u.pop():u.push(t));return`url(${c}${u.join("/")}${c})`}))}const xr=/^[^ \t\n\r\u000c]+/,Tr=/^[, \t\n\r\u000c]+/;function Ir(t,e){if(!e||""===e.trim())return e;const n=t.createElement("a");return n.href=e,n.href}function Rr(){const t=document.createElement("a");return t.href="",t.href}function Or(t,e,n,r,i,o){return r?"src"===n||"href"===n||"xlink:href"===n&&"#"!==r[0]?Ir(t,r):"background"!==n||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;let n=0;function r(t){let r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(Tr),!(n>=e.length);){let o=r(xr);if(","===o.slice(-1))o=Ir(t,o.substring(0,o.length-1)),i.push(o);else{let r="";o=Ir(t,o);let s=!1;for(;;){let t=e.charAt(n);if(""===t){i.push((o+r).trim());break}if(s)")"===t&&(s=!1);else{if(","===t){n+=1,i.push((o+r).trim());break}"("===t&&(s=!0)}r+=t,n+=1}}}return i.join(", ")}(t,r):"style"===n?Er(r,Rr()):"object"===e&&"data"===n?Ir(t,r):i&&["placeholder","title","aria-label"].indexOf(n)>-1?o?o(r):mr(r):r:Ir(t,r):r}function Cr(t,e,n,r,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Cr(t.parentNode,e,n,r,i);if(r&&(t.matches(r)||t.closest(r)))return!1;if(i)return!0;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){const r=t.classList[n];if(e.test(r))return!0}return!(!n||!t.matches(n))||Cr(t.parentNode,e,n,r,i)}function Dr(t){return null==t?"":t.toLowerCase()}function Nr(t,e){const{doc:n,map:r,blockClass:i,blockSelector:o,unblockSelector:s,maskTextClass:a,maskTextSelector:c,unmaskTextSelector:u,skipChild:l=!1,inlineStylesheet:d=!0,maskInputSelector:h,unmaskInputSelector:p,maskAllText:f,maskInputOptions:_={},maskTextFn:m,maskInputFn:y,slimDOMOptions:g,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:E=5e3,keepIframeSrcFn:x=(()=>!1)}=e;let{preserveWhiteSpace:T=!0}=e;const I=function(t,e){var n;const{doc:r,blockClass:i,blockSelector:o,unblockSelector:s,maskTextClass:a,maskTextSelector:c,unmaskTextSelector:u,inlineStylesheet:l,maskInputSelector:d,unmaskInputSelector:h,maskAllText:p,maskInputOptions:f={},maskTextFn:_,maskInputFn:m,dataURLOptions:y={},inlineImages:g,recordCanvas:v,keepIframeSrcFn:b}=e;let w;if(r.__sn){const t=r.__sn.id;w=1===t?void 0:t}switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:cr.Document,childNodes:[],compatMode:t.compatMode,rootId:w}:{type:cr.Document,childNodes:[],rootId:w};case t.DOCUMENT_TYPE_NODE:return{type:cr.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:const e=function(t,e,n,r){if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){const r=t.classList[n];if(e.test(r))return!0}return!!n&&t.matches(n)}(t,i,o,s),E=function(t){if(t instanceof HTMLFormElement)return"form";const e=t.tagName.toLowerCase().trim();return fr.test(e)?"div":e}(t);let x={};for(const{name:e,value:n}of Array.from(t.attributes))Ar(E,e)||(x[e]=Or(r,E,e,n,p,_));if("link"===E&&l){const e=Array.from(r.styleSheets).find((e=>e.href===t.href));let n=null;e&&(n=yr(e)),n&&(delete x.rel,delete x.href,x._cssText=Er(n,e.href))}if("style"===E&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=yr(t.sheet);e&&(x._cssText=Er(e,Rr()))}if("input"===E||"textarea"===E||"select"===E){const e=t.value;"radio"!==x.type&&"checkbox"!==x.type&&"submit"!==x.type&&"button"!==x.type&&e?x.value=dr({input:t,type:x.type,tagName:E,value:e,maskInputSelector:d,unmaskInputSelector:h,maskInputOptions:f,maskInputFn:m}):t.checked&&(x.checked=t.checked)}if("option"===E&&(t.selected&&!f.select?x.selected=!0:delete x.selected),"canvas"===E&&v)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const i=e.getImageData,o=hr in i?i[hr]:i;if(new Uint32Array(o.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((t=>0!==t)))return!1}return!0})(t)||(x.rr_dataURL=t.toDataURL(y.type,y.quality));else if(!("__context"in t)){const e=t.toDataURL(y.type,y.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height,e!==n.toDataURL(y.type,y.quality)&&(x.rr_dataURL=e)}if("img"===E&&g){vr||(vr=r.createElement("canvas"),br=vr.getContext("2d"));const e=t,n=e.crossOrigin;e.crossOrigin="anonymous";const i=()=>{try{vr.width=e.naturalWidth,vr.height=e.naturalHeight,br.drawImage(e,0,0),x.rr_dataURL=vr.toDataURL(y.type,y.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}n?x.crossOrigin=n:delete x.crossOrigin};e.complete&&0!==e.naturalWidth?i():e.onload=i}if("audio"!==E&&"video"!==E||(x.rr_mediaState=t.paused?"paused":"played",x.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(x.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(x.rr_scrollTop=t.scrollTop),e){const{width:e,height:n}=t.getBoundingClientRect();x={class:x.class,rr_width:`${e}px`,rr_height:`${n}px`}}return"iframe"!==E||b(x.src)||(t.contentDocument||(x.rr_src=x.src),delete x.src),{type:cr.Element,tagName:E,attributes:x,childNodes:[],isSVG:(k=t,Boolean("svg"===k.tagName||k.ownerSVGElement)||void 0),needBlock:e,rootId:w};case t.TEXT_NODE:const T=t.parentNode&&t.parentNode.tagName;let I=t.textContent;const R="STYLE"===T||void 0,O="SCRIPT"===T||void 0;if(R&&I){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(I=(S=t.parentNode.sheet).cssRules?Array.from(S.cssRules).map((t=>t.cssText||"")).join(""):"")}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}I=Er(I,Rr())}return O&&(I="SCRIPT_PLACEHOLDER"),"TEXTAREA"===T&&I?I="":!R&&!O&&Cr(t,a,c,u,p)&&I&&(I=_?_(I):mr(I)),{type:cr.Text,textContent:I||"",isStyle:R,rootId:w};case t.CDATA_SECTION_NODE:return{type:cr.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:cr.Comment,textContent:t.textContent||"",rootId:w};default:return!1}var S,k}(t,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,maskTextClass:a,maskTextSelector:c,unmaskTextSelector:u,inlineStylesheet:d,maskInputSelector:h,unmaskInputSelector:p,maskAllText:f,maskInputOptions:_,maskTextFn:m,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:w,keepIframeSrcFn:x});if(!I)return console.warn(t,"not serialized"),null;let R;R="__sn"in t?t.__sn.id:!function(t,e){if(e.comment&&t.type===cr.Comment)return!0;if(t.type===cr.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Dr(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Dr(t.attributes.name)||"icon"===Dr(t.attributes.rel)||"apple-touch-icon"===Dr(t.attributes.rel)||"shortcut icon"===Dr(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Dr(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Dr(t.attributes.property).match(/^(og|twitter|fb):/)||Dr(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Dr(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Dr(t.attributes.name)||"googlebot"===Dr(t.attributes.name)||"bingbot"===Dr(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Dr(t.attributes.name)||"generator"===Dr(t.attributes.name)||"framework"===Dr(t.attributes.name)||"publisher"===Dr(t.attributes.name)||"progid"===Dr(t.attributes.name)||Dr(t.attributes.property).match(/^article:/)||Dr(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Dr(t.attributes.name)||"yandex-verification"===Dr(t.attributes.name)||"csrf-token"===Dr(t.attributes.name)||"p:domain_verify"===Dr(t.attributes.name)||"verify-v1"===Dr(t.attributes.name)||"verification"===Dr(t.attributes.name)||"shopify-checkout-api-token"===Dr(t.attributes.name)))return!0}}return!1}(I,g)&&(T||I.type!==cr.Text||I.isStyle||I.textContent.replace(/^\s+|\s+$/gm,"").length)?pr++:_r;const O=Object.assign(I,{id:R});if(t.__sn=O,R===_r)return null;r[R]=t,S&&S(t);let C=!l;if(O.type===cr.Element&&(C=C&&!O.needBlock,delete O.needBlock,t.shadowRoot&&(O.isShadowHost=!0)),(O.type===cr.Document||O.type===cr.Element)&&C){g.headWhitespace&&I.type===cr.Element&&"head"===I.tagName&&(T=!1);const e={doc:n,map:r,blockClass:i,blockSelector:o,unblockSelector:s,maskTextClass:a,maskTextSelector:c,unmaskTextSelector:u,skipChild:l,inlineStylesheet:d,maskInputSelector:h,unmaskInputSelector:p,maskAllText:f,maskInputOptions:_,maskTextFn:m,maskInputFn:y,slimDOMOptions:g,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:T,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:E,keepIframeSrcFn:x};for(const n of Array.from(t.childNodes)){const t=Nr(n,e);t&&O.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const t=Nr(n,e);t&&(t.isShadow=!0,O.childNodes.push(t))}}return t.parentNode&&ur(t.parentNode)&&(O.isShadow=!0),O.type===cr.Element&&"iframe"===O.tagName&&function(t,e,n){const r=t.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch(t){return}if("complete"!==i){const r=setTimeout((()=>{o||(e(),o=!0)}),n);return void t.addEventListener("load",(()=>{clearTimeout(r),o=!0,e()}))}const s="about:blank";r.location.href===s&&t.src!==s&&""!==t.src?t.addEventListener("load",e):setTimeout(e,0)}(t,(()=>{const e=t.contentDocument;if(e&&k){const n=Nr(e,{doc:e,map:r,blockClass:i,blockSelector:o,unblockSelector:s,maskTextClass:a,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputSelector:h,unmaskInputSelector:p,maskAllText:f,maskInputOptions:_,maskTextFn:m,maskInputFn:y,slimDOMOptions:g,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:T,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:E,keepIframeSrcFn:x});n&&k(t,n)}}),E),O}function Ar(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}var Mr,Ur,Lr,jr,Pr,zr;function Br(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"}(Mr||(Mr={})),function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration"}(Ur||(Ur={})),function(t){t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel"}(Lr||(Lr={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(jr||(jr={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(Pr||(Pr={})),function(t){t.Start="start",t.Pause="pause",t.Resume="resume",t.Resize="resize",t.Finish="finish",t.FullsnapshotRebuilded="fullsnapshot-rebuilded",t.LoadStylesheetStart="load-stylesheet-start",t.LoadStylesheetEnd="load-stylesheet-end",t.SkipStart="skip-start",t.SkipEnd="skip-end",t.MouseInteraction="mouse-interaction",t.EventCast="event-cast",t.CustomEvent="custom-event",t.Flush="flush",t.StateChange="state-change",t.PlayBack="play-back"}(zr||(zr={}));const Fr="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 Gr={map:{},getId:()=>(console.error(Fr),-1),getNode:()=>(console.error(Fr),null),removeNodeFromMap(){console.error(Fr)},has:()=>(console.error(Fr),!1),reset(){console.error(Fr)}};function Yr(t,e,n={}){let r=null,i=0;return function(o){let s=Date.now();i||!1!==n.leading||(i=s);let a=e-(s-i),c=this,u=arguments;a<=0||a>e?(r&&(clearTimeout(r),r=null),i=s,t.apply(c,u)):r||!1===n.trailing||(r=setTimeout((()=>{i=!1===n.leading?0:Date.now(),r=null,t.apply(c,u)}),a))}}function $r(t,e,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set(t){setTimeout((()=>{n.set.call(this,t)}),0),o&&o.set&&o.set.call(this,t)}}),()=>$r(t,e,o||{},!0)}function qr(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch(t){return()=>{}}}function Zr(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Hr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Wr(t,e,n,r){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){let i=!1;const o=r&&t.matches(r);return"string"==typeof e?i=void 0!==t.closest?!o&&null!==t.closest("."+e):!o&&t.classList.contains(e):!o&&t.classList.forEach((t=>{e.test(t)&&(i=!0)})),!i&&n&&(i=t.matches(n)),!o&&i||Wr(t.parentNode,e,n,r)}return t.nodeType,t.TEXT_NODE,Wr(t.parentNode,e,n,r)}function Jr(t){return"__sn"in t&&t.__sn.id===_r}function Kr(t,e){if(ur(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||Kr(t.parentNode,e))}function Vr(t){return Boolean(t.changedTouches)}function Xr(t){return"__sn"in t&&t.__sn.type===cr.Element&&"iframe"===t.__sn.tagName}function Qr(t){return Boolean(null==t?void 0:t.shadowRoot)}function ti(t){return"__ln"in t}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Gr=new Proxy(Gr,{get:(t,e,n)=>("map"===e&&console.error(Fr),Reflect.get(t,e,n))}));class ei{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=(null==e?void 0:e.next)||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&ti(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&ti(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}}const ni=(t,e)=>`${t}@${e}`;function ri(t){return"__sn"in t}class ii{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new ei,n=t=>{let e=t,n=_r;for(;n===_r;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},r=r=>{var i,o,s,a,c;const u=r.getRootNode?null===(i=r.getRootNode())||void 0===i?void 0:i.host:null;let l=u;for(;null===(s=null===(o=null==l?void 0:l.getRootNode)||void 0===o?void 0:o.call(l))||void 0===s?void 0:s.host;)l=(null===(c=null===(a=null==l?void 0:l.getRootNode)||void 0===a?void 0:a.call(l))||void 0===c?void 0:c.host)||null;const d=!(this.doc.contains(r)||l&&this.doc.contains(l));if(!r.parentNode||d)return;const h=ur(r.parentNode)?this.mirror.getId(u):this.mirror.getId(r.parentNode),p=n(r);if(-1===h||-1===p)return e.addNode(r);let f=Nr(r,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{Xr(t)&&this.iframeManager.addIframe(t),Qr(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,document)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)}});f&&t.push({parentId:h,nextId:p,node:f})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)si(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||r(t);for(const t of this.addedSet)ai(this.droppedSet,t)||si(this.removes,t,this.mirror)?ai(this.movedSet,t)?r(t):this.droppedSet.add(t):r(t);let i=null;for(;e.length;){let t=null;if(i){const e=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==e&&-1!==r&&(t=i)}if(!t)for(let r=e.length-1;r>=0;r--){const i=e.get(r);if(i){const e=this.mirror.getId(i.value.parentNode),r=n(i.value);if(-1!==e&&-1!==r){t=i;break}}}if(!t){for(;e.head;)e.removeNode(e.head.value);break}i=t.previous,e.removeNode(t.value),r(t.value)}const o={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>({id:this.mirror.getId(t.node),attributes:t.attributes}))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=t=>{if(!Jr(t.target))switch(t.type){case"characterData":{const e=t.target.textContent;Wr(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||e===t.oldValue||this.texts.push({value:Cr(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=t.target.getAttribute(t.attributeName);if("value"===t.attributeName&&(n=dr({input:e,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),Wr(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===t.oldValue)return;let r=this.attributes.find((e=>e.node===t.target));if(r||(r={node:t.target,attributes:{}},this.attributes.push(r)),"style"===t.attributeName){const n=this.doc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue),void 0!==r.attributes.style&&null!==r.attributes.style||(r.attributes.style={});try{const t=r.attributes.style;for(const r of Array.from(e.style)){const i=e.style.getPropertyValue(r),o=e.style.getPropertyPriority(r);i===n.style.getPropertyValue(r)&&o===n.style.getPropertyPriority(r)||(t[r]=""===o?i:[i,o])}for(const r of Array.from(n.style))""===e.style.getPropertyValue(r)&&(t[r]=!1)}catch(t){console.warn("[rrweb] Error when parsing update to style attribute:",t)}}else r.attributes[t.attributeName]=Or(this.doc,t.target.tagName,t.attributeName,n,this.maskAllText,this.maskTextFn);break}case"childList":t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=ur(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Wr(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||Jr(e)||(this.addedSet.has(e)?(oi(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||Kr(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[ni(n,r)]?oi(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!!ur(t.target)||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!e||!Wr(e,this.blockClass,this.blockSelector,this.unblockSelector)){if(ri(t)){if(Jr(t))return;this.movedSet.add(t);let n=null;e&&ri(e)&&(n=e.__sn.id),n&&(this.movedMap[ni(t.__sn.id,n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Wr(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach((t=>this.genAdds(t)))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach((e=>{this[e]=t[e]}))}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 oi(t,e){t.delete(e),e.childNodes.forEach((e=>oi(t,e)))}function si(t,e,n){const{parentNode:r}=e;if(!r)return!1;const i=n.getId(r);return!!t.some((t=>t.id===i))||si(t,r,n)}function ai(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||ai(t,n))}const ci=t=>(...e)=>{try{return t(...e)}catch(t){try{t.__rrweb__=!0}catch(t){}throw t}},ui=[];function li(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function di(t,e){var n,r;const i=new ii;ui.push(i),i.init(t);let o=window.MutationObserver||window.__rrMutationObserver;const s=null===(r=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");s&&window[s]&&(o=window[s]);const a=new o(ci(i.processMutations.bind(i)));return a.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function hi({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){const a=Yr((s=>{const a=li(s);if(!a||Wr(a,r,i,o))return;const c=n.getId(a);if(a===e){const n=e.scrollingElement||e.documentElement;ci(t)({id:c,x:n.scrollLeft,y:n.scrollTop})}else ci(t)({id:c,x:a.scrollLeft,y:a.scrollTop})}),s.scroll||100);return Br("scroll",ci(a),e)}function pi(t,e){const n=Object.assign({},t);return e||delete n.userTriggered,n}const fi=["INPUT","TEXTAREA","SELECT"],_i=new WeakMap;function mi(t){return function(t,e){if(gi("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||gi("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||gi("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||gi("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else{const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function yi(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};!function(t,e){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:o,viewportResizeCb:s,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:u,styleDeclarationCb:l,canvasMutationCb:d,fontCb:h}=t;t.mutationCb=(...t)=>{e.mutation&&e.mutation(...t),n(...t)},t.mousemoveCb=(...t)=>{e.mousemove&&e.mousemove(...t),r(...t)},t.mouseInteractionCb=(...t)=>{e.mouseInteraction&&e.mouseInteraction(...t),i(...t)},t.scrollCb=(...t)=>{e.scroll&&e.scroll(...t),o(...t)},t.viewportResizeCb=(...t)=>{e.viewportResize&&e.viewportResize(...t),s(...t)},t.inputCb=(...t)=>{e.input&&e.input(...t),a(...t)},t.mediaInteractionCb=(...t)=>{e.mediaInteaction&&e.mediaInteaction(...t),c(...t)},t.styleSheetRuleCb=(...t)=>{e.styleSheetRule&&e.styleSheetRule(...t),u(...t)},t.styleDeclarationCb=(...t)=>{e.styleDeclaration&&e.styleDeclaration(...t),l(...t)},t.canvasMutationCb=(...t)=>{e.canvasMutation&&e.canvasMutation(...t),d(...t)},t.fontCb=(...t)=>{e.font&&e.font(...t),h(...t)}}(t,e);const r=di(t,t.doc),i=function({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const i="number"==typeof e.mousemove?e.mousemove:50,o="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let s,a=[];const c=Yr((e=>{const n=Date.now()-s;ci(t)(a.map((t=>(t.timeOffset-=n,t))),e),a=[],s=null}),o),u=Yr((t=>{const e=li(t),{clientX:n,clientY:i}=Vr(t)?t.changedTouches[0]:t;s||(s=Date.now()),a.push({x:n,y:i,id:r.getId(e),timeOffset:Date.now()-s}),c("undefined"!=typeof DragEvent&&t instanceof DragEvent?Ur.Drag:t instanceof MouseEvent?Ur.MouseMove:Ur.TouchMove)}),i,{trailing:!1}),l=[Br("mousemove",ci(u),n),Br("touchmove",ci(u),n),Br("drag",ci(u),n)];return ci((()=>{l.forEach((t=>t()))}))}(t),o=function({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];return Object.keys(Lr).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t])).forEach((s=>{const a=s.toLowerCase(),u=ci((e=>s=>{const a=li(s);if(Wr(a,r,i,o))return;const c=Vr(s)?s.changedTouches[0]:s;if(!c)return;const u=n.getId(a),{clientX:l,clientY:d}=c;ci(t)({type:Lr[e],id:u,x:l,y:d})})(s));c.push(Br(a,u,e))})),ci((()=>{c.forEach((t=>t()))}))}(t),s=hi(t),a=function({viewportResizeCb:t}){let e=-1,n=-1;const r=Yr((()=>{const r=Zr(),i=Hr();e===r&&n===i||(ci(t)({width:Number(i),height:Number(r)}),e=r,n=i)}),200);return Br("resize",ci(r),window)}(t),c=function({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputSelector:c,unmaskInputSelector:u,maskInputOptions:l,maskInputFn:d,sampling:h,userTriggeredOnInput:p}){function f(t){let n=li(t);const h=t.isTrusted;if(n&&"OPTION"===n.tagName&&(n=n.parentElement),!n||!n.tagName||fi.indexOf(n.tagName)<0||Wr(n,r,i,o))return;const f=n.type;if(n.classList.contains(s)||a&&n.matches(a))return;let m=n.value,y=!1;"radio"===f||"checkbox"===f?y=n.checked:function({tagName:t,type:e,maskInputOptions:n,maskInputSelector:r}){return r||lr({maskInputOptions:n,tagName:t,type:e})}({maskInputOptions:l,maskInputSelector:c,tagName:n.tagName,type:f})&&(m=dr({input:n,maskInputOptions:l,maskInputSelector:c,unmaskInputSelector:u,tagName:n.tagName,type:f,value:m,maskInputFn:d})),_(n,ci(pi)({text:m,isChecked:y,userTriggered:h},p));const g=n.name;"radio"===f&&g&&y&&e.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach((t=>{t!==n&&_(t,ci(pi)({text:t.value,isChecked:!y,userTriggered:!1},p))}))}function _(e,r){const i=_i.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){_i.set(e,r);const i=n.getId(e);t(Object.assign(Object.assign({},r),{id:i}))}}const m=("last"===h.input?["change"]:["input","change"]).map((t=>Br(t,ci(f),e))),y=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),g=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return y&&y.set&&m.push(...g.map((t=>$r(t[0],t[1],{set(){ci(f)({target:this})}})))),ci((()=>{m.forEach((t=>t()))}))}(t),u=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:i,sampling:o}){const s=s=>Yr(ci((o=>{const a=li(o);if(!a||Wr(a,e,n,r))return;const{currentTime:c,volume:u,muted:l}=a;t({type:s,id:i.getId(a),currentTime:c,volume:u,muted:l})})),o.media||500),a=[Br("play",s(0)),Br("pause",s(1)),Br("seeked",s(2)),Br("volumechange",s(3))];return ci((()=>{a.forEach((t=>t()))}))}(t),l=function({styleSheetRuleCb:t,mirror:e},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const r=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:ci(((n,r,i)=>{const[o,s]=i,a=e.getId(r.ownerNode);return-1!==a&&t({id:a,adds:[{rule:o,index:s}]}),n.apply(r,i)}))});const i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:ci(((n,r,i)=>{const[o]=i,s=e.getId(r.ownerNode);return-1!==s&&t({id:s,removes:[{index:o}]}),n.apply(r,i)}))});const o={};vi("CSSGroupingRule")?o.CSSGroupingRule=n.CSSGroupingRule:(vi("CSSMediaRule")&&(o.CSSMediaRule=n.CSSMediaRule),vi("CSSConditionRule")&&(o.CSSConditionRule=n.CSSConditionRule),vi("CSSSupportsRule")&&(o.CSSSupportsRule=n.CSSSupportsRule));const s={};return Object.entries(o).forEach((([n,r])=>{s[n]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(s[n].insertRule,{apply:ci(((n,r,i)=>{const[o,s]=i,a=e.getId(r.parentStyleSheet.ownerNode);return-1!==a&&t({id:a,adds:[{rule:o,index:[...mi(r),s||0]}]}),n.apply(r,i)}))}),r.prototype.deleteRule=new Proxy(s[n].deleteRule,{apply:ci(((n,r,i)=>{const[o]=i,s=e.getId(r.parentStyleSheet.ownerNode);return-1!==s&&t({id:s,removes:[{index:[...mi(r),o]}]}),n.apply(r,i)}))})})),ci((()=>{n.CSSStyleSheet.prototype.insertRule=r,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(o).forEach((([t,e])=>{e.prototype.insertRule=s[t].insertRule,e.prototype.deleteRule=s[t].deleteRule}))}))}(t,{win:n}),d=function({styleDeclarationCb:t,mirror:e},{win:n}){const r=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(r,{apply:ci(((n,r,i)=>{var o,s;const[a,c,u]=i,l=e.getId(null===(s=null===(o=r.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return-1!==l&&t({id:l,set:{property:a,value:c,priority:u},index:mi(r.parentRule)}),n.apply(r,i)}))});const i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:ci(((n,r,i)=>{var o,s;const[a]=i,c=e.getId(null===(s=null===(o=r.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return-1!==c&&t({id:c,remove:{property:a},index:mi(r.parentRule)}),n.apply(r,i)}))}),ci((()=>{n.CSSStyleDeclaration.prototype.setProperty=r,n.CSSStyleDeclaration.prototype.removeProperty=i}))}(t,{win:n}),h=t.collectFonts?function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(t,e,n){const r=new o(t,e,n);return i.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const s=qr(e.fonts,"add",(function(e){return function(n){return setTimeout((()=>{const e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(s),ci((()=>{r.forEach((t=>t()))}))}(t):()=>{},p=[];for(const e of t.plugins)p.push(e.observer(e.callback,n,e.options));return ci((()=>{ui.forEach((t=>t.reset())),r.disconnect(),i(),o(),s(),a(),c(),u();try{l(),d()}catch(t){}h(),p.forEach((t=>t()))}))}function gi(t){return void 0!==window[t]}function vi(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class bi{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,t)}}class wi{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const e=this;this.restorePatches.push(qr(HTMLElement.prototype,"attachShadow",(function(t){return function(){const n=t.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(t,e){di(Object.assign(Object.assign({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),hi(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const e=this;this.restorePatches.push(qr(t.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const r=n.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,t.contentDocument),r}})))}}reset(){this.restorePatches.forEach((t=>t()))}}for(var Si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ki="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ei=0;Ei<Si.length;Ei++)ki[Si.charCodeAt(Ei)]=Ei;var xi=function(t){var e,n=new Uint8Array(t),r=n.length,i="";for(e=0;e<r;e+=3)i+=Si[n[e]>>2],i+=Si[(3&n[e])<<4|n[e+1]>>4],i+=Si[(15&n[e+1])<<2|n[e+2]>>6],i+=Si[63&n[e+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const Ti=new Map,Ii=(t,e,n)=>{if(!t||!Ci(t,e)&&"object"!=typeof t)return;const r=function(t,e){let n=Ti.get(t);return n||(n=new Map,Ti.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name);let i=r.indexOf(t);return-1===i&&(i=r.length,r.push(t)),i};function Ri(t,e,n){if(t instanceof Array)return t.map((t=>Ri(t,e,n)));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:xi(t)};if(t instanceof DataView)return{rr_type:t.constructor.name,args:[Ri(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}return t instanceof ImageData?{rr_type:t.constructor.name,args:[Ri(t.data,e,n),t.width,t.height]}:Ci(t,e)||"object"==typeof t?{rr_type:t.constructor.name,index:Ii(t,e,n)}:t}const Oi=(t,e,n)=>[...t].map((t=>Ri(t,e,n))),Ci=(t,e)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((t=>"function"==typeof e[t]));return Boolean(n.find((n=>t instanceof e[n])))};function Di(t,e,n,r,i,o,s,a){const c=[],u=Object.getOwnPropertyNames(t);for(const l of u)try{if("function"!=typeof t[l])continue;const u=qr(t,l,(function(c){return function(...u){const d=c.apply(this,u);if(Ii(d,a,t),!Wr(this.canvas,r,o,i)){s.getId(this.canvas);const r=Oi([...u],a,t),i={type:e,property:l,args:r};n(this.canvas,i)}return d}}));c.push(u)}catch(r){const i=$r(t,l,{set(t){n(this.canvas,{type:e,property:l,args:[t],setter:!0})}});c.push(i)}return c}class Ni{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(t,e){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,!0===t.recordCanvas&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,e,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=function(t,e,n,r){const i=[];try{const o=qr(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(i,...o){return Wr(this,e,n,r)||"__context"in this||(this.__context=i),t.apply(this,[i,...o])}}));i.push(o)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((t=>t()))}}(t,e,r,n),o=function(t,e,n,r,i,o){const s=[],a=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const o of a)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[o])continue;const a=qr(e.CanvasRenderingContext2D.prototype,o,(function(e){return function(...s){return Wr(this.canvas,n,i,r)||setTimeout((()=>{const e=[...s];if("drawImage"===o&&e[0]&&e[0]instanceof HTMLCanvasElement){const t=e[0],n=t.getContext("2d");let r=null==n?void 0:n.getImageData(0,0,t.width,t.height),i=null==r?void 0:r.data;e[0]=JSON.stringify(i)}t(this.canvas,{type:jr["2D"],property:o,args:e})}),0),e.apply(this,s)}}));s.push(a)}catch(n){const r=$r(e.CanvasRenderingContext2D.prototype,o,{set(e){t(this.canvas,{type:jr["2D"],property:o,args:[e],setter:!0})}});s.push(r)}return()=>{s.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,r,n,this.mirror),s=function(t,e,n,r,i,o){const s=[];return s.push(...Di(e.WebGLRenderingContext.prototype,jr.WebGL,t,n,r,i,o,e)),void 0!==e.WebGL2RenderingContext&&s.push(...Di(e.WebGL2RenderingContext.prototype,jr.WebGL2,t,n,r,i,o,e)),()=>{s.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,r,n,this.mirror);this.resetObservers=()=>{i(),o(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((t,e)=>{const n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;const r=n.map((t=>{const e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["type"]);return e})),{type:i}=n[0];this.mutationCb({id:e,type:i,commands:r}),this.pendingCanvasMutations.delete(t)}}function Ai(t){return Object.assign(Object.assign({},t),{timestamp:Date.now()})}let Mi,Ui;const Li={map:{},getId:t=>t&&t.__sn?t.__sn.id:-1,getNode(t){return this.map[t]||null},removeNodeFromMap(t){const e=t.__sn&&t.__sn.id;delete this.map[e],t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))},has(t){return this.map.hasOwnProperty(t)},reset(){this.map={}}};function ji(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskTextClass:u="rr-mask",maskTextSelector:l=null,maskInputSelector:d=null,unmaskTextSelector:h=null,unmaskInputSelector:p=null,inlineStylesheet:f=!0,maskAllText:_=!1,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskInputFn:v,maskTextFn:b,hooks:w,packFn:S,sampling:k={},mousemoveWait:E,recordCanvas:x=!1,userTriggeredOnInput:T=!1,collectFonts:I=!1,inlineImages:R=!1,plugins:O,keepIframeSrcFn:C=(()=>!1)}=t;if(!e)throw new Error("emit function is required");void 0!==E&&void 0===k.mousemove&&(k.mousemove=E);const D=!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,password:!0}:void 0!==y?y:{password:!0},N=!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 A;!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let M=0;Mi=(t,i)=>{var o;if(!(null===(o=ui[0])||void 0===o?void 0:o.isFrozen())||t.type===Mr.FullSnapshot||t.type===Mr.IncrementalSnapshot&&t.data.source===Ur.Mutation||ui.forEach((t=>t.unfreeze())),e((t=>{for(const e of O||[])e.eventProcessor&&(t=e.eventProcessor(t));return S&&(t=S(t)),t})(t),i),t.type===Mr.FullSnapshot)A=t,M=0;else if(t.type===Mr.IncrementalSnapshot){if(t.data.source===Ur.Mutation&&t.data.isAttachIframe)return;M++;const e=r&&M>=r,i=n&&t.timestamp-A.timestamp>n;(e||i)&&Ui(!0)}};const U=t=>{Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.Mutation},t)}))},L=t=>Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.Scroll},t)})),j=t=>Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.CanvasMutation},t)})),P=new bi({mutationCb:U}),z=new Ni({recordCanvas:x,mutationCb:j,win:window,blockClass:i,blockSelector:o,unblockSelector:s,mirror:Li}),B=new wi({mutationCb:U,scrollCb:L,bypassOptions:{blockClass:i,blockSelector:o,unblockSelector:s,maskTextClass:u,maskTextSelector:l,unmaskTextSelector:h,maskInputSelector:d,unmaskInputSelector:p,inlineStylesheet:f,maskAllText:_,maskInputOptions:D,maskTextFn:b,maskInputFn:v,recordCanvas:x,inlineImages:R,sampling:k,slimDOMOptions:N,iframeManager:P,canvasManager:z},mirror:Li});Ui=(t=!1)=>{var e,n,r,a;Mi(Ai({type:Mr.Meta,data:{href:window.location.href,width:Hr(),height:Zr()}}),t),ui.forEach((t=>t.lock()));const[c,m]=function(t,e){const{blockClass:n="rr-block",blockSelector:r=null,unblockSelector:i=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,unmaskTextSelector:a=null,inlineStylesheet:c=!0,inlineImages:u=!1,recordCanvas:l=!1,maskInputSelector:d=null,unmaskInputSelector:h=null,maskAllText:p=!1,maskAllInputs:f=!1,maskTextFn:_,maskInputFn:m,slimDOM:y=!1,dataURLOptions:g,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:S,keepIframeSrcFn:k=(()=>!1)}=e||{},E={};return[Nr(t,{doc:t,map:E,blockClass:n,blockSelector:r,unblockSelector:i,maskTextClass:o,maskTextSelector:s,unmaskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputSelector:d,unmaskInputSelector:h,maskAllText:p,maskInputOptions:!0===f?{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,password:!0}:!1===f?{password:!0}:f,maskTextFn:_,maskInputFn:m,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:g,inlineImages:u,recordCanvas:l,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:S,keepIframeSrcFn:k}),E]}(document,{blockClass:i,blockSelector:o,unblockSelector:s,maskTextClass:u,maskTextSelector:l,unmaskTextSelector:h,maskInputSelector:d,unmaskInputSelector:p,inlineStylesheet:f,maskAllText:_,maskAllInputs:D,maskTextFn:b,slimDOM:N,recordCanvas:x,inlineImages:R,onSerialize:t=>{Xr(t)&&P.addIframe(t),Qr(t)&&B.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{P.attachIframe(t,e),B.observeAttachShadow(t)},keepIframeSrcFn:C});if(!c)return console.warn("Failed to snapshot the document");Li.map=m,Mi(Ai({type:Mr.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(a=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===a?void 0:a.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),ui.forEach((t=>t.unlock()))};try{const t=[];t.push(Br("DOMContentLoaded",(()=>{Mi(Ai({type:Mr.DomContentLoaded,data:{}}))})));const e=t=>{var e;return ci(yi)({mutationCb:U,mousemoveCb:(t,e)=>Mi(Ai({type:Mr.IncrementalSnapshot,data:{source:e,positions:t}})),mouseInteractionCb:t=>Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.MouseInteraction},t)})),scrollCb:L,viewportResizeCb:t=>Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.ViewportResize},t)})),inputCb:t=>Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.Input},t)})),mediaInteractionCb:t=>Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.MediaInteraction},t)})),styleSheetRuleCb:t=>Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.StyleSheetRule},t)})),styleDeclarationCb:t=>Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.StyleDeclaration},t)})),canvasMutationCb:j,fontCb:t=>Mi(Ai({type:Mr.IncrementalSnapshot,data:Object.assign({source:Ur.Font},t)})),blockClass:i,ignoreClass:a,ignoreSelector:c,maskTextClass:u,maskTextSelector:l,unmaskTextSelector:h,maskInputSelector:d,unmaskInputSelector:p,maskInputOptions:D,inlineStylesheet:f,sampling:k,recordCanvas:x,inlineImages:R,userTriggeredOnInput:T,collectFonts:I,doc:t,maskAllText:_,maskInputFn:v,maskTextFn:b,blockSelector:o,unblockSelector:s,slimDOMOptions:N,mirror:Li,iframeManager:P,shadowDomManager:B,canvasManager:z,plugins:(null===(e=null==O?void 0:O.filter((t=>t.observer)))||void 0===e?void 0:e.map((t=>({observer:t.observer,options:t.options,callback:e=>Mi(Ai({type:Mr.Plugin,data:{plugin:t.name,payload:e}}))}))))||[]},w)};P.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{Ui(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():t.push(Br("load",(()=>{Mi(Ai({type:Mr.Load,data:{}})),n()}),window)),()=>{t.forEach((t=>t()))}}catch(t){console.warn(t)}}ji.addCustomEvent=(t,e)=>{if(!Mi)throw new Error("please add custom event after start recording");Mi(Ai({type:Mr.Custom,data:{tag:t,payload:e}}))},ji.freezePage=()=>{ui.forEach((t=>t.freeze()))},ji.takeFullSnapshot=t=>{if(!Ui)throw new Error("please take full snapshot after start recording");Ui(t)},ji.mirror=Li;const Pi=["name","type","startTime","transferSize","duration"];function zi(t){return function(e){return Pi.every((n=>t[n]===e[n]))}}const Bi='/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';class Fi{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}destroy(){this.events=[]}async addEvent(t,e){e?this.events=[t]:this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.events=[],t(JSON.stringify(e))}))}}class Gi{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const o=({data:e})=>{const s=e;if(s.method===t&&s.id===n){if(this._worker.removeEventListener("message",o),!s.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay]",s.response),void i(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class Yi{constructor(t){this._worker=new Gi(t),this.hasEvents=!1}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}async addEvent(t,e){return this.hasEvents=!0,e&&await this._clear(),this._sendEventToWorker(t)}finish(){return this._finishRequest()}_sendEventToWorker(t){return this._worker.postMessage("addEvent",JSON.stringify(t))}async _finishRequest(){const t=await this._worker.postMessage("finish");return this.hasEvents=!1,t}_clear(){return this._worker.postMessage("clear")}}class $i{constructor(t){this._fallback=new Fi,this._compression=new Yi(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}addEvent(t,e){return this._used.addEvent(t,e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t}=this._fallback,e=[];for(const n of t)e.push(this._compression.addEvent(n));this._used=this._compression;try{await Promise.all(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.warn("[Replay] Failed to add events when switching buffers.",t)}}}function qi(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function Zi(t,e,n=+new Date){return qi(t.started,or,n)||qi(t.lastActivity,e,n)}function Hi(t){if("sessionStorage"in Qn)try{Qn.sessionStorage.setItem(tr,JSON.stringify(t))}catch(t){}}function Wi(t){return void 0!==t&&Math.random()<t}function Ji(t){const e=(new Date).getTime();return{id:t.id||F(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled}}function Ki({sessionSampleRate:t,errorSampleRate:e,stickySession:n=!1}){const r=function(t,e){return Wi(t)?"session":!!Wi(e)&&"error"}(t,e),i=Ji({sampled:r});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log(`[Replay] Creating new session: ${i.id}`),n&&Hi(i),i}async function Vi(t,e,n){if(!t.eventBuffer)return null;if(t.isPaused())return null;const r=e.timestamp>9999999999?e.timestamp:1e3*e.timestamp;if(r+rr<(new Date).getTime())return null;const i=t.getContext().earliestEvent;t.session&&0===t.session.segmentId&&(!i||r<i)&&(t.getContext().earliestEvent=r);try{return await t.eventBuffer.addEvent(e,n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(e),t.stop("addEvent");const n=ht().getClient();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function Xi(t){return{timestamp:(new Date).getTime()/1e3,type:"default",...t}}function Qi(t,e){"sentry.transaction"!==e.category&&("ui.click"===e.category?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(Vi(t,{type:Mr.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:e}}),"console"===e.category))))}const to=t=>e=>{if(!t.isEnabled())return;const n=function(t){let e,n;try{n=function(t){return t.event.target?t.event.target:t.event}(t),e=v(n)}catch(t){e="<unknown>"}return 0===e.length?null:Xi({category:`ui.${t.name}`,message:e,data:{...n?{nodeId:ji.mirror.getId(n)}:{}}})}(e);n&&Qi(t,n)};function eo(t,e){return e.map((({type:e,start:n,end:r,name:i,data:o})=>Vi(t,{type:Mr.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:i,startTimestamp:n,endTimestamp:r,data:o}}})))}function no(t,e){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!t.getOptions()._experiments.traceInternals)&&function(t){const e=ht().getClient(),n=e&&e.getDsn();return!!n&&t.includes(n.host)}(e)}let ro=null;const io=t=>e=>{if(!t.isEnabled())return;const n=function(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return ro!==e&&e?(ro=e,e.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:Xi(e)):null}(e);n&&Qi(t,n)};function oo(t){const e=ht().getScope();e&&e.addScopeListener(io(t)),Me("dom",to(t)),Me("fetch",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){if(!t.endTimestamp)return null;const{startTimestamp:e,endTimestamp:n,fetchData:r,response:i}=t;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:r.url,data:{method:r.method,statusCode:i.status}}}(e);null!==n&&(no(t,n.name)||t.addUpdate((()=>(eo(t,[n]),!0))))}}(t)),Me("xhr",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){if(t.xhr.__sentry_own_request__)return null;if(t.startTimestamp&&(t.xhr.__sentry_xhr__=t.xhr.__sentry_xhr__||{},t.xhr.__sentry_xhr__.startTimestamp=t.startTimestamp),!t.endTimestamp)return null;const{method:e,url:n,status_code:r}=t.xhr.__sentry_xhr__||{};return void 0===n?null:{type:"resource.xhr",name:n,start:(t.xhr.__sentry_xhr__?t.xhr.__sentry_xhr__.startTimestamp||0:t.endTimestamp)/1e3,end:t.endTimestamp/1e3,data:{method:e,statusCode:r}}}(e);null!==n&&(no(t,n.name)||t.addUpdate((()=>(eo(t,[n]),!0))))}}(t)),Me("history",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,r=(new Date).getTime()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(eo(t,[n]),!1))))}}(t)),st(function(t){return(e,n)=>{if(e.type===er)return delete e.breadcrumbs,e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&(!(!e.originalException||!e.originalException.__rrweb__)||t.exception.values.some((t=>!!(t.stacktrace&&t.stacktrace.frames&&t.stacktrace.frames.length)&&t.stacktrace.frames.some((t=>t.filename&&t.filename.includes("/rrweb/src/"))))))}(e,n)&&!t.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Ignoring error from rrweb internals",e),null;if(e.type&&"session"!==t.recordingMode||(e.tags={...e.tags,replayId:t.getSessionId()}),"transaction"===e.type&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id)return t.getContext().traceIds.add(e.contexts.trace.trace_id),e;if(e.type||t.getContext().errorIds.add(e.event_id),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.getOptions()._experiments.traceInternals){const t=function(t){return{type:"Unknown",value:"n/a",...t.exception&&t.exception.values&&t.exception.values[0]}}(e);!function(t){const{category:e,level:n,message:r,...i}=t;wt({category:e||"console",level:n||"debug",message:`[debug]: ${r}`,...i})}({message:`Tagging event (${e.event_id}) - ${e.message} - ${t.type}: ${t.value}`})}return"error"===t.recordingMode&&e.exception&&e.message!==nr&&setTimeout((async()=>{await t.flushImmediate(),t.stopRecording()&&(t.recordingMode="session",t.startRecording())})),e}}(t))}function so(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=(new Date).getTime()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}const ao={resource:function(t){const{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:o,encodedBodySize:s,transferSize:a}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:uo(o),end:uo(i),name:r,data:{size:a,encodedBodySize:s}}},paint:function(t){const{duration:e,entryType:n,name:r,startTime:i}=t,o=uo(i);return{type:n,name:r,start:o,end:o+e}},navigation:function(t){const{entryType:e,name:n,duration:r,domComplete:i,startTime:o,transferSize:s,type:a}=t;return 0===r?null:{type:`${e}.${a}`,start:uo(o),end:uo(i),name:n,data:{size:s,duration:r}}},"largest-contentful-paint":function(t){const{entryType:e,startTime:n,size:r}=t;let i=0;if(Qn.performance){const t=Qn.performance.getEntriesByType("navigation")[0];i=t&&t.activationStart||0}const o=Math.max(n-i,0),s=uo(i)+o/1e3;return{type:e,name:e,start:s,end:s,data:{value:o,size:r,nodeId:ji.mirror.getId(t.element)}}}};function co(t){return void 0===ao[t.entryType]?null:ao[t.entryType](t)}function uo(t){return((X.Z1||Qn.performance.timeOrigin)+t)/1e3}let lo;class ho extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function po(t,e={count:0,interval:sr}){const{recordingData:n,options:r}=t;if(n.length)try{return await async function({recordingData:t,replayId:e,segmentId:n,includeReplayStartTimestamp:r,eventContext:i,timestamp:o,session:s,options:a}){const c=function({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:u,errorIds:l,traceIds:d,initialTimestamp:h}=i,p=ht(),f=p.getClient(),_=p.getScope(),m=f&&f.getTransport(),y=f&&f.getDsn();if(!(f&&_&&m&&y&&s.sampled))return;const g={type:er,...r?{replay_start_timestamp:h/1e3}:{},timestamp:o/1e3,error_ids:l,trace_ids:d,urls:u,replay_id:e,segment_id:n,replay_type:s.sampled},v=await async function({client:t,scope:e,replayId:n,event:r}){const i="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),o=await pe(t.getOptions(),r,{event_id:n,integrations:i},e);if(!o)return null;o.platform=o.platform||"javascript";const s=t.getSdkMetadata&&t.getSdkMetadata(),{name:a,version:c}=s&&s.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},o}({scope:_,client:f,replayId:e,event:g});if(!v)return f.recordDroppedEvent("event_processor","replay",g),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("An event processor returned `null`, will not send event."));v.contexts={...v.contexts,replay:{...v.contexts&&v.contexts.replay,session_sample_rate:a.sessionSampleRate,error_sample_rate:a.errorSampleRate}};const b=function(t,e,n,r){return Gt(Vt(t,Kt(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(v,c,y,f.getOptions().tunnel);let w;try{w=await m.send(b)}catch(t){throw new Error(nr)}if(!w)return w;if("number"==typeof w.statusCode&&(w.statusCode<200||w.statusCode>=300))throw new ho(w.statusCode);return w}(t),!0}catch(n){if(n instanceof ho)throw n;if(St("Replays",{_retryCount:e.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&yt(n),e.count>=ar)throw new Error(`${nr} - max retries exceeded`);return e.interval*=++e.count,await new Promise(((n,r)=>{setTimeout((async()=>{try{await po(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}class fo{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this._performanceObserver=null}__init5(){this._flushLock=null}__init6(){this._lastActivity=(new Date).getTime()}__init7(){this._isEnabled=!1}__init8(){this._isPaused=!1}__init9(){this._hasInitializedCoreListeners=!1}__init10(){this._stopRecording=null}__init11(){this._context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:(new Date).getTime(),initialUrl:""}}constructor({options:t,recordingOptions:e}){fo.prototype.__init.call(this),fo.prototype.__init2.call(this),fo.prototype.__init3.call(this),fo.prototype.__init4.call(this),fo.prototype.__init5.call(this),fo.prototype.__init6.call(this),fo.prototype.__init7.call(this),fo.prototype.__init8.call(this),fo.prototype.__init9.call(this),fo.prototype.__init10.call(this),fo.prototype.__init11.call(this),fo.prototype.__init12.call(this),fo.prototype.__init13.call(this),fo.prototype.__init14.call(this),fo.prototype.__init15.call(this),fo.prototype.__init16.call(this),this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,n){let r,i,o;const s=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t(),r}function c(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function u(){return i&&clearTimeout(i),i=setTimeout(a,e),s&&void 0===o&&(o=setTimeout(a,s)),r}return u.cancel=c,u.flush=function(){return void 0!==i||void 0!==o?a():r},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}start(){this._setInitialState(),this._loadAndCheckSession()&&(this.session?this.session.sampled&&("error"===this.session.sampled&&(this.recordingMode="error"),this._updateSessionActivity(),this.eventBuffer=function({useCompression:t}){if(t&&window.Worker)try{const t=function(){const t=new Blob([Bi]);return URL.createObjectURL(t)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Using compression worker");const e=new Worker(t);return new $i(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Using simple buffer"),new Fi}({useCompression:this._options.useCompression}),this._addListeners(),this._isEnabled=!0,this.startRecording()):this._handleException(new Error("No session found")))}startRecording(){try{this._stopRecording=ji({...this._recordingOptions,..."error"===this.recordingMode&&{checkoutEveryNms:6e4},emit:this._handleRecordingEmit})}catch(t){this._handleException(t)}}stopRecording(){try{return!!this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0,!0)}catch(t){return this._handleException(t),!1}}stop(t){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e="[Replay] Stopping Replay"+(t?` triggered by ${t}`:"");(this.getOptions()._experiments.traceInternals?console.warn:B.log)(e)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this._debouncedFlush.cancel()}catch(t){this._handleException(t)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}addUpdate(t){const e=t();"error"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._loadAndCheckSession())return;this.resume()}}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(t){const e=this.getSessionId();if(this._lastActivity&&qi(this._lastActivity,or))this.pause();else if(this._loadAndCheckSession(t))return e===this.getSessionId()||(this._triggerFullSnapshot(),!1)}_handleException(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay]",t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&yt(t)}_loadAndCheckSession(t=rr){const{type:e,session:n}=function({expiry:t,currentSession:e,stickySession:n,sessionSampleRate:r,errorSampleRate:i}){const o=e||n&&function(){if(!("sessionStorage"in Qn))return null;try{const t=Qn.sessionStorage.getItem(tr);return t?Ji(JSON.parse(t)):null}catch(t){return null}}();if(o){if(!Zi(o,t))return{type:"saved",session:o};if("error"===o.sampled)return{type:"new",session:Ji({sampled:!1})};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Session has expired")}return{type:"new",session:Ki({stickySession:n,sessionSampleRate:r,errorSampleRate:i})}}({expiry:t,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate});"new"===e&&this._setInitialState();const r=this.getSessionId();return n.id!==r&&(n.previousSessionId=r),this.session=n,!!this.session.sampled||(this.stop("session unsampled"),!1)}_setInitialState(){const t=`${Qn.location.pathname}${Qn.location.hash}${Qn.location.search}`,e=`${Qn.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=(new Date).getTime(),this._context.urls.push(e)}_addListeners(){try{Qn.document.addEventListener("visibilitychange",this._handleVisibilityChange),Qn.addEventListener("blur",this._handleWindowBlur),Qn.addEventListener("focus",this._handleWindowFocus),function(t){const e=ht().getClient();if(!e)return;const n=e.recordDroppedEvent.bind(e);e.recordDroppedEvent=(e,r,i)=>(i&&!i.type&&i.event_id&&t.delete(i.event_id),n(e,r,i)),lo=n}(this._context.errorIds),this._hasInitializedCoreListeners||(oo(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in Qn&&(this._performanceObserver=function(t){const e=new PerformanceObserver((e=>{const n=function(t,e){const[n,r,i]=t.reduce(((t,e)=>("navigation"===e.entryType?t[0].push(e):"largest-contentful-paint"===e.entryType?t[1].push(e):t[2].push(e),t)),[[],[],[]]),o=[],s=[];let a=r.length?r[r.length-1]:void 0;return e.forEach((t=>{if("largest-contentful-paint"!==t.entryType)if("navigation"!==t.entryType)o.push(t);else{const e=t;t.duration>0&&!n.find(zi(e))&&!s.find(zi(e))&&s.push(e)}else(!a||a.startTime<t.startTime)&&(a=t)})),[...a?[a]:[],...n,...i,...o,...s].sort(((t,e)=>t.startTime-e.startTime))}(t.performanceEvents,e.getEntries());t.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((t=>{try{e.observe({type:t,buffered:!0})}catch(t){}})),e}(this))}_removeListeners(){try{Qn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Qn.removeEventListener("blur",this._handleWindowBlur),Qn.removeEventListener("focus",this._handleWindowFocus),function(){const t=ht().getClient();t&&lo&&(t.recordDroppedEvent=lo)}(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init12(){this._handleRecordingEmit=(t,e)=>{this.checkAndHandleExpiredSession()?this.addUpdate((()=>("error"===this.recordingMode&&2===t.type&&this._setInitialState(),Vi(this,t,e),2===t.type&&(this.session&&this.session.previousSessionId||("error"===this.recordingMode&&this.session&&this._context.earliestEvent&&(this.session.started=this._context.earliestEvent,this._maybeSaveSession()),"session"===this.recordingMode&&this.flushImmediate()),!0)))):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay] Received replay event after session expired.")}}__init13(){this._handleVisibilityChange=()=>{"visible"===Qn.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const t=Xi({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=Xi({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const e=Zi(this.session,ir);t&&!e&&this._createCustomBreadcrumb(t),this._conditionalFlush()}_doChangeToForegroundTasks(t){this.session&&(this.checkAndHandleExpiredSession(ir)?t&&this._createCustomBreadcrumb(t):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Document has become active, but session has expired"))}_triggerFullSnapshot(){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.log("[Replay] Taking full rrweb snapshot"),ji.takeFullSnapshot(!0)}catch(t){this._handleException(t)}}_updateUserActivity(t=(new Date).getTime()){this._lastActivity=t}_updateSessionActivity(t=(new Date).getTime()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{Vi(this,{type:Mr.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(eo(this,function(t){return t.map(co).filter(Boolean)}(t)))}_conditionalFlush(){"error"!==this.recordingMode&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[],this._context.earliestEvent=null}_popEventContext(){this._context.earliestEvent&&this._context.earliestEvent<this._context.initialTimestamp&&(this._context.initialTimestamp=this._context.earliestEvent);const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds).filter(Boolean),traceIds:Array.from(this._context.traceIds).filter(Boolean),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(this.session&&this.eventBuffer){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(t){try{return Promise.all(eo(t,[so(Qn.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer))try{const t=await this.eventBuffer.finish(),e=this.session.id,n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await po({replayId:e,recordingData:t,segmentId:r,includeReplayStartTimestamp:0===r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:(new Date).getTime()})}catch(t){this._handleException(t),this.stop("sendReplay");const e=ht().getClient();e&&e.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay] No session or eventBuffer found to flush.")}__init16(){this._flush=async()=>{if(this._isEnabled)if(this.checkAndHandleExpiredSession())if(this.session){if(this._debouncedFlush.cancel(),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=null);try{await this._flushLock}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error(t)}finally{this._debouncedFlush()}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay] No session found to flush.");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.error("[Replay] Attempting to finish replay event after session expired.")}}_maybeSaveSession(){this.session&&this._options.stickySession&&Hi(this.session)}}function _o(t,e,n,r){const i=[...t,..."string"==typeof r?r.split(","):[],...e];return void 0!==n&&("string"==typeof n&&i.push(`.${n}`),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(",")}function mo({mask:t,unmask:e,block:n,unblock:r,ignore:i,blockClass:o,blockSelector:s,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){const l=_o(t,[".sentry-mask","[data-sentry-mask]"],a,c),d=_o(e,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:l,unmaskTextSelector:d,maskInputSelector:l,unmaskInputSelector:d,blockSelector:_o(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,s),unblockSelector:_o(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:_o(i,[".sentry-ignore","[data-sentry-ignore]"],u)};return o instanceof RegExp&&(h.blockClass=o),a instanceof RegExp&&(h.maskTextClass=a),h}function yo(){return"undefined"!=typeof window&&(!(0,Q.KV)()||"undefined"!=typeof process&&"renderer"===process.type)}const go='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]';let vo=!1;class bo{static __initStatic(){this.id="Replay"}__init(){this.name=bo.id}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,stickySession:n=!0,useCompression:r=!0,_experiments:i={},sessionSampleRate:o,errorSampleRate:s,maskAllText:a=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mask:l=[],unmask:d=[],block:h=[],unblock:p=[],ignore:f=[],maskFn:_,blockClass:m,blockSelector:y,maskInputOptions:g,maskTextClass:v,maskTextSelector:b,ignoreClass:w}={}){if(bo.prototype.__init.call(this),this._recordingOptions={maskAllInputs:c,maskAllText:a,maskInputOptions:{...g||{},password:!0},maskTextFn:_,maskInputFn:_,...mo({mask:l,unmask:d,block:h,unblock:p,ignore:f,blockClass:m,blockSelector:y,maskTextClass:v,maskTextSelector:b,ignoreClass:w}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,stickySession:n,sessionSampleRate:o,errorSampleRate:s,useCompression:r,blockAllMedia:u,_experiments:i},"number"==typeof o&&(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: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof s&&(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: ${s} })`),this._initialOptions.errorSampleRate=s),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${go}`:go),this._isInitialized&&yo())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return vo}set _isInitialized(t){vo=t}setupOnce(){yo()&&(this._setup(),setTimeout((()=>this.start())))}start(){this._replay&&this._replay.start()}stop(){this._replay&&this._replay.stop()}flush(){if(this._replay&&this._replay.isEnabled())return this._replay.flushImmediate()}_setup(){const t=function(t){const e=ht().getClient(),n=e&&e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...N(t)};return n?(null==t.sessionSampleRate&&null==t.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&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),r):(console.warn("SDK client is not available."),r)}(this._initialOptions);this._replay=new fo({options:t,recordingOptions:this._recordingOptions})}}bo.__initStatic();const wo=100,So=5e3,ko=36e5;function Eo(t,e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&B.info(`[Offline]: ${t}`,e)}function xo(t){return e=>{const n=t(e),r=e.createStore?e.createStore(e):void 0;let i,o=So;function s(t){r&&(i&&clearTimeout(i),i=setTimeout((async()=>{i=void 0;const t=await r.pop();t&&(Eo("Attempting to send previously queued event"),c(t).catch((t=>{Eo("Failed to retry sending",t)})))}),t),"number"!=typeof i&&i.unref&&i.unref())}function a(){i||(s(o),o=Math.min(2*o,ko))}async function c(t){try{const e=await n.send(t);let r=wo;if(e)if(e.headers&&e.headers["retry-after"])r=Qt(e.headers["retry-after"]);else if((e.statusCode||0)>=400)return e;return s(r),o=So,e}catch(n){if(r&&await function(t,n,r){return i=["replay_event","replay_recording","client_report"],!$t(t,((t,e)=>i.includes(e)))&&(!e.shouldStore||e.shouldStore(t,n,r));var i}(t,n,o))return await r.insert(t),a(),Eo("Error sending. Event queued",n),{};throw n}}return e.flushAtStartup&&a(),{send:c,flush:t=>n.flush(t)}}}function To(t){return new Promise(((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)}))}function Io(t){return To(t.getAllKeys())}function Ro(t){let e;function n(){return null==e&&(e=function(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=To(n);return t=>r.then((n=>t(n.transaction(e,"readwrite").objectStore(e))))}(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{insert:async e=>{try{const r=await Zt(e,t.textEncoder);await function(t,e,n){return t((t=>Io(t).then((r=>{if(!(r.length>=n))return t.put(e,Math.max(...r,0)+1),To(t.transaction)}))))}(n(),r,t.maxQueueSize||30)}catch(t){}},pop:async()=>{try{const e=await function(t){return t((t=>Io(t).then((e=>{if(0!==e.length)return To(t.get(e[0])).then((n=>(t.delete(e[0]),To(t.transaction).then((()=>n)))))}))))}(n());if(e)return function(t,e,n){let r="string"==typeof t?e.encode(t):t;function i(t){const e=r.subarray(0,t);return r=r.subarray(t+1),e}function o(){let t=r.indexOf(10);return t<0&&(t=r.length),JSON.parse(n.decode(i(t)))}const s=o(),a=[];for(;r.length;){const t=o(),e="number"==typeof t.length?t.length:void 0;a.push([t,e?i(e):o()])}return[s,a]}(e,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch(t){}}}}function Oo(t){return function(t){return e=>t({...e,createStore:Ro})}(xo(t))}let Co={};re.Sentry&&re.Sentry.Integrations&&(Co=re.Sentry.Integrations);const Do={...Co,...r,...i}},6267:(t,e,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,{S:()=>i,n:()=>r})},6708:(t,e,n)=>{"use strict";n.d(e,{KV:()=>i,l$:()=>o});var r=n(6267);function i(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,e){return t.require(e)}t=n.hmd(t)},6281:(t,e,n)=>{"use strict";n.d(e,{Z1:()=>h,ph:()=>l,yW:()=>u});var r=n(6708),i=n(397);t=n.hmd(t);const o=(0,i.Rf)(),s={nowSeconds:()=>Date.now()/1e3},a=(0,r.KV)()?function(){try{return(0,r.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=o;if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),c=void 0===a?s:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=s.nowSeconds.bind(s),l=c.nowSeconds.bind(c);let d;const h=(()=>{const{performance:t}=o;if(!t||!t.now)return void(d="none");const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=i<e,a=t.timing&&t.timing.navigationStart,c="number"==typeof a?Math.abs(a+n-r):e;return s||c<e?i<=c?(d="timeOrigin",t.timeOrigin):(d="navigationStart",a):(d="dateNow",r)})()},397:(t,e,n)=>{"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{Rf:()=>o,YO:()=>s,n2:()=>i});const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function s(t,e,n){const r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}},7483:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},1862:(t,e,n)=>{"use strict";var r=n(632),i=n(7239),o=n(2600),s=Object.prototype.toString;t.exports=function(t){return e=t,"[object Date]"===s.call(e)?t:function(t){return"[object Number]"===s.call(t)}(t)?new Date((n=t)<315576e5?1e3*n:n):r.is(t)?r.parse(t):i.is(t)?i.parse(t):o.is(t)?o.parse(t):new Date(t);var e,n}},7239:(t,e)=>{"use strict";var n=/\d{13}/;e.is=function(t){return n.test(t)},e.parse=function(t){return t=parseInt(t,10),new Date(t)}},2600:(t,e)=>{"use strict";var n=/\d{10}/;e.is=function(t){return n.test(t)},e.parse=function(t){var e=1e3*parseInt(t,10);return new Date(e)}},9434:t=>{function e(t){return function(e,n,r,o){var s,a=o&&function(t){return"function"==typeof t}(o.normalizer)?o.normalizer:i;n=a(n);for(var c=!1;!c;)u();function u(){for(s in e){var t=a(s);if(0===n.indexOf(t)){var r=n.substr(t.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=e[s];return null==i?void(c=!0):n.length?void(e=i):void(c=!0)}}}s=void 0,c=!0}if(s)return null==e?e:t(e,s,r)}}function n(t,e){return t.hasOwnProperty(e)&&delete t[e],t}function r(t,e,n){return t.hasOwnProperty(e)&&(t[e]=n),t}function i(t){return t.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}t.exports=e((function(t,e){if(t.hasOwnProperty(e))return t[e]})),t.exports.find=t.exports,t.exports.replace=function(t,n,i,o){return e(r).call(this,t,n,i,o),t},t.exports.del=function(t,r,i){return e(n).call(this,t,r,null,i),t}},229:t=>{t.exports=function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+e[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+e[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+e[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+e[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+e[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+e[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+e[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+e[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+e[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+e[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+e[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+e[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+e[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+e[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+e[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+e[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+e[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+e[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+e[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+e[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+e[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+e[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+e[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+e[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+e[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+e[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+e[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+e[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+e[9]-343485551|0)<<21|r>>>11)+i|0,t[0]=n+t[0]|0,t[1]=r+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,i,o,s,a,c,u=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)n(l,r(t.substring(e-64,e)));for(i=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(l,o),e=0;e<16;e+=1)o[e]=0;return s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(l,o),l}function s(t){var n,r="";for(n=0;n<4;n+=1)r+=e[t>>8*n+4&15]+e[t>>8*n&15];return r}function a(t){var e;for(e=0;e<t.length;e+=1)t[e]=s(t[e]);return t.join("")}function c(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function u(t){var e,n=[],r=t.length;for(e=0;e<r-1;e+=2)n.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,n)}function l(){this.reset()}return a(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(e,n){var r,i,o,s,a=this.byteLength,c=t(e,a),u=a;return undefined!==n&&(u=t(n,a)),c>u?new ArrayBuffer(0):(r=u-c,i=new ArrayBuffer(r),o=new Uint8Array(i),s=new Uint8Array(this,c,r),o.set(s),i)}}(),l.prototype.append=function(t){return this.appendBinary(c(t)),this},l.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,i=this._buff.length;for(e=64;e<=i;e+=64)n(this._hash,r(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},l.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),n=a(this._hash),t&&(n=u(n)),this.reset(),n},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(t,e){var r,i,o,s=e;if(t[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,t),s=0;s<16;s+=1)t[s]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,t[14]=i,t[15]=o,n(this._hash,t)},l.hash=function(t,e){return l.hashBinary(c(t),e)},l.hashBinary=function(t,e){var n=a(o(t));return e?u(n):n},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(t){var e,r,o,s,a,c=(r=this._buff.buffer,o=t,s=!0,(a=new Uint8Array(r.byteLength+o.byteLength)).set(new Uint8Array(r)),a.set(new Uint8Array(o),r.byteLength),s?a:a.buffer),u=c.length;for(this._length+=t.byteLength,e=64;e<=u;e+=64)n(this._hash,i(c.subarray(e-64,e)));return this._buff=e-64<u?new Uint8Array(c.buffer.slice(e-64)):new Uint8Array(0),this},l.ArrayBuffer.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r[e]<<(e%4<<3);return this._finish(o,i),n=a(this._hash),t&&(n=u(n)),this.reset(),n},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.ArrayBuffer.prototype.getState=function(){var t,e=l.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},l.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var n,r=t.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=t.charCodeAt(n);return e?o:i}(t.buff,!0),l.prototype.setState.call(this,t)},l.ArrayBuffer.prototype.destroy=l.prototype.destroy,l.ArrayBuffer.prototype._finish=l.prototype._finish,l.ArrayBuffer.hash=function(t,e){var r=a(function(t){var e,r,o,s,a,c,u=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)n(l,i(t.subarray(e-64,e)));for(r=(t=e-64<u?t.subarray(e-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(l,o),e=0;e<16;e+=1)o[e]=0;return s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(l,o),l}(new Uint8Array(t)));return e?u(r):r},l}()},3083:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};e.__esModule=!0,e.runRetrievalOfVerificationTag=void 0;var o=n(7503),s=n(9179),a="".concat(Math.floor(Date.now()/1e3)),c=new o.Scope;e.runRetrievalOfVerificationTag=function(t,e,n){return r(void 0,void 0,void 0,(function(){var r,s;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,6,,7]),null==n||n.track("[GGL] Re-verification & claiming Started"),[4,t("GET","shopping-websites/site-verification/token",{correlationId:a,onResponse:u})];case 1:return[4,i.sent().json()];case 2:return r=i.sent().token,[4,e("setWebsiteVerificationMeta",{websiteVerificationMeta:r})];case 3:return i.sent(),[4,t("POST","shopping-websites/site-verification/verify",{correlationId:a,onResponse:u})];case 4:return i.sent(),[4,t("POST","shopping-websites/site-verification/claim".concat("?overwrite=false"),{correlationId:a,onResponse:u})];case 5:return i.sent(),console.info("Marketing with Google - Google Verification tag has been refreshed."),null==n||n.track("[GGL] Re-verification & claiming Succeeded"),[3,7];case 6:return s=i.sent(),console.error("Marketing with Google - Google Verification tag refresh failed.",s),null==n||n.track("[GGL] Re-verification & claiming Failed"),c.setTag("correlationId",a),o.captureException(s,c),[3,7];case 7:return[2]}}))}))};var u=function(t){return r(void 0,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:if(t.ok)return[3,5];e=new s.HttpClientError(t.statusText,t.status),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,t.text()];case 2:return n=r.sent(),c.setExtra("responseContent",n),t.url.includes("shopping-websites/site-verification/claim")&&n.includes('"needOverwrite":true')?[2,t]:[3,4];case 3:return r.sent(),[3,4];case 4:throw c.setTransactionName(t.url),e;case 5:return[2,t]}}))}))}},604:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});e.__esModule=!0,e.HttpClientError=void 0;var i=function(t){function e(e,n){var r=t.call(this,e)||this;return r.code=n,r.name=r.constructor.name,r.message=e,r.code=n,r}return r(e,t),e}(Error);e.HttpClientError=i,e.default={HttpClientError:i}},3001:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};e.__esModule=!0,e.fetchOnboarding=e.initOnboardingClient=e.noCorrelationIdValue=void 0;var o=n(604);e.noCorrelationIdValue="no-correlation-id-provided";var s={apiUrl:"",token:""};e.initOnboardingClient=function(t){s.apiUrl=t.apiUrl,s.token=t.token};var a=function(t){return r(void 0,void 0,void 0,(function(){return i(this,(function(e){if(!t.ok)throw new o.HttpClientError(t.statusText,t.status);return[2,t]}))}))};e.fetchOnboarding=function(t,n,o){return r(void 0,void 0,void 0,(function(){var r;return i(this,(function(i){switch(i.label){case 0:if(!s.apiUrl.length)throw new Error("Cannot call onboarding API, client is not initialized (missing URL)");if(!s.token.length)throw new Error("Cannot call onboarding API, client is not initialized (missing token)");return[4,fetch("".concat(s.apiUrl,"/").concat(n),{method:t,headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer ".concat(s.token),"x-correlation-id":(null==o?void 0:o.correlationId)||e.noCorrelationIdValue},body:(null==o?void 0:o.body)&&JSON.stringify(null==o?void 0:o.body)})];case 1:return r=i.sent(),[2,(null==o?void 0:o.onResponse)?null==o?void 0:o.onResponse(r):a(r)]}}))}))},e.default={initOnboardingClient:e.initOnboardingClient,fetchOnboarding:e.fetchOnboarding}},9714:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};e.__esModule=!0,e.fetchShop=e.initShopClient=void 0;var s=n(604),a={shopUrl:""};e.initShopClient=function(t){a.shopUrl=t.shopUrl,a.onShopSessionLoggedOut=t.onShopSessionLoggedOut},e.fetchShop=function(t,e){return i(void 0,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:if(!a.shopUrl.length)throw new Error("Cannot call action ".concat(t,", API is not initialized (missing shop URL)"));return[4,fetch(a.shopUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r({action:t},e))})];case 1:if((n=i.sent()).redirected&&-1!==n.url.indexOf("AdminLogin"))throw a.onShopSessionLoggedOut&&a.onShopSessionLoggedOut(),new s.HttpClientError("Unauthorized",401);if(!n.ok)throw new s.HttpClientError(n.statusText,n.status);return[2,n.json()]}}))}))},e.default={initShopClient:e.initShopClient,fetchShop:e.fetchShop}},9179:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});e.__esModule=!0,e.fetchShop=e.fetchOnboarding=e.HttpClientError=void 0,r(e,n(604),"HttpClientError"),r(e,n(3001),"fetchOnboarding"),r(e,n(9714),"fetchShop")},3975:(t,e,n)=>{"use strict";function r(t,e){return e=e||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],s=[],a={},c=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return o},entries:function(){return s},get:function(t){return a[t.toLowerCase()]},has:function(t){return t.toLowerCase()in a}}}};for(var u in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),s.push([e,n]),a[e]=a[e]?a[e]+","+n:n})),n(c())},i.onerror=r,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(u,e.headers[u]);i.send(e.body||null)}))}n.d(e,{Z:()=>r})},8537:(t,e,n)=>{"use strict";n.d(e,{v4:()=>s});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function s(){var t,e=0,n="";if(!r||i+16>256){for(r=Array(e=256);e--;)r[e]=256*Math.random()|0;e=i=0}for(;e<16;e++)t=r[i+e],n+=6==e?o[15&t|64]:8==e?o[63&t|128]:o[t],1&e&&e>1&&e<11&&(n+="-");return i++,n}},3034:(t,e,n)=>{"use strict";function r(t,e,n){e.split&&(e=e.split("."));for(var r,i,o=0,s=e.length,a=t;o<s&&"__proto__"!==(i=e[o++])&&"constructor"!==i&&"prototype"!==i;)a=a[i]=o===s?n:typeof(r=a[i])==typeof e?r:0*e[o]!=0||~(""+e[o]).indexOf(".")?{}:[]}n.d(e,{N:()=>r})},6366:(t,e,n)=>{"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}n.d(e,{Z:()=>i});const i=function t(e,n){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in o)o[a]&&(s+="; "+a,!0!==o[a]&&(s+="="+o[a].split(";")[0]));return document.cookie=t+"="+e.write(i,t)+s}}return Object.create({set:i,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=e.read(s,a),t===a)break}catch(t){}}return t?r[t]:r}},remove:function(t,e){i(t,"",r({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,r({},this.attributes,e))},withConverter:function(e){return t(r({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},7768:(t,e,n)=>{"use strict";n.d(e,{Jh:()=>c,ZT:()=>i,_T:()=>s,ev:()=>u,mG:()=>a,pi:()=>o});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function c(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function u(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);s.r(i);var o={};t=t||[null,e({}),e([]),e(e)];for(var a=2&r&&n;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>o[t]=()=>n[t]));return o.default=()=>n,s.d(i,o),i},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,n)=>(s.f[n](t,e),e)),[])),s.u=t=>(({96:"queryString",119:"auto-track",150:"legacyVideos",214:"remoteMiddleware",464:"ajs-destination",493:"schemaFilter",604:"tsub-middleware"}[t]||t)+".js"),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="marketing-with-google-verification-tag:",s.l=(t,e,i,o)=>{if(n[t])n[t].push(e);else{var a,c;if(void 0!==i)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==r+i){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",r+i),a.src=t),n[t]=[e];var h=(e,r)=>{a.onerror=a.onload=null,clearTimeout(p);var i=n[t];if(delete n[t],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((t=>t(r))),e)return e(r)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={592:0};s.f.j=(e,n)=>{var r=s.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=t[e]=[n,i]));n.push(r[2]=i);var o=s.p+s.u(e),a=new Error;s.l(o,(n=>{if(s.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,i,[o,a,c]=n,u=0;if(o.some((e=>0!==t[e]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);c&&c(s)}for(e&&e(n);u<o.length;u++)i=o[u],s.o(t,i)&&t[i]&&t[i][0](),t[i]=0},n=self.webpackChunkmarketing_with_google_verification_tag=self.webpackChunkmarketing_with_google_verification_tag||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),(()=>{"use strict";var t=s(3001),e=s(9714),n=s(7503),r=s(3083),i=s(9217);(0,e.initShopClient)({shopUrl:window.psxMktgWithGoogleControllerLink}),(0,t.initOnboardingClient)({apiUrl:window.psxMktgWithGoogleApiUrl,token:window.psxMktgWithGoogleTokenPsAccounts}),window.psxMktgWithGoogleOnProductionEnvironment&&n.init({dsn:window.psxMktgWithGoogleDsnSentry,allowUrls:["https://storage.googleapis.com/psxmarketing-cdn/"],sampleRate:.5,tracesSampleRate:1,initialScope:{user:{id:window.psxMktgWithGoogleShopIdPsAccounts?window.psxMktgWithGoogleShopIdPsAccounts.toString():"unknown"}},release:"dev"});var o=function(){var t=i.AnalyticsBrowser.load({writeKey:window.psxMktgWithGoogleSegmentId},{disableClientPersistence:!0});return t.identify(window.psxMktgWithGoogleShopIdPsAccounts),t}();(0,r.runRetrievalOfVerificationTag)(t.fetchOnboarding,e.fetchShop,o)})()})();