1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4c7f0d51-cf89-54e8-b696-71fa93b8cf96")}catch(e){}}(); 3(globalThis.webpackChunkcv_builder=globalThis.webpackChunkcv_builder||[]).push([["7217"],{92967(e,t,r){r.d(t,{U:()=>n});let n="production"},92220(e,t,r){r.d(t,{T:()=>n});let n="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},42531(e,t,r){r.d(t,{jB:()=>function e(t,r,n,u=0){return new i.T2((i,c)=>{let l=t[u];if(null===r||"function"!=typeof l)i(r);else{let h=l({...r},n);a.T&&l.id&&null===h&&o.vF.log(`Event processor "${l.id}" dropped event`),(0,s.Qg)(h)?h.then(r=>e(t,r,n,u+1).then(i)).then(null,c):e(t,h,n,u+1).then(i).then(null,c)}})},lG:()=>u,lb:()=>c});var n=r(16341),i=r(60690),o=r(17412),s=r(73816),a=r(92220);function u(){return(0,n.BY)("globalEventProcessors",()=>[])}function c(e){u().push(e)}},83741(e,t,r){r.d(t,{Cp:()=>u,J0:()=>g,J5:()=>y,KU:()=>d,ZQ:()=>l,gV:()=>h,o5:()=>f,r:()=>c,v4:()=>p});var n=r(16341),i=r(92967),o=r(86641),s=r(7058),a=r(49475);function u(e,t){return(0,o.BF)().captureException(e,(0,a.li)(t))}function c(e,t){return(0,o.BF)().captureEvent(e,t)}function l(e,t){(0,o.BF)().addBreadcrumb(e,t)}function h(e){(0,o.BF)().setUser(e)}function p(...e){let t=(0,o.BF)();if(2===e.length){let[r,n]=e;return r?t.withScope(()=>(t.getStackTop().scope=r,n(r))):t.withScope(n)}return t.withScope(e[0])}function d(){return(0,o.BF)().getClient()}function f(){return(0,o.BF)().getScope()}function g(e){let t=d(),r=(0,o.rm)(),a=f(),{release:u,environment:c=i.U}=t&&t.getOptions()||{},{userAgent:l}=n.OW.navigator||{},h=(0,s.fj)({release:u,environment:c,user:a.getUser()||r.getUser(),...l&&{userAgent:l},...e}),p=r.getSession();return p&&"ok"===p.status&&(0,s.qO)(p,{status:"exited"}),m(),r.setSession(h),a.setSession(h),h}function m(){let e=(0,o.rm)(),t=f(),r=t.getSession()||e.getSession();r&&(0,s.Vu)(r),v(),e.setSession(),t.setSession()}function v(){let e=(0,o.rm)(),t=f(),r=d(),n=t.getSession()||e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function y(e=!1){e?m():v()}},86641(e,t,r){r.d(t,{BF:()=>m,rm:()=>v});var n=r(73816),i=r(6936),o=r(89297),s=r(17412),a=r(16341),u=r(92967),c=r(92220),l=r(22486),h=r(7058);let p=parseFloat(r(57986).M);class d{constructor(e,t,r,n=p){let i,o;this._version=n,t?i=t:(i=new l.HG).setClient(e),r?o=r:(o=new l.HG).setClient(e),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t,r=this.pushScope();try{t=e(r)}catch(e){throw this.popScope(),e}return(0,n.Qg)(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let r=this._lastEventId=t&&t.event_id?t.event_id:(0,i.eJ)(),n=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:n,...t,event_id:r}),r}captureMessage(e,t,r){let n=this._lastEventId=r&&r.event_id?r.event_id:(0,i.eJ)(),o=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:n}),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:(0,i.eJ)();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,{...t,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:r,client:n}=this.getStackTop();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=n.getOptions&&n.getOptions()||{};if(a<=0)return;let u={timestamp:(0,o.lu)(),...e},c=i?(0,s.pq)(()=>i(u,t)):u;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,a))}
3setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:r}=this.getStackTop();r&&e(t)}run(e){let t=g(this);try{e(this)}finally{g(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return c.T&&s.vF.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let r=this._callExtensionMethod("startTransaction",e,t);return c.T&&!r&&(this.getClient()?s.vF.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 4Sentry.addTracingExtensions(); 5Sentry.init({...}); 6`):s.vF.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&(0,h.Vu)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:r}=this.getStackTop(),{release:n,environment:i=u.U}=r&&r.getOptions()||{},{userAgent:o}=a.OW.navigator||{},s=(0,h.fj)({release:n,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&(0,h.qO)(c,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_callExtensionMethod(e,...t){let r=f().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);c.T&&s.vF.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){return a.OW.__SENTRY__=a.OW.__SENTRY__||{extensions:{},hub:void 0},a.OW}function g(e){let t=f(),r=y(t);return _(t,e),r}function m(){let e=f();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=f()){var t;return(!((t=e)&&t.__SENTRY__&&t.__SENTRY__.hub)||y(e).isOlderThan(p))&&_(e,new d),y(e)}(e)}function v(){return m().getIsolationScope()}function y(e){return(0,a.BY)("hub",()=>new d,e)}function _(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},22486(e,t,r){let n;r.d(t,{HG:()=>h,m6:()=>p});var i=r(73816),o=r(89297),s=r(6936),a=r(17412),u=r(42531),c=r(7058),l=r(41535);class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=d()}static clone(e){return e?e.clone():new h}clone(){let e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,c.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof h){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else(0,i.Qd)(t)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=d(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,o.lu)(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}
6getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:r,_tags:n,_extra:i,_user:o,_level:s,_fingerprint:a,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:l,_transactionName:h,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:r,tags:n,extra:i,user:o,level:s,fingerprint:a||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:l,transactionName:h,span:p}}applyToEvent(e,t={},r=[]){(0,l.e2)(e,this.getScopeData());let n=[...r,...(0,u.lG)(),...this._eventProcessors];return(0,u.jB)(n,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t&&t.event_id?t.event_id:(0,s.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r&&r.event_id?r.event_id:(0,s.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:(0,s.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):a.vF.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function p(){return n||(n=new h),n}function d(){return{traceId:(0,s.eJ)(),spanId:(0,s.eJ)().substring(16)}}},7058(e,t,r){r.d(t,{Vu:()=>u,fj:()=>s,qO:()=>a});var n=r(89297),i=r(6936),o=r(68411);function s(e){let t=(0,n.zf)(),r={sid:(0,i.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,(0,o.Ce)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}};return e&&a(r,e),r}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}},75452(e,t,r){r.d(t,{k:()=>c,l:()=>u});var n=r(68411),i=r(92967),o=r(83741),s=r(34636),a=r(3445);function u(e,t,r){let o=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=r&&r.getUser()||{},u=(0,n.Ce)({environment:o.environment||i.U,release:o.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",u),u}function c(e){let t=(0,o.KU)();if(!t)return{};let r=u((0,a.et)(e).trace_id||"",t,(0,o.o5)()),n=(0,s.z)(e);if(!n)return r;let i=n&&n._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:c,source:l}=n.metadata;null!=c&&(r.sample_rate=`${c}`);let h=(0,a.et)(n);return l&&"url"!==l&&(r.transaction=h.description),r.sampled=String((0,a.pK)(n)),t.emit&&t.emit("createDsc",r),r}},41535(e,t,r){r.d(t,{Rg:()=>c,e2:()=>u});var n=r(68411),i=r(6936),o=r(75452),s=r(34636),a=r(3445);function u(e,t){var r,u,c,l,h,p;let d,{fingerprint:f,span:g,breadcrumbs:m,sdkProcessingMetadata:v}=t;(function(e,t){let{extra:r,tags:i,user:o,contexts:s,level:a,transactionName:u}=t,c=(0,n.Ce)(r);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let l=(0,n.Ce)(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let h=(0,n.Ce)(o);h&&Object.keys(h).length&&(e.user={...h,...e.user});let p=(0,n.Ce)(s);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),a&&(e.level=a),u&&(e.transaction=u)})(e,t),g&&function(e,t){e.contexts={trace:(0,a.kX)(t),...e.contexts};let r=(0,s.z)(t);if(r){e.sdkProcessingMetadata={dynamicSamplingContext:(0,o.k)(t),...e.sdkProcessingMetadata};let n=(0,a.et)(r).description;n&&(e.tags={transaction:n,...e.tags})}}(e,g),r=e,u=f,r.fingerprint=r.fingerprint?(0,i.k9)(r.fingerprint):[],u&&(r.fingerprint=r.fingerprint.concat(u)),r.fingerprint&&!r.fingerprint.length&&delete r.fingerprint,c=e,l=m,d=[...c.breadcrumbs||[],...l],c.breadcrumbs=d.length?d:void 0,h=e,p=v,h.sdkProcessingMetadata={...h.sdkProcessingMetadata,...p}}function c(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:h,attachments:p,propagationContext:d,transactionName:f,span:g}=t;l(e,"extra",r),l(e,"tags",n),l(e,"user",i),l(e,"contexts",o),l(e,"sdkProcessingMetadata",a),s&&(e.level=s),f&&(e.transactionName=f),g&&(e.span=g),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]
6),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}}function l(e,t,r){if(r&&Object.keys(r).length)for(let n in e[t]={...e[t]},r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}},34636(e,t,r){r.d(t,{z:()=>n});function n(e){return e.transaction}},49475(e,t,r){r.d(t,{li:()=>g,mG:()=>d});var n=r(6936),i=r(89297),o=r(39653),s=r(16341),a=r(24407),u=r(92967),c=r(42531),l=r(22486),h=r(41535),p=r(3445);function d(e,t,r,d,g,m){var v,y;let{normalizeDepth:_=3,normalizeMaxBreadth:b=1e3}=e,w={...t,event_id:t.event_id||r.event_id||(0,n.eJ)(),timestamp:t.timestamp||(0,i.lu)()},S=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?r:u.U),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,o.xv)(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,o.xv)(a.value,s));let c=e.request;c&&c.url&&(c.url=(0,o.xv)(c.url,s))})(w,e),v=w,(y=S).length>0&&(v.sdk=v.sdk||{},v.sdk.integrations=[...v.sdk.integrations||[],...y]),void 0===t.type&&function(e,t){let r,n=s.OW._sentryDebugIds;if(!n)return;let i=f.get(t);i?r=i:(r=new Map,f.set(t,r));let o=Object.keys(n).reduce((e,i)=>{let o,s=r.get(i);s?o=s:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){let r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}(w,e.stackParser);let k=function(e,t){if(!t)return e;let r=e?e.clone():new l.HG;return r.update(t),r}(d,r.captureContext);r.mechanism&&(0,n.M6)(w,r.mechanism);let C=g&&g.getEventProcessors?g.getEventProcessors():[],x=(0,l.m6)().getScopeData();if(m){let e=m.getScopeData();(0,h.Rg)(x,e)}if(k){let e=k.getScopeData();(0,h.Rg)(x,e)}let E=[...r.attachments||[],...x.attachments];E.length&&(r.attachments=E),(0,h.e2)(w,x);let I=[...C,...(0,c.lG)(),...x.eventProcessors];return(0,c.jB)(I,w,r).then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.keys(t).forEach(e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof _&&_>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,a.S8)(e.data,t,r)}}))},...e.user&&{user:(0,a.S8)(e.user,t,r)},...e.contexts&&{contexts:(0,a.S8)(e.contexts,t,r)},...e.extra&&{extra:(0,a.S8)(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,a.S8)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>{let n=(0,p.et)(e).data;return n&&(e.data=(0,a.S8)(n,t,r)),e})),n}(e,_,b):e)}let f=new WeakMap;function g(e){if(e){var t;return(t=e)instanceof l.HG||"function"==typeof t||Object.keys(e).some(e=>m.includes(e))?{captureContext:e}:e}}let m=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},3445(e,t,r){r.d(t,{et:()=>o,kX:()=>i,pK:()=>s});var n=r(68411);function i(e){let{spanId:t,traceId:r}=e.spanContext(),{data:i,op:s,parent_span_id:a,status:u,tags:c,origin:l}=o(e);return(0,n.Ce)({data:i,op:s,parent_span_id:a,span_id:t,status:u,tags:c,trace_id:r,origin:l})}function o(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function s(e){let{traceFlags:t}=e.spanContext();return!!(1&t)}},57986(e,t,r){r.d(t,{M:()=>n});let n="7.120.4"},27593(e,t,r){let n,i,o,s,a,u;r.d(t,{T:()=>ty});var c=r(17412),l=r(6936),h=r(39653),p=r(92220),d=r(42531),f=r(86641);let g=[];function m(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function v(e,t,r){if(r[t.name]){p.T&&c.vF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,-1===g.indexOf(t.name)&&(t.setupOnce(d.lb,f.BF),g.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=(t,n)=>r(t,n,e);n.id=t.name,e.addEventProcessor(n)}p.T&&c.vF.log(`Integration installed: ${t.name}`)}function y(e,t){let r=function(...e){return t(...e)};return r.id=e,r}let _=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],b=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],w="InboundFilters",S=(e={})=>({name:w,setupOnce(){},processEvent:(t,r,n)=>{var i,o,s,a;return(i=t,(o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:b],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,n.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(i)?(p.T&&c.vF.warn(`Event dropped due to being internal Sentry Error. 7Event: ${(0,l.$X)(i)}`),0):(s=i,a=o.ignoreErrors,!s.type&&a&&a.length&&(function(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),p.T&&0===r.length&&c.vF.error(`Could not extract message for event ${(0,l.$X)(e)}`),r})(s).some(e=>(0,h.Xr)(e,a)))?(p.T&&c.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 8Event: ${(0,l.$X)(i)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let r=e.transaction;return!!r&&(0,h.Xr)(r,t)}(i,o.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let r=k(e);return!!r&&(0,h.Xr)(r,t)}(i,o.denyUrls)?function(e,t){if(!t||!t.length)return!0;let r=k(e);return!r||(0,h.Xr)(r,t)}(i,o.allowUrls)||(p.T&&c.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option. 9Event: ${(0,l.$X)(i)}. 10Url: ${k(i)}`),0):(p.T&&c.vF.warn(`Event dropped due to being matched by \`denyUrls\` option. 11Event: ${(0,l.$X)(i)}. 12Url: ${k(i)}`),0):(p.T&&c.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 13Event: ${(0,l.$X)(i)}`),0))?t:null}});function k(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(t){return p.T&&c.vF.error(`Cannot extract url for event ${(0,l.$X)(e)}`),null}}y(w,S);var C=r(68411),x=r(83741);let E="FunctionToString",I=new WeakMap,O=()=>({name:E,setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,C.sp)(this),r=I.has((0,x.KU)())&&void 0!==t?t:this;return n.apply(r,e)}}catch(e){}},setup(e){I.set(e,!0)}});y(E,O);var M=r(83917),R=r(5644),T=r(16341);let A=(0,T.VZ)();function D(){if(!("fetch"in A))return!1;
13try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function P(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let L=(0,T.VZ)(),F={},N={};function j(e,t){F[e]=F[e]||[],F[e].push(t)}function U(e,t){N[e]||(t(),N[e]=!0)}function B(e,t){let r=e&&F[e];if(r)for(let n of r)try{n(t)}catch(t){R.T&&c.vF.error(`Error while triggering instrumentation handler. 14Type: ${e} 15Name: ${(0,M.qQ)(n)} 16Error:`,t)}}let q=T.OW;function $(e){let t="history";j(t,e),U(t,z)}function z(){let e,t,r;if(t=(e=L.chrome)&&e.app&&e.app.runtime,r="history"in L&&!!L.history.pushState&&!!L.history.replaceState,t||!r)return;let n=q.onpopstate;function o(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let e=i,t=String(r);i=t,B("history",{from:e,to:t})}return e.apply(this,t)}}q.onpopstate=function(...e){let t=q.location.href,r=i;if(i=t,B("history",{from:r,to:t}),n)try{return n.apply(this,e)}catch(e){}},(0,C.GS)(q.history,"pushState",o),(0,C.GS)(q.history,"replaceState",o)}let W=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function V(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:s,protocol:a,publicKey:u}=e;return`${a}://${u}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${s}`}function K(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var G=r(73816),H=r(60690),J=r(24407);function Y(e,t=[]){return[e,t]}function X(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function Z(e,t){return(t||new TextEncoder).encode(e)}let Q={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function ee(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}class et extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var er=r(7058),en=r(75452),ei=r(49475);let eo="Not capturing exception because it's already been captured.";class es{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?function(e){let t=W.exec(e);if(!t)return void(0,c.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,i="",o,s="",a]=t.slice(1),u="",l=a,h=l.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),l=h.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return K({host:o,pass:i,path:u,projectId:l,port:s,protocol:r,publicKey:n})}(e):K(e);if(t&&function(e){if(!R.T)return!0;let{port:t,projectId:r,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(c.vF.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"!==n&&"https"!==n?(c.vF.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):!(t&&isNaN(parseInt(t,10)))||(c.vF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(c.vF.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}(e.dsn):p.T&&c.vF.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t={}){let r,n,i="string"==typeof t?t:t.tunnel,o="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return i||`${r=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"",`${r}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${(0,C.u4)({sentry_key:e.publicKey,sentry_version:"7",...o&&{sentry_client:`${o.name}/${o.version}`}})}`}(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){if((0,l.GR)(e)){p.T&&c.vF.log(eo);return}let n=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,r)).then(e=>{n=e})),n}captureMessage(e,t,r,n){let i=r&&r.event_id,o=(0,G.NF)(e)?e:String(e),s=(0,G.sO)(e)?this.eventFromMessage(o,t,r):this.eventFromException(e,r);return this._process(s.then(e=>this._captureEvent(e,r,n)).then(e=>{i=e})),i}captureEvent(e,t,r){if(t&&t.originalException&&(0,l.GR)(t.originalException)){p.T&&c.vF.log(eo);return}let n=t&&t.event_id,i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||r).then(e=>{n=e})),n}captureSession(e){"string"!=typeof e.release?p.T&&c.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,er.qO)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isCl
16ientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):(0,H.XW)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return p.T&&c.vF.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let t=this._integrations[e.name];v(this,e,this._integrations),t||m(this,[e])}sendEvent(e,t={}){var r,n,i,o;let s,a,u,c;this.emit("beforeSendEvent",e,t);let l=(r=this._dsn,n=this._options._metadata,i=this._options.tunnel,s=ee(n),a=e.type&&"replay_event"!==e.type?e.type:"event",(o=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||o.name,e.sdk.version=e.sdk.version||o.version,e.sdk.integrations=[...e.sdk.integrations||[],...o.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...o.packages||[]]),u=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext,c={event_id:e.event_id,sent_at:new Date().toISOString(),...s&&{sdk:s},...!!i&&r&&{dsn:V(r)},...u&&{trace:(0,C.Ce)({...u})}},delete e.sdkProcessingMetadata,Y(c,[[{type:a},e]]));for(let e of t.attachments||[])l=function(e,t){let[r,n]=e;return[r,[...n,t]]}(l,function(e,t){let r="string"==typeof e.data?Z(e.data,t):e.data;return[(0,C.Ce)({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let h=this._sendEnvelope(l);h&&h.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){var t,r,n;let i,o=(t=this._dsn,r=this._options._metadata,n=this._options.tunnel,i=ee(r),Y({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:V(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this._sendEnvelope(o)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){let n="number"==typeof r?r:1,i=`${e}:${t}`;p.T&&c.vF.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}captureAggregateMetrics(e){var t,r,n;let i,o;p.T&&c.vF.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let s=(t=this._dsn,r=this._options._metadata,n=this._options.tunnel,i={sent_at:new Date().toISOString()},r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&t&&(i.dsn=V(t)),Y(i,[[{type:"statsd",length:(o=function(e){let t="";for(let r of e){let e=Object.entries(r.tags),n=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${n}|T${r.timestamp} 17`}return t}(e)).length},o]]));this._sendEnvelope(s)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){var e;let t,{integrations:r}=this._options;this._integrations=(e=this,t={},r.forEach(r=>{r&&v(e,r,t)}),t),m(this,r),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let r=!1,n=!1,i=t.exception&&t.exception.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,er.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new H.T2(t=>{let r=0,n=setInterval(()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n=(0,f.rm)()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),(0,ei.mG)(i,e,t,r,this,n).then(e=>{if(null===e)return e;let t={...n.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:i,parentSpanId:o,dsc:s}=t;e.contexts={trace:{trace_id:n,span_id:i,parent_span_id:o},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:s||(0,en.l)(n,this,r),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(e=>e.event_id,e=>{p.T&&("log"===e.logLevel?c.vF.log(e.message):c.vF.warn(e))})}_processEvent(e,t,r){let n=this.getOptions(),{sampleRate:i}=n,o=eu(e),s=ea(e),a=e.type||"error",u=`before send for type \`${a}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,H.xg)(new et(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===a?"replay":a,l=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,l).then(r=>{if(null===r)throw this.recordDroppedEvent("event_processor",c,e),new et("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?r:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,G.Qg)(e))return e.then(e=>{if(!(0,G.Qd)(e)&&null!==e)throw new et(r);return e},e=>{throw new et(`${t} rejected with ${e}`)});if(!(0,G.Qd)(e)&&null!==e)throw new et(r);return e}(function(e,t,r){let{beforeSend:n,beforeSendTransaction:i}=e;if(ea(t)&&n)return n(t,r);if(eu(t)&&i){if(t.spans){let e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,r)}return t}(n,r,t),u)}).then(n=>{if(null===n){if(this.recordDroppedEvent("before_send",c,e),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new et(`${u} returned \`null\`, will not send event.`,"log")}let i=r&&r.getSession();if(!o&&i&&this._updateSessionFromEvent(i,n),o){let e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let s=n.transaction_info;return o&&s&&n.transaction!==e.transaction&&(n.transaction_info={...s,source:"custom"}),this.sendEvent(n,t),n}).then(null,e=>{if(e instanceof et)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new et(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 18Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}
18_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{p.T&&c.vF.error("Error while sending event:",e)});p.T&&c.vF.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[r,n]=t.split(":");return{reason:r,category:n,quantity:e[t]}})}}function ea(e){return void 0===e.type}function eu(e){return"transaction"===e.type}var ec=r(57986);function el(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:ec.M})),version:ec.M}),e._metadata=i}var eh=r(89297);let ep="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ed(e,t){var r;let n,i=eg(e,t),o={type:t&&t.name,value:(n=(r=t)&&r.message)?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"};return i.length&&(o.stacktrace={frames:i}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function ef(e,t){return{exception:{values:[ed(e,t)]}}}function eg(e,t){let r=t.stacktrace||t.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(em.test(e.message))return 1}return 0}(t);try{return e(r,n)}catch(e){}return[]}let em=/Minified React error #\d+;/i;function ev(e,t,r,n,i){let o;if((0,G.T2)(t)&&t.error)return ef(e,t.error);if((0,G.BD)(t)||(0,G.W6)(t)){if("stack"in t)o=ef(e,t);else{let i=t.name||((0,G.BD)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;o=ey(e,s,r,n),(0,l.gO)(o,s)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,G.bJ)(t)?ef(e,t):((0,G.Qd)(t)||(0,G.xH)(t)?o=function(e,t,r,n){let i=(0,x.KU)(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:(0,G.xH)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,C.HF)(e),n=t?"promise rejection":"exception";if((0,G.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,G.xH)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:{__serialized__:(0,J.cd)(t,o)}};if(r){let t=eg(e,r);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}(e,t,r,i):(o=ey(e,t,r,n),(0,l.gO)(o,`${t}`,void 0)),(0,l.M6)(o,{synthetic:!0}),o)}function ey(e,t,r,n){let i={};if(n&&r){let n=eg(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}if((0,G.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}let e_=T.OW,eb=0;function ew(e,t={},r){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if((0,C.sp)(e))return e}catch(t){return e}let n=function(){let n=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);let i=n.map(e=>ew(e,t));return e.apply(this,i)}catch(e){throw eb++,setTimeout(()=>{eb--}),(0,x.v4)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,l.gO)(e,void 0,void 0),(0,l.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,x.Cp)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(e){}(0,C.pO)(n,e),(0,C.my)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(e){}return n}class eS extends es{constructor(e){el(e,"browser",["browser"],e_.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&e_.document&&e_.document.addEventListener("visibilitychange",()=>{"hidden"===e_.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){var r,n;let i;return r=this._options.stackParser,n=this._options.attachStacktrace,i=ev(r,e,t&&t.syntheticException||void 0,n),(0,l.M6)(i),i.level="error",t&&t.event_id&&(i.event_id=t.event_id),(0,H.XW)(i)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let o=ey(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,H.XW)(o)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){ep&&c.vF.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:r,dsn:n}){return Y({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:V(n)}},[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}_flushOutcomes(){var e;let t=this._clearOutcomes();if(0===t.length){ep&&c.vF.log("No outcomes to send");return}if(!this._dsn){ep&&c.vF.log("No dsn provided, will not send outcomes");return}ep&&c.vF.log("Sending outcomes:",t);let r=Y((e=this._options.tunnel&&V(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,eh.lu)(),discarded_events:t}]]);this._sendEnvelope(r)}}
18function ek(){"console"in T.OW&&c.Ow.forEach(function(e){e in T.OW.console&&(0,C.GS)(T.OW.console,e,function(t){return c.Z9[e]=t,function(...t){B("console",{args:t,level:e});let r=c.Z9[e];r&&r.apply(T.OW.console,t)}})})}let eC=T.OW;function ex(){if(!eC.document)return;let e=B.bind(null,"dom"),t=eE(e,!0);eC.document.addEventListener("click",t,!1),eC.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=eC[t]&&eC[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,C.GS)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){let n=eE(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch(e){}return t.call(this,r,n,i)}}),(0,C.GS)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}}))})}function eE(e,t=!1){return r=>{var n;if(!r||r._sentryCaptured)return;let i=function(e){try{return e.target}catch(e){return null}}(r);if(n=r.type,"keypress"===n&&(!i||!i.tagName||"INPUT"!==i.tagName&&"TEXTAREA"!==i.tagName&&!i.isContentEditable&&1))return;(0,C.my)(r,"_sentryCaptured",!0),i&&!i._sentryId&&(0,C.my)(i,"_sentryId",(0,l.eJ)());let u="keypress"===r.type?"input":r.type;!function(e){if(e.type!==s)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch(e){}return!0}(r)&&(e({event:r,name:u,global:t}),s=r.type,a=i?i._sentryId:void 0),clearTimeout(o),o=eC.setTimeout(()=>{a=void 0,s=void 0},1e3)}}let eI=T.OW,eO="__sentry_xhr_v3__";function eM(){if(!eI.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;(0,C.GS)(e,"open",function(e){return function(...t){let r=Date.now(),n=(0,G.Kg)(t[0])?t[0].toUpperCase():void 0,i=function(e){if((0,G.Kg)(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!n||!i)return e.apply(this,t);this[eO]={method:n,url:i,request_headers:{}},"POST"===n&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let e=this[eO];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}B("xhr",{args:[n,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,C.GS)(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),(0,C.GS)(this,"setRequestHeader",function(e){return function(...t){let[r,n]=t,i=this[eO];return i&&(0,G.Kg)(r)&&(0,G.Kg)(n)&&(i.request_headers[r.toLowerCase()]=n),e.apply(this,t)}}),e.apply(this,t)}}),(0,C.GS)(e,"send",function(e){return function(...t){let r=this[eO];return r&&(void 0!==t[0]&&(r.body=t[0]),B("xhr",{args:[r.method,r.url],startTimestamp:Date.now(),xhr:this})),e.apply(this,t)}})}function eR(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!D())return!1;if(P(A.fetch))return!0;let e=!1,t=A.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=P(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){R.T&&c.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&(0,C.GS)(T.OW,"fetch",function(e){return function(...t){let{method:r,url:n}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:eA(t),method:eT(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:eA(t),method:eT(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:r,url:n},startTimestamp:Date.now()};return B("fetch",{...i}),e.apply(T.OW,t).then(e=>(B("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw B("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function eT(e,t){return!!e&&"object"==typeof e&&!!e[t]}function eA(e){return"string"==typeof e?e:e?eT(e,"url")?e.url:e.toString?e.toString():"":""}var eD=r(19766);let eP=["fatal","error","warning","log","info","debug"];function eL(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}let eF="Breadcrumbs",eN=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:eF,setupOnce(){},setup(e){var r,n,i,o,s,a,u;let p,d;t.console&&(r=e,j(p="console",function(e){var t;if((0,x.KU)()!==r)return;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":eP.includes(t)?t:"log",message:(0,h.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else n.message=`Assertion failed: ${(0,h.gt)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1);(0,x.ZQ)(n,{input:e.args,level:e.level})}),U(p,ek)),t.dom&&(j("dom",(n=e,i=t.dom,function(e){let t,r;if((0,x.KU)()!==n)return;let o="object"==typeof i?i.serializeAttribute:void 0,s="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;s&&s>1024&&(ep&&c.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof o&&(o=[o]);try{var a;let n=e.event,i=(a=n)&&a.target?n.target:n;t=(0,eD.Hd)(i,{keyAttrs:o,maxStringLength:s}),r=(0,eD.xE)(i)}catch(e){t="<unknown>"}if(0===t.length)return;let u={category:`ui.${e.name}`,message:t};r&&(u.data={"ui.component_name":r}),(0,x.ZQ)(u,{event:e.event,name:e.name,global:e.global})})),U("dom",ex)),t.xhr&&(j("xhr",(o=e,function(e){if((0,x.KU)()!==o)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[eO];if(!t||!r||!n)return;let{method:i,url:s,status_code:a,body:u}=n,c={xhr:e.xhr,input:u,startTimestamp:t,endTimestamp:r};(0,x.ZQ)({category:"xhr",data:{method:i,url:s,status_code:a},type:"http"},c)}
18)),U("xhr",eM)),t.fetch&&(s=e,j(d="fetch",function(e){if((0,x.KU)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let n=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r};(0,x.ZQ)({category:"fetch",data:n,level:"error",type:"http"},i)}else{let n=e.response,i={...e.fetchData,status_code:n&&n.status},o={input:e.args,response:n,startTimestamp:t,endTimestamp:r};(0,x.ZQ)({category:"fetch",data:i,type:"http"},o)}}),U(d,eR)),t.history&&$((a=e,function(e){if((0,x.KU)()!==a)return;let t=e.from,r=e.to,n=eL(e_.location.href),i=t?eL(t):void 0,o=eL(r);i&&i.path||(i=n),n.protocol===o.protocol&&n.host===o.host&&(r=o.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),(0,x.ZQ)({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on&&e.on("beforeSendEvent",(u=e,function(e){(0,x.KU)()===u&&(0,x.ZQ)({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,l.$X)(e)},{event:e})}))}}};y(eF,eN);let ej="Dedupe",eU=()=>{let e;return{name:ej,setupOnce(){},processEvent(t){if(t.type)return t;try{var r,n,i,o,s,a;let u,l,h,p;if(r=t,(n=e)&&(i=r,o=n,u=i.message,l=o.message,(u||l)&&(!u||l)&&(u||!l)&&u===l&&eq(i,o)&&eB(i,o)&&1||(s=r,a=n,h=e$(a),p=e$(s),h&&p&&h.type===p.type&&h.value===p.value&&eq(s,a)&&eB(s,a))))return ep&&c.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function eB(e,t){let r=ez(e),n=ez(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function eq(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch(e){return!1}}function e$(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ez(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}y(ej,eU);let eW=null;function eV(){eW=T.OW.onerror,T.OW.onerror=function(e,t,r,n,i){return B("error",{column:n,error:i,line:r,msg:e,url:t}),!!eW&&!eW.__SENTRY_LOADER__&&eW.apply(this,arguments)},T.OW.onerror.__SENTRY_INSTRUMENTED__=!0}let eK=null;function eG(){eK=T.OW.onunhandledrejection,T.OW.onunhandledrejection=function(e){return B("unhandledrejection",e),!eK||!!eK.__SENTRY_LOADER__||eK.apply(this,arguments)},T.OW.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let eH="GlobalHandlers",eJ=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:eH,setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;let i,o;t.onerror&&(r=e,j(i="error",e=>{var t,n,i,o;let s,a,u,{stackParser:c,attachStacktrace:l}=eZ();if((0,x.KU)()!==r||eb>0)return;let{msg:h,url:p,line:d,column:f,error:g}=e,m=void 0===g&&(0,G.Kg)(h)?(t=h,n=p,i=d,o=f,s=(0,G.T2)(t)?t.message:t,a="Error",(u=s.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i))&&(a=u[1],s=u[2]),eY({exception:{values:[{type:a,value:s}]}},n,i,o)):eY(ev(c,g||h,void 0,l,!1),p,d,f);m.level="error",(0,x.r)(m,{originalException:g,mechanism:{handled:!1,type:"onerror"}})}),U(i,eV),eX("onerror")),t.onunhandledrejection&&(n=e,j(o="unhandledrejection",e=>{var t;let{stackParser:r,attachStacktrace:i}=eZ();if((0,x.KU)()!==n||eb>0)return;let o=function(e){if((0,G.sO)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(e),s=(0,G.sO)(o)?(t=o,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):ev(r,o,void 0,i,!0);s.level="error",(0,x.r)(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}),U(o,eG),eX("onunhandledrejection"))}}};function eY(e,t,r,n){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},u=a.frames=a.frames||[],c=isNaN(parseInt(n,10))?void 0:n,l=isNaN(parseInt(r,10))?void 0:r,h=(0,G.Kg)(t)&&t.length>0?t:(0,eD.$N)();return 0===u.length&&u.push({colno:c,filename:h,function:"?",in_app:!0,lineno:l}),e}function eX(e){ep&&c.vF.log(`Global Handler attached: ${e}`)}function eZ(){let e=(0,x.KU)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}y(eH,eJ);let eQ="HttpContext",e0=()=>({name:eQ,setupOnce(){},preprocessEvent(e){if(!e_.navigator&&!e_.location&&!e_.document)return;let t=e.request&&e.request.url||e_.location&&e_.location.href,{referrer:r}=e_.document||{},{userAgent:n}=e_.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function e1(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0}
18,exception_id:t}}function e2(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}y(eQ,e0);let e3="LinkedErrors",e4=(e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:e3,setupOnce(){},preprocessEvent(e,n,i){let o=i.getOptions();!function(e,t,r=250,n,i,o,s){var a,u;if(!o.exception||!o.exception.values||!s||!(0,G.tH)(s.originalException,Error))return;let c=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;c&&(o.exception.values=(a=function e(t,r,n,i,o,s,a,u){if(s.length>=n+1)return s;let c=[...s];if((0,G.tH)(i[o],Error)){e1(a,u);let s=t(r,i[o]),l=c.length;e2(s,o,l,u),c=e(t,r,n,i[o],o,[s,...c],s,l)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,G.tH)(i,Error)){e1(a,u);let l=t(r,i),h=c.length;e2(l,`errors[${s}]`,h,u),c=e(t,r,n,i,o,[l,...c],l,h)}}),c}(e,t,i,s.originalException,n,o.exception.values,c,0),u=r,a.map(e=>(e.value&&(e.value=(0,h.xv)(e.value,u)),e))))}(ed,o.stackParser,o.maxValueLength,r,t,e,n)}}};y(e3,e4);let e6=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],e5="TryCatch",e9=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:e5,setupOnce(){t.setTimeout&&(0,C.GS)(e_,"setTimeout",e8),t.setInterval&&(0,C.GS)(e_,"setInterval",e8),t.requestAnimationFrame&&(0,C.GS)(e_,"requestAnimationFrame",e7),t.XMLHttpRequest&&"XMLHttpRequest"in e_&&(0,C.GS)(XMLHttpRequest.prototype,"send",te);let e=t.eventTarget;e&&(Array.isArray(e)?e:e6).forEach(tt)}}};function e8(e){return function(...t){let r=t[0];return t[0]=ew(r,{mechanism:{data:{function:(0,M.qQ)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function e7(e){return function(t){return e.apply(this,[ew(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,M.qQ)(e)},handled:!1,type:"instrument"}})])}}function te(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,C.GS)(r,e,function(t){let r={mechanism:{data:{function:e,handler:(0,M.qQ)(t)},handled:!1,type:"instrument"}},n=(0,C.sp)(t);return n&&(r.mechanism.data.handler=(0,M.qQ)(n)),ew(t,r)})}),e.apply(this,t)}}function tt(e){let t=e_[e]&&e_[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&((0,C.GS)(t,"addEventListener",function(t){return function(r,n,i){try{"function"==typeof n.handleEvent&&(n.handleEvent=ew(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,M.qQ)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,ew(n,{mechanism:{data:{function:"addEventListener",handler:(0,M.qQ)(n),target:e},handled:!1,type:"instrument"}}),i])}}),(0,C.GS)(t,"removeEventListener",function(e){return function(t,r,n){try{let i=r&&r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch(e){}return e.call(this,t,r,n)}}))}function tr(e,t,r,n){let i={filename:e,function:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}y(e5,e9);let tn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ti=/\((\S*)(?::(\d+))(?::(\d+))\)/,to=[30,e=>{let t=tn.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=ti.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,r]=tp(t[1]||"?",t[2]);return tr(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],ts=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ta=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tu=[50,e=>{let t=ts.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=ta.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=tp(r,e),tr(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}
18],tc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tl=[40,e=>{let t=tc.exec(e);return t?tr(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],th=(0,M.gd)(to,tu,tl),tp=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function td(e,t,r=function(e){let t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return(0,H.xg)(new et("Not adding Promise because buffer limit was reached."));let i=n();return -1===t.indexOf(i)&&t.push(i),i.then(()=>r(i)).then(null,()=>r(i).then(null,()=>{})),i},drain:function(e){return new H.T2((r,n)=>{let i=t.length;if(!i)return r(!0);let o=setTimeout(()=>{e&&e>0&&r(!1)},e);t.forEach(e=>{(0,H.XW)(e).then(()=>{--i||(clearTimeout(o),r(!0))},n)})})}}}(e.bufferSize||30)){let n={};function i(i){let o=[];if(X(i,(t,r)=>{let i=Q[r];if(function(e,t,r=Date.now()){return(e[t]||e.all||0)>r}(n,i)){let n=tf(t,r);e.recordDroppedEvent("ratelimit_backoff",i,n)}else o.push(t)}),0===o.length)return(0,H.XW)();let s=Y(i[0],o),a=t=>{X(s,(r,n)=>{let i=tf(r,n);e.recordDroppedEvent(t,Q[n],i)})};return r.add(()=>t({body:function(e,t){let[r,n]=e,i=JSON.stringify(r);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Z(i,t),e]:i.push("string"==typeof e?Z(e,t):e)}for(let e of n){let[t,r]=e;if(o(` 19${JSON.stringify(t)} 20`),"string"==typeof r||r instanceof Uint8Array)o(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,J.S8)(r))}o(e)}}return"string"==typeof i?i:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(i)}(s,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&p.T&&c.vF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=function(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},o=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=n+a):i[e]=n+a;else i.all=n+a}else s?i.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(s,n):429===t&&(i.all=n+6e4);return i}(n,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof et)return p.T&&c.vF.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,H.XW)();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>r.drain(e)}}function tf(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function tg(e,t=function(){if(u)return u;if(P(e_.fetch))return u=e_.fetch.bind(e_);let e=e_.document,t=e_.fetch;if(e&&"function"==typeof e.createElement)try{let r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);let n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(e){ep&&c.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return u=t.bind(e_)}()){let r=0,n=0;return td(e,function(i){let o=i.body.length;r+=o,n++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{return t(e.url,s).then(e=>(r-=o,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return u=void 0,r-=o,n--,(0,H.xg)(e)}})}function tm(e){return td(e,function(t){return new H.T2((r,n)=>{let i=new XMLHttpRequest;for(let t in i.onerror=n,i.onreadystatechange=()=>{4===i.readyState&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}let tv=[S(),O(),e9(),eN(),eJ(),e4(),eU(),e0()];function ty(e){let t={...e};el(t,"react"),function(e={}){var t,r;let n,i;void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...tv]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),e_.SENTRY_RELEASE&&e_.SENTRY_RELEASE.id&&(e.release=e_.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);let o={...e,stackParser:(0,M.vk)(e.stackParser||th),integrations:function(e){let t,r=e.defaultIntegrations||[],n=e.integrations;
20r.forEach(e=>{e.isDefaultInstance=!0});let i=(t={},(Array.isArray(n)?[...r,...n]:"function"==typeof n?(0,l.k9)(n(r)):r).forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.keys(t).map(e=>t[e])),o=function(e,t){for(let r=0;r<e.length;r++)if(!0===t(e[r]))return r;return -1}(i,e=>"Debug"===e.name);if(-1!==o){let[e]=i.splice(o,1);i.push(e)}return i}(e),transport:e.transport||(D()?tg:tm)};!0===o.debug&&(p.T?c.vF.enable():(0,c.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,x.o5)().update(o.initialScope),t=n=new eS(o),(i=(0,f.BF)().getStackTop()).client=t,i.scope.setClient(t),(r=n).init?r.init():r.setupIntegrations&&r.setupIntegrations(),e.autoSessionTracking&&function(){if(void 0===e_.document){ep&&c.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,x.J0)({ignoreDuration:!0}),(0,x.J5)(),$(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,x.J0)({ignoreDuration:!0}),(0,x.J5)())})}()}(t)}},19766(e,t,r){r.d(t,{$N:()=>s,Hd:()=>o,xE:()=>a});var n=r(73816);let i=(0,r(16341).VZ)();function o(e,t={}){if(!e)return"<unknown>";try{let r,o=e,s=[],a=0,u=0,c=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&a++<5&&(r=function(e,t){let r,o,s,a,u,c=[];if(!e||!e.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;c.push(e.tagName.toLowerCase());let l=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(l&&l.length)l.forEach(e=>{c.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&c.push(`#${e.id}`),(r=e.className)&&(0,n.Kg)(r))for(u=0,o=r.split(/\s+/);u<o.length;u++)c.push(`.${o[u]}`);let h=["aria-label","type","name","title","alt"];for(u=0;u<h.length;u++)s=h[u],(a=e.getAttribute(s))&&c.push(`[${s}="${a}"]`);return c.join("")}(o,c),"html"!==r&&(!(a>1)||!(u+3*s.length+r.length>=l)));)s.push(r),u+=r.length,o=o.parentNode;return s.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(){try{return i.document.location.href}catch(e){return""}}function a(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}},5644(e,t,r){r.d(t,{T:()=>n});let n="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},73816(e,t,r){r.d(t,{BD:()=>a,Kg:()=>c,L2:()=>b,NF:()=>l,Qd:()=>p,Qg:()=>m,T2:()=>s,W6:()=>u,bJ:()=>i,gd:()=>g,mE:()=>v,sO:()=>h,tH:()=>_,vq:()=>f,xH:()=>d,yr:()=>y});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function h(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return o(e,"Object")}function d(e){return"u">typeof Event&&_(e,Event)}function f(e){return"u">typeof Element&&_(e,Element)}function g(e){return o(e,"RegExp")}function m(e){return!!(e&&e.then&&"function"==typeof e.then)}
20function v(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e){return"number"==typeof e&&e!=e}function _(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},17412(e,t,r){let n,i;r.d(t,{Ow:()=>a,Z9:()=>u,pq:()=>c,vF:()=>l});var o=r(5644),s=r(16341);let a=["debug","info","warn","error","log","assert","trace"],u={};function c(e){if(!("console"in s.OW))return e();let t=s.OW.console,r={},n=Object.keys(u);n.forEach(e=>{let n=u[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let l=(n=!1,i={enable:()=>{n=!0},disable:()=>{n=!1},isEnabled:()=>n},o.T?a.forEach(e=>{i[e]=(...t)=>{n&&c(()=>{s.OW.console[e](`Sentry Logger [${e}]:`,...t)})}}):a.forEach(e=>{i[e]=()=>void 0}),i)},6936(e,t,r){r.d(t,{$X:()=>a,GR:()=>l,M6:()=>c,eJ:()=>o,gO:()=>u,k9:()=>h});var n=r(68411),i=r(16341);function o(){let e=i.OW,t=e.crypto||e.msCrypto,r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&r())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function a(e){let{message:t,event_id:r}=e;if(t)return t;let n=s(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function u(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function c(e,t){let r=s(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n&&n.data,...t.data};r.mechanism.data=e}}function l(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.my)(e,"__sentry_captured__",!0)}catch(e){}return!1}function h(e){return Array.isArray(e)?e:[e]}},24407(e,t,r){r.d(t,{cd:()=>function e(t,r=3,n=102400){let i=s(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i},S8:()=>s});var n=r(73816),i=r(68411),o=r(83917);function s(e,t=100,r=Infinity){try{return function e(t,r,s=Infinity,a=Infinity,u=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++)if(t[e]===r)return!0;return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}()){let[c,l]=u;if(null==r||["number","boolean","string"].includes(typeof r)&&!(0,n.yr)(r))return r;let h=function(e,t){try{var r;let i;if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("u">typeof globalThis&&t===globalThis)return"[Global]";if("u">typeof window&&t===window)return"[Window]";if("u">typeof document&&t===document)return"[Document]";if((0,n.L2)(t))return"[VueViewModel]";if((0,n.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,o.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let s=(r=t,(i=Object.getPrototypeOf(r))?i.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(s))return`[HTMLElement: ${s}]`;return`[object ${s}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!h.startsWith("[object "))return h;if(r.__sentry_skip_normalization__)return r;let p="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:s;if(0===p)return h.replace("object ","");if(c(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,p-1,a,u)}catch(e){}let d=Array.isArray(r)?[]:{},f=0,g=(0,i.W4)(r);for(let t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(f>=a){d[t]="[MaxProperties ~]";break}let r=g[t];d[t]=e(t,r,p-1,a,u),f++}return l(r),d}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},68411(e,t,r){r.d(t,{Ce:()=>v,GS:()=>u,HF:()=>m,W4:()=>d,my:()=>c,pO:()=>l,sp:()=>h,u4:()=>p});
20var n=r(19766),i=r(5644),o=r(73816),s=r(17412),a=r(39653);function u(e,t,r){if(!(t in e))return;let n=e[t],i=r(n);"function"==typeof i&&l(i,n),e[t]=i}function c(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){i.T&&s.vF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,c(e,"__sentry_original__",t)}catch(e){}}function h(e){return e.__sentry_original__}function p(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function d(e){if((0,o.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...g(e)};if(!(0,o.xH)(e))return e;{let t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...g(e)};return"u">typeof CustomEvent&&(0,o.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function f(e){try{return(0,o.vq)(e)?(0,n.Hd)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function g(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function m(e,t=40){let r=Object.keys(d(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,a.xv)(r[0],t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t)){if(e===r.length)return n;return(0,a.xv)(n,t)}}return""}function v(e){return function e(t,r){if(function(e){if(!(0,o.Qd)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let n=r.get(t);if(void 0!==n)return n;let i={};for(let n of(r.set(t,i),Object.keys(t)))void 0!==t[n]&&(i[n]=e(t[n],r));return i}if(Array.isArray(t)){let n=r.get(t);if(void 0!==n)return n;let i=[];return r.set(t,i),t.forEach(t=>{i.push(e(t,r))}),i}return t}(e,new Map)}},83917(e,t,r){r.d(t,{gd:()=>o,qQ:()=>u,vk:()=>s});let n=/\(error: (.*)\)/,i=/captureMessage|captureException/;function o(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0)=>{let o=[],s=e.split("\n");for(let e=r;e<s.length;e++){let r=s[e];if(r.length>1024)continue;let i=n.test(r)?r.replace(n,"$1"):r;if(!i.match(/\S*Error: /)){for(let e of t){let t=e(i);if(t){o.push(t);break}}if(o.length>=50)break}}var a=o;if(!a.length)return[];let u=Array.from(a);return/sentryWrapped/.test(u[u.length-1].function||"")&&u.pop(),u.reverse(),i.test(u[u.length-1].function||"")&&(u.pop(),i.test(u[u.length-1].function||"")&&u.pop()),u.slice(0,50).map(e=>({...e,filename:e.filename||u[u.length-1].filename,function:e.function||"?"}))}}function s(e){return Array.isArray(e)?o(...e):e}let a="<anonymous>";function u(e){try{if(!e||"function"!=typeof e)return a;return e.name||a}catch(e){return a}}},39653(e,t,r){r.d(t,{Xr:()=>s,gt:()=>o,xv:()=>i});var n=r(73816);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,n.L2)(i)?r.push("[VueViewModel]"):r.push(String(i))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function s(e,t=[],r=!1){return t.some(t=>(function(e,t,r=!1){return!!(0,n.Kg)(e)&&((0,n.gd)(t)?t.test(e):!!(0,n.Kg)(t)&&(r?e===t:e.includes(t)))})(e,t,r))}},60690(e,t,r){r.d(t,{T2:()=>u,XW:()=>s,xg:()=>a});var n,i,o=r(73816);function s(e){return new u(t=>{t(e)})}function a(e){return new u((t,r)=>{r(e)})}(n=i||(i={}))[n.PENDING=0]="PENDING",n[n.RESOLVED=1]="RESOLVED",n[n.REJECTED=2]="REJECTED";class u{constructor(e){u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new u((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new u((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{i?r(n):t(n)})})}__init(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init2(){this._reject=e=>
20{this._setResult(i.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,o.Qg)(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},89297(e,t,r){r.d(t,{lu:()=>i,zf:()=>o});var n=r(16341);function i(){return Date.now()/1e3}let o=function(){let{performance:e}=n.OW;if(!e||!e.now)return i;let t=Date.now()-e.now(),r=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/1e3}();(()=>{let{performance:e}=n.OW;if(!e||!e.now)return;let t=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,o=e.timing&&e.timing.navigationStart,s="number"==typeof o?Math.abs(o+t-r):36e5;if((i<36e5||s<36e5)&&i<=s)return e.timeOrigin})()},16341(e,t,r){function n(e){return e&&e.Math==Math?e:void 0}r.d(t,{BY:()=>s,OW:()=>i,VZ:()=>o});let i="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof globalThis&&n(globalThis)||function(){return this}()||{};function o(){return i}function s(e,t,r){let n=r||i,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}},76751(e,t,r){if(r.r(t),r.d(t,{default:()=>lv}),"u"<typeof window){var n,i,o,s,a,u,c,l,h,p,d,f,g,m,v,y,_,b,w={hostname:""};o7={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:w,referrer:""},screen:{width:0,height:0},location:w,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else o7=window;var S={DEBUG:!1,LIB_VERSION:"2.78.0"},k="__mp_targeting",C="__mp_recorder",x="__MP_TARGETING_FILENAME__";function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(e){r(e);return}a.done?t(u):Promise.resolve(u).then(n,i)}function O(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){I(o,n,i,s,a,"next",e)}function a(e){I(o,n,i,s,a,"throw",e)}s(void 0)})}}function M(e,t,r){return(M=U()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&F(i,r.prototype),i}).apply(null,arguments)}function R(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}function P(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function L(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function j(e){var t="function"==typeof Map?new Map:void 0;return(j=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return M(e,arguments,A(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),F(r,e)})(e)}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(U=function(){return!!e})()}function B(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return E(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E(e,void 0)}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(e,t){var r,n,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(o){return function(a){var u=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function $(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
20if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var z=Object.defineProperty,W=function(e,t,r){var n;return n=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t,n in e?z(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},V=Object.defineProperty,K=function(e,t,r){var n;return n=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t,n in e?V(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},G=((o0=G||{})[o0.Document=0]="Document",o0[o0.DocumentType=1]="DocumentType",o0[o0.Element=2]="Element",o0[o0.Text=3]="Text",o0[o0.CDATA=4]="CDATA",o0[o0.Comment=5]="Comment",o0),H={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},J={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Y={};function X(e){if(Y[e])return Y[e];var t=globalThis[e],r=t.prototype,n=e in H?H[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in J?J[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return Y[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;if(document.body.removeChild(a),!c)return r;return Y[e]=c}catch(e){return r}}var Z={};function Q(e,t,r){var n,i=e+"."+String(r);if(Z[i])return Z[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(X(e),r))?void 0:n.get;return o?(Z[i]=o,o.call(t)):t[r]}var ee=function(e){return Q("Node",e,"childNodes")},et=function(e){return Q("Node",e,"parentNode")},er=function(e){return Q("Node",e,"parentElement")},en=function(e){return Q("Node",e,"textContent")},ei=function(e){return e&&"shadowRoot"in e?Q("Element",e,"shadowRoot"):null};function eo(e){return e.nodeType===e.ELEMENT_NODE}function es(e){var t,r=e&&"host"in e&&"mode"in e&&((t=e)&&"host"in t?Q("ShadowRoot",t,"host"):null)||null;return!!(r&&"shadowRoot"in r&&ei(r)===e)}function ea(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function eu(e){try{var t,r=e.rules||e.cssRules;if(!r)return null;var n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),(t=Array.from(r,function(e){return ec(e,n)}).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function ec(e,t){if("styleSheet"in e){var r;try{r=eu(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?eb(r,e.styleSheet.href):r}var n=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?eb(n,t):n}var el=function(){function e(){K(this,"idNodeMap",new Map),K(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function eh(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=i&&ep(i);return(r[n.toLowerCase()]||u&&r[u])&&(a=s?s(a,t):"*".repeat(a.length)),a}function ep(e){return e.toLowerCase()}var ed="__rrweb_original__";function ef(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ep(t):null}function eg(e,t){try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var em=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ev=/^(?:[a-z+]+:)?\/\//i,ey=/^www\..*/i,e_=/^(data:)([^,]*),(.*)/i;function eb(e,t){return(e||"").replace(em,function(e,r,n,i,o,s){var a=n||o||s,u=r||i||"";if(!a)return e;
20if(ev.test(a)||ey.test(a)||e_.test(a))return"url("+u+a+u+")";if("/"===a[0])return"url("+u+((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a)+u+")";var c=t.split("/"),l=a.split("/");c.pop();for(var h,p,d=B(l);!(p=d()).done;){var f=p.value;"."!==f&&(".."===f?c.pop():c.push(f))}return"url("+u+c.join("/")+u+")"})}function ew(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var eS=1,ek=RegExp("[^a-z0-9-_:]");function eC(){return eS++}var ex=/^[^ \t\n\r\u000c]+/,eE=/^[, \t\n\r\u000c]+/,eI=new WeakMap;function eO(e,t){return t&&""!==t.trim()?eM(e,t):t}function eM(e,t){var r=eI.get(e);if(r||(r=e.createElement("a"),eI.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eR(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return eO(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return eO(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(eE),!(r>=t.length);){var o=n(ex);if(","===o.slice(-1))o=eO(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=eO(e,o);for(var a=!1;;){var u=t.charAt(r);if(""===u){i.push((o+s).trim());break}if(a)")"===u&&(a=!1);else if(","===u){r+=1,i.push((o+s).trim());break}else"("===u&&(a=!0);s+=u,r+=1}}}return i.join(", ")}(e,n);if("style"===r)return eb(n,eM(e));else if("object"===t&&"data"===r)return eO(e,n);return n}function eT(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eA(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eA(et(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&eA(et(e),t,r)}function eD(e,t,r,n){var i;if(eo(e)){if(!ee(i=e).length)return!1}else{if(null===er(e))return!1;i=er(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(eA(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function eP(e){return null==e?"":e.toLowerCase()}function eL(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,u=t.skipChild,c=void 0!==u&&u,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,d=void 0===p?{}:p,f=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,b=void 0!==_&&_,w=t.recordCanvas,S=void 0!==w&&w,k=t.onSerialize,C=t.onIframeLoad,x=t.iframeLoadTimeout,E=void 0===x?5e3:x,I=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,M=void 0===O?5e3:O,R=t.keepIframeSrcFn,T=void 0===R?function(){return!1}:R,A=t.newlyAddedElement,D=t.cssCaptured,L=t.needsMask,F=t.preserveWhiteSpace,N=void 0===F||F;L||(L=eD(e,s,a,void 0===L));var j=function(e,t){var r,n,i,o,s,a,u,c,l,h,p,d=t.doc,f=t.mirror,g=t.blockClass,m=t.blockSelector,v=t.needsMask,y=t.inlineStylesheet,_=t.maskInputOptions,b=t.maskTextFn,w=t.maskInputFn,S=t.dataURLOptions,k=t.inlineImages,C=t.recordCanvas,x=t.keepIframeSrcFn,E=t.newlyAddedElement,I=t.cssCaptured,O=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(d,f);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:G.Document,childNodes:[],compatMode:e.compatMode};return{type:G.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:G.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:O};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,u=void 0===a?{}:a,c=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,d=t.recordCanvas,f=t.keepIframeSrcFn,g=t.newlyAddedElement,m=t.rootId,v=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o),y=function(e){if(P(e,HTMLFormElement))return"form";var t=ep(e.tagName);return ek.test(t)?"div":t}(e),_={},b=e.attributes.length,w=0;w<b;w++){var S=e.attributes[w];eT(y,S.name,S.value)||(_[S.name]=eR(n,y,ep(S.name),S.value))}if("link"===y&&s){var k=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;k&&(C=eu(k)),C&&(delete _.rel,delete _.href,_._cssText=C)}if("style"===y&&e.sheet){var x=eu(e.sheet);x&&(e.childNodes.length>1&&(x=(function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e){for(var s=ew(e,r),a=s.length/e.length,u=1;u<n.length;u++)if(n[u].textContent&&"string"==typeof n[u].textContent){for(var c=ew(n[u].textContent,r),l=3;l<c.length&&(c[l].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,l),1));l++);for(;l<c.length;l++){var h=c.substring(0,l),p=s.split(h),d=-1;if(2===p.length)d=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[u-1].textContent)d=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}
20else l===c.length-1&&(d=s.indexOf(h));if(p.length>=2&&l>100){var f=n[u-1].textContent;if(f&&"string"==typeof f){var g=ew(f).length;d=s.indexOf(h,g)}-1===d&&(d=p[0].length)}if(-1!==d){for(var m=Math.floor(d/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=ew(e.substring(0,m),r);if(v.length===d){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(d);break}v.length<d?m+=Math.max(1,Math.floor((d-v.length)/a)):m-=Math.max(1,Math.floor((v.length-d)*a))}break}}}}return i.push(e),i})(x,e).join("/* rr_split */")),_._cssText=x)}if("input"===y||"textarea"===y||"select"===y){var E=e.value,I=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&E?_.value=eh({element:e,type:ef(e),tagName:y,value:E,maskInputOptions:u,maskInputFn:c}):I&&(_.checked=I)}if("option"===y&&(e.selected&&!u.select?_.selected=!0:delete _.selected),"dialog"===y&&e.open&&(_.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===y&&d){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData;if(new Uint32Array((ed in i?i[ed]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0}(e)&&(_.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var O=e.toDataURL(h.type,h.quality),M=n.createElement("canvas");M.width=e.width,M.height=e.height,O!==M.toDataURL(h.type,h.quality)&&(_.rr_dataURL=O)}}if("img"===y&&p){st||(sr=(st=n.createElement("canvas")).getContext("2d"));var R=e.currentSrc||e.getAttribute("src")||"<unknown-src>",T=e.crossOrigin,A=function(){e.removeEventListener("load",A);try{st.width=e.naturalWidth,st.height=e.naturalHeight,sr.drawImage(e,0,0),_.rr_dataURL=st.toDataURL(h.type,h.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?A():e.addEventListener("load",A);return}console.warn("Cannot inline img src="+R+"! Error: "+t)}"anonymous"===e.crossOrigin&&(T?_.crossOrigin=T:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?A():e.addEventListener("load",A)}if("audio"===y||"video"===y){var D=_;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}if(!(void 0!==g&&g)&&(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop)),v){var L=e.getBoundingClientRect(),F=L.width,N=L.height;_={class:_.class,rr_width:""+F+"px",rr_height:""+N+"px"}}"iframe"!==y||f(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:G.Element,tagName:y,attributes:_,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:v,rootId:m,isCustom:r}}(e,{doc:d,blockClass:g,blockSelector:m,inlineStylesheet:y,maskInputOptions:void 0===_?{}:_,maskInputFn:w,dataURLOptions:void 0===S?{}:S,inlineImages:k,recordCanvas:C,keepIframeSrcFn:x,newlyAddedElement:void 0!==E&&E,rootId:O});case e.TEXT_NODE:return r=e,i=(n={doc:d,needsMask:v,maskTextFn:b,rootId:O,cssCaptured:void 0!==I&&I}).needsMask,o=n.maskTextFn,s=n.rootId,a=n.cssCaptured,c=(u=et(r))&&u.tagName,l="",h="STYLE"===c||void 0,(p="SCRIPT"===c||void 0)?l="SCRIPT_PLACEHOLDER":!a&&(l=en(r),h&&l&&(l=eb(l,eM(n.doc)))),!h&&!p&&l&&i&&(l=o?o(l,er(r)):l.replace(/[\S]/g,"*")),{type:G.Text,textContent:l||"",rootId:s};case e.CDATA_SECTION_NODE:return{type:G.CDATA,textContent:"",rootId:O};case e.COMMENT_NODE:return{type:G.Comment,textContent:en(e)||"",rootId:O};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:L,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:void 0!==A&&A,cssCaptured:void 0!==D&&D});if(!j)return console.warn(e,"not serialized"),null;W=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===G.Comment)return!0;if(e.type===G.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eg(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eP(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eP(e.attributes.name)||"icon"===eP(e.attributes.rel)||"apple-touch-icon"===eP(e.attributes.rel)||"shortcut icon"===eP(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eP(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eP(e.attributes.property).match(/^(og|twitter|fb):/)||eP(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eP(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eP(e.attributes.name)||"googlebot"===eP(e.attributes.name)||"bingbot"===eP(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eP(e.attributes.name)||"generator"===eP(e.attributes.name)||"framework"===eP(e.attributes.name)||"publisher"===eP(e.attributes.name)||"progid"===eP(e.attributes.name)||eP(e.attributes.property).match(/^article:/)||eP(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eP(e.attributes.name)||"yandex-verification"===eP(e.attributes.name)||"csrf-token"===eP(e.attributes.name)||"p:domain_verify"===eP(e.attributes.name)||"verify-v1"===eP(e.attributes.name)||"verification"===eP(e.attributes.name)||"shopify-checkout-api-token"===eP(e.attributes.name)))return!0}}return!1}(j,m)&&(N||j.type!==G.Text||j.textContent.replace(/^\s+|\s+$/gm,"").length)?eC():-2;var U=Object.assign(j,{id:W});if(n.add(e,U),-2===W)return null;
20k&&k(e);var q=!c;if(U.type===G.Element){q=q&&!U.needBlock,delete U.needBlock;var $=ei(e);$&&ea($)&&(U.isShadowHost=!0)}if((U.type===G.Document||U.type===G.Element)&&q){m.headWhitespace&&U.type===G.Element&&"head"===U.tagName&&(N=!1);var z={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:L,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:S,preserveWhiteSpace:N,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:M,keepIframeSrcFn:T,cssCaptured:!1};if(U.type===G.Element&&"textarea"===U.tagName&&void 0!==U.attributes.value);else{U.type===G.Element&&void 0!==U.attributes._cssText&&"string"==typeof U.attributes._cssText&&(z.cssCaptured=!0);for(var W,V,K=B(Array.from(ee(e)));!(V=K()).done;){var H=eL(V.value,z);H&&U.childNodes.push(H)}}var J=null;if(eo(e)&&(J=ei(e)))for(var Y,X=B(Array.from(ee(J)));!(Y=X()).done;){var Z=eL(Y.value,z);Z&&(ea(J)&&(Z.isShadow=!0),U.childNodes.push(Z))}}var Q=et(e);return Q&&es(Q)&&ea(Q)&&(U.isShadow=!0),U.type===G.Element&&"iframe"===U.tagName&&function(e,t,r){var n,i=e.contentWindow;if(i){var o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var s=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(s),o=!0,t()});return}var a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,function(){var t=e.contentDocument;if(t&&C){var r=eL(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:L,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:S,preserveWhiteSpace:N,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:M,keepIframeSrcFn:T});r&&C(e,r)}},E),U.type===G.Element&&"link"===U.tagName&&"string"==typeof U.attributes.rel&&("stylesheet"===U.attributes.rel||"preload"===U.attributes.rel&&"string"==typeof U.attributes.href&&"css"===eg(U.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(I){var t=eL(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:L,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:S,preserveWhiteSpace:N,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:M,keepIframeSrcFn:T});t&&I(e,t)}},M),U}var eF={exports:{}},eN=String,ej=function(){return{isColorSupported:!1,reset:eN,bold:eN,dim:eN,italic:eN,underline:eN,inverse:eN,hidden:eN,strikethrough:eN,black:eN,red:eN,green:eN,yellow:eN,blue:eN,magenta:eN,cyan:eN,white:eN,gray:eN,bgBlack:eN,bgRed:eN,bgGreen:eN,bgYellow:eN,bgBlue:eN,bgMagenta:eN,bgCyan:eN,bgWhite:eN}};eF.exports=ej(),eF.exports.createColors=ej;var eU=eF.exports,eB=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return P(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eq=function(e){function t(r,n,i,o,s,a){var u;return(u=e.call(this,r)||this).name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}D(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=eU.isColorSupported),eB&&e&&(i=eB(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=eU.createColors(!0),l=c.bold,h=c.gray,p=c.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-u)+" | ";if(o===n.line){var c=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+c+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(j(Error));eq.default=eq;var e$={};e$.isClean=Symbol("isClean"),e$.my=Symbol("my");var ez={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},eW=function(){function e(e){this.builder=e}var t=e.prototype;
20return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return ez[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=ez[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function eV(e,t){new eW(t).stringify(e)}eW.default=eW,eV.default=eV;var eK=e$.isClean,eG=e$.my,eH=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[eK]=!1,this[eG]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=B(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":N(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new eq(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[eK]){this[eK]=!1;for(var e=this;e=e.parent;)e[eK]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
20else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new eW().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=B(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":N(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=eV),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},R(e,[{key:"proxyOf",get:function(){return this}}]),e}();eH.default=eH;var eJ=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=T({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return D(t,e),R(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(eH);eJ.default=eJ;var eY=eB.SourceMapConsumer,eX=eB.SourceMapGenerator,eZ=eB.existsSync,eQ=eB.readFileSync,e0=eB.dirname,e1=eB.join,e2=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=e0(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new eY(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":N(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
20if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=e0(e),eZ(e))return this.mapFile=e,eQ(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(P(t,eY))return eX.fromSourceMap(t).toString();else if(P(t,eX))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=e1(e0(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();e2.default=e2;var e3=eB.SourceMapConsumer,e4=eB.SourceMapGenerator,e6=eB.fileURLToPath,e5=eB.pathToFileURL,e9=eB.isAbsolute,e8=eB.resolve,e7=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
20,te=Symbol("fromOffsetCache"),tt=!!(e3&&e4),tr=!!(e8&&e9),tn=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":N(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!tr||/^\w+:\/\//.test(t.from)||e9(t.from)?this.file=t.from:this.file=e8(t.from)),tr&&tt){var r=new e2(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+e7(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":N(t))==="object"){var i,o,s,a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new eq(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new eq(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(e5&&(i.input.url=e5(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[te])a=this[te];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[te]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,u,c=a.length-2;o<c;)if(e<a[u=o+(c-o>>1)])c=u-1;else if(e>=a[u+1])o=u+1;else{o=u;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:e8(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=e9(a.source)?e5(a.source):new URL(a.source,this.map.consumer().sourceRoot||e5(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(e6)u.file=e6(o);else throw Error("file: protocol is not available in this PostCSS build");var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},R(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();tn.default=tn,eB&&eB.registerInput&&eB.registerInput(tn);var ti=eB.SourceMapConsumer,to=eB.SourceMapGenerator,ts=eB.dirname,ta=eB.relative,tu=eB.resolve,tc=eB.sep,tl=eB.pathToFileURL,th=!!(ti&&to),tp=!!(ts&&tu&&ta&&tc),td=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=B(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||ts(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new ti(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),tp&&th&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=to.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new to({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new to({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(r.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=r.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};(!("decl"===u.type||"atrule"===u.type&&!u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=r.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?ts(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ts(tu(r,this.mapOpts.annotation)));var n=ta(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new tn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(tl){var r=tl(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===tc&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),tf=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return D(t,e),t}(eH);tf.default=tf;var tg=e$.isClean,tm=e$.my,tv=function(e){function t(){return e.apply(this,arguments)||this}D(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=B(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),u=B(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=B(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
20else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=B(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=B(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(sn(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=B(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,u=B(e);!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new eJ(e)]}else if(e.selector)e=[new si(e)];else if(e.name)e=[new so(e)];else if(e.text)e=[new tf(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[tm]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[tg]&&function e(t){if(t[tg]=!1,t.proxyOf.nodes)for(var r,n=B(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=B(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=B(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=B(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?P(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?P(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?P(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},R(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(eH);tv.registerParse=function(e){sn=e},tv.registerRule=function(e){si=e},tv.registerAtRule=function(e){so=e},tv.registerRoot=function(e){ss=e},tv.default=tv,tv.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,so.prototype):"rule"===e.type?Object.setPrototypeOf(e,si.prototype):"decl"===e.type?Object.setPrototypeOf(e,eJ.prototype):"comment"===e.type?Object.setPrototypeOf(e,tf.prototype):"root"===e.type&&Object.setPrototypeOf(e,ss.prototype),e[tm]=!0,e.nodes&&e.nodes.forEac
20h(function(e){tv.rebuild(e)})};var ty=function(e){function t(t){var r;return(r=e.call(this,T({type:"document"},t))||this).nodes||(r.nodes=[]),r}return D(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sa(new su,this,e).stringify()},t}(tv);ty.registerLazyResult=function(e){sa=e},ty.registerProcessor=function(e){su=e},ty.default=ty;var t_=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();t_.default=t_;var tb=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new t_(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},R(e,[{key:"content",get:function(){return this.css}}]),e}();tb.default=tb;var tw=/[\t\n\f\r "#'()/;[\\\]{}]/g,tS=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tk=/.[\r\n"'(/\\]/,tC=/[\da-f]/i,tx=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}D(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(tv);tx.default=tx,tv.registerAtRule(tx);var tE=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}D(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=B(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new sc(new sl,this,e).stringify()},t}(tv);tE.registerLazyResult=function(e){sc=e},tE.registerProcessor=function(e){sl=e},tE.default=tE,tv.registerRoot(tE);var tI={comma:function(e){return tI.split(e,[","],!0)},space:function(e){return tI.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=B(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};tI.default=tI;var tO=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return D(t,e),R(t,[{key:"selectors",get:function(){return tI.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(tv);tO.default=tO,tv.registerRule(tO);var tM=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,g];break;
20case 40:if(c=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===c&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=g;break}else y("bracket");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||tk.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=g+1;break}else y("string");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:tw.lastIndex=g+1,tw.test(p),n=0===tw.lastIndex?p.length-1:tw.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,tC.test(p.charAt(n)))){for(;tC.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n]):(tS.lastIndex=g+1,tS.test(p),n=0===tS.lastIndex?p.length-1:tS.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},tR={empty:!0,space:!0},tT=function(){function e(e){this.input=e,this.root=new tE,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new tx;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=B(e.entries());!(n=o()).done;){var s=n.value,a=s[0],u=s[1];if("("===(t=u[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(u);r=u}return!1},t.comment=function(e){var t=new tf;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=tM(this.input)},t.decl=function(e,t){var r,n,i=new eJ;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
vendor: 5,742 bytes, line 20
20e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(r=e[u])[1].toLowerCase()){i.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(i.raws.important=c);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new tO;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",tR[a]||tR[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new tO;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function tA(e,t){var r=new tT(new tn(e,t));try{r.parse()}catch(e){throw e}return r.root}tA.default=tA,tv.registerParse(tA);var tD=e$.isClean,tP=e$.my,tL={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tF={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},tN={Once:!0,postcssPlugin:!0,prepare:!0};function tj(e){return(void 0===e?"undefined":N(e))==="object"&&"function"==typeof e.then}function tU(e){var t=!1,r=tL[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function tB(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:tU(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
20function tq(e){return e[tD]=!1,e.nodes&&e.nodes.forEach(function(e){return tq(e)}),e}var t$={},tz=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":N(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=tq(r);else if(P(r,e)||P(r,tb))i=tq(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=tA;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[tP]&&tv.rebuild(i)}this.result=new tb(t,i,n),this.helpers=T({},t$,{postcss:t$,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.prepare?T({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=B(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":N(i))==="object")for(var o in i){if(!tF[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!tN[o])if("object"===N(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return O(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return q(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!tj(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,d.label=7;case 7:if(o[tD])return[3,14];o[tD]=!0,s=[tB(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!tj(a=e.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw u=d.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return q(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=B(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,$(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":N(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(tj(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=eV;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new td(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=B(this.plugins);!(e=t()).done;){var r=e.value;if(tj(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[tD];)n[tD]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=B(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=B(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
20if(tj(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[tD]){a[tD]=!0,e.push(tB(a));return}t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[tD]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[tD]=!0;for(var r,n=tU(e),i=B(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[tD]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},R(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();tz.registerPostcss=function(e){t$=e},tz.default=tz,tE.registerLazyResult(tz),ty.registerLazyResult(tz);var tW=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new tb(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new td(eV,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],u=s[1];a&&(this.result.css=a),u&&(this.result.map=u)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},R(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=tA(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();tW.default=tW;var tV=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=B(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":N(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":N(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":N(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new tz(this,e,t):new tW(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function tK(e,t){if(Array.isArray(e))return e.map(function(e){return tK(e)});var r=e.inputs,n=L(e,["inputs"]);if(r){t=[];for(var i,o=B(r);!(i=o()).done;){var s=i.value,a=T({},s,{__proto__:tn.prototype});a.map&&(a.map=T({},a.map,{__proto__:e2.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return tK(e,t)})),n.source){var u=n.source,c=u.inputId;n.source=L(u,["inputId"]),null!=c&&(n.source.input=t[c])}if("root"===n.type)return new tE(n);if("decl"===n.type)return new eJ(n);if("rule"===n.type)return new tO(n);if("comment"===n.type)return new tf(n);if("atrule"===n.type)return new tx(n);else throw Error("Unknown node type: "+e.type)}function tG(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new tV(t)}tV.default=tV,tE.registerProcessor(tV),ty.registerProcessor(tV),tK.default=tK,tG.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new tV().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return tG([i(r)]).process(e,t)},i},tG.stringify=eV,tG.parse=tA,tG.fromJSON=tK,tG.list=tI,tG.comment=function(e){return new tf(e)},tG.atRule=function(e){return new tx(e)},tG.decl=function(e){return new eJ(e)},tG.rule=function(e){return new tO(e)},tG.root=function(e){return new tE(e)},tG.document=function(e){return new ty(e)},tG.CssSyntaxError=eq,tG.Declaration=eJ,tG.Container=tv,tG.Processor=tV,tG.Document=ty,tG.Comment=tf,tG.Warning=t_,tG.AtRule=tx,tG.Result=tb,tG.Input=tn,tG.Rule=tO,tG.Root=tE,tG.Node=eH,tz.registerPostcss(tG),tG.default=tG;var tH=tG&&tG.__esModule&&Object.prototype.hasOwnProperty.call(tG,"default")?tG.default:tG;tH.stringify,tH.fromJSON,tH.plugin,tH.parse,tH.list,tH.document,tH.comment,tH.atRule,tH.rule,tH.decl,tH.root,tH.CssSyntaxError,tH.Declaration,tH.Container,tH.Processor,tH.Document,tH.Comment,tH.Warning,tH.AtRule,tH.Result,tH.Input,tH.Rule,tH.Root,tH.Node;var tJ=Object.defineProperty,tY=function(e,t,r){var n;return n=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t,n in e?tJ(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},tX={exports:{}},tZ=String,tQ=function(){return{isColorSupported:!1,reset:tZ,bold:tZ,dim:tZ,italic:tZ,underline:tZ,inverse:tZ,hidden:tZ,strikethrough:tZ,black:tZ,red:tZ,green:tZ,yellow:tZ,blue:tZ,magenta:tZ,cyan:tZ,white:tZ,gray:tZ,bgBlack:tZ,bgRed:tZ,bgGreen:tZ,bgYellow:tZ,bgBlue:tZ,bgMagenta:tZ,bgCyan:tZ,bgWhite:tZ}};tX.exports=tQ(),tX.exports.createColors=tQ;var t0=tX.exports,t1=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return P(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
20return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),t2=function(e){function t(r,n,i,o,s,a){var u;return(u=e.call(this,r)||this).name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}D(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=t0.isColorSupported),t1&&e&&(i=t1(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=t0.createColors(!0),l=c.bold,h=c.gray,p=c.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-u)+" | ";if(o===n.line){var c=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+c+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(j(Error));t2.default=t2;var t3={};t3.isClean=Symbol("isClean"),t3.my=Symbol("my");var t4={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},t6=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return t4[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=t4[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function t5(e,t){new t6(t).stringify(e)}t6.default=t6,t5.default=t5;var t9=t3.isClean,t8=t3.my,t7=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[t9]=!1,this[t8]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=B(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":N(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new t2(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[t9]){this[t9]=!1;for(var e=this;e=e.parent;)e[t9]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
20else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new t6().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=B(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":N(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=t5),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},R(e,[{key:"proxyOf",get:function(){return this}}]),e}();t7.default=t7;var re=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=T({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return D(t,e),R(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(t7);re.default=re;var rt=t1.SourceMapConsumer,rr=t1.SourceMapGenerator,rn=t1.existsSync,ri=t1.readFileSync,ro=t1.dirname,rs=t1.join,ra=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ro(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new rt(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":N(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
20if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ro(e),rn(e))return this.mapFile=e,ri(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(P(t,rt))return rr.fromSourceMap(t).toString();else if(P(t,rr))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=rs(ro(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();ra.default=ra;var ru=t1.SourceMapConsumer,rc=t1.SourceMapGenerator,rl=t1.fileURLToPath,rh=t1.pathToFileURL,rp=t1.isAbsolute,rd=t1.resolve,rf=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
20,rg=Symbol("fromOffsetCache"),rm=!!(ru&&rc),rv=!!(rd&&rp),ry=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":N(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!rv||/^\w+:\/\//.test(t.from)||rp(t.from)?this.file=t.from:this.file=rd(t.from)),rv&&rm){var r=new ra(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+rf(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":N(t))==="object"){var i,o,s,a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new t2(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new t2(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(rh&&(i.input.url=rh(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[rg])a=this[rg];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[rg]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,u,c=a.length-2;o<c;)if(e<a[u=o+(c-o>>1)])c=u-1;else if(e>=a[u+1])o=u+1;else{o=u;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:rd(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=rp(a.source)?rh(a.source):new URL(a.source,this.map.consumer().sourceRoot||rh(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(rl)u.file=rl(o);else throw Error("file: protocol is not available in this PostCSS build");var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},R(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();ry.default=ry,t1&&t1.registerInput&&t1.registerInput(ry);var r_=t1.SourceMapConsumer,rb=t1.SourceMapGenerator,rw=t1.dirname,rS=t1.relative,rk=t1.resolve,rC=t1.sep,rx=t1.pathToFileURL,rE=!!(r_&&rb),rI=!!(rw&&rk&&rS&&rC),rO=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=B(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||rw(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new r_(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),rI&&rE&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=rb.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new rb({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new rb({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(r.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=r.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};(!("decl"===u.type||"atrule"===u.type&&!u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=r.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?rw(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=rw(rk(r,this.mapOpts.annotation)));var n=rS(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new ry(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(rx){var r=rx(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===rC&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),rM=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return D(t,e),t}(t7);rM.default=rM;
20var rR=t3.isClean,rT=t3.my,rA=function(e){function t(){return e.apply(this,arguments)||this}D(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=B(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),u=B(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=B(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=B(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=B(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(sh(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=B(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,u=B(e);!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new re(e)]}else if(e.selector)e=[new sp(e)];else if(e.name)e=[new sd(e)];else if(e.text)e=[new rM(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[rT]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[rR]&&function e(t){if(t[rR]=!1,t.proxyOf.nodes)for(var r,n=B(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=B(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=B(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=B(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this}
20,r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?P(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?P(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?P(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},R(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(t7);rA.registerParse=function(e){sh=e},rA.registerRule=function(e){sp=e},rA.registerAtRule=function(e){sd=e},rA.registerRoot=function(e){sf=e},rA.default=rA,rA.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sd.prototype):"rule"===e.type?Object.setPrototypeOf(e,sp.prototype):"decl"===e.type?Object.setPrototypeOf(e,re.prototype):"comment"===e.type?Object.setPrototypeOf(e,rM.prototype):"root"===e.type&&Object.setPrototypeOf(e,sf.prototype),e[rT]=!0,e.nodes&&e.nodes.forEach(function(e){rA.rebuild(e)})};var rD=function(e){function t(t){var r;return(r=e.call(this,T({type:"document"},t))||this).nodes||(r.nodes=[]),r}return D(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sg(new sm,this,e).stringify()},t}(rA);rD.registerLazyResult=function(e){sg=e},rD.registerProcessor=function(e){sm=e},rD.default=rD;var rP=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();rP.default=rP;var rL=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new rP(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},R(e,[{key:"content",get:function(){return this.css}}]),e}();rL.default=rL;var rF=/[\t\n\f\r "#'()/;[\\\]{}]/g,rN=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rj=/.[\r\n"'(/\\]/,rU=/[\da-f]/i,rB=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}D(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(rA);rB.default=rB,rA.registerAtRule(rB);var rq=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}D(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=B(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}
20),new sv(new sy,this,e).stringify()},t}(rA);rq.registerLazyResult=function(e){sv=e},rq.registerProcessor=function(e){sy=e},rq.default=rq,rA.registerRoot(rq);var r$={comma:function(e){return r$.split(e,[","],!0)},space:function(e){return r$.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=B(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};r$.default=r$;var rz=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return D(t,e),R(t,[{key:"selectors",get:function(){return r$.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(rA);rz.default=rz,rA.registerRule(rz);var rW=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,g];break;case 40:if(c=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===c&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=g;break}else y("bracket");for(u=n;
2092===p.charCodeAt(u-1);)u-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||rj.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=g+1;break}else y("string");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:rF.lastIndex=g+1,rF.test(p),n=0===rF.lastIndex?p.length-1:rF.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,rU.test(p.charAt(n)))){for(;rU.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n]):(rN.lastIndex=g+1,rN.test(p),n=0===rN.lastIndex?p.length-1:rN.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},rV={empty:!0,space:!0},rK=function(){function e(e){this.input=e,this.root=new rq,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new rB;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=B(e.entries());!(n=o()).done;){var s=n.value,a=s[0],u=s[1];if("("===(t=u[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(u);r=u}return!1},t.comment=function(e){var t=new rM;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=rW(this.input)},t.decl=function(e,t){var r,n,i=new re;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(r=e[u])[1].toLowerCase()){i.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(i.raws.important=c);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new rz;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}
20if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",rV[a]||rV[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new rz;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function rG(e,t){var r=new rK(new ry(e,t));try{r.parse()}catch(e){throw e}return r.root}rG.default=rG,rA.registerParse(rG);var rH=t3.isClean,rJ=t3.my,rY={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rX={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},rZ={Once:!0,postcssPlugin:!0,prepare:!0};function rQ(e){return(void 0===e?"undefined":N(e))==="object"&&"function"==typeof e.then}function r0(e){var t=!1,r=rY[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function r1(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:r0(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function r2(e){return e[rH]=!1,e.nodes&&e.nodes.forEach(function(e){return r2(e)}),e}var r3={},r4=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":N(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=r2(r);else if(P(r,e)||P(r,rL))i=r2(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=rG;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[rJ]&&rA.rebuild(i)}this.result=new rL(t,i,n),this.helpers=T({},r3,{postcss:r3,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.prepare?T({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=B(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":N(i))==="object")for(var o in i){if(!rX[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
20sion+" now).");if(!rZ[o])if("object"===N(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return O(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return q(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!rQ(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,d.label=7;case 7:if(o[rH])return[3,14];o[rH]=!0,s=[r1(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!rQ(a=e.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw u=d.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return q(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=B(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,$(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":N(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(rQ(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=t5;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new rO(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=B(this.plugins);!(e=t()).done;){var r=e.value;if(rQ(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[rH];)n[rH]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=B(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=B(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(rQ(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[rH]){a[rH]=!0,e.push(r1(a));return}t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[rH]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[rH]=!0;for(var r,n=r0(e),i=B(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[rH]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
20,R(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();r4.registerPostcss=function(e){r3=e},r4.default=r4,rq.registerLazyResult(r4),rD.registerLazyResult(r4);var r6=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new rL(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new rO(t5,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],u=s[1];a&&(this.result.css=a),u&&(this.result.map=u)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},R(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=rG(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();r6.default=r6;var r5=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=B(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":N(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":N(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":N(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new r4(this,e,t):new r6(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function r9(e,t){if(Array.isArray(e))return e.map(function(e){return r9(e)});var r=e.inputs,n=L(e,["inputs"]);if(r){t=[];for(var i,o=B(r);!(i=o()).done;){var s=i.value,a=T({},s,{__proto__:ry.prototype});a.map&&(a.map=T({},a.map,{__proto__:ra.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return r9(e,t)})),n.source){var u=n.source,c=u.inputId;n.source=L(u,["inputId"]),null!=c&&(n.source.input=t[c])}if("root"===n.type)return new rq(n);if("decl"===n.type)return new re(n);if("rule"===n.type)return new rz(n);if("comment"===n.type)return new rM(n);if("atrule"===n.type)return new rB(n);else throw Error("Unknown node type: "+e.type)}function r8(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new r5(t)}r5.default=r5,rq.registerProcessor(r5),rD.registerProcessor(r5),r9.default=r9,r8.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new r5().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return r8([i(r)]).process(e,t)},i},r8.stringify=t5,r8.parse=rG,r8.fromJSON=r9,r8.list=r$,r8.comment=function(e){return new rM(e)},r8.atRule=function(e){return new rB(e)},r8.decl=function(e){return new re(e)},r8.rule=function(e){return new rz(e)},r8.root=function(e){return new rq(e)},r8.document=function(e){return new rD(e)},r8.CssSyntaxError=t2,r8.Declaration=re,r8.Container=rA,r8.Processor=r5,r8.Document=rD,r8.Comment=rM,r8.Warning=rP,r8.AtRule=rB,r8.Result=rL,r8.Input=ry,r8.Rule=rz,r8.Root=rq,r8.Node=t7,r4.registerPostcss(r8),r8.default=r8;
20var r7=r8&&r8.__esModule&&Object.prototype.hasOwnProperty.call(r8,"default")?r8.default:r8;r7.stringify,r7.fromJSON,r7.plugin,r7.parse,r7.list,r7.document,r7.comment,r7.atRule,r7.rule,r7.decl,r7.root,r7.CssSyntaxError,r7.Declaration,r7.Container,r7.Processor,r7.Document,r7.Comment,r7.Warning,r7.AtRule,r7.Result,r7.Input,r7.Rule,r7.Root,r7.Node;var ne=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];tY(this,"parentElement",null),tY(this,"parentNode",null),tY(this,"ownerDocument"),tY(this,"firstChild",null),tY(this,"lastChild",null),tY(this,"previousSibling",null),tY(this,"nextSibling",null),tY(this,"ELEMENT_NODE",1),tY(this,"TEXT_NODE",3),tY(this,"nodeType"),tY(this,"nodeName"),tY(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!P(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},R(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),nt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},nr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},nn={};function ni(e){if(nn[e])return nn[e];var t=globalThis[e],r=t.prototype,n=e in nt?nt[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in nr?nr[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return nn[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;if(document.body.removeChild(a),!c)return r;return nn[e]=c}catch(e){return r}}var no={};function ns(e,t,r){var n,i=e+"."+String(r);if(no[i])return no[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(ni(e),r))?void 0:n.get;return o?(no[i]=o,o.call(t)):t[r]}var na={};function nu(e,t,r){var n=e+"."+String(r);if(na[n])return na[n].bind(t);var i=ni(e)[r];return"function"!=typeof i?t[r]:(na[n]=i,i.bind(t))}function nc(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var nl=function(e){return ns("Node",e,"childNodes")},nh=function(e){return ns("Node",e,"parentNode")},np=function(e){return ns("Node",e,"parentElement")},nd=function(e){return ns("Node",e,"textContent")},nf=function(e,t){return nu("Node",e,"contains")(t)},ng=function(e){return nu("Node",e,"getRootNode")()},nm=function(e){return e&&"host"in e?ns("ShadowRoot",e,"host"):null},nv=function(e){return e&&"shadowRoot"in e?ns("Element",e,"shadowRoot"):null};function ny(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var n_="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.",nb={map:{},getId:function(){return console.error(n_),-1},getNode:function(){return console.error(n_),null},removeNodeFromMap:function(){console.error(n_)},has:function(){return console.error(n_),!1},reset:function(){console.error(n_)}};function nw(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();i||!1!==r.leading||(i=u);var c=t-(u-i),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),i=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},c))}}function nS(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);
20return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return nS(e,t,o||{},!0)}}"u">typeof window&&window.Proxy&&window.Reflect&&(nb=new Proxy(nb,{get:function(e,t,r){return"map"===t&&console.error(n_),Reflect.get(e,t,r)}}));var nk=Date.now;function nC(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=np(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=np(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function nx(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nE(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function nI(e){return e?e.nodeType===e.ELEMENT_NODE?e:np(e):null}function nO(e,t,r,n){if(!e)return!1;var i=nI(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(eA(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function nM(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function nR(e){return!!e.changedTouches}function nT(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function nA(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function nD(e){return!!e&&(P(e,ne)&&"shadowRoot"in e?!!e.shadowRoot:!!nv(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nk=function(){return new Date().getTime()});var nP=function(){function e(){W(this,"id",1),W(this,"styleIDMap",new WeakMap),W(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){var r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function nL(e){var t,r=null;return"getRootNode"in e&&(null==(t=ng(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&nm(ng(e))&&(r=nm(ng(e))),r}function nF(e){var t,r,n=e.ownerDocument;return!!n&&(nf(n,e)||!!(r=(t=e).ownerDocument)&&nf(r,function(e){for(var t,r=e;t=nL(r);)r=t;return r}(t)))}var nN=((o1=nN||{})[o1.DomContentLoaded=0]="DomContentLoaded",o1[o1.Load=1]="Load",o1[o1.FullSnapshot=2]="FullSnapshot",o1[o1.IncrementalSnapshot=3]="IncrementalSnapshot",o1[o1.Meta=4]="Meta",o1[o1.Custom=5]="Custom",o1[o1.Plugin=6]="Plugin",o1),nj=((o2=nj||{})[o2.Mutation=0]="Mutation",o2[o2.MouseMove=1]="MouseMove",o2[o2.MouseInteraction=2]="MouseInteraction",o2[o2.Scroll=3]="Scroll",o2[o2.ViewportResize=4]="ViewportResize",o2[o2.Input=5]="Input",o2[o2.TouchMove=6]="TouchMove",o2[o2.MediaInteraction=7]="MediaInteraction",o2[o2.StyleSheetRule=8]="StyleSheetRule",o2[o2.CanvasMutation=9]="CanvasMutation",o2[o2.Font=10]="Font",o2[o2.Log=11]="Log",o2[o2.Drag=12]="Drag",o2[o2.StyleDeclaration=13]="StyleDeclaration",o2[o2.Selection=14]="Selection",o2[o2.AdoptedStyleSheet=15]="AdoptedStyleSheet",o2[o2.CustomElement=16]="CustomElement",o2),nU=((o3=nU||{})[o3.MouseUp=0]="MouseUp",o3[o3.MouseDown=1]="MouseDown",o3[o3.Click=2]="Click",o3[o3.ContextMenu=3]="ContextMenu",o3[o3.DblClick=4]="DblClick",o3[o3.Focus=5]="Focus",o3[o3.Blur=6]="Blur",o3[o3.TouchStart=7]="TouchStart",o3[o3.TouchMove_Departed=8]="TouchMove_Departed",o3[o3.TouchEnd=9]="TouchEnd",o3[o3.TouchCancel=10]="TouchCancel",o3),nB=((o4=nB||{})[o4.Mouse=0]="Mouse",o4[o4.Pen=1]="Pen",o4[o4.Touch=2]="Touch",o4),nq=((o6=nq||{})[o6["2D"]=0]="2D",o6[o6.WebGL=1]="WebGL",o6[o6.WebGL2=2]="WebGL2",o6),n$=((o5=n$||{})[o5.Play=0]="Play",o5[o5.Pause=1]="Pause",o5[o5.Seeked=2]="Seeked",o5[o5.V
20olumeChange=3]="VolumeChange",o5[o5.RateChange=4]="RateChange",o5),nz=((o9=nz||{})[o9.Document=0]="Document",o9[o9.DocumentType=1]="DocumentType",o9[o9.Element=2]="Element",o9[o9.Text=3]="Text",o9[o9.CDATA=4]="CDATA",o9[o9.Comment=5]="Comment",o9),nW=function(){function e(){W(this,"length",0),W(this,"head",null),W(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),nV=function(e,t){return e+"@"+t},nK=function(){function e(){var e=this;W(this,"frozen",!1),W(this,"locked",!1),W(this,"texts",[]),W(this,"attributes",[]),W(this,"attributeMap",new WeakMap),W(this,"removes",[]),W(this,"mapRemoves",[]),W(this,"movedMap",{}),W(this,"addedSet",new Set),W(this,"movedSet",new Set),W(this,"droppedSet",new Set),W(this,"removesSubTreeCache",new Set),W(this,"mutationCb"),W(this,"blockClass"),W(this,"blockSelector"),W(this,"maskTextClass"),W(this,"maskTextSelector"),W(this,"inlineStylesheet"),W(this,"maskInputOptions"),W(this,"maskTextFn"),W(this,"maskInputFn"),W(this,"keepIframeSrcFn"),W(this,"recordCanvas"),W(this,"inlineImages"),W(this,"slimDOMOptions"),W(this,"dataURLOptions"),W(this,"doc"),W(this,"mirror"),W(this,"iframeManager"),W(this,"stylesheetManager"),W(this,"shadowDomManager"),W(this,"canvasManager"),W(this,"processedNodeManager"),W(this,"unattachedDoc"),W(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),W(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new nW,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=nh(o);if(s&&nF(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var u=s.tagName;if("TEXTAREA"===u)return;"STYLE"===u&&e.addedSet.has(s)&&(a=!0)}var c=es(s)?e.mirror.getId(nL(o)):e.mirror.getId(s),l=i(o);if(-1===c||-1===l)return n.addNode(o);var h=eL(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){nT(t,e.mirror)&&e.iframeManager.addIframe(t),nA(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),nD(o)&&e.shadowDomManager.addShadowRoot(nv(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:c,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,u=B(e.movedSet);!(a=u()).done;){var c=a.value;(!nH(e.removesSubTreeCache,c,e.mirror)||e.movedSet.has(nh(c)))&&o(c)}for(var l,h=B(e.addedSet);!(l=h()).done;){var p=l.value;nJ(e.droppedSet,p)||nH(e.removesSubTreeCache,p,e.mirror)?nJ(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var d=null;n.length;){var f=null;if(d){var g=e.mirror.getId(nh(d.value)),m=i(d.value);-1!==g&&-1!==m&&(f=d)}if(!f)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var _=e.mirror.getId(nh(y.value));if(-1===i(y.value))continue;if(-1!==_){f=y;break}var b=nh(y.value);if(b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=nm(b);if(-1!==e.mirror.getId(w)){f=y;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}d=f.previous,n.removeNode(f.value),o(f.value)}
vendor: 4,067 bytes, line 20
20var S={texts:e.texts.map(function(t){var r=t.node,n=nh(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(S.texts.length||S.attributes.length||S.removes.length||S.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(S))}}),W(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(nl(t),function(e){return nd(e)||""}).join("");r.attributes.value=eh({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:ef(t),value:n,maskInputFn:e.maskInputFn})}),W(this,"processMutation",function(t){if(!nM(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=nd(t.target);nO(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:eD(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,nI(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=ef(n);o=eh({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(nO(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o))if(n.contentDocument)return;else i="rr_src";if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!eT(n.tagName,i))if(a.attributes[i]=eR(e.doc,ep(n.tagName),ep(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var u=e.unattachedDoc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue);for(var c,l=B(Array.from(n.style));!(c=l()).done;){var h=c.value,p=n.style.getPropertyValue(h),d=n.style.getPropertyPriority(h);p!==u.style.getPropertyValue(h)||d!==u.style.getPropertyPriority(h)?""===d?a.styleDiff[h]=p:a.styleDiff[h]=[p,d]:a._unchangedStyles[h]=[p,d]}for(var f,g=B(Array.from(u.style));!(f=g()).done;){var m=f.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(nO(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=es(t.target)?e.mirror.getId(nm(t.target)):e.mirror.getId(t.target);nO(t.target,e.blockClass,e.blockSelector,!1)||nM(r,e.mirror,e.slimDOMOptions)||-1===e.mirror.getId(r)||(e.addedSet.has(r)?(nG(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||function e(t,r){if(es(t))return!1;var n=r.getId(t);if(!r.has(n))return!0;var i=nh(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[nV(n,i)]?nG(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(es(t.target)&&ea(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();
20t.has(n)||(t.add(n),nl(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),W(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(nM(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[nV(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!nO(t,e.blockClass,e.blockSelector,!1)&&(nl(t).forEach(function(t){return e.genAdds(t)}),nD(t)&&nl(nv(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),W(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function nG(e,t){e.delete(t),nl(t).forEach(function(t){return nG(e,t)})}function nH(e,t,r){var n,i;return 0!==e.size&&(n=e,!!(i=nh(t))&&n.has(i))}function nJ(e,t){return 0!==e.size&&function e(t,r){var n=nh(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var nY=function(e){return s_?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(s_&&!0===s_(e))return;throw e}}:e},nX=[];function nZ(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function nQ(e,t){var r=new nK;nX.push(r),r.init(e);var n=new(ni("MutationObserver")).constructor(nY(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function n0(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return ny("scroll",nY(nw(nY(function(e){var s=nZ(e);if(!(!s||nO(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var u=nC(r.defaultView);t({id:a,x:u.left,y:u.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),r)}var n1=["INPUT","TEXTAREA","SELECT"],n2=new WeakMap;function n3(e){var t=[];if(n9("CSSGroupingRule")&&P(e.parentRule,CSSGroupingRule)||n9("CSSMediaRule")&&P(e.parentRule,CSSMediaRule)||n9("CSSSupportsRule")&&P(e.parentRule,CSSSupportsRule)||n9("CSSConditionRule")&&P(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function n4(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function n6(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(nm(t));var u="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,c=(null==u?void 0:u.prototype)?Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&u&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=c.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),nY(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):function(){}}function n5(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};d=t,f=e.mutationCb,g=e.mousemoveCb,m=e.mouseInteractionCb,v=e.scrollCb,y=e.viewportResizeCb,_=e.inputCb,b=e.mediaInteractionCb,w=e.styleSheetRuleCb,S=e.styleDeclarationCb,k=e.canvasMutationCb,C=e.fontCb,x=e.selectionCb,E=e.customElementCb,e.mutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mutation&&d.mutation.apply(d,[].concat(t)),f.apply(void 0,[].concat(t))},e.mousemoveCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mousemove&&d.mousemove.apply(d,[].concat(t)),g.apply(void 0,[].concat(t))},e.mouseInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mouseInteraction&&d.mouseInteraction.apply(d,[].concat(t)),m.apply(void 0,[].concat(t))},e.scrollCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.scroll&&d.scroll.apply(d,[].concat(t)),v.apply(void 0,[].concat(t))},e.viewportResizeCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.viewportResize&&d.viewportResize.apply(d,[].concat(t)),y.apply(void 0,[].concat(t))},e.inputCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.input&&d.input.apply(d,[].concat(t)),_.apply(void 0,[].concat(t))},e.mediaInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mediaInteaction&&d.mediaInteaction.apply(d,[].concat(t)),b.apply(void 0,[].concat(t))},e.styleSheetRuleCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleSheetRule&&d.styleSheetRule.apply(d,[].concat(t)),w.apply(void 0,[].concat(t))},e.styleDeclarationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleDeclaration&&d.styleDeclaration.apply(d,[].concat(t)),S.apply(void 0,[].concat(t))},e.canvasMutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.canvasMutation&&d.canvasMutation.apply(d,[].concat(t)),k.apply(void 0,[].concat(t))},e.fontCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.font&&d.font.apply(d,[].concat(t)),C.apply(void 0,[].concat(t))},e.selectionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.selection&&d.selection.apply(d,[].concat(t)),x.apply(void 0,[].concat(t))},e.customElementCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.customElement&&d.customElement.apply(d,[].concat(t)),E.apply(void 0,[].concat(t))},e.recordDOM&&(es=nQ(e,e.doc));var n=function(e){var t,r=e.mousemoveCb,n=e.sampling,i=e.doc,o=e.mirror;if(!1===n.mousemove)return function(){};var s="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,u=[],c=nw(nY(function(e){var n=Date.now()-t;r(u.map(function(e){return e.timeOffset-=n,e}),e),u=[],t=null}),a),l=nY(nw(nY(function(e){var r=nZ(e),n=nR(e)?e.changedTouches[0]:e,i=n.clientX,s=n.clientY;t||(t=nk()),u.push({x:i,y:s,id:o.getId(r),timeOffset:nk()-t}),c("u">typeof DragEvent&&P(e,DragEvent)?nj.Drag:P(e,MouseEvent)?nj.MouseMove:nj.TouchMove)}),s,{trailing:!1})),h=[ny("mousemove",l,i),ny("touchmove",l,i),ny("drag",l,i)];return nY(function(){h.forEach(function(e){return e()})})}(e),i=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[],c=null;return Object.keys(nU).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}
20).forEach(function(e){var s=ep(e),a=function(r){var s=nZ(r);if(!nO(s,i,o,!0)){var a=null,u=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=nB.Mouse;break;case"touch":a=nB.Touch;break;case"pen":a=nB.Pen}a===nB.Touch?nU[e]===nU.MouseDown?u="TouchStart":nU[e]===nU.MouseUp&&(u="TouchEnd"):nB.Pen}else nR(r)&&(a=nB.Touch);null!==a?(c=a,(u.startsWith("Touch")&&a===nB.Touch||u.startsWith("Mouse")&&a===nB.Mouse)&&(a=null)):nU[e]===nU.Click&&(a=c,c=null);var l=nR(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,d=l.clientY;nY(t)(T({type:nU[u],id:h,x:p,y:d},null!==a&&{pointerType:a}))}}};if(window.PointerEvent)switch(nU[e]){case nU.MouseDown:case nU.MouseUp:s=s.replace("mouse","pointer");break;case nU.TouchStart:case nU.TouchEnd:return}u.push(ny(s,a,r))}),nY(function(){u.forEach(function(e){return e()})})}(e),o=n0(e),s=(I={win:r},O=e.viewportResizeCb,M=I.win,R=-1,A=-1,ny("resize",nY(nw(nY(function(){var e=nx(),t=nE();(R!==e||A!==t)&&(O({width:Number(t),height:Number(e)}),R=e,A=t)}),200)),M)),a=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=nZ(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=np(t)),!(!t||!l||0>n1.indexOf(l)||nO(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,f=!1,g=ef(t)||"";"radio"===g||"checkbox"===g?f=t.checked:(u[l.toLowerCase()]||u[g])&&(p=eh({element:t,maskInputOptions:u,tagName:l,type:g,value:p,maskInputFn:c})),d(t,h?{text:p,isChecked:f,userTriggered:n}:{text:p,isChecked:f});var m=t.name;"radio"===g&&m&&f&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;d(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function d(e,r){var i=n2.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){n2.set(e,r);var o=n.getId(e);nY(t)(T({},r,{id:o}))}}var f=("last"===l.input?["change"]:["input","change"]).map(function(e){return ny(e,nY(p),r)}),g=r.defaultView;if(!g)return function(){f.forEach(function(e){return e()})};var m=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),v=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&f.push.apply(f,[].concat(v.map(function(e){return nS(e[0],e[1],{set:function(){nY(p)({target:this,isTrusted:!1})}},!1,g)}))),nY(function(){f.forEach(function(e){return e()})})}(e),u=(D=e.mediaInteractionCb,L=e.blockClass,F=e.blockSelector,N=e.mirror,j=e.sampling,U=e.doc,$=[ny("play",(q=nY(function(e){return nw(nY(function(t){var r=nZ(t);if(!(!r||nO(r,L,F,!0))){var n=r.currentTime,i=r.volume,o=r.muted,s=r.playbackRate,a=r.loop;D({type:e,id:N.getId(r),currentTime:n,volume:i,muted:o,playbackRate:s,loop:a})}}),j.media||500)}))(n$.Play),U),ny("pause",q(n$.Pause),U),ny("seeked",q(n$.Seeked),U),ny("volumechange",q(n$.VolumeChange),U),ny("ratechange",q(n$.RateChange),U)],nY(function(){$.forEach(function(e){return e()})})),c=function(){},l=function(){},h=function(){},p=function(){};e.recordDOM&&(c=function(e,t){var r,n,i=e.styleSheetRuleCb,o=e.mirror,s=e.stylesheetManager,a=t.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var u=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(u,{apply:nY(function(e,t,r){var n=r[0],a=r[1],u=n4(t,o,s.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&i({id:c,styleId:l,adds:[{rule:n,index:a}]}),e.apply(t,r)})}),a.CSSStyleSheet.prototype.addRule=function(e,t,r){return void 0===r&&(r=this.cssRules.length),a.CSSStyleSheet.prototype.insertRule.apply(this,[e+" { "+t+" }",r])};var c=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:nY(function(e,t,r){var n=r[0],a=n4(t,o,s.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&i({id:u,styleId:c,removes:[{index:n}]}),e.apply(t,r)}
20)}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},a.CSSStyleSheet.prototype.replace&&(r=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:nY(function(e,t,r){var n=r[0],a=n4(t,o,s.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&i({id:u,styleId:c,replace:n}),e.apply(t,r)})})),a.CSSStyleSheet.prototype.replaceSync&&(n=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:nY(function(e,t,r){var n=r[0],a=n4(t,o,s.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&i({id:u,styleId:c,replaceSync:n}),e.apply(t,r)})}));var l={};n8("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(n8("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),n8("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),n8("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],r=e[1];h[t]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(h[t].insertRule,{apply:nY(function(e,t,r){var n=r[0],a=r[1],u=n4(t.parentStyleSheet,o,s.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&i({id:c,styleId:l,adds:[{rule:n,index:[].concat(n3(t),[a||0])}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:nY(function(e,t,r){var n=r[0],a=n4(t.parentStyleSheet,o,s.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&i({id:u,styleId:c,removes:[{index:[].concat(n3(t),[n])}]}),e.apply(t,r)})})}),nY(function(){a.CSSStyleSheet.prototype.insertRule=u,a.CSSStyleSheet.prototype.deleteRule=c,r&&(a.CSSStyleSheet.prototype.replace=r),n&&(a.CSSStyleSheet.prototype.replaceSync=n),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:r}),l=n6(e,e.doc),z=e.styleDeclarationCb,W=e.mirror,V=e.ignoreCSSAttributes,K=e.stylesheetManager,H=(G=({win:r}).win).CSSStyleDeclaration.prototype.setProperty,G.CSSStyleDeclaration.prototype.setProperty=new Proxy(H,{apply:nY(function(e,t,r){var n,i=r[0],o=r[1],s=r[2];if(V.has(i))return H.apply(t,[i,o,s]);var a=n4(null==(n=t.parentRule)?void 0:n.parentStyleSheet,W,K.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&z({id:u,styleId:c,set:{property:i,value:o,priority:s},index:n3(t.parentRule)}),e.apply(t,r)})}),J=G.CSSStyleDeclaration.prototype.removeProperty,G.CSSStyleDeclaration.prototype.removeProperty=new Proxy(J,{apply:nY(function(e,t,r){var n,i=r[0];if(V.has(i))return J.apply(t,[i]);var o=n4(null==(n=t.parentRule)?void 0:n.parentStyleSheet,W,K.styleMirror),s=o.id,a=o.styleId;return(s&&-1!==s||a&&-1!==a)&&z({id:s,styleId:a,remove:{property:i},index:n3(t.parentRule)}),e.apply(t,r)})}),h=nY(function(){G.CSSStyleDeclaration.prototype.setProperty=H,G.CSSStyleDeclaration.prototype.removeProperty=J}),e.collectFonts&&(p=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=nc(r.fonts,"add",function(e){return function(r){return setTimeout(nY(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),nY(function(){i.forEach(function(e){return e()})})}(e)));for(var d,f,g,m,v,y,_,b,w,S,k,C,x,E,I,O,M,R,A,D,L,F,N,j,U,q,$,z,W,V,K,G,H,J,Y,X,Z,Q,ee,et,er,en,ei,eo,es,ea,eu=(Y=e.doc,X=e.mirror,Z=e.blockClass,Q=e.blockSelector,ee=e.selectionCb,et=!0,(er=nY(function(){var e=Y.getSelection();if(e&&(!et||null==e||!e.isCollapsed)){et=e.isCollapsed||!1;for(var t=[],r=e.rangeCount||0,n=0;n<r;n++){var i=e.getRangeAt(n),o=i.startContainer,s=i.startOffset,a=i.endContainer,u=i.endOffset;nO(o,Z,Q,!0)||nO(a,Z,Q,!0)||t.push({start:X.getId(o),startOffset:s,end:X.getId(a),endOffset:u})}ee({ranges:t})}}))(),ny("selectionchange",er)),ec=(en=e.doc,ei=e.customElementCb,(eo=en.defaultView)&&eo.customElements?nc(eo.customElements,"define",function(e){return function(t,r,n){try{ei({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,r,n])}}):function(){}),el=[],ed=B(e.plugins);!(ea=ed()).done;){var eg=ea.value;el.push(eg.observer(eg.callback,r,eg.options))}return nY(function(){nX.forEach(function(e){return e.reset()}),null==es||es.disconnect(),n(),i(),o(),s(),a(),u(),c(),l(),h(),p(),eu(),ec(),el.forEach(function(e){return e()})})}function n9(e){return void 0!==window[e]}function n8(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var n7=function(){function e(e){W(this,"iframeIdToRemoteIdMap",new WeakMap),W(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);
vendor: 1,534 bytes, line 20
20return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),ie=function(){function e(e){W(this,"iframes",new WeakMap),W(this,"crossOriginIframeMap",new WeakMap),W(this,"crossOriginIframeMirror",new n7(eC)),W(this,"crossOriginIframeStyleMirror"),W(this,"crossOriginIframeRootIdMap",new WeakMap),W(this,"iframeContentDocumentMap",new WeakMap),W(this,"iframeObserverCleanupMap",new WeakMap),W(this,"mirror"),W(this,"mutationCb"),W(this,"wrappedEmit"),W(this,"loadListener"),W(this,"stylesheetManager"),W(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new n7(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}
20,t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case nN.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:nN.IncrementalSnapshot,data:{source:nj.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case nN.Meta:case nN.Load:case nN.DomContentLoaded:break;case nN.Plugin:return t;case nN.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case nN.IncrementalSnapshot:switch(t.data.source){case nj.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nj.Drag:case nj.TouchMove:case nj.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nj.ViewportResize:return!1;case nj.MediaInteraction:case nj.MouseInteraction:case nj.Scroll:case nj.CanvasMutation:case nj.Input:return this.replaceIds(t.data,e,["id"]),t;case nj.StyleSheetRule:case nj.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nj.Font:return t;case nj.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case nj.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=B(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===nz.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),it=function(){function e(e){W(this,"shadowDoms",new WeakSet),W(this,"mutationCb"),W(this,"scrollCb"),W(this,"bypassOptions"),W(this,"mirror"),W(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(ea(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=nQ(T({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(n0(T({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(nm(e))),r.restoreHandlers.push(n6({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(nc(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=nv(this);return o&&nF(this)&&r.addShadowRoot(o,t),i}}))}
20,t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ii="u"<typeof Uint8Array?[]:new Uint8Array(256),io=0;io<ir.length;io++)ii[ir.charCodeAt(io)]=io;var is=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=ir[r[t]>>2],i+=ir[(3&r[t])<<4|r[t+1]>>4],i+=ir[(15&r[t+1])<<2|r[t+2]>>6],i+=ir[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},ia=new Map,iu=function(e,t,r){if(e&&(il(e,t)||(void 0===e?"undefined":N(e))==="object")){var n,i=e.constructor.name,o=((n=ia.get(r))||(n=new Map,ia.set(r,n)),n.has(i)||n.set(i,[]),n.get(i)),s=o.indexOf(e);return -1===s&&(s=o.length,o.push(e)),s}},ic=function(e,t,r){return e.map(function(e){return function e(t,r,n){if(P(t,Array))return t.map(function(t){return e(t,r,n)});if(null===t);else if(P(t,Float32Array)||P(t,Float64Array)||P(t,Int32Array)||P(t,Uint32Array)||P(t,Uint8Array)||P(t,Uint16Array)||P(t,Int16Array)||P(t,Int8Array)||P(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(P(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:is(t)};else if(P(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(P(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(P(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(P(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(il(t,r)||(void 0===t?"undefined":N(t))==="object")return{rr_type:t.constructor.name,index:iu(t,r,n)};return t}(e,t,r)})},il=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(r){return P(e,t[r])})};function ih(e,t,r,n){var i=[];try{var o=nc(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!nO(this,t,r,!0)){var u="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=u),n&&["webgl","webgl2"].includes(u))if(s[0]&&"object"===N(s[0])){var c=s[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function ip(e,t,r,n,i,o){for(var s,a=[],u=Object.getOwnPropertyNames(e),c=B(u);!(s=c()).done;)!function(){var u=s.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{if("function"!=typeof e[u])return"continue";var c=nc(e,u,function(e){return function(){for(var s=arguments.length,a=Array(s),c=0;c<s;c++)a[c]=arguments[c];var l=e.apply(this,a);if(iu(l,o,this),"tagName"in this.canvas&&!nO(this.canvas,n,i,!0)){var h=ic(a,o,this);r(this.canvas,{type:t,property:u,args:h})}return l}});a.push(c)}catch(n){a.push(nS(e,u,{set:function(e){r(this.canvas,{type:t,property:u,args:[e],setter:!0})}}))}}();return a}var id="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
20yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ig="u">typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(id),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function im(e){var t;try{if(!(t=ig&&(window.URL||window.webkitURL).createObjectURL(ig)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+id,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var iv=function(){function e(e){var t=this;W(this,"pendingCanvasMutations",new Map),W(this,"rafStamps",{latestId:0,invokeId:null}),W(this,"mirror"),W(this,"mutationCb"),W(this,"resetObservers"),W(this,"frozen",!1),W(this,"locked",!1),W(this,"processMutation",function(e,r){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,u=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:u})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o,s=this,a=ih(t,r,n,!0),u=new Map,c=new im;c.onmessage=function(e){var t=e.data.id;if(u.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,o=r.width,a=r.height;s.mutationCb({id:t,type:nq["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var l=1e3/e,h=0,p=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){nO(t,r,n,!0)||e.push(t)}),e},d=function(e){if(h&&e-h<l){o=requestAnimationFrame(d);return}
20h=e,p().forEach(O(function(e){var t,r,n,o;return q(this,function(a){switch(a.label){case 0:if(r=s.mirror.getId(e),u.get(r)||0===e.width||0===e.height)return[2];return u.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(null==(t=null==(n=e.getContext(e.__context))?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&n.clear(n.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return o=a.sent(),c.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),o=requestAnimationFrame(d)};o=requestAnimationFrame(d),this.resetObservers=function(){a(),cancelAnimationFrame(o)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n,i,o=ih(e,t,r,!1),s=function(e,t,r,n){for(var i,o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=B(s);!(i=a()).done;)!function(){var s=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return"continue";var a=nc(t.CanvasRenderingContext2D.prototype,s,function(i){return function(){for(var o=this,a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return nO(this.canvas,r,n,!0)||setTimeout(function(){var r=ic(u,t,o);e(o.canvas,{type:nq["2D"],property:s,args:r})},0),i.apply(this,u)}});o.push(a)}catch(r){var u=nS(t.CanvasRenderingContext2D.prototype,s,{set:function(t){e(this.canvas,{type:nq["2D"],property:s,args:[t],setter:!0})}});o.push(u)}}();return function(){o.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),a=(n=this.processMutation.bind(this),(i=[]).push.apply(i,[].concat(ip(e.WebGLRenderingContext.prototype,nq.WebGL,n,t,r,e))),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,[].concat(ip(e.WebGL2RenderingContext.prototype,nq.WebGL2,n,t,r,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){o(),s(),a()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,L(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),iy=function(){function e(e){W(this,"trackedLinkElements",new WeakSet),W(this,"mutationCb"),W(this,"adoptedStyleSheetCb"),W(this,"styleMirror",new nP),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){if(0!==e.length){for(var r,n,i={id:t,styleIds:[]},o=[],s=B(e);!(n=s()).done;)r=this,function(){var e=n.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),o.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:ec(t,e.href),index:r}})})),i.styleIds.push(t)}();o.length>0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE&&e.adoptedStyleSheets)for(var r,n=B(e.adoptedStyleSheets);!(r=n()).done;){var i=r.value;this.styleMirror.remove(i)}"STYLE"===e.nodeName&&e.sheet&&this.styleMirror.remove(e.sheet),"LINK"===e.nodeName&&"stylesheet"===e.rel&&e.sheet&&this.styleMirror.remove(e.sheet),e.childNodes&&e.childNodes.forEac
20h(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),i_=function(){function e(){W(this,"nodeMap",new WeakMap),W(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),ib=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var iw=document.createElement("iframe");document.body.appendChild(iw),Array.from=(null==(se=iw.contentWindow)?void 0:se.Array.from)||Array.from,document.body.removeChild(iw)}}catch(e){console.debug("Unable to override Array.from",e)}var iS=new el;function ik(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,u=e.ignoreClass,c=void 0===u?"rr-ignore":u,l=e.ignoreSelector,h=void 0===l?null:l,p=e.maskTextClass,d=void 0===p?"rr-mask":p,f=e.maskTextSelector,g=void 0===f?null:f,m=e.inlineStylesheet,v=void 0===m||m,y=e.maskAllInputs,_=e.maskInputOptions,b=e.slimDOMOptions,w=e.maskInputFn,S=e.maskTextFn,k=e.hooks,C=e.packFn,x=e.sampling,E=void 0===x?{}:x,I=e.dataURLOptions,O=void 0===I?{}:I,M=e.mousemoveWait,R=e.recordDOM,A=void 0===R||R,D=e.recordCanvas,P=void 0!==D&&D,L=e.recordCrossOriginIframes,F=void 0!==L&&L,j=e.allowedIframeOrigins,U=e.recordAfter,q=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,$=e.userTriggeredOnInput,z=void 0!==$&&$,W=e.collectFonts,V=void 0!==W&&W,K=e.inlineImages,G=void 0!==K&&K,H=e.plugins,J=e.keepIframeSrcFn,Y=void 0===J?function(){return!1}:J,X=e.ignoreCSSAttributes,Z=void 0===X?new Set([]):X;s_=e.errorHandler,F&&j&&j.length>0&&0===(es=function(e){if(!Array.isArray(e)||0===e.length)throw Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":N(n))+".");var i=function(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}(n);i&&t.add(i)}return Object.freeze(t)}(j)).size&&(es=void 0);var Q=!F||window.parent===window,ee=!1;if(!Q)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Q&&!t)throw Error("emit function is required");if(!Q&&!ee)return function(){};void 0!==M&&void 0===E.mousemove&&(E.mousemove=M),iS.reset();var et=!0===y?{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,hidden:!0}:void 0!==_?_:{password:!0},er=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b,headTitleMutations:"all"===b}:b||{};void 0===eo&&(eo=window),"NodeList"in eo&&!eo.NodeList.prototype.forEach&&(eo.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in eo&&!eo.DOMTokenList.prototype.forEach&&(eo.DOMTokenList.prototype.forEach=Array.prototype.forEach);var en=0,ei=function(e){for(var t,r=B(H||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!ee&&(e=C(e)),e};sb=function(e,i){if(e.timestamp=nk(),(null==(s=nX[0])?void 0:s.isFrozen())&&e.type!==nN.FullSnapshot&&(e.type!==nN.IncrementalSnapshot||e.data.source!==nj.Mutation)&&nX.forEach(function(e){return e.unfreeze()}),Q)null==t||t(ei(e),i);else if(ee){var o={type:"rrweb",event:ei(e),origin:window.location.origin,isCheckout:i};if(es)for(var s,a,u=B(es);!(a=u()).done;){var c=a.value;window.parent.postMessage(o,c)}else window.parent.postMessage(o,"*")}if(e.type===nN.FullSnapshot)ea=e,en=0;else if(e.type===nN.IncrementalSnapshot){if(e.data.source===nj.Mutation&&e.data.isAttachIframe)return;en++;var l=n&&en>=n,h=r&&e.timestamp-ea.timestamp>r;(l||h)&&sw(!0)}};for(var eo,es,ea,eu,ec=function(e){sb({type:nN.IncrementalSnapshot,data:T({source:nj.Mutation},e)})},eh=function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.Scroll},e)})},ep=function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.CanvasMutation},e)})},ed=new iy({mutationCb:ec,adoptedStyleSheetCb:function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.AdoptedStyleSheet},e)})}}),ef=new ie({mirror:iS,mutationCb:ec,stylesheetManager:ed,recordCrossOriginIframes:F,wrappedEmit:sb}),eg=B(H||[]);!(eu=eg()).done;){var em=eu.value;em.getMirror&&em.getMirror({nodeMirror:iS,crossOriginIframeMirror:ef.crossOriginIframeMirror,crossOriginIframeStyleMirror:ef.crossOriginIframeStyleMirror})}var ev=new i_;sS=new iv({recordCanvas:P,mutationCb:ep,win:window,blockClass:o,blockSelector:a,mirror:iS,sampling:E.canvas,dataURLOptions:O});var ey=new it({mutationCb:ec,scrollCb:eh,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:et,dataURLOptions:O,maskTextFn:S,maskInputFn:w,recordCanvas:P,inlineImages:G,sampling:E,slimDOMOptions:er,iframeManager:ef,stylesheetManager:ed,canvasManager:sS,keepIframeSrcFn:Y,processedNodeManager:ev},mirror:iS});sw=function(e){if(void 0===e&&(e=!1),A){sb({type:nN.Meta,data:{href:window.location.href,width:nE(),height:nx()}},e),ed.reset(),ey.init(),nX.forEach(function(e){return e.lock()});var t,r,n,i,s,u,c,l,h,p,f,m,y,_,b,k,C,x,E,I,M,R,T,D,L=(t=document,i=void 0===(n=(r={mirror:iS,blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:et,maskTextFn:S,maskInputFn:w,slimDOM:er,dataURLOptions:O,recordCanvas:P,inlineImages:G,onSerialize:function(e){nT(e,iS)&&ef.addIframe(e),nA(e,iS)&&ed.trackLinkElement(e),nD(e)&&ey.addShadowRoot(nv(e),document)},onIframeLoad:function(e,t){ef.attachIframe(e,t),ey.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ed.attachLinkElement(e,t)},keepIframeSrcFn:Y}).mirror)?new el:n,s=r.blockClass,u=r.blockSelector,c=r.maskTextClass,l=r.maskTextSelector,h=r.inlineStylesheet,p=r.inlineImages,f=r.recordCanvas,y=void 0!==(m=r.maskAllInputs)&&m,_=r.maskTextFn,b=r.maskInputFn,C=void 0!==(k=r.slimDOM)&&k,x=r.dataURLOptions,E=r.preserveWhiteSpace,I=r.onSerialize,M=r.onIframeLoad,R=r.iframeLoadTimeout,T=r.onStylesheetLoad,eL(t,{doc:t,mirror:i,blockClass:void 0===s?"rr-block":s,blockSelector:void 0===u?null:u,maskTextClass:void 0===c?"rr-mask":c,maskTextSelector:void 0===l?null:l,ski
20pChild:!1,inlineStylesheet:void 0===h||h,maskInputOptions:!0===y?{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,hidden:!0}:!1===y?{password:!0}:y,maskTextFn:_,maskInputFn:b,slimDOMOptions:!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C,dataURLOptions:x,inlineImages:void 0!==p&&p,recordCanvas:void 0!==f&&f,preserveWhiteSpace:E,onSerialize:I,onIframeLoad:M,iframeLoadTimeout:R,onStylesheetLoad:T,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(D=r.keepIframeSrcFn)?function(){return!1}:D,newlyAddedElement:!1}));if(!L)return console.warn("Failed to snapshot the document");sb({type:nN.FullSnapshot,data:{node:L,initialOffset:nC(window)}},e),nX.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ed.adoptStyleSheets(document.adoptedStyleSheets,iS.getId(document))}};try{var e_=[],eb=function(e){var t;return nY(n5)({mutationCb:ec,mousemoveCb:function(e,t){return sb({type:nN.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.MouseInteraction},e)})},scrollCb:eh,viewportResizeCb:function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.ViewportResize},e)})},inputCb:function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.Input},e)})},mediaInteractionCb:function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.MediaInteraction},e)})},styleSheetRuleCb:function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.StyleSheetRule},e)})},styleDeclarationCb:function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.StyleDeclaration},e)})},canvasMutationCb:ep,fontCb:function(e){return sb({type:nN.IncrementalSnapshot,data:T({source:nj.Font},e)})},selectionCb:function(e){sb({type:nN.IncrementalSnapshot,data:T({source:nj.Selection},e)})},customElementCb:function(e){sb({type:nN.IncrementalSnapshot,data:T({source:nj.CustomElement},e)})},blockClass:o,ignoreClass:c,ignoreSelector:h,maskTextClass:d,maskTextSelector:g,maskInputOptions:et,inlineStylesheet:v,sampling:E,recordDOM:A,recordCanvas:P,inlineImages:G,userTriggeredOnInput:z,collectFonts:V,doc:e,maskInputFn:w,maskTextFn:S,keepIframeSrcFn:Y,blockSelector:a,slimDOMOptions:er,dataURLOptions:O,mirror:iS,iframeManager:ef,stylesheetManager:ed,shadowDomManager:ey,processedNodeManager:ev,canvasManager:sS,ignoreCSSAttributes:Z,plugins:(null==(t=null==H?void 0:H.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return sb({type:nN.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},k)};ef.addLoadListener(function(e){try{var t=e.contentDocument,r=eb(t);e_.push(r);var n=ef.getObserverCleanup(e);ef.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=e_.indexOf(r);-1!==e&&e_.splice(e,1);for(var i=nX.length-1;i>=0;i--)nX[i].getDoc()===t&&nX.splice(i,1)}catch(e){}})}catch(e){console.warn(e)}});var ew=function(){sw(),e_.push(eb(document)),ib=!0};return"interactive"===document.readyState||"complete"===document.readyState?ew():(e_.push(ny("DOMContentLoaded",function(){sb({type:nN.DomContentLoaded,data:{}}),"DOMContentLoaded"===q&&ew()})),e_.push(ny("load",function(){sb({type:nN.Load,data:{}}),"load"===q&&ew()},window))),function(){e_.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),ev.destroy(),ib=!1,s_=void 0}}catch(e){console.warn(e)}}ik.addCustomEvent=function(e,t){if(!ib)throw Error("please add custom event after start recording");sb({type:nN.Custom,data:{tag:e,payload:t}})},ik.freezePage=function(){nX.forEach(function(e){return e.freeze()})},ik.takeFullSnapshot=function(e){if(!ib)throw Error("please take full snapshot after start recording");sw(e)},ik.mirror=iS,(o8=sk||(sk={}))[o8.NotStarted=0]="NotStarted",o8[o8.Running=1]="Running",o8[o8.Stopped=2]="Stopped",ik.addCustomEvent,ik.freezePage,ik.takeFullSnapshot;var iC={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]}
20,ix={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},iE={};function iI(e){if(iE[e])return iE[e];var t=globalThis[e],r=t.prototype,n=e in iC?iC[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in ix?ix[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return iE[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;if(document.body.removeChild(a),!c)return r;return iE[e]=c}catch(e){return r}}var iO={},iM=function(e){var t="Node",r=e,n="parentNode",i,o=t+"."+String(n);if(iO[o])return iO[o].call(r);var s=null==(i=Object.getOwnPropertyDescriptor(iI(t),n))?void 0:i.get;return s?(iO[o]=s,s.call(r)):r[n]},iR={exports:{}},iT=String,iA=function(){return{isColorSupported:!1,reset:iT,bold:iT,dim:iT,italic:iT,underline:iT,inverse:iT,hidden:iT,strikethrough:iT,black:iT,red:iT,green:iT,yellow:iT,blue:iT,magenta:iT,cyan:iT,white:iT,gray:iT,bgBlack:iT,bgRed:iT,bgGreen:iT,bgYellow:iT,bgBlue:iT,bgMagenta:iT,bgCyan:iT,bgWhite:iT}};iR.exports=iA(),iR.exports.createColors=iA;var iD=iR.exports,iP=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return P(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),iL=function(e){function t(r,n,i,o,s,a){var u;return(u=e.call(this,r)||this).name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}D(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=iD.isColorSupported),iP&&e&&(i=iP(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=iD.createColors(!0),l=c.bold,h=c.gray,p=c.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-u)+" | ";if(o===n.line){var c=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+c+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(j(Error));iL.default=iL;var iF={};iF.isClean=Symbol("isClean"),iF.my=Symbol("my");var iN={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},ij=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return iN[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=iN[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function iU(e,t){new ij(t).stringify(e)}ij.default=ij,iU.default=iU;var iB=iF.isClean,iq=iF.my,i$=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[iB]=!1,this[iq]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=B(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":N(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new iL(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[iB]){this[iB]=!1;for(var e=this;e=e.parent;)e[iB]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
20else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new ij().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=B(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":N(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=iU),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},R(e,[{key:"proxyOf",get:function(){return this}}]),e}();i$.default=i$;var iz=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=T({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return D(t,e),R(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(i$);iz.default=iz;var iW=iP.SourceMapConsumer,iV=iP.SourceMapGenerator,iK=iP.existsSync,iG=iP.readFileSync,iH=iP.dirname,iJ=iP.join,iY=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=iH(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new iW(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":N(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
20if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=iH(e),iK(e))return this.mapFile=e,iG(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(P(t,iW))return iV.fromSourceMap(t).toString();else if(P(t,iV))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=iJ(iH(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();iY.default=iY;var iX=iP.SourceMapConsumer,iZ=iP.SourceMapGenerator,iQ=iP.fileURLToPath,i0=iP.pathToFileURL,i1=iP.isAbsolute,i2=iP.resolve,i3=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
20,i4=Symbol("fromOffsetCache"),i6=!!(iX&&iZ),i5=!!(i2&&i1),i9=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":N(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!i5||/^\w+:\/\//.test(t.from)||i1(t.from)?this.file=t.from:this.file=i2(t.from)),i5&&i6){var r=new iY(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+i3(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":N(t))==="object"){var i,o,s,a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new iL(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new iL(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(i0&&(i.input.url=i0(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[i4])a=this[i4];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[i4]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,u,c=a.length-2;o<c;)if(e<a[u=o+(c-o>>1)])c=u-1;else if(e>=a[u+1])o=u+1;else{o=u;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:i2(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=i1(a.source)?i0(a.source):new URL(a.source,this.map.consumer().sourceRoot||i0(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(iQ)u.file=iQ(o);else throw Error("file: protocol is not available in this PostCSS build");var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},R(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();i9.default=i9,iP&&iP.registerInput&&iP.registerInput(i9);var i8=iP.SourceMapConsumer,i7=iP.SourceMapGenerator,oe=iP.dirname,ot=iP.relative,or=iP.resolve,on=iP.sep,oi=iP.pathToFileURL,oo=!!(i8&&i7),os=!!(oe&&or&&ot&&on),oa=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=B(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||oe(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new i8(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),os&&oo&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i7.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new i7({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new i7({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(r.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=r.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};(!("decl"===u.type||"atrule"===u.type&&!u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=r.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?oe(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=oe(or(r,this.mapOpts.annotation)));var n=ot(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new i9(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(oi){var r=oi(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===on&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),ou=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return D(t,e),t}(i$);ou.default=ou;var oc=iF.isClean,ol=iF.my,oh=function(e){function t(){return e.apply(this,arguments)||this}D(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=B(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),u=B(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=B(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
20else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=B(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=B(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(sC(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=B(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,u=B(e);!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new iz(e)]}else if(e.selector)e=[new sx(e)];else if(e.name)e=[new sE(e)];else if(e.text)e=[new ou(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[ol]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[oc]&&function e(t){if(t[oc]=!1,t.proxyOf.nodes)for(var r,n=B(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=B(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=B(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=B(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?P(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?P(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?P(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},R(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(i$);oh.registerParse=function(e){sC=e},oh.registerRule=function(e){sx=e},oh.registerAtRule=function(e){sE=e},oh.registerRoot=function(e){sI=e},oh.default=oh,oh.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sE.prototype):"rule"===e.type?Object.setPrototypeOf(e,sx.prototype):"decl"===e.type?Object.setPrototypeOf(e,iz.prototype):"comment"===e.type?Object.setPrototypeOf(e,ou.prototype):"root"===e.type&&Object.setPrototypeOf(e,sI.prototype),e[ol]=!0,e.nodes&&e.nodes.forEac
20h(function(e){oh.rebuild(e)})};var op=function(e){function t(t){var r;return(r=e.call(this,T({type:"document"},t))||this).nodes||(r.nodes=[]),r}return D(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sO(new sM,this,e).stringify()},t}(oh);op.registerLazyResult=function(e){sO=e},op.registerProcessor=function(e){sM=e},op.default=op;var od=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();od.default=od;var of=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new od(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},R(e,[{key:"content",get:function(){return this.css}}]),e}();of.default=of;var og=/[\t\n\f\r "#'()/;[\\\]{}]/g,om=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ov=/.[\r\n"'(/\\]/,oy=/[\da-f]/i,o_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}D(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(oh);o_.default=o_,oh.registerAtRule(o_);var ob=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}D(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=B(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new sR(new sT,this,e).stringify()},t}(oh);ob.registerLazyResult=function(e){sR=e},ob.registerProcessor=function(e){sT=e},ob.default=ob,oh.registerRoot(ob);var ow={comma:function(e){return ow.split(e,[","],!0)},space:function(e){return ow.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=B(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};ow.default=ow;var oS=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return D(t,e),R(t,[{key:"selectors",get:function(){return ow.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(oh);oS.default=oS,oh.registerRule(oS);var ok=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,g];break;
20case 40:if(c=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===c&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=g;break}else y("bracket");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||ov.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=g+1;break}else y("string");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:og.lastIndex=g+1,og.test(p),n=0===og.lastIndex?p.length-1:og.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,oy.test(p.charAt(n)))){for(;oy.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n]):(om.lastIndex=g+1,om.test(p),n=0===om.lastIndex?p.length-1:om.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},oC={empty:!0,space:!0},ox=function(){function e(e){this.input=e,this.root=new ob,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new o_;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=B(e.entries());!(n=o()).done;){var s=n.value,a=s[0],u=s[1];if("("===(t=u[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(u);r=u}return!1},t.comment=function(e){var t=new ou;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=ok(this.input)},t.decl=function(e,t){var r,n,i=new iz;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
vendor: 5,742 bytes, line 20
20e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(r=e[u])[1].toLowerCase()){i.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(i.raws.important=c);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new oS;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",oC[a]||oC[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new oS;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function oE(e,t){var r=new ox(new i9(e,t));try{r.parse()}catch(e){throw e}return r.root}oE.default=oE,oh.registerParse(oE);var oI=iF.isClean,oO=iF.my,oM={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},oR={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},oT={Once:!0,postcssPlugin:!0,prepare:!0};function oA(e){return(void 0===e?"undefined":N(e))==="object"&&"function"==typeof e.then}function oD(e){var t=!1,r=oM[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function oP(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:oD(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
20function oL(e){return e[oI]=!1,e.nodes&&e.nodes.forEach(function(e){return oL(e)}),e}var oF={},oN=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":N(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=oL(r);else if(P(r,e)||P(r,of))i=oL(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=oE;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[oO]&&oh.rebuild(i)}this.result=new of(t,i,n),this.helpers=T({},oF,{postcss:oF,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":N(e))==="object"&&e.prepare?T({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=B(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":N(i))==="object")for(var o in i){if(!oR[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!oT[o])if("object"===N(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return O(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return q(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!oA(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,d.label=7;case 7:if(o[oI])return[3,14];o[oI]=!0,s=[oP(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!oA(a=e.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw u=d.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return q(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=B(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,$(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":N(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(oA(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=iU;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new oa(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=B(this.plugins);!(e=t()).done;){var r=e.value;if(oA(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[oI];)n[oI]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=B(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=B(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
20if(oA(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[oI]){a[oI]=!0,e.push(oP(a));return}t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[oI]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[oI]=!0;for(var r,n=oD(e),i=B(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[oI]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},R(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();oN.registerPostcss=function(e){oF=e},oN.default=oN,ob.registerLazyResult(oN),op.registerLazyResult(oN);var oj=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new of(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new oa(iU,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],u=s[1];a&&(this.result.css=a),u&&(this.result.map=u)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},R(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=oE(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();oj.default=oj;var oU=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=B(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":N(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":N(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":N(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new oN(this,e,t):new oj(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function oB(e,t){if(Array.isArray(e))return e.map(function(e){return oB(e)});var r=e.inputs,n=L(e,["inputs"]);if(r){t=[];for(var i,o=B(r);!(i=o()).done;){var s=i.value,a=T({},s,{__proto__:i9.prototype});a.map&&(a.map=T({},a.map,{__proto__:iY.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return oB(e,t)})),n.source){var u=n.source,c=u.inputId;n.source=L(u,["inputId"]),null!=c&&(n.source.input=t[c])}if("root"===n.type)return new ob(n);if("decl"===n.type)return new iz(n);if("rule"===n.type)return new oS(n);if("comment"===n.type)return new ou(n);if("atrule"===n.type)return new o_(n);else throw Error("Unknown node type: "+e.type)}function oq(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new oU(t)}oU.default=oU,ob.registerProcessor(oU),op.registerProcessor(oU),oB.default=oB,oq.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new oU().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return oq([i(r)]).process(e,t)},i},oq.stringify=iU,oq.parse=oE,oq.fromJSON=oB,oq.list=ow,oq.comment=function(e){return new ou(e)},oq.atRule=function(e){return new o_(e)},oq.decl=function(e){return new iz(e)},oq.rule=function(e){return new oS(e)},oq.root=function(e){return new ob(e)},oq.document=function(e){return new op(e)},oq.CssSyntaxError=iL,oq.Declaration=iz,oq.Container=oh,oq.Processor=oU,oq.Document=op,oq.Comment=ou,oq.Warning=od,oq.AtRule=o_,oq.Result=of,oq.Input=i9,oq.Rule=oS,oq.Root=ob,oq.Node=i$,oN.registerPostcss(oq),oq.default=oq;var o$=oq&&oq.__esModule&&Object.prototype.hasOwnProperty.call(oq,"default")?oq.default:oq;o$.stringify,o$.fromJSON,o$.plugin,o$.parse,o$.list,o$.document,o$.comment,o$.atRule,o$.rule,o$.decl,o$.root,o$.CssSyntaxError,o$.Declaration,o$.Container,o$.Processor,o$.Document,o$.Comment,o$.Warning,o$.AtRule,o$.Result,o$.Input,o$.Rule,o$.Root,o$.Node;var oz=Object.defineProperty,oW=function(e,t,r){var n;return n=(void 0===t?"undefined":N(t))!=="symbol"?t+"":t,n in e?oz(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},oV=function(){function e(e){oW(this,"fileName"),oW(this,"functionName"),oW(this,"lineNumber"),oW(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),oK=/(^|@)\S+:\d+/,oG=/^\s*at .*(\S+:\d+|\(native\))/m,oH=/^(eval@)?(\[native code])?$/,oJ
20={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(oG)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(oG)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop());return new oV({functionName:n.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(oH)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new oV({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new oV({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new oV({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new oV({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(oK)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop());return new oV({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function oY(e){return"[object Object]"===Object.prototype.toString.call(e)}function oX(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o,s,a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(oY(o=t)&&Object.keys(o).length>r.numOfKeysLimit||"function"==typeof o||oY(o)&&function e(t,r){if(0===r)return!0;for(var n,i=Object.keys(t),o=B(i);!(n=o()).done;){var s=n.value;if(oY(t[s])&&e(t[s],r-1))return!0}return!1}(o,r.depthOfLimit)){return s=t.toString(),r.stringLengthLimit&&s.length>r.stringLengthLimit&&(s=""+s.slice(0,r.stringLengthLimit)+"..."),s}if((void 0===t?"undefined":N(t))==="bigint")return t.toString()+"n";if(P(t,Event)){var u={};for(var c in t){var l=t[c];Array.isArray(l)?u[c]=function(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}(l.length?l[0]:null):u[c]=l}return u}return P(t,Node)?P(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:P(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var oZ={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","t
20ime","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function oQ(e,t,r){var n=r?Object.assign({},oZ,r):oZ,i=n.logger;if(!i)return function(){};l="string"==typeof i?t[i]:i;var o=0,s=!1,a=[];if(n.level.includes("error")){var u=function(t){var r=t.message,i=t.error;e({level:"error",trace:oJ.parse(i).map(function(e){return e.toString()}),payload:[oX(r,n.stringifyOptions)]})};t.addEventListener("error",u),a.push(function(){t.removeEventListener("error",u)});var c=function(t){var r,i;P(t.reason,Error)?i=[oX("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,n.stringifyOptions)]:(r=Error(),i=[oX("Uncaught (in promise)",n.stringifyOptions),oX(t.reason,n.stringifyOptions)]),e({level:"error",trace:oJ.parse(r).map(function(e){return e.toString()}),payload:i})};t.addEventListener("unhandledrejection",c),a.push(function(){t.removeEventListener("unhandledrejection",c)})}for(var l,h,p=B(n.level);!(h=p()).done;){var d=h.value;a.push(function(t,r){var i=this;if(!t[r])return function(){};try{if(!(r in t))return function(){};var a=t[r],u=function(t){return function(){for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];if((t.apply(i,u),"assert"!==r||!u[0])&&!s){s=!0;try{var l=oJ.parse(Error()).map(function(e){return e.toString()}).splice(1),h=("assert"===r?u.slice(1):u).map(function(e){return oX(e,n.stringifyOptions)});++o<n.lengthThreshold?e({level:r,trace:l,payload:h}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[oX("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],u))}finally{s=!1}}}}(a);return"function"==typeof u&&(u.prototype=u.prototype||{},Object.defineProperties(u,{__rrweb_original__:{enumerable:!1,value:a}})),t[r]=u,function(){t[r]=a}}catch(e){return function(){}}}(l,d))}return function(){a.forEach(function(e){return e()})}}var o0,o1,o2,o3,o4,o6,o5,o9,o8,o7,se,st,sr,sn,si,so,ss,sa,su,sc,sl,sh,sp,sd,sf,sg,sm,sv,sy,s_,sb,sw,sS,sk,sC,sx,sE,sI,sO,sM,sR,sT,sA,sD,sP,sL=o7.setImmediate,sF=Object.prototype.toString,sN=void 0!==sL?function(e){return sL(e)}:setTimeout;try{Object.defineProperty({},"x",{}),sA=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){sA=function(e,t,r){return e[t]=r,e}}function sj(e,t){sP.add(e,t),sD||(sD=sN(sP.drain))}function sU(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function sB(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=sU(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function sq(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=sU(e))?sj(function(){var n=new sW(r);try{t.call(e,function(){sq.apply(n,arguments)},function(){s$.apply(n,arguments)})}catch(e){s$.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&sj(sB,r))}catch(e){s$.call(new sW(r),e)}}}function s$(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&sj(sB,t))}function sz(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)}(i)}function sW(e){this.def=e,this.triggered=!1}function sV(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function sK(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new sV(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&sj(sB,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){sq.call(t,e)},function(e){s$.call(t,e)})}catch(e){s$.call(t,e)}}sP=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=sD=void 0;r;)r.fn.call(r.self),r=r.next}}}();var sG=sA({},"constructor",sK,!1);sK.prototype=sG,sA(sG,"__NPO__",0,!1),sA(sK,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),sA(sK,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),sA(sK,"all",function(e){var t=this;return"[object Array]"!==sF.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;sz(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),sA(sK,"race",function(e){var t=this;return"[object Array]"!==sF.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");sz(t,e,function(e,t){r(t)},n)})}),v="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:sK;var sH=Array.prototype,sJ=Function.prototype,sY=Object.prototype,sX=sH.slice,sZ=sY.toString,sQ=sY.hasOwnProperty,s0=o7.console,s1=o7.navigator,s2=o7.document,s3=o7.opera,s4=o7.screen,s6=s1.userAgent,s5=sJ.bind,s9=sH.forEac
20h,s8=sH.indexOf,s7=sH.map,ae=Array.isArray,at={},ar={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},an={log:function(){if(S.DEBUG&&!ar.isUndefined(s0)&&s0)try{s0.log.apply(s0,arguments)}catch(e){ar.each(arguments,function(e){s0.log(e)})}},warn:function(){if(S.DEBUG&&!ar.isUndefined(s0)&&s0){var e=["Mixpanel warning:"].concat(ar.toArray(arguments));try{s0.warn.apply(s0,e)}catch(t){ar.each(e,function(e){s0.warn(e)})}}},error:function(){if(S.DEBUG&&!ar.isUndefined(s0)&&s0){var e=["Mixpanel error:"].concat(ar.toArray(arguments));try{s0.error.apply(s0,e)}catch(t){ar.each(e,function(e){s0.error(e)})}}},critical:function(){if(!ar.isUndefined(s0)&&s0){var e=["Mixpanel error:"].concat(ar.toArray(arguments));try{s0.error.apply(s0,e)}catch(t){ar.each(e,function(e){s0.error(e)})}}}},ai=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(an,arguments)}},ao=function(e){return{log:ai(an.log,e),error:ai(an.error,e),critical:ai(an.critical,e)}},as=function(e){return function(){try{return e.apply(this,arguments)}catch(e){an.critical("Implementation error. Please turn on debug and contact [email protected]."),S.DEBUG&&an.critical(e)}}},aa=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=as(t[r]))};ar.bind=function(e,t){var r,n;if(s5&&e.bind===s5)return s5.apply(e,sX.call(arguments,1));if(!ar.isFunction(e))throw TypeError();return r=sX.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(sX.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(sX.call(arguments)));return Object(s)===s?s:o}},ar.each=function(e,t,r){if(null!=e){if(s9&&e.forEach===s9)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===at)return}else for(var o in e)if(sQ.call(e,o)&&t.call(r,e[o],o,e)===at)return}},ar.extend=function(e){return ar.each(sX.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},ar.isArray=ae||function(e){return"[object Array]"===sZ.call(e)},ar.isFunction=function(e){return"function"==typeof e},ar.isArguments=function(e){return!!(e&&sQ.call(e,"callee"))},ar.toArray=function(e){return e?e.toArray?e.toArray():ar.isArray(e)||ar.isArguments(e)?sX.call(e):ar.values(e):[]},ar.map=function(e,t,r){if(s7&&e.map===s7)return e.map(t,r);var n=[];return ar.each(e,function(e){n.push(t.call(r,e))}),n},ar.keys=function(e){var t=[];return null===e||ar.each(e,function(e,r){t[t.length]=r}),t},ar.values=function(e){var t=[];return null===e||ar.each(e,function(e){t[t.length]=e}),t},ar.include=function(e,t){var r=!1;return null===e?r:s8&&e.indexOf===s8?-1!=e.indexOf(t):(ar.each(e,function(e){if(r||(r=e===t))return at}),r)},ar.includes=function(e,t){return -1!==e.indexOf(t)},ar.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},ar.isObject=function(e){return e===Object(e)&&!ar.isArray(e)},ar.isEmptyObject=function(e){if(ar.isObject(e)){for(var t in e)if(sQ.call(e,t))return!1;return!0}return!1},ar.isUndefined=function(e){return void 0===e},ar.isString=function(e){return"[object String]"==sZ.call(e)},ar.isDate=function(e){return"[object Date]"==sZ.call(e)},ar.isNumber=function(e){return"[object Number]"==sZ.call(e)},ar.isElement=function(e){return!!(e&&1===e.nodeType)},ar.encodeDates=function(e){return ar.each(e,function(t,r){ar.isDate(t)?e[r]=ar.formatDate(t):ar.isObject(t)&&(e[r]=ar.encodeDates(t))}),e},ar.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},ar.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},ar.strip_empty_properties=function(e){var t={};return ar.each(e,function(e,r){ar.isString(e)&&e.length>0&&(t[r]=e)}),t},ar.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):ar.isArray(e)?(r=[],ar.each(e,function(e){r.push(ar.truncate(e,t))})):ar.isObject(e)?(r={},ar.each(e,function(e,n){r[n]=ar.truncate(e,t)})):r=e,r},ar.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",u=0,c=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===sZ.apply(h)){for(o=0,u=h.length;o<u;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+c+"]":"["+l.join(",")+"]",i=c,a}for(s in h)sQ.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+c+"}":"{"+l.join(",")+"}",i=c,a}};return r("",{"":e})},a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},u=function(e){var t=SyntaxError(e);throw t.at=n,t.text=o,t},c=function(e){return e&&e!==i&&u("Expected '"+e+"' instead of '"+i+"'"),i=o.charAt(n),n+=1,i},l=function(){var e,t="";for("-"===i&&(t="-",c("-"));i>="0"&&i<="9";)t+=i,c();if("."===i)for(t+=".";c()&&i>="0"&&i<="9";)t+=i;if("e"===i||"E"===i)for(t+=i,c(),("-"===i||"+"===i)&&(t+=i,c());i>="0"&&i<="9";)t+=i,c();if(isFinite(e=+t))return e;u("Bad number")},h=function(){var e,t,r,n="";if('"'===i)for(;c();){if('"'===i)return c(),n;if("\\"===i)if(c(),"u"===i){for(t=0,r=0;t<4&&isFinite(e=parseInt(c(),16));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else if("string"==typeof a[i])n+=a[i];else break;else n+=i}u("Bad string")},p=function(){for(;i&&i<=" ";)c()},d=function(){switch(i){case"t":return c("t"),c("r"),c("u"),c("e"),!0;case"f":return c("f"),c("a"),c("l"),c("s"),c("e"),!1;case"n":return c("n"),c("u"),c("l"),c("l"),null}u('Unexpected "'+i+'"')},f=function(){var e=[];
20if("["===i){if(c("["),p(),"]"===i)return c("]"),e;for(;i;){if(e.push(s()),p(),"]"===i)return c("]"),e;c(","),p()}}u("Bad array")},g=function(){var e,t={};if("{"===i){if(c("{"),p(),"}"===i)return c("}"),t;for(;i;){if(e=h(),p(),c(":"),Object.hasOwnProperty.call(t,e)&&u('Duplicate key "'+e+'"'),t[e]=s(),p(),"}"===i)return c("}"),t;c(","),p()}}u("Bad object")},s=function(){switch(p(),i){case"{":return g();case"[":return f();case'"':return h();case"-":return l();default:return i>="0"&&i<="9"?l():d()}},ar.JSONDecode=function(e){var t;return o=e,n=0,i=" ",t=s(),p(),i&&u("Syntax error"),t},ar.base64Encode=function(e){var t,r,n,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,c=0,l="",h=[];if(!e)return e;e=ar.utf8Encode(e);do t=e.charCodeAt(u++),r=(s=t<<16|e.charCodeAt(u++)<<8|e.charCodeAt(u++))>>18&63,n=s>>12&63,i=s>>6&63,o=63&s,h[c++]=a.charAt(r)+a.charAt(n)+a.charAt(i)+a.charAt(o);while(u<e.length);switch(l=h.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},ar.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(n=0,t=r=0,o=e.length;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},ar.UUID=function(){try{return o7.crypto.randomUUID()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",ar.map(e,function(e){return e.toString(16)}).join("")}};var au=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];ar.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<au.length;t++)if(-1!==e.indexOf(au[t]))return!0;return!1},ar.HTTPBuildQuery=function(e,t){var r,n,i=[];return ar.isUndefined(t)&&(t="&"),ar.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},ar.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){an.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},ar.cookie={get:function(e){for(var t=e+"=",r=s2.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=ar.JSONDecode(ar.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=aC(s2.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),s2.cookie=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c},set:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=aC(s2.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c;return s2.cookie=p,p},remove:function(e,t,r){ar.cookie.set(e,"",-1,t,!1,!1,r)}};var ac=function(e){var t=!0;try{var r="__mplss_"+ab(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},al=null,ah=function(e,t){return null===al||t?al=ac(e||o7.localStorage):al},ap=null;function ad(e,t,r){var n=function(e){an.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||an.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return ar.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var af=null,ag=null;try{af=o7.localStorage,ag=o7.sessionStorage}catch(e){}ar.localStorage=ad(af,"localStorage",ah),ar.sessionStorage=ad(ag,"sessionStorage",function(e,t){return null===ap||t?ap=ac(e||o7.sessionStorage):ap}),ar.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(!t)return void an.error("No valid element provided to register_event");
20if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s,a,u,c="on"+r,l=t[c];t[c]=(s=t,a=n,u=l,function(t){if(t=t||e(o7.event)){var r,n,i=!0;return ar.isFunction(u)&&(r=u(t)),n=a.call(s,t),(!1===r||!1===n)&&(i=!1),i}})}}}();var am=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');ar.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!s2.getElementsByTagName)return[];var n=r.split(" "),i=[s2];for(f=0;f<n.length;f++){if((l=n[f].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(h=l.split("#"))[0];var o=h[1],s=s2.getElementById(o);if(!s||b&&s.nodeName.toLowerCase()!=b)return[];i=[s];continue}if(l.indexOf(".")>-1){b=(h=l.split("."))[0];var a,u=h[1];for(b||(b="*"),p=[],d=0,g=0;g<i.length;g++)for(m=0,v="*"==b?e(i[g]):i[g].getElementsByTagName(b);m<v.length;m++)p[d++]=v[m];for(g=0,i=[],y=0;g<p.length;g++)p[g].className&&ar.isString(p[g].className)&&(a=p[g],(" "+a.className+" ").replace(t," ").indexOf(" "+u+" ")>=0)&&(i[y++]=p[g]);continue}var c=l.match(am);if(c){var l,h,p,d,f,g,m,v,y,_,b=c[1],w=c[2],S=c[3],k=c[4];for(b||(b="*"),p=[],d=0,g=0;g<i.length;g++)for(m=0,v="*"==b?e(i[g]):i[g].getElementsByTagName(b);m<v.length;m++)p[d++]=v[m];switch(i=[],y=0,S){case"=":_=function(e){return e.getAttribute(w)==k};break;case"~":_=function(e){return e.getAttribute(w).match(RegExp("\\b"+k+"\\b"))};break;case"|":_=function(e){return e.getAttribute(w).match(RegExp("^"+k+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(w).indexOf(k)};break;case"$":_=function(e){return e.getAttribute(w).lastIndexOf(k)==e.getAttribute(w).length-k.length};break;case"*":_=function(e){return e.getAttribute(w).indexOf(k)>-1};break;default:_=function(e){return e.getAttribute(w)}}for(g=0,i=[],y=0;g<p.length;g++)_(p[g])&&(i[y++]=p[g]);continue}for(g=0,b=l,p=[],d=0;g<i.length;g++)for(m=0,v=i[g].getElementsByTagName(b);m<v.length;m++)p[d++]=v[m];i=p}return i}return function(e){return ar.isElement(e)?[e]:ar.isObject(e)&&!ar.isUndefined(e.length)?e:r.call(this,e)}}();var av=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],ay=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];ar.info={campaignParams:function(e){var t="",r={};return ar.each(av,function(n){(t=ar.getQueryParam(s2.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return ar.each(ay,function(r){(e=ar.getQueryParam(s2.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return ar.extend(ar.info.campaignParams(),ar.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=ar.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var n=ar.getQueryParam(e,"yahoo"!=t?"q":"p");n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,r){if(t=t||"",r||ar.includes(e," OPR/"))return ar.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(ar.includes(e,"IEMobile")||ar.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(ar.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(ar.includes(e,"Edge")||ar.includes(e,"Edg/"))return"Microsoft Edge";else if(ar.includes(e,"FBIOS"))return"Facebook Mobile";else if(ar.includes(e,"Whale/"))return"Whale Browser";else if(ar.includes(e,"Chrome"))return"Chrome";else if(ar.includes(e,"CriOS"))return"Chrome iOS";else if(ar.includes(e,"UCWEB")||ar.includes(e,"UCBrowser"))return"UC Browser";else if(ar.includes(e,"FxiOS"))return"Firefox iOS";else if(ar.includes(t,"Apple"))return ar.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(ar.includes(e,"Android"))return"Android Mobile";else if(ar.includes(e,"Konqueror"))return"Konqueror";else if(ar.includes(e,"Firefox"))return"Firefox";else if(ar.includes(e,"MSIE")||ar.includes(e,"Trident/"))return"Internet Explorer";else if(ar.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[ar.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){if(/Windows/i.test(s6))return/Phone/.test(s6)||/WPDesktop/.test(s6)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(s6))return"iOS";if(/Android/.test(s6))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(s6))return"BlackBerry";if(/Mac/i.test(s6))return"Mac OS X";else if(/Linux/.test(s6))return"Linux";else if(/CrOS/.test(s6))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return o7.location.href},properties:function(e){return"object"!=typeof e&&(e={}),ar.extend(ar.strip_empty_properties({$os:ar.info.os(),$browser:ar.info.browser(s6,s1.vendor,s3),$referrer:s2.referrer,$referring_domain:ar.info.referringDomain(s2.referrer),$device:ar.info.device(s6)}),{$current_url:ar.info.currentUrl(),$browser_version:ar.info.browserVersion(s6,s1.vendor,s3),$screen_height:s4.height,$screen_width:s4.width,mp_lib:"web",$lib_version:S.LIB_VERSION,$insert_id:ab(),time:ar.timestamp()/1e3},ar.strip_empty_properties(e))},people_properties:function(){return ar.extend(ar.strip_empty_properties({$os:ar.info.os(),$browser:ar.info.browser(s6,s1.vendor,s3)}),{$browser_version:ar.info.browserVersion(s6,s1.vendor,s3)})},mpPageViewProperties:function(){return ar.strip_empty_properties({current_page_title:s2.title,current_domain:o7.location.hostname,current_url_path:o7.location.pathname,current_url_protocol:o7.location.protocol,current_url_search:o7.location.search})}};var a_=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new v(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)}
20)),r}},ab=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},aw=function(){return"00-"+ar.UUID().replace(/-/g,"")+"-"+ar.UUID().replace(/-/g,"").substring(0,16)+"-01"},aS=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,ak=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,aC=function(e){var t=ak,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=aS);var i=e.match(t);return i?i[0]:""},ax=function(){var e=o7.navigator.onLine;return ar.isUndefined(e)||e},aE=function(){},aI=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},aO=null,aM=null;"u">typeof JSON&&(aO=JSON.stringify,aM=JSON.parse),aO=aO||ar.JSONEncode,aM=aM||ar.JSONDecode;var aR=function(e,t,r){if(!o7.CompressionStream)return!1;var n=ar.info.browser(e,t,r),i=ar.info.browserVersion(e,t,r);return"Safari"!==n&&"Mobile Safari"!==n||!(i>=16.4)||!(i<16.6)};ar.info=ar.info,ar.info.browser=ar.info.browser,ar.info.browserVersion=ar.info.browserVersion,ar.info.device=ar.info.device,ar.info.properties=ar.info.properties,ar.isBlockedUA=ar.isBlockedUA,ar.isEmptyObject=ar.isEmptyObject,ar.isObject=ar.isObject,ar.JSONDecode=ar.JSONDecode,ar.JSONEncode=ar.JSONEncode,ar.toArray=ar.toArray,ar.NPO=sK;var aT="mixpanelRecordingEvents",aA="mixpanelRecordingRegistry",aD=[aT,aA],aP=function(e){this.dbPromise=null,this.storeName=e};function aL(e,t){aK(!0,e,t)}function aF(e,t){aK(!1,e,t)}function aN(e,t){return"1"===aV(e,t)}function aj(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||o7,r=t.navigator||{},n=!1;return ar.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){ar.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return an.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===aV(e,t);return r&&an.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function aU(e){return aG(e,function(e){return this.get_config(e)})}function aB(e){return aG(e,function(e){return this._get_config(e)})}function aq(e){return aG(e,function(e){return this._get_config(e)})}function a$(e,t){az(t=t||{}).remove(aW(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function az(e){return"localStorage"===(e=e||{}).persistenceType?ar.localStorage:ar.cookie}function aW(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function aV(e,t){return az(t).get(aW(e,t))}function aK(e,t,r){ar.isString(t)&&t.length?(az(r=r||{}).set(aW(t,r),+!!e,ar.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):an.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function aG(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=aj(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){an.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var u=arguments[arguments.length-1];"function"==typeof u&&u(0)}}aP.prototype._openDb=function(){return new v(function(e,t){var r=o7.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;
vendor: 6,711 bytes, line 20
20aD.forEach(function(e){t.createObjectStore(e)})}})},aP.prototype.init=function(){return o7.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof o7.IDBDatabase?v.resolve():v.reject(e)})):v.reject("indexedDB is not supported in this browser")},aP.prototype.isInitialized=function(){return!!this.dbPromise},aP.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new v(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):v.reject(e)}).bind(this))},aP.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},aP.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},aP.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},aP.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var aH=ao("lock"),aJ=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||o7.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||v};aJ.prototype.withLock=function(e,t){return new this.promiseImpl(ar.bind(function(r,n){var i=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,u=this.timeoutMS,c=this.storage,l=s+":X",h=s+":Y",p=s+":Z",d=function(e){if(new Date().getTime()-o>u){aH.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),c.removeItem(p),c.removeItem(h),m();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},f=function(e,t){e()?t():d(function(){f(e,t)})},g=function(){var e=c.getItem(h);return(!e||e===i)&&(c.setItem(h,i),c.getItem(h)===i||(ah(c,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},m=function(){c.setItem(l,i),f(g,function(){c.getItem(l)===i?v():d(function(){c.getItem(h)!==i?m():f(function(){return!c.getItem(p)},v)})})},v=function(){c.setItem(p,"1");var t=function(){c.removeItem(p),c.getItem(h)===i&&c.removeItem(h),c.getItem(l)===i&&c.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(ah(c,!0))m();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var aY=function(e){this.storage=e||o7.localStorage};aY.prototype.init=function(){return v.resolve()},aY.prototype.isInitialized=function(){return!0},aY.prototype.setItem=function(e,t){return new v(ar.bind(function(r,n){try{this.storage.setItem(e,aO(t))}catch(e){n(e)}r()},this))},aY.prototype.getItem=function(e){return new v(ar.bind(function(t,r){var n;try{n=aM(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},aY.prototype.removeItem=function(e){return new v(ar.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var aX=ao("batch"),aZ=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new aY,this.lock=new aJ(e,{storage:t.sharedLockStorage||o7.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||ar.bind(aX.error,aX),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=a_(ar.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=ar.bind(function(e){return this._enqueuePersisted([e])},this)};aZ.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?v.resolve():this.queueStorage.init().then(ar.bind(function(){this.initialized=!0},this)).catch(ar.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},aZ.prototype.enqueue=function(e,t){var r={id:ab(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),v.resolve(!0))},aZ.prototype._enqueuePersisted=function(e){var t=ar.bind(function(){return this.ensureInit().then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(ar.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(ar.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(ar.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},aZ.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(r){if(r.length){var n={};ar.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):v.resolve(t)};var aQ=function(e,t){var r=[];return ar.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};aZ.prototype.removeItemsByID=function(e){var t={};if(ar.each(e,function(e){t[e]=!0}),this.memQueue=aQ(this.memQueue,t),!this.usePersistence)return v.resolve(!0);var r=ar.bind(function(){return this.ensureInit().then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(e){return e=aQ(e,t),this.saveToStorage(e)},this)).then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw Error("Item not removed from storage")}return!0},this)).catch(ar.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(ar.bind(function(e){return this.reportError("Error acquiring storage lock",e),!ah(this.lock.storage,!0)&&r().then(ar.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(ar.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var a0=function(e,t){var r=[];return ar.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};aZ.prototype.updatePayloads=function(e){return(this.memQueue=a0(this.memQueue,e),this.usePersistence)?this.lock.withLock(ar.bind(function(){return this.ensureInit().then(ar.bind(function(){return this.readFromStorage()},this)).then(ar.bind(function(t){return t=a0(t,e),this.saveToStorage(t)}
20,this)).catch(ar.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(ar.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):v.resolve(!0)},aZ.prototype.readFromStorage=function(){return this.ensureInit().then(ar.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(ar.bind(function(e){return e&&!ar.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(ar.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},aZ.prototype.saveToStorage=function(e){return this.ensureInit().then(ar.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(ar.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},aZ.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(ar.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):v.resolve()};var a1=ao("batch"),a2=function(e,t){this.errorReporter=t.errorReporter,this.queue=new aZ(e,{errorReporter:ar.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};a2.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},a2.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},a2.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},a2.prototype.clear=function(){return this.queue.clear()},a2.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},a2.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},a2.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(ar.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},a2.prototype.sendRequestPromise=function(e,t){return new v(ar.bind(function(r){this.sendRequest(e,t,r)},this))},a2.prototype.flush=function(e){if(this.requestInProgress)return a1.log("Flush: Request already in progress"),v.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(ar.bind(function(i){var o=i.length===n,s=[],a={};if(ar.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=ar.extend({},t.properties,{mp_sent_by_lib_version:S.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),v.resolve();var u=ar.bind(function(){return this.queue.removeItemsByID(ar.map(i,function(e){return e.id})).then(ar.bind(function(e){return(ar.each(i,ar.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o)?(this.resetFlush(),v.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),v.resolve())},this))},this),c=ar.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(ar.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(ar.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!ax()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),v.resolve()}else{if(!ar.isObject(o)||413!==o.httpStatusCode)return u();if(!(i.length>1))return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),u();var c=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,c,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),v.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),a1.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(ar.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},a2.prototype.reportError=function(e,t){if(a1.error.apply(a1.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){a1.error(e)}};var a3=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires}
20,a4=function(e,t){if(!ar.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},a6="change",a5="click",a9="hashchange",a8="load",a7="mp_locationchange",ue="popstate",ut="scrollend",ur="scroll",un="submit",ui="visibilitychange",uo=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],us=["mp-include"],ua=["mp-no-track"],uu=ua.concat(["mp-sensitive"]),uc=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],ul={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},uh={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},up={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},ud=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],uf=ao("autocapture");function ug(e){for(var t={},r=um(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function um(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function uv(e,t,r,n,i,o){var s={$classes:um(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),ux(e,t,i,o)&&ar.each(uc.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);uE(n)&&(s["$attr-"+t]=n)}});for(var u=1,c=1,l=e;l=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!uw(e));return e}(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function uy(e,t,r,n){var i="";return ux(e,t,r,n)&&e.childNodes&&e.childNodes.length&&ar.each(e.childNodes,function(e){uk(e)&&e.textContent&&(i+=ar.trim(e.textContent).split(/(\s+)/).filter(uE).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),ar.trim(i)}function u_(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return uf.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){uf.critical("Error while checking selector: "+o,e)}}return!1}function ub(e,t,r,n){if(r)try{if(r(e,t))return!0}catch(e){return uf.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var i,o=n[i];try{if(e.matches(o))return!0}catch(e){uf.critical("Error while checking selector: "+o,e)}}var s=ug(e);for(i=0;i<ua.length;i++)if(s[ua[i]])return!0;return!1}function uw(e){return e&&1===e.nodeType}function uS(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function uk(e){return e&&3===e.nodeType}function uC(e){var t=(e.name||e.id||"").toString().toLowerCase();return!!("string"==typeof t&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))||!1}function ux(e,t,r,n){if(!u_(e,t,r,n))return!1;for(var i,o=e;o.parentNode&&!uS(o,"body");o=o.parentNode){var s=ug(o);for(i=0;i<uu.length;i++)if(s[uu[i]])return!1}var a=ug(e);for(i=0;i<us.length;i++)if(a[us[i]])return!0;if(uS(e,"input")||uS(e,"select")||uS(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var u=e.type||"";if("string"==typeof u)switch(u.toLowerCase()){case"hidden":case"password":return!1}return!uC(e)}function uE(e){if(null===e||ar.isUndefined(e))return!1;if("string"==typeof e&&(e=ar.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11}
20)|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0}function uI(e){var t="onscrollend"in o7,r=as(e),n=ut;if(!t){var i=null;r=as(function(){clearTimeout(i),i=setTimeout(e,100)}),n=ur}return{listener:r,eventType:n}}function uO(e){var t,r=e.tagName.toLowerCase();return!!("button"===r||"input"===r||"select"===r||"textarea"===r||"details"===r||"dialog"===r||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<ud.length;t++)if(e.hasAttribute(ud[t]))return!0;return!1}(e))||!!((t=e.getAttribute("role"))&&ul[t.trim().split(/\s+/)[0].toLowerCase()]||"a"===r&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function uM(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(uh[t])return!0;if(uO(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(uO(r))return!1;if(r.getRootNode&&r.getRootNode()!==s2){var i=r.getRootNode();if(i.host&&uO(i.host))return!1}r=r.parentElement,n++}return!!up[t]}function uR(e){return"composedPath"in e?e.composedPath():[]}function uT(e){var t=uR(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var uA=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",uD=["password","email","tel","hidden"];function uP(e){return e?Array.isArray(e)?e:[e]:[]}function uL(e,t){return!!t&&!!e.closest(t)}function uF(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==uD.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!!(n&&""!==n&&"off"!==n||e.hasAttribute("data-rr-is-password")||uC(e))||(t.input.maskAll?!uL(e,t.input.unmaskingSelector):!!(uL(e,t.input.maskingSelector)||uL(e,uA)))}function uN(e,t){return!!e&&(!!(t.text._legacyClassRegex&&function e(t,r,n){if(!t)return!1;
20if(t.nodeType!==t.ELEMENT_NODE)return e(iM(t),r);for(var i=t.classList.length;i--;){var o=t.classList[i];if(r.test(o))return!0}return e(iM(t),r)}(e,t.text._legacyClassRegex))||(t.text.maskAll?!uL(e,t.text.unmaskingSelector):!!(uL(e,t.text.maskingSelector)||uL(e,uA))))}var uj=ao("network-plugin");function uU(e){return Math.round(Date.now()-e.performance.now())}var uB={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function uq(e){return"resource"===e.entryType}function u$(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}function uz(e){return e&&"string"==typeof e&&e.length>1048576?(uj.error("Body truncated from "+e.length+" to 1048576 characters"),e.substring(0,1048576)+"... [truncated]"):e}function uW(e,t,r){return!!t[e]&&0!==t[e].length&&t[e].includes(r.toLowerCase())}function uV(e,t,r){return!!t[e]&&0!==t[e].length&&aI(r,t[e])}function uK(e){var t;if(null==e)return null;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=ar.HTTPBuildQuery(e);else if(!ar.isObject(e))return"Cannot read body of type "+typeof e;else try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}return uz(t)}function uG(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(uz(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function uH(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return uj.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}(e.performance.getEntriesByName(r),function(e){return uq(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return s?Promise.resolve(s):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return uH(e,t,r,n,i,o+1)})}function uJ(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},uB.recordHeaders,r.recordHeaders||{}),i=Object.assign({},uB.recordBodyUrls,r.recordBodyUrls||{}),o=Object.assign({},uB,r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i})),s=function(t){var r=t.requests.filter(function(e){return!aI(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return uj.error("PerformanceObserver not supported"),function(){};r.recordInitialRequests&&e({requests:t.performance.getEntries().filter(function(e){return"navigation"===e.entryType||uq(e)&&r.initiatorTypes.includes(e.initiatorType)}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:uU(t)}}),isInitial:!0});var n=new t.PerformanceObserver(function(n){e({requests:n.getEntries().filter(function(e){return uq(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:uU(t)}})})});return n.observe({entryTypes:["navigation","resource"]}),function(){n.disconnect()}}(s,t,o),u=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=u$(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,u){void 0===s&&(s=!0);var c,l,h=this,p=new Request(o,{method:i}),d={},f={},g=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return uW("request",r.recordHeaders,e)&&(f[e]=t),g(e,t)},d.requestHeaders=f;var m=h.send.bind(h);h.send=function(e){return uV("request",r.recordBodyUrls,p.url)&&(d.requestBody=uK(e)),c=t.performance.now(),m(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();
20i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&uW("response",r.recordHeaders,i)&&(n[i]=o)}}}),d.responseHeaders=n,uV("response",r.recordBodyUrls,p.url)&&(d.responseBody=uK(h.response)),uH(t,"xmlhttprequest",p.url,c,l).then(function(r){r?e({requests:[{url:r.name,method:p.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:uU(t),requestHeaders:d.requestHeaders,requestBody:d.requestBody,responseHeaders:d.responseHeaders,responseBody:d.responseBody}]}):uj.error("Failed to get performance entry for XHR request to "+p.url)}).catch(function(e){uj.error("Error recording XHR request to "+p.url+": "+String(e))})}}),n.call(h,i,o,s,a,u)}});return function(){n()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=u$(t,"fetch",function(n){return function(){var i,o,s,a,u=new Request(arguments[0],arguments[1]),c={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var p={};u.headers.forEach(function(e,t){uW("request",r.recordHeaders,t)&&(p[t]=e)}),c.requestHeaders=p,uV("request",r.recordBodyUrls,u.url)&&(l=uG(u).then(function(e){c.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){uW("response",r.recordHeaders,t)&&(n[t]=e)}),c.responseHeaders=n,uV("response",r.recordBodyUrls,u.url)&&(h=uG(i).then(function(e){c.responseBody=e})),i})}catch(e){a=Promise.reject(e)}return Promise.all([l,h,a]).then(function(){return uH(t,"fetch",u.url,o,s)}).then(function(r){r?e({requests:[{url:r.name,method:u.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:uU(t),requestHeaders:c.requestHeaders,requestBody:c.requestBody,responseHeaders:c.responseHeaders,responseBody:c.responseBody}]}):uj.error("Failed to get performance entry for fetch request to "+u.url)}).catch(function(e){uj.error("Error recording fetch request to "+u.url+": "+String(e))}),a}});return function(){n()}}(s,t,o);return function(){a(),u(),c()}}var uY=ao("recorder"),uX=o7.CompressionStream,uZ={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},uQ=new Set([nj.MouseMove,nj.MouseInteraction,nj.Scroll,nj.ViewportResize,nj.Input,nj.TouchMove,nj.MediaInteraction,nj.Drag,nj.Selection]),u0=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||aE,this._onMaxLengthReached=e.onMaxLengthReached||aE,this._onBatchSent=e.onBatchSent||aE,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t=ah(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new aP(aT),this.batcher=new a2(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:uZ,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};u0.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},u0.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))},u0.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},u0.prototype.get_config=function(e){return this.getConfig(e)},u0.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void uY.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,uY.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=ar.info.currentUrl(),this.replayStartUrl=ar.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=uP(r).join(","),t.input.unmaskingSelector=uP(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),u=e.get_config("record_mask_text_class"),c=uP(o);if(u)if(u instanceof RegExp)t.text._legacyClassRegex=u;else{var l="."+u;-1===c.indexOf(l)&&c.push(l)}return t.text.maskingSelector=c.join(","),t.text.unmaskingSelector=uP(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push({name:"rrweb/[email protected]",observer:uJ,options:o})}this.getConfig("record_console")&&i.push({name:"rrweb/console@1",observer:oQ,options:{stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}});var a=a4(this.getConfig("record_allowed_iframe_origins"),uY);try{this._stopRecording=this._rrwebRecord({emit:(function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(e.type===nN.IncrementalSnapshot&&uQ.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(uF,n),maskTextFn:this._getMaskFn(uN,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var u=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),u)},u0.prototype.stopRecording=function(e){var t;if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},u0.prototype.isRrwebStopped=function(){return null===this._stopRecording},u0.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)},u0.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},u0.deserialize=function(e,t){return new u0(ar.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},u0.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},u0.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=ar.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");o7.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},u0.prototype._flushEvents=aU(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<n;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===nN.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:S.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);Object.assign(l,this.getUserIdInfo()),aR(s6,s1.vendor,s3)?new Response(new Blob([h],{type:"application/json"}).stream().pipeThrough(new uX("gzip"))).blob().then((function(e){l.format="gzip",this._sendRequest(i,l,e,r)}).bind(this)):(l.format="body",this._sendRequest(i,l,h,r))}}),u0.prototype.reportError=function(e,t){uY.error.apply(uY.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){uY.error(e)}},u0.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},u0.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(uY.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},u0.prototype._getMaskFn=function(e,t){return(function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(!i)return r;var o=Math.min(r.length,1e4);return"*".repeat(o)}).bind(this)};
20var u1=function(e){this.idb=new aP(aA),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};u1.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},u1.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},u1.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return v.resolve();var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),v.resolve())},u1.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return a3(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):v.resolve(null)},u1.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},u1.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},u1.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):v.resolve()},u1.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return a3(e)}).map((function(e){return u0.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return v.all(t)}).bind(this)).catch(this.handleError.bind(this)):v.resolve([])};var u2=ao("recorder"),u3=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||ik,this.sharedLockStorage=r,this.recordingRegistry=new u1({mixpanelInstance:this.mixpanelInstance,errorReporter:u2.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};u3.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void u2.log("Recording already in progress, skipping startRecording.");var t=(function(){u2.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){u2.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:ar.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=u0.deserialize(e.activeSerializedRecording,i):this.activeRecording=new u0(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},u3.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))},u3.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},u3.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return v.resolve()},u3.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),v.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(u2.log("No resumable recording found."),null)}).bind(this))},u3.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},u3.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},u3.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(u3.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),o7[C]=u3;var u4={exports:{}},u6=(u4.exports,(m=function(){var e,t;if(y)return u4.exports;return y=1,Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!!t&&void 0!==t.indexOf&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++)if(null==n||void 0===(n=n[i[o]]))return r;return n},missing:function(){for(var t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=e.apply({var:i},this);
20(null===o||""===o)&&t.push(i)}return t},missing_some:function(t,r){var n=e.apply({missing:r},this);return r.length-n.length>=t?[]:n}},e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map(function(t){return e.apply(t,n)});if(!e.is_logic(r))return r;var i,o,s,a,u,c=e.get_operator(r),l=r[c];if(Array.isArray(l)||(l=[l]),"if"===c||"?:"==c){for(i=0;i<l.length-1;i+=2)if(e.truthy(e.apply(l[i],n)))return e.apply(l[i+1],n);return l.length===i+1?e.apply(l[i],n):null}if("and"===c){for(i=0;i<l.length&&(o=e.apply(l[i],n),e.truthy(o));i+=1);return o}if("or"===c){for(i=0;i<l.length&&(o=e.apply(l[i],n),!e.truthy(o));i+=1);return o}if("filter"===c)return(a=e.apply(l[0],n),s=l[1],Array.isArray(a))?a.filter(function(t){return e.truthy(e.apply(s,t))}):[];if("map"===c)return(a=e.apply(l[0],n),s=l[1],Array.isArray(a))?a.map(function(t){return e.apply(s,t)}):[];else if("reduce"===c)return(a=e.apply(l[0],n),s=l[1],u=void 0!==l[2]?e.apply(l[2],n):null,Array.isArray(a))?a.reduce(function(t,r){return e.apply(s,{current:r,accumulator:t})},u):u;else if("all"===c){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!e.truthy(e.apply(s,a[i])))return!1;return!0}else if("none"===c){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!1;return!0}else if("some"===c){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!0;return!1}if(l=l.map(function(t){return e.apply(t,n)}),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(n,l);if(c.indexOf(".")>0){var h=String(c).split("."),p=t;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw Error("Unrecognized operation "+c+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw Error("Unrecognized operation "+c)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var n=e.get_operator(t),i=t[n];Array.isArray(i)||(i=[i]),"var"===n?r.push(i[0]):i.forEach(function(t){r.push.apply(r,e.uses_data(t))})}for(var o=[],s=0,a=r.length;s<a;s++)-1===o.indexOf(r[s])&&o.push(r[s]);return o},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t||"@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var n=e.get_operator(r),i=e.get_operator(t);if("@"===n||n===i)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)&&Array.isArray(t)){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o+=1)if(!e.rule_like(t[o],r[o]))return!1;return!0}return!1},u4.exports=e,u4.exports}())&&m.__esModule&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m),u5={};function u9(){this.clicks=[]}function u8(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}u5.eventMatchesCriteria=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!ar.isEmptyObject(n))try{i=u6.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},o7[k]=Promise.resolve(u5),u9.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only){var o=uT(e);if(!o||uM(o))return!1}var s=Date.now(),a=e.pageX,u=e.pageY,c=this.clicks[this.clicks.length-1];if(c&&s-c.timestamp<n&&Math.sqrt(Math.pow(a-c.x,2)+Math.pow(u-c.y,2))<r){if(this.clicks.push({x:a,y:u,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:u,timestamp:s}];return!1},u8.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return uT(e)},u8.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=uR(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},u8.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){uf.critical("Error while observing shadow root",e)}}}
vendor: 6,718 bytes, line 20
20,u8.prototype.start=function(){if(!this.observedShadowRoots){if(!("u">typeof WeakSet))return void uf.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},u8.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){uf.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var u7=[a6,"input",un,"select","toggle"],ce=[ut],ct=[a9],cr={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function cn(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}cn.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||uM(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},cn.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},cn.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},cn.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},cn.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},cn.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},cn.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},cn.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;u7.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),ct.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),ce.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,cr)}catch(e){uf.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new u8(function(){e.recordChangeEvent()},cr),this.shadowDOMObserver.start()}catch(e){uf.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},cn.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){uf.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){uf.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){uf.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var ci="autocapture",co="full-url",cs="allow_selectors",ca="allow_url_regexes",cu="block_attrs",cc="block_element_callback",cl="block_selectors",ch="block_url_regexes",cp="capture_extra_attrs",cd="capture_text_content",cf="scroll_capture_all",cg="scroll_depth_percent_checkpoints",cm="click",cv="dead_click",cy="input",c_="pageview",cb="rage_click",cw="scroll",cS="page_leave",ck="submit",cC={};cC[cs]=[],cC[ca]=[],cC[cu]=[],cC[cc]=null,cC[cl]=[],cC[ch]=[],cC[cp]=[],cC[cd]=!1,cC[cf]=!1,cC[cg]=[25,50,75,100],cC[cm]=!0,cC[cv]=!0,cC[cy]=!0,cC[c_]=co,cC[cb]=!0,cC[cw]=!0,cC[cS]=!1,cC[ck]=!0;var cx={$mp_autocapture:!0},cE="$mp_click",cI="$mp_dead_click",cO="$mp_rage_click",cM=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};cM.prototype.init=function(){!function(){try{return!!s2.createElement("div").matches}catch(e){return!1}}()?uf.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},cM.prototype.getFullConfig=function(){var e=this.mp.get_config(ci);return e?ar.isObject(e)?ar.extend({},cC,e):cC:{}},cM.prototype.getConfig=function(e){return this.getFullConfig()[e]},cM.prototype.currentUrlBlocked=function(){var e=ar.info.currentUrl(),t=this.getConfig(ca)||[];if(t.length)try{return!aI(e,t)}catch(e){return uf.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(ch)||[];if(!r||!r.length)return!1;try{return aI(e,r)}catch(e){return uf.critical("Error while checking block URL regexes: ",e),!0}},cM.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(ci)?this.getConfig(c_):this.mp.get_config("track_pageview")},cM.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===cE&&!this.getConfig(cm)||t===cO&&!this._getClickTrackingConfig(cb)||t===cI&&!this._getClickTrackingConfig(cv)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,u=t.captureExtraAttrs||[],c=t.captured
20ForHeatMap||!1,l={};ar.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(uk(p)&&(p=p.parentNode),function(e,t){if(!e||uS(e,"html")||!uw(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===un;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===a6;return t.type===a5;case"select":case"textarea":return t.type===a6;default:return t.type===a5}}(p,e)&&u_(p,e,r,n)&&!ub(p,e,o,s)){for(var d=[p],f=p;f.parentNode&&!uS(f,"body");)d.push(f.parentNode),f=f.parentNode;var g,m=[],v=!1;if(ar.each(d,function(t){var i=ux(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&uE(g)&&g),ub(t,e,o,s)&&(v=!0),m.push(uv(t,e,l,u,r,n))},this),!v){var y=s2.documentElement;if(h={$event_type:e.type,$host:o7.location.host,$pathname:o7.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,o7.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,o7.innerWidth||0),$pageHeight:s2.body.offsetHeight||0,$pageWidth:s2.body.offsetWidth||0},ar.each(u,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);uE(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=uy(p,e,r,n))&&_.length&&(h.$el_text=_),e.type===a5&&(ar.each(uo,function(t){t in e&&(h["$"+t]=e[t])}),c&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(uS(i,"a")||uS(i,"button")||uS(i,"input")||uS(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var _=uy(p,e,r,n);_&&_.length&&(h.$el_text=_)}if(p){if(!u_(p,e,r,n)||ub(p,e,o,s))return null;var b=uv(p,e,l,u,r,n);h.$target=b,h.$el_classes=b.$classes,ar.extend(h,ar.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(cs),blockAttrs:this.getConfig(cu),blockElementCallback:this.getConfig(cc),blockSelectors:this.getConfig(cl),captureExtraAttrs:this.getConfig(cp),captureTextContent:this.getConfig(cd),capturedForHeatMap:r});n&&(ar.extend(n,cx),this.mp.track(t,n))}},cM.prototype.initPageListeners=function(){if(o7.removeEventListener(ue,this.listenerPopstate),o7.removeEventListener(a9,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(cS)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){o7.dispatchEvent(new Event(a7))},this.listenerHashchange=function(){o7.dispatchEvent(new Event(a7))},o7.addEventListener(ue,this.listenerPopstate),o7.addEventListener(a9,this.listenerHashchange);var e=o7.history.pushState;"function"==typeof e&&(o7.history.pushState=function(t,r,n){e.call(o7.history,t,r,n),o7.dispatchEvent(new Event(a7))});var t=o7.history.replaceState;"function"==typeof t&&(o7.history.replaceState=function(e,r,n){t.call(o7.history,e,r,n),o7.dispatchEvent(new Event(a7))})}},cM.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},cM.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(cS)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(s2.documentElement.clientHeight,o7.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=ar.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||ar.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(s2.documentElement.clientWidth,o7.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},cx);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},cM.prototype._initScrollDepthTracking=function(){if(o7.removeEventListener(ur,this.listenerScrollDepth),o7.removeEventListener(ut,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){uf.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(s2.documentElement.clientHeight,o7.innerHeight||0);var e=uI((function(){if(!this.currentUrlBlocked()){var e=Math.max(s2.documentElement.clientHeight,o7.innerHeight||0)+o7.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=s2.body.scrollHeight}}).bind(this));this.listenerScrollDepth=e.listener,o7.addEventListener(e.eventType,this.listenerScrollDepth)}},cM.prototype.initClickTracking=function(){o7.removeEventListener(a5,this.listenerClick),(this.getConfig(cm)||this.mp.get_config("record_heatmap_data"))&&(uf.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(cm)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,cE)}).bind(this),o7.addEventListener(a5,this.listenerClick))},cM.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(cv)||this.mp.get_config("record_heatmap_data")?(uf.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new cn((function(e){this.trackDomEvent(e,cI)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(cv);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}).bind(this),o7.addEventListener(a5,this.listenerDeadClick))):this.stopDeadClickTracking()},cM.prototype.initInputTracking=function(){o7.removeEventListener(a6,this.listenerChange),this.getConfig(cy)&&(uf.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(cy)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this),o7.addEventListener(a6,this.listenerChange))},cM.prototype.initPageviewTracking=function(){if(o7.removeEventListener(a7,this.listenerLocationchange),this.pageviewTrackingConfig()){uf.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(cx)),t&&(e=ar.info.currentUrl()),this.listenerLocationchange=as((function(){if(!this.currentUrlBlocked()){var t=ar.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===co?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(cx)&&(e=t),n&&(this.lastScrollCheckpoint=0,uf.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),o7.addEventListener(a7,this.listenerLocationchange)}},cM.prototype.initRageClickTracking=function(){o7.removeEventListener(a5,this.listenerRageClick),(this._getClickTrackingConfig(cb)||this.mp.get_config("record_heatmap_data"))&&(uf.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new u9),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(cb);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,cO)}).bind(this),o7.addEventListener(a5,this.listenerRageClick))},cM.prototype.initScrollTracking=function(){if(o7.removeEventListener(ut,this.listenerScroll),o7.removeEventListener(ur,this.listenerScroll),this.getConfig(cw)){uf.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(cw)&&!this.currentUrlBlocked()){var e=this.getConfig(cf),t=(this.getConfig(cg)||[]).slice().sort(function(e,t){return e-t}
20),r=o7.scrollY,n=ar.extend({$scroll_top:r},cx);try{var i=s2.body.scrollHeight,o=Math.round(r/(i-o7.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){uf.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}).bind(this),t=uI(e);this.listenerScroll=t.listener,o7.addEventListener(t.eventType,this.listenerScroll)}},cM.prototype.initSubmitTracking=function(){o7.removeEventListener(un,this.listenerSubmit),this.getConfig(ck)&&(uf.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(ck)&&this.trackDomEvent(e,"$mp_submit")}).bind(this),o7.addEventListener(un,this.listenerSubmit))},cM.prototype.initPageLeaveTracking=function(){if(s2.removeEventListener(ui,this.listenerPageLeaveVisibilitychange),o7.removeEventListener(a7,this.listenerPageLeaveLocationchange),o7.removeEventListener(a8,this.listenerPageLoad),this.getConfig(cS)||this.mp.get_config("record_heatmap_data")){uf.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=ar.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=s2.body.scrollHeight}).bind(this),o7.addEventListener(a8,this.listenerPageLoad),this.listenerPageLeaveLocationchange=as((function(t){if(!this.currentUrlBlocked()){var r=ar.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(s2.documentElement.clientHeight,o7.innerHeight||0),this.previousScrollHeight=s2.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),o7.addEventListener(a7,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){s2.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),s2.addEventListener(ui,this.listenerPageLeaveVisibilitychange)}},cM.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(o7.removeEventListener(a5,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},aa(cM);var cR=function(e,t){return o7[k]&&"function"==typeof o7[k].then||(o7[k]=new Promise(function(r){e(t,r)}).then(function(){var e=o7[k];if(e&&"function"==typeof e.then)return e;throw Error("targeting failed to load")}).catch(function(e){throw delete o7[k],e})),o7[k]},cT=ao("flags"),cA="flags",cD="context",cP={};cP[cD]={};var cL=function(e){this.fetch=o7.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};cL.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags().catch(function(){cT.error("Error fetching flags during init")}),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):cT.critical("Feature Flags unavailable: missing minimum required APIs")},cL.prototype.getFullConfig=function(){var e=this.getMpConfig(cA);return e?ar.isObject(e)?ar.extend({},cP,e):cP:{}},cL.prototype.getConfig=function(e){return this.getFullConfig()[e]},cL.prototype.isSystemEnabled=function(){return!!this.getMpConfig(cA)},cL.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return cT.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(cA);ar.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(cD);r[cD]=ar.extend({},n,e);var i={};return i[cA]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){cT.error("Error fetching flags during updateContext")})},cL.prototype.areFlagsReady=function(){return this.isSystemEnabled()||cT.error("Feature Flags not enabled"),!!this.flags},cL.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=aw();cT.log("Fetching flags for distinct ID: "+e);var n=ar.extend({distinct_id:e,device_id:t},this.getConfig(cD)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",S.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(o7,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json()}).bind(this)).then((function(e){var t=e.flags;if(!t)throw Error("No flags in API response");var n=new Map,i={};ar.each(t,function(e,t){var r=!1,i=t+":";if(ar.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})},this);var o=e.pending_first_time_events;o&&o.length>0&&ar.each(o,function(e){var t=e.flag_key,r=t+":"+e.first_time_event_hash;this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&ar.each(this.activatedFirstTimeEvents,function(e,t){var r=t.split(":")[0];e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}).bind(this)).catch((function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),cT.error(e),e}).bind(this)),this.fetchPromise},cL.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(cT.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},cL.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):cT.error("Fetch in progress started time not set, cannot mark fetch complete")},cL.prototype._loadTargetingIfNeeded=function(){var e=!1;ar.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!ar.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){cT.log("targeting loaded for property filter evaluation")})},cL.prototype.getTargeting=function(){return cR(this.loadExtraBundle.bind(this),this.targetingSrc).catch((function(e){cT.error("Failed to load targeting: "+e)}).bind(this))},cL.prototype.checkFirstTimeEvents=function(e,t){!this.pendingFirstTimeEvents||ar.isEmptyObject(this.pendingFirstTimeEvents)||(o7[k]&&ar.isFunction(o7[k].then)?o7[k].then((function(r){this._processFirstTimeEventCheck(e,t,r)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(e,t,null)}).bind(this)):this._processFirstTimeEventCheck(e,t,null))},cL.prototype._processFirstTimeEventCheck=function(e,t,r){ar.each(this.pendingFirstTimeEvents,function(n,i){if
20(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(!r&&n.property_filters&&!ar.isEmptyObject(n.property_filters))return void cT.warn('Skipping event check for "'+s+'" - property filters require targeting library');if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)return void cT.error('Error checking first-time event for flag "'+s+'": '+o.error);if(o.matches){cT.log('First-time event matched for flag "'+s+'": '+e);var u={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,u),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}},this)},cL.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},cL.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=aw(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",S.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString();cT.log("Recording first-time event for flag: "+e),this.fetch.call(o7,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify({distinct_id:n,project_id:t,first_time_event_hash:r})}).catch(function(t){cT.error("Failed to record first-time event for flag "+e+": "+t)})},cL.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(e){return cT.error(e),t}):new Promise(function(e){cT.critical("Feature Flags not initialized"),e(t)})},cL.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return cT.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(cT.log('No flag found: "'+e+'"'),t)},cL.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return cT.error(e),t})},cL.prototype.getFeatureData=function(e,t){return cT.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},cL.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},cL.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return cT.error(e),t})},cL.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(cT.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},cL.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},cL.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},cL.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},aa(cL),cL.prototype.are_flags_ready=cL.prototype.areFlagsReady,cL.prototype.get_variant=cL.prototype.getVariant,cL.prototype.get_variant_sync=cL.prototype.getVariantSync,cL.prototype.get_variant_value=cL.prototype.getVariantValue,cL.prototype.get_variant_value_sync=cL.prototype.getVariantValueSync,cL.prototype.is_enabled=cL.prototype.isEnabled,cL.prototype.is_enabled_sync=cL.prototype.isEnabledSync,cL.prototype.load_flags=cL.prototype.loadFlags,cL.prototype.update_context=cL.prototype.updateContext,cL.prototype.when_ready=cL.prototype.whenReady,cL.prototype.get_feature_data=cL.prototype.getFeatureData,cL.prototype.getTargeting=cL.prototype.getTargeting;var cF=ao("recorder"),cN="mp_iframe_handshake_request",cj="mp_iframe_handshake_response",cU=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};cU.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return an.log("Load recorder check skipped due to disable_persistence config"),v.resolve(!1);var e=new aP(aA),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(a3(e[r])||e[r].tabId===t)return!0;return!1}).catch(ar.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},cU.prototype.checkAndStartSessionRecording=function(e,t){if(!o7.MutationObserver)return an.critical("Browser does not support MutationObserver; skipping session recording"),v.resolve();var r=ar.bind(function(e){return new v(ar.bind(function(t){var r=as(ar.bind(function(){this._recorder=this._recorder||new o7[C](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(ar.isUndefined(o7[C])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()},this))},this),n=a4(this.getMpConfig("record_allowed_iframe_origins"),cF);if(n.length>0&&(this._setupParentFrameListener(n),o7.parent!==o7))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),v.resolve();var i=ar.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=i>0&&100*Math.random()<=i;return e||o?r(!0):this.shouldLoadRecorder().then(ar.bind(function(e){return e?r(!1):v.resolve()},this))},cU.prototype.isRecording=function(){if(!this._recorder||!ar.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},cU.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!ar.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+x;cR(this.loadExtraBundle,a).then((function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){an.critical("Could not parse recording event trigger properties logic:",e)}}).bind(this)).catch(function(e){an.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},cU.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():v.resolve()},cU.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():v.resolve()},cU.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():v.resolve()}
20,cU.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},cU.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},cU.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+ar.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},cU.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},cU.prototype.getRecorder=function(){return this._recorder},cU.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i.type===cj&&i.token===r.getMpConfig("token")&&i.replayId&&(r._parentReplayId=i.replayId,i.distinctId&&r.mixpanelInstance.identify(i.distinctId),r._parentFrameRetryActive=!1,o7.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},o7.addEventListener("message",this._childFrameMessageHandler)}},cU.prototype._sendParentFrameRequest=function(e){var t={};t.type=cN,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{o7.parent.postMessage(t,e[r])}catch(e){}},cU.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),!function i(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())},n)}()},cU.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===cN&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=cj,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},o7.addEventListener("message",this._parentFrameMessageHandler)}},aa(cU);var cB=function(){};cB.prototype.create_properties=function(){},cB.prototype.event_handler=function(){},cB.prototype.after_track_handler=function(){},cB.prototype.init=function(e){return this.mp=e,this},cB.prototype.track=function(e,t,r,n){var i=this,o=ar.dom_query(e);return 0===o.length?void an.error("The DOM query ("+e+") returned 0 elements"):(ar.each(o,function(e){ar.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0)},cB.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},cB.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):ar.extend({},e)};var cq=function(){this.override_event="click"};ar.inherit(cq,cB),cq.prototype.create_properties=function(e,t){var r=cq.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},cq.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},cq.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var c$=function(){this.override_event="submit"};ar.inherit(c$,cB),c$.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},c$.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var cz="$set",cW="$set_once",cV="$unset",cK="$add",cG="$append",cH="$union",cJ="$remove",cY={set_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[cz]=n,r},unset_action:function(e){var t={},r=[];return ar.isArray(e)||(e=[e]),ar.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[cV]=r,t},set_once_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[cW]=n,r},union_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=ar.isArray(e)?e:[e])}
vendor: 13,761 bytes, line 20
20,this):n[e]=ar.isArray(t)?t:[t],r[cH]=n,r},append_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[cG]=n,r},remove_action:function(e,t){var r={},n={};return ar.isObject(e)?ar.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[cJ]=n,r},delete_action:function(){var e={};return e.$delete="",e}},cX=function(){};ar.extend(cX.prototype,cY),cX.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},cX.prototype.set=aq(function(e,t,r){var n=this.set_action(e,t);return ar.isObject(e)&&(r=t),this._send_request(n,r)}),cX.prototype.set_once=aq(function(e,t,r){var n=this.set_once_action(e,t);return ar.isObject(e)&&(r=t),this._send_request(n,r)}),cX.prototype.unset=aq(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),cX.prototype.union=aq(function(e,t,r){ar.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),cX.prototype.delete=aq(function(e){var t=this.delete_action();return this._send_request(t,e)}),cX.prototype.remove=aq(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),cX.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=ar.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},cX.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},cX.prototype._get_config=function(e){return this._mixpanel.get_config(e)},cX.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},cX.prototype.remove=cX.prototype.remove,cX.prototype.set=cX.prototype.set,cX.prototype.set_once=cX.prototype.set_once,cX.prototype.union=cX.prototype.union,cX.prototype.unset=cX.prototype.unset,cX.prototype.toString=cX.prototype.toString;var cZ=function(){};ar.extend(cZ.prototype,cY),cZ.prototype._init=function(e){this._mixpanel=e},cZ.prototype.set=aB(function(e,t,r){var n=this.set_action(e,t);return ar.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[cz]=ar.extend({},ar.info.people_properties(),n[cz]),this._send_request(n,r)}),cZ.prototype.set_once=aB(function(e,t,r){var n=this.set_once_action(e,t);return ar.isObject(e)&&(r=t),this._send_request(n,r)}),cZ.prototype.unset=aB(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),cZ.prototype.increment=aB(function(e,t,r){var n={},i={};return ar.isObject(e)?(ar.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void an.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(ar.isUndefined(t)&&(t=1),i[e]=t),n[cK]=i,this._send_request(n,r)}),cZ.prototype.append=aB(function(e,t,r){ar.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),cZ.prototype.remove=aB(function(e,t,r){ar.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),cZ.prototype.union=aB(function(e,t,r){ar.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),cZ.prototype.track_charge=aB(function(){an.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),cZ.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},cZ.prototype.delete_user=function(){if(!this._identify_called())return void an.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},cZ.prototype.toString=function(){return this._mixpanel.toString()+".people"},cZ.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=ar.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),ar.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),ar.truncate(o,255))},cZ.prototype._get_config=function(e){return this._mixpanel.get_config(e)},cZ.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},cZ.prototype._enqueue=function(e){cz in e?this._mixpanel.persistence._add_to_people_queue(cz,e):cW in e?this._mixpanel.persistence._add_to_people_queue(cW,e):cV in e?this._mixpanel.persistence._add_to_people_queue(cV,e):cK in e?this._mixpanel.persistence._add_to_people_queue(cK,e):cG in e?this._mixpanel.persistence._add_to_people_queue(cG,e):cJ in e?this._mixpanel.persistence._add_to_people_queue(cJ,e):cH in e?this._mixpanel.persistence._add_to_people_queue(cH,e):an.error("Invalid call to _enqueue():",e)},cZ.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=ar.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!ar.isUndefined(o)&&ar.isObject(o)&&!ar.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),ar.isUndefined(r)||r(t,n)}))},cZ.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(cz,this.set,e),this._flush_one_queue(cW,this.set_once,n),this._flush_one_queue(cV,this.unset,o,function(e){return ar.keys(e)}),this._flush_one_queue(cK,this.increment,t),this._flush_one_queue(cH,this.union,i);var u=this._mixpanel.persistence.load_queue(cG);if(!ar.isUndefined(u)&&ar.isArray(u)&&u.length)for(var c,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(cG,c),ar.isUndefined(r)||r(e,t)},h=u.length-1;h>=0;h--)c=(u=this._mixpanel.persistence.load_queue(cG)).pop(),a._mixpanel.persistence.save(),ar.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(cJ);if(!ar.isUndefined(p)&&ar.isArray(p)&&p.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(cJ,d),ar.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)d=(p=this._mixpanel.persistence.load_queue(cJ)).pop(),a._mixpanel.persistence.save(),ar.isEmptyObject(d)||a.remove(d,f)},cZ.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},cZ.prototype.set=cZ.prototype.set,cZ.prototype.set_once=cZ.prototype.set_once,cZ.prototype.unset=cZ.prototype.unset,cZ.prototype.increment=cZ.prototype.increment,cZ.prototype.append=cZ.prototype.append,cZ.prototype.remove=cZ.prototype.remove,cZ.prototype.union=cZ.prototype.union,cZ.prototype.track_charge=cZ.prototype.track_charge,cZ.prototype.clear_charges=cZ.prototype.clear_charges,cZ.prototype.delete_user=cZ.prototype.delete_user,cZ.prototype.toString=cZ.prototype.toString;var cQ="__mps",c0="__mpso",c1="__mpus",c2="__mpa",c3="__mpap",c4="__mpr",c6="__mpu",c5="$people_distinct_id",c9="__alias",c8="__timers",c7=[cQ,c0,c1,c2,c3,c4,c6,c5,c9,c8],le=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(an.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&ar.localStorage.is_supported()?this.storage=ar.localStorage:this.storage=ar.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};le.prototype.properties=function(){var e={};return this.load(),ar.each(this.props,function(t,r){ar.include(c7,r)||(e[r]=t)}),e},le.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=ar.extend({},e))}},le.prototype.upgrade=function(){var e,t;this.storage===ar.localStorage?(e=ar.cookie.parse(this.name),ar.cookie.remove(this.name),ar.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===ar.cookie&&(t=ar.localStorage.parse(this.name),ar.localStorage.remove(this.name),t&&this.register_once(t))},le.prototype.save=function(){this.disabled||this.storage.set(this.name,aO(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},le.prototype.load_prop=function(e){return this.load(),this.props[e]},le.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},le.prototype.clear=function(){this.remove(),this.props={}},le.prototype.register_once=function(e,t,r){return!!ar.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),ar.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},le.prototype.register=function(e,t){return!!ar.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),ar.extend(this.props,e),this.save(),!0)},le.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},le.prototype.update_search_keyword=function(e){this.register(ar.info.searchInfo(e))},le.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:ar.info.referringDomain(e)||"$direct"},"")},le.prototype.get_referrer_info=function(){return ar.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},le.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},le.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},le.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},le.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},le.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},le.prototype.get_cross_subdomain=function(){return this.cross_subdomain},le.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},le.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(cz),o=this._get_or_create_queue(cW),s=this._get_or_create_queue(cV),a=this._get_or_create_queue(cK),u=this._get_or_create_queue(cH),c=this._get_or_create_queue(cJ,[]),l=this._get_or_create_queue(cG,[]);r===cQ?(ar.extend(i,n),this._pop_from_people_queue(cK,n),this._pop_from_people_queue(cH,n),this._pop_from_people_queue(cV,n)):r===c0?(ar.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(cV,n)):r===c1?ar.each(n,function(e){ar.each([i,o,a,u],function(t){e in t&&delete t[e]}),ar.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===c2?(ar.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(cV,n)):r===c6?(ar.each(n,function(e,t){ar.isArray(e)&&(t in u||(u[t]=[]),ar.each(e,function(e){ar.include(u[t],e)||u[t].push(e)}))}),this._pop_from_people_queue(cV,n)):r===c4?(c.push(n),this._pop_from_people_queue(cG,n)):r===c3&&(l.push(n),this._pop_from_people_queue(cV,n)),an.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),an.log(t),this.save()},le.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];ar.isUndefined(r)||ar.each(t,function(t,n){e===cG||e===cJ?ar.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},le.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},le.prototype._get_queue_key=function(e){return e===cz?cQ:e===cW?c0:e===cV?c1:e===cK?c2:e===cG?c3:e===cJ?c4:e===cH?c6:void an.error("Invalid queue:",e)},le.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=ar.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},le.prototype.set_event_timer=function(e,t){var r=this.load_prop(c8)||{};r[e]=t,this.props[c8]=r,this.save()},le.prototype.remove_event_timer=function(e){var t=(this.load_prop(c8)||{})[e];return ar.isUndefined(t)||(delete this.props[c8][e],this.save()),t};var lt=function(e,t){throw Error(e+" not available in this build.")},lr="mixpanel",ln="base64",li="$device:",lo=o7.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ls=!lo&&-1===s6.indexOf("MSIE")&&-1===s6.indexOf("Mozilla"),la=null;s1.sendBeacon&&(la=function(){return s1.sendBeacon.apply(s1,arguments)});var lu={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},lc={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:lu,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:ln,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:aE,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:aE,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose
20:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:864e5,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},ll=!1,lh=function(){},lp=function(e,t,r){var n,i=r===lr?b:b[r];if(i&&0===_)n=i;else{if(i&&!ar.isArray(i))return void an.error("You have already initialized "+r);n=new lh}if(n._cached_groups={},n._init(e,t,r),n.people=new cZ,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=ar.info.campaignParams(null),s={},a=!1;ar.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}S.DEBUG=S.DEBUG||n.get_config("debug");var u=0===_?"module":"snippet";return o7.dispatchEvent(new o7.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:u,token:e,name:r,info:ar.info}})),!ar.isUndefined(i)&&ar.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};lh.prototype.init=function(e,t,r){if(ar.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===lr)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=lp(e,t,r);return b[r]=n,n._loaded(),n},lh.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||lc.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(ar.extend({},lc,n,t,{name:r,token:e,callback_fn:(r===lr?r:lr+"."+r)+"._jsc"})),this.recorderManager=new cU({mixpanelInstance:this,getConfigFunc:ar.bind(this.get_config,this),setConfigFunc:ar.bind(this.set_config,this),getTabIdFunc:ar.bind(this.get_tab_id,this),reportErrorFunc:ar.bind(this.report_error,this),getDistinctIdFunc:ar.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:lt}),this._jsc=aE,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(ar.localStorage.is_supported(!0)&&lo){if(this.init_batchers(),la&&o7.addEventListener){var i=ar.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);o7.addEventListener("pagehide",function(e){e.persisted&&i()}),o7.addEventListener("visibilitychange",function(){"hidden"===s2.visibilityState&&i()})}}else this._batch_requests=!1,an.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),ar.each(this.get_batcher_configs(),function(e){an.log("Clearing batch queue "+e.queue_key),ar.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new le(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=ar.UUID();this.get_distinct_id()||this.register_once({distinct_id:li+o,$device_id:o},""),this.flags=new cL({getFullApiRoute:ar.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:ar.bind(this.get_config,this),setConfigFunc:ar.bind(this.set_config,this),getPropertyFunc:ar.bind(this.get_property,this),trackingFunc:ar.bind(this.track,this),loadExtraBundle:lt,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+x}),this.flags.init(),this.flags=this.flags,this.autocapture=new cM(this),this.autocapture.init(),this._init_tab_id();var s=this.get_config("remote_settings_mode");"strict"===s||"fallback"===s?this.__session_recording_init_promise=this._fetch_remote_settings(s).then(ar.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording()},lh.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))an.log("Tab ID initialization skipped due to disable_persistence config");
20else if(ar.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(ar.sessionStorage.get(r)||!ar.sessionStorage.get(t))&&ar.sessionStorage.set(t,"$tab-"+ar.UUID()),ar.sessionStorage.set(r,"1"),this.tab_id=ar.sessionStorage.get(t),o7.addEventListener("beforeunload",function(){ar.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},lh.prototype.get_tab_id=function(){return this.tab_id||null},lh.prototype._check_and_start_session_recording=aU(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),lh.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},lh.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},lh.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},lh.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},lh.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},lh.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},lh.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},lh.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},lh.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},lh.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},lh.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=ar.info.campaignParams(null);ar.each(e,(function(e,t){this.unregister(t)}).bind(this))}},lh.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(s2.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(ar.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(s2.referrer)},lh.prototype._dom_loaded=function(){ar.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||ar.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},lh.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!ll)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},lh.prototype._prepare_callback=function(e,t){if(ar.isUndefined(e))return null;if(lo)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},lh.prototype._send_request=function(e,t,r,n){var i=!0;if(ls)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!n&&(ar.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=ar.extend(o,r||{}),lo||(r.method="GET");var a="POST"===r.method,u=la&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),!lo&&(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),ar.extend(t,this.get_config("api_extra_query_params")),e+="?"+ar.HTTPBuildQuery(t);var l=this;if("img"in t){var h=s2.createElement("img");h.src=e,s2.body.appendChild(h)}else if(u){try{i=la(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(lo)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var d=this.get_config("xhr_headers");
20if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),ar.each(d,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var f=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState){if(200===p.status){if(n)if(c){try{e=ar.JSONDecode(p.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=p.responseText}n(e)}else n(Number(p.responseText))}else if(t=p.timeout&&!p.status&&new Date().getTime()-f>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(t),n)if(c){var e,t,i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=s2.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=s2.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},lh.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!o7.AbortController)return an.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:S.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=ar.HTTPBuildQuery(i),s=new AbortController,a=setTimeout(function(){s.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return o7.fetch(n+"?"+o,u).then(function(e){if(clearTimeout(a),!e.ok){an.critical("Network response was not ok"),r();return}return e.json()}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};ar.each(n,function(e,t){lc.hasOwnProperty(t)&&(i[t]=e)}),ar.isEmptyObject(i)?(an.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(a),an.critical("Failed to fetch remote settings",e),r()})},lh.prototype._execute_array=function(e){var t,r=[],n=[],i=[];ar.each(e,function(e){e&&(t=e[0],ar.isArray(t)?i.push(e):"function"==typeof e?e.call(this):ar.isArray(e)&&"alias"===t?r.push(e):ar.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){ar.each(e,function(e){if(ar.isArray(e[0])){var r=t;ar.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},lh.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},lh.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},lh.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=ar.bind(function(e){return new a2(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:ar.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:ar.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:ar.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},lh.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,ar.each(this.request_batchers,function(e){e.start()}))},lh.prototype.stop_batch_senders=function(){this._batch_requests=!1,ar.each(this.request_batchers,function(e){e.stop(),e.clear()})},lh.prototype.push=function(e){this._execute_array([e])},lh.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(n=0,t={},r=[];n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},lh.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},lh.prototype._encode_data_for_request=function(e){var t=aO(e);return this.get_config("api_payload_format")===ln&&(t=ar.base64Encode(t)),{data:t}},lh.prototype._track_or_batch=function(e,t){var r=ar.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||aE;var a=!0,u=ar.bind(function(){return(!s.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(an.log("MIXPANEL REQUEST:"),an.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):u()}):a=u(),a&&r},lh.prototype.track=aU(function(e,t,r,n){if(!(r&&r.skip_hooks)){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var i,o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=aE),ar.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=ar.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);
20if(!ar.isUndefined(a)){var u=new Date().getTime()-a;t.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?ar.info.marketingParams():{};t=ar.extend({},ar.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");ar.isArray(l)?ar.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}),lh.prototype.set_group=aU(function(e,t,r){ar.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),lh.prototype.add_group=aU(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),lh.prototype.remove_group=aU(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),lh.prototype.track_with_groups=aU(function(e,t,r,n){var i=ar.extend({},t||{});return ar.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),lh.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},lh.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},lh.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new cX)._init(this,e,t),this._cached_groups[r]=n),n},lh.prototype.track_pageview=aU(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=ar.extend(ar.info.mpPageViewProperties(),ar.info.campaignParams(),ar.info.clickParams()),i=ar.extend({},n,e);return this.track(r,i)}),lh.prototype.track_links=function(){return this._track_dom.call(this,cq,arguments)},lh.prototype.track_forms=function(){return this._track_dom.call(this,c$,arguments)},lh.prototype.time_event=function(e){ar.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var ld={persistent:!0},lf=function(e){var t;return t=ar.isObject(e)?e:ar.isUndefined(e)?{}:{days:e},ar.extend({},ld,t)};lh.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0];var n=lf(t=r[1]);n.persistent?this.persistence.register(e,n.days):ar.extend(this.unpersisted_superprops,e)}},lh.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1];var i=lf(r=n[2]);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),ar.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},lh.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],(t=lf(t=r[1])).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},lh.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},lh.prototype.identify=function(e,t,r,n,i,o,s,a){var u=this._run_hook("before_identify",e);if(null===u)return -1;e=u[0];var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(li))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),e!==c&&e!==this.get_property(c9)&&(this.unregister(c9),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags().catch(function(){an.error("[flags] Error fetching flags during identify")})},lh.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=ar.UUID();this.register_once({distinct_id:li+e,$device_id:e},""),this._check_and_start_session_recording()},lh.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},lh.prototype.alias=function(e,t){if(e===this.get_property(c5))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;
20return(ar.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(c9,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},lh.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},lh.prototype.set_config=function(e){ar.isObject(e)&&(ar.extend(this.config,e),e.batch_size&&ar.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),S.DEBUG=S.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),ar.isObject(e.hooks)&&(this.hooks={},ar.each(e.hooks,function(e,t){if(ar.isFunction(e))this.hooks[t]=[e];else if(ar.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)ar.isFunction(e[r])||an.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else an.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},lh.prototype.get_config=function(e){return this.config[e]},lh.prototype._run_hook=function(e){var t=sX.call(arguments,1);return ar.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(ar.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},lh.prototype.get_property=function(e){return this.persistence.load_prop([e])},lh.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},lh.prototype.toString=function(){var e=this.get_config("name");return e!==lr&&(e=lr+"."+e),e},lh.prototype._event_is_disabled=function(e){return ar.isBlockedUA(s6)||this._flags.disable_all_events||ar.include(this.__disabled_events,e)},lh.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&ar.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||ar.cookie.get("mp_optout"))&&(ar.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},lh.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},lh.prototype._gdpr_call_func=function(e,t){return t=ar.extend({track:ar.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),ar.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie
20:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},lh.prototype.opt_in_tracking=function(e){e=ar.extend({enable_persistence:!0},e),this._gdpr_call_func(aL,e),this._gdpr_update_persistence(e)},lh.prototype.opt_out_tracking=function(e){(e=ar.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(aF,e),this._gdpr_update_persistence(e)},lh.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(aN,e)},lh.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(aj,e)},lh.prototype.clear_opt_in_out_tracking=function(e){e=ar.extend({enable_persistence:!0},e),this._gdpr_call_func(a$,e),this._gdpr_update_persistence(e)},lh.prototype.report_error=function(e,t){an.error.apply(an.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){an.error(e)}},lh.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},lh.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):an.log("remove_hook failed. Matching hook was not found"))},lh.prototype.init=lh.prototype.init,lh.prototype.reset=lh.prototype.reset,lh.prototype.enable=lh.prototype.enable,lh.prototype.disable=lh.prototype.disable,lh.prototype.time_event=lh.prototype.time_event,lh.prototype.track=lh.prototype.track,lh.prototype.track_links=lh.prototype.track_links,lh.prototype.track_forms=lh.prototype.track_forms,lh.prototype.track_pageview=lh.prototype.track_pageview,lh.prototype.register=lh.prototype.register,lh.prototype.register_once=lh.prototype.register_once,lh.prototype.unregister=lh.prototype.unregister,lh.prototype.identify=lh.prototype.identify,lh.prototype.alias=lh.prototype.alias,lh.prototype.name_tag=lh.prototype.name_tag,lh.prototype.set_config=lh.prototype.set_config,lh.prototype.get_config=lh.prototype.get_config,lh.prototype.get_api_host=lh.prototype.get_api_host,lh.prototype.get_property=lh.prototype.get_property,lh.prototype.get_distinct_id=lh.prototype.get_distinct_id,lh.prototype.toString=lh.prototype.toString,lh.prototype.opt_out_tracking=lh.prototype.opt_out_tracking,lh.prototype.opt_in_tracking=lh.prototype.opt_in_tracking,lh.prototype.has_opted_out_tracking=lh.prototype.has_opted_out_tracking,lh.prototype.has_opted_in_tracking=lh.prototype.has_opted_in_tracking,lh.prototype.clear_opt_in_out_tracking=lh.prototype.clear_opt_in_out_tracking,lh.prototype.get_group=lh.prototype.get_group,lh.prototype.set_group=lh.prototype.set_group,lh.prototype.add_group=lh.prototype.add_group,lh.prototype.remove_group=lh.prototype.remove_group,lh.prototype.add_hook=lh.prototype.add_hook,lh.prototype.remove_hook=lh.prototype.remove_hook,lh.prototype.track_with_groups=lh.prototype.track_with_groups,lh.prototype.start_batch_senders=lh.prototype.start_batch_senders,lh.prototype.stop_batch_senders=lh.prototype.stop_batch_senders,lh.prototype.start_session_recording=lh.prototype.start_session_recording,lh.prototype.stop_session_recording=lh.prototype.stop_session_recording,lh.prototype.pause_session_recording=lh.prototype.pause_session_recording,lh.prototype.resume_session_recording=lh.prototype.resume_session_recording,lh.prototype.get_session_recording_properties=lh.prototype.get_session_recording_properties,lh.prototype.get_session_replay_url=lh.prototype.get_session_replay_url,lh.prototype.get_tab_id=lh.prototype.get_tab_id,lh.prototype.DEFAULT_API_ROUTES=lu,lh.prototype.__get_recorder=lh.prototype.__get_recorder,lh.prototype.__get_recording_init_promise=lh.prototype.__get_recording_init_promise,le.prototype.properties=le.prototype.properties,le.prototype.update_search_keyword=le.prototype.update_search_keyword,le.prototype.update_referrer_info=le.prototype.update_referrer_info,le.prototype.get_cross_subdomain=le.prototype.get_cross_subdomain,le.prototype.clear=le.prototype.clear;var lg={},lm=function(){ar.each(lg,function(e,t){t!==lr&&(b[t]=e)}),b._=ar},lv=(lt=function(e,t){t()},_=0,(b=new lh).init=function(e,t,r){if(r)return b[r]||(b[r]=lg[r]=lp(e,t,r),b[r]._loaded()),b[r];var n=b;lg[lr]?n=lg[lr]:e&&((n=lp(e,t,lr))._loaded(),lg[lr]=n),b=n,1===_&&(o7[lr]=b),lm()},b.init(),function(){function e(){e.done||(e.done=!0,ll=!0,ls=!1,ar.each(lg,function(e){e._dom_loaded()}))}if(s2.addEventListener)"complete"===s2.readyState?e():s2.addEventListener("DOMContentLoaded",e,!1);else if(s2.attachEvent){s2.attachEvent("onreadystatechange",e);var t=!1;try{t=null===o7.frameElement}catch(e){}s2.documentElement.doScroll&&t&&function t(){try{s2.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}ar.register_event(o7,"load",e,!0)}(),b)},43509(e,t,r){var n,i,o;
20Object.defineProperty(t,"__esModule",{value:!0}),t._getInstance=t._getStatsigGlobalFlag=t._getStatsigGlobal=void 0;let s=r(68024);t._getStatsigGlobal=()=>{try{return"u">typeof __STATSIG__?__STATSIG__:h}catch(e){return h}},t._getStatsigGlobalFlag=e=>(0,t._getStatsigGlobal)()[e],t._getInstance=e=>{let r=(0,t._getStatsigGlobal)();return e?r.instances&&r.instances[e]:(r.instances&&Object.keys(r.instances).length>1&&s.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),r.firstInstance)};let a="__STATSIG__",u="u">typeof window?window:{},c="u">typeof globalThis?globalThis:{},l="u">typeof globalThis?globalThis:{},h=null!=(o=null!=(i=null!=(n=u[a])?n:c[a])?i:l[a])?o:{instance:t._getInstance};u[a]=h,c[a]=h,l[a]=h},94681(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._getStorageKey=t._getUserStorageKey=void 0;let n=r(83918);function i(e,t,r){var i;if(r)return r(e,t);let o=t&&t.customIDs?t.customIDs:{},s=[`uid:${null!=(i=null==t?void 0:t.userID)?i:""}`,`cids:${Object.keys(o).sort((e,t)=>e.localeCompare(t)).map(e=>`${e}-${o[e]}`).join(",")}`,`k:${e}`];return(0,n._DJB2)(s.join("|"))}t._getUserStorageKey=i,t._getStorageKey=function(e,t,r){return t?i(e,t,r):(0,n._DJB2)(`k:${e}`)}},58683(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PrecomputedEvaluationsContextHandle=void 0;let n=r(68024),i=r(414),o=r(39839),s=r(32626);t.PrecomputedEvaluationsContextHandle=class{constructor(e,t,r,n,i,o){this._sdkKey=e,this._getOptions=t,this._getErrorBoundary=r,this._getValues=n,this._getUser=i,this._getSdkInstanceID=o}get sdkKey(){return this._sdkKey}get options(){return this._getOptions()}get errorBoundary(){return this._getErrorBoundary()}get values(){return this._getValues()}get user(){let e=(0,i._cloneObject)("StatsigUser",this._getUser());return null==e&&(n.Log.error("Failed to clone user"),e={}),e}getSession(e=!0){return o.StatsigSession.get(this._sdkKey,e)}get stableID(){return s.StableID.get(this._sdkKey)}get sdkInstanceID(){return this._getSdkInstanceID()}toContext(e=!0){return{sdkKey:this.sdkKey,options:this.options,values:this.values,user:this.user,errorBoundary:this.errorBoundary,session:this.getSession(e),stableID:this.stableID,sdkInstanceID:this.sdkInstanceID}}}},85638(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._makeDataAdapterResult=t.DataAdapterCore=void 0;let i=r(68024),o=r(32626),s=r(81570),a=r(1638),u=r(53705);function c(e,t,r,n){return{source:e,data:t,receivedAt:Date.now(),stableID:r,fullUserHash:(0,s._getFullUserHash)(n)}}t.DataAdapterCore=class{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._cacheLimit=10,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new l}attach(e,t,r){this._sdkKey=e,this._options=t}getDataSync(e){let t=e&&(0,s._normalizeUser)(e,this._options),r=this._getCacheKey(t),n=this._inMemoryCache.get(r,t);if(n&&this._getIsCacheValueValid(n))return n;let i=this._loadFromCache(r);return i&&this._getIsCacheValueValid(i)?(this._inMemoryCache.add(r,i,this._cacheLimit),this._inMemoryCache.get(r,t)):null}setData(e,t){let r=t&&(0,s._normalizeUser)(t,this._options),n=this._getCacheKey(r);this._inMemoryCache.add(n,c("Bootstrap",e,null,r),this._cacheLimit)}_getIsCacheValueValid(e){return null==e.stableID||e.stableID===o.StableID.get(this._getSdkKey())}_getDataAsyncImpl(e,t,r){return n(this,void 0,void 0,function*(){a.Storage.isReady()||(yield a.Storage.isReadyResolver());let n=null!=e?e:this.getDataSync(t),o=[this._fetchAndPrepFromNetwork(n,t,r)];return(null==r?void 0:r.timeoutMs)&&o.push(new Promise(e=>setTimeout(e,r.timeoutMs)).then(()=>(i.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(o)})}_prefetchDataImpl(e,t){return n(this,void 0,void 0,function*(){let r=e&&(0,s._normalizeUser)(e,this._options),n=this._getCacheKey(r),i=yield this._getDataAsyncImpl(null,r,t);i&&this._inMemoryCache.add(n,Object.assign(Object.assign({},i),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(e,t,r){return n(this,void 0,void 0,function*(){var n;let s=null!=(n=null==e?void 0:e.data)?n:null,a=null!=e&&this._isCachedResultValidFor204(e,t),l=yield this._fetchFromNetwork(s,t,r,a);if(!l)return i.Log.debug("No response returned for latest value"),null;let h=(0,u._typedJsonParse)(l,"has_updates","Response"),p=this._getSdkKey(),d=o.StableID.get(p),f=null;if((null==h?void 0:h.has_updates)===!0)f=c("Network",l,d,t);else{if(!s||(null==h?void 0:h.has_updates)!==!1)return null;f=c("NetworkNotModified",s,d,t)}let g=this._getCacheKey(t);return this._inMemoryCache.add(g,f,this._cacheLimit),this._writeToCache(g,f),f})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(i.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;let r=null==(t=a.Storage.getItem)?void 0:t.call(a.Storage,e);if(null==r)return null;let n=(0,u._typedJsonParse)(r,"source","Cached Result");return n?Object.assign(Object.assign({},n),{source:"Cache"}):null}_writeToCache(e,t){let r=JSON.stringify(t);for(let t=0;t<8;t++)try{a.Storage.setItem(e,r);break}catch(t){if(!(t instanceof Error)||!(t.toString().includes("QuotaExceededError")||t.toString().includes("QUOTA_EXCEEDED_ERR"))||this._cacheLimit<=1)throw t;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(e,this._cacheLimit-1)}this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e,t=this._cacheLimit){var r;let n=null!=(r=(0,a._getObjectFromStorage)(this._lastModifiedStoreKey))?r:{};for(let r of(n[e]=Date.now(),h(n,t)))delete n[r],a.Storage.removeItem(r);(0,a._setObjectInStorage)(this._lastModifiedStoreKey,n)}},t._makeDataAdapterResult=c;class l{constructor(){this._data={}}get(e,t){var r;let n=this._data[e],o=null==n?void 0:n.stableID,s=null==(r=null==t?void 0:t.customIDs)?void 0:r.stableID;return s&&o&&s!==o?(i.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):n}add(e,t,r){for(let e of h(this._data,r-1))delete this._data[e];this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function h(e,t){let r=Object.keys(e);return r.length<=t?[]:0===t?r:r.sort((t,r)=>{let n=e[t],i=e[r];return"object"==typeof n&&"object"==typeof i?n.receivedAt-i.receivedAt:n-i}).slice(0,r.length-t)}}
20,30882(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;let r=new Map,n="start";function i(e,t,r,n){return Object.assign({key:r,action:t,step:n,timestamp:Date.now()},e)}function o(e,t){var n;let i=null!=(n=r.get(e))?n:[];i.push(t),r.set(e,i)}function s(e,t){if(t in e)return e[t]}t.Diagnostics={_getMarkers:e=>r.get(e),_markInitOverallStart:e=>{o(e,i({},n,"overall"))},_markInitOverallEnd:(e,t,r)=>{o(e,i({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:r},"end","overall"))},_markInitNetworkReqStart:(e,t)=>{o(e,i(t,n,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{o(e,i(t,"end","initialize","network_request"))},_markInitProcessStart:e=>{o(e,i({},n,"initialize","process"))},_markInitProcessEnd:(e,t)=>{o(e,i(t,"end","initialize","process"))},_clearMarkers:e=>{r.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:s(e,"code"),name:s(e,"name"),message:s(e,"message")}},_getDiagnosticsData(e,r,n,i){var o;return{success:(null==e?void 0:e.ok)===!0,statusCode:null==e?void 0:e.status,sdkRegion:null==(o=null==e?void 0:e.headers)?void 0:o.get("x-statsig-region"),isDelta:!0===n.includes('"is_delta":true')||void 0,attempt:r,error:t.Diagnostics._formatError(i)}},_enqueueDiagnosticsEvent(e,r,n,i){let o=t.Diagnostics._getMarkers(n);if(null==o||o.length<=0)return -1;let s=o[o.length-1].timestamp-o[0].timestamp;t.Diagnostics._clearMarkers(n);let a={eventName:"statsig::diagnostics",user:e,value:null,metadata:{context:"initialize",markers:o.slice(),statsigOptions:i},time:Date.now()};return r.enqueue(a),s}}},60457(e,t){var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._fetchTxtRecords=void 0;let n=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),i=["i","e","d"];t._fetchTxtRecords=function(e){return r(this,void 0,void 0,function*(){let t=yield e("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:n});if(!t.ok){let e=Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}return function(e){let t=e.findIndex((t,r)=>r<200&&"="===String.fromCharCode(t)&&i.includes(String.fromCharCode(e[r-1])));if(-1===t){let e=Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let r="";for(let n=t-1;n<e.length;n++)r+=String.fromCharCode(e[n]);return r.split(",")}(new Uint8Array((yield t.arrayBuffer())))})}},54387(e,t){Object.defineProperty(t,"__esModule",{value:!0})},14358(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.EXCEPTION_ENDPOINT=void 0;let i=r(68024),o=r(10686),s=r(46512);t.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";let a="[Statsig] UnknownError";function u(e){return e instanceof Error?e:"string"==typeof e?Error(e):Error("An unknown error occurred.")}t.ErrorBoundary=class{constructor(e,t,r,n){this._sdkKey=e,this._options=t,this._emitter=r,this._lastSeenError=n,this._seen=new Set}wrap(e,t){try{(function(e){let t=new Set,r=Object.getPrototypeOf(e);for(;r&&r!==Object.prototype;)Object.getOwnPropertyNames(r).filter(e=>"function"==typeof(null==r?void 0:r[e])).forEach(e=>t.add(e)),r=Object.getPrototypeOf(r);return Array.from(t)})(e).forEach(r=>{let n=e[r];"$EB"in n||(e[r]=(...i)=>this._capture(t?`${t}:${r}`:r,()=>n.apply(e,i)),e[r].$EB=!0)})}catch(e){this._onError("eb:wrap",e)}}logError(e,t){this._onError(e,t)}getLastSeenErrorAndReset(){let e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=u(e))}_capture(e,t){try{let r=t();if(r&&r instanceof Promise)return r.catch(t=>this._onError(e,t));return r}catch(t){return this._onError(e,t),null}}_onError(e,r){try{i.Log.warn(`Caught error in ${e}`,{error:r}),n(this,void 0,void 0,function*(){var n,i,c,l,h,p,d;let f=r||Error(a),g=f instanceof Error,m=g?f.name:"No Name",v=u(f);if(this._lastSeenError=v,this._seen.has(m))return;if(this._seen.add(m),null==(i=null==(n=this._options)?void 0:n.networkConfig)?void 0:i.preventAllNetworkTraffic){null==(c=this._emitter)||c.call(this,{name:"error",error:r,tag:e});return}let y=o.SDKType._get(this._sdkKey),_=s.StatsigMetadataProvider.get(),b=g?f.stack:function(e){try{return JSON.stringify(e)}catch(e){return a}}(f),w=Object.assign({tag:e,exception:m,info:b,statsigOptions:function(e){if(!e)return{};let t={};return Object.keys(e).forEach(r=>{let n=e[r];switch(typeof n){case"number":case"bigint":case"boolean":t[String(r)]=n;break;case"string":n.length<50?t[String(r)]=n:t[String(r)]="set";break;case"object":"environment"===r?t.environment=n:"networkConfig"===r?t.networkConfig=n:t[String(r)]=null!=n?"set":"unset"}}),t}(this._options)},Object.assign(Object.assign({},_),{sdkType:y})),S=null!=(p=null==(h=null==(l=this._options)?void 0:l.networkConfig)?void 0:h.networkOverrideFunc)?p:fetch;yield S(t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(y),"STATSIG-SDK-VERSION":String(_.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(w)}),null==(d=this._emitter)||d.call(this,{name:"error",error:r,tag:e})}).then(()=>{}).catch(()=>{})}catch(e){}}}}
20,43194(e,t){Object.defineProperty(t,"__esModule",{value:!0})},86913(e,t){Object.defineProperty(t,"__esModule",{value:!0})},85434(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EventLogger=void 0;let i=r(94681),o=r(83918),s=r(68024),a=r(12610),u=r(414),c=r(39839),l=r(37253),h=r(47754),p=r(1638),d=r(88873),f=r(92701),g={};class m{static _safeFlushAndForget(e){var t;null==(t=g[e])||t.flush().catch(()=>{})}static _safeRetryFailedLogs(e){var t;null==(t=g[e])||t._retryFailedLogs()}constructor(e,t,r,n){var i,o;this._sdkKey=e,this._emitter=t,this._network=r,this._options=n,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._loggingEnabled=null!=(i=null==n?void 0:n.loggingEnabled)?i:(null==n?void 0:n.disableLogging)===!0?h.LoggingEnabledOption.disabled:h.LoggingEnabledOption.browserOnly,(null==n?void 0:n.loggingEnabled)&&void 0!==n.disableLogging&&s.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),this._maxQueueSize=null!=(o=null==n?void 0:n.loggingBufferMaxSize)?o:100;const u=null==n?void 0:n.networkConfig;this._logEventUrlConfig=new d.UrlConfiguration(a.Endpoint._rgstr,null==u?void 0:u.logEventUrl,null==u?void 0:u.api,null==u?void 0:u.logEventFallbackUrls)}setLogEventCompressionMode(e){this._network.setLogEventCompressionMode(e)}setLoggingEnabled(e){if("disabled"===this._loggingEnabled&&"disabled"!==e){let e=this._getStorageKey(),t=(0,p._getObjectFromStorage)(e);t&&this._queue.push(...t),p.Storage.removeItem(e)}this._loggingEnabled=e}enqueue(e){this._shouldLogEvent(e)&&(this._normalizeAndAppendEvent(e),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&m._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(e){var t;let r=null!=(t=this._nonExposedChecks[e])?t:0;this._nonExposedChecks[e]=r+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var e;let t=(0,u._isServerEnv)();t&&(null==(e=this._options)?void 0:e.loggingEnabled)!=="always"||(g[this._sdkKey]=this,t||(0,f._subscribeToVisiblityChanged)(e=>{"background"===e?m._safeFlushAndForget(this._sdkKey):"foreground"===e&&m._safeRetryFailedLogs(this._sdkKey)}),this._retryFailedLogs(),this._startBackgroundFlushInterval())}stop(){return n(this,void 0,void 0,function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete g[this._sdkKey],yield this.flush()})}flush(){return n(this,void 0,void 0,function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;let e=this._queue;this._queue=[],yield this._sendEvents(e)})}_quickFlushIfNeeded(){this._hasRunQuickFlush||(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>200||setTimeout(()=>m._safeFlushAndForget(this._sdkKey),200))}_shouldLogEvent(e){var t;if((null==(t=this._options)?void 0:t.loggingEnabled)!=="always"&&(0,u._isServerEnv)())return!1;if(!(0,l._isExposureEvent)(e))return!0;let r=e.user?e.user:{statsigEnvironment:void 0},n=(0,i._getUserStorageKey)(this._sdkKey,r),o=e.metadata?e.metadata:{},s=[e.eventName,n,o.gate,o.config,o.ruleID,o.allocatedExperiment,o.parameterName,String(o.isExplicitParameter),o.reason].join("|"),a=this._lastExposureTimeMap[s],c=Date.now();return(!a||!(c-a<6e5))&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[s]=c,!0)}_sendEvents(e){return n(this,void 0,void 0,function*(){var t,r;if("disabled"===this._loggingEnabled)return this._saveFailedLogsToStorage(e),!1;try{let n=(0,f._isUnloading)()&&this._network.isBeaconSupported()&&(null==(r=null==(t=this._options)?void 0:t.networkConfig)?void 0:r.networkOverrideFunc)==null;if(this._emitter({name:"pre_logs_flushed",events:e}),(n?this._sendEventsViaBeacon(e):yield this._sendEventsViaPost(e)).success)return this._emitter({name:"logs_flushed",events:e}),!0;return s.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(e),!1}catch(e){return s.Log.warn("Failed to flush events."),!1}})}_sendEventsViaPost(e){return n(this,void 0,void 0,function*(){var t;let r=yield this._network.post(this._getRequestData(e)),n=null!=(t=null==r?void 0:r.code)?t:-1;return{success:n>=200&&n<300}})}_sendEventsViaBeacon(e){return{success:this._network.beacon(this._getRequestData(e))}}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[a.NetworkParam.EventC
20ount]:String(e.length)},credentials:"same-origin"}}_saveFailedLogsToStorage(e){for(;e.length>500;)e.shift();let t=this._getStorageKey();try{let r=this._getFailedLogsFromStorage(t);(0,p._setObjectInStorage)(t,[...r,...e])}catch(e){s.Log.warn("Unable to save failed logs to storage")}}_getFailedLogsFromStorage(e){let t=[];try{let r=(0,p._getObjectFromStorage)(e);return Array.isArray(r)&&(t=r),t}catch(e){return[]}}_retryFailedLogs(){let e=this._getStorageKey();n(this,void 0,void 0,function*(){p.Storage.isReady()||(yield p.Storage.isReadyResolver());let t=(0,p._getObjectFromStorage)(e);t&&(p.Storage.removeItem(e),yield this._sendEvents(t))}).catch(()=>{s.Log.warn("Failed to flush stored logs")})}_getStorageKey(){return`statsig.failed_logs.${(0,o._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);let t={},r=this._getCurrentPageUrl();r&&(t.statsigMetadata={currentPage:r});let n=Object.assign(Object.assign({},e),t);s.Log.debug("Enqueued Event:",n),this._queue.push(n)}_appendAndResetNonExposedChecks(){0!==Object.keys(this._nonExposedChecks).length&&(this._normalizeAndAppendEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Object.assign({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_getCurrentPageUrl(){var e;if((null==(e=this._options)?void 0:e.includeCurrentPageUrlWithEvents)!==!1)return(0,u._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var e,t;let r=setInterval(()=>{let e=g[this._sdkKey];e&&e._flushIntervalId===r?(m._safeFlushAndForget(this._sdkKey),c.StatsigSession.checkForIdleSession(this._sdkKey)):clearInterval(r)},null!=(t=null==(e=this._options)?void 0:e.loggingIntervalMs)?t:1e4);this._flushIntervalId=r}}t.EventLogger=m},83918(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;let n=r(90010);t._DJB2=e=>{let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return String(t>>>0)},t._DJB2Object=(e,r)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(e,r))),t._getSortedObject=(e,r)=>{if(null==e)return null;let i=Object.keys(e).sort(),o={};return i.forEach(i=>{let s=e[i];if(0===r||"object"!==(0,n._typeOf)(s)){o[i]=s;return}o[i]=(0,t._getSortedObject)(s,null!=r?r-1:r)}),o}},57061(e,t){Object.defineProperty(t,"__esModule",{value:!0})},68024(e,t){function r(e){return e.unshift("[Statsig]"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0,t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class n{static info(...e){n.level>=t.LogLevel.Info&&console.info(" INFO ",...r(e))}static debug(...e){n.level>=t.LogLevel.Debug&&console.debug(" DEBUG ",...r(e))}static warn(...e){n.level>=t.LogLevel.Warn&&console.warn(" WARN ",...r(e))}static error(...e){n.level>=t.LogLevel.Error&&console.error(" ERROR ",...r(e))}}t.Log=n,n.level=t.LogLevel.Warn},40843(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createMemoKey=t.MemoPrefix=void 0,t.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};let r=new Set([]),n=new Set(["userPersistedValues"]);t.createMemoKey=function(e,t,i){let o=`${e}|${t}`;if(!i)return o;for(let e of Object.keys(i)){if(n.has(e))return;r.has(e)?o+=`|${e}=true`:o+=`|${e}=${i[e]}`}return o}},12610(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkParam=t.NetworkDefault=t.Endpoint=void 0,t.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},t.NetworkDefault={[t.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[t.Endpoint._initialize]:"https://featureassets.org/v1",[t.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},t.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},44703(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};
20Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=void 0,r(43509);let i=r(43509),o=r(30882),s=r(68024),a=r(12610),u=r(50052),c=r(95747),l=r(10686),h=r(414),p=r(39839),d=r(32626),f=r(71180),g=r(46512),m=r(47754),v=r(92701),y=new Set([408,500,502,503,504,522,524,599]);t.NetworkCore=class{constructor(e,t){this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new u.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(e))}setLogEventCompressionMode(e){this._options.logEventCompressionMode=e}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"u">typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){let e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e){if(!_(e))return!1;let t=this._getInternalRequestArgs("POST",e),r=this._getPopulatedURL(t),n=navigator;return n.sendBeacon.bind(n)(r,t.body)}post(e){return n(this,void 0,void 0,function*(){let t=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(t),yield this._tryToCompressBody(t),this._sendRequest(t)})}get(e){let t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(e){return n(this,void 0,void 0,function*(){var t,r,i,u,c,l,h,p,d;if(!_(e)||this._netConfig.preventAllNetworkTraffic)return null;let{method:g,body:m,retries:b,attempt:S}=e,k=e.urlConfig.endpoint;if(this._isRateLimited(k))return s.Log.warn(`Request to ${k} was blocked because you are making requests too frequently.`),null;let C=null!=S?S:1,x=!1,E=this._getPopulatedURL(e),I=null,O=(0,v._isUnloading)();try{let r,n={method:g,body:m,headers:Object.assign({},e.headers),priority:e.priority,keepalive:O};c=e,l=C,c.urlConfig.endpoint===a.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqStart(c.sdkKey,{attempt:l});let i=this._leakyBucket[k];i&&(i.lastRequestTime=Date.now(),this._leakyBucket[k]=i);let s=null!=(t=this._netConfig.networkOverrideFunc)?t:fetch;if(!(I=yield Promise.race([s(E,n).finally(()=>clearTimeout(r)),new Promise((e,t)=>{r=setTimeout(()=>{x=!0,t(Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})])).ok){let e=yield I.text().catch(()=>"No Text"),t=Error(`NetworkError: ${E} ${e}`);throw t.name="NetworkError",t}let u=yield I.text();return w(e,I,C,u),this._fallbackResolver.tryBumpExpiryTime(e.sdkKey,e.urlConfig),{body:u,code:I.status}}catch(a){let t="string"==typeof(h=a)?h:h instanceof Error?`${h.name}: ${h.message}`:"Unknown Error",o=(p=null!=t?t:"",d=x,p.includes("Timeout")||d);if(w(e,I,C,"",a),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(e.sdkKey,e.urlConfig,t,o))&&(e.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig)),!b||C>b||!y.has(null!=(r=null==I?void 0:I.status)?r:500)){null==(i=this._emitter)||i.call(this,{name:"error",error:a,tag:f.ErrorTag.NetworkError,requestArgs:e});let r=`A networking error occurred during ${g} request to ${E}.`;return s.Log.error(r,t,a),null==(u=this._errorBoundary)||u.attachErrorIfNoneExists(r),null}return yield function(e){return n(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,Math.min(e*e*500,3e4)))})}(C),this._sendRequest(Object.assign(Object.assign({},e),{retries:b,attempt:C+1}))}})}_getLogEventCompressionMode(e){let t=null==e?void 0:e.logEventCompressionMode;return t||(null==e?void 0:e.disableCompression)!==!0||(t=m.LogEventCompressionMode.Disabled),t||(t=m.LogEventCompressionMode.Enabled),t}_isRateLimited(e){var t;let r=Date.now(),n=null!=(t=this._leakyBucket[e])?t:{count:0,lastRequestTime:r},i=Math.floor((r-n.lastRequestTime)*.05);return n.count=Math.max(0,n.count-i),n.count>=50||(n.count+=1,n.lastRequestTime=r,this._leakyBucket[e]=n,!1)}_getPopulatedURL(e){var t;let r=null!=(t=e.fallbackUrl)?t:e.urlConfig.getUrl();(e.urlConfig.endpoint===a.Endpoint._initialize||e.urlConfig.endpoint===a.Endpoint._download_config_specs)&&(this._lastUsedInitUrl=r);let n=Object.assign({[a.NetworkParam.SdkKey]:e.sdkKey,[a.NetworkParam.SdkType]:l.SDKType._get(e.sdkKey),[a.NetworkParam.SdkVersion]:g.SDK_VERSION,[a.NetworkParam.Time]:String(Date.now()),[a.NetworkParam.SessionID]:p.SessionID.get(e.sdkKey)},e.params),i=Object.keys(n).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&");return`${r}${i?`?${i}`:""}`}_tryEncodeBody(e){var t;let r=(0,h._getWindowSafe)(),n=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof n&&null==(0,i._getStatsigGlobalFlag)("no-encode")&&(null==r?void 0:r.btoa))try{e.body=r.btoa(n).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!=(t=e.params)?t:{}),{[a.NetworkParam.StatsigEncoded]:"1"})}catch(t){s.Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,t)}}_tryToCompressBody(e){return n(this,void 0,void 0,function*(){var t;let r=e.body;if("string"==typeof r&&function(e,t){if(!e.isCompressable||null!=(0,i._getStatsigGlobalFlag)("no-compress")||"u"<typeof CompressionStream||"u"<typeof TextEncoder)return!1;let r=null!=e.urlConfig.customUrl||null!=e.urlConfig.fallbackUrls,n=!0===c.SDKFlags.get(e.sdkKey,"enable_log_event_compression");switch(t.logEventCompressionMode){case m.LogEventCompressionMode.Disabled:return!1;case m.LogEventCompressionMode.Enabled:if(r&&!n)return!1;return!0;case m.LogEventCompressionMode.Forced:return!0;default:return!1}}(e,this._options))try{let n,i=new TextEncoder().encode(r),o=new CompressionStream("gzip"),u=o.writable.getWriter();u.write(i).catch(s.Log.error),u.close().catch(s.Log.error);let c=o.readable.getReader(),l=[];for(;!(n=yield c.read()).done;)l.push(n.value);let h=l.reduce((e,t)=>
20e+t.length,0),p=new Uint8Array(h),d=0;for(let e of l)p.set(e,d),d+=e.length;e.body=p,e.params=Object.assign(Object.assign({},null!=(t=e.params)?t:{}),{[a.NetworkParam.IsGzipped]:"1"})}catch(t){s.Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,t)}})}_getInternalRequestArgs(e,t){let r=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),n=Object.assign(Object.assign({},t),{method:e,fallbackUrl:r});return"data"in t&&b(n,t.data),n}};let _=e=>!!e.sdkKey||(s.Log.warn("Unable to make request without an SDK key"),!1),b=(e,t)=>{let{sdkKey:r,fallbackUrl:n}=e,i=d.StableID.get(r),o=p.SessionID.get(r),s=l.SDKType._get(r);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},g.StatsigMetadataProvider.get()),{stableID:i,sessionID:o,sdkType:s,fallbackUrl:n})}))};function w(e,t,r,n,i){e.urlConfig.endpoint===a.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqEnd(e.sdkKey,o.Diagnostics._getDiagnosticsData(t,r,n,i))}},50052(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._isDomainFailure=t.NetworkFallbackResolver=void 0;let i=r(60457),o=r(83918),s=r(68024),a=r(1638);function u(e,t){var r;let n=null!=(r=null==e?void 0:e.toLowerCase())?r:"";return t||n.includes("uncaught exception")||n.includes("failed to fetch")||n.includes("networkerror when attempting to fetch resource")}function c(e){return`statsig.network_fallback.${(0,o._DJB2)(e)}`}function l(e,t){let r=c(e);t&&0!==Object.keys(t).length?a.Storage.setItem(r,JSON.stringify(t)):a.Storage.removeItem(r)}t.NetworkFallbackResolver=class{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null==(t=e.networkConfig)?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var r;let n=null==(r=this._fallbackInfo)?void 0:r[t.endpoint];n&&(n.expiryTime=Date.now()+6048e5,l(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:n})))}getActiveFallbackUrl(e,t){var r,n;if(null!=t.customUrl&&null!=t.fallbackUrls)return null;let i=this._fallbackInfo;null==i&&(i=null!=(r=function(e){let t=c(e),r=a.Storage.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch(e){return s.Log.error("Failed to parse FallbackInfo"),null}}(e))?r:{},this._fallbackInfo=i);let o=i[t.endpoint];return!o||Date.now()>(null!=(n=o.expiryTime)?n:0)||t.getChecksum()!==o.urlConfigChecksum?(delete i[t.endpoint],this._fallbackInfo=i,l(e,this._fallbackInfo),null):o.url?o.url:null}tryFetchUpdatedFallbackInfo(e,t,r,i){return n(this,void 0,void 0,function*(){var n,o;try{if(!u(r,i))return!1;let o=null==t.customUrl&&null==t.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(t):t.fallbackUrls,s=this._pickNewFallbackUrl(null==(n=this._fallbackInfo)?void 0:n[t.endpoint],o);if(!s)return!1;return this._updateFallbackInfoWithNewUrl(e,t,s),!0}catch(e){return null==(o=this._errorBoundary)||o.logError("tryFetchUpdatedFallbackInfo",e),!1}})}_updateFallbackInfoWithNewUrl(e,t,r){var n,i,o;let s={urlConfigChecksum:t.getChecksum(),url:r,expiryTime:Date.now()+6048e5,previous:[]},a=t.endpoint,u=null==(n=this._fallbackInfo)?void 0:n[a];u&&s.previous.push(...u.previous),s.previous.length>10&&(s.previous=[]);let c=null==(o=null==(i=this._fallbackInfo)?void 0:i[a])?void 0:o.url;null!=c&&s.previous.push(c),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[a]:s}),l(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(e){return n(this,void 0,void 0,function*(){var t;let r=this._dnsQueryCooldowns[e.endpoint];if(r&&Date.now()<r)return null;this._dnsQueryCooldowns[e.endpoint]=Date.now()+144e5;let n=[],o=yield(0,i._fetchTxtRecords)(null!=(t=this._networkOverrideFunc)?t:fetch),s=function(e){try{return new URL(e).pathname}catch(e){return null}}(e.defaultUrl);for(let t of o){if(!t.startsWith(e.endpointDnsKey+"="))continue;let r=t.split("=");if(r.length>1){let e=r[1];e.endsWith("/")&&(e=e.slice(0,-1)),n.push(`https://${e}${s}`)}}return n})}_pickNewFallbackUrl(e,t){var r;if(null==t)return null;let n=new Set(null!=(r=null==e?void 0:e.previous)?r:[]),i=null==e?void 0:e.url,o=null;for(let e of t){let t=e.endsWith("/")?e.slice(0,-1):e;if(!n.has(e)&&t!==i){o=t;break}}return o}},t._isDomainFailure=u}
20,82509(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5025(e,t){Object.defineProperty(t,"__esModule",{value:!0})},95747(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SDKFlags=void 0;let r={};t.SDKFlags={setFlags:(e,t)=>{r[e]=t},get:(e,t)=>{var n,i;return null!=(i=null==(n=r[e])?void 0:n[t])&&i}}},10686(e,t){let r;Object.defineProperty(t,"__esModule",{value:!0}),t.SDKType=void 0;let n={};t.SDKType={_get:e=>{var t;return(null!=(t=n[e])?t:"js-mono")+(null!=r?r:"")},_setClientType(e,t){n[e]=t},_setBindingType(e){r&&"-react"!==r||(r="-"+e)}}},414(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._cloneObject=t._getUnloadEvent=t._getCurrentPageUrlSafe=t._addDocumentEventListenerSafe=t._addWindowEventListenerSafe=t._isServerEnv=t._getDocumentSafe=t._getWindowSafe=void 0;let n=r(68024);t._getWindowSafe=()=>"u">typeof window?window:null,t._getDocumentSafe=()=>{var e;let r=(0,t._getWindowSafe)();return null!=(e=null==r?void 0:r.document)?e:null},t._isServerEnv=()=>{if(null!==(0,t._getDocumentSafe)())return!1;let e="u">typeof process&&null!=process.versions&&null!=process.versions.node;return"string"==typeof EdgeRuntime||e},t._addWindowEventListenerSafe=(e,r)=>{let n=(0,t._getWindowSafe)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(e,r)},t._addDocumentEventListenerSafe=(e,r)=>{let n=(0,t._getDocumentSafe)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(e,r)},t._getCurrentPageUrlSafe=()=>{var e;try{return null==(e=(0,t._getWindowSafe)())?void 0:e.location.href.split(/[?#]/)[0]}catch(e){return}},t._getUnloadEvent=()=>{let e=(0,t._getWindowSafe)();return e&&"onpagehide"in e?"pagehide":"beforeunload"},t._cloneObject=(e,t)=>{try{return JSON.parse(JSON.stringify(t))}catch(t){return n.Log.error(`Failed to clone object ${e}`),null}}},39839(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;let n=r(94681),i=r(68024),o=r(1638),s=r(37047),a=r(92701),u={};function c(e){var t;let r=e.data,n=function({lastUpdate:e}){return Date.now()-e>18e5}(r)||function({startTime:e}){return Date.now()-e>144e5}(r);return n&&(e.data=p(),null==(t=null==__STATSIG__?void 0:__STATSIG__.instance(e.sdkKey))||t.$emt({name:"session_expired"})),n}function l(e){return`statsig.session_id.${(0,n._getStorageKey)(e)}`}function h(e){try{(0,o._setObjectInStorage)(e.storageKey,e.data),e.lastPersistedAt=Date.now()}catch(e){i.Log.warn("Failed to save SessionID")}}function p(){return{sessionID:(0,s.getUUID)(),startTime:Date.now(),lastUpdate:Date.now()}}(0,a._subscribeToVisiblityChanged)(e=>{"background"===e&&Object.values(u).forEach(e=>h(e))}),t.SessionID={get:e=>t.StatsigSession.get(e).data.sessionID},t.StatsigSession={get:(e,t=!0)=>{var r,n,i;let s;return null==u[e]&&(u[e]=function(e){let t=l(e),r=(0,o._getObjectFromStorage)(t);return r&&r.sessionID&&r.startTime&&r.lastUpdate?{data:r,sdkKey:e,lastPersistedAt:0,storageKey:t}:{data:p(),sdkKey:e,lastPersistedAt:0,storageKey:t}}(e)),r=u[e],n=t,s=Date.now(),c(r)?h(r):n&&(r.data.lastUpdate=s,i=r,Date.now()-i.lastPersistedAt>15e3&&h(i)),r},overrideInitialSessionID:(e,t)=>{let r=Date.now(),n={data:{sessionID:e,startTime:r,lastUpdate:r},sdkKey:t,lastPersistedAt:Date.now(),storageKey:l(t)};h(n),u[t]=n},checkForIdleSession:e=>{let t=u[e];!t||c(t)&&h(t)}}},56272(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._fastApproxSizeOf=void 0,t._fastApproxSizeOf=(e,r)=>{let n=0,i=Object.keys(e);for(let o=0;o<i.length;o++){let s=i[o],a=e[s];if(n+=s.length,"object"==typeof a&&null!==a?n+=(0,t._fastApproxSizeOf)(a,r)+2:n+=String(a).length+1,n>=r)break}return n}},32626(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.getCookieName=t.StableID=void 0;let n=r(94681),i=r(68024),o=r(414),s=r(1638),a=r(37047),u={},c={},l={};function h(e){return`statsig.stable_id.${(0,n._getStorageKey)(e)}`}function p(e,t){let r=h(t);try{(0,s._setObjectInStorage)(r,e)}catch(e){i.Log.warn("Failed to save StableID to storage")}}function d(e,t){if(!c[t]||null==(0,o._getDocumentSafe)())return;let r=new Date;r.setFullYear(r.getFullYear()+1),document.cookie=`${f(t)}=${encodeURIComponent(e)}; expires=${r.toUTCString()}; path=/`}function f(e){return`statsig.stable_id.${(0,n._getStorageKey)(e)}`}t.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:e=>{let t;if(l[e])return null;if(null!=u[e])return u[e];let r=null;return null!=(r=function(e){if(!c[e]||null==(0,o._getDocumentSafe)())return null;for(let t of document.cookie.split(";")){let[r,n]=t.trim().split("=");if(r===f(e))return decodeURIComponent(n)}return null}(e))?(u[e]=r,p(r,e)):(null==(t=h(e),r=(0,s._getObjectFromStorage)(t))&&(r=(0,a.getUUID)()),p(r,e),d(r,e),u[e]=r),r},setOverride:(e,t)=>{u[t]=e,p(e,t),d(e,t)}
20,_setCookiesEnabled:(e,t)=>{c[e]=t},_setDisabled:(e,t)=>{l[e]=t}},t.getCookieName=f},84351(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClientBase=void 0,r(43509);let i=r(43509),o=r(14358),s=r(85434),a=r(68024),u=r(40843),c=r(414),l=r(39839),h=r(32626),p=r(47754),d=r(1638);t.StatsigClientBase=class{constructor(e,t,r,n){var u,p,f,g;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const m=this.$emt.bind(this);(null==n?void 0:n.logLevel)!=null&&(a.Log.level=n.logLevel),(null==n?void 0:n.disableStorage)&&d.Storage._setDisabled(!0),(null==n?void 0:n.initialSessionID)&&l.StatsigSession.overrideInitialSessionID(n.initialSessionID,e),(null==n?void 0:n.storageProvider)&&d.Storage._setProvider(n.storageProvider),(null==n?void 0:n.enableCookies)&&h.StableID._setCookiesEnabled(e,n.enableCookies),(null==n?void 0:n.disableStableID)&&h.StableID._setDisabled(e,!0),this._sdkKey=e,this._options=null!=n?n:{},this._memoCache={},this.overrideAdapter=null!=(u=null==n?void 0:n.overrideAdapter)?u:null,this._logger=new s.EventLogger(e,m,r,n),this._errorBoundary=new o.ErrorBoundary(e,n,m),this._errorBoundary.wrap(this),this._errorBoundary.wrap(t),this._errorBoundary.wrap(this._logger),r.setErrorBoundary(this._errorBoundary),this.dataAdapter=t,this.dataAdapter.attach(e,n,r),this.storageProvider=d.Storage,null==(g=null==(f=null==(p=this.overrideAdapter)?void 0:p.loadFromStorage)?void 0:f.call(p))||g.catch(e=>this._errorBoundary.logError("OA::loadFromStorage",e)),this._primeReadyRipcord(),function(e,t){var r;if((0,c._isServerEnv)())return;let n=(0,i._getStatsigGlobal)(),o=null!=(r=n.instances)?r:{};null!=o[e]&&a.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),o[e]=t,n.firstInstance||(n.firstInstance=t),n.instances=o,__STATSIG__=n}(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,d.Storage._setDisabled(e.disableStorage)),null!=e.enableCookies&&(this._options.enableCookies=e.enableCookies,h.StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(p.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return n(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){let r=this._listeners[e].indexOf(t);-1!==r&&this._listeners[e].splice(r,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;let r=t=>{try{t(e)}catch(r){if(!0===t.__isInternal)return void this._errorBoundary.logError(`__emit:${e.name}`,r);a.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach(e=>r(e)),null==(t=this._listeners["*"])||t.forEach(r)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,r){(null==r?void 0:r.disableExposureLog)===!0?this._logger.incrementNonExposureCount(e):this._logger.enqueue(t)}_memoize(e,t){return(r,n)=>{if(this._options.disableEvaluationMemoization)return t(r,n);let i=(0,u.createMemoKey)(e,r,n);return i?(i in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[i]=t(r,n)),this._memoCache[i]):t(r,n)}}}}
20,71180(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTag=void 0,t.ErrorTag={NetworkError:"NetworkError"}},12166(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCachePrefix=void 0,t.DataAdapterCachePrefix="statsig.cached"},37253(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._createLayerParameterExposure=t._createConfigExposure=t._mapExposures=t._createGateExposure=t._isExposureEvent=void 0;let r="statsig::config_exposure",n="statsig::gate_exposure",i="statsig::layer_exposure",o=(e,t,r,n,i)=>(r.bootstrapMetadata&&(n.bootstrapMetadata=r.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:a(r,n),secondaryExposures:i,time:Date.now()});function s(e,t){return e.map(e=>"string"==typeof e?(null!=t?t:{})[e]:e).filter(e=>null!=e)}t._isExposureEvent=({eventName:e})=>e===n||e===r||e===i,t._createGateExposure=(e,t,r)=>{var i,a,u;let c={gate:t.name,gateValue:String(t.value),ruleID:t.ruleID};return(null==(i=t.__evaluation)?void 0:i.version)!=null&&(c.configVersion=t.__evaluation.version),o(n,e,t.details,c,s(null!=(u=null==(a=t.__evaluation)?void 0:a.secondary_exposures)?u:[],r))},t._mapExposures=s,t._createConfigExposure=(e,t,n)=>{var i,a,u,c;let l={config:t.name,ruleID:t.ruleID};return(null==(i=t.__evaluation)?void 0:i.version)!=null&&(l.configVersion=t.__evaluation.version),(null==(a=t.__evaluation)?void 0:a.passed)!=null&&(l.rulePassed=String(t.__evaluation.passed)),o(r,e,t.details,l,s(null!=(c=null==(u=t.__evaluation)?void 0:u.secondary_exposures)?c:[],n))},t._createLayerParameterExposure=(e,t,r,n)=>{var a,u,c,l,h,p,d;let f=t.__evaluation,g=(null==(a=null==f?void 0:f.explicit_parameters)?void 0:a.includes(r))===!0,m="",v=null!=(u=null==f?void 0:f.undelegated_secondary_exposures)?u:[];g&&(m=null!=(c=f.allocated_experiment_name)?c:"",v=null!=(l=f.secondary_exposures)?l:[]);let y=null==(h=t.__evaluation)?void 0:h.parameter_rule_ids,_={config:t.name,parameterName:r,ruleID:null!=(p=null==y?void 0:y[r])?p:t.ruleID,allocatedExperiment:m,isExplicitParameter:String(g)};return(null==(d=t.__evaluation)?void 0:d.version)!=null&&(_.configVersion=t.__evaluation.version),o(i,e,t.details,_,s(v,n))};let a=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t)},46512(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.31.2";let r={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>r,add:e=>{r=Object.assign(Object.assign({},r),e)}}},47754(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingEnabledOption=t.LogEventCompressionMode=void 0,t.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},t.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}},68474(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9851(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._makeTypedGet=t._mergeOverride=t._makeLayer=t._makeExperiment=t._makeDynamicConfig=t._makeFeatureGate=void 0;let n=r(68024),i=r(90010);function o(e,t,r,n){var i;return{name:e,details:t,ruleID:null!=(i=null==r?void 0:r.rule_id)?i:"",__evaluation:r,value:n}}function s(e,t,r){var n,i;let s=null!=(n=null==r?void 0:r.value)?n:{};return Object.assign(Object.assign({},o(e,t,r,s)),{idType:null!=(i=null==r?void 0:r.id_type)?i:null,get:a(e,null==r?void 0:r.value)})}function a(e,t,r){return(o,s)=>{var a;let u=null!=(a=null==t?void 0:t[o])?a:null;return null==u?null!=s?s:null:null==s||(0,i._isTypeMatch)(u,s)?(null==r||r(o),u):(n.Log.warn(`Parameter type mismatch. '${e}.${o}' was found to be type '${typeof u}' but fallback/return type is '${typeof s}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=s?s:null)}}t._makeFeatureGate=function(e,t,r){var n;return Object.assign(Object.assign({},o(e,t,r,(null==r?void 0:r.value)===!0)),{idType:null!=(n=null==r?void 0:r.id_type)?n:null})},t._makeDynamicConfig=s,t._makeExperiment=function(e,t,r){var n;return Object.assign(Object.assign({},s(e,t,r)),{groupName:null!=(n=null==r?void 0:r.group_name)?n:null})},t._makeLayer=function(e,t,r,n){var i,s;return Object.assign(Object.assign({},o(e,t,r,void 0)),{get:a(e,null==r?void 0:r.value,n),groupName:null!=(i=null==r?void 0:r.group_name)?i:null,__value:null!=(s=null==r?void 0:r.value)?s:{}})},t._mergeOverride=function(e,t,r,n){return Object.assign(Object.assign(Object.assign({},e),t),{get:a(e.name,r,n)})},t._makeTypedGet=a}
20,99652(e,t){Object.defineProperty(t,"__esModule",{value:!0})},51148(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_DETAIL_ERROR_MESSAGES=t.createUpdateDetails=void 0,t.createUpdateDetails=(e,t,r,n,i,o)=>({duration:r,source:t,success:e,error:n,sourceUrl:i,warnings:o}),t.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."}},81570(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._getUnitIDFromUser=t._getFullUserHash=t._normalizeUser=void 0;let n=r(83918),i=r(68024),o=r(414);t._normalizeUser=function(e,t,r){let n=(0,o._cloneObject)("StatsigUser",e);return null==n?(i.Log.error("Failed to clone user"),{statsigEnvironment:void 0}):(null!=t&&null!=t.environment?n.statsigEnvironment=t.environment:null!=r&&(n.statsigEnvironment={tier:r}),n)},t._getFullUserHash=function(e){return e?(0,n._DJB2Object)(e):null},t._getUnitIDFromUser=function(e,t){var r,n,i;if("string"!=typeof t)return e.userID;let o=t.toLowerCase();return"userid"!==o?null!=(n=null==(r=e.customIDs)?void 0:r[t])?n:null==(i=e.customIDs)?void 0:i[o]:e.userID}},1638(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;let n=r(68024),i=r(414),o={},s={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>o[e]?o[e]:null,setItem:(e,t)=>{o[e]=t},removeItem:e=>{delete o[e]},getAllKeys:()=>Object.keys(o)},a=null;try{let e=(0,i._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(a={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,r)=>e.localStorage.setItem(t,r),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(e){n.Log.warn("Failed to setup localStorageProvider.")}let u=null!=a?a:s,c=u;function l(e){try{return e()}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return t.Storage._setProvider(s),null;throw e}}t.Storage={isReady:()=>c.isReady(),isReadyResolver:()=>c.isReadyResolver(),getProviderName:()=>c.getProviderName(),getItem:e=>l(()=>c.getItem(e)),setItem:(e,t)=>l(()=>c.setItem(e,t)),removeItem:e=>c.removeItem(e),getAllKeys:()=>c.getAllKeys(),_setProvider:e=>{u=e,c=e},_setDisabled:e=>{c=e?s:u}},t._getObjectFromStorage=function(e){let r=t.Storage.getItem(e);try{return JSON.parse(null!=r?r:"null")}catch(t){return n.Log.error(`Failed to parse value for key "${e}"`),null}},t._setObjectInStorage=function(e,r){t.Storage.setItem(e,JSON.stringify(r))}},53705(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._typedJsonParse=void 0;let n=r(68024);t._typedJsonParse=function(e,t,r){try{let r=JSON.parse(e);if(r&&"object"==typeof r&&t in r)return r}catch(e){}return n.Log.error(`Failed to parse ${r}`),null}},90010(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._isTypeMatch=t._typeOf=void 0,t._typeOf=function(e){return Array.isArray(e)?"array":typeof e},t._isTypeMatch=function(e,t){let r=e=>Array.isArray(e)?"array":null===e?"null":typeof e;return r(e)===r(t)}},37047(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getUUID=void 0,t.getUUID=function(){if("u">typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Date().getTime(),t="u">typeof performance&&performance.now&&1e3*performance.now()||0,r="89ab"[Math.floor(4*Math.random())];return`xxxxxxxx-xxxx-4xxx-${r}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,r=>{let n=16*Math.random();return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),("x"===r?n:7&n|8).toString(16)})}},88873(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.UrlConfiguration=void 0;let n=r(83918),i=r(12610),o={[i.Endpoint._initialize]:"i",[i.Endpoint._rgstr]:"e",[i.Endpoint._download_config_specs]:"d"};t.UrlConfiguration=class{constructor(e,t,r,n){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=o[e],t&&(this.customUrl=t),!t&&r&&(this.customUrl=r.endsWith("/")?`${r}${e}`:`${r}/${e}`),n&&(this.fallbackUrls=n);const s=i.NetworkDefault[e];this.defaultUrl=`${s}/${e}`}getUrl(){var e;return null!=(e=this.customUrl)?e:this.defaultUrl}getChecksum(){var e;let t=(null!=(e=this.fallbackUrls)?e:[]).sort().join(",");return(0,n._DJB2)(this.customUrl+t)}}}
20,92701(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;let n=r(414),i="foreground",o="background",s=[],a=i,u=!1;t._isCurrentlyVisible=()=>a===i,t._isUnloading=()=>u,t._subscribeToVisiblityChanged=e=>{s.unshift(e)},t._notifyVisibilityChanged=e=>{e!==a&&(a=e,s.forEach(t=>t(e)))},(0,n._addWindowEventListenerSafe)("focus",()=>{u=!1,(0,t._notifyVisibilityChanged)(i)}),(0,n._addWindowEventListenerSafe)("blur",()=>(0,t._notifyVisibilityChanged)(o)),(0,n._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,t._notifyVisibilityChanged)("visible"===document.visibilityState?i:o)}),(0,n._addWindowEventListenerSafe)((0,n._getUnloadEvent)(),()=>{u=!0,(0,t._notifyVisibilityChanged)(o)})},36978(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=t.Log=t.EventLogger=t.Diagnostics=void 0,r(43509);let o=r(43509),s=r(30882);Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return s.Diagnostics}});let a=r(85434);Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return a.EventLogger}});let u=r(68024);Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return u.Log}});let c=r(46512),l=r(1638);Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return l.Storage}}),i(r(43509),t),i(r(94681),t),i(r(58683),t),i(r(85638),t),i(r(30882),t),i(r(54387),t),i(r(14358),t),i(r(43194),t),i(r(86913),t),i(r(83918),t),i(r(57061),t),i(r(68024),t),i(r(40843),t),i(r(12610),t),i(r(44703),t),i(r(82509),t),i(r(5025),t),i(r(414),t),i(r(10686),t),i(r(39839),t),i(r(56272),t),i(r(32626),t),i(r(84351),t),i(r(71180),t),i(r(12166),t),i(r(37253),t),i(r(46512),t),i(r(47754),t),i(r(68474),t),i(r(9851),t),i(r(99652),t),i(r(81570),t),i(r(1638),t),i(r(53705),t),i(r(90010),t),i(r(88873),t),i(r(37047),t),i(r(92701),t),i(r(51148),t),i(r(95747),t),Object.assign((0,o._getStatsigGlobal)(),{Log:u.Log,SDK_VERSION:c.SDK_VERSION})},65694(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._resolveDeltasResponse=void 0;let n=r(36978);function i(e,t){null==e||e.forEach(e=>{delete t[e]})}t._resolveDeltasResponse=function(e,t){var r,o,s;let a=(0,n._typedJsonParse)(t,"checksum","DeltasEvaluationResponse");if(!a)return{hadBadDeltaChecksum:!0};let u=(i((s=(r=e,o=a,Object.assign(Object.assign(Object.assign({},r),o),{feature_gates:Object.assign(Object.assign({},r.feature_gates),o.feature_gates),layer_configs:Object.assign(Object.assign({},r.layer_configs),o.layer_configs),dynamic_configs:Object.assign(Object.assign({},r.dynamic_configs),o.dynamic_configs)}))).deleted_gates,s.feature_gates),delete s.deleted_gates,i(s.deleted_configs,s.dynamic_configs),delete s.deleted_configs,i(s.deleted_layers,s.layer_configs),delete s.deleted_layers,s),c=(0,n._DJB2Object)({feature_gates:u.feature_gates,dynamic_configs:u.dynamic_configs,layer_configs:u.layer_configs},2);return c!==a.checksumV2?{hadBadDeltaChecksum:!0,badChecksum:c,badMergedConfigs:u,badFullResponse:a.deltas_full_response}:JSON.stringify(u)}},87677(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let n=r(36978),i=r(8748),o=r(37287);t.default=class{constructor(e,t){this._sdkKey=e,this._options=t,this._valuesForExternalUse=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._valuesForExternalUse=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._valuesForExternalUse}setValues(e,t){var r,s;if(!e)return!1;let a=(0,n._typedJsonParse)(e.data,"has_updates","EvaluationResponse");return null!=a&&(this._source=e.source,(null==a?void 0:a.has_updates)!==!0||(null!=(r=a.time)?r:0)<this._lcut||(this._valuesForExter
20nalUse=(0,n._typedJsonParse)(e.data,"has_updates","EvaluationResponse"),this._lcut=a.time,this._receivedAt=e.receivedAt,"init-v2"===a.response_format?this._values=new o.V2InitializeContainer(a):this._values=new i.V1InitializeContainer(a),this._bootstrapMetadata=this._extractBootstrapMetadata(e.source,a),e.source&&a.user&&this._setWarningState(t,a),n.SDKFlags.setFlags(this._sdkKey,null!=(s=a.sdk_flags)?s:{}),!0))}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(e){let t=this._values?this._values.getGate(e):null;return this._getDetailedStoreResult(t)}getConfig(e){let t=this._values?this._values.getConfig(e):null;return this._getDetailedStoreResult(t)}getConfigList(){return this._values?this._values.getConfigList():[]}getLayer(e){let t=this._values?this._values.getLayer(e):null;return this._getDetailedStoreResult(t)}getParamStore(e){let t=this._values?this._values.getParamStore(e):null;return this._getDetailedStoreResult(t)}getSource(){return this._source}getExposureMapping(){var e;return null==(e=this._values)?void 0:e.getExposureMapping()}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;let r={};return t.user&&(r.user=t.user),t.sdkInfo&&(r.generatorSDKInfo=t.sdkInfo),r.lcut=t.time,r}_getDetailedStoreResult(e){return{result:e,details:this._getDetails(null==e)}}_setWarningState(e,t){var r,i,o;let s=n.StableID.get(this._sdkKey);if((null==(r=e.customIDs)?void 0:r.stableID)!==s&&((null==(i=e.customIDs)?void 0:i.stableID)||s))return void this._warnings.add("StableIDMismatch");if("user"in t){let r=t.user,i=Object.assign(Object.assign({},e),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});(null==(o=this._options)?void 0:o.disableStableID)&&(i=Object.assign(Object.assign({},i),{customIDs:Object.assign(Object.assign({},i.customIDs),{stableID:void 0})}),r=Object.assign(Object.assign({},r),{customIDs:Object.assign(Object.assign({},r.customIDs),{stableID:void 0})})),(0,n._getFullUserHash)(i)!==(0,n._getFullUserHash)(r)&&this._warnings.add("PartialUserMatch")}}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};let e={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,r;let n=this.getCurrentSourceDetails(),i=n.reason,o=null!=(t=n.warnings)?t:[];"Bootstrap"===this._source&&o.length>0&&(i+=o[0]),"Uninitialized"!==i&&"NoValues"!==i&&(i=`${i}:${e?"Unrecognized":"Recognized"}`);let s="Bootstrap"===this._source&&null!=(r=this._bootstrapMetadata)?r:void 0;return s&&(n.bootstrapMetadata=s),Object.assign(Object.assign({},n),{reason:i})}}},82944(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let i=r(36978),o=r(65694);class s extends i.NetworkCore{constructor(e,t){super(e,t);const r=null==e?void 0:e.networkConfig;this._option=e,this._initializeUrlConfig=new i.UrlConfiguration(i.Endpoint._initialize,null==r?void 0:r.initializeUrl,null==r?void 0:r.api,null==r?void 0:r.initializeFallbackUrls)}fetchEvaluations(e,t,r,o,s){return n(this,void 0,void 0,function*(){var n,a,u,c,l,h;let p=t?(0,i._typedJsonParse)(t,"has_updates","InitializeResponse"):null,d={user:o,hash:null!=(u=null==(a=null==(n=this._option)?void 0:n.networkConfig)?void 0:a.initializeHashAlgorithm)?u:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==p?void 0:p.has_updates){let e=(null==p?void 0:p.hash_used)!==(null!=(h=null==(l=null==(c=this._option)?void 0:c.networkConfig)?void 0:l.initializeHashAlgorithm)?h:"djb2");d=Object.assign(Object.assign({},d),{sinceTime:s&&!e?p.time:0,previousDerivedFields:"derived_fields"in p&&s?p.derived_fields:{},deltasResponseRequested:!0,full_checksum:p.full_checksum,partialUserMatchSinceTime:e?0:p.time})}return this._fetchEvaluations(e,p,d,r)})}_fetchEvaluations(e,t,r,i){return n(this,void 0,void 0,function*(){var n,s;let a=yield this.post({sdkKey:e,urlConfig:this._initializeUrlConfig,data:r,retries:2,isStatsigEncodable:!0,priority:i});if((null==a?void 0:a.code)===204)return'{"has_updates": false}';if((null==a?void 0:a.code)!==200)return null!=(n=null==a?void 0:a.body)?n:null;if((null==t?void 0:t.has_updates)!==!0||(null==(s=a.body)?void 0:s.includes('"is_delta":true'))!==!0||!0!==r.deltasResponseRequested)return a.body;let u=(0,o._resolveDeltasResponse)(t,a.body);return"string"==typeof u?u:this._fetchEvaluations(e,t,Object.assign(Object.assign(Object.assign({},r),u),{deltasResponseRequested:!1}),i)})}}t.default=s}
20,79999(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._makeParamStoreGetter=void 0;let n=r(36978),i={disableExposureLog:!0};function o(e){return null==e||!1===e.disableExposureLog}function s(e,t){return null!=t&&!(0,n._isTypeMatch)(e,t)}t._makeParamStoreGetter=function(e,t,r){return(a,u)=>{if(null==t)return u;let c=t[a];if(null==c||null!=u&&(0,n._typeOf)(u)!==c.param_type)return u;switch(c.ref_type){case"static":return c.value;case"gate":return e.getFeatureGate(c.gate_name,o(r)?void 0:i).value?c.pass_value:c.fail_value;case"dynamic_config":let l;return s(l=e.getDynamicConfig(c.config_name,o(r)?void 0:i).get(c.param_name),u)?u:l;case"experiment":let h;return s(h=e.getExperiment(c.experiment_name,o(r)?void 0:i).get(c.param_name),u)?u:h;case"layer":let p;return s(p=e.getLayer(c.layer_name,o(r)?void 0:i).get(c.param_name),u)?u:p;default:return u}}}},7686(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let i=r(36978),o=r(87677),s=r(82944),a=r(79999),u=r(42451);class c extends i.StatsigClientBase{static instance(e){let t=(0,i._getStatsigGlobal)().instance(e);return t instanceof c?t:(i.Log.warn((0,i._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new c(null!=e?e:"",{}))}constructor(e,t,r=null){var n,a;i.SDKType._setClientType(e,"javascript-client");const c=new s.default(r,e=>{this.$emt(e)});for(const s of(super(e,null!=(n=null==r?void 0:r.dataAdapter)?n:new u.StatsigEvaluationsDataAdapter,c,r),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(i.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(i.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(i.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(i.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(i.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(i.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new o.default(e,null!=r?r:null),this._network=c,this._user=this._configureUser(t,r),this._sdkInstanceID=(0,i.getUUID)(),this._contextHandle=new i.PrecomputedEvaluationsContextHandle(e,()=>this._options,()=>this._errorBoundary,()=>this._store.getValues(),()=>this._user,()=>this._sdkInstanceID),null!=(a=null==r?void 0:r.plugins)?a:[]))s.bind(this)}initializeSync(e){var t;return"Uninitialized"!==this.loadingStatus?(0,i.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!=(t=this._store.getWarnings())?t:[]]):(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(e){return n(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(e)),this._initializePromise})}updateUserSync(e,t){let r=performance.now();try{return this._updateUserSyncImpl(e,t,r)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,r)}}_updateUserSyncImpl(e,t,r){var n;let o=[...null!=(n=this._store.getWarnings())?n:[]];this._resetForUser(e);let s=this.dataAdapter.getDataSync(this._user);null==s&&o.push("NoCachedValues"),this._store.setValues(s,this._user),this._finalizeUpdate(s);let a=null==t?void 0:t.disableBackgroundCacheRefresh;return!0===a||null==a&&(null==s?void 0:s.source)==="Bootstrap"||this._runPostUpdate(null!=s?s:null,this._user),(0,i.createUpdateDetails)(!0,this._store.getSource(),performance.now()-r,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),o)}updateUserAsync(e,t){return n(this,void 0,void 0,function*(){let r=performance.now();try{return yield this._updateUserAsyncImpl(e,t)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,r)}})}_updateUserAsyncImpl(e,t){return n(this,void 0,void 0,function*(){this._resetForUser(e);let r=this._user;i.Diagnostics._markInitOverallStart(this._sdkKey);let n=this.dataAdapter.getDataSync(r);if(this._store.setValues(n,this._user),this._setStatus("Loading",n),n=yield this.dataAdapter.getDataAsync(n,r,t),r!==this._user)return(0,i.createUpdateDetails)(!1,this._store.getSource(),-1,Error("User changed during update"),this._network.getLastUsedInitUrlAndReset()
vendor: 5,093 bytes, line 20
20);let o=!1;null!=n&&(i.Diagnostics._markInitProcessStart(this._sdkKey),o=this._store.setValues(n,this._user),i.Diagnostics._markInitProcessEnd(this._sdkKey,{success:o})),this._finalizeUpdate(n),o||(this._errorBoundary.attachErrorIfNoneExists(i.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),i.Diagnostics._markInitOverallEnd(this._sdkKey,o,this._store.getCurrentSourceDetails());let s=i.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,i.createUpdateDetails)(o,this._store.getSource(),s,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){let e=(0,i._cloneObject)("StatsigUser",this._user);return null==e&&(i.Log.error("Failed to clone user"),e={}),{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:e,errorBoundary:this._errorBoundary,session:i.StatsigSession.get(this._sdkKey),stableID:i.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}getContextHandle(){return this._contextHandle}checkGate(e,t){return this.getFeatureGate(e,t).value}logEvent(e,t,r){let n="string"==typeof e?{eventName:e,value:t,metadata:r}:e;this.$emt({name:"log_event_called",event:n}),this._logger.enqueue(Object.assign(Object.assign({},n),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(e){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:e}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(e){return n(this,void 0,void 0,function*(){return i.Storage.isReady()||(yield i.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,e)})}_createErrorUpdateDetails(e,t){var r;return(0,i.createUpdateDetails)(!1,this._store.getSource(),performance.now()-t,e,null,[...null!=(r=this._store.getWarnings())?r:[]])}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,t){this.dataAdapter.getDataAsync(e,t,{priority:"low"}).catch(e=>{i.Log.error("An error occurred after update.",e)})}_resetForUser(e){this._logger.reset(),this._store.reset(),this._user=this._configureUser(e,this._options)}_configureUser(e,t){var r,n,o;let s=(0,i._normalizeUser)(e,t),a=null==(r=s.customIDs)?void 0:r.stableID;if(a){let e=null==(o=(n=this.storageProvider).isReadyResolver)?void 0:o.call(n);e?e.then(()=>i.StableID.setOverride(a,this._sdkKey),()=>i.StableID.setOverride(a,this._sdkKey)):i.StableID.setOverride(a,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(s.analyticsOnlyMetadata=Object.assign(Object.assign({},s.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),s}_getFeatureGateImpl(e,t){var r,n;let{result:o,details:s}=this._store.getGate(e);this._checkUserHasIdForEvaluation(null==o?void 0:o.id_type,e,"Gate"),this._checkInitializationStatus(s.reason);let a=(0,i._makeFeatureGate)(e,s,o),u=null==(n=null==(r=this.overrideAdapter)?void 0:r.getGateOverride)?void 0:n.call(r,a,this._user,t),c=null!=u?u:a;return this._enqueueExposure(e,(0,i._createGateExposure)(this._user,c,this._store.getExposureMapping()),t),this.$emt({name:"gate_evaluation",gate:c}),c}_getDynamicConfigImpl(e,t){var r,n;let{result:o,details:s}=this._store.getConfig(e);this._checkUserHasIdForEvaluation(null==o?void 0:o.id_type,e,"Dynamic config"),this._checkInitializationStatus(s.reason);let a=(0,i._makeDynamicConfig)(e,s,o),u=null==(n=null==(r=this.overrideAdapter)?void 0:r.getDynamicConfigOverride)?void 0:n.call(r,a,this._user,t),c=null!=u?u:a;return this._enqueueExposure(e,(0,i._createConfigExposure)(this._user,c,this._store.getExposureMapping()),t),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:c}),c}_getExperimentImpl(e,t){var r,n,o,s;let{result:a,details:u}=this._store.getConfig(e);this._checkUserHasIdForEvaluation(null==a?void 0:a.id_type,e,"Experiment"),this._checkInitializationStatus(u.reason);let c=(0,i._makeExperiment)(e,u,a);null!=c.__evaluation&&(c.__evaluation.secondary_exposures=(0,i._mapExposures)(null!=(n=null==(r=c.__evaluation)?void 0:r.secondary_exposures)?n:[],this._store.getExposureMapping()));let l=null==(s=null==(o=this.overrideAdapter)?void 0:o.getExperimentOverride)?void 0:s.call(o,c,this._user,t),h=null!=l?l:c;return this._enqueueExposure(e,(0,i._createConfigExposure)(this._user,h,this._store.getExposureMapping()),t),this.$emt({name:"experiment_evaluation",experiment:h}),h}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(e,t){var r,n,o;let{result:s,details:a}=this._store.getLayer(e),u=(0,i._makeLayer)(e,a,s),c=null==(n=null==(r=this.overrideAdapter)?void 0:r.getLayerOverride)?void 0:n.call(r,u,this._user,t);(null==t?void 0:t.disableExposureLog)&&this._logger.incrementNonExposureCount(e);let l=(0,i._mergeOverride)(u,c,null!=(o=null==c?void 0:c.__value)?o:u.__value,r=>{null!=t&&t.disableExposureLog||this._enqueueExposure(e,(0,i._createLayerParameterExposure)(this._user,l,r,this._store.getExposureMapping()),t)}
20);return this.$emt({name:"layer_evaluation",layer:l}),l}_getParameterStoreImpl(e,t){var r,n;let{result:i,details:o}=this._store.getParamStore(e);this._logger.incrementNonExposureCount(e);let s={name:e,details:o,__configuration:i,get:(0,a._makeParamStoreGetter)(this,i,t)},u=null==(n=null==(r=this.overrideAdapter)?void 0:r.getParamStoreOverride)?void 0:n.call(r,s,t);return null!=u&&(s.__configuration=u.config,s.details=u.details,s.get=(0,a._makeParamStoreGetter)(this,u.config,t)),s}_checkUserHasIdForEvaluation(e,t,r){e&&((0,i._getUnitIDFromUser)(this._user,e)||i.Log.warn(`The user does not have the required id_type "${e}" for ${r} "${t}"`))}_checkInitializationStatus(e){("Uninitialized"===e||e.startsWith("Loading"))&&i.Log.warn(`SDK initialization has not completed. Reason: ${e}`)}}t.default=c},42451(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEvaluationsDataAdapter=void 0;let i=r(36978),o=r(82944);class s extends i.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t,r){super.attach(e,t,r),null!==r&&r instanceof o.default?this._network=r:this._network=new o.default(null!=t?t:{})}getDataAsync(e,t,r){return this._getDataAsyncImpl(e,(0,i._normalizeUser)(t,this._options),r)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){let t=(0,i._typedJsonParse)(e,"has_updates","data");t&&"user"in t?super.setData(e,t.user):i.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(e,t,r,i){return n(this,void 0,void 0,function*(){var n;let o=yield null==(n=this._network)?void 0:n.fetchEvaluations(this._getSdkKey(),e,null==r?void 0:r.priority,t,i);return null!=o?o:null})}_getCacheKey(e){var t;let r=(0,i._getStorageKey)(this._getSdkKey(),e,null==(t=this._options)?void 0:t.customUserCacheKeyFunc);return`${i.DataAdapterCachePrefix}.${this._cacheSuffix}.${r}`}_isCachedResultValidFor204(e,t){return null!=e.fullUserHash&&e.fullUserHash===(0,i._getFullUserHash)(t)}}t.StatsigEvaluationsDataAdapter=s},8748(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.V1InitializeContainer=void 0;let n=r(36978);t.V1InitializeContainer=class{constructor(e){this._values=e}getGate(e){return this._getResultFromLookup(this._values.feature_gates,e)}getConfig(e){return this._getResultFromLookup(this._values.dynamic_configs,e)}getLayer(e){return this._getResultFromLookup(this._values.layer_configs,e)}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(e,t){var r,i;return e&&null!=(i=null!=(r=e[t])?r:e[(0,n._DJB2)(t)])?i:null}}},37287(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.V2InitializeContainer=void 0;let n=r(36978);t.V2InitializeContainer=class{constructor(e){this._values=e}getGate(e){var t,r,n;let i=this._getResultFromLookup(this._values.feature_gates,e);return i?{name:e,value:!0===i.v,rule_id:null!=(t=i.r)?t:"default",secondary_exposures:null!=(r=i.s)?r:[],id_type:null!=(n=i.i)?n:""}:null}getConfig(e){var t,r,n,i;let o=this._getResultFromLookup(this._values.dynamic_configs,e);return o?{name:e,value:null!=(t=this._values.values[o.v])?t:{},rule_id:o.r,secondary_exposures:null!=(r=o.s)?r:[],id_type:null!=(n=o.i)?n:"",is_user_in_experiment:!0===o.ue,passed:!0===o.p,group_name:null!=(i=o.gn)?i:void 0,is_experiment_active:!0===o.ea,group:o.r,is_device_based:"stableID"===o.i}:null}getLayer(e){var t,r,n,i,o,s;let a=this._getResultFromLookup(this._values.layer_configs,e);return a?{name:e,value:null!=(t=this._values.values[a.v])?t:{},rule_id:a.r,secondary_exposures:null!=(r=a.s)?r:[],is_user_in_experiment:!0===a.ue,group_name:null!=(n=a.gn)?n:void 0,is_experiment_active:!0===a.ea,group:a.r,is_device_based:"stableID"===a.i,allocated_experiment_name:null!=(i=a.ae)?i:"",explicit_parameters:null!=(o=a.ep)?o:[],undelegated_secondary_exposures:null!=(s=a.us)?s:[],parameter_rule_ids:a.pr}:null}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(e,t){var r,i;return e&&null!=(i=null!=(r=e[t])?r:e[(0,n._DJB2)(t)])?i:null}}},5138(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
20(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClient=void 0;let o=r(36978),s=r(7686);t.StatsigClient=s.default,i(r(36978),t),t.default=Object.assign((0,o._getStatsigGlobal)(),{StatsigClient:s.default})},85255(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.isNoopClient=t.NoopEvaluationsClient=void 0;let n=r(36978),i={success:!1,error:Error("NoClient"),duration:0,source:"Uninitialized",sourceUrl:null},o=()=>{},s=()=>i,a=()=>Promise.resolve(),u=()=>Promise.resolve(i),c={reason:"Error:NoClient"},l=e=>(...t)=>{let r="string"==typeof t[0]?t[0]:t[1];switch(e){case"gate":return(0,n._makeFeatureGate)(r,c,null);case"config":return(0,n._makeDynamicConfig)(r,c,null);case"layer":return(0,n._makeLayer)(r,c,null);case"param_store":return{name:r}}},h={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:"",lastPersistedAt:0,storageKey:""},stableID:"",storageProvider:n.Storage,sdkInstanceID:""},p=new n.PrecomputedEvaluationsContextHandle("",()=>({}),()=>({}),()=>null,()=>({userID:""}),()=>"");t.NoopEvaluationsClient={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:s,initializeAsync:u,shutdown:a,flush:a,updateRuntimeOptions:o,updateUserSync:s,updateUserAsync:u,getContext:()=>Object.assign({},h),getContextHandle:()=>p,checkGate:()=>!1,getFeatureGate:l("gate"),getDynamicConfig:l("config"),getExperiment:l("config"),getLayer:l("layer"),getParameterStore:l("param_store"),logEvent:o,on:o,off:o,$on:o,$emt:o,dataAdapter:{attach:o,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:o,setDataLegacy:o,prefetchData:a}},t.isNoopClient=function(e){return"isNoop"in e}},79713(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let n=r(96540),i=r(85255);t.default=(0,n.createContext)({renderVersion:0,client:i.NoopEvaluationsClient,isLoading:!0})},80905(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigProvider=void 0;let n=r(74848),i=r(96540),o=r(36978),s=r(79713),a=r(46217);function u(e){let[t,r]=(0,i.useState)(0),o=(0,a.useClientAsyncInit)(e.sdkKey,e.user,e.options).client,[u,c]=(0,i.useState)(!h(o));l(o,r,c);let p=(0,i.useMemo)(()=>({renderVersion:t,client:o,isLoading:u}),[t,o,u]);return(0,n.jsx)(s.default.Provider,{value:p,children:null!=e.loadingComponent&&p.isLoading?e.loadingComponent:e.children})}function c(e){let[t,r]=(0,i.useState)(0),o=e.client,[a,u]=(0,i.useState)(!h(o));l(o,r,u);let c=(0,i.useMemo)(()=>({renderVersion:t,client:o,isLoading:a}),[t,o,a]);return(0,n.jsx)(s.default.Provider,{value:c,children:null!=e.loadingComponent&&c.isLoading?e.loadingComponent:e.children})}function l(e,t,r){(0,i.useEffect)(()=>{let n=()=>{t(e=>e+1),r(!h(e))};return o.SDKType._setBindingType("react"),e.$on("values_updated",n),()=>{e.flush().catch(e=>o.Log.error("An error occurred during flush",e)),e.off("values_updated",n)}},[e,t])}function h(e){return"isNoop"in e||"Ready"===e.loadingStatus}t.StatsigProvider=function(e){return"client"in e?(("sdkKey"in e||"user"in e)&&o.Log.warn("Both client and configuration props (sdkKey, user) were provided to StatsigProvider. The client prop will be used and the configuration props will be ignored."),(0,n.jsx)(c,Object.assign({},e))):(0,n.jsx)(u,Object.assign({},e))}},38287(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=t.useStatsigInternalClientFactoryBootstrap=t.useStatsigInternalClientFactoryAsync=t.useStatsigClient=t.useParameterStore=t.useLayer=t.useGateValue=t.useFeatureGate=t.useExperiment=t.useDynamicConfig=t.useClientBootstrapInit=t.useClientAsyncInit=t.StatsigProvider=t.StatsigContext=void 0;
20let o=r(36978),s=r(79713);t.StatsigContext=s.default;let a=r(80905);Object.defineProperty(t,"StatsigProvider",{enumerable:!0,get:function(){return a.StatsigProvider}});let u=r(46217);Object.defineProperty(t,"useClientAsyncInit",{enumerable:!0,get:function(){return u.useClientAsyncInit}});let c=r(24579);Object.defineProperty(t,"useClientBootstrapInit",{enumerable:!0,get:function(){return c.useClientBootstrapInit}});let l=r(86397);t.useDynamicConfig=l.default;let h=r(86427);t.useExperiment=h.default;let p=r(1531);t.useFeatureGate=p.default;let d=r(93594);t.useGateValue=d.default;let f=r(33983);t.useLayer=f.default;let g=r(74732);t.useParameterStore=g.default;let m=r(56050);Object.defineProperty(t,"useStatsigClient",{enumerable:!0,get:function(){return m.useStatsigClient}});let v=r(1589);Object.defineProperty(t,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return v.useStatsigInternalClientFactoryAsync}});let y=r(57147);Object.defineProperty(t,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return y.useStatsigInternalClientFactoryBootstrap}});let _=r(96526);Object.defineProperty(t,"useStatsigUser",{enumerable:!0,get:function(){return _.useStatsigUser}}),i(r(5138),t),Object.assign((0,o._getStatsigGlobal)(),{StatsigContext:s.default,StatsigProvider:a.StatsigProvider,useClientAsyncInit:u.useClientAsyncInit,useClientBootstrapInit:c.useClientBootstrapInit,useDynamicConfig:l.default,useExperiment:h.default,useFeatureGate:p.default,useGateValue:d.default,useLayer:f.default,useParameterStore:g.default,useStatsigClient:m.useStatsigClient,useStatsigInternalClientFactoryAsync:v.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:y.useStatsigInternalClientFactoryBootstrap,useStatsigUser:_.useStatsigUser})},46217(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useClientAsyncInit=void 0;let n=r(5138),i=r(1589);t.useClientAsyncInit=function(e,t,r=null){return(0,i.useStatsigInternalClientFactoryAsync)(e=>new n.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,statsigOptions:r})}},24579(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useClientBootstrapInit=void 0;let n=r(5138),i=r(57147);t.useClientBootstrapInit=function(e,t,r,o=null,s){return(0,i.useStatsigInternalClientFactoryBootstrap)(e=>new n.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,initialValues:r,statsigOptions:o,useLegacyFormat:s})}},86397(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let n=r(96540),i=r(36978),o=r(85255),s=r(79713);t.default=function(e,t){let{client:r,renderVersion:a}=(0,n.useContext)(s.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${e}'.`),o.NoopEvaluationsClient.getDynamicConfig(e,t)):r.getDynamicConfig(e,t),[e,r,a,...t?Object.values(t):[]])}},86427(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let n=r(96540),i=r(36978),o=r(85255),s=r(79713);t.default=function(e,t){let{client:r,renderVersion:a}=(0,n.useContext)(s.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${e}'.`),o.NoopEvaluationsClient.getExperiment(e,t)):r.getExperiment(e,t),[e,r,a,...t?Object.values(t):[]])}},1531(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let n=r(96540),i=r(36978),o=r(85255),s=r(79713);t.default=function(e,t){let{client:r,renderVersion:a}=(0,n.useContext)(s.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${e}'.`),o.NoopEvaluationsClient.getFeatureGate(e,t)):r.getFeatureGate(e,t),[e,r,a,...t?Object.values(t):[]])}},93594(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let n=r(96540),i=r(36978),o=r(85255),s=r(79713);t.default=function(e,t){let{client:r,renderVersion:a}=(0,n.useContext)(s.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${e}'.`),o.NoopEvaluationsClient.checkGate(e,t)):r.checkGate(e,t),[e,r,a,...t?Object.values(t):[]])}}
20,33983(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let n=r(96540),i=r(36978),o=r(85255),s=r(79713);t.default=function(e,t){let{client:r,renderVersion:a}=(0,n.useContext)(s.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${e}'.`),o.NoopEvaluationsClient.getLayer(e,t)):r.getLayer(e,t),[e,r,a,...t?Object.values(t):[]])}},74732(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let n=r(96540),i=r(36978),o=r(85255),s=r(79713);t.default=function(e,t){let{client:r,renderVersion:a}=(0,n.useContext)(s.default);return(0,n.useMemo)(()=>(0,o.isNoopClient)(r)?(i.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${e}'.`),o.NoopEvaluationsClient.getParameterStore(e,t)):r.getParameterStore(e,t),[e,r,a,...t?Object.values(t):[]])}},56050(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigClient=void 0;let n=r(96540),i=r(36978),o=r(85255),s=r(79713);t.useStatsigClient=function(){let{client:e,renderVersion:t,isLoading:r}=(0,n.useContext)(s.default),a=(0,n.useMemo)(()=>(0,o.isNoopClient)(e)?(i.Log.warn("Attempting to retrieve a StatsigClient but none was set."),o.NoopEvaluationsClient):e,[e,t]),u=[a,t],c=(0,n.useCallback)((e,t)=>a.checkGate(e,t),u),l=(0,n.useCallback)((e,t)=>a.getFeatureGate(e,t),u),h=(0,n.useCallback)((e,t)=>a.getDynamicConfig(e,t),u),p=(0,n.useCallback)((e,t)=>a.getExperiment(e,t),u),d=(0,n.useCallback)((e,t)=>a.getLayer(e,t),u),f=(0,n.useCallback)((e,t)=>a.getParameterStore(e,t),u),g=(0,n.useCallback)((e,t,r)=>"string"==typeof e?a.logEvent(e,t,r):a.logEvent(e),u);return(0,n.useMemo)(()=>({client:a,checkGate:c,getFeatureGate:l,getDynamicConfig:h,getExperiment:p,getLayer:d,getParameterStore:f,logEvent:g,isLoading:r}),[a,c,l,h,p,d,f,g,r])}},1589(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryAsync=void 0;let n=r(96540),i=r(36978);t.useStatsigInternalClientFactoryAsync=function(e,t){let r=(0,n.useMemo)(()=>{var r;return null!=(r=(0,i._getInstance)(t.sdkKey))?r:e(t)},[]),[o,s]=(0,n.useState)("Ready"!==r.loadingStatus);return(0,n.useMemo)(()=>{"Ready"!==r.loadingStatus&&r.initializeAsync().catch(i.Log.error).finally(()=>s(!1))},[]),{client:r,isLoading:o}}},57147(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryBootstrap=void 0;let n=r(96540),i=r(36978);t.useStatsigInternalClientFactoryBootstrap=function(e,t){let r=(0,n.useRef)((0,i._getInstance)(t.sdkKey));return(0,n.useMemo)(()=>{if(r.current)return r.current;let n=e(t);return r.current=n,t.useLegacyFormat?n.dataAdapter.setDataLegacy(t.initialValues,t.initialUser):n.dataAdapter.setData(t.initialValues),n.initializeSync(),n},[])}},96526(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=void 0;let n=r(96540),i=r(79713),o=r(56050);function s(e){return e.getContextHandle().user}t.useStatsigUser=function(){let{client:e}=(0,o.useStatsigClient)(),{renderVersion:t}=(0,n.useContext)(i.default);return{user:(0,n.useMemo)(()=>s(e),[e,t]),updateUserSync:(0,n.useCallback)(t=>("function"==typeof t&&(t=t(s(e))),e.updateUserSync(t)),[e]),updateUserAsync:(0,n.useCallback)(t=>("function"==typeof t&&(t=t(s(e))),e.updateUserAsync(t)),[e])}}}}]); 21//# debugId=4c7f0d51-cf89-54e8-b696-71fa93b8cf96
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.