1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["dashboard-static/esm-BcpJpxIP.js","dashboard-static/tslib.es6-Cy2_4XOa.js","dashboard-static/analytics-connector.esm-DL1xnte_.js","dashboard-static/preload-helper-DqBAHu9r.js","dashboard-static/global-scope-tkgeBEQb.js","dashboard-static/build-BsU_euxe.js"])))=>i.map(i=>d[i]); 2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`7a58fa93a7a0f4bfe4323bd10ecc06c7f61b8211`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`6bc4837b-44a7-47f9-8fec-f10b40e7c991`,e._sentryDebugIdIdentifier=`sentry-dbid-6bc4837b-44a7-47f9-8fec-f10b40e7c991`)}catch{}})();import{r as e,s as t}from"./rolldown-runtime-BhwcDRyc.js";import{a as n,c as r,d as i,l as a,o,s,t as c,u as l}from"./tslib.es6-Cy2_4XOa.js";import{t as u}from"./analytics-connector.esm-DL1xnte_.js";import{t as d}from"./ua-parser-DDk4fJZQ.js";import{t as f}from"./preload-helper-DqBAHu9r.js";var p;(function(e){e.SET=`$set`,e.SET_ONCE=`$setOnce`,e.ADD=`$add`,e.APPEND=`$append`,e.PREPEND=`$prepend`,e.REMOVE=`$remove`,e.PREINSERT=`$preInsert`,e.POSTINSERT=`$postInsert`,e.UNSET=`$unset`,e.CLEAR_ALL=`$clearAll`})(p||={});var m;(function(e){e.REVENUE_PRODUCT_ID=`$productId`,e.REVENUE_QUANTITY=`$quantity`,e.REVENUE_PRICE=`$price`,e.REVENUE_TYPE=`$revenueType`,e.REVENUE_CURRENCY=`$currency`,e.REVENUE=`$revenue`})(m||={});var h;(function(e){e.IDENTIFY=`$identify`,e.GROUP_IDENTIFY=`$groupidentify`,e.REVENUE=`revenue_amount`})(h||={});var g;(function(e){e[e.None=0]=`None`,e[e.Error=1]=`Error`,e[e.Warn=2]=`Warn`,e[e.Verbose=3]=`Verbose`,e[e.Debug=4]=`Debug`})(g||={});var _;(function(e){e.BEFORE=`before`,e.ENRICHMENT=`enrichment`,e.DESTINATION=`destination`})(_||={});var v;(function(e){e.US=`US`,e.EU=`EU`,e.STAGING=`STAGING`})(v||={});var y;(function(e){e.Unknown=`unknown`,e.Skipped=`skipped`,e.Success=`success`,e.RateLimit=`rate_limit`,e.PayloadTooLarge=`payload_too_large`,e.Invalid=`invalid`,e.Failed=`failed`,e.Timeout=`Timeout`,e.SystemError=`SystemError`})(y||={});var b;(function(e){e.XHR=`xhr`,e.SendBeacon=`beacon`,e.Fetch=`fetch`})(b||={});var x=e({IdentifyOperation:()=>p,LogLevel:()=>g,PluginType:()=>_,RevenueProperty:()=>m,ServerZone:()=>v,SpecialEventType:()=>h,Status:()=>y,TransportType:()=>b}),S=`AMP_unsent`,C=`https://api2.amplitude.com/2/httpapi`,w=`https://api.eu.amplitude.com/2/httpapi`,ee=`https://api2.amplitude.com/batch`,te=`https://api.eu.amplitude.com/batch`,ne=1e3,re=function(e){if(Object.keys(e).length>ne)return!1;for(var t in e){var n=e[t];if(!ie(t,n))return!1}return!0},ie=function(e,t){var n,r;if(typeof e!=`string`)return!1;if(Array.isArray(t)){var a=!0;try{for(var o=i(t),s=o.next();!s.done;s=o.next()){var c=s.value;if(Array.isArray(c))return!1;if(typeof c==`object`)a&&=re(c);else if(![`number`,`string`].includes(typeof c))return!1;if(!a)return!1}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(t==null)return!1;else if(typeof t==`object`)return re(t);else if(![`number`,`string`,`boolean`].includes(typeof t))return!1;return!0},T=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return c({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(p.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(p.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(p.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(p.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(p.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(p.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(p.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(p.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(p.UNSET,e,`-`),this},e.prototype.clearAll=function(){return this._properties={},this._properties[p.CLEAR_ALL]=`-`,this}
2,e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return r===void 0&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return this._properties[p.CLEAR_ALL]!==void 0||this._propertySet.has(t)?!1:e===p.ADD?typeof n==`number`:e!==p.UNSET&&e!==p.REMOVE?ie(t,n):!0},e}(),ae=function(e,t,n){return c(c(c({},typeof e==`string`?{event_type:e}:e),n),t&&{event_properties:t})},oe=function(e,t){return c(c({},t),{event_type:h.IDENTIFY,user_properties:e.getUserProperties()})},se=function(e,t,n,r){var i;return c(c({},r),{event_type:h.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(i={},i[e]=t,i)})},ce=function(e,t,n){var r,i=new T;return i.set(e,t),c(c({},n),{event_type:h.IDENTIFY,user_properties:i.getUserProperties(),groups:(r={},r[e]=t,r)})},le=function(e,t){return c(c({},t),{event_type:h.REVENUE,event_properties:e.getEventProperties()})},E=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=y.Unknown),{event:e,code:t,message:n}},ue=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){return n(this,void 0,void 0,function(){return s(this,function(n){switch(n.label){case 0:return[4,e.setup(t,this.client)];case 1:return n.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){return n(this,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return n=this.plugins.findIndex(function(t){return t.name===e}),n===-1?(t.loggerProvider.warn(`Plugin with name ${e} does not exist, skipping deregistration`),[2]):(r=this.plugins[n],this.plugins.splice(n,1),[4,r.teardown?.call(r)]);case 1:return i.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){return e.teardown?.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return n(this,void 0,void 0,function(){var t,n,a,o,l,u,d,f,p,m,h,g,v,f,p,y,b,x,S,C,w,ee;return s(this,function(s){switch(s.label){case 0:if(!e)return[2];t=r(e,1),n=t[0],a=r(e,2),o=a[1],l=this.plugins.filter(function(e){return e.type===_.BEFORE}),s.label=1;case 1:s.trys.push([1,6,7,8]),u=i(l),d=u.next(),s.label=2;case 2:return d.done?[3,5]:(f=d.value,[4,f.execute(c({},n))]);case 3:if(p=s.sent(),p===null)return o({event:n,code:0,message:``}),[2];n=p,s.label=4;case 4:return d=u.next(),[3,2];case 5:return[3,8];case 6:return m=s.sent(),S={error:m},[3,8];case 7:try{d&&!d.done&&(C=u.return)&&C.call(u)}finally{if(S)throw S.error}return[7];case 8:h=this.plugins.filter(function(e){return e.type===_.ENRICHMENT}),s.label=9;case 9:s.trys.push([9,14,15,16]),g=i(h),v=g.next(),s.label=10;case 10:return v.done?[3,13]:(f=v.value,[4,f.execute(c({},n))]);case 11:if(p=s.sent(),p===null)return o({event:n,code:0,message:``}),[2];n=p,s.label=12;case 12:return v=g.next(),[3,10];case 13:return[3,16];case 14:return y=s.sent(),w={error:y},[3,16];case 15:try{v&&!v.done&&(ee=g.return)&&ee.call(g)}finally{if(w)throw w.error}return[7];case 16:return b=this.plugins.filter(function(e){return e.type===_.DESTINATION}),x=b.map(function(e){var t=c({},n);return e.execute(t).catch(function(e){return E(t,0,String(e))})}),Promise.all(x).then(function(e){var t=r(e,1)[0];o(t)}),[2]}})})},e.prototype.flush=function(){return n(this,void 0,void 0,function(){var e,t,n,r=this;return s(this,function(i){switch(i.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return r.apply(e)}))];case 1:return i.sent(),t=this.plugins.filter(function(e){return e.type===_.DESTINATION}),n=t.map(function(e){return e.flush&&e.flush()}),[4,Promise.all(n)];case 2:return i.sent(),[2]}})})},e}(),de=`Event tracked successfully`,fe=`Unexpected error occurred`,pe=`Event rejected due to exceeded retry count`,me=`Event skipped due to optOut config`,he=`Event rejected due to missing API key`,ge=`Client not initialized`,D=function(e){return{promise:e||Promise.resolve()}},_e=function(){function e(e){e===void 0&&(e=`$default`),this.initializing=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new ue(this),this.name=e}return e.prototype._init=function(e){return n(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions(`q`)];case 1:return t.sent(),[2]}})})},e.prototype.runQueuedFunctions=function(e){return n(this,void 0,void 0,function(){var t,n,r,a,o,c,l;return s(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,6,7,8]),n=i(t),r=n.next(),s.label=2;case 2:return r.done?[3,5]:(a=r.value,[4,a()]);case 3:s.sent(),s.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return o=s.sent(),c={error:o},[3,8];case 7:try{r&&!r.done&&(l=n.return)&&l.call(n)}finally{if(c)throw c.error}
2return[7];case 8:return[2]}})})},e.prototype.track=function(e,t,n){var r=ae(e,t,n);return D(this.dispatch(r))},e.prototype.identify=function(e,t){var n=oe(e,t);return D(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=se(e,t,n,r);return D(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=ce(e,t,n);return D(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=le(e,t);return D(this.dispatch(n))},e.prototype.add=function(e){return this.config?D(this.timeline.register(e,this.config)):(this.q.push(this.add.bind(this,e)),D())},e.prototype.remove=function(e){return this.config?D(this.timeline.deregister(e,this.config)):(this.q.push(this.remove.bind(this,e)),D())},e.prototype.dispatchWithCallback=function(e,t){if(!this.config)return t(E(e,0,ge));this.process(e).then(t)},e.prototype.dispatch=function(e){return n(this,void 0,void 0,function(){var t=this;return s(this,function(n){return this.config?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.process=function(e){return n(this,void 0,void 0,function(){var t,n,r,t;return s(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this.config.optOut?[2,E(e,0,me)]:[4,this.timeline.push(e)];case 1:return t=i.sent(),t.code===200?this.config.loggerProvider.log(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return n=i.sent(),this.config.loggerProvider.error(n),r=String(n),t=E(e,0,r),[2,t];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.config){this.q.push(this.setOptOut.bind(this,!!e));return}this.config.optOut=!!e},e.prototype.flush=function(){return D(this.timeline.flush())},e}(),ve=function(){function e(){this.productId=``,this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return re(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?c({},this.properties):{};return e[m.REVENUE_PRODUCT_ID]=this.productId,e[m.REVENUE_QUANTITY]=this.quantity,e[m.REVENUE_PRICE]=this.price,e[m.REVENUE_TYPE]=this.revenueType,e[m.REVENUE_CURRENCY]=this.currency,e[m.REVENUE]=this.revenue,e},e}(),ye=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},O=`Amplitude Logger `,be=function(){function e(){this.logLevel=g.None}return e.prototype.disable=function(){this.logLevel=g.None},e.prototype.enable=function(e){e===void 0&&(e=g.Warn),this.logLevel=e},e.prototype.log=function(){var e=[...arguments];this.logLevel<g.Verbose||console.log(`${O}[Log]: ${e.join(` `)}`)},e.prototype.warn=function(){var e=[...arguments];this.logLevel<g.Warn||console.warn(`${O}[Warn]: ${e.join(` `)}`)},e.prototype.error=function(){var e=[...arguments];this.logLevel<g.Error||console.error(`${O}[Error]: ${e.join(` `)}`)},e.prototype.debug=function(){var e=[...arguments];this.logLevel<g.Debug||console.log(`${O}[Debug]: ${e.join(` `)}`)},e}(),k=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:`$default_instance`,logLevel:g.Warn,loggerProvider:new be,optOut:!1,serverUrl:C,serverZone:v.US,useBatch:!1}},xe=function(){function e(e){this._optOut=!1;var t=k();this.apiKey=e.apiKey,this.flushIntervalMillis=e.flushIntervalMillis??t.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||t.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||t.flushQueueSize,this.instanceName=e.instanceName||t.instanceName,this.loggerProvider=e.loggerProvider||t.loggerProvider,this.logLevel=e.logLevel??t.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.optOut=e.optOut??t.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||t.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=e.useBatch??t.useBatch,this.loggerProvider.enable(this.logLevel);var n=Ce(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=n.serverZone,this.serverUrl=n.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e}
2,enumerable:!1,configurable:!0}),e}(),Se=function(e,t){return e===v.EU?t?te:w:t?ee:C},Ce=function(e,t,n){if(e===void 0&&(e=``),t===void 0&&(t=k().serverZone),n===void 0&&(n=k().useBatch),e)return{serverUrl:e,serverZone:void 0};var r=[`US`,`EU`].includes(t)?t:k().serverZone;return{serverZone:r,serverUrl:Se(r,n)}};function we(e){return e instanceof Error?e.message:String(e)}function A(e){var t=``;try{`body`in e&&(t=JSON.stringify(e.body))}catch{}return t}var Te=function(){function e(){this.name=`amplitude`,this.type=_.DESTINATION,this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey=``,this.scheduled=null,this.queue=[]}return e.prototype.setup=function(e){return n(this,void 0,void 0,function(){var t,n=this;return s(this,function(r){switch(r.label){case 0:return this.config=e,this.storageKey=`${S}_${this.config.apiKey.substring(0,10)}`,[4,this.config.storageProvider?.get(this.storageKey)];case 1:return t=r.sent(),this.saveEvents(),t&&t.length>0&&Promise.all(t.map(function(e){return n.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return new Promise(function(n){var r={event:e,attempts:0,callback:function(e){return n(e)},timeout:0};t.addToQueue(r)})},e.prototype.addToQueue=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.filter(function(t){return t.attempts<e.config.flushMaxRetries?(t.attempts+=1,!0):(e.fulfillRequest([t],500,pe),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),t.timeout===0){e.schedule(e.config.flushIntervalMillis);return}setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)}),this.saveEvents()},e.prototype.schedule=function(e){var t=this;this.scheduled||=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e)},e.prototype.flush=function(e){return e===void 0&&(e=!1),n(this,void 0,void 0,function(){var t,n,r,i=this;return s(this,function(a){switch(a.label){case 0:return t=[],n=[],this.queue.forEach(function(e){return e.timeout===0?t.push(e):n.push(e)}),this.queue=n,this.scheduled&&=(clearTimeout(this.scheduled),null),r=ye(t,this.config.flushQueueSize),[4,Promise.all(r.map(function(t){return i.send(t,e)}))];case 1:return a.sent(),[2]}})})},e.prototype.send=function(e,t){return t===void 0&&(t=!0),n(this,void 0,void 0,function(){var n,r,i,o,c;return s(this,function(s){switch(s.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,he)];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,a(t,[`extra`])}),options:{min_id_length:this.config.minIdLength}},s.label=1;case 1:return s.trys.push([1,3,,4]),r=Ce(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:return i=s.sent(),i===null?(this.fulfillRequest(e,0,fe),[2]):t?(this.handleResponse(i,e),[3,4]):(`body`in i?this.fulfillRequest(e,i.statusCode,`${i.status}: ${A(i)}`):this.fulfillRequest(e,i.statusCode,i.status),[2]);case 3:return o=s.sent(),this.config.loggerProvider.error(o),c=we(o),this.fulfillRequest(e,0,c),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case y.Success:this.handleSuccessResponse(e,t);break;case y.Invalid:this.handleInvalidResponse(e,t);break;case y.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case y.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn(`{code: 0, error: "Status '${n}' provided for ${t.length} events"}`),this.handleOtherResponse(t);break}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,de)},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith(`Invalid API key`)){this.fulfillRequest(t,e.statusCode,e.body.error);return}var i=l(l(l(l([],r(Object.values(e.body.eventsWithInvalidFields)),!1),r(Object.values(e.body.eventsWithMissingFields)),!1),r(Object.values(e.body.eventsWithInvalidIdLengths)),!1),r(e.body.silencedEvents),!1).flat(),a=new Set(i),o=t.filter(function(t,r){if(a.has(r)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});o.length>0&&this.config.loggerProvider.warn(A(e)),this.addToQueue.apply(this,l([],r(o),!1))},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(t.length===1){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(A(e)),this.config.flushQueueSize/=2,this.addToQueue.apply(this,l([],r(t),!1))},e.prototype.handleRateLimitResponse=function(e,t){var n=this,i=Object.keys(e.body.exceededDailyQuotaUsers),a=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,s=new Set(i),c=new Set(a
2),u=new Set(o),d=t.filter(function(t,r){if(t.event.user_id&&s.has(t.event.user_id)||t.event.device_id&&c.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return u.has(r)&&(t.timeout=n.throttleTimeout),!0});d.length>0&&this.config.loggerProvider.warn(A(e)),this.addToQueue.apply(this,l([],r(d),!1))},e.prototype.handleOtherResponse=function(e){var t=this;this.addToQueue.apply(this,l([],r(e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e})),!1))},e.prototype.fulfillRequest=function(e,t,n){this.saveEvents(),e.forEach(function(e){return e.callback(E(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=Array.from(this.queue.map(function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},e}(),Ee=function(e){return e===void 0&&(e=0),(Error().stack||``).split(` 3`).slice(2+e).map(function(e){return e.trim()})},j=function(e){return function(){var t=c({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},De=function(e,t){var n,r;t=t.replace(/\[(\w+)\]/g,`.$1`),t=t.replace(/^\./,``);try{for(var a=i(t.split(`.`)),o=a.next();!o.done;o=a.next()){var s=o.value;if(s in e)e=e[s];else return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return e},M=function(e,t){return function(){var n,r,a={};try{for(var o=i(t),s=o.next();!s.done;s=o.next()){var c=s.value;a[c]=De(e,c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}},N=function(e,t,n,r,i){return i===void 0&&(i=null),function(){var a=[...arguments],o=n(),s=o.logger,c=o.logLevel;if(c&&c<g.Debug||!c||!s)return e.apply(i,a);var l={type:`invoke public method`,name:t,args:a,stacktrace:Ee(1),time:{start:new Date().toISOString()},states:{}};r&&l.states&&(l.states.before=r());var u=e.apply(i,a);return u&&u.promise?u.promise.then(function(){r&&l.states&&(l.states.after=r()),l.time&&(l.time.end=new Date().toISOString()),s.debug(JSON.stringify(l,null,2))}):(r&&l.states&&(l.states.after=r()),l.time&&(l.time.end=new Date().toISOString()),s.debug(JSON.stringify(l,null,2))),u}},P=function(e){return e?(e^Math.random()*16>>e/4).toString(16):`10000000-1000-4000-8000-100000000000`.replace(/[018]/g,P)},Oe=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return n(this,void 0,void 0,function(){return s(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return n(this,void 0,void 0,function(){return s(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return n(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return t=n.sent(),[2,t?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return n(this,void 0,void 0,function(){return s(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return n(this,void 0,void 0,function(){return s(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return n(this,void 0,void 0,function(){return s(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),F=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if(typeof e!=`object`)return null;var t=e.code||0,n=this.buildStatus(t);switch(n){case y.Success:return{status:n,statusCode:t,body:{eventsIngested:e.events_ingested??0,payloadSizeBytes:e.payload_size_bytes??0,serverUploadTime:e.server_upload_time??0}};case y.Invalid:return{status:n,statusCode:t,body:{error:e.error??``,missingField:e.missing_field??``,eventsWithInvalidFields:e.events_with_invalid_fields??{},eventsWithMissingFields:e.events_with_missing_fields??{},eventsWithInvalidIdLengths:e.events_with_invalid_id_lengths??{},epsThreshold:e.eps_threshold??0,exceededDailyQuotaDevices:e.exceeded_daily_quota_devices??{},silencedDevices:e.silenced_devices??[],silencedEvents:e.silenced_events??[],throttledDevices:e.throttled_devices??{},throttledEvents:e.throttled_events??[]}};case y.PayloadTooLarge:return{status:n,statusCode:t,body:{error:e.error??``}};case y.RateLimit:return{status:n,statusCode:t,body:{error:e.error??``,epsThreshold:e.eps_threshold??0,throttledDevices:e.throttled_devices??{},throttledUsers:e.throttled_users??{},exceededDailyQuotaDevices:e.exceeded_daily_quota_devices??{},exceededDailyQuotaUsers:e.exceeded_daily_quota_users??{},throttledEvents:e.throttled_events??[]}};case y.Timeout:default:return{status:n,statusCode:t}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?y.Success:e===429?y.RateLimit:e===413?y.PayloadTooLarge:e===408?y.Timeout:e>
3=400&&e<500?y.Invalid:e>=500?y.Failed:y.Unknown},e}(),I=function(e){return e===void 0&&(e=`$default_instance`),u.getInstance(e)},ke=function(e,t){I(t).identityStore.editIdentity().setUserId(e).commit()},Ae=function(e,t){I(t).identityStore.editIdentity().setDeviceId(e).commit()},je=function(e,t){I(t).identityStore.editIdentity().setOptOut(e).commit()},L=function(){if(typeof globalThis<`u`)return globalThis;if(typeof window<`u`)return window;if(typeof self<`u`)return self;if(typeof global<`u`)return global},Me=function(){var e=L();return e?.location?.search?e.location.search.substring(1).split(`&`).filter(Boolean).reduce(function(e,t){var n=t.split(`=`,2),r=Ne(n[0]),i=Ne(n[1]);return i&&(e[r]=i),e},{}):{}},Ne=function(e){e===void 0&&(e=``);try{return decodeURIComponent(e)}catch{return``}},Pe=`utm_campaign`,Fe=`utm_content`,Ie=`utm_id`,Le=`utm_medium`,Re=`utm_source`,ze=`utm_term`,Be=`dclid`,Ve=`fbclid`,He=`gbraid`,Ue=`gclid`,We=`ko_click_id`,Ge=`li_fat_id`,Ke=`msclkid`,qe=`rtd_cid`,Je=`ttclid`,Ye=`twclid`,Xe=`wbraid`,R={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},Ze=function(){function e(){}return e.prototype.parse=function(){return n(this,void 0,void 0,function(){return s(this,function(e){return[2,c(c(c(c({},R),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=Me();return{utm_campaign:e[Pe],utm_content:e[Fe],utm_id:e[Ie],utm_medium:e[Le],utm_source:e[Re],utm_term:e[ze]}},e.prototype.getReferrer=function(){var e={referrer:void 0,referring_domain:void 0};try{e.referrer=document.referrer||void 0,e.referring_domain=e.referrer?.split(`/`)[2]??void 0}catch{}return e},e.prototype.getClickIds=function(){var e,t=Me();return e={},e[Be]=t[Be],e[Ve]=t[Ve],e[He]=t[He],e[Ue]=t[Ue],e[We]=t[We],e[Ge]=t[Ge],e[Ke]=t[Ke],e[qe]=t[qe],e[Je]=t[Je],e[Ye]=t[Ye],e[Xe]=t[Xe],e},e}(),Qe=function(e,t,n){return t===void 0&&(t=``),n===void 0&&(n=10),[`AMP`,t,e.substring(0,n)].filter(Boolean).join(`_`)},$e=function(e){return`amp_${e.substring(0,6)}`},et=function(e){return typeof e==`boolean`?e:!!e?.fileDownloads},tt=function(e){return typeof e==`boolean`?e:!!e?.formInteractions},nt=function(e){return typeof e==`boolean`?e:!!(e?.pageViews===!0||e?.pageViews&&typeof e.pageViews==`object`)},rt=function(e){return typeof e==`boolean`?e:!!e?.sessions},it=function(e){var t=e.attribution?.trackPageViews?`attribution`:function(){return!1},n=void 0,r=`Page View`;return nt(e.defaultTracking)&&(t=void 0,r=void 0,e.defaultTracking&&typeof e.defaultTracking==`object`&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews==`object`&&(`trackOn`in e.defaultTracking.pageViews&&(t=e.defaultTracking.pageViews.trackOn),`trackHistoryChanges`in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),`eventType`in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(r=e.defaultTracking.pageViews.eventType))),{trackOn:t,trackHistoryChanges:n,eventType:r}},at=function(){if(typeof navigator>`u`)return``;var e=navigator.userLanguage;return navigator.languages?.[0]??navigator.language??e??``},ot=function(){function e(){this.name=`identity`,this.type=_.BEFORE,this.identityStore=I().identityStore}return e.prototype.execute=function(e){return n(this,void 0,void 0,function(){var t;return s(this,function(n){return t=e.user_properties,t&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return n(this,void 0,void 0,function(){return s(this,function(t){return e.instanceName&&(this.identityStore=I(e.instanceName).identityStore),[2]})})},e}(),z=function(){function e(e){this.options=c({},e)}return e.prototype.isEnabled=function(){return n(this,void 0,void 0,function(){var t,n,r;return s(this,function(i){switch(i.label){case 0:if(!L())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n=`AMP_TEST`,i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return i.sent(),[4,t.get(n)];case 3:return r=i.sent(),[2,r===e.testValue];case 4:return i.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return n(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return[4,this.getRaw(e)];case 1:if(t=n.sent(),!t)return[2,void 0];try{try{t=decodeURIComponent(atob(t))}catch{}return[2,JSON.parse(t)]}catch{return[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){return n(this,void 0,void 0,function(){var t,n,r;return s(this,function(i){return t=L(),n=t?.document.cookie.split(`; `)??[],r=n.find(function(t){return t.indexOf(e+`=`)===0}),r?[2,r.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){return n(this,void 0,void 0,function(){var n,r,i,a,o,c;return s(this,function(s){try{n=this.options.expirationDays??0,r=t===null?-1:n,i=void 0,r&&(a=new Date,a.setTime(a.getTime()+r*24*60*60*1e3),i=a),o=`${e}=${btoa(encodeURIComponent(JSON.stringify(t)))}`,i&&(o+=`; expires=${i.toUTCString()}`),o+=`; path=/`,this.options.domain&&(o+=`; domain=${this.options.domain}`),this.options.secure&&(o+=`; Secure`),this.options.sameSite&&(o+=`; SameSite=${this.options.sameSite}`),c=L(),c&&(c.document.cookie=o)}catch{}return[2]})})},e.prototype.remove=function(e){return n(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return n(this,void 0,void 0,function(){return s(this,function(e){return[2]})})},e}(),st=function(e){o(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(e,t){return n(this,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:if(typeof fetch>`u`)throw Error(`FetchTransport is not supported`);return n={headers:{"Content-Type":`application/json`,Accept:`*/*`},body:JSON.stringify(t),method:`POST`}
3,[4,fetch(e,n)];case 1:return r=a.sent(),[4,r.text()];case 2:i=a.sent();try{return[2,this.buildResponse(JSON.parse(i))]}catch{return[2,this.buildResponse({code:r.status})]}return[2]}})})},t}(F),ct=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},lt=function(){var e=[...arguments],t,i={},a=L(),o=void 0,l,u=r(e,2),d=u[0],f=u[1];d&&`init`in d?(t=d,f&&(i=f)):d&&(i=d);var p=function(){return n(void 0,void 0,void 0,function(){var e,t;return s(this,function(n){switch(n.label){case 0:return t={event_type:i.eventType??`Page View`},e=[{}],[4,ut()];case 1:return[2,(t.event_properties=c.apply(void 0,[c.apply(void 0,e.concat([n.sent()])),{page_domain:typeof location<`u`&&location.hostname||``,page_location:typeof location<`u`&&location.href||``,page_path:typeof location<`u`&&location.pathname||``,page_title:typeof document<`u`&&document.title||``,page_url:typeof location<`u`&&location.href.split(`?`)[0]||``}]),t)]}})})},m=function(){return i.trackOn===void 0||typeof i.trackOn==`function`&&i.trackOn()},h=typeof location<`u`?location.href:null,g=function(){return n(void 0,void 0,void 0,function(){var e,n,r,a;return s(this,function(s){switch(s.label){case 0:return e=location.href,n=ft(i.trackHistoryChanges,e,h||``)&&m(),h=e,n?(o?.log(`Tracking page view event`),t==null?[3,3]:[3,1]):[3,4];case 1:return a=(r=t).track,[4,p()];case 2:a.apply(r,[s.sent()]),s.label=3;case 3:s.label=4;case 4:return[2]}})})},v=function(){g()},y={name:`page-view-tracking`,type:_.ENRICHMENT,setup:function(e,c){return n(void 0,void 0,void 0,function(){var n,u,f;return s(this,function(s){switch(s.label){case 0:return t??=c,t?(o=e.loggerProvider,o.log(`Installing @amplitude/plugin-page-view-tracking-browser`),i.trackOn=e.attribution?.trackPageViews?`attribution`:i.trackOn,!c&&e.attribution?.trackPageViews&&(o.warn(`@amplitude/plugin-page-view-tracking-browser overrides page view tracking behavior defined in @amplitude/analytics-browser. Resolve by disabling page view tracking in @amplitude/analytics-browser.`),e.attribution.trackPageViews=!1),i.trackHistoryChanges&&a&&(a.addEventListener(`popstate`,v),l=a.history.pushState,a.history.pushState=new Proxy(a.history.pushState,{apply:function(e,t,n){var i=r(n,3),a=i[0],o=i[1],s=i[2];e.apply(t,[a,o,s]),g()}})),m()?(o.log(`Tracking page view event`),f=(u=t).track,[4,p()]):[3,2]):(n=d?`Options`:`undefined`,e.loggerProvider.error(`Argument of type '${n}' is not assignable to parameter of type 'BrowserClient'.`),[2]);case 1:f.apply(u,[s.sent()]),s.label=2;case 2:return[2]}})})},execute:function(e){return n(void 0,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return i.trackOn===`attribution`&&dt(e)?(o?.log(`Enriching campaign event to page view event with campaign parameters`),[4,p()]):[3,2];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=c(c({},e.event_properties),t.event_properties),n.label=2;case 2:return[2,e]}})})},teardown:function(){return n(void 0,void 0,void 0,function(){return s(this,function(e){return a&&(a.removeEventListener(`popstate`,v),l&&(a.history.pushState=l)),[2]})})}};return y.__trackHistoryPageView=g,y},ut=function(){return n(void 0,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return e=ct,[4,new Ze().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},dt=function(e){if(e.event_type===`$identify`&&e.user_properties){var t=e.user_properties,n=t[p.SET]||{},i=t[p.UNSET]||{},a=l(l([],r(Object.keys(n)),!1),r(Object.keys(i)),!1);return Object.keys(R).every(function(e){return a.includes(e)})}return!1},ft=function(e,t,n){switch(e){case`pathOnly`:return t.split(`?`)[0]!==n.split(`?`)[0];default:return t!==n}},pt=function(e,t,n){return t===void 0&&(t=``),n===void 0&&(n=10),[`AMP`,t,e.substring(0,n)].filter(Boolean).join(`_`)},mt=function(e){var t=e.split(`.`);return t.length<=2?e:t.slice(t.length-2,t.length).join(`.`)},ht=function(e,t,n){e.referrer;var r=e.referring_domain,i=a(e,[`referrer`,`referring_domain`]),o=t||{};o.referrer;var s=o.referring_domain,c=a(o,[`referrer`,`referring_domain`]);if(e.referring_domain&&n.excludeReferrers?.includes(e.referring_domain))return!1;var l=JSON.stringify(i)!==JSON.stringify(c),u=mt(r||``)!==mt(s||``);return!t||l||u},gt=function(e,t){var n=c(c({},R),e);return oe(Object.entries(n).reduce(function(e,n){var i=r(n,2),a=i[0],o=i[1];return e.setOnce(`initial_${a}
3`,o??t.initialEmptyValue??`EMPTY`),o?e.set(a,o):e.unset(a)},new T))},_t=function(){for(var e=this,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var a,o={},l=r(t,2),u=l[0],d=l[1];u&&`init`in u?(a=u,d&&(o=d)):u&&(o=u);var f=o.excludeReferrers??[];typeof location<`u`&&f.unshift(location.hostname),o=c(c({disabled:!1,initialEmptyValue:`EMPTY`,resetSessionOnNewCampaign:!1},o),{excludeReferrers:f});var p={name:`web-attribution`,type:_.BEFORE,setup:function(e,t){return n(this,void 0,void 0,function(){var n,i,c,l,d,f,p,m;return s(this,function(s){switch(s.label){case 0:return a??=t,a?o.disabled?(e.loggerProvider.log(`@amplitude/plugin-web-attribution-browser is disabled. Attribution is not tracked.`),[2]):(e.loggerProvider.log(`Installing @amplitude/plugin-web-attribution-browser.`),!t&&!e.attribution?.disabled&&(e.loggerProvider.warn(`@amplitude/plugin-web-attribution-browser overrides web attribution behavior defined in @amplitude/analytics-browser. Resolve by disabling web attribution tracking in @amplitude/analytics-browser.`),e.attribution={disabled:!0}),i=e.cookieStorage,c=pt(e.apiKey,`MKTG`),[4,Promise.all([new Ze().parse(),i.get(c)])]):(n=u?`Options`:`undefined`,e.loggerProvider.error(`Argument of type '${n}' is not assignable to parameter of type 'BrowserClient'.`),[2]);case 1:return l=r.apply(void 0,[s.sent(),2]),d=l[0],f=l[1],p=this.__pluginEnabledOverride,(p??ht(d,f,o))&&(o.resetSessionOnNewCampaign&&(a.setSessionId(Date.now()),e.loggerProvider.log(`Created a new session for new campaign.`)),e.loggerProvider.log(`Tracking attribution.`),m=gt(d,o),a.track(m),i.set(c,d)),[2]}})})},execute:function(t){return n(e,void 0,void 0,function(){return s(this,function(e){return[2,t]})})}};return p.__pluginEnabledOverride=void 0,p},B=1e3,vt=function(){function e(e){this.loggerProvider=e?.loggerProvider}return e.prototype.isEnabled=function(){return n(this,void 0,void 0,function(){var t,n,r,i;return s(this,function(a){switch(a.label){case 0:if(!L())return[2,!1];t=String(Date.now()),n=new e,r=`AMP_TEST`,a.label=1;case 1:return a.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return a.sent(),[4,n.get(r)];case 3:return i=a.sent(),[2,i===t];case 4:return a.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return a.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return n(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return t=n.sent(),t?[2,JSON.parse(t)]:[2,void 0];case 2:return n.sent(),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){return n(this,void 0,void 0,function(){return s(this,function(t){return[2,L()?.localStorage.getItem(e)||void 0]})})},e.prototype.set=function(e,t){var r,i;return n(this,void 0,void 0,function(){var n,a,o;return s(this,function(s){n=Array.isArray(t)&&t.length>B;try{a=JSON.stringify(n?t.slice(0,B):t),(r=L())==null||r.localStorage.setItem(e,a)}catch{}return n&&(o=t.length-B,(i=this.loggerProvider)==null||i.error(`Failed to save ${o} events because the queue length exceeded ${B}.`)),[2]})})},e.prototype.remove=function(e){var t;return n(this,void 0,void 0,function(){return s(this,function(n){try{(t=L())==null||t.localStorage.removeItem(e)}catch{}return[2]})})},e.prototype.reset=function(){var e;return n(this,void 0,void 0,function(){return s(this,function(t){try{(e=L())==null||e.localStorage.clear()}catch{}return[2]})})},e}(),yt=function(e){o(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={done:4},t}return t.prototype.send=function(e,t){return n(this,void 0,void 0,function(){var n=this;return s(this,function(r){return[2,new Promise(function(r,i){typeof XMLHttpRequest>`u`&&i(Error(`XHRTransport is not supported.`));var a=new XMLHttpRequest;a.open(`POST`,e,!0),a.onreadystatechange=function(){if(a.readyState===n.state.done)try{var e=a.responseText,t=JSON.parse(e);r(n.buildResponse(t))}catch(e){i(e)}},a.setRequestHeader(`Content-Type`,`application/json`),a.setRequestHeader(`Accept`,`*/*`),a.send(JSON.stringify(t))})]})})},t}(F),bt=function(e){o(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(e,t){return n(this,void 0,void 0,function(){var n=this;return s(this,function(r){return[2,new Promise(function(r,i){var a=L();if(!a?.navigator.sendBeacon)throw Error(`SendBeaconTransport is not supported`);try{var o=JSON.stringify(t);return a.navigator.sendBeacon(e,JSON.stringify(t))?r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:o.length,server_upload_time:Date.now()})):r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(F),V=function(){return{cookieExpiration:365,cookieSameSite:`Lax`,cookieSecure:!1,cookieStorage:new Oe,cookieUpgrade:!0,disableCookies:!1,domain:``,sessionTimeout:1800*1e3,trackingOptions:{deviceManufacturer:!0,deviceModel:!0,ipAddress:!0,language:!0,osName:!0,osVersion:!0,platform:!0},transportProvider:new st}},xt=function(e){o(t,e);function t(t,n){var r=this,i=V();return r=e.call(this,c(c({flushIntervalMillis:1e3,flushMaxRetries:5,flushQueueSize:30,transportProvider:i.transportProvider},n),{apiKey:t}))||this,r._optOut=!1,r.cookieStorage=n?.cookieStorage??i.cookieStorage,r.deviceId=n?.deviceId,r.lastEventId=n?.lastEventId,r.lastEventTime=n?.lastEventTime,r.optOut=!!n?.optOut,r.sessionId=n?.sessionId,r.userId=n?.userId,r.appVersion=n?.appVersion,r.attribution=n?.attribution,r.cookieExpiration=n?.cookieExpiration??i.cookieExpiration,r.cookieSameSite=n?.cookieSameSite??i.cookieSameSite,r.cookieSecure=n?.cookieSecure??i.cookieSecure,r.cookieUpgrade=n?.cookieUpgrade??i.cookieUpgrade,r.defaultTracking=n?.defaultTracking,r.disableCookies=n?.disableCookies??i.disableCookies,r.defaultTracking=n?.defaultTracking,r.domain=n?.domain??i.domain,r.partnerId=n?.partnerId,r.sessionTimeout=n?.sessionTimeout??i.sessionTimeout,r.trackingOptions=n?.trackingOptions??i.trackingOptions,r}return Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())}
3,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e,t={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId};(e=this.cookieStorage)==null||e.set(Qe(this.apiKey),t)},t}(xe),St=function(e,t){return n(void 0,void 0,void 0,function(){var n,r,i,a,o,l,u,d,f,p,m,h,g;return s(this,function(s){switch(s.label){case 0:return n=V(),r=t?.deviceId??P(),i=t?.lastEventId,a=t?.lastEventTime,o=t?.optOut,l=t?.sessionId,u=t?.userId,d=t?.cookieStorage,f
3=t?.domain,p=xt.bind,m=[void 0,e],h=[c({},t)],g={cookieStorage:d,deviceId:r,domain:f,lastEventId:i,lastEventTime:a,optOut:o,sessionId:l},[4,Tt(t)];case 1:return[2,new(p.apply(xt,m.concat([c.apply(void 0,h.concat([(g.storageProvider=s.sent(),g.trackingOptions=c(c({},n.trackingOptions),t?.trackingOptions),g.transportProvider=t?.transportProvider??Et(t?.transport),g.userId=u,g)]))])))]}})})},Ct=function(e,t){return t===void 0&&(t=V()),n(void 0,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return n=c(c({},t),e),r=e?.cookieStorage,i=!r,i?[3,2]:[4,r.isEnabled()];case 1:i=!a.sent(),a.label=2;case 2:return i?[2,wt(n)]:[2,r]}})})},wt=function(e){return n(void 0,void 0,void 0,function(){var t,n;return s(this,function(r){switch(r.label){case 0:return t=new z({domain:e.domain,expirationDays:e.cookieExpiration,sameSite:e.cookieSameSite,secure:e.cookieSecure}),n=e.disableCookies,n?[3,2]:[4,t.isEnabled()];case 1:n=!r.sent(),r.label=2;case 2:return n?(t=new vt,[4,t.isEnabled()]):[3,4];case 3:r.sent()||(t=new Oe),r.label=4;case 4:return[2,t]}})})},Tt=function(e){return n(void 0,void 0,void 0,function(){var t,n,r,a,o,c,l,u,d;return s(this,function(s){switch(s.label){case 0:if(t=e&&Object.prototype.hasOwnProperty.call(e,`storageProvider`),n=e&&e.loggerProvider,!(!t||e.storageProvider))return[3,9];s.label=1;case 1:s.trys.push([1,7,8,9]),r=i([e?.storageProvider,new vt({loggerProvider:n})]),a=r.next(),s.label=2;case 2:return a.done?[3,6]:(o=a.value,c=o,c?[4,o.isEnabled()]:[3,4]);case 3:c=s.sent(),s.label=4;case 4:if(c)return[2,o];s.label=5;case 5:return a=r.next(),[3,2];case 6:return[3,9];case 7:return l=s.sent(),u={error:l},[3,9];case 8:try{a&&!a.done&&(d=r.return)&&d.call(r)}finally{if(u)throw u.error}return[7];case 9:return[2,void 0]}})})},Et=function(e){return e===b.XHR?new yt:e===b.SendBeacon?new bt:V().transportProvider},Dt=function(e){return n(void 0,void 0,void 0,function(){var t,n,r,i,a,a,o,c,l,u;return s(this,function(s){switch(s.label){case 0:return[4,new z().isEnabled()];case 1:if(!s.sent()||!e&&typeof location>`u`)return[2,``];for(t=e??location.hostname,n=t.split(`.`),r=[],i=`AMP_TLDTEST`,a=n.length-2;a>=0;--a)r.push(n.slice(a).join(`.`));a=0,s.label=2;case 2:return a<r.length?(o=r[a],c={domain:`.`+o},l=new z(c),[4,l.set(i,1)]):[3,7];case 3:return s.sent(),[4,l.get(i)];case 4:return u=s.sent(),u?[4,l.remove(i)]:[3,6];case 5:return s.sent(),[2,`.`+o];case 6:return a++,[3,2];case 7:return[2,``]}})})},H=`[Amplitude]`,Ot=`${H} Page Viewed`,kt=`${H} Form Started`,At=`${H} Form Submitted`,jt=`${H} File Downloaded`,Mt=`session_start`,Nt=`session_end`,Pt=`${H} File Extension`,Ft=`${H} File Name`,It=`${H} Link ID`,Lt=`${H} Link Text`,Rt=`${H} Link URL`,U=`${H} Form ID`,W=`${H} Form Name`,G=`${H} Form Destination`,zt=function(e,t){return n(void 0,void 0,void 0,function(){var n,i,a,o,c,l,u,d,f,p;return s(this,function(s){switch(s.label){case 0:return[4,Ct(t)];case 1:return n=s.sent(),i=$e(e),[4,n.getRaw(i)];case 2:return a=s.sent(),a?t.cookieUpgrade??V().cookieUpgrade?[4,n.remove(i)]:[3,4]:[2,{optOut:!1}];case 3:s.sent(),s.label=4;case 4:return o=r(a.split(`.`),6),c=o[0],l=o[1],u=o[2],d=o[3],f=o[4],p=o[5],[2,{deviceId:c,userId:Bt(l),sessionId:K(d),lastEventId:K(p),lastEventTime:K(f),optOut:!!u}]}})})},K=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},Bt=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},Vt=t(d()),Ht=`1.13.4`,Ut=`Web`,Wt=`$remote`,Gt=function(){function e(){this.name=`context`,this.type=_.BEFORE,this.library=`amplitude-ts/${Ht}`,typeof navigator<`u`&&(this.userAgent=navigator.userAgent),this.uaResult=new Vt.default(this.userAgent).getResult()}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){return n(this,void 0,void 0,function(){var t,n,r,i,a,o,l,u;return s(this,function(s){return t=new Date().getTime(),n=this.uaResult.browser.name,r=this.uaResult.browser.version,i=this.uaResult.device.model||this.uaResult.os.name,a=this.uaResult.device.vendor,o=this.config.lastEventId??-1,l=e.event_id??o+1,this.config.lastEventId=l,e.time||(this.config.lastEventTime=t),u=c(c(c(c(c(c(c(c(c(c(c(c({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:t},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:Ut}),this.config.trackingOptions.osName&&{os_name:n}),this.config.trackingOptions.osVersion&&{os_version:r}),this.config.trackingOptions.deviceManufacturer&&{device_manufacturer:a}),this.config.trackingOptions.deviceModel&&{device_model:i}),this.config.trackingOptions.language&&{language:at()}),this.config.trackingOptions.ipAddress&&{ip:Wt}),{insert_id:P(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:l,library:this.library,user_agent:this.userAgent}),[2,u]})})},e}(),Kt={page_domain:`${H} Page Domain`,page_location:`${H} Page Location`,page_path:`${H} Page Path`,page_title:`${H} Page Title`,page_url:`${H} Page URL`},qt=function(){return{name:`@amplitude/plugin-default-page-view-event-enrichment-browser`,type:_.ENRICHMENT,setup:function(){return n(void 0,void 0,void 0,function(){return s(this,function(e){return[2,void 0]})})},execute:function(e){return n(void 0,void 0,void 0,function(){return s(this,function(t){return e.event_type===Ot&&e.event_properties&&(e.event_properties=Object.entries(e.event_properties).reduce(function(e,t){var n=r(t,2),i=n[0],a=n[1],o=Kt[i];return o?e[o]=a:e[i]=a,e},{})),[2,e]})})}}},Jt=function(){var e,t=[],r=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},i=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;t?.removeEventListener(n,r)}),t=[]};return{name:`@amplitude/plugin-file-download-tracking-browser`,type:_.ENRICHMENT,setup:function(t,i){return n(void 0,void 0,void 0,function(){var n,a,o;return s(this,function(s){return i?typeof document>`u`?[2]:(n=function(e){var t;try{t=new URL(e.href,window.location.href)}catch{return}var n=a.exec(t.href)?.[1];n&&r(e,`click`,function(){var r;n&&i.track(jt,(r={},r[Pt]=n,r[Ft]=t.pathname,r[It]=e.id,r[Lt]=e.text,r[Rt]=e.href,r))})},a=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/,o=Array.from(document.getElementsByTagName(`a`)),o.forEach(n),typeof MutationObserver<`u`&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEac
3h(function(e){e.nodeName===`A`&&n(e),`querySelectorAll`in e&&typeof e.querySelectorAll==`function`&&Array.from(e.querySelectorAll(`a`)).map(n)})})}),e.observe(document.body,{subtree:!0,childList:!0})),[2]):(t.loggerProvider.warn(`File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.`),[2])})})},execute:function(e){return n(void 0,void 0,void 0,function(){return s(this,function(t){return[2,e]})})},teardown:function(){return n(void 0,void 0,void 0,function(){return s(this,function(t){return e?.disconnect(),i(),[2]})})}}},Yt=function(){var e,t=[],r=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},i=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;t?.removeEventListener(n,r)}),t=[]};return{name:`@amplitude/plugin-form-interaction-tracking-browser`,type:_.ENRICHMENT,setup:function(t,i){return n(void 0,void 0,void 0,function(){var n,a;return s(this,function(o){return i?typeof document>`u`?[2]:(n=function(e){var t=!1;r(e,`change`,function(){var n;t||i.track(kt,(n={},n[U]=e.id,n[W]=e.name,n[G]=e.action,n)),t=!0}),r(e,`submit`,function(){var n,r;t||i.track(kt,(n={},n[U]=e.id,n[W]=e.name,n[G]=e.action,n)),i.track(At,(r={},r[U]=e.id,r[W]=e.name,r[G]=e.action,r)),t=!1})},a=Array.from(document.getElementsByTagName(`form`)),a.forEach(n),typeof MutationObserver<`u`&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){e.nodeName===`FORM`&&n(e),`querySelectorAll`in e&&typeof e.querySelectorAll==`function`&&Array.from(e.querySelectorAll(`form`)).map(n)})})}),e.observe(document.body,{subtree:!0,childList:!0})),[2]):(t.loggerProvider.warn(`Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.`),[2])})})},execute:function(e){return n(void 0,void 0,void 0,function(){return s(this,function(t){return[2,e]})})},teardown:function(){return n(void 0,void 0,void 0,function(){return s(this,function(t){return e?.disconnect(),i(),[2]})})}}},Xt=function(e,t){q(e,t)},q=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,a=r.args,o=r.resolve,s=e&&e[i];if(typeof s==`function`){var c=s.apply(e,a);typeof o==`function`&&o(c?.promise)}}return e},Zt=function(e){var t=e;return t&&t._q!==void 0},Qt=function(e){o(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n){return e===void 0&&(e=``),D(this._init(c(c({},n),{userId:t,apiKey:e})))},t.prototype._init=function(t){var r;return n(this,void 0,void 0,function(){var n,i,a,o,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=this;return s(this,function(s){switch(s.label){case 0:return this.initializing?[2]:(this.initializing=!0,n=t,t.disableCookies?(i=``,[3,5]):[3,1]);case 1:return(r=t.domain)==null?[3,2]:(a=r,[3,4]);case 2:return[4,Dt()];case 3:a=s.sent(),s.label=4;case 4:i=a,s.label=5;case 5:return n.domain=i,[4,zt(t.apiKey,t)];case 6:return o=s.sent(),[4,Ct(t)];case 7:return l=s.sent(),[4,l.get(Qe(t.apiKey))];case 8:return u=s.sent(),d=Me(),f=t.deviceId??d.deviceId??u?.deviceId??o.deviceId,p=u?.sessionId??o.sessionId,m=t.optOut??u?.optOut??o.optOut,h=u?.lastEventId??o.lastEventId,g=u?.lastEventTime??o.lastEventTime,_=t.userId??u?.userId??o.userId,this.previousSessionDeviceId=u?.deviceId??o.deviceId,this.previousSessionUserId=u?.userId??o.userId,[4,St(t.apiKey,c(c({},t),{deviceId:f,sessionId:p,optOut:m,lastEventId:h,lastEventTime:g,userId:_,cookieStorage:l}))];case 9:return v=s.sent(),[4,e.prototype._init.call(this,v)];case 10:return s.sent(),y=!1,(!this.config.lastEventTime||!this.config.sessionId||this.config.lastEventTime&&Date.now()-this.config.lastEventTime>this.config.sessionTimeout)&&(this.setSessionId(t.sessionId??this.config.sessionId??Date.now()),y=!0),b=I(t.instanceName),b.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),[4,this.add(new Te).promise];case 11:return s.sent(),[4,this.add(new Gt).promise];case 12:return s.sent(),[4,this.add(new ot).promise];case 13:return s.sent(),et(this.config.defaultTracking)?[4,this.add(Jt()).promise]:[3,15];case 14:s.sent(),s.label=15;
3case 15:return tt(this.config.defaultTracking)?[4,this.add(Yt()).promise]:[3,17];case 16:s.sent(),s.label=17;case 17:return this.config.attribution?.disabled?[3,19]:(x=_t({excludeReferrers:this.config.attribution?.excludeReferrers,initialEmptyValue:this.config.attribution?.initialEmptyValue,resetSessionOnNewCampaign:this.config.attribution?.resetSessionOnNewCampaign}),x.__pluginEnabledOverride=y||this.config.attribution?.trackNewCampaigns?void 0:!1,[4,this.add(x).promise]);case 18:s.sent(),s.label=19;case 19:return S=it(this.config),S.eventType=S.eventType||Ot,[4,this.add(lt(S)).promise];case 20:return s.sent(),[4,this.add(qt()).promise];case 21:return s.sent(),this.initializing=!1,[4,this.runQueuedFunctions(`dispatchQ`)];case 22:return s.sent(),b.eventBridge.setEventReceiver(function(e){C.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){return this.config?.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}(e!==this.config.userId||e===void 0)&&(this.config.userId=e,ke(e,this.config.instanceName))},t.prototype.getDeviceId=function(){return this.config?.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.deviceId=e,Ae(e,this.config.instanceName)},t.prototype.setOptOut=function(t){je(t,this.config.instanceName),e.prototype.setOptOut.call(this,t)},t.prototype.reset=function(){this.setDeviceId(P()),this.setUserId(void 0)},t.prototype.getSessionId=function(){return this.config?.sessionId},t.prototype.setSessionId=function(e){if(!this.config){this.q.push(this.setSessionId.bind(this,e));return}if(e!==this.config.sessionId){var t=this.getSessionId(),n=this.config.lastEventTime,r=this.config.lastEventId??-1;this.config.sessionId=e,this.config.lastEventTime=void 0,rt(this.config.defaultTracking)&&(t&&n&&this.track(Nt,void 0,{device_id:this.previousSessionDeviceId,event_id:++r,session_id:t,time:n+1,user_id:this.previousSessionUserId}),this.config.lastEventTime=this.config.sessionId,this.track(Mt,void 0,{event_id:++r,session_id:this.config.sessionId,time:this.config.lastEventTime})),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId}},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=Et(e)},t.prototype.identify=function(t,n){if(Zt(t)){var r=t._q;t._q=[],t=q(new T,r)}return n?.user_id&&this.setUserId(n.user_id),n?.device_id&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(Zt(r)){var a=r._q;r._q=[],r=q(new T,a)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(Zt(t)){var r=t._q;t._q=[],t=q(new ve,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.process=function(t){return n(this,void 0,void 0,function(){var n,r,i;return s(this,function(a){return n=Date.now(),r=this.config.lastEventTime||Date.now(),i=n-r,t.event_type!==`session_start`&&t.event_type!==`session_end`&&(!t.session_id||t.session_id===this.getSessionId())&&i>this.config.sessionTimeout&&this.setSessionId(n),[2,e.prototype.process.call(this,t)]})})},t}(_e),$t=function(){var e=new Qt;return{init:N(e.init.bind(e),`init`,j(e),M(e,[`config`])),add:N(e.add.bind(e),`add`,j(e),M(e,[`config.apiKey`,`timeline.plugins`])),remove:N(e.remove.bind(e),`remove`,j(e),M(e,[`config.apiKey`,`timeline.plugins`])),track:N(e.track.bind(e),`track`,j(e),M(e,[`config.apiKey`,`timeline.queue.length`])),logEvent:N(e.logEvent.bind(e),`logEvent`,j(e),M(e,[`config.apiKey`,`timeline.queue.length`])),identify:N(e.identify.bind(e),`identify`,j(e),M(e,[`config.apiKey`,`timeline.queue.length`])),groupIdentify:N(e.groupIdentify.bind(e),`groupIdentify`,j(e),M(e,[`config.apiKey`,`timeline.queue.length`])),setGroup:N(e.setGroup.bind(e),`setGroup`,j(e),M(e,[`config.apiKey`,`timeline.queue.length`])),revenue:N(e.revenue.bind(e),`revenue`,j(e),M(e,[`config.apiKey`,`timeline.queue.length`])),flush:N(e.flush.bind(e),`flush`,j(e),M(e,[`config.apiKey`,`timeline.queue.length`])),getUserId:N(e.getUserId.bind(e),`getUserId`,j(e),M(e,[`config`,`config.userId`])),setUserId:N(e.setUserId.bind(e),`setUserId`,j(e),M(e,[`config`,`config.userId`])),getDeviceId:N(e.getDeviceId.bind(e),`getDeviceId`,j(e),M(e,[`config`,`config.deviceId`])),setDeviceId:N(e.setDeviceId.bind(e),`setDeviceId`,j(e),M(e,[`config`,`config.deviceId`])),reset:N(e.reset.bind(e),`reset`,j(e),M(e,[`config`,`config.userId`,`config.deviceId`])),getSessionId:N(e.getSessionId.bind(e),`getSessionId`,j(e),M(e,[`config`])),setSessionId:N(e.setSessionId.bind(e),`setSessionId`,j(e),M(e,[`config`])),extendSession:N(e.extendSession.bind(e),`extendSession`,j(e),M(e,[`config`])),setOptOut:N(e.setOptOut.bind(e),`setOptOut`,j(e),M(e,[`config`])),setTransport:N(e.setTransport.bind(e),`setTransport`,j(e),M(e,[`config`]))}},J=$t(),en=e({Identify:()=>T,Revenue:()=>ve,Types:()=>x,add:()=>Y,createInstance:()=>$t,extendSession:()=>tn,flush:()=>nn,getDeviceId:()=>rn,getSessionId:()=>an,getUserId:()=>on,groupIdentify:()=>sn,identify:()=>X,init:()=>cn,logEvent:()=>ln,remove:()=>un,reset:()=>dn,revenue:()=>fn,runQueuedFunctions:()=>Xt,setDeviceId:()=>pn,setGroup:()=>mn,setOptOut:()=>hn,setSessionId:()=>gn,setTransport:()=>_n,setUserId:()=>vn,track:()=>yn}),Y=J.add,tn=J.extendSession,nn=J.flush,rn=J.getDeviceId,an=J.getSessionId,on=J.getUserId,sn=J.groupIdentify,X=J.identify,cn=J.init,ln=J.logEvent,un=J.remove,dn=J.reset,fn=J.revenue,pn=J.setDeviceId,mn=J.setGroup,hn=J.setOptOut,gn=J.setSessionId,_n=J.setTransport,vn=J.setUserId,yn=J.track,bn={production:`47f1934446a0a010ea3423d040ee53c3`},xn={plan:{version:`767`,branch:`main`,source:`sdk_ts`,versionId:`49f77db1-4274-4e1b-9867-68da7164579e`},ingestionMetadata:{sourceName:`browser-typescript-ampli`,sourceVersion:`2.0.0`}},Sn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`[AI Feedback] Feedback`},Cn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`[AI Visibility] Brand Snapshot`},wn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`[Amplitude] Element Clicked`},Tn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`[Amplitude] Page Viewed`},En=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Add Audio`},Dn=class{constructor(e){this.event_properties=e,this.event_properties=e}
3event_type=`AI Background Music Completed`},On=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`AI Background Music Initiated`},kn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`AI Dubbing Generation Completed`},An=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`AI Dubbing Generation Initiated`},jn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`AI Studio Prompt Screen Viewed`},Mn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`AI Text to Video - Generate Started`},Nn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`AI Transition Generate Completed`},Pn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`AI Transition Generate Initiated`},Fn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`API Code Snippet Copied`},In=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`API Dashboard Viewed`},Ln=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`API External Link Clicked`},Rn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`API Key Created`},zn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`API Key Renamed`},Bn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`API Key Revoked`},Vn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`API Key Secret Copied`},Hn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`API Key Status Toggled`},Un=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Apply Template`},Wn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Audio Edited`},Gn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Auto Edits Applied`},Kn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Auto Edits Feature Toggled`},qn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Auto Edits No Speech Detected Message Viewed`},Jn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Auto Edits Step Completed`},Yn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Auto Edits Step Started`},Xn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Auto Edits Style Panel Viewed`},Zn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Avatar Synthesize Completed`},Qn=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Avatar Synthesize Failed`},$n=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Avatar Synthesize Initiated`},er=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`B-Roll Generation Completed`},tr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`B-Roll Generation Failed`},nr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`B-Roll Generation Started`},rr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`BG Removal Completed`},ir=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`BG Removal Failed`},ar=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`BG Removal Initiated`},or=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Brand Kit Element Added To Project`},sr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Call MCP Tool`},cr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Change Setting`},lr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Clean Audio Completed`},ur=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Clean Audio Failed`},dr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Clean Audio Initiated`},fr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Click API External Link`},pr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Click Button`},mr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Click CTA`},hr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Clip Trim Completed`},gr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Clip Trim Failed`},_r=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Clip Trim Initiated`},vr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Clips Processing Step`},yr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Comment Added`},br=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Comment Deleted`},xr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Comment Edited`},Sr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Comment Initiated`},Cr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Comment Liked`},wr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Compression Complete`},Tr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Compression Failed`},Er=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Compression Initiated`},Dr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Compressor Upload Initiated`},Or=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Confirm Invitation Modal Cancelled`},kr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Confirm Invitation Modal Confirmed`},Ar=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Conversion Complete`},jr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Conversion Failed`},Mr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Conversion Initiated`},Nr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Converter Upload Initiated`},Pr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Copy API Code Snippet`},Fr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Copy API Key Secret`},Ir=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Copy Prompt`},Lr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Create API Key`},Rr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Create Character`},zr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Create New Project Completed`},Br=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Create New Project Failed`},Vr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Create New Project Initiated`},Hr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Create Project`},Ur=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Create Subscription`},Wr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Dashboard Page Viewed`},Gr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Dashboard Viewed`},Kr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Download Compressed File`},qr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Download Converted File`},Jr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Download File`},Yr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Download Video`},Xr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Email Preference Accepted`},Zr=class{constructor(e){this.event_properties=e,this.event_properties=e}
3event_type=`Email Preference Dismissed`},Qr=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Email Preference Modal Viewed`},$r=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Enterprise Contact Clicked`},ei=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Export Video`},ti=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Export Video Completed`},ni=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Export Video Failed`},ri=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Export Video Initiated`},ii=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Eye Contact Correction Completed`},ai=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Eye Contact Correction Failed`},oi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Eye Contact Correction Initiated`},si=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Fabric LipSync Add Character Clicked`},ci=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Fabric LipSync Add Speech Clicked`},li=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Fabric LipSync Character Added`},ui=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Fabric LipSync Create Custom Character Clicked`},di=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Fabric LipSync Speech Added`},fi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Face Filter Completed`},pi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Face Filter Failed`},mi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Face Filter Initiated`},hi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Facebook Pixel Event`},gi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`File Downloaded`},_i=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`File Upload Failed`},vi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Gen AI Image Added To Project`},yi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Gen AI Video Added To Project`},bi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`GenAI Studio Viewed`},xi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Completed`},Si=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Failed`},Ci=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Image`},wi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Image Initiated`},Ti=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Script`},Ei=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Started`},Di=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Video`},Oi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Video Completed`},ki=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Video Failed`},Ai=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Generate Video Initiated`},ji=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Help Button Clicked`},Mi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Help Center Clicked`},Ni=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Help Center Tab Clicked`},Pi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Help Option Selected`},Fi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Help Searched`},Ii=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Image Edited`},Li=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Invite Accepted`},Ri=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Invite Sent`},zi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Joined a Workspace`},Bi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Log In Completed`},Vi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Log In Failed`},Hi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Log In Initiated`},Ui=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`LP Primary CTA Clicked`},Wi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`LP Secondary CTA Clicked`},Gi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Magic Cut Processing Failed`},Ki=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Magic Cut Processing Started`},qi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Magic Cut Processing Succeeded`},Ji=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Magic Expand Completed`},Yi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Magic Expand Initiated`},Xi=class{constructor(e){this.event_properties=e,this.event_properties=e}
3event_type=`Marketing CTA Clicked`},Zi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Micro App - App Viewed`},Qi=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Micro App - Download`},$i=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Micro App - Generation Completed`},ea=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Micro App - Generation Failed`},ta=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Micro App - Generation Started`},na=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Completed`},ra=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Continue Free`},ia=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Name Entered`},aa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Name Entered Error`},oa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Name Step Viewed`},sa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Pricing Step Viewed`},ca=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Segmentation Question Viewed`},la=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Segmentation Survey Completed`},ua=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Segmentation Survey Error`},da=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding Use Case Answered`},fa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Onboarding User Preferences Step Viewed`},pa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Page Loaded`},ma=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Paywall Cancel Subscription Success`},ha=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Paywall Contact Support Click`},ga=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Paywall Error`},_a=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Paywall Exited`},va=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Paywall Shown`},ya=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Paywall Update Card Success`},ba=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Prompt CTA Clicked`},xa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`QR Code CTA Clicked`},Sa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Recording Completed`},Ca=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Recording Initiated`},wa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Recording Upload Completed`},Ta=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Recording Upload Initiated`},Ea=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Referrals - Referral Button Clicked`},Da=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Remove Asset`},Oa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Remove Silences Completed`},ka=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Remove Silences Failed`},Aa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Remove Silences Initiated`},ja=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Rename API Key`},Ma=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Repurposing Button Clicked`},Na=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Request to Join a Workspace Approved`},Pa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Request to Join a Workspace Denied`},Fa=class{constructor(e){this.event_properties=e,this.event_properties=e}
3event_type=`Require signup initiated`},Ia=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Revoke API Key`},La=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`S2V Generation Completed`},Ra=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`S2V Generation Initiated`},za=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`S2V Script Generation Completed`},Ba=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`S2V Script Generation Initiated`},Va=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Script Edited`},Ha=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Script Generator - Script Generate Completed`},Ua=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Script Generator - Script Generate Failed`},Wa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Script Generator - Script Generate Started`},Ga=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Search Template`},Ka=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Select Asset`},qa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Select Prompt`},Ja=class{event_type=`Session End`},Ya=class{event_type=`Session Start`},Xa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Sign Up Completed`},Za=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Sign Up Initiated`},Qa=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Canceled`},$a=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Resumed`},eo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Card Inputted`},to=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Checkout Session Viewed`},no=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Compare Plans Clicked`},ro=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Initiated`},io=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Payment Viewed`},ao=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Plan Change`},oo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Plan Comparison Viewed`},so=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Special Offer Comparison Viewed`},co=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Subscribe Complete`},lo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Subscribe Error`},uo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Subscribe Initiated`},fo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Support Button Clicked`},po=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Upgrade Complete`},mo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Upgrade Error`},ho=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subscription Workflow Upgrade Initiated`},go=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subtitles Cancelled`},_o=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subtitles Completed`},vo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subtitles Downloaded`},yo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subtitles Failed`},bo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Subtitles Initiated`},xo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Text Added`},So=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Toggle API Key Status`},Co=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Translation Completed`},wo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Translation Failed`},To=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Translation Initiated`},Eo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Trim Video Element`},Do=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`TTS Synthesize Completed`},Oo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`TTS Synthesize Failed`},ko=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`TTS Synthesize Intitiated`},Ao=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Update Subscription`},jo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Upload File`},Mo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Upload File Completed`},No=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Upload File Failed`},Po=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Upload File Initiated`},Fo=class{constructor(e){this.event_properties=e,this.event_properties=e}
3event_type=`Video Edited`},Io=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Video Editor Viewed`},Lo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Video Shared Completed`},Ro=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Video Shared Initiated`},zo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`View Page`},Bo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`View Paywall`},Vo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Voice Clone Completed`},Ho=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Voice Clone Initiated`},Uo=class{constructor(e){this.event_properties=e,this.event_properties=e}event_type=`Webflow CTA Clicked`},Z=()=>({promise:Promise.resolve()}),Wo=new class{disabled=!1;amplitude;get client(){return this.isInitializedAndEnabled(),this.amplitude}get isLoaded(){return this.amplitude!=null}isInitializedAndEnabled(){return this.amplitude?!this.disabled:(console.error(`ERROR: Ampli is not yet initialized. Have you called ampli.load() on app start?`),!1)}load(e){if(this.disabled=e.disabled??!1,this.amplitude)return console.warn(`WARNING: Ampli is already intialized. Ampli.load() should be called once at application startup.`),Z();let t=null;if(e.client&&`apiKey`in e.client?t=e.client.apiKey:`environment`in e&&(t=bn[e.environment]),e.client&&`instance`in e.client)this.amplitude=e.client.instance;else if(t){this.amplitude=$t();let n=e.client&&`configuration`in e.client?e.client.configuration:{};return this.amplitude.init(t,void 0,{...xn,...n})}else console.error(`ERROR: ampli.load() requires 'environment', 'client.apiKey', or 'client.instance'`);return Z()}identify(e,t,n){if(!this.isInitializedAndEnabled())return Z();e&&(n={...n,user_id:e});let r=new T,i=t;if(i!=null)for(let[e,t]of Object.entries(i))r.set(e,t);return this.amplitude.identify(r,n)}flush(){return this.isInitializedAndEnabled()?this.amplitude.flush():Z()}track(e,t){return this.isInitializedAndEnabled()?this.amplitude.track(e,void 0,t):Z()}aiFeedbackFeedback(e,t){return this.track(new Sn(e),t)}aiVisibilityBrandSnapshot(e,t){return this.track(new Cn(e),t)}amplitudeElementClicked(e,t){return this.track(new wn(e),t)}amplitudePageViewed(e,t){return this.track(new Tn(e),t)}addAudio(e,t){return this.track(new En(e),t)}aiBackgroundMusicCompleted(e,t){return this.track(new Dn(e),t)}aiBackgroundMusicInitiated(e,t){return this.track(new On(e),t)}aiDubbingGenerationCompleted(e,t){return this.track(new kn(e),t)}aiDubbingGenerationInitiated(e,t){return this.track(new An(e),t)}aiStudioPromptScreenViewed(e,t){return this.track(new jn(e),t)}aiTextToVideoGenerateStarted(e,t){return this.track(new Mn(e),t)}aiTransitionGenerateCompleted(e,t){return this.track(new Nn(e),t)}aiTransitionGenerateInitiated(e,t){return this.track(new Pn(e),t)}apiCodeSnippetCopied(e,t){return this.track(new Fn(e),t)}apiDashboardViewed(e,t){return this.track(new In(e),t)}apiExternalLinkClicked(e,t){return this.track(new Ln(e),t)}apiKeyCreated(e,t){return this.track(new Rn(e),t)}apiKeyRenamed(e,t){return this.track(new zn(e),t)}apiKeyRevoked(e,t){return this.track(new Bn(e),t)}apiKeySecretCopied(e,t){return this.track(new Vn(e),t)}apiKeyStatusToggled(e,t){return this.track(new Hn(e),t)}
3applyTemplate(e,t){return this.track(new Un(e),t)}audioEdited(e,t){return this.track(new Wn(e),t)}autoEditsApplied(e,t){return this.track(new Gn(e),t)}autoEditsFeatureToggled(e,t){return this.track(new Kn(e),t)}autoEditsNoSpeechDetectedMessageViewed(e,t){return this.track(new qn(e),t)}autoEditsStepCompleted(e,t){return this.track(new Jn(e),t)}autoEditsStepStarted(e,t){return this.track(new Yn(e),t)}autoEditsStylePanelViewed(e,t){return this.track(new Xn(e),t)}avatarSynthesizeCompleted(e,t){return this.track(new Zn(e),t)}avatarSynthesizeFailed(e,t){return this.track(new Qn(e),t)}avatarSynthesizeInitiated(e,t){return this.track(new $n(e),t)}bRollGenerationCompleted(e,t){return this.track(new er(e),t)}bRollGenerationFailed(e,t){return this.track(new tr(e),t)}bRollGenerationStarted(e,t){return this.track(new nr(e),t)}bgRemovalCompleted(e,t){return this.track(new rr(e),t)}bgRemovalFailed(e,t){return this.track(new ir(e),t)}bgRemovalInitiated(e,t){return this.track(new ar(e),t)}brandKitElementAddedToProject(e,t){return this.track(new or(e),t)}callMcpTool(e,t){return this.track(new sr(e),t)}changeSetting(e,t){return this.track(new cr(e),t)}cleanAudioCompleted(e,t){return this.track(new lr(e),t)}cleanAudioFailed(e,t){return this.track(new ur(e),t)}cleanAudioInitiated(e,t){return this.track(new dr(e),t)}clickApiExternalLink(e,t){return this.track(new fr(e),t)}clickButton(e,t){return this.track(new pr(e),t)}clickCta(e,t){return this.track(new mr(e),t)}clipTrimCompleted(e,t){return this.track(new hr(e),t)}clipTrimFailed(e,t){return this.track(new gr(e),t)}clipTrimInitiated(e,t){return this.track(new _r(e),t)}clipsProcessingStep(e,t){return this.track(new vr(e),t)}commentAdded(e,t){return this.track(new yr(e),t)}commentDeleted(e,t){return this.track(new br(e),t)}commentEdited(e,t){return this.track(new xr(e),t)}commentInitiated(e,t){return this.track(new Sr(e),t)}commentLiked(e,t){return this.track(new Cr(e),t)}compressionComplete(e,t){return this.track(new wr(e),t)}compressionFailed(e,t){return this.track(new Tr(e),t)}compressionInitiated(e,t){return this.track(new Er(e),t)}compressorUploadInitiated(e,t){return this.track(new Dr(e),t)}confirmInvitationModalCancelled(e,t){return this.track(new Or(e),t)}confirmInvitationModalConfirmed(e,t){return this.track(new kr(e),t)}conversionComplete(e,t){return this.track(new Ar(e),t)}conversionFailed(e,t){return this.track(new jr(e),t)}conversionInitiated(e,t){return this.track(new Mr(e),t)}converterUploadInitiated(e,t){return this.track(new Nr(e),t)}copyApiCodeSnippet(e,t){return this.track(new Pr(e),t)}copyApiKeySecret(e,t){return this.track(new Fr(e),t)}copyPrompt(e,t){return this.track(new Ir(e),t)}createApiKey(e,t){return this.track(new Lr(e),t)}createCharacter(e,t){return this.track(new Rr(e),t)}createNewProjectCompleted(e,t){return this.track(new zr(e),t)}createNewProjectFailed(e,t){return this.track(new Br(e),t)}createNewProjectInitiated(e,t){return this.track(new Vr(e),t)}createProject(e,t){return this.track(new Hr(e),t)}createSubscription(e,t){return this.track(new Ur(e),t)}dashboardPageViewed(e,t){return this.track(new Wr(e),t)}dashboardViewed(e,t){return this.track(new Gr(e),t)}downloadCompressedFile(e,t){return this.track(new Kr(e),t)}downloadConvertedFile(e,t){return this.track(new qr(e),t)}downloadFile(e,t){return this.track(new Jr(e),t)}downloadVideo(e,t){return this.track(new Yr(e),t)}emailPreferenceAccepted(e,t){return this.track(new Xr(e),t)}emailPreferenceDismissed(e,t){return this.track(new Zr(e),t)}emailPreferenceModalViewed(e,t){return this.track(new Qr(e),t)}enterpriseContactClicked(e,t){return this.track(new $r(e),t)}exportVideo(e,t){return this.track(new ei(e),t)}exportVideoCompleted(e,t){return this.track(new ti(e),t)}exportVideoFailed(e,t){return this.track(new ni(e),t)}exportVideoInitiated(e,t){return this.track(new ri(e),t)}eyeContactCorrectionCompleted(e,t){return this.track(new ii(e),t)}eyeContactCorrectionFailed(e,t){return this.track(new ai(e),t)}eyeContactCorrectionInitiated(e,t){return this.track(new oi(e),t)}fabricLipSyncAddCharacterClicked(e,t){return this.track(new si(e),t)}fabricLipSyncAddSpeechClicked(e,t){return this.track(new ci(e),t)}fabricLipSyncCharacterAdded(e,t){return this.track(new li(e),t)}fabricLipSyncCreateCustomCharacterClicked(e,t){return this.track(new ui(e),t)}fabricLipSyncSpeechAdded(e,t){return this.track(new di(e),t)}faceFilterCompleted(e,t){return this.track(new fi(e),t)}faceFilterFailed(e,t){return this.track(new pi(e),t)}faceFilterInitiated(e,t){return this.track(new mi(e),t)}facebookPixelEvent(e,t){return this.track(new hi(e),t)}fileDownloaded(e,t){return this.track(new gi(e),t)}fileUploadFailed(e,t){return this.track(new _i(e),t)}genAiImageAddedToProject(e,t){return this.track(new vi(e),t)}genAiVideoAddedToProject(e,t){return this.track(new yi(e),t)}genAiStudioViewed(e,t){return this.track(new bi(e),t)}generateCompleted(e,t){return this.track(new xi(e),t)}generateFailed(e,t){return this.track(new Si(e),t)}generateImage(e,t){return this.track(new Ci(e),t)}generateImageInitiated(e,t){return this.track(new wi(e),t)}generateScript(e,t){return this.track(new Ti(e),t)}generateStarted(e,t){return this.track(new Ei(e),t)}generateVideo(e,t){return this.track(new Di(e),t)}generateVideoCompleted(e,t){return this.track(new Oi(e),t)}generateVideoFailed(e,t){return this.track(new ki(e),t)}generateVideoInitiated(e,t){return this.track(new Ai(e),t)}helpButtonClicked(e,t){return this.track(new ji(e),t)}helpCenterClicked(e,t){return this.track(new Mi(e),t)}helpCenterTabClicked(e,t){return this.track(new Ni(e),t)}helpOptionSelected(e,t){return this.track(new Pi(e),t)}helpSearched(e,t){return this.track(new Fi(e),t)}imageEdited(e,t){return this.track(new Ii(e),t)}inviteAccepted(e,t){return this.track(new Li(e),t)}inviteSent(e,t){return this.track(new Ri(e),t)}joinedAWorkspace(e,t){return this.track(new zi(e),t)}logInCompleted(e,t){return this.track(new Bi(e),t)}logInFailed(e,t){return this.track(new Vi(e),t)}logInInitiated(e,t){return this.track(new Hi(e),t)}
3lpPrimaryCtaClicked(e,t){return this.track(new Ui(e),t)}lpSecondaryCtaClicked(e,t){return this.track(new Wi(e),t)}magicCutProcessingFailed(e,t){return this.track(new Gi(e),t)}magicCutProcessingStarted(e,t){return this.track(new Ki(e),t)}magicCutProcessingSucceeded(e,t){return this.track(new qi(e),t)}magicExpandCompleted(e,t){return this.track(new Ji(e),t)}magicExpandInitiated(e,t){return this.track(new Yi(e),t)}marketingCtaClicked(e,t){return this.track(new Xi(e),t)}microAppAppViewed(e,t){return this.track(new Zi(e),t)}microAppDownload(e,t){return this.track(new Qi(e),t)}microAppGenerationCompleted(e,t){return this.track(new $i(e),t)}microAppGenerationFailed(e,t){return this.track(new ea(e),t)}microAppGenerationStarted(e,t){return this.track(new ta(e),t)}onboardingCompleted(e,t){return this.track(new na(e),t)}onboardingContinueFree(e,t){return this.track(new ra(e),t)}onboardingNameEntered(e,t){return this.track(new ia(e),t)}onboardingNameEnteredError(e,t){return this.track(new aa(e),t)}onboardingNameStepViewed(e,t){return this.track(new oa(e),t)}onboardingPricingStepViewed(e,t){return this.track(new sa(e),t)}onboardingSegmentationQuestionViewed(e,t){return this.track(new ca(e),t)}onboardingSegmentationSurveyCompleted(e,t){return this.track(new la(e),t)}onboardingSegmentationSurveyError(e,t){return this.track(new ua(e),t)}onboardingUseCaseAnswered(e,t){return this.track(new da(e),t)}onboardingUserPreferencesStepViewed(e,t){return this.track(new fa(e),t)}pageLoaded(e,t){return this.track(new pa(e),t)}paywallCancelSubscriptionSuccess(e,t){return this.track(new ma(e),t)}paywallContactSupportClick(e,t){return this.track(new ha(e),t)}paywallError(e,t){return this.track(new ga(e),t)}paywallExited(e,t){return this.track(new _a(e),t)}paywallShown(e,t){return this.track(new va(e),t)}paywallUpdateCardSuccess(e,t){return this.track(new ya(e),t)}promptCtaClicked(e,t){return this.track(new ba(e),t)}qrCodeCtaClicked(e,t){return this.track(new xa(e),t)}recordingCompleted(e,t){return this.track(new Sa(e),t)}recordingInitiated(e,t){return this.track(new Ca(e),t)}recordingUploadCompleted(e,t){return this.track(new wa(e),t)}recordingUploadInitiated(e,t){return this.track(new Ta(e),t)}referralsReferralButtonClicked(e,t){return this.track(new Ea(e),t)}removeAsset(e,t){return this.track(new Da(e),t)}removeSilencesCompleted(e,t){return this.track(new Oa(e),t)}removeSilencesFailed(e,t){return this.track(new ka(e),t)}removeSilencesInitiated(e,t){return this.track(new Aa(e),t)}renameApiKey(e,t){return this.track(new ja(e),t)}repurposingButtonClicked(e,t){return this.track(new Ma(e),t)}requestToJoinAWorkspaceApproved(e,t){return this.track(new Na(e),t)}requestToJoinAWorkspaceDenied(e,t){return this.track(new Pa(e),t)}requireSignupInitiated(e,t){return this.track(new Fa(e),t)}revokeApiKey(e,t){return this.track(new Ia(e),t)}s2VGenerationCompleted(e,t){return this.track(new La(e),t)}s2VGenerationInitiated(e,t){return this.track(new Ra(e),t)}s2VScriptGenerationCompleted(e,t){return this.track(new za(e),t)}s2VScriptGenerationInitiated(e,t){return this.track(new Ba(e),t)}scriptEdited(e,t){return this.track(new Va(e),t)}scriptGeneratorScriptGenerateCompleted(e,t){return this.track(new Ha(e),t)}scriptGeneratorScriptGenerateFailed(e,t){return this.track(new Ua(e),t)}scriptGeneratorScriptGenerateStarted(e,t){return this.track(new Wa(e),t)}searchTemplate(e,t){return this.track(new Ga(e),t)}selectAsset(e,t){return this.track(new Ka(e),t)}selectPrompt(e,t){return this.track(new qa(e),t)}sessionEnd(e){return this.track(new Ja,e)}sessionStart(e){return this.track(new Ya,e)}signUpCompleted(e,t){return this.track(new Xa(e),t)}signUpInitiated(e,t){return this.track(new Za(e),t)}subscriptionCanceled(e,t){return this.track(new Qa(e),t)}subscriptionResumed(e,t){return this.track(new $a(e),t)}subscriptionWorkflowCardInputted(e,t){return this.track(new eo(e),t)}subscriptionWorkflowCheckoutSessionViewed(e,t){return this.track(new to(e),t)}subscriptionWorkflowComparePlansClicked(e,t){return this.track(new no(e),t)}subscriptionWorkflowInitiated(e,t){return this.track(new ro(e),t)}subscriptionWorkflowPaymentViewed(e,t){return this.track(new io(e),t)}subscriptionWorkflowPlanChange(e,t){return this.track(new ao(e),t)}subscriptionWorkflowPlanComparisonViewed(e,t){return this.track(new oo(e),t)}subscriptionWorkflowSpecialOfferComparisonViewed(e,t){return this.track(new so(e),t)}subscriptionWorkflowSubscribeComplete(e,t){return this.track(new co(e),t)}subscriptionWorkflowSubscribeError(e,t){return this.track(new lo(e),t)}subscriptionWorkflowSubscribeInitiated(e,t){return this.track(new uo(e),t)}subscriptionWorkflowSupportButtonClicked(e,t){return this.track(new fo(e),t)}subscriptionWorkflowUpgradeComplete(e,t){return this.track(new po(e),t)}subscriptionWorkflowUpgradeError(e,t){return this.track(new mo(e),t)}subscriptionWorkflowUpgradeInitiated(e,t){return this.track(new ho(e),t)}subtitlesCancelled(e,t){return this.track(new go(e),t)}subtitlesCompleted(e,t){return this.track(new _o(e),t)}subtitlesDownloaded(e,t){return this.track(new vo(e),t)}subtitlesFailed(e,t){return this.track(new yo(e),t)}subtitlesInitiated(e,t){return this.track(new bo(e),t)}textAdded(e,t){return this.track(new xo(e),t)}toggleApiKeyStatus(e,t){return this.track(new So(e),t)}translationCompleted(e,t){return this.track(new Co(e),t)}translationFailed(e,t){return this.track(new wo(e),t)}translationInitiated(e,t){return this.track(new To(e),t)}trimVideoElement(e,t){return this.track(new Eo(e),t)}ttsSynthesizeCompleted(e,t){return this.track(new Do(e),t)}ttsSynthesizeFailed(e,t){return this.track(new Oo(e),t)}ttsSynthesizeIntitiated(e,t){return this.track(new ko(e),t)}updateSubscription(e,t){return this.track(new Ao(e),t)}uploadFile(e,t){return this.track(new jo(e),t)}uploadFileCompleted(e,t){return this.track(new Mo(e),t)}uploadFileFailed(e,t){return this.track(new No(e),t)}uploadFileInitiated(e,t){return this.track(new Po(e),t)}videoEdited(e,t){return this.track(new Fo(e),t)}videoEditorViewed(e,t){return this.track(new Io(e),t)}videoSharedCompleted(e,t){return this.track(new Lo(e),t)}videoSharedInitiated(e,t){return this.track(new Ro(e),t)}viewPage(e,t){return this.track(new zo(e),t)}viewPaywall(e,t){return this.track(new Bo(e),t)}voiceCloneCompleted(e,t){return this.track(new Vo(e),t)}voiceCloneInitiated(e,t){return this.track(new Ho(e),t)}webflowCtaClicked(e,t){return this.track(new Uo(e),t)}},Q=!1,$={},Go=(e,t)=>{$[e]=t},Ko=e=>{delete $[e]},qo=()=>{let e={};for(let t of Object.keys($)){let n=$[t];try{let r=typeof n==`function`?n():n;r!==void 0&&(e[t]=r)}catch{}}return e},Jo={name:`veed-global-event-properties`,type:`enrichment`,setup:async()=>{},execute:async e=>{let{platform:t,...n}=qo();return t!==void 0&&(e.platform=String(t)),e.event_properties={pathname:typeof window<`u`?window.location?.pathname:void 0,...n,...e.event_properties},e}},Yo=()=>{let e=localStorage.getItem(`userId`);e&&vn(e)},Xo=()=>!!(window&&window.localStorage&&window.localStorage.getItem(`disable-amplitude-batching`)),Zo=async(e,t,n)=>{if(Q)return;Q=!0;let{sessionReplay:r,...i}=n??{};if(await cn(e,t,{flushIntervalMillis:Xo()?0:1e3,autocapture:{attribution:!0,formInteractions:!1,fileDownloads:!1,sessions:!0},...i}).promise,await Y(Jo).promise,r!==!1)try{let{sessionReplayPlugin:e}=await f(async()=>{let{sessionReplayPlugin:e}=await import(`./esm-BcpJpxIP.js`);return{sessionReplayPlugin:e}},__vite__mapDeps([0,1,2,3,4,5]));await Y(e({useWebWorker:!0,...r})).promise}catch(e){console.warn(`[analytics-browser] session replay failed to load`,e)}Yo()},Qo={init:Zo,close:()=>{Q=!1},setUserId:vn,setUserProperties:e=>{let t=new T;Object.keys(e).forEach(n=>{let r=e[n];r!==void 0&&t.set(n,r)}),X(t)},setOnce:(e,t)=>{let n=new T;return n.setOnce(e,t),X(n)},add:(e,t)=>{let n=new T;return n.add(e,t),X(n)},setGlobalEventProperty:Go,removeGlobalEventProperty:Ko,addExtraProperty:(e,t)=>{Go(e,t)},removeExtraProperty:e=>{Ko(e)},getDeviceId:rn},$o=async(...e)=>{Wo.isLoaded||(await Zo(...e),await Wo.load({client:{instance:en}}).promise)},es=Wo;export{$o as n,es as r,Qo as t}; 4//# sourceMappingURL=index.es-DN9PS1Xw.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.