(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,484404,(e,t,r)=>{!function(e){"use strict";var i="function",n="undefined",o="object",a="string",s="model",u="name",l="type",c="vendor",f="version",h="architecture",p="console",d="mobile",v="tablet",y="smarttv",g="wearable",m="embedded",b="Amazon",w="Apple",x="ASUS",S="BlackBerry",k="Browser",_="Chrome",I="Firefox",A="Google",E="Huawei",C="Microsoft",P="Motorola",O="Opera",U="Samsung",T="Sharp",j="Sony",F="Xiaomi",M="Zebra",N="Facebook",V=function(e,t){var r={};for(var i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r},R=function(e){for(var t={},r=0;r0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||void 0;c+=2}},B=function(e,t){for(var r in t)if(typeof t[r]===o&&t[r].length>0){for(var i=0;i350?K(e,350):e,this},this.setUA(i),this};Q.VERSION="0.7.33",Q.BROWSER=R([u,f,"major"]),Q.CPU=R([h]),Q.DEVICE=R([s,c,l,p,d,y,v,g,m]),Q.ENGINE=Q.OS=R([u,f]),t.exports&&(r=t.exports=Q),r.UAParser=Q;var $=typeof e!==n&&(e.jQuery||e.Zepto);if($&&!$.ua){var W=new Q;$.ua=W.getResult(),$.ua.get=function(){return W.getUA()},$.ua.set=function(e){W.setUA(e);var t=W.getResult();for(var r in t)$.ua[r]=t[r]}}}("object"==typeof window?window:e.e)},830460,e=>{"use strict";let t,r;var i,n,o,a,s=e.i(122845),u=function(e,t){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function l(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var c=function(){return(c=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function v(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n>6|192:((64512&n)==55296&&i+1>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128)}return Uint8Array.from(t)},F=function(e,t){void 0===t&&(t=0);for(var r=j(e),i=r.length,n=i>>2,o=t,a=0;a>>0},M=function(e,t){var r=e,i=t;return i^=r=Math.imul(r=V(r=Math.imul(r,-0x3361d2af),15),0x1b873593),(i=Math.imul(i=V(i,13),5))+-0x19ab949c|0},N=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-0x7a143595),t^=t>>>13,t=Math.imul(t,-0x3d4d51cb),t^=t>>>16},V=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var i=(e&0xffffffff>>0)>>>0>>>r-t>>>0;return(e>>0},R=function(e,t){return void 0===t&&(t=0),D(e[t]>>24|(0xff0000&e)>>>8|(65280&e)e.major)return 1;if(this.majore.minor)return 1;if(this.minore.patch)return 1;if(this.patche.preRelease)return 1;if(this.preRelease=v&&l=w&&cr;case S:case A:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var i=e.compareTo(r);switch(t){case b:case k:return i0;case S:case A:return i>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!=(t=Number(e))?t:void 0},e.prototype.coerceString=function(e){if(null!=e)return"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var i=String(e);try{var n=JSON.parse(i);if(Array.isArray(n)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(i);return o?[o]:void 0}catch(e){var o=this.coerceString(i);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case E:case C:case P:case O:case U:case T:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),i=new Set(t);return r.size===i.size&&v([],d(i),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,i;if(e.lengthr[e]=t),r),G=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,H=String.fromCharCode.bind(String),Y="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),ee=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),et="function"==typeof btoa?e=>btoa(e):Q?e=>s.Buffer.from(e,"binary").toString("base64"):e=>{let t,r,i,n,o="",a=e.length%3;for(let a=0;a255||(i=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=X[(t=r>18&63]+X[t>>12&63]+X[t>>6&63]+X[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},er=Q?e=>s.Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,i=e.length;r{if(e.length>>6)+H(128|63&t):H(224|t>>>12&15)+H(128|t>>>6&63)+H(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return H(240|t>>>18&7)+H(128|t>>>12&63)+H(128|t>>>6&63)+H(128|63&t)},en=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,eo=Q?e=>s.Buffer.from(e,"utf8").toString("base64"):W?e=>er(W.encode(e)):e=>et(e.replace(en,ei)),ea=(e,t=!1)=>t?ee(eo(e)):eo(e),es=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,eu=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))>>10)+55296)+H((1023&t)+56320);case 3:return H((15&e.charCodeAt(0))atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):Q?e=>s.Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!G.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",i,n;for(let o=0;o>16&255):64===n?H(t>>16&255,t>>8&255):H(t>>16&255,t>>8&255,255&t);return r},ec=Q?e=>Y(s.Buffer.from(e,"base64")):e=>Y(el(e).split("").map(e=>e.charCodeAt(0))),ef=Q?e=>s.Buffer.from(e,"base64").toString("utf8"):$?e=>$.decode(ec(e)):e=>el(e).replace(es,eu);var eh=function(e){function t(r,i){var n=e.call(this,i)||this;return n.statusCode=r,Object.setPrototypeOf(n,t.prototype),n}return l(t,e),t}(Error),ep=function(e){function t(r){var i=e.call(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return l(t,e),t}(Error),ed=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getVariants=function(e,t){return f(this,void 0,void 0,function(){var r,i,n,o;return h(this,function(a){switch(a.label){case 0:return r=ea(JSON.stringify(e),!0),i={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(i["X-Amp-Exp-Flag-Keys"]=ea(JSON.stringify(t.flagKeys),!0)),(null==t?void 0:t.trackingOption)&&(i["X-Amp-Exp-Track"]=t.trackingOption),n=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&n.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&n.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:n.toString(),method:"GET",headers:i,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new eh(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),ev=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getFlags=function(e){return f(this,void 0,void 0,function(){var t,r;return h(this,function(i){switch(i.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),(null==e?void 0:e.user)&&(t["X-Amp-Exp-User"]=ea(JSON.stringify(e.user),!0)),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+((null==e?void 0:e.deliveryMethod)?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(r=i.sent()).status)throw Error("Flags error response: status=".concat(r.status));return[2,JSON.parse(r.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),ey="u">typeof globalThis?globalThis:e.g||self,eg=function(){return"u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof self?self:e.g},em=function(){var e=eg();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},eb=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=ey.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(ey.clearInterval(this.poller),this.poller=void 0)},e}(),ew=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:ex(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),ex=function(){return"u">typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},eS=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),ek=function(){return(ek=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eI(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var eA=function(e,t){var r,i,n=typeof e;if(n!==typeof t)return!1;try{for(var o=e_(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===n)return e===t}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var s=Array.isArray(e),u=Array.isArray(t);if(s!==u)return!1;if(s&&u){for(var l=0;ltypeof globalThis?globalThis:e.g;function eP(){this.identityStore=new eE,this.eventBridge=new eS,this.applicationContextProvider=new ew}eP.getInstance=function(e){return eC.analyticsConnectorInstances||(eC.analyticsConnectorInstances={}),eC.analyticsConnectorInstances[e]||(eC.analyticsConnectorInstances[e]=new eP),eC.analyticsConnectorInstances[e]};var eO=e.i(484404);function eU(e){this.amplitudeInstance=e}function eT(e){this.amplitudeInstance=e}eU.prototype.getUser=function(){var e,t,r,i,n,o,a,s,u,l;return{device_id:null==(t=null==(e=this.amplitudeInstance)?void 0:e.options)?void 0:t.deviceId,user_id:null==(i=null==(r=this.amplitudeInstance)?void 0:r.options)?void 0:i.userId,version:null==(o=null==(n=this.amplitudeInstance)?void 0:n.options)?void 0:o.versionName,language:null==(s=null==(a=this.amplitudeInstance)?void 0:a.options)?void 0:s.language,platform:null==(l=null==(u=this.amplitudeInstance)?void 0:u.options)?void 0:l.platform,os:this.getOs(),device_model:this.getDeviceModel()}},eU.prototype.getOs=function(){var e,t,r,i,n,o;return[null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.browser)?void 0:r.name,null==(o=null==(n=null==(i=this.amplitudeInstance)?void 0:i._ua)?void 0:n.browser)?void 0:o.major].filter(function(e){return null!=e}).join(" ")},eU.prototype.getDeviceModel=function(){var e,t,r;return null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.os)?void 0:r.name},eT.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},eT.prototype.setUserProperty=function(e){var t,r;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null==(r=e.variant)?void 0:r.value,t))},eT.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})};var ej=function(){return(ej=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eV(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function eR(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n=2&&d[1]&&(v=atob(d[1])),{deviceId:d[0],userId:v}}catch(e){return}},eq=function(e){var t=eL(e,!0);try{var r=ey.localStorage.getItem(t);if(!r)return;var i=JSON.parse(r);if("object"!=typeof i)return;return i}catch(e){return}},eK=function(e){var t=eL(e,!0);try{var r=ey.sessionStorage.getItem(t);if(!r)return;var i=JSON.parse(r);if("object"!=typeof i)return;return i}catch(e){return}},eL=function(e,t){if(t){if((null==e?void 0:e.length)this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),ey.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),eY=function(){var e=eg();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},e0=function(){function e(){this.globalScope=eg()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.localStorage.removeItem(e)},e}(),e1=function(e,t,r){var i=e.substring(e.length-6);return new e3("amp-exp-".concat(t,"-").concat(i),r,e6)},e2=function(e,t,r){void 0===r&&(r=new e0);var i=e.substring(e.length-6);return new e3("amp-exp-".concat(t,"-").concat(i,"-flags"),r)},e3=function(){function e(e,t,r){this.cache={},this.namespace=e,this.storage=t,this.transformer=r}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return ej({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,r;try{for(var i=eN(Object.keys(e)),n=i.next();!n.done;n=i.next()){var o=n.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,r,i=this.storage.get(this.namespace);try{r=JSON.parse(i)||{}}catch(e){return}var n={};try{for(var o=eN(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var u=void 0;(u=this.transformer?this.transformer(r[s]):r[s])&&(n[s]=u)}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(n)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),e6=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,r=e.value,i=e.payload,n=e.metadata,o=e.expKey;n&&n.experimentKey?o=n.experimentKey:o&&((n=n||{}).experimentKey=o);var a={};return t?a.key=t:r&&(a.key=r),r&&(a.value=r),n&&(a.metadata=n),i&&(a.payload=i),o&&(a.expKey=o),a}},e4=function(){function e(){this.globalScope=eg()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.sessionStorage.removeItem(e)},e}(),e5=function(e,t,r,i){var n,o=null==r?void 0:r.value,a="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:r,userProperty:a,properties:{key:t,variant:o,source:i},userProperties:((n={})[a]=o,n)}},e8=function(e){return null==e},e9=function(e){return!!e8(e)||e&&0===Object.keys(e).length},e7=function(e){if(!e||"object"!=typeof e)return{};var t,r,i={};try{for(var n=eN(Object.entries(e)),o=n.next();!o.done;o=n.next()){var a=eV(o.value,2),s=a[0],u=a[1];e8(u)||(i[s]=u)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return i},te=function(e){var t;return(null==(t=null==e?void 0:e.metadata)?void 0:t.evaluationMode)==="local"},tt=function(){function e(e,t,r,i){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=r,this.scalar=i}return e.prototype.start=function(e){return eF(this,void 0,void 0,function(){return eM(this,function(t){switch(t.label){case 0:if(this.started)throw Error("Backoff already started");return this.started=!0,[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,r){return eF(this,void 0,void 0,function(){var i=this;return eM(this,function(n){return this.done||(this.timeoutHandle=ey.setTimeout(function(){return eF(i,void 0,void 0,function(){var i,n;return eM(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return o.sent(),[3,3];case 2:return o.sent(),(i=t+1)0&&f[0]){var h=f[0],p={group_name:h},d=null==(n=null==(i=e.group_properties)?void 0:i[c])?void 0:n[h];d&&Object.keys(d).length>0&&(p.group_properties=d),s[c]=p}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},ti=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},tn=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var r={};return e.key&&(r.key=e.key),e.value&&(r.value=e.value),e.payload&&(r.payload=e.payload),t&&(r.expKey=t),e.metadata&&(r.metadata=e.metadata),r},to=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),ta=function(){function e(e){this.tracked={},this.exposureTrackingProvider=e}return e.prototype.track=function(e){var t=this.tracked[e.flag_key];t&&t.variant===e.variant||(this.tracked[e.flag_key]=e,this.exposureTrackingProvider.track(e))},e}(),ts=function(){function e(e,t){var r,i,n,o,a,s=this;this.engine=new B,this.isRunning=!1,this.apiKey=e,t=e7(t),this.config=ej(ej(ej({},eW),t),{serverUrl:(null==t?void 0:t.serverUrl)||((null==(r=null==t?void 0:t.serverZone)?void 0:r.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":eW.serverUrl),flagsServerUrl:(null==t?void 0:t.flagsServerUrl)||((null==(i=null==t?void 0:t.serverZone)?void 0:i.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":eW.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis=500||429===e.statusCode},e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),tu=function(){function e(e,t){var r,i,n;this.globalScope=eg(),this.userAgent=void 0!==(null==(r=this.globalScope)?void 0:r.navigator)?null==(i=this.globalScope)?void 0:i.navigator.userAgent:void 0,this.ua=new eO.UAParser(this.userAgent).getResult(),this.localStorage=new e0,this.sessionStorage=new e4,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null==(n=this.apiKey)?void 0:n.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,r,i,n,o=(null==(e=this.userProvider)?void 0:e.getUser())||{};return ej({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:null!=(r=null==(t=this.ua.device)?void 0:t.type)?r:"desktop",referring_url:null==(n=null==(i=this.globalScope)?void 0:i.document)?void 0:n.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},e.prototype.getLanguage=function(){return"u">typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(e){var t,r;return[null==(t=e.browser)?void 0:t.name,null==(r=e.browser)?void 0:r.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(e){var t;return null==(t=e.os)?void 0:t.name},e.prototype.getBrowser=function(e){var t,r=null==(t=e.browser)?void 0:t.name;return(null==r?void 0:r.includes("Chrom"))&&(r="Chrome"),(null==r?void 0:r.includes("Firefox"))&&(r="Firefox"),(null==r?void 0:r.includes("Safari"))&&(r="Safari"),(null==r?void 0:r.includes("Edge"))&&(r="Edge"),(null==r?void 0:r.includes("Opera"))&&(r="Opera"),r},e.prototype.getCookie=function(){var e,t,r,i,n;if(null==(t=null==(e=this.globalScope)?void 0:e.document)?void 0:t.cookie)return Object.fromEntries(null==(n=null==(i=null==(r=this.globalScope)?void 0:r.document)?void 0:i.cookie)?void 0:n.split("; ").map(function(e){return e.split("=")}))},e.prototype.getLandingUrl=function(){var e,t;try{var r=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return r.landing_url||(r.landing_url=null==(t=null==(e=this.globalScope)?void 0:e.location)?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(r))),r.landing_url}catch(e){return}},e.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch(e){return}},e.prototype.getUrlParam=function(){if(this.globalScope){var e,t,r,i={};try{var n=new URL(this.globalScope.location.href);try{for(var o=eN(n.searchParams),a=o.next();!a.done;a=o.next()){var s=eV(a.value,2),u=s[0],l=s[1];i[u]=eR(eR([],eV(null!=(r=i[u])?r:[]),!1),eV(l.split(",")),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(i).reduce(function(e,t){var r=eV(t,2),i=r[0],n=r[1];return e[i]=1==n.length?n[0]:n,e},{})}},e}();ey.experimentInstances={};var tl=ey.experimentInstances,tc=function(e,t){var r=(null==t?void 0:t.instanceName)||eW.instanceName,i=null==t?void 0:t.internalInstanceNameSuffix;return i?"".concat(r,".").concat(e,".").concat(i):"".concat(r,".").concat(e)},tf=function(e,t,r){var i=tc(e,t),n=tl[i];return n?n:(n=new ts(e,ej(ej({},t),{userProvider:new tu(null==t?void 0:t.userProvider,e)})),r&&n.addPlugin(r()),tl[i]=n,n)};function th(){}th.prototype.getUser=function(){return{}},th.prototype.start=function(e){return eF(this,void 0,void 0,function(){return eM(this,function(e){return[2]})})},th.prototype.stop=function(){},th.prototype.setUser=function(e){},th.prototype.fetch=function(e,t){return eF(this,void 0,void 0,function(){return eM(this,function(e){return[2,this]})})},th.prototype.getUserProvider=function(){return null},th.prototype.setUserProvider=function(e){return this},th.prototype.variant=function(e,t){return eW.fallbackVariant},th.prototype.all=function(){return{}},th.prototype.clear=function(){},th.prototype.exposure=function(e){};let tp="$default_instance",td="wxu-exp-anon-id";function tv(){window.__wxExposureQueue||(window.__wxExposureQueue=[],window.__wxExposureSink=e=>{window.__wxExposureQueue?.push(e)})}function ty(e=!1){if(window.__wxExperimentClient)return window.__wxExperimentClient;let r="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV";try{var i;let n=function(){let e=window.__wxAmpFlags;if(!e||"string"!=typeof e)return;let t=Date.parse(window.__wxAmpFlagsAt??"");if(!Number.isFinite(t)){window.__wxAmpFlagsRejected="no-timestamp";return}if(Math.abs(Date.now()-t)>216e5){window.__wxAmpFlagsRejected="stale";return}let r="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV".slice(-6),i=window.__wxAmpFlagsKeySuffix;if(i&&r&&i!==r){window.__wxAmpFlagsRejected="key-mismatch";return}try{let t=JSON.parse(e);if(!Array.isArray(t)){window.__wxAmpFlagsRejected="not-an-array";return}return t}catch{window.__wxAmpFlagsRejected="not-json";return}}();if(!n&&!e)return;tv();try{window.localStorage.removeItem(`amp-exp-${tp}-${r.slice(-6)}-flags`)}catch{}let a=n?new Set(n.map(e=>e.key)):void 0,s=!!a&&0===window.__wxAmpFlagsDropped;s&&a&&function(e,t){let r=`amp-exp-${tp}-${e.slice(-6)}`;try{let e=window.localStorage.getItem(r);if(!e)return;let i=JSON.parse(e);if(!i||"object"!=typeof i||Array.isArray(i))return;let n=Object.entries(i);if(!n.every(([,e])=>"string"==typeof e||"object"==typeof e&&!!e))return;let o=n.filter(([e])=>t.has(e));if(o.length===n.length)return;if(0===o.length)return void window.localStorage.removeItem(r);window.localStorage.setItem(r,JSON.stringify(Object.fromEntries(o)))}catch{}}(r,a);let u=function(){try{let e=window.localStorage.getItem("wxu-web/keyval:user");if(e){let t=JSON.parse(e),r=t?.anonymousId;if("string"==typeof r&&r)return r}}catch{}try{let e=window.localStorage.getItem(td);if(e)return e}catch{}if("function"!=typeof crypto?.randomUUID)return;let e=crypto.randomUUID();try{return window.localStorage.setItem(td,e),window.localStorage.getItem(td)||e}catch{return e}}(),l=(i={...n?{initialFlags:JSON.stringify(n)}:{},fetchOnStart:!1,pollOnStart:!1,automaticExposureTracking:!1,source:o.LocalStorage,exposureTrackingProvider:{track:e=>window.__wxExposureSink?.(e)}},tf(r,i));u&&l.setUser({device_id:u}),t=s?a:void 0,window.__wxExperimentClient=l,window.__wxExperimentDeviceId=u;let c=window.__wxAmpFlagsDropped;return window.__wxNeedsRemoteExperiments=!n||0===n.length||0!==c||n.some(e=>e.metadata?.evaluationMode!=="local"),l}catch{return}}function tg(){if(window.__wxExperiments)return window.__wxExperiments;let e=ty();if(!e)return{};try{let r=e.all();window.__wxExperiments=t?Object.fromEntries(Object.entries(r).filter(([e])=>t?.has(e))):r}catch{window.__wxExperiments={}}return window.__wxExperiments}e.s(["ensureExperimentClient",0,ty,"initEarlyExperiments",0,function(){try{tv(),window.__wxEvalExperiments=tg,window.__wxEvalExperiments()}catch{}}],830460)}]);