PageSourceSearch

https://s1.sellfox.com/sellfox-web/2026-09/dist/BZUVUJ2w.js

js sellfox.com collected 2026-09-24 08:45:06 UTC 81,413 bytes, 2 lines download raw bytes

vendor: 4,359 bytes, line 1
1import{bo as Kt,bp as Gt}from"./YItXswQM.js";var We=function(t,e){return We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},We(t,e)};function Ie(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");We(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}var m=function(){return m=Object.assign||function(e){for(var i,r=1,n=arguments.length;r<n;r++){i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},m.apply(this,arguments)};function Qe(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(i[r[n]]=t[r[n]]);return i}function y(t,e,i,r){function n(o){return o instanceof i?o:new i(function(a){a(o)})}return new(i||(i=Promise))(function(o,a){function c(h){try{l(r.next(h))}catch(g){a(g)}}function f(h){try{l(r.throw(h))}catch(g){a(g)}}function l(h){h.done?o(h.value):n(h.value).then(c,f)}l((r=r.apply(t,e||[])).next())})}function w(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,n,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(l){return function(h){return f([l,h])}}function f(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(r=1,n&&(o=l[0]&2?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(l[0]===6&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=e.call(t,i)}catch(h){l=[6,h],n=0}finally{r=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function ce(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(t,e){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var r=i.call(t),n,o=[],a;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)o.push(n.value)}catch(c){a={error:c}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(a)throw a.error}}return o}function $(t,e,i){if(i||arguments.length===2)for(var r=0,n=e.length,o;r<n;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var B;(function(t){t.SET="$set",t.SET_ONCE="$setOnce",t.ADD="$add",t.APPEND="$append",t.PREPEND="$prepend",t.REMOVE="$remove",t.PREINSERT="$preInsert",t.POSTINSERT="$postInsert",t.UNSET="$unset",t.CLEAR_ALL="$clearAll"})(B||(B={}));var ue;(function(t){t.REVENUE_PRODUCT_ID="$productId",t.REVENUE_QUANTITY="$quantity",t.REVENUE_PRICE="$price",t.REVENUE_TYPE="$revenueType",t.REVENUE="$revenue"})(ue||(ue={}));var he;(function(t){t.IDENTIFY="$identify",t.GROUP_IDENTIFY="$groupidentify",t.REVENUE="revenue_amount"})(he||(he={}));var Y;(function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Warn=2]="Warn",t[t.Verbose=3]="Verbose",t[t.Debug=4]="Debug"})(Y||(Y={}));var G;(function(t){t.BEFORE="before",t.ENRICHMENT="enrichment",t.DESTINATION="destination"})(G||(G={}));var De;(function(t){t.US="US",t.EU="EU"})(De||(De={}));var j;(function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.PayloadTooLarge="payload_too_large",t.Invalid="invalid",t.Failed="failed",t.Timeout="Timeout",t.SystemError="SystemError"})(j||(j={}));var Ne;
1(function(t){t.XHR="xhr",t.SendBeacon="beacon",t.Fetch="fetch"})(Ne||(Ne={}));var at="-",Me="MYJ",Ht="".concat(Me,"_unsent"),Tt="/api/report.json",Wt="/api/report.json",Qt="/api/batch-report.json",Yt="/api/batch-report.json",Xt=1e3,Ye=function(t){if(Object.keys(t).length>Xt)return!1;for(var e in t){var i=t[e];if(!kt(e,i))return!1}return!0},kt=function(t,e){var i,r;if(typeof t!="string")return!1;if(Array.isArray(e)){var n=!0;try{for(var o=ce(e),a=o.next();!a.done;a=o.next()){var c=a.value;if(Array.isArray(c))return!1;if(typeof c=="object")n=n&&Ye(c);else if(!["number","string"].includes(typeof c))return!1;if(!n)return!1}}catch(f){i={error:f}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}}else{if(e==null)return!1;if(typeof e=="object")return Ye(e);if(!["number","string","boolean"].includes(typeof e))return!1}return!0},Le=function(){function t(){this._propertySet=new Set,this._properties={}}return t.prototype.getUserProperties=function(){return m({},this._properties)},t.prototype.set=function(e,i){return this._safeSet(B.SET,e,i),this},t.prototype.setOnce=function(e,i){return this._safeSet(B.SET_ONCE,e,i),this},t.prototype.append=function(e,i){return this._safeSet(B.APPEND,e,i),this},t.prototype.prepend=function(e,i){return this._safeSet(B.PREPEND,e,i),this},t.prototype.postInsert=function(e,i){return this._safeSet(B.POSTINSERT,e,i),this},t.prototype.preInsert=function(e,i){return this._safeSet(B.PREINSERT,e,i),this},t.prototype.remove=function(e,i){return this._safeSet(B.REMOVE,e,i),this},t.prototype.add=function(e,i){return this._safeSet(B.ADD,e,i),this},t.prototype.unset=function(e){return this._safeSet(B.UNSET,e,at),this},t.prototype.clearAll=function(){return this._properties={},this._properties[B.CLEAR_ALL]=at,this},t.prototype._safeSet=function(e,i,r){if(this._validate(e,i,r)){var n=this._properties[e];return n===void 0&&(n={},this._properties[e]=n),n[i]=r,this._propertySet.add(i),!0}return!1},t.prototype._validate=function(e,i,r){return this._properties[B.CLEAR_ALL]!==void 0||this._propertySet.has(i)?!1:e===B.ADD?typeof r=="number":e!==B.UNSET&&e!==B.REMOVE?kt(i,r):!0},t}(),Zt=function(t,e,i){var r=typeof t=="string"?{event_type:t}:t;return m(m(m({},r),i),e&&{event_properties:e})},Pt=function(t,e){var i=m(m({},e),{event_type:he.IDENTIFY,user_properties:t.getUserProperties()});return i},$t=function(t,e,i,r){var n,o=m(m({},r),{event_type:he.GROUP_IDENTIFY,group_properties:i.getUserProperties(),groups:(n={},n[t]=e,n)});return o},Jt=function(t,e,i){var r,n=new Le;n.set(t,e);var o=m(m({},i),{event_type:he.IDENTIFY,user_properties:n.getUserProperties(),groups:(r={},r[t]=e,r)});return o},ei=function(t,e){return m(m({},e),{event_type:he.REVENUE,event_properties:t.getEventProperties()})},Ee=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=j.Unknown),{event:t,code:e,message:i}},ti=function(){function t(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return t.prototype.register=function(e,i){return y(this,void 0,void 0,function(){return w(this,function(r){switch(r.label){case 0:return[4,e.setup(i,this.client)];case 1:return r.sent(),this.plugins.push(e),[2]}})})},t.prototype.deregister=function(e){return this.plugins.splice(this.plugins.findIndex(function(i){return i.name===e}),1),Promise.resolve()},t.prototype.reset=function(e){this.applying=!1,this.plugins=[],this.client=e},t.prototype.push=function(e){var i=this;return new Promise(function(r){i.queue.push([e,r]),i.scheduleApply(0)})},t.prototype.scheduleApply=function(e){var i=this;this.applying||(this.applying=!0,setTimeout(function(){i.apply(i.queue.shift()).then(function(){i.applying=!1,i.queue.length>0&&i.scheduleApply(0)})},e))},t.prototype.apply=function(e){return y(this,void 0,void 0,function(){var i,r,n,o,a,c,f,v,u,l,h,g,s,v,u,d,p,E,x,_,b,O;return w(this,function(P){switch(P.label){case 0:if(!e)return[2];i=F(e,1),r=i[0],n=F(e,2),o=n[1],a=this.plugins.filter(function(U){return U.type===G.BEFORE}),P.label=1;case 1:P.trys.push([1,6,7,8]),c=ce(a),f=c.next(),P.label=2;case 2:return f.done?[3,5]:(v=f.value,[4,v.execute(m({},r))]);case 3:if(u=P.sent(),u===null)return o({event:r,code:0,message:""}),[2];r=u,P.label=4;case 4:return f=c.next(),[3,2];case 5:return[3,8];case 6:return l=P.sent(),x={error:l},[3,8];case 7:try{f&&!f.done&&(_=c.return)&&_.call(c)}finally{if(x)throw x.error}
1return[7];case 8:h=this.plugins.filter(function(U){return U.type===G.ENRICHMENT}),P.label=9;case 9:P.trys.push([9,14,15,16]),g=ce(h),s=g.next(),P.label=10;case 10:return s.done?[3,13]:(v=s.value,[4,v.execute(m({},r))]);case 11:if(u=P.sent(),u===null)return o({event:r,code:0,message:""}),[2];r=u,P.label=12;case 12:return s=g.next(),[3,10];case 13:return[3,16];case 14:return d=P.sent(),b={error:d},[3,16];case 15:try{s&&!s.done&&(O=g.return)&&O.call(g)}finally{if(b)throw b.error}return[7];case 16:return p=this.plugins.filter(function(U){return U.type===G.DESTINATION}),E=p.map(function(U){var V=m({},r);return U.execute(V).catch(function(D){return Ee(V,0,String(D))})}),Promise.all(E).then(function(U){var V=F(U,1),D=V[0];o(D)}),[2]}})})},t.prototype.flush=function(){return y(this,void 0,void 0,function(){var e,i,r,n=this;return w(this,function(o){switch(o.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(a){return n.apply(a)}))];case 1:return o.sent(),i=this.plugins.filter(function(a){return a.type===G.DESTINATION}),r=i.map(function(a){return a.flush&&a.flush()}),[4,Promise.all(r)];case 2:return o.sent(),[2]}})})},t}(),ii="Event tracked successfully",ri="Unexpected error occurred",ni="Event rejected due to exceeded retry count",oi="Event skipped due to optOut config",ai="Event rejected due to missing API key",si="Invalid API key",ui="Client not initialized",Q=function(t){return{promise:t||Promise.resolve()}},ci=function(){function t(e){e===void 0&&(e="$default"),this.initializing=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new ti(this),this.name=e}return t.prototype._init=function(e){return y(this,void 0,void 0,function(){return w(this,function(i){switch(i.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return i.sent(),[2]}})})},t.prototype.runQueuedFunctions=function(e){return y(this,void 0,void 0,function(){var i,r,n,o,a,c,f;return w(this,function(l){switch(l.label){case 0:i=this[e],this[e]=[],l.label=1;case 1:l.trys.push([1,6,7,8]),r=ce(i),n=r.next(),l.label=2;case 2:return n.done?[3,5]:(o=n.value,[4,o()]);case 3:l.sent(),l.label=4;case 4:return n=r.next(),[3,2];case 5:return[3,8];case 6:return a=l.sent(),c={error:a},[3,8];case 7:try{n&&!n.done&&(f=r.return)&&f.call(r)}finally{if(c)throw c.error}return[7];case 8:return[2]}})})},t.prototype.track=function(e,i,r){var n=Zt(e,i,r);return Q(this.dispatch(n))},t.prototype.identify=function(e,i){var r=Pt(e,i);return Q(this.dispatch(r))},t.prototype.groupIdentify=function(e,i,r,n){var o=$t(e,i,r,n);return Q(this.dispatch(o))},t.prototype.setGroup=function(e,i,r){var n=Jt(e,i,r);return Q(this.dispatch(n))},t.prototype.revenue=function(e,i){var r=ei(e,i);return Q(this.dispatch(r))},t.prototype.add=function(e){return this.config?Q(this.timeline.register(e,this.config)):(this.q.push(this.add.bind(this,e)),Q())},t.prototype.remove=function(e){return this.config?Q(this.timeline.deregister(e)):(this.q.push(this.remove.bind(this,e)),Q())},t.prototype.dispatchWithCallback=function(e,i){if(!this.config)return i(Ee(e,0,ui));this.process(e).then(i)},t.prototype.dispatch=function(e){return y(this,void 0,void 0,function(){var i=this;return w(this,function(r){return this.config?[2,this.process(e)]:[2,new Promise(function(n){i.dispatchQ.push(i.dispatchWithCallback.bind(i,e,n))})]})})},t.prototype.process=function(e){return y(this,void 0,void 0,function(){var n,i,r,n;return w(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.config.optOut?[2,Ee(e,0,oi)]:[4,this.timeline.push(e)];case 1:return n=o.sent(),n.code===200?this.config.loggerProvider.log(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return i=o.sent(),r=String(i),this.config.loggerProvider.error(r),n=Ee(e,0,r),[2,n];case 3:return[2]}})})},t.prototype.setOptOut=function(e){if(!this.config){this.q.push(this.setOptOut.bind(this,!!e));return}this.config.optOut=!!e},t.prototype.flush=function(){return Q(this.timeline.flush())},t}(),di=function(){function t(){this.productId="",this.quantity=1,this.price=0}return t.prototype.setProductId=function(e){return this.productId=e,this},t.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},t.prototype.setPrice=function(e){return this.price=e,this},t.prototype.setRevenueType=function(e){return this.revenueType=e,this},t.prototype.setRevenue=function(e){return this.revenue=e,this},t.prototype.setEventProperties=function(e){return Ye(e)&&(this.properties=e),this},t.prototype.getEventProperties=function(){var e=this.properties?m({},this.properties):{};return e[ue.REVENUE_PRODUCT_ID]=this.productId,e[ue.REVENUE_QUANTITY]=this.quantity,e[ue.REVENUE_PRICE]=this.price,e[ue.REVENUE_TYPE]=this.revenueType,e[ue.REVENUE]=this.revenue,e},t}(),li=function(t,e){var i=Math.max(e,1);return t.reduce(function(r,n,o){var a=Math.floor(o/i);return r[a]||(r[a]=[]),r[a].push(n),r},[])},xe="Amplitude Logger ",fi=function(){function t(){this.logLevel=Y.None}return t.prototype.disable=function(){this.logLevel=Y.None},t.prototype.enable=function(e){e===void 0&&(e=Y.Warn),this.logLevel=e},t.prototype.log=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];this.logLevel<Y.Verbose||console.log("".concat(xe,"[Log]: ").concat(e.join(" ")))},t.prototype.warn=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];this.logLevel<Y.Warn||console.warn("".concat(xe,"[Warn]: ").concat(e.join(" ")))},t.prototype.error=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];this.logLevel<Y.Error||console.error("".concat(xe,"[Error]: ").concat(e.join(" ")))},t.prototype.debug=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];this.logLevel<Y.Debug||console.log("".concat(xe,"[Debug]: ").concat(e.join(" ")))},t}(),Ce=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,logLevel:Y.Warn,loggerProvider:new fi,optOut:!1,serverUrl:Tt,serverZone:De.US,useBatch:!1}},vi=function(){function t(e){var i,r,n,o;this._optOut=!1;var a=Ce();this.apiKey=e.apiKey,this.flushIntervalMillis=(i=e.flushIntervalMillis)!==null&&i!==void 0?i:a.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||a.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||a.flushQueueSize,this.loggerProvider=e.loggerProvider||a.loggerProvider,this.logLevel=(r=e.logLevel)!==null&&r!==void 0?r:a.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.optOut=(n=e.optOut)!==null&&n!==void 0?n:a.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||a.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=(o=e.useBatch)!==null&&o!==void 0?o:a.useBatch,this.loggerProvider.enable(this.logLevel);var c=Ot(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=c.serverZone,this.serverUrl=c.serverUrl}return Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e}
1,enumerable:!1,configurable:!0}),t}(),hi=function(t,e){return t===De.EU?e?Yt:Wt:e?Qt:Tt},Ot=function(t,e,i){if(t===void 0&&(t=""),e===void 0&&(e=Ce().serverZone),i===void 0&&(i=Ce().useBatch),t)return{serverUrl:t,serverZone:void 0};var r=["US","EU"].includes(e)?e:Ce().serverZone;return{serverZone:r,serverUrl:hi(r,i)}},pi=function(){function t(){this.name="amplitude",this.type=G.DESTINATION,this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return t.prototype.setup=function(e){var i;return y(this,void 0,void 0,function(){var r,n=this;return w(this,function(o){switch(o.label){case 0:return this.config=e,this.storageKey="".concat(Ht,"_").concat(this.config.apiKey.substring(0,10)),[4,(i=this.config.storageProvider)===null||i===void 0?void 0:i.get(this.storageKey)];case 1:return r=o.sent(),this.saveEvents(),r&&r.length>0&&Promise.all(r.map(function(a){return n.execute(a)})).catch(),[2,Promise.resolve(void 0)]}})})},t.prototype.execute=function(e){var i=this;return new Promise(function(r){var n={event:e,attempts:0,callback:function(o){return r(o)},timeout:0};i.addToQueue(n)})},t.prototype.addToQueue=function(){for(var e=this,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var n=i.filter(function(o){return o.attempts<e.config.flushMaxRetries?(o.attempts+=1,!0):(e.fulfillRequest([o],500,ni),!1)});n.forEach(function(o){if(e.queue=e.queue.concat(o),o.timeout===0){e.schedule(e.config.flushIntervalMillis);return}setTimeout(function(){o.timeout=0,e.schedule(0)},o.timeout)}),this.saveEvents()},t.prototype.schedule=function(e){var i=this;this.scheduled||(this.scheduled=setTimeout(function(){i.flush(!0).then(function(){i.queue.length>0&&i.schedule(e)})},e))},t.prototype.flush=function(e){return e===void 0&&(e=!1),y(this,void 0,void 0,function(){var i,r,n,o=this;return w(this,function(a){switch(a.label){case 0:return i=[],r=[],this.queue.forEach(function(c){return c.timeout===0?i.push(c):r.push(c)}),this.queue=r,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),n=li(i,this.config.flushQueueSize),[4,Promise.all(n.map(function(c){return o.send(c,e)}))];case 1:return a.sent(),[2]}})})},t.prototype.send=function(e,i){return i===void 0&&(i=!0),y(this,void 0,void 0,function(){var r,n,o,a,c;return w(this,function(f){switch(f.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,ai)];r={api_key:this.config.apiKey,events:e.map(function(l){var h=l.event;h.extra;var g=Qe(h,["extra"]);return g}),options:{min_id_length:this.config.minIdLength}},f.label=1;case 1:return f.trys.push([1,3,,4]),n=Ot(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(n,r)];case 2:if(o=f.sent(),o===null)return this.fulfillRequest(e,0,ri),[2];if(!i){if("body"in o){a="";try{a=JSON.stringify(o.body,null,2)}catch{}this.fulfillRequest(e,o.statusCode,"".concat(o.status,": ").concat(a))}else this.fulfillRequest(e,o.statusCode,o.status);return[2]}return this.handleReponse(o,e),[3,4];case 3:return c=f.sent(),this.fulfillRequest(e,0,String(c)),[3,4];case 4:return[2]}})})},t.prototype.handleReponse=function(e,i){var r=e.status;switch(r){case j.Success:this.handleSuccessResponse(e,i);break;case j.Invalid:this.handleInvalidResponse(e,i);break;case j.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,i);break;case j.RateLimit:this.handleRateLimitResponse(e,i);break;default:this.handleOtherReponse(i)}},t.prototype.handleSuccessResponse=function(e,i){this.fulfillRequest(i,e.statusCode,ii)},t.prototype.handleInvalidResponse=function(e,i){var r=this;if(e.body.missingField||e.body.error.startsWith(si)){this.fulfillRequest(i,e.statusCode,e.body.error);return}var n=$($($($([],F(Object.values(e.body.eventsWithInvalidFields)),!1),F(Object.values(e.body.eventsWithMissingFields)),!1),F(Object.values(e.body.eventsWithInvalidIdLengths)),!1),F(e.body.silencedEvents),!1).flat(),o=new Set(n),a=i.filter(function(c,f){if(o.has(f)){r.fulfillRequest([c],e.statusCode,e.body.error);return}return!0});this.addToQueue.apply(this,$([],F(a),!1))},t.prototype.handlePayloadTooLargeResponse=function(e,i){if(i.length===1){this.fulfillRequest(i,e.statusCode,e.body.error);return}this.config.flushQueueSize/=2,this.addToQueue.apply(this,$([],F(i),!1))},t.prototype.handleRateLimitResponse=function(e,i){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),o=Object.keys(e.body.exceededDailyQuotaDevices),a=e.body.throttledEvents,c=new Set(n),f=new Set(o),l=new Set(a
1),h=i.filter(function(g,s){if(g.event.user_id&&c.has(g.event.user_id)||g.event.device_id&&f.has(g.event.device_id)){r.fulfillRequest([g],e.statusCode,e.body.error);return}return l.has(s)&&(g.timeout=r.throttleTimeout),!0});this.addToQueue.apply(this,$([],F(h),!1))},t.prototype.handleOtherReponse=function(e){var i=this;this.addToQueue.apply(this,$([],F(e.map(function(r){return r.timeout=r.attempts*i.retryTimeout,r})),!1))},t.prototype.fulfillRequest=function(e,i,r){this.saveEvents(),e.forEach(function(n){return n.callback(Ee(n.event,i,r))})},t.prototype.saveEvents=function(){if(this.config.storageProvider){var e=Array.from(this.queue.map(function(i){return i.event}));this.config.storageProvider.set(this.storageKey,e)}},t}(),gi=function(t){var e=new Error().stack||"";return e.split(`
2`).slice(2+t).map(function(i){return i.trim()})},L=function(t){return function(){var e=m({},t.config),i=e.loggerProvider,r=e.logLevel;return{logger:i,logLevel:r}}},bi=function(t,e){var i,r;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");try{for(var n=ce(e.split(".")),o=n.next();!o.done;o=n.next()){var a=o.value;if(a in t)t=t[a];else return}}catch(c){i={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return t},M=function(t,e){return function(){var i,r,n={};try{for(var o=ce(e),a=o.next();!a.done;a=o.next()){var c=a.value;n[c]=bi(t,c)}}catch(f){i={error:f}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return n}},q=function(t,e,i,r,n){return n===void 0&&(n=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var c=i(),f=c.logger,l=c.logLevel;if(l&&l<Y.Debug||!l||!f)return t.apply(n,o);var h={type:"invoke public method",name:e,args:o,stacktrace:gi(1),time:{start:new Date().toISOString()},states:{}};r&&h.states&&(h.states.before=r());var g=t.apply(n,o);return g&&g.promise?g.promise.then(function(){r&&h.states&&(h.states.after=r()),h.time&&(h.time.end=new Date().toISOString()),f.debug(JSON.stringify(h,null,2))}):(r&&h.states&&(h.states.after=r()),h.time&&(h.time.end=new Date().toISOString()),f.debug(JSON.stringify(h,null,2))),g}},qe=function(t){return t?(t^Math.random()*16>>t/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,qe)},Rt=function(){function t(){this.memoryStorage=new Map}return t.prototype.isEnabled=function(){return y(this,void 0,void 0,function(){return w(this,function(e){return[2,!0]})})},t.prototype.get=function(e){return y(this,void 0,void 0,function(){return w(this,function(i){return[2,this.memoryStorage.get(e)]})})},t.prototype.getRaw=function(e){return y(this,void 0,void 0,function(){var i;return w(this,function(r){switch(r.label){case 0:return[4,this.get(e)];case 1:return i=r.sent(),[2,i?JSON.stringify(i):void 0]}})})},t.prototype.set=function(e,i){return y(this,void 0,void 0,function(){return w(this,function(r){return this.memoryStorage.set(e,i),[2]})})},t.prototype.remove=function(e){return y(this,void 0,void 0,function(){return w(this,function(i){return this.memoryStorage.delete(e),[2]})})},t.prototype.reset=function(){return y(this,void 0,void 0,function(){return w(this,function(e){return this.memoryStorage.clear(),[2]})})},t}(),Je=function(){function t(){}return t.prototype.send=function(e,i){return Promise.resolve(null)},t.prototype.buildResponse=function(e){var i,r,n,o,a,c,f,l,h,g,s,v,u,d,p,E,x,_,b,O,P,U;if(typeof e!="object")return null;var V=e.code||0,D=this.buildStatus(V);switch(D){case j.Success:return{status:D,statusCode:V,body:{eventsIngested:(i=e.events_ingested)!==null&&i!==void 0?i:0,payloadSizeBytes:(r=e.payload_size_bytes)!==null&&r!==void 0?r:0,serverUploadTime:(n=e.server_upload_time)!==null&&n!==void 0?n:0}};case j.Invalid:return{status:D,statusCode:V,body:{error:(o=e.error)!==null&&o!==void 0?o:"",missingField:(a=e.missing_field)!==null&&a!==void 0?a:"",eventsWithInvalidFields:(c=e.events_with_invalid_fields)!==null&&c!==void 0?c:{},eventsWithMissingFields:(f=e.events_with_missing_fields)!==null&&f!==void 0?f:{},eventsWithInvalidIdLengths:(l=e.events_with_invalid_id_lengths)!==null&&l!==void 0?l:{},epsThreshold:(h=e.eps_threshold)!==null&&h!==void 0?h:0,exceededDailyQuotaDevices:(g=e.exceeded_daily_quota_devices)!==null&&g!==void 0?g:{},silencedDevices:(s=e.silenced_devices)!==null&&s!==void 0?s:[],silencedEvents:(v=e.silenced_events)!==null&&v!==void 0?v:[],throttledDevices:(u=e.throttled_devices)!==null&&u!==void 0?u:{},throttledEvents:(d=e.throttled_events)!==null&&d!==void 0?d:[]}};case j.PayloadTooLarge:return{status:D,statusCode:V,body:{error:(p=e.error)!==null&&p!==void 0?p:""}};case j.RateLimit:return{status:D,statusCode:V,body:{error:(E=e.error)!==null&&E!==void 0?E:"",epsThreshold:(x=e.eps_threshold)!==null&&x!==void 0?x:0,throttledDevices:(_=e.throttled_devices)!==null&&_!==void 0?_:{},throttledUsers:(b=e.throttled_users)!==null&&b!==void 0?b:{},exceededDailyQuotaDevices:(O=e.exceeded_daily_quota_devices)!==null&&O!==void 0?O:{},exceededDailyQuotaUsers:(P=e.exceeded_daily_quota_users)!==null&&P!==void 0?P:{},throttledEvents:(U=e.throttled_events)!==null&&U!==void 0?U:[]}};case j.Timeout:default:return{status:D,statusCode:V}}},t.prototype.buildStatus=function(e){return e>=200&&e<300?j.Success:e===429?j.RateLimit:e===413?j.PayloadTooLarge:e===408?j.Timeout:e>
2=400&&e<500?j.Invalid:e>=500?j.Failed:j.Unknown},t}(),X=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},Xe=function(){var t,e=X();if(!(!((t=e==null?void 0:e.location)===null||t===void 0)&&t.search))return{};var i=e.location.search.substring(1).split("&").filter(Boolean),r=i.reduce(function(n,o){var a=o.split("=",2),c=st(a[0]),f=st(a[1]);return f&&(n[c]=f),n},{});return r},st=function(t){t===void 0&&(t="");try{return decodeURIComponent(t)}catch{return""}},mi="utm_campaign",yi="utm_content",wi="utm_id",_i="utm_medium",Ei="utm_source",Ii="utm_term",ut="dclid",ct="fbclid",dt="gbraid",lt="gclid",ft="ko_click_id",vt="li_fat_id",ht="msclkid",pt="rtd_cid",gt="ttclid",bt="twclid",mt="wbraid",et={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},xt=function(){function t(){}return t.prototype.parse=function(){return y(this,void 0,void 0,function(){return w(this,function(e){return[2,m(m(m(m({},et),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},t.prototype.getUtmParam=function(){var e=Xe(),i=e[mi],r=e[yi],n=e[wi],o=e[_i],a=e[Ei],c=e[Ii];return{utm_campaign:i,utm_content:r,utm_id:n,utm_medium:o,utm_source:a,utm_term:c}},t.prototype.getReferrer=function(){var e,i,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=(i=(e=r.referrer)===null||e===void 0?void 0:e.split("/")[2])!==null&&i!==void 0?i:void 0}catch{}return r},t.prototype.getClickIds=function(){var e,i=Xe();return e={},e[ut]=i[ut],e[ct]=i[ct],e[dt]=i[dt],e[lt]=i[lt],e[ft]=i[ft],e[vt]=i[vt],e[ht]=i[ht],e[pt]=i[pt],e[gt]=i[gt],e[bt]=i[bt],e[mt]=i[mt],e},t}(),At=function(t,e,i){return e===void 0&&(e=""),i===void 0&&(i=10),[Me,e,t.substring(0,i)].filter(Boolean).join("_")},Si=function(t){return"".concat(Me.toLowerCase(),"_").concat(t.substring(0,6))},Ze=function(){function t(e){this.options=m({},e)}return t.prototype.isEnabled=function(){return y(this,void 0,void 0,function(){var e,i,r,n;return w(this,function(o){switch(o.label){case 0:if(!X())return[2,!1];e=String(Date.now()),i=new t(this.options),r="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,i.set(r,e)];case 2:return o.sent(),[4,i.get(r)];case 3:return n=o.sent(),[2,n===e];case 4:return o.sent(),[2,!1];case 5:return[4,i.remove(r)];case 6:return o.sent(),[7];case 7:return[2]}})})},t.prototype.get=function(e){return y(this,void 0,void 0,function(){var i;return w(this,function(r){switch(r.label){case 0:return[4,this.getRaw(e)];case 1:if(i=r.sent(),!i)return[2,void 0];try{try{i=decodeURIComponent(atob(i))}catch{}return[2,JSON.parse(i)]}catch{return[2,void 0]}return[2]}})})},t.prototype.getRaw=function(e){var i;return y(this,void 0,void 0,function(){var r,n,o;return w(this,function(a){return r=X(),n=(i=r==null?void 0:r.document.cookie.split("; "))!==null&&i!==void 0?i:[],o=n.find(function(c){return c.indexOf(e+"=")===0}),o?[2,o.substring(e.length+1)]:[2,void 0]})})},t.prototype.set=function(e,i){var r;return y(this,void 0,void 0,function(){var n,o,a,c,f,l;return w(this,function(h){try{n=(r=this.options.expirationDays)!==null&&r!==void 0?r:0,o=i!==null?n:-1,a=void 0,o&&(c=new Date,c.setTime(c.getTime()+o*24*60*60*1e3),a=c),f="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(i)))),a&&(f+="; expires=".concat(a.toUTCString())),f+="; path=/",this.options.domain&&(f+="; domain=".concat(this.options.domain)),this.options.secure&&(f+="; Secure"),this.options.sameSite&&(f+="; SameSite=".concat(this.options.sameSite)),l=X(),l&&(l.document.cookie=f)}catch{}return[2]})})},t.prototype.remove=function(e){return y(this,void 0,void 0,function(){return w(this,function(i){switch(i.label){case 0:return[4,this.set(e,null)];case 1:return i.sent(),[2]}})})},t.prototype.reset=function(){return y(this,void 0,void 0,function(){return w(this,function(e){return[2]})})},t}(),Ti=function(t){Ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.send=function(i,r){return y(this,void 0,void 0,function(){var n,o,a;return w(this,function(c){switch(c.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return n={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(r),method:"POST"},[4,fetch(i,n)];case 1:return o=c.sent(),[4,o.json()];
2case 2:return a=c.sent(),[2,this.buildResponse(a)]}})})},e}(Je),ki=function(){function t(){}return t.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:Pi(),platform:"Web",os:void 0,deviceModel:void 0}},t}(),Pi=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},Oi=function(){function t(){this.queue=[]}return t.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},t.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(i){e(i)}),this.queue=[])},t}(),ie=function(){return ie=Object.assign||function(e){for(var i,r=1,n=arguments.length;r<n;r++){i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},ie.apply(this,arguments)},Ue=function(t,e){var i=["string","number","boolean","undefined"],r=typeof t,n=typeof e;if(r!==n)return!1;for(var o=0,a=i;o<a.length;o++){var c=a[o];if(c===r)return t===e}if(t==null&&e==null)return!0;if(t==null||e==null||t.length!==e.length)return!1;var f=Array.isArray(t),l=Array.isArray(e);if(f!==l)return!1;if(f&&l){for(var h=0;h<t.length;h++)if(!Ue(t[h],e[h]))return!1}else{var g=Object.keys(t).sort(),s=Object.keys(e).sort();if(!Ue(g,s))return!1;var v=!0;return Object.keys(t).forEach(function(u){Ue(t[u],e[u])||(v=!1)}),v}return!0},Ri="$set",xi="$unset",Ai="$clearAll";Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),i=e.length,r=new Array(i);i--;)r[i]=[e[i],t[e[i]]];return r});var Ci=function(){function t(){this.identity={userProperties:{}},this.listeners=new Set}return t.prototype.editIdentity=function(){var e=this,i=ie({},this.identity.userProperties),r=ie(ie({},this.identity),{userProperties:i});return{setUserId:function(n){return r.userId=n,this},setDeviceId:function(n){return r.deviceId=n,this},setUserProperties:function(n){return r.userProperties=n,this},setOptOut:function(n){return r.optOut=n,this},updateUserProperties:function(n){for(var o=r.userProperties||{},a=0,c=Object.entries(n);a<c.length;a++){var f=c[a],l=f[0],h=f[1];switch(l){case Ri:for(var g=0,s=Object.entries(h);g<s.length;g++){var v=s[g],u=v[0],d=v[1];o[u]=d}break;case xi:for(var p=0,E=Object.keys(h);p<E.length;p++){var u=E[p];delete o[u]}break;case Ai:o={};break}}return r.userProperties=o,this},commit:function(){return e.setIdentity(r),this}}},t.prototype.getIdentity=function(){return ie({},this.identity)},t.prototype.setIdentity=function(e){var i=ie({},this.identity);this.identity=ie({},e),Ue(i,this.identity)||this.listeners.forEach(function(r){r(e)})},t.prototype.addIdentityListener=function(e){this.listeners.add(e)},t.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},t}(),_e=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,Ui=function(){function t(){this.identityStore=new Ci,this.eventBridge=new Oi,this.applicationContextProvider=new ki}return t.getInstance=function(e){return _e.analyticsConnectorInstances||(_e.analyticsConnectorInstances={}),_e.analyticsConnectorInstances[e]||(_e.analyticsConnectorInstances[e]=new t),_e.analyticsConnectorInstances[e]},t}(),Ve=function(){return Ui.getInstance("$default_instance")},Di=function(t){Ve().identityStore.editIdentity().setUserId(t).commit()},Ni=function(t){Ve().identityStore.editIdentity().setDeviceId(t).commit()},Li=function(){function t(){this.name="identity",this.type=G.BEFORE,this.identityStore=Ve().identityStore}return t.prototype.execute=function(e){return y(this,void 0,void 0,function(){var i;return w(this,function(r){return i=e.user_properties,i&&this.identityStore.editIdentity().updateUserProperties(i).commit(),[2,e]})})},t.prototype.setup=function(e){return Promise.resolve(void 0)},t}(),Mi=function(){var t,e,i,r;if(typeof navigator>"u")return"";var n=navigator.userLanguage;return(r=(i=(e=(t=navigator.languages)===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:navigator.language)!==null&&i!==void 0?i:n)!==null&&r!==void 0?r:""},qi=function(t){return typeof t=="boolean"?t:!!(t!=null&&t.fileDownloads)},Vi=function(t){return typeof t=="boolean"?t:!!(t!=null&&t.formInteractions)},Fi=function(t){return typeof t=="boolean"?t:!!((t==null?void 0:t.pageViews)===!0||t!=null&&t.pageViews&&typeof t.pageViews=="object")},ji=function(t){return typeof t=="boolean"?t:!!(t!=null&&t.sessions)},Bi=function(t){var e,i=!((e=t.attribution)===null||e===void 0)&&e.trackPageViews?"attribution":function(){return!1},r=void 0,n="Page View",o=Fi(t.defaultTracking);return o&&(i=void 0,n=void 0,t.defaultTracking&&typeof t.defaultTracking=="object"&&t.defaultTracking.pageViews&&typeof t.defaultTracking.pageViews=="object"&&("trackOn"in t.defaultTracking.pageViews&&(i=t.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in t.defaultTracking.pageViews&&(r=t.defaultTracking.pageViews.trackHistoryChanges),"eventType"in t.defaultTracking.pageViews&&t.defaultTracking.pageViews.eventType&&(n=t.defaultTracking.pageViews.eventType))),{trackOn:i,trackHistoryChanges:r,eventType:n}},Be=function(t,e){for(var i=0;i<e.length;i++){var r=e[i],n=r.name,o=r.args,a=r.resolve,c=t&&t[n];if(typeof c=="function"){var f=c.apply(t,o);typeof a=="function"&&a(f==null?void 0:f.promise)}}return t},ze=function(t){var e=t;return e&&e._q!==void 0},$e={exports:{}};(function(t,e){(function(i,r){var n="0.7.33",o="",a="?",c="function",f="undefined",l="object",h="string",g="major",s="model",v="name",u="type",d="vendor",p="version",E="architecture",x="console",_="mobile",b="tablet",O="smarttv",P="wearable",U="embedded",V=350,D="Amazon",H="Apple",K="ASUS",J="BlackBerry",I="Browser",re="Chrome",Te="Edge",ne="Firefox",oe="Google",pe="Huawei",de="LG",le="Microsoft",ge="Motorola",ae="Opera",se="Samsung",fe="Sharp",ee="Sony",te="Xiaomi",be="Zebra",A="Facebook",ke=function(S,R){var T={};for(var N in S)R[N]&&R[N].length%2===0?T[N]=R[N].concat(S[N]):T[N]=S[N];return T},Pe=function(S){for(var R={},T=0;T<S.length;T++)R[S[T].toUpperCase()]=S[T];return R},tt=function(S,R){return typeof S===h?me(R).indexOf(me(S))!==-1:!1},me=function(S){return S.toLowerCase()},Bt=function(S){return typeof S===h?S.replace(/[^\d\.]/g,o).split(".")[0]:r},Fe=function(S,R){if(typeof S===h)return S=S.replace(/^\s\s*/,o),typeof R===f?S:S.substring(0,V)},ye=function(S,R){for(var T=0,N,k,Re,C,we,Z;T<R.length&&!we;){var nt=R[T],ot=R[T+1];for(N=k=0;N<nt.length&&!we;)if(we=nt[N++].exec(S),we)for(Re=0;Re<ot.length;Re++)Z=we[++k],C=ot[Re],typeof C===l&&C.length>
vendor: 4,367 bytes, line 2
20?C.length===2?typeof C[1]==c?this[C[0]]=C[1].call(this,Z):this[C[0]]=C[1]:C.length===3?typeof C[1]===c&&!(C[1].exec&&C[1].test)?this[C[0]]=Z?C[1].call(this,Z,C[2]):r:this[C[0]]=Z?Z.replace(C[1],C[2]):r:C.length===4&&(this[C[0]]=Z?C[3].call(this,Z.replace(C[1],C[2])):r):this[C]=Z||r;T+=2}},je=function(S,R){for(var T in R)if(typeof R[T]===l&&R[T].length>0){for(var N=0;N<R[T].length;N++)if(tt(R[T][N],S))return T===a?r:T}else if(tt(R[T],S))return T===a?r:T;return S},zt={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},it={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},rt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,p],[/opios[\/ ]+([\w\.]+)/i],[p,[v,ae+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[v,ae]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[v,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[v,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[v,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[v,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[v,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+I],p],[/\bfocus\/([\w\.]+)/i],[p,[v,ne+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[v,ae+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[v,ae+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[v,"MIUI "+I]],[/fxios\/([-\w\.]+)/i],[p,[v,ne]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+I]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+I],p],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[v,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,A],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[v,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[v,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[v,re+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,re+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[v,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[p,je,zt]],[/(webkit|khtml)\/([\w\.]+)/i],[v,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[v,ne+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[v,p],[/(cobalt)\/([\w\.]+)/i],[v,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,me]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,o,me]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;
vendor: 6,949 bytes, line 2
2|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,me]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[d,se],[u,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[d,se],[u,_]],[/((ipod|iphone)\d+,\d+)/i],[s,[d,H],[u,_]],[/(ipad\d+,\d+)/i],[s,[d,H],[u,b]],[/\((ip(?:hone|od)[\w ]*);/i],[s,[d,H],[u,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[d,H],[u,b]],[/(macintosh);/i],[s,[d,H]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,pe],[u,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,pe],[u,_]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[d,te],[u,_]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,te],[u,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[d,"OPPO"],[u,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[u,_]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[s,[d,"Realme"],[u,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[d,ge],[u,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,ge],[u,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,de],[u,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[d,de],[u,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[d,"Lenovo"],[u,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[d,"Nokia"],[u,_]],[/(pixel c)\b/i],[s,[d,oe],[u,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[d,oe],[u,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[d,ee],[u,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,ee],[u,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[d,"OnePlus"],[u,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[d,D],[u,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,D],[u,_]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[u,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,J],[u,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,K],[u,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,K],[u,_]],[/(nexus 9)/i],[s,[d,"HTC"],[u,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[s,/_/g," "],[u,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[d,"Acer"],[u,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[d,"Meizu"],[u,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[d,fe],[u,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,s,[u,_]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,s,[u,b]],[/(surface duo)/i],[s,[d,le],[u,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[d,"Fairphone"],[u,_]],[/(u304aa)/i],[s,[d,"AT&T"],[u,_]],[/\bsie-(\w*)/i],[s,[d,"Siemens"],[u,_]],[/\b(rct\w+) b/i],[s,[d,"RCA"],[u,b]],[/\b(venue[\d ]{2,7}) b/i],[s,[d,"Dell"],[u,b]],[/\b(q(?:mv|ta)\w+) b/i],[s,[d,"Verizon"],[u,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[d,"Barnes & Noble"],[u,b]],[/\b(tm\d{3}\w+) b/i],[s,[d,"NuVision"],[u,b]],[/\b(k88) b/i],[s,[d,"ZTE"],[u,b]],[/\b(nx\d{3}j) b/i],[s,[d,"ZTE"],[u,_]],[/\b(gen\d{3}) b.+49h/i],[s,[d,"Swiss"],[u,_]],[/\b(zur\d{3}) b/i],[s,[d,"Swiss"],[u,b]],[/\b((zeki)?tb.*\b) b/i],[s,[d,"Zeki"],[u,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],s,[u,b]],[/\b(ns-?\w{0,9}) b/i],[s,[d,"Insignia"],[u,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[d,"NextBook"],[u,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],s,[u,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],s,[u,_]],[/\b(ph-1) /i],[s,[d,"Essential"],[u,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[d,"Envizen"],[u,b]],[/\b(trio[-\w\. ]+) b/i],[s,[d,"MachSpeed"],[u,b]],[/\btu_(1491) b/i],[s,[d,"Rotor"],[u,b]],[/(shield[\w ]+) b/i],[s,[d,"Nvidia"],[u,b]],[/(sprint) (\w+)/i],[d,s,[u,_]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[d,le],[u,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,be],[u,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,be],[u,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,s,[u,x]],[/droid.+; (shield) bui/i],[s,[d,"Nvidia"],[u,x]],[/(playstation [345portablevi]+)/i],[s,[d,ee],[u,x]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,le],[u,x]],[/smart-tv.+(samsung)/i],[d,[u,O]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,se],[u,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,de],[u,O]],[/(apple) ?tv/i],[d,[s,H+" TV"],[u,O]],[/crkey/i],[[s,re+"cast"],[d,oe],[u,O]],[/droid.+aft(\w)( bui|\))/i],[s,[d,D],[u,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,fe],[u,O]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,ee],[u,O]],[/(mitv-\w{5}) bui/i],[s,[d,te],[u,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,Fe],[s,Fe],[u,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,O]],[/((pebble))app/i],[d,s,[u,P]],[/droid.+; (glass) \d/i],[s,[d,oe],[u,P]],[/droid.+; (wt63?0{2,3})\)/i],[s,[d,be],[u,P]],[/(quest( 2)?)/i],[s,[d,A],[u,P]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,U]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[s,[u,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[u,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,_]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[v,Te+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[v,p],[/rv\
2:([\w\.]{1,9})\b.+(gecko)/i],[p,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[v,[p,je,it]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,"Windows"],[p,je,it]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,p],[/\(bb(10);/i],[p,[v,J]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[v,ne+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[v,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[v,re+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[v,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,p],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[v,p]]},W=function(S,R){if(typeof S===l&&(R=S,S=r),!(this instanceof W))return new W(S,R).getResult();var T=S||(typeof i!==f&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:o),N=R?ke(rt,R):rt;return this.getBrowser=function(){var k={};return k[v]=r,k[p]=r,ye.call(k,T,N.browser),k.major=Bt(k.version),k},this.getCPU=function(){var k={};return k[E]=r,ye.call(k,T,N.cpu),k},this.getDevice=function(){var k={};return k[d]=r,k[s]=r,k[u]=r,ye.call(k,T,N.device),k},this.getEngine=function(){var k={};return k[v]=r,k[p]=r,ye.call(k,T,N.engine),k},this.getOS=function(){var k={};return k[v]=r,k[p]=r,ye.call(k,T,N.os),k},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return T},this.setUA=function(k){return T=typeof k===h&&k.length>V?Fe(k,V):k,this},this.setUA(T),this};W.VERSION=n,W.BROWSER=Pe([v,p,g]),W.CPU=Pe([E]),W.DEVICE=Pe([s,d,u,x,_,O,b,P,U]),W.ENGINE=W.OS=Pe([v,p]),t.exports&&(e=t.exports=W),e.UAParser=W;var ve=typeof i!==f&&(i.jQuery||i.Zepto);if(ve&&!ve.ua){var Oe=new W;ve.ua=Oe.getResult(),ve.ua.get=function(){return Oe.getUA()},ve.ua.set=function(S){Oe.setUA(S);var R=Oe.getResult();for(var T in R)ve.ua[T]=R[T]}}})(typeof window=="object"?window:Kt)})($e,$e.exports);var zi=$e.exports;const Ki=Gt(zi);var Gi="2.10.0",Hi="Web",Wi="$remote",Qi=function(){function t(){this.name="context",this.type=G.BEFORE,this.eventId=0,this.library="amplitude-ts/".concat(Gi),typeof navigator<"u"&&(this.userAgent=navigator.userAgent),this.uaResult=new Ki(this.userAgent).getResult()}return t.prototype.setup=function(e){return this.config=e,this.eventId=this.config.lastEventId?this.config.lastEventId+1:0,Promise.resolve(void 0)},t.prototype.execute=function(e){return y(this,void 0,void 0,function(){var i,r,n,o,a,c;return w(this,function(f){return i=new Date().getTime(),r=this.uaResult.browser.name,n=this.uaResult.browser.version,o=this.uaResult.device.model||this.uaResult.os.name,a=this.uaResult.device.vendor,this.config.lastEventId=this.eventId,c=m(m(m(m(m(m(m(m(m(m(m(m({user_id:this.config.userId,parent_id:this.config.parentId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:Hi}),this.config.trackingOptions.osName&&{os_name:r}),this.config.trackingOptions.osVersion&&{os_version:n}),this.config.trackingOptions.deviceManufacturer&&{device_manufacturer:a}),this.config.trackingOptions.deviceModel&&{device_model:o}),this.config.trackingOptions.language&&{language:Mi()}),this.config.trackingOptions.ipAddress&&{ip:Wi}),{insert_id:qe(),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:this.eventId++,library:this.library,user_agent:this.userAgent}),[2,c]})})},t}(),Ct=function(){function t(){}return t.prototype.isEnabled=function(){return y(this,void 0,void 0,function(){var e,i,r,n;return w(this,function(o){switch(o.label){case 0:if(!X())return[2,!1];e=String(Date.now()),i=new t,r="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,i.set(r,e)];case 2:return o.sent(),[4,i.get(r)];case 3:return n=o.sent(),[2,n===e];case 4:return o.sent(),[2,!1];case 5:return[4,i.remove(r)];case 6:return o.sent(),[7];case 7:return[2]}})})},t.prototype.get=function(e){return y(this,void 0,void 0,function(){var i;return w(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return i=r.sent(),i?[2,JSON.parse(i)]:[2,void 0];case 2:return r.sent(),[2,void 0];case 3:return[2]}})})},t.prototype.getRaw=function(e){var i;return y(this,void 0,void 0,function(){return w(this,function(r){return[2,((i=X())===null||i===void 0?void 0:i.localStorage.getItem(e))||void 0]})})},t.prototype.set=function(e,i){var r;return y(this,void 0,void 0,function(){return w(this,function(n){try{(r=X())===null||r===void 0||r.localStorage.setItem(e,JSON.stringify(i))}catch{}return[2]})})},t.prototype.remove=function(e){var i;return y(this,void 0,void 0,function(){return w(this,function(r){try{(i=X())===null||i===void 0||i.localStorage.removeItem(e)}catch{}return[2]})})},t.prototype.reset=function(){var e;return y(this,void 0,void 0,function(){return w(this,function(i){try{(e=X())===null||e===void 0||e.localStorage.clear()}catch{}return[2]})})},t}(),Yi=function(t){Ie(e,t);function e(){var i=t!==null&&t.apply(this,arguments)||this;return i.state={done:4},i}return e.prototype.send=function(i,r){return y(this,void 0,void 0,function(){var n=this;return w(this,function(o){return[2,new Promise(function(a,c){typeof XMLHttpRequest>"u"&&c(new Error("XHRTransport is not supported."));var f=new XMLHttpRequest;f.open("POST",i,!0),f.onreadystatechange=function(){if(f.readyState===n.state.done)try{var l=f.responseText,h=JSON.parse(l),g=n.buildResponse(h);a(g)}catch(s){c(s)}},f.setRequestHeader("Content-Type","application/json"),f.setRequestHeader("Accept","*/*"),f.send(JSON.stringify(r))})]})})},e}(Je),Xi=function(t){Ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.send=function(i,r){return y(this,void 0,void 0,function(){var n=this;return w(this,function(o){return[2,new Promise(function(a,c){var f=X();if(!(f!=null&&f.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var l=JSON.stringify(r),h=f.navigator.sendBeacon(i,JSON.stringify(r));return a(h?n.buildResponse({code:200,events_ingested:r.events.length,payload_size_bytes:l.length,server_upload_time:Date.now()}):n.buildResponse({code:500}))}catch(g){c(g)}})]})})},e}(Je),Se=function(){var t=new Rt,e={deviceManufacturer:!0,deviceModel:!0,ipAddress:!0,language:!0,osName:!0,osVersion:!0,platform:!0};return{cookieExpiration:365,cookieSameSite:"Lax",cookieSecure:!1,cookieStorage:t,cookieUpgrade:!0,disableCookies:!1,domain:"",sessionTimeout:30*60*1e3,trackingOptions:e,transportProvider:new Ti}},yt=function(t){Ie(e,t);function e(i,r){var n=this,o,a,c,f,l,h,g,s,v,u=Se();return n=t.call(this,m(m({flushIntervalMillis:1e3,flushMaxRetries:5,flushQueueSize:30,transportProvider:u.transportProvider},r),{apiKey:i}
2))||this,n._optOut=!1,n.cookieStorage=(o=r==null?void 0:r.cookieStorage)!==null&&o!==void 0?o:u.cookieStorage,n.deviceId=r==null?void 0:r.deviceId,n.lastEventId=r==null?void 0:r.lastEventId,n.lastEventTime=r==null?void 0:r.lastEventTime,n.optOut=!!(r!=null&&r.optOut),n.sessionId=r==null?void 0:r.sessionId,n.userId=r==null?void 0:r.userId,n.parentId=r==null?void 0:r.parentId,n.appVersion=r==null?void 0:r.appVersion,n.attribution=r==null?void 0:r.attribution,n.cookieExpiration=(a=r==null?void 0:r.cookieExpiration)!==null&&a!==void 0?a:u.cookieExpiration,n.cookieSameSite=(c=r==null?void 0:r.cookieSameSite)!==null&&c!==void 0?c:u.cookieSameSite,n.cookieSecure=(f=r==null?void 0:r.cookieSecure)!==null&&f!==void 0?f:u.cookieSecure,n.cookieUpgrade=(l=r==null?void 0:r.cookieUpgrade)!==null&&l!==void 0?l:u.cookieUpgrade,n.defaultTracking=r==null?void 0:r.defaultTracking,n.disableCookies=(h=r==null?void 0:r.disableCookies)!==null&&h!==void 0?h:u.disableCookies,n.defaultTracking=r==null?void 0:r.defaultTracking,n.domain=(g=r==null?void 0:r.domain)!==null&&g!==void 0?g:u.domain,n.partnerId=r==null?void 0:r.partnerId,n.sessionTimeout=(s=r==null?void 0:r.sessionTimeout)!==null&&s!==void 0?s:u.sessionTimeout,n.trackingOptions=(v=r==null?void 0:r.trackingOptions)!==null&&v!==void 0?v:u.trackingOptions,n}return Object.defineProperty(e.prototype,"deviceId",{get:function(){return this._deviceId},set:function(i){this._deviceId!==i&&(this._deviceId=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userId",{get:function(){return this._userId},set:function(i){this._userId!==i&&(this._userId=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentId",{get:function(){return this._parentId},set:function(i){this._parentId!==i&&(this._parentId=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sessionId",{get:function(){return this._sessionId},set:function(i){this._sessionId!==i&&(this._sessionId=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(i){this._optOut!==i&&(this._optOut=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(i){this._lastEventTime!==i&&(this._lastEventTime=i,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(i){this._lastEventId!==i&&(this._lastEventId=i,this.updateStorage())},enumerable:!1,configurable:!0}),e.prototype.updateStorage=function(){var i,r={deviceId:this._deviceId,userId:this._userId,parentId:this._parentId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId};(i=this.cookieStorage)===null||i===void 0||i.set(At(this.apiKey),r)},e}(vi),Zi=function(t,e){return y(void 0,void 0,void 0,function(){var i,r,n,o,a,c,f,l,h,g,s,v,u,d,p,E;return w(this,function(x){switch(x.label){case 0:return i=Se(),r=(p=e==null?void 0:e.deviceId)!==null&&p!==void 0?p:qe(),n=e==null?void 0:e.lastEventId,o=e==null?void 0:e.lastEventTime,a=e==null?void 0:e.optOut,c=e==null?void 0:e.sessionId,f=e==null?void 0:e.userId,l=e==null?void 0:e.parentId,h=e==null?void 0:e.cookieStorage,g=e==null?void 0:e.domain,s=yt.bind,v=[void 0,t],u=[m({},e)],d={cookieStorage:h,deviceId:r,domain:g,lastEventId:n,lastEventTime:o,optOut:a,sessionId:c},[4,Ji(e)];case 1:return[2,new(s.apply(yt,v.concat([m.apply(void 0,u.concat([(d.storageProvider=x.sent(),d.trackingOptions=m(m({},i.trackingOptions),e==null?void 0:e.trackingOptions),d.transportProvider=(E=e==null?void 0:e.transportProvider)!==null&&E!==void 0?E:Dt(e==null?void 0:e.transport),d.userId=f,d.parentId=l,d)]))])))]}})})},Ut=function(t,e){return e===void 0&&(e=Se()),y(void 0,void 0,void 0,function(){var i,r,n;return w(this,function(o){switch(o.label){case 0:return i=m(m({},e),t),r=t==null?void 0:t.cookieStorage,n=!r,n?[3,2]:[4,r.isEnabled()];case 1:n=!o.sent(),o.label=2;case 2:return n?[2,$i(i)]:[2,r]}})})},$i=function(t){return y(void 0,void 0,void 0,function(){var e,i;return w(this,function(r){switch(r.label){case 0:return e=new Ze({domain:t.domain,expirationDays:t.cookieExpiration,sameSite:t.cookieSameSite,secure:t.cookieSecure}),i=t.disableCookies,i?[3,2]:[4,e.isEnabled()];case 1:i=!r.sent(),r.label=2;case 2:return i?(e=new Ct,[4,e.isEnabled()]):[3,4];case 3:r.sent()||(e=new Rt),r.label=4;case 4:return[2,e]}})})},Ji=function(t){return y(void 0,void 0,void 0,function(){var e,i,r,n,o,a,c,f;return w(this,function(l){switch(l.label){case 0:if(e=t&&Object.prototype.hasOwnProperty.call(t,"storageProvider"),!(!e||t.storageProvider))return[3,9];l.label=1;case 1:l.trys.push([1,7,8,9]),i=ce([t==null?void 0:t.storageProvider,new Ct]),r=i.next(),l.label=2;case 2:return r.done?[3,6]:(n=r.value,o=n,o?[4,n.isEnabled()]:[3,4]);case 3:o=l.sent(),l.label=4;case 4:if(o)return[2,n];l.label=5;case 5:return r=i.next(),[3,2];case 6:return[3,9];case 7:return a=l.sent(),c={error:a},[3,9];case 8:try{r&&!r.done&&(f=i.return)&&f.call(i)}finally{if(c)throw c.error}
2return[7];case 9:return[2,void 0]}})})},Dt=function(t){return t===Ne.XHR?new Yi:t===Ne.SendBeacon?new Xi:Se().transportProvider},er=function(t){return y(void 0,void 0,void 0,function(){var e,i,r,n,o,o,a,c,f,l;return w(this,function(h){switch(h.label){case 0:return[4,new Ze().isEnabled()];case 1:if(!h.sent()||typeof location>"u")return[2,""];for(e=location.hostname,i=e.split("."),r=[],n="AMP_TLDTEST",o=i.length-2;o>=0;--o)r.push(i.slice(o).join("."));o=0,h.label=2;case 2:return o<r.length?(a=r[o],c={domain:"."+a},f=new Ze(c),[4,f.set(n,1)]):[3,7];case 3:return h.sent(),[4,f.get(n)];case 4:return l=h.sent(),l?[4,f.remove(n)]:[3,6];case 5:return h.sent(),[2,"."+a];case 6:return o++,[3,2];case 7:return[2,""]}})})},tr=function(t,e){return y(void 0,void 0,void 0,function(){var i,r,n,o,a,c,f,l,h,g;return w(this,function(s){switch(s.label){case 0:return[4,Ut(e)];case 1:return i=s.sent(),r=Si(t),[4,i.getRaw(r)];case 2:return n=s.sent(),n?((g=e==null?void 0:e.cookieUpgrade)!==null&&g!==void 0?g:Se().cookieUpgrade)?[4,i.remove(r)]:[3,4]:[2,{optOut:!1}];case 3:s.sent(),s.label=4;case 4:return o=F(n.split("."),5),a=o[0],c=o[1],f=o[2],l=o[3],h=o[4],[2,{deviceId:a,userId:ir(c),sessionId:wt(l),lastEventTime:wt(h),optOut:!!f}]}})})},wt=function(t){var e=parseInt(t,32);if(!isNaN(e))return e},ir=function(t){if(!(!atob||!escape||!t))try{return decodeURIComponent(escape(atob(t)))}catch{return}},rr=function(t,e,i){return i===void 0&&(i=10),[Me,e,t.substring(0,i)].filter(Boolean).join("_")},_t=function(t){var e=t.split(".");return e.length<=2?t:e.slice(e.length-2,e.length).join(".")},nr=function(t,e,i){var r;t.referrer;var n=t.referring_domain,o=Qe(t,["referrer","referring_domain"]),a=e||{};a.referrer;var c=a.referring_domain,f=Qe(a,["referrer","referring_domain"]);if(t.referring_domain&&(!((r=i.excludeReferrers)===null||r===void 0)&&r.includes(t.referring_domain)))return!1;var l=JSON.stringify(o)!==JSON.stringify(f),h=_t(n||"")!==_t(c||"");return!e||l||h},or=function(t,e){var i=m(m({},et),t),r=Object.entries(i).reduce(function(n,o){var a,c=F(o,2),f=c[0],l=c[1];return n.setOnce("initial_".concat(f),(a=l??e.initialEmptyValue)!==null&&a!==void 0?a:"EMPTY"),l?n.set(f,l):n.unset(f)},new Le);return Pt(r)},ar=function(){for(var t=this,e,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var n,o={},a=F(i,2),c=a[0],f=a[1];c&&"init"in c?(n=c,f&&(o=f)):c&&(o=c);var l=(e=o.excludeReferrers)!==null&&e!==void 0?e:[];typeof location<"u"&&l.unshift(location.hostname),o=m(m({disabled:!1,initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1},o),{excludeReferrers:l});var h={name:"web-attribution",type:G.BEFORE,setup:function(g,s){var v;return y(this,void 0,void 0,function(){var u,d,p,E,x,_,b,O;return w(this,function(P){switch(P.label){case 0:return n=n??s,n?o.disabled?(g.loggerProvider.log("@meiyunji/plugin-web-attribution-browser is disabled. Attribution is not tracked."),[2]):(g.loggerProvider.log("Installing @meiyunji/plugin-web-attribution-browser."),!s&&!(!((v=g.attribution)===null||v===void 0)&&v.disabled)&&(g.loggerProvider.warn("@meiyunji/plugin-web-attribution-browser overrides web attribution behavior defined in @meiyunji/analytics-browser. Resolve by disabling web attribution tracking in @meiyunji/analytics-browser."),g.attribution={disabled:!0}),d=g.cookieStorage,p=rr(g.apiKey,"MKTG"),[4,Promise.all([new xt().parse(),d.get(p)])]):(u=c?"Options":"undefined",g.loggerProvider.error("Argument of type '".concat(u,"' is not assignable to parameter of type 'BrowserClient'.")),[2]);case 1:return E=F.apply(void 0,[P.sent(),2]),x=E[0],_=E[1],b=this.__pluginEnabledOverride,(b??nr(x,_,o))&&(o.resetSessionOnNewCampaign&&(n.setSessionId(Date.now()),g.loggerProvider.log("Created a new session for new campaign.")),g.loggerProvider.log("Tracking attribution."),O=or(x,o),n.track(O),d.set(p,x)),[2]}})})},execute:function(g){return y(t,void 0,void 0,function(){return w(this,function(s){return[2,g]})})}};return h.__pluginEnabledOverride=void 0,h},sr=function(t){var e={};for(var i in t){var r=t[i];r&&(e[i]=r)}return e},ur=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i,r={},n=X(),o=void 0,a=F(t,2),c=a[0],f=a[1];c&&"init"in c?(i=c,f&&(r=f)):c&&(r=c);var l=function(){return y(void 0,void 0,void 0,function(){var u,d,p;return w(this,function(E){switch(E.label){case 0:return d={event_type:(p=r.eventType)!==null&&p!==void 0?p:"Page View"},u=[{}],[4,cr()];case 1:return[2,(d.event_properties=m.apply(void 0,[m.apply(void 0,u.concat([E.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]||""}]),d)]}})})},h=function(){return typeof r.trackOn>"u"||typeof r.trackOn=="function"&&r.trackOn()},g=null,s=function(){return y(void 0,void 0,void 0,function(){var u,d,p;return w(this,function(E){switch(E.label){case 0:return u=location.href,lr(r.trackHistoryChanges,u,g||"")&&h()?(o==null||o.log("Tracking page view event"),i!=null?[3,1]:[3,3]):[3,4];case 1:return p=(d=i).track,[4,l()];case 2:p.apply(d,[E.sent()]),E.label=3;case 3:E.label=4;case 4:return g=u,[2]}})})},v={name:"page-view-tracking",type:G.ENRICHMENT,setup:function(u,d){return y(void 0,void 0,void 0,function(){var p,E,x,_,b;return w(this,function(O){switch(O.label){case 0:return i=i??d,i?(o=u.loggerProvider,o.log("Installing @meiyunji/plugin-
2page-view-tracking-browser"),r.trackOn=!((_=u.attribution)===null||_===void 0)&&_.trackPageViews?"attribution":r.trackOn,!d&&(!((b=u.attribution)===null||b===void 0)&&b.trackPageViews)&&(o.warn("@meiyunji/plugin-page-view-tracking-browser overrides page view tracking behavior defined in @meiyunji/analytics-browser. Resolve by disabling page view tracking in @meiyunji/analytics-browser."),u.attribution.trackPageViews=!1),r.trackHistoryChanges&&n&&(n.addEventListener("popstate",function(){s()}),n.history.pushState=new Proxy(n.history.pushState,{apply:function(P,U,V){var D=F(V,3),H=D[0],K=D[1],J=D[2];return s(),P.apply(U,[H,K,J])}})),h()?(o.log("Tracking page view event"),x=(E=i).track,[4,l()]):[3,2]):(p=c?"Options":"undefined",u.loggerProvider.error("Argument of type '".concat(p,"' is not assignable to parameter of type 'BrowserClient'.")),[2]);case 1:x.apply(E,[O.sent()]),O.label=2;case 2:return[2]}})})},execute:function(u){return y(void 0,void 0,void 0,function(){var d;return w(this,function(p){switch(p.label){case 0:return r.trackOn==="attribution"&&dr(u)?(o==null||o.log("Enriching campaign event to page view event with campaign parameters"),[4,l()]):[3,2];case 1:d=p.sent(),u.event_type=d.event_type,u.event_properties=m(m({},u.event_properties),d.event_properties),p.label=2;case 2:return[2,u]}})})}};return v.__trackHistoryPageView=s,v},cr=function(){return y(void 0,void 0,void 0,function(){var t;return w(this,function(e){switch(e.label){case 0:return t=sr,[4,new xt().parse()];case 1:return[2,t.apply(void 0,[e.sent()])]}})})},dr=function(t){if(t.event_type==="$identify"&&t.user_properties){var e=t.user_properties,i=e[B.SET]||{},r=e[B.UNSET]||{},n=$($([],F(Object.keys(i)),!1),F(Object.keys(r)),!1);return Object.keys(et).every(function(o){return n.includes(o)})}return!1},lr=function(t,e,i){switch(t){case"pathOnly":return e.split("?")[0]!==i.split("?")[0];default:return e!==i}},z="[Amplitude]",Nt="".concat(z," Page Viewed"),Et="".concat(z," Form Started"),fr="".concat(z," Form Submitted"),vr="".concat(z," File Downloaded"),Lt="session_start",Mt="session_end",hr="".concat(z," File Extension"),pr="".concat(z," File Name"),gr="".concat(z," Link ID"),br="".concat(z," Link Text"),mr="".concat(z," Link URL"),Ke="".concat(z," Form ID"),Ge="".concat(z," Form Name"),He="".concat(z," Form Destination"),yr=function(){var t,e,i="@meiyunji/plugin-session-handler",r=G.BEFORE,n=function(a,c){return y(void 0,void 0,void 0,function(){return w(this,function(f){return t=a,e=c,[2]})})},o=function(a){return y(void 0,void 0,void 0,function(){var c,f,l;return w(this,function(h){return c=Date.now(),a.event_type===Lt||a.event_type===Mt?(t.lastEventTime=c,[2,a]):(f=t.lastEventTime||c,l=c-f,l>t.sessionTimeout&&(e.setSessionId(c),a.session_id=e.getSessionId(),a.time=c),t.lastEventTime=c,[2,a])})})};return{name:i,type:r,setup:n,execute:o}},wr=function(){var t="@meiyunji/plugin-form-interaction-tracking-browser",e=G.ENRICHMENT,i=function(n,o){return y(void 0,void 0,void 0,function(){var a,c,f;return w(this,function(l){return o?(a=function(h){var g=!1;h.addEventListener("change",function(){var s;g||o.track(Et,(s={},s[Ke]=h.id,s[Ge]=h.name,s[He]=h.action,s)),g=!0},{}),h.addEventListener("submit",function(){var s,v;g||o.track(Et,(s={},s[Ke]=h.id,s[Ge]=h.name,s[He]=h.action,s)),o.track(fr,(v={},v[Ke]=h.id,v[Ge]=h.name,v[He]=h.action,v)),g=!1})},c=Array.from(document.getElementsByTagName("form")),c.forEach(a),typeof MutationObserver<"u"&&(f=new MutationObserver(function(h){h.forEach(function(g){g.addedNodes.forEach(function(s){s.nodeName==="FORM"&&a(s),"querySelectorAll"in s&&typeof s.querySelectorAll=="function"&&Array.from(s.querySelectorAll("form")).map(a)})})}),f.observe(document.body,{subtree:!0,childList:!0})),[2]):(n.loggerProvider.warn("Form interaction tracking requires a later version of @meiyunji/analytics-browser. Form interaction events are not tracked."),[2])})})},r=function(n){return y(void 0,void 0,void 0,function(){return w(this,function(o){return[2,n]})})};return{name:t,type:e,setup:i,execute:r}},_r=function(){var t="@meiyunji/plugin-file-download-tracking-browser",e=G.ENRICHMENT,i=function(n,o){return y(void 0,void 0,void 0,function(){var a,c,f,l;return w(this,function(h){return o?(a=function(g){var s;try{s=new URL(g.href,window.location.href)}catch{return}var v=c.exec(s.href),u=v==null?void 0:v[1];u&&g.addEventListener("click",function(){var d;u&&o.track(vr,(d={},d[hr]=u,d[pr]=s.pathname,d[gr]=g.id,d[br]=g.text,d[mr]=g.href,d))})},c=/\.(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)$/,f=Array.from(document.getElementsByTagName("a")),f.forEach(a),typeof MutationObserver<"u"&&(l=new MutationObserver(function(g){g.forEach(function(s){s.addedNodes.forEac
2h(function(v){v.nodeName==="A"&&a(v),"querySelectorAll"in v&&typeof v.querySelectorAll=="function"&&Array.from(v.querySelectorAll("a")).map(a)})})}),l.observe(document.body,{subtree:!0,childList:!0})),[2]):(n.loggerProvider.warn("File download tracking requires a later version of @meiyunji/analytics-browser. File download events are not tracked."),[2])})})},r=function(n){return y(void 0,void 0,void 0,function(){return w(this,function(o){return[2,n]})})};return{name:t,type:e,setup:i,execute:r}},Er={page_domain:"".concat(z," Page Domain"),page_location:"".concat(z," Page Location"),page_path:"".concat(z," Page Path"),page_title:"".concat(z," Page Title"),page_url:"".concat(z," Page URL")},Ir=function(){var t="@meiyunji/plugin-default-page-view-event-enrichment-browser",e=G.ENRICHMENT,i=function(){return y(void 0,void 0,void 0,function(){return w(this,function(n){return[2,void 0]})})},r=function(n){return y(void 0,void 0,void 0,function(){return w(this,function(o){return n.event_type===Nt&&n.event_properties&&(n.event_properties=Object.entries(n.event_properties).reduce(function(a,c){var f=F(c,2),l=f[0],h=f[1],g=Er[l];return g?a[g]=h:a[l]=h,a},{})),[2,n]})})};return{name:t,type:e,setup:i,execute:r}},Sr=function(t){Ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(i,r,n,o){return i===void 0&&(i=""),Q(this._init(m(m({},o),{userId:r,parentId:n,apiKey:i})))},e.prototype._init=function(i){var r,n,o,a,c,f,l,h,g,s,v,u,d,p,E,x,_,b,O,P,U;return y(this,void 0,void 0,function(){var V,D,H,K,J,I,re,Te,ne,oe,pe,de,le,ge,ae,se,fe,ee,te,be=this;return w(this,function(A){switch(A.label){case 0:return this.initializing?[2]:(this.initializing=!0,V=i,i.disableCookies?(D="",[3,5]):[3,1]);case 1:return(r=i.domain)!==null&&r!==void 0?(H=r,[3,4]):[3,2];case 2:return[4,er()];case 3:H=A.sent(),A.label=4;case 4:D=H,A.label=5;case 5:return V.domain=D,[4,tr(i.apiKey,i)];case 6:return K=A.sent(),[4,Ut(i)];case 7:return J=A.sent(),[4,J.get(At(i.apiKey))];case 8:return I=A.sent(),re=Xe(),Te=(a=(o=(n=i.deviceId)!==null&&n!==void 0?n:re.deviceId)!==null&&o!==void 0?o:I==null?void 0:I.deviceId)!==null&&a!==void 0?a:K.deviceId,ne=(f=(c=i.sessionId)!==null&&c!==void 0?c:I==null?void 0:I.sessionId)!==null&&f!==void 0?f:K.sessionId,oe=(h=(l=i.optOut)!==null&&l!==void 0?l:I==null?void 0:I.optOut)!==null&&h!==void 0?h:K.optOut,pe=I==null?void 0:I.lastEventId,de=(g=I==null?void 0:I.lastEventTime)!==null&&g!==void 0?g:K.lastEventTime,le=(v=(s=i.userId)!==null&&s!==void 0?s:I==null?void 0:I.userId)!==null&&v!==void 0?v:K.userId,ge=(d=(u=i.parentId)!==null&&u!==void 0?u:I==null?void 0:I.parentId)!==null&&d!==void 0?d:K.parentId,this.previousSessionDeviceId=(p=I==null?void 0:I.deviceId)!==null&&p!==void 0?p:K.deviceId,this.previousSessionUserId=(E=I==null?void 0:I.userId)!==null&&E!==void 0?E:K.userId,this.previousSessionParentId=(x=I==null?void 0:I.parentId)!==null&&x!==void 0?x:K.parentId,[4,Zi(i.apiKey,m(m({},i),{deviceId:Te,sessionId:ne,optOut:oe,lastEventId:pe,lastEventTime:de,userId:le,parentId:ge,cookieStorage:J}))];case 9:return ae=A.sent(),[4,t.prototype._init.call(this,ae)];case 10:return A.sent(),se=!this.config.lastEventTime,(!this.config.sessionId||this.config.lastEventTime&&Date.now()-this.config.lastEventTime>this.config.sessionTimeout)&&(this.setSessionId(Date.now()),se=!0),fe=Ve(),fe.identityStore.setIdentity({userId:this.config.userId,parentId:this.config.parentId,deviceId:this.config.deviceId}),[4,this.add(new pi).promise];case 11:return A.sent(),[4,this.add(new Qi).promise];case 12:return A.sent(),[4,this.add(yr()).promise];case 13:return A.sent(),[4,this.add(new Li).promise];case 14:return A.sent(),qi(this.config.defaultTracking)?[4,this.add(_r()).promise]:[3,16];case 15:A.sent(),A.label=16;case 16:return Vi(this.config.defaultTracking)?[4,this.add(wr()).promise]:[3,18];case 17:A.sent(),A.label=18;case 18:return!((_=this.config.attribution)===null||_===void 0)&&_.disabled?[3,20]:(ee=ar({excludeReferrers:(b=this.config.attribution)===null||b===void 0?void 0:b.excludeReferrers,initialEmptyValue:(O=this.config.attribution)===null||O===void 0?void 0:O.initialEmptyValue,resetSessionOnNewCampaign:(P=this.config.attribution)===null||P===void 0?void 0:P.resetSessionOnNewCampaign}),ee.__pluginEnabledOverride=se||!((U=this.config.attribution)===null||U===void 0)&&U.trackNewCampaigns?void 0:!1,[4,this.add(ee).promise]);case 19:A.sent(),A.label=20;case 20:return te=Bi(this.config),te.eventType=te.eventType||Nt,[4,this.add(ur(te)).promise];
2case 21:return A.sent(),[4,this.add(Ir()).promise];case 22:return A.sent(),this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return A.sent(),fe.eventBridge.setEventReceiver(function(ke){be.track(ke.eventType,ke.eventProperties)}),[2]}})})},e.prototype.getUserId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.userId},e.prototype.setUserId=function(i){if(!this.config){this.q.push(this.setUserId.bind(this,i));return}(i!==this.config.userId||i===void 0)&&(this.config.userId=i,this.setSessionId(Date.now()),Di(i))},e.prototype.getParentId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.parentId},e.prototype.setParentId=function(i){if(!this.config){this.q.push(this.setUserId.bind(this,i));return}(i!==this.config.parentId||i===void 0)&&(this.config.parentId=i)},e.prototype.getDeviceId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.deviceId},e.prototype.setDeviceId=function(i){if(!this.config){this.q.push(this.setDeviceId.bind(this,i));return}this.config.deviceId=i,Ni(i)},e.prototype.reset=function(){this.setDeviceId(qe()),this.setUserId(void 0),this.setParentId(void 0)},e.prototype.getSessionId=function(){var i;return(i=this.config)===null||i===void 0?void 0:i.sessionId},e.prototype.setSessionId=function(i){if(!this.config){this.q.push(this.setSessionId.bind(this,i));return}var r=this.getSessionId(),n=this.config.lastEventTime;if(this.config.sessionId=i,this.config.lastEventTime=void 0,ji(this.config.defaultTracking)){if(r&&n){var o={session_id:r,time:n+1};o.device_id=this.previousSessionDeviceId,o.user_id=this.previousSessionUserId,o.parent_id=this.previousSessionParentId,this.track(Mt,void 0,o)}this.track(Lt,void 0,{session_id:i,time:i-1}),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,this.previousSessionParentId=this.config.parentId}},e.prototype.setTransport=function(i){if(!this.config){this.q.push(this.setTransport.bind(this,i));return}this.config.transportProvider=Dt(i)},e.prototype.identify=function(i,r){if(ze(i)){var n=i._q;i._q=[],i=Be(new Le,n)}return r!=null&&r.user_id&&this.setUserId(r.user_id),r!=null&&r.parent_id&&this.setParentId(r.parent_id),r!=null&&r.device_id&&this.setDeviceId(r.device_id),t.prototype.identify.call(this,i,r)},e.prototype.groupIdentify=function(i,r,n,o){if(ze(n)){var a=n._q;n._q=[],n=Be(new Le,a)}return t.prototype.groupIdentify.call(this,i,r,n,o)},e.prototype.revenue=function(i,r){if(ze(i)){var n=i._q;i._q=[],i=Be(new di,n)}return t.prototype.revenue.call(this,i,r)},e}(ci),Tr=function(){var t=new Sr;return{init:q(t.init.bind(t),"init",L(t),M(t,["config"])),add:q(t.add.bind(t),"add",L(t),M(t,["config.apiKey","timeline.plugins"])),remove:q(t.remove.bind(t),"remove",L(t),M(t,["config.apiKey","timeline.plugins"])),track:q(t.track.bind(t),"track",L(t),M(t,["config.apiKey","timeline.queue.length"])),logEvent:q(t.logEvent.bind(t),"logEvent",L(t),M(t,["config.apiKey","timeline.queue.length"])),identify:q(t.identify.bind(t),"identify",L(t),M(t,["config.apiKey","timeline.queue.length"])),groupIdentify:q(t.groupIdentify.bind(t),"groupIdentify",L(t),M(t,["config.apiKey","timeline.queue.length"])),setGroup:q(t.setGroup.bind(t),"setGroup",L(t),M(t,["config.apiKey","timeline.queue.length"])),revenue:q(t.revenue.bind(t),"revenue",L(t),M(t,["config.apiKey","timeline.queue.length"])),flush:q(t.flush.bind(t),"flush",L(t),M(t,["config.apiKey","timeline.queue.length"])),getUserId:q(t.getUserId.bind(t),"getUserId",L(t),M(t,["config","config.userId"])),setUserId:q(t.setUserId.bind(t),"setUserId",L(t),M(t,["config","config.userId"])),getParentId:q(t.getParentId.bind(t),"getParentId",L(t),M(t,["config","config.parentId"])),setParentId:q(t.setParentId.bind(t),"setParentId",L(t),M(t,["config","config.parentId"])),getDeviceId:q(t.getDeviceId.bind(t),"getDeviceId",L(t),M(t,["config","config.deviceId"])),setDeviceId:q(t.setDeviceId.bind(t),"setDeviceId",L(t),M(t,["config","config.deviceId"])),reset:q(t.reset.bind(t),"reset",L(t),M(t,["config","config.userId","config.deviceId"])),getSessionId:q(t.getSessionId.bind(t),"getSessionId",L(t),M(t,["config"])),setSessionId:q(t.setSessionId.bind(t),"setSessionId",L(t),M(t,["config"])),setOptOut:q(t.setOptOut.bind(t),"setOptOut",L(t),M(t,["config"])),setTransport:q(t.setTransport.bind(t),"setTransport",L(t),M(t,["config"]))}};const qt=Tr();var kr=qt.init,Vt=qt.track;const Ft="1.1.253",Pr={dev:"7524856b7a91ed23cd047130000d2c1e",prod:"fd02153a093d94914a7662ebff78ea9b"};let jt="dev";var It,Ae,St;((St=(Ae=(It=window==null?void 0:window.location)==null?void 0:It.href)==null?void 0:Ae.indexOf)==null?void 0:St.call(Ae,"www.sellfox.c
2om"))!==-1&&(jt="prod");kr(Pr[jt],"","",{serverUrl:"https://events.sellfox.com/events"});function Or(t,e={}){var i;try{Vt("count",{name:t,url:(i=window==null?void 0:window.location)==null?void 0:i.href,...e},{app_version:Ft||"0.0.0"})}catch{}}function xr(t,e="click",i={}){var r;try{Vt(e,{name:t,url:(r=window==null?void 0:window.location)==null?void 0:r.href,...i},{app_version:Ft||"0.0.0"})}catch{Or("userEventsReportError")}}export{xr as u};

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.