https://www.fonoma.com/cms/_next/static/chunks/0opbjl2ydios4.js?dpl=dpl_2qzXtB4NEvX4v1RQ49NFxZ2SYzmv
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,315,t=>{"use strict";var e,n,r=t.i(39057),i=t.i(13178);function o(){return void 0!==r.default&&r.default.env?r.default.env:{}}var a=t.i(22047),s=t.i(83210);function u(t,e,n,r){var i,o=[t,e,n,r],a=(0,s.isPlainObject)(t)?t.event:t;if(!a||!(0,s.isString)(a))throw Error("Event missing");var u=(0,s.isPlainObject)(t)?null!=(i=t.properties)?i:{}:(0,s.isPlainObject)(e)?e:{},c={};return(0,s.isFunction)(n)||(c=null!=n?n:{}),(0,s.isPlainObject)(t)&&!(0,s.isFunction)(e)&&(c=null!=e?e:{}),[a,u,c,o.find(s.isFunction)]}function c(t,e,n,r,i){var o,a,u=null,c=null,l=[t,e,n,r,i],h=l.filter(s.isString);1===h.length?(c=(0,s.isString)(l[1])?l[1]:h[0],u=null):2===h.length&&("string"==typeof l[0]&&(u=l[0]),"string"==typeof l[1]&&(c=l[1]));var d=l.find(s.isFunction),f=l.filter(s.isPlainObject);return 1===f.length?(0,s.isPlainObject)(l[2])?(a={},o=l[2]):(0,s.isPlainObject)(l[3])?(o={},a=l[3]):(o=f[0],a={}):2===f.length&&(o=f[0],a=f[1]),[u,c,null!=o?o:o={},null!=a?a:a={},d]}var l=function(t){return function(){for(var e,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},u=["callback","options","traits","id"],c=0;c<i.length;c++){var l=i[c],h=u.pop();if("id"===h){if((0,s.isString)(l)||(0,s.isNumber)(l)){a.id=l.toString();continue}if(null==l)continue;h=u.pop()}if(("traits"===h||"options"===h)&&(null==l||(0,s.isPlainObject)(l))&&(a[h]=l),(0,s.isFunction)(l)){a.callback=l;break}}return[null!=(e=a.id)?e:t.id(),null!=(n=a.traits)?n:{},null!=(r=a.options)?r:{},a.callback]}};function h(t,e,n,r){(0,s.isNumber)(t)&&(t=t.toString()),(0,s.isNumber)(e)&&(e=e.toString());var i=[t,e,n,r],o=i.filter(s.isString),a=o[0],u=void 0===a?t:a,c=o[1],l=i.filter(s.isPlainObject)[0];return[u,void 0===c?null:c,void 0===l?{}:l,i.find(s.isFunction)]}var d=t.i(81118),f=t.i(14711),p=t.i(72616),g=t.i(90979),v=t.i(51123),_=function(t,e,n,r,i,o){return{__t:"bpc",c:e,p:r,u:t,s:n,t:i,r:o}},y=Object.keys(_("","","","","","")),m=function(t){var e=t.indexOf("#");return -1===e?t:t.slice(0,e)},b=function(t){try{return new URL(t).pathname}catch(e){return"/"===t[0]?t:"/"+t}},w=function(t){var e=t.c,n=t.p,r=t.s,i=t.u,o=t.r,a=t.t,s=e?b(e):n,u=e?e.indexOf("?")>-1?e:e+r:m(i);return{path:s,referrer:o,search:r,title:a,url:u}},S=function(){var t=document.querySelector("link[rel='canonical']");return _(location.href,t&&t.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},E=function(t,e){void 0===e&&(e=w(S()));var n,r,o,a=t.context;"page"===t.type&&(o=t.properties&&(n=t.properties,r=Object.keys(e),Object.assign.apply(Object,(0,i.__spreadArray)([{}],r.map(function(t){var e;if(n&&Object.prototype.hasOwnProperty.call(n,t))return(e={})[t]=n[t],e}),!1))),t.properties=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},e),t.properties),t.name?{name:t.name}:{})),a.page=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},e),o),a.page)},k=t.i(80398),I=function(t){function e(e,n){var r=t.call(this,"".concat(e," ").concat(n))||this;return r.field=e,r}return(0,i.__extends)(e,t),e}(Error),A="is not a string",M="is not an object",P=function(t){var e,n;this.settings=t,this.createMessageId=t.createMessageId,this.onEventMethodCall=null!=(e=t.onEventMethodCall)?e:function(){},this.onFinishedEvent=null!=(n=t.onFinishedEvent)?n:function(){}},O=function(t){function e(e){var n=t.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,v.v4)())},onEventMethodCall:function(t){var e=t.options;n.maybeUpdateAnonId(e)},onFinishedEvent:function(t){return n.addIdentity(t),t}})||this;return n.user=e,n}return(0,i.__extends)(e,t),e.prototype.maybeUpdateAnonId=function(t){(null==t?void 0:t.anonymousId)&&this.user.anonymousId(t.anonymousId)},e.prototype.addIdentity=function(t){this.user.id()&&(t.userId=this.user.id()),this.user.anonymousId()&&(t.anonymousId=this.user.anonymousId())},e.prototype.track=function(e,n,r,i,o){var a=t.prototype.track.call(this,e,n,r,i);return E(a,o),a},e.prototype.page=function(e,n,r,i,o,a){var s=t.prototype.page.call(this,e,n,r,i,o);return E(s,a),s},e.prototype.screen=function(e,n,r,i,o,a){var s=t.prototype.screen.call(this,e,n,r,i,o);return E(s,a),s},e.prototype.identify=function(e,n,r,i,o){var a=t.prototype.identify.call(this,e,n,r,i);return E(a,o),a},e.prototype.group=function(e,n,r,i,o){var a=t.prototype.group.call(this,e,n,r,i);return E(a,o),a},e.prototype.alias=function(e,n,r,i,o){var a=t.prototype.alias.call(this,e,n,r,i);return E(a,o),a},e}(function(){function t(t){this.settings=new P(t)}return t.prototype.track=function(t,e,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,i.__assign)((0,i.__assign)({},this.baseEvent()),{event:t,type:"track",properties:null!=e?e:{},options:(0,i.__assign)({},n),integrations:(0,i.__assign)({},r)}))},t.prototype.page=function(t,e,n,r,o){this.settings.onEventMethodCall({type:"page",options:r});var a,s={type:"page",properties:(0,i.__assign)({},n),options:(0,i.__assign)({},r),integrations:(0,i.__assign)({},o)};return null!==t&&(s.category=t,s.properties=null!=(a=s.properties)?a:{},s.properties.category=t),null!==e&&(s.name=e),this.normalize((0,i.__assign)((0,i.__assign)({},this.baseEvent()),s))},t.prototype.screen=function(t,e,n,r,o){this.settings.onEventMethodCall({type:"screen",options:r});var a={type:"screen",properties:(0,i.__assign)({},n),options:(0,i.__assign)({},r),integrations:(0,i.__assign)({},o)};return null!==t&&(a.category=t),null!==e&&(a.name=e),this.normalize((0,i.__assign)((0,i.__assign)({},this.baseEvent()),a))},t.prototype.identify=function(t,e,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,i.__assign)((0,i.__assign)({},this.baseEvent()),{type:"identify",userId:t,traits:null!=e?e:{},options:(0,i.__assign)({},n),integrations:r}))},t.prototype.group=function(t,e,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,i.__assign)((0,i.__assign)({},this.baseEvent()),{type:"group",traits:null!=e?e:{},options:(0,i.__assign)({},n),integrations:(0,i.__assign)({},r),groupId:t}))},t.prototype.alias=function(t,e,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var o={userId:t,type:"alias",options:(0,i.__assign)({},n),integrations:(0,i.__assign)({},r)};return(null!==e&&(o.previousId=e),void 0===t)?this.normalize((0,i.__assign)((0,i.__assign)({},o),this.baseEvent())):this.normalize((0,i.__assign)((0,i.__assign)({},this.baseEvent()),o))},t.prototype.baseEvent=function(){return{integrations:{},options:{}}},t.prototype.context=function(t){var e,n=["userId","anonymousId","timestamp","messageId"];delete t.integrations;var r=Object.keys(t),i=null!=(e=t.context)?e:{},o={};return r.forEach(function(e){"context"!==e&&(n.includes(e)?(0,k.dset)(o,e,t[e]):(0,k.dset)(i,e,t[e]))}),[i,o]},t.prototype.normalize=function(t){var e,n,r,o=Object.keys(null!=(n=t.integrations)?n:{}).reduce(function(e,n){var r,o;return(0,i.__assign)((0,i.__assign)({},e),((r={})[n]=!!(null==(o=t.integrations)?void 0:o[n]),r))},{});e=t.options||{},t.options=Object.keys(e).filter(function(t){return function(t,e){return void 0!==e}(t,e[t])}).reduce(function(t,n){return t[n]=e[n],t},{});var a=(0,i.__assign)((0,i.__assign)({},o),null==(r=t.options)?void 0:r.integrations),u=t.options?this.context(t.options):[],c=u[0],l=u[1],h=t.options,d=(0,i.__rest)(t,["options"]),f=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({timestamp:new Date},d),{context:c,integrations:a}),l),{messageId:h.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(f),!function(t){if(!(0,s.exists)(t))throw new I("Event","is nil");if("object"!=typeof t)throw new I("Event",M);if(!(0,s.isString)(t.type))throw new I(".type",A);if(!(0,s.isString)(t.messageId))throw new I(".messageId",A);if("track"===t.type){if(!(0,s.isString)(t.event))throw new I(".event",A);if(!(0,s.isPlainObject)(t.properties))throw new I(".properties",M)}["group","identify"].includes(t.type)&&function(t){if(!(0,s.isPlainObject)(t.traits))throw new I(".traits",M)}(t)}(f),f},t}()),C=function(t){return"addMiddleware"in t&&"destination"===t.type},j=t.i(58853),x=t.i(69706),N=t.i(60341),R=function(){var t,e,n=0;return{done:function(){return t},run:function(r){var i=r();return"object"==typeof i&&null!==i&&"then"in i&&"function"==typeof i.then&&(1==++n&&(t=new Promise(function(t){return e=t})),i.finally(function(){return 0==--n&&e()})),i}}},D=t.i(94748),F=function(t){function e(e){return t.call(this,"string"==typeof e?new j.PersistedPriorityQueue(4,e):e)||this}return(0,i.__extends)(e,t),e.prototype.flush=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(e){return(0,d.isOffline)()?[2,[]]:[2,t.prototype.flush.call(this)]})})},e}(function(t){function e(e){var n=t.call(this)||this;return n.criticalTasks=R(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=e,n.queue.on(x.ON_REMOVE_FROM_FUTURE,function(){n.scheduleFlush(0)}),n}return(0,i.__extends)(e,t),e.prototype.register=function(t,e,n){return(0,i.__awaiter)(this,void 0,void 0,function(){var r,o,a=this;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(this.plugins.push(e),r=function(n){a.failedInitializations.push(e.name),a.emit("initialization_failure",e),console.warn(e.name,n),t.log("warn","Failed to load destination",{plugin:e.name,error:n}),a.plugins=a.plugins.filter(function(t){return t!==e})},"destination"!==e.type||"Segment.io"===e.name)return[3,1];return e.load(t,n).catch(r),[3,4];case 1:return i.trys.push([1,3,,4]),[4,e.load(t,n)];case 2:return i.sent(),[3,4];case 3:return o=i.sent(),r(o),[3,4];case 4:return[2]}})})},e.prototype.deregister=function(t,e,n){return(0,i.__awaiter)(this,void 0,void 0,function(){var r;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!e.unload)return[3,2];return[4,Promise.resolve(e.unload(t,n))];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(t){return t.name!==e.name}),[3,4];case 3:return r=i.sent(),t.log("warn","Failed to unload destination",{plugin:e.name,error:r}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(t){return(0,i.__awaiter)(this,void 0,void 0,function(){var e;return(0,i.__generator)(this,function(n){return t.log("debug","Dis
1patching"),t.stats.increment("message_dispatched"),this.queue.push(t),e=this.subscribeToDelivery(t),this.scheduleFlush(0),[2,e]})})},e.prototype.subscribeToDelivery=function(t){return(0,i.__awaiter)(this,void 0,void 0,function(){var e=this;return(0,i.__generator)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(t)&&(e.off("flush",r),n(i))};e.on("flush",r)})]})})},e.prototype.dispatchSingle=function(t){return(0,i.__awaiter)(this,void 0,void 0,function(){var e=this;return(0,i.__generator)(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.updateAttempts(t),t.attempts=1,[2,this.deliver(t).catch(function(n){return e.enqueuRetry(n,t)?e.subscribeToDelivery(t):(t.setFailedDelivery({reason:n}),t)})]})})},e.prototype.isEmpty=function(){return 0===this.queue.length},e.prototype.scheduleFlush=function(t){var e=this;void 0===t&&(t=500),this.flushing||(this.flushing=!0,setTimeout(function(){e.flush().then(function(){setTimeout(function(){e.flushing=!1,e.queue.length&&e.scheduleFlush(0)},0)})},t))},e.prototype.deliver=function(t){return(0,i.__awaiter)(this,void 0,void 0,function(){var e,n,r,o;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return[4,this.criticalTasks.done()];case 1:i.sent(),e=Date.now(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.flushOne(t)];case 3:return t=i.sent(),n=Date.now()-e,this.emit("delivery_success",t),t.stats.gauge("delivered",n),t.log("debug","Delivered",t.event),[2,t];case 4:throw o=r=i.sent(),t.log("error","Failed to deliver",o),this.emit("delivery_failure",t,o),t.stats.increment("delivery_failed"),r;case 5:return[2]}})})},e.prototype.enqueuRetry=function(t,e){return!!(!(t instanceof N.ContextCancelation)||t.retry)&&this.queue.pushWithBackoff(e)},e.prototype.flush=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){var t,e;return(0,i.__generator)(this,function(n){switch(n.label){case 0:if(0===this.queue.length||!(t=this.queue.pop()))return[2,[]];t.attempts=this.queue.getAttempts(t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return t=n.sent(),this.emit("flush",t,!0),[3,4];case 3:return e=n.sent(),this.enqueuRetry(e,t)||(t.setFailedDelivery({reason:e}),this.emit("flush",t,!1)),[2,[]];case 4:return[2,[t]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(t){var e,n,r=(e="type",n={},this.plugins.filter(function(e){if("destination"!==e.type&&"Segment.io"!==e.name)return!0;var n,r,i,o=void 0;return null==(n=e.alternativeNames)||n.forEach(function(e){void 0!==t[e]&&(o=t[e])}),null!=(i=null!=(r=t[e.name])?r:o)?i:!1!==("Segment.io"===e.name||t.All)}).forEach(function(t){var r,o=void 0;if("string"==typeof e){var a=t[e];o="string"!=typeof a?JSON.stringify(a):a}else e instanceof Function&&(o=e(t));void 0!==o&&(n[o]=(0,i.__spreadArray)((0,i.__spreadArray)([],null!=(r=n[o])?r:[],!0),[t],!1))}),n),o=r.before,a=r.enrichment,s=r.destination,u=r.after;return{before:void 0===o?[]:o,enrichment:void 0===a?[]:a,destinations:void 0===s?[]:s,after:void 0===u?[]:u}},e.prototype.flushOne=function(t){var e,n;return(0,i.__awaiter)(this,void 0,void 0,function(){var r,o,a,s,u,c,l,h,d,f,p,g,v;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(!this.isReady())throw Error("Not ready");t.attempts>1&&this.emit("delivery_retry",t),o=(r=this.availableExtensions(null!=(e=t.event.integrations)?e:{})).before,a=r.enrichment,s=0,u=o,i.label=1;case 1:if(!(s<u.length))return[3,4];return c=u[s],[4,(0,D.ensure)(t,c)];case 2:(l=i.sent())instanceof N.CoreContext&&(t=l),this.emit("message_enriched",t,c),i.label=3;case 3:return s++,[3,1];case 4:h=0,d=a,i.label=5;case 5:if(!(h<d.length))return[3,8];return f=d[h],[4,(0,D.attempt)(t,f)];case 6:(l=i.sent())instanceof N.CoreContext&&(t=l),this.emit("message_enriched",t,f),i.label=7;case 7:return h++,[3,5];case 8:return g=(p=this.availableExtensions(null!=(n=t.event.integrations)?n:{})).destinations,v=p.after,[4,new Promise(function(e,n){setTimeout(function(){Promise.all(g.map(function(e){return(0,D.attempt)(t,e)})).then(e).catch(n)},0)})];case 9:return i.sent(),t.stats.increment("message_delivered"),this.emit
vendor: 5,089 bytes, line 1
1("message_delivered",t),[4,Promise.all(v.map(function(e){return(0,D.attempt)(t,e)}))];case 10:return i.sent(),[2,t]}})})},e}(g.Emitter));function L(t){for(var e=t.constructor.prototype,n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);o&&"function"==typeof o.value&&(t[i]=t[i].bind(t))}}return t}var q=function(t,e,n,r){console.warn("".concat(t.constructor.name,": Can't ").concat(e,' key "').concat(n,'" | Err: ').concat(r))},K=function(){function t(t){this.stores=t}return t.prototype.get=function(t){for(var e=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(e=i.get(t)))return e}catch(e){q(i,"get",t,e)}}return null},t.prototype.set=function(t,e){this.stores.forEach(function(n){try{n.set(t,e)}catch(e){q(n,"set",t,e)}})},t.prototype.clear=function(t){this.stores.forEach(function(e){try{e.remove(t)}catch(n){q(e,"remove",t,n)}})},t.prototype.getAndSync=function(t){var e=this.get(t),n="number"==typeof e?e.toString():e;return this.set(t,n),n},t}(),U=function(){function t(){this.cache={}}return t.prototype.get=function(t){var e;return null!=(e=this.cache[t])?e:null},t.prototype.set=function(t,e){this.cache[t]=e},t.prototype.remove=function(t){delete this.cache[t]},t}(),T={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"};function z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var B=function t(e,n){function r(t,r,i){if("u">typeof document){"number"==typeof(i=z({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+o}}return Object.create({set:r,get:function(t){if("u">typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=e.read(a,s),t===s)break}catch(t){}}return t?r[t]:r}},remove:function(t,e){r(t,"",z({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,z({},this.attributes,e))},withConverter:function(e){return t(z({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function W(t){var e=function(t){try{return new URL(t)}catch(t){return}}(t);if(e)for(var n=function(t){var e=t.hostname.split("."),n=e[e.length-1],r=[];if(4===e.length&&parseInt(n,10)>0||e.length<=1)return r;for(var i=e.length-2;i>=0;--i)r.push(e.slice(i).join("."));return r}(e),r=0;r<n.length;++r){var i="__tld__",o=n[r],a={domain:"."+o};try{if(B.set(i,"1",a),B.get(i))return B.remove(i,a),o}catch(t){return}}}var V=function(){function t(e){void 0===e&&(e=t.defaults),this.options=(0,i.__assign)((0,i.__assign)({},t.defaults),e)}return Object.defineProperty(t,"defaults",{get:function(){return{maxage:365,domain:W(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),t.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},t.prototype.get=function(t){var e;try{var n=B.get(t);if(null==n)return null;try{return null!=(e=JSON.parse(n))?e:null}catch(t){return null!=n?n:null}}catch(t){return null}},t.prototype.set=function(t,e){"string"==typeof e?B.set(t,e,this.opts()):null===e?B.remove(t,this.opts()):B.set(t,JSON.stringify(e),this.opts())},t.prototype.remove=function(t){return B.remove(t,this.opts())},t}(),J=function(){function t(){}return t.prototype.localStorageWarning=function(t,e){console.warn("Unable to access ".concat(t,", localStorage may be ").concat(e))},t.prototype.get=function(t){var e;try{var n=localStorage.getItem(t);if(null===n)return null;try{return null!=(e=JSON.parse(n))?e:null}catch(t){return null!=n?n:null}}catch(e){return this.localStorageWarning(t,"unavailable"),null}},t.prototype.set=function(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch(e){this.localStorageWarning(t,"full")}},t.prototype.remove=function(t){try{return localStorage.removeItem(t)}catch(e){this.localStorageWarning(t,"unavailable")}},t}();function Q(t){return t&&t.stores&&Array.isArray(t.stores)&&t.stores.every(function(t){return Object.values(T).includes(t)})}function G(t){return t.map(function(t){var e,n;switch("object"==typeof t&&void 0!==t.name?(e=t.name,n=t.settings):e=t,e){case T.Cookie:return new V(n);case T.LocalStorage:return new J;case T.Memory:return new U;default:throw Error("Unknown Store Type: ".concat(t))}})}function H(t,e){return t.map(function(t){return e&&t===T.Cookie?{name:t,settings:e}:t})}
1var $={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},Z=function(){function t(t,e){void 0===t&&(t=$);var n,r,o,a,s=this;this.options={},this.id=function(t){if(s.options.disable)return null;var e=s.identityStore.getAndSync(s.idKey);void 0!==t&&(s.identityStore.set(s.idKey,t),t!==e&&null!==e&&null!==t&&s.anonymousId(null));var n=s.identityStore.getAndSync(s.idKey);if(n)return n;var r=s.legacyUserStore.get($.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(t){var e,n;if(s.options.disable)return null;if(void 0===t){var r=null!=(e=s.identityStore.getAndSync(s.anonKey))?e:null==(n=s.legacySIO())?void 0:n[0];if(r)return r}return null===t?s.identityStore.set(s.anonKey,null):s.identityStore.set(s.anonKey,null!=t?t:(0,v.v4)()),s.identityStore.getAndSync(s.anonKey)},this.traits=function(t){var e;if(!s.options.disable)return null===t&&(t={}),t&&s.traitsStore.set(s.traitsKey,null!=t?t:{}),null!=(e=s.traitsStore.get(s.traitsKey))?e:{}},this.options=(0,i.__assign)((0,i.__assign)({},$),t),this.cookieOptions=e,this.idKey=null!=(r=null==(n=t.cookie)?void 0:n.key)?r:$.cookie.key,this.traitsKey=null!=(a=null==(o=t.localStorage)?void 0:o.key)?a:$.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,e),this.legacyUserStore=this.createStorage(this.options,e,function(t){return t===T.Cookie}),this.traitsStore=this.createStorage(this.options,e,function(t){return t!==T.Cookie});var u=this.legacyUserStore.get($.cookie.oldKey);u&&"object"==typeof u&&(u.id&&this.id(u.id),u.traits&&this.traits(u.traits)),L(this)}return t.prototype.legacySIO=function(){var t=this.legacyUserStore.get("_sio");if(!t)return null;var e=t.split("----");return[e[0],e[1]]},t.prototype.identify=function(t,e){if(!this.options.disable){e=null!=e?e:{};var n=this.id();(null===n||n===t)&&(e=(0,i.__assign)((0,i.__assign)({},this.traits()),e)),t&&this.id(t),this.traits(e)}},t.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},t.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},t.prototype.load=function(){return new t(this.options,this.cookieOptions)},t.prototype.save=function(){return!0},t.prototype.createStorage=function(t,e,n){var r=[T.LocalStorage,T.Cookie,T.Memory];return t.disable?new K([]):t.persist?(void 0!==t.storage&&null!==t.storage&&Q(t.storage)&&(r=t.storage.stores),t.localStorageFallbackDisabled&&(r=r.filter(function(t){return t!==T.LocalStorage})),n&&(r=r.filter(n)),new K(G(H(r,e)))):new K([new U])},t.defaults=$,t}(),X={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},Y=function(t){function e(e,n){void 0===e&&(e=X);var r=t.call(this,(0,i.__assign)((0,i.__assign)({},X),e),n)||this;return r.anonymousId=function(t){},L(r),r}return(0,i.__extends)(e,t),e}(Z),tt=t.i(89544),te=t.i(80969),tn=t.i(74981),tr=t.i(82931),ti=function(t,e,n){n.getAndRemove(t).forEach(function(t){td(e,t).catch(console.error)})},to=ti.bind(void 0,"on"),ta=ti.bind(void 0,"setAnonymousId"),ts=function(t,e){Object.keys(e.calls).forEach(function(n){e.getAndRemove(n).forEach(function(e){setTimeout(function(){td(t,e).catch(console.error)},0)})})},tu=function(t){if(tc(t))return w(t.pop())},tc=function(t){var e=t[t.length-1];if("object"!==Object.prototype.toString.call(e).slice(8,-1).toLowerCase()||"bpc"!==e.__t)return!1;for(var n in e)if(!y.includes(n))return!1;return!0},tl=function(t,e,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=t,this.resolve=n,this.reject=r,this.called=!1,this.args=e},th=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._callMap={},this.add.apply(this,t)}return Object.defineProperty(t.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(t){this._callMap=t},enumerable:!1,configurable:!0}),t.prototype.get=function(t){var e;return null!=(e=this.calls[t])?e:[]},t.prototype.getAndRemove=function(t){var e=this.get(t);return this.calls[t]=[],e},t.prototype.add=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.forEach(function(e){["track","screen","alias","group","page","identify"].includes(e.method)&&!tc(e.args)&&(e.args=(0,i.__spreadArray)((0,i.__spreadArray)([],e.args,!0),[S()],!1)),t.calls[e.method]?t.calls[e.method].push(e):t.calls[e.method]=[e]})},t.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},t.prototype.toArray=function(){var t;return(t=[]).concat.apply(t,Object.values(this.calls))},t.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,tr.getVersionType)()){var t=(0,tn.getGlobalAnalytics)();if(Array.isArray(t)){var e=t.splice(0,t.length).map(function(t){return new tl(t[0],t.slice(1))});this.add.apply(this,e)}}},t}();function td(t,e){return(0,i.__awaiter)(this,void 0,void 0,function(){var n,r;return(0,i.__generator)(this,function(i){switch(i.label){case 0:var o;if(i.trys.push([0,3,,4]),e.called)return[2,void 0];if(e.called=!0,!("object"==typeof(o=n=t[e.method].apply(t,e.args))&&null!==o&&"then"in o&&"function"==typeof o.then))return[3,2];return[4,n];case 1:i.sent(),i.label=2;case 2:return e.resolve(n),[3,4];case 3:return r=i.sent(),e.reject(r),[3,4];case 4:return[2]}})})}var tf=function(){function t(t){var e=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=tt.version,this._preInitBuffer=new th,this._promise=t(this._preInitBuffer),this._promise.then(function(t){var n=t[0],r=t[1];e.instance=n,e.ctx=r}).catch(function(){})}return t.prototype.then=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).then.apply(t,e)},t.prototype.catch=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).catch.apply(t,e)},t.prototype.finally=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).finally.apply(t,e)},t.prototype._createMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.instance?Promise.resolve((n=e.instance)[t].apply(n,r)):new Promise(function(n,i){e._preInitBuffer.add(new tl
1(t,r,n,i))})}},t.prototype._createChainableMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.instance?(n=e.instance)[t].apply(n,r):e._preInitBuffer.add(new tl(t,r)),e}},t}(),tp=t.i(44362),tg=t.i(87662),tv=function(t){var e=!1;window.addEventListener("pagehide",function(){e||t(e=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(e)return;e=!0}else e=!1;t(e)})},t_=function(t){function e(e,n){var r=t.call(this,e)||this;return r.retryTimeout=n,r.name="RateLimitError",r}return(0,i.__extends)(e,t),e}(Error),ty=function(t){return(0,i.__assign)({"Content-Type":"text/plain"},"function"==typeof t?t():t)};function tm(t){return(encodeURI(JSON.stringify(t)).split(/%..|./).length-1)/1024}var tb=t.i(96461);function tw(t,e,n,r){var o=this;t||setTimeout(function(){return(0,i.__awaiter)(o,void 0,void 0,function(){var t,o;return(0,i.__generator)(this,function(a){switch(a.label){case 0:return t=!0,[4,function(t,e){return(0,i.__awaiter)(this,void 0,void 0,function(){var n,r=this;return(0,i.__generator)(this,function(o){switch(o.label){case 0:if(n=[],(0,d.isOffline)())return[2,e];return[4,(0,tb.pWhile)(function(){return e.length>0&&!(0,d.isOffline)()},function(){return(0,i.__awaiter)(r,void 0,void 0,function(){var r;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(!(r=e.pop()))return[2];return[4,(0,D.attempt)(r,t)];case 1:return i.sent()instanceof f.Context||n.push(r),[2]}})})})];case 1:return o.sent(),n.map(function(t){return e.pushWithBackoff(t)}),[2,e]}})})}(n,e)];case 1:return o=a.sent(),t=!1,e.todo>0&&r(t,o,n,r),[2]}})})},5e3*Math.random())}var tS=t.i(84077),tE=function(t){return"Segment.io"===t.name},tk="This is being deprecated and will be not be available in future releases of Analytics JS",tI=(0,te.getGlobal)(),tA=null==tI?void 0:tI.analytics,tM=function(){function t(t,e){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var t;return null==(t=e.plugins.find(tE))?void 0:t.metadata},this.writeKey=t.writeKey,this.cdnSettings=null!=(n=t.cdnSettings)?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=t.cdnURL}return Object.defineProperty(t.prototype,"apiHost",{get:function(){var t,e;return null==(e=null==(t=this._getSegmentPluginMetadata)?void 0:t.call(this))?void 0:e.apiHost},enumerable:!1,configurable:!0}),t}();function tP(){console.warn(tk)}var tO=function(e){function n(t,n,r,o,a){var s,u,c,l,h,d,f=this;(f=e.call(this)||this)._debug=!1,f.initialized=!1,f.user=function(){return f._user},f.init=f.initialize.bind(f),f.log=tP,f.addIntegrationMiddleware=tP,f.listeners=tP,f.addEventListener=tP,f.removeAllListeners=tP,f.removeListener=tP,f.removeEventListener=tP,f.hasListeners=tP,f.add=tP,f.addIntegration=tP;var p=null==n?void 0:n.cookie,g=null!=(h=null==n?void 0:n.disableClientPersistence)&&h;f.queue=null!=r?r:(s="".concat(t.writeKey,":event-queue"),void 0===(u=null==n?void 0:n.retryQueue)&&(u=!1),void 0===(c=g)&&(c=!1),l=u?10:1,new F(c?new x.PriorityQueue(l,[]):new j.PersistedPriorityQueue(l,s))),f.settings=new tM(t,f.queue);var v=null==n?void 0:n.storage;return f._universalStorage=f.createStore(g,v,p),f._user=null!=o?o:new Z((0,i.__assign)({persist:!g,storage:null==n?void 0:n.storage},null==n?void 0:n.user),p).load(),f._group=null!=a?a:new Y((0,i.__assign)({persist:!g,storage:null==n?void 0:n.storage},null==n?void 0:n.group),p).load(),f.eventFactory=new O(f._user),f.integrations=null!=(d=null==n?void 0:n.integrations)?d:{},f.options=null!=n?n:{},L(f),f}return(0,i.__extends)(n,e),n.prototype.createStore=function(t,e,n){return new K(t?[new U]:e&&Q(e)?G(H(e.stores,n)):G([T.LocalStorage,{name:T.Cookie,settings:n},T.Memory]))},Object.defineProperty(n.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),n.prototype.track=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.__awaiter)(this,void 0,void 0,function(){var e,n,r,o,a,s,c,l=this;return(0,i.__generator)(this,function(i){return e=tu(t),r=(n=u.apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],c=this.eventFactory.track(r,o,a,this.integrations,e),[2,this._dispatch(c,s).then(function(t){return l.emit("track",r,t.event.properties,t.event.options),t})]})})},n.prototype.page=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.__awaiter)(this,void 0,void 0,function(){var e,n,r,o,a,s,u,l,h=this;return(0,i.__generator)(this,function(i){return e=tu(t),r=(n=c.apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],u=n[4],l=this.eventFactory.page(r,o,a,s,this.integrations,e),[2,this._dispatch(l,u).then(function(t){return h.emit("page",r,o,t.event.properties,t.event.options),t})]})})},n.prototype.identify=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.__awaiter)(this,void 0,void 0,function(){var e,n,r,o,a,s,u,c=this;return(0,i.__generator)(this,function(i){return e=tu(t),r=(n=l(this._user).apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],this._user.identify(r,o),u=this.eventFactory.identify(this._user.id(),this._user.traits(),a,this.integrations,e),[2,this._dispatch(u,s).then(function(t){return c.emit("identify",t.event.userId,t.event.traits,t.event.options),t})]})})},n.prototype.group=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=tu(e);if(0===e.length)return this._group;var i=l(this._group).apply(void 0,e),o=i[0],a=i[1],s=i[2],u=i[3];this._group.identify(o,a);var c=this._group.id(),h=this._group.traits(),d=this.eventFactory.group(c,h,s,this.integrations,r);return this._dispatch(d,u).then(function(e){return t.emit("group",e.event.groupId,e.event.traits,e.event.options),e})},n.prototype.alias=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.__awaiter)(this,void 0,void 0,function(){var e,n,r,o,a,s,u,c=this;return(0,i.__generator)(this,function(i){return e=tu(t),r=(n=h.apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],u=this.eventFactory.alias(r,o,a,this.integrations,e),[2,this._dispatch(u,s).then(function(t){return c.emit("alias",r,o,t.event.options),t})]})})},n.prototype.screen=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.__awaiter)(this,void 0,void 0,function(){var e,n,r,o,a,s,u,l,h=this;return(0,i.__generator)(this,function(i){return e=tu(t),r=(n=c.apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],u=n[4],l=this.eventFactory.screen(r,o,a,s,this.integrations,e),[2,this._dispatch(l,u).then(function(t){return h.emit("screen",r,o,t.event.properties,t.event.options),t})]})})},n.prototype.trackClick=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,i.__awaiter)(this,void 0,void 0,function(){var n;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return[4,t.A(5701)];case 1:return[2,(n=r.sent().link).call.apply(n,(0,i.__spreadArray)([this],e,!1))]}})})},n.prototype.trackLink=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,i.__awaiter)(this,void 0,void 0,function(){var n;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return[4,t.A(5701)];case 1:return[2,(n=r.sent().link).call.apply(n,(0,i.__spreadArray)([this],e,!1))]}})})},n.prototype.trackSubmit=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,i.__awaiter)(this,void 0,void 0,function(){var n;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return[4,t.A(5701)];case 1:return[2,(n=r.sent().form).call.apply(n,(0,i.__spreadArray)([this],e,!1))]}})})},n.prototype.trackForm=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,i.__awaiter)(this,void 0,void 0,function(){var n;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return[4,t.A(5701)];case 1:return[2,(n=r.sent().form).call.apply(n,(0,i.__spreadArray)([this],e,!1))]}})})},n.prototype.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.__awaiter)(this,void 0,void 0,function(){var e,n=this;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return e=f.Context.system(),[4,Promise.all(t.map(function(t){return n.queue.register(e,t,n)}))];case 1:return r.sent(),[2,e]}})})},n.prototype.deregister=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.__awaiter)(this,void 0,void 0,function(){var e,n=this;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return e=f.Context.system(),[4,Promise.all(t.map(function(t){var r=n.queue.plugins.find(function(e){return e.name===t});if(r)return n.queue.deregister(e,r,n);e.log("warn","plugin ".concat(t," not found"))}))];case 1:return r.sent(),[2,e]}})})},n.prototype.debug=function(t){return!1===t&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=t,this},n.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit
1("reset")},n.prototype.timeout=function(t){this.settings.timeout=t},n.prototype._dispatch=function(t,e){return(0,i.__awaiter)(this,void 0,void 0,function(){var n;return(0,i.__generator)(this,function(r){return((n=new f.Context(t)).stats.increment("analytics_js.invoke",1,[t.type]),(0,d.isOffline)()&&!this.options.retryQueue)?[2,n]:[2,function(t,e,n,r){return(0,i.__awaiter)(this,void 0,void 0,function(){var o,a;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(n.emit("dispatch_start",t),o=Date.now(),!e.isEmpty())return[3,2];return[4,e.dispatchSingle(t)];case 1:return a=i.sent(),[3,4];case 2:return[4,e.dispatch(t)];case 3:a=i.sent(),i.label=4;case 4:var s,u;if(!(null==r?void 0:r.callback))return[3,6];return[4,(0,p.invokeCallback)(a,r.callback,(s=o,Math.max((null!=(u=r.timeout)?u:300)-(Date.now()-s),0)))];case 5:a=i.sent(),i.label=6;case 6:return(null==r?void 0:r.debug)&&a.flush(),[2,a]}})})}(n,this.queue,this,{callback:e,debug:this._debug,timeout:this.settings.timeout})]})})},n.prototype.addSourceMiddleware=function(e){return(0,i.__awaiter)(this,void 0,void 0,function(){var n=this;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,i.__awaiter)(n,void 0,void 0,function(){var n,r,o;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return[4,t.A(83107)];case 1:return n=i.sent().sourceMiddlewarePlugin,r={},this.queue.plugins.forEach(function(t){if("destination"===t.type)return r[t.name]=!0}),o=n(e,r),[4,this.register(o)];case 2:return i.sent(),[2]}})})})];case 1:return r.sent(),[2,this]}})})},n.prototype.addDestinationMiddleware=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.queue.plugins.filter(C).forEach(function(n){("*"===t||n.name.toLowerCase()===t.toLowerCase())&&n.addMiddleware.apply(n,e)}),Promise.resolve(this)},n.prototype.setAnonymousId=function(t){return this._user.anonymousId(t)},n.prototype.queryString=function(e){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(n){switch(n.label){case 0:if(!1===this.options.useQueryString)return[2,[]];return[4,t.A(82923)];case 1:return[2,(0,n.sent().queryString)(this,e)]}})})},n.prototype.use=function(t){return t(this),this},n.prototype.ready=function(t){return void 0===t&&(t=function(t){return t}),(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(e){return[2,Promise.all(this.queue.plugins.map(function(t){return t.ready?t.ready():Promise.resolve()})).then(function(e){return t(e),e})]})})},n.prototype.noConflict=function(){return console.warn(tk),(0,tn.setGlobalAnalytics)(null!=tA?tA:this),this},n.prototype.normalize=function(t){return console.warn(tk),this.eventFactory.normalize(t)},Object.defineProperty(n.prototype,"failedInitializations",{get:function(){return console.warn(tk),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"VERSION",{get:function(){return tt.version},enumerable:!1,configurable:!0}),n.prototype.initialize=function(t,e){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(t){return console.warn(tk),[2,Promise.resolve(this)]})})},n.prototype.pageview=function(t){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(e){switch(e.label){case 0:return console.warn(tk),[4,this.page({path:t})];case 1:return e.sent(),[2,this]}})})},Object.defineProperty(n.prototype,"plugins",{get:function(){var t;return console.warn(tk),null!=(t=this._plugins)?t:{}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Integrations",{get:function(){return console.warn(tk),this.queue.plugins.filter(function(t){return"destination"===t.type}).reduce(function(t,e){var n="".concat(e.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return t;var i=r.Integration;return i?t[e.name]=i:t[e.name]=r,t},{})},enumerable:!1,configurable:!0}),n.prototype.push=function(t){var e=t.shift();(!e||this[e])&&this[e].apply(this,t)},n}(g.Emitter),tC=function(t){function e(){var e=t.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return e.initialized=!0,e}return(0,i.__extends)(e,t),e}(tO),tj=t.i(69530),tx=t.i(68833),tN=t.i(40056),tR=function(t){try{var e=new URLSearchParams;return Object.entries(t).forEach(function(t){var n=t[0],r=t[1];Array.isArray(r)?r.forEach(function(t){return e.append(n,t)}):e.append(n,r)}),e.toString()}catch(t){return""}},tD=new function(){var t=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(e,n){return(0,i.__awaiter)(t,void 0,void 0,function(){var t;return(0,i.__generator)(this,function(e){switch(e.label){case 0:this.instance=n,e.label=1;case 1:return e.trys.push([1,3,,4]),t=this,[4,function(t){return(0,i.__awaiter)(this,void 0,void 0,function(){var e;return(0,i.__generator)(this,function(n){return(e=navigator.userAgentData)?t?[2,e.getHighEntropyValues(t).cat
1ch(function(){return e.toJSON()})]:[2,e.toJSON()]:[2,void 0]})})}(this.instance.options.highEntropyValuesClientHints)];case 2:return t.userAgentData=e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(n){var r,o,a,s,u,c,l=n.event.context,h=l.page.search||"",d="object"==typeof h?tR(h):h;l.userAgent=navigator.userAgent,l.userAgentData=t.userAgentData;var f=navigator.userLanguage||navigator.language;void 0===l.locale&&void 0!==f&&(l.locale=f),null!=l.library||(l.library={name:"analytics.js",version:"".concat("web"===(0,tr.getVersionType)()?"next":"npm:next","-").concat(tt.version)}),d&&!l.campaign&&((r=d).startsWith("?")&&(r=r.substring(1)),l.campaign=(r=r.replace(/\?/g,"&")).split("&").reduce(function(t,e){var n=e.split("="),r=n[0],i=n[1];if(r.includes("utm_")&&r.length>4){var o=r.slice(4);"campaign"===o&&(o="name"),t[o]=(0,tN.gracefulDecodeURIComponent)(void 0===i?"":i)}return t},{}));var p=function(){var t=B.get("_ga");if(t&&t.startsWith("amp"))return t}();p&&(l.amp={id:p}),s=(a=new K(null!=(c=t.instance.options.disableClientPersistence)&&c?[]:[new V(function(){if(e)return e;var t=W(window.location.href);return e={expires:31536e6,secure:!1,path:"/"},t&&(e.domain=t),e}())])).get("s:context.referrer"),(u=null!=(o=function(t){var e={btid:"dataxu",urid:"millennial-media"};t.startsWith("?")&&(t=t.substring(1));for(var n=(t=t.replace(/\?/g,"&")).split("&"),r=0;r<n.length;r++){var i=n[r].split("="),o=i[0],a=i[1];if(e[o])return{id:a,type:e[o]}}}(d))?o:s)&&(l&&(l.referrer=(0,i.__assign)((0,i.__assign)({},l.referrer),u)),a.set("s:context.referrer",u));try{l.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}return n},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},tF=t.i(27327),tL=t.i(72141),tq=t.i(30364),tK=function(){function t(t,e){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,tx.createDeferred)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=e,this.name=t,this.type=e.type,this.alternativeNames.push(e.name)}return t.prototype.addMiddleware=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];"destination"===this.type&&(t=this.middleware).push.apply(t,e)},t.prototype.transform=function(t){return(0,i.__awaiter)(this,void 0,void 0,function(){var e;return(0,i.__generator)(this,function(n){switch(n.label){case 0:return[4,(0,tL.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:return null===(e=n.sent())&&t.cancel(new N.ContextCancelation({retry:!1,reason:"dropped by destination middleware"})),[2,new f.Context(e)]}})})},t.prototype._createMethod=function(t){var e=this;return function(n){return(0,i.__awaiter)(e,void 0,void 0,function(){var e,r;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(!this.action[t])return[2,n];if(e=n,"destination"!==this.type)return[3,2];return[4,this.transform(n)];case 1:e=i.sent(),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!i.sent())throw Error("Something prevented the destination from getting ready");return(0,tq.recordIntegrationMetric)(n,{integrationName:this.action.name,methodName:t,type:"action"}),[4,this.action[t](e)];case 4:return i.sent(),[3,6];case 5:throw r=i.sent(),(0,tq.recordIntegrationMetric)(n,{integrationName:this.action.name,methodName:t,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},t.prototype.isLoaded=function(){return this.action.isLoaded()},t.prototype.ready=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return t.sent(),[2,!0];case 2:return t.sent(),[2,!1];case 3:return[2]}})})},t.prototype.load=function(t,e){return(0,i.__awaiter)(this,void 0,void 0,function(){var n,r,o,a;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];i.label=1;case 1:return i.trys.push([1,3,,4]),(0,tq.recordIntegrationMetric)(t,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(t,e),o=(r=this.loadPromise).resolve,[4,n];case 2:return o.apply(r,[i.sent()]),[2,n];case 3:throw a=i.sent(),(0,tq.recordIntegrationMetric)(t,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(a),a;case 4:return[2]}})})},t.prototype.unload=function(t,e){var n,r;return null==(r=(n=this.action).unload)?void 0:r.call(n,t,e)},t}(),tU=(0,te.getGlobal)(),tT=null!=(n=tU.__SEGMENT_INSPECTOR__)?n:tU.__SEGMENT_INSPECTOR__={},tz=function(t){var e;return null==(e=tT.attach)?void 0:e.call(tT,t)},tB=t.i(3077),tW=function(){var t,e,n=null!=(t=window.location.hash)?t:"",r=null!=(e=window.location.search)?e:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")},tV=function(e){function n(){var n=this,r=(0,tx.createDeferred)(),s=r.promise,u=r.resolve;return(n=e.call(this,function(e){return s.then(function(n){return function(e,n,r){var s,u,c,l,h,p,g,v,_;return void 0===n&&(n={}),(0,i.__awaiter)(this,void 0,void 0,function(){var y,m,b,w,S,E,k,I,A,M;return(0,i.__generator)(this,function(P){switch(P.label){case 0:if(!0===n.disable)return[2,[new tC,f.Context.system()]];if(n.globalAnalyticsKey&&(0,tn.setGlobalAnalyticsKey)(n.globalAnalyticsKey),e.cdnURL&&(0,a.setGlobalCDNUrl)(e.cdnURL),n.initialPageview&&r.add(new tl
1("page",[])),y=tW(),m=null!=(s=e.cdnURL)?s:(0,a.getCDN)(),null==(u=e.cdnSettings))return[3,1];return w=u,[3,3];case 1:var O,C;return[4,(O=e.writeKey,C=m,(0,tg.fetch)("".concat(C,"/v1/projects/").concat(O,"/settings")).then(function(t){return t.ok?t.json():t.text().then(function(t){throw Error(t)})}).catch(function(t){throw console.error(t.message),t}))];case 2:w=P.sent(),P.label=3;case 3:if(b=w,n.updateCDNSettings&&(b=n.updateCDNSettings(b)),"function"!=typeof n.disable)return[3,5];return[4,n.disable(b)];case 4:if(P.sent())return[2,[new tC,f.Context.system()]];P.label=5;case 5:return S=null==(l=null==(c=b.integrations["Segment.io"])?void 0:c.retryQueue)||l,n=(0,i.__assign)({retryQueue:S},n),tz(E=new tO((0,i.__assign)((0,i.__assign)({},e),{cdnSettings:b,cdnURL:m}),n)),k=null!=(h=e.plugins)?h:[],I=null!=(p=e.classicIntegrations)?p:[],A=null==(g=n.integrations)?void 0:g["Segment.io"],tB.Stats.initRemoteMetrics((0,i.__assign)((0,i.__assign)({},b.metrics),{host:null!=(v=null==A?void 0:A.apiHost)?v:null==(_=b.metrics)?void 0:_.host,protocol:null==A?void 0:A.protocol})),[4,function(e,n,r,s,u,c,l){var h,p,g;return void 0===u&&(u=[]),(0,i.__awaiter)(this,void 0,void 0,function(){var v,_,y,m,b,w,S,E,k,I,A,M,P,O,C=this;return(0,i.__generator)(this,function(N){var R,D,F;switch(N.label){case 0:if(ta(r,l),to(r,l),v=null==u?void 0:u.filter(function(t){return"object"==typeof t}),_=null==u?void 0:u.filter(function(t){return"function"==typeof t&&"string"==typeof t.pluginName}),"test"===o().NODE_ENV||!((null!=(F=null==(D=null==(R=n.middlewareSettings)?void 0:R.routingRules)?void 0:D.length)?F:0)>0))return[3,2];return[4,t.A(18986).then(function(t){return t.tsubMiddleware(n.middlewareSettings.routingRules)})];case 1:return m=N.sent(),[3,3];case 2:m=void 0,N.label=3;case 3:if(y=m,("test"===o().NODE_ENV||!(Object.keys(n.integrations).length>1))&&!(c.length>0))return[3,5];return[4,t.A(56469).then(function(t){return t.ajsDestinations(e,n,r.integrations,s,y,c)})];case 4:return w=N.sent(),[3,6];case 5:w=[],N.label=6;case 6:if(b=w,!n.legacyVideoPluginsEnabled)return[3,8];return[4,t.A(50578).then(function(t){return t.loadLegacyVideoPlugins(r)})];case 7:N.sent(),N.label=8;case 8:if(!(null==(h=s.plan)?void 0:h.track))return[3,10];return[4,t.A(86605).then(function(t){var e;return t.schemaFilter(null==(e=s.plan)?void 0:e.track,n)})];case 9:return E=N.sent(),[3,11];case 10:E=void 0,N.label=11;case 11:return S=E,k=(0,tj.mergedOptions)(n,s),[4,(function(t,e,n,r,o,s){var u,c,l;return(0,i.__awaiter)(this,void 0,void 0,function(){var h,d,f=this;return(0,i.__generator)(this,function(p){switch(p.label){case 0:return h=[],d=null!=(c=null==(u=t.middlewareSettings)?void 0:u.routingRules)?c:[],[4,Promise.all((null!=(l=t.remotePlugins)?l:[]).map(function(t){return(0,i.__awaiter)(f,void 0,void 0,function(){var u,c,l,f,p,g;return(0,i.__generator)(this,function(v){switch(v.label){case 0:var _,y;if(_=e[t.creationName],y=e[t.name],!1===e.All&&!_&&!y||!1===_||!1===y||0)return[2];v.label=1;case 1:if(v.trys.push([1,6,,7]),c=null==s?void 0:s.find(function(e){return e.pluginName===t.name}))return[3,3];return[4,function(t,e){return(0,i.__awaiter)(this,void 0,void 0,function(){var n,r,o,s,u,c;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,9,,10]),n=RegExp("https://cdn.segment.(com|build)"),r=(0,a.getCDN)(),!e)return[3,6];s=(o=t.url.split("/"))[o.length-2],u=t.url.replace(s,btoa(s).replace(/=/g,"")),i.label=1;case 1:return i.trys.push([1,3,,5]),[4,(0,tF.loadScript)(u.replace(n,r))];case 2:case 4:return i.sent(),[3,5];case 3:return i.sent(),[4,(0,tF.loadScript)(t.url.replace(n,r))];case 5:return[3,8];case 6:return[4,(0,tF.loadScript)(t.url.replace(n,r))];case 7:i.sent(),i.label=8;case 8:if("function"==typeof window[t.libraryName])return[2,window[t.libraryName]];return[3,10];case 9:throw c=i.sent(),console.error("Failed to create PluginFactory",t),c;case 10:return[2]}})})}(t,null==r?void 0:r.obfuscate)];case 2:c=v.sent(),v.label=3;case 3:if(!(u=c))return[3,5];return l=n[t.name],[4,u((0,i.__assign)((0,i.__assign)({},t.settings),l))];case 4:!function(t){if(!Array.isArray(t))throw Error("Not a valid list of plugins");var e=["load","isLoaded","name","version","type"];t.forEach(function(t){e.forEach(function(e){var n;if(void 0===t[e])throw Error("Plugin: ".concat(null!=(n=t.name)?n:"unknown"," missing required function ").concat(e))})})}(p=Array.isArray(f=v.sent())?f:[f]),g=d.filter(function(e){return e.destinationName===t.creationName}),p.forEach(function(e){var n=new tK(t.creationName,e);g.length&&o&&n.addMiddleware(o),h.push(n)}),v.label=5;case 5:return[3,7];case 6:return console.warn("Failed to load Remote Plugin",v.sent()),[3,7];case 7:return[2]}})})}))];
1case 1:return p.sent(),[2,h.filter(Boolean)]}})})})(n,r.integrations,k,s,y,_).catch(function(){return[]})];case 12:if(I=N.sent(),A=(0,i.__spreadArray)((0,i.__spreadArray)([tD],b,!0),I,!0),S&&A.push(S),(null==(p=s.integrations)?void 0:p.All)===!1&&!s.integrations["Segment.io"]||s.integrations&&!1===s.integrations["Segment.io"])return[3,14];return P=(M=A).push,[4,function(t,e,n){window.addEventListener("pagehide",function(){c.push.apply(c,Array.from(l)),l.clear()});var r,o,a,s,u=null!=(o=null==e?void 0:e.apiKey)?o:"",c=t.options.disableClientPersistence?new x.PriorityQueue(t.queue.queue.maxAttempts,[]):new j.PersistedPriorityQueue(t.queue.queue.maxAttempts,"".concat(u,":dest-Segment.io")),l=new Set,h=null!=(a=null==e?void 0:e.apiHost)?a:tS.SEGMENT_API_HOST,p=null!=(s=null==e?void 0:e.protocol)?s:"https",g="".concat(p,"://").concat(h),v=null==e?void 0:e.deliveryStrategy,_=v&&"strategy"in v&&"batching"===v.strategy?function(t,e){var n,r,o,a=[],s=!1,u=null!=(n=null==e?void 0:e.size)?n:10,c=null!=(r=null==e?void 0:e.timeout)?r:5e3,l=0;function h(n){if(0!==n.length){var r,o=null==(r=n[0])?void 0:r.writeKey,a=n.map(function(t){return t.sentAt,(0,i.__rest)(t,["sentAt"])});return(0,tg.fetch)("https://".concat(t,"/b"),{credentials:null==e?void 0:e.credentials,keepalive:(null==e?void 0:e.keepalive)||s,headers:ty(null==e?void 0:e.headers),method:"post",body:JSON.stringify({writeKey:o,batch:a,sentAt:new Date().toISOString()}),priority:null==e?void 0:e.priority}).then(function(t){var e;if(t.status>=500)throw Error("Bad response from server: ".concat(t.status));if(429===t.status){var n=null==(e=t.headers)?void 0:e.get("x-ratelimit-reset"),r="string"==typeof n?1e3*parseInt(n):c;throw new t_("Rate limit exceeded: ".concat(t.status),r)}})}}function d(t){var n;return void 0===t&&(t=1),(0,i.__awaiter)(this,void 0,void 0,function(){var r;return(0,i.__generator)(this,function(o){return a.length?(r=a,a=[],[2,null==(n=h(r))?void 0:n.catch(function(n){var o;f.Context.system().log("error","Error sending batch",n),t<=(null!=(o=null==e?void 0:e.maxRetries)?o:10)&&("RateLimitError"===n.name&&(l=n.retryTimeout),a.push.apply(a,r),a.map(function(e){"_metadata"in e&&(e._metadata=(0,i.__assign)((0,i.__assign)({},e._metadata),{retryCount:t}))}),p(t+1))})]):[2]})})}function p(t){void 0===t&&(t=1),o||(o=setTimeout(function(){o=void 0,d(t).catch(console.error)},l||c),l=0)}return tv(function(t){if((s=t)&&a.length){var e,n;Promise.all((e=[],n=0,a.forEach(function(t){tm(e[n])>=64&&n++,e[n]?e[n].push(t):e[n]=[t]}),e).map(h)).catch(console.error)}}),{dispatch:function(t,n){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(t){return a.push(n),[2,a.length>=u||tm(a)>=450||(null==e?void 0:e.keepalive)&&tm(a)>=54||s?d():p()]})})}}}(h,v.config):(r=null==v?void 0:v.config,{dispatch:function(t,e){return(0,tg.fetch)(t,{credentials:null==r?void 0:r.credentials,keepalive:null==r?void 0:r.keepalive,headers:ty(null==r?void 0:r.headers),method:"post",body:JSON.stringify(e),priority:null==r?void 0:r.priority}).then(function(t){var e;if(t.status>=500)throw Error("Bad response from server: ".concat(t.status));if(429===t.status){var n=null==(e=t.headers)?void 0:e.get("x-ratelimit-reset"),r=n?1e3*parseInt(n):5e3;throw new t_("Rate limit exceeded: ".concat(t.status),r)}})}});function y(r){return(0,i.__awaiter)(this,void 0,void 0,function(){var o,a;return(0,i.__generator)(this,function(s){var u,h,f,p,v,y;return(0,d.isOffline)()?(c.push(r),tw(!1,c,m,tw),[2,r]):(l.add(r),o=r.event.type.charAt(0),a=(0,tp.toFacade)(r.event).json(),"track"===r.event.type&&delete a.traits,"alias"===r.event.type&&(u=a,y=t.user(),u.previousId=null!=(p=null!=(f=null!=(h=u.previousId)?h:u.from)?f:y.id())?p:y.anonymousId(),u.userId=null!=(v=u.userId)?v:u.to,delete u.from,delete u.to,a=u),c.getAttempts(r)>=c.maxAttempts)?(l.delete(r),[2,r]):[2,_.dispatch("".concat(g,"/").concat(o),function(t,e,n,r,o){var a,s=t.user();delete e.options,e.writeKey=null==n?void 0:n.apiKey,e.userId=e.userId||s.id(),e.anonymousId=e.anonymousId||s.anonymousId(),e.sentAt=new Date;var u=t.queue.failedInitializations||[];u.length>0&&(e._metadata={failedInitializations:u}),null!=o&&(o.attempts>1&&(e._metadata=(0,i.__assign)((0,i.__assign)({},e._metadata),{retryCount:o.attempts})),o.attempts++);var c=[],l=[];for(var h in r){var d=r[h];"Segment.io"===h&&c.push(h),"bundled"===d.bundlingStatus&&c.push(h),"unbundled"===d.bundlingStatus&&l.push(h)}for(var f=0,p=(null==n?void 0:n.unbundledIntegrations)||[];f<p.length;f++){var g=p[f];l.includes(g)||l.push(g)}var v=null!=(a=null==n?void 0:n.maybeBundledConfigIds)?a:{},_=[];
1return c.sort().forEach(function(t){var e;(null!=(e=v[t])?e:[]).forEach(function(t){_.push(t)})}),(null==n?void 0:n.addBundledMetadata)!==!1&&(e._metadata=(0,i.__assign)((0,i.__assign)({},e._metadata),{bundled:c.sort(),unbundled:l.sort(),bundledIds:_})),e}(t,a,e,n,r)).then(function(){return r}).catch(function(t){if(r.log("error","Error sending event",t),"RateLimitError"===t.name){var e=t.retryTimeout;c.pushWithBackoff(r,e)}else c.pushWithBackoff(r);return tw(!1,c,m,tw),r}).finally(function(){l.delete(r)})]})})}var m={metadata:{writeKey:u,apiHost:h,protocol:p},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:y,identify:y,page:y,alias:y,group:y,screen:y};return c.todo&&tw(!1,c,m,tw),m}(r,k["Segment.io"],n.integrations)];case 13:P.apply(M,[N.sent()]),N.label=14;case 14:return[4,r.register.apply(r,(0,i.__spreadArray)((0,i.__spreadArray)([],A,!1),v,!1))];case 15:return O=N.sent(),[4,(0,i.__awaiter)(void 0,void 0,void 0,function(){var t,e;return(0,i.__generator)(this,function(n){switch(n.label){case 0:t=0,e=l.getAndRemove("register"),n.label=1;case 1:if(!(t<e.length))return[3,4];return[4,td(r,e[t]).catch(console.error)];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return[2]}})})];case 16:if(N.sent(),!Object.entries(null!=(g=n.enabledMiddleware)?g:{}).some(function(t){return t[1]}))return[3,18];return[4,t.A(12485).then(function(t){var e=t.remoteMiddlewares;return(0,i.__awaiter)(C,void 0,void 0,function(){return(0,i.__generator)(this,function(t){switch(t.label){case 0:return[4,e(O,n,s.obfuscate)];case 1:return[2,Promise.all(t.sent().map(function(t){return r.addSourceMiddleware(t)}))]}})})})];case 17:N.sent(),N.label=18;case 18:return[4,(0,i.__awaiter)(void 0,void 0,void 0,function(){var t,e;return(0,i.__generator)(this,function(n){switch(n.label){case 0:t=0,e=l.getAndRemove("addSourceMiddleware"),n.label=1;case 1:if(!(t<e.length))return[3,4];return[4,td(r,e[t]).catch(console.error)];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return[2]}})})];case 19:return N.sent(),[2,O]}})})}(e.writeKey,b,E,n,k,I,r)];case 6:return M=P.sent(),E.initialized=!0,E.emit("initialize",e,n),[4,function(t,e,n){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(r){switch(r.label){case 0:var o,a;return[4,(o=t,a=e,(0,i.__awaiter)(void 0,void 0,void 0,function(){return(0,i.__generator)(this,function(t){switch(t.label){case 0:if(!a.includes("ajs_"))return[3,2];return[4,o.queryString(a).catch(console.error)];case 1:t.sent(),t.label=2;case 2:return[2]}})}))];case 1:return r.sent(),ts(t,n),[2]}})})}(E,y,r)];case 7:return P.sent(),[2,[E,M]]}})})}(n[0],n[1],e)})})||this)._resolveLoadStart=function(t,e){return u([t,e])},n}return(0,i.__extends)(n,e),n.prototype.load=function(t,e){return void 0===e&&(e={}),this._resolveLoadStart(t,e),this},n.load=function(t,e){return void 0===e&&(e={}),new n().load(t,e)},n.standalone=function(t,e){return n.load({writeKey:t},e).then(function(t){return t[0]})},n}(tf),tJ=t.i(36110);let tQ={fonoma:"FJNGuUtjCqtmxfzTvUaV4EqAd44HNBLZ",teloa:"fkjDfPWqlo2BUgE1b7UQN1Eqx1OrC19a"},tG={};t.s(["getProjectAnalytics",0,function(t){if(!(0,tJ.isDeployedEnvironment)())return null;if(!tG[t]){let e=tQ[t];if(!e)throw Error(`No Segment write key configured for project ${t}`);tG[t]=tV.load({writeKey:e},{initialPageview:!1,integrations:{Rollbar:!1}})}return tG[t]}],315)},47157,t=>{"use strict";var e=t.i(48277),n=t.i(30668),r=t.i(96086),i=t.i(81188),o=t.i(315);let a={current:""};function s(t){let{project:e,name:s,lang:u,enableAmplitudeSessionReplay:c,landingType:l,landingTarget:h,landingCarrier:d,operator:f,promo:p,isAnnounced:g}=t,v=(0,r.usePathname)(),_=(0,r.useSearchParams)(),[y,m]=(0,n.use
1State)();return(0,n.useEffect)(()=>{let t,n=!0,r=t=>{console.error(`Failed to initialize Segment analytics for project ${e}`,t)};try{t=(0,o.getProjectAnalytics)(e)}catch(t){r(t);return}return t&&Promise.resolve(t).then(t=>{if(n){if(c){let[n]=t;(0,i.initializeAmplitudeSessionReplay)(e,n).catch(t=>{console.error(`Failed to initialize Amplitude Session Replay for project ${e}`,t)})}m(t)}},r),()=>{n=!1}},[c,e]),(0,n.useEffect)(()=>{if(!y||a.current===v)return;a.current=v;let[t]=y;t.page("Landing Page",s,{name:s,lang:u,fnmClient:"web",landingType:l,landingTarget:h,landingCarrier:d,operator:f,promo:p,isAnnounced:g},{integrations:{Rollbar:!1}})},[v,_,y,s,u,l,h,d,f,p,g]),null}t.s(["default",0,function(t){return(0,e.jsx)(n.Suspense,{fallback:null,children:(0,e.jsx)(s,{...t})})}])}]); 2 3//# sourceMappingURL=13myu3z7sskd4.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.