forked from segmentio/analytics.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalytics.min.js
29 lines (27 loc) · 143 KB
/
analytics.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(()=>{var Oc=Object.create;var Ar=Object.defineProperty,Ic=Object.defineProperties,Sc=Object.getOwnPropertyDescriptor,$c=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertyNames,Yi=Object.getOwnPropertySymbols,Tc=Object.getPrototypeOf,Ki=Object.prototype.hasOwnProperty,Pc=Object.prototype.propertyIsEnumerable;var Qi=(e,t,r)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,en=(e,t)=>{for(var r in t||(t={}))Ki.call(t,r)&&Qi(e,r,t[r]);if(Yi)for(var r of Yi(t))Pc.call(t,r)&&Qi(e,r,t[r]);return e},tn=(e,t)=>Ic(e,$c(t));var rn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var zc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ec(t))!Ki.call(e,n)&&n!==r&&Ar(e,n,{get:()=>t[n],enumerable:!(i=Sc(t,n))||i.enumerable});return e};var Nc=(e,t,r)=>(r=e!=null?Oc(Tc(e)):{},zc(t||!e||!e.__esModule?Ar(r,"default",{value:e,enumerable:!0}):r,e));var et=y((Dy,Ke)=>{Ke.exports=Cr(Mc);Ke.exports.find=Ke.exports;Ke.exports.replace=function(e,t,r,i){return Cr(Lc).call(this,e,t,r,i),e};Ke.exports.del=function(e,t,r){return Cr(Dc).call(this,e,t,null,r),e};function Cr(e){return function(t,r,i,n){var o=n&&Uc(n.normalizer)?n.normalizer:Rc;r=o(r);for(var a,u=!1;!u;)f();function f(){for(a in t){var v=o(a);if(r.indexOf(v)===0){var m=r.substr(v.length);if(m.charAt(0)==="."||m.length===0){r=m.substr(1);var q=t[a];if(q==null){u=!0;return}if(!r.length){u=!0;return}t=q;return}}}a=void 0,u=!0}if(a)return t==null?t:e(t,a,i)}}function Mc(e,t){if(e.hasOwnProperty(t))return e[t]}function Dc(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function Lc(e,t,r){return e.hasOwnProperty(t)&&(e[t]=r),e}function Rc(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function Uc(e){return typeof e=="function"}});var on=y((Ly,nn)=>{"use strict";var Te=et();nn.exports=function(e){e.zip=t("postalCode","zip"),e.country=t("country"),e.street=t("street"),e.state=t("state"),e.city=t("city"),e.region=t("region");function t(r,i){return function(){var n=this.traits(),o=this.properties?this.properties():{};return Te(n,"address."+r)||Te(n,r)||(i?Te(n,"address."+i):null)||(i?Te(n,i):null)||Te(o,"address."+r)||Te(o,r)||(i?Te(o,"address."+i):null)||(i?Te(o,i):null)}}}});var Rt=y((Ry,Or)=>{typeof Object.create=="function"?Or.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Or.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var ge=y((Uy,an)=>{var Fc=Object.prototype.toString;an.exports=function(e){switch(Fc.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return e===null?"null":e===void 0?"undefined":e!==e?"nan":e&&e.nodeType===1?"element":Bc(e)?"buffer":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),typeof e)};function Bc(e){return!!(e!=null&&(e._isBuffer||e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)))}});var tt=y((Fy,sn)=>{"use strict";var Vc=ge(),Jc=function e(t){var r=Vc(t);if(r==="object"){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=e(t[n]));return i}if(r==="array"){for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=e(t[o]);return i}if(r==="regexp"){var u="";return u+=t.multiline?"m":"",u+=t.global?"g":"",u+=t.ignoreCase?"i":"",new RegExp(t.source,u)}return r==="date"?new Date(t.getTime()):t};sn.exports=Jc});var cn=y((By,un)=>{var Hc=Object.prototype.toString;un.exports=function(e){switch(Hc.call(e)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array"}return e===null?"null":e===void 0?"undefined":e===Object(e)?"object":typeof e}});var fe=y(Ut=>{"use strict";Ut.inherit=Rt();Ut.clone=tt();Ut.type=cn()});var fn=y((Jy,pn)=>{"use strict";var Zc={Salesforce:!0};pn.exports=function(e){return!Zc[e]}});var Sr=y(Ir=>{"use strict";var dn=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;Ir.parse=function(e){var t=[1,5,6,7,11,12],r=dn.exec(e),i=0;if(!r)return new Date(e);for(var n=0,o;o=t[n];n++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0,r[4]===" "?i=new Date().getTimezoneOffset():r[9]!=="Z"&&r[10]&&(i=r[11]*60+r[12],r[10]==="+"&&(i=0-i));var a=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(a)};Ir.is=function(e,t){return typeof e!="string"||t&&/^\d{4}-\d{2}-\d{2}/.test(e)===!1?!1:dn.test(e)}});var ln=y($r=>{"use strict";var Wc=/\d{13}/;$r.is=function(e){return Wc.test(e)};$r.parse=function(e){return e=parseInt(e,10),new Date(e)}});var hn=y(Er=>{"use strict";var Gc=/\d{10}/;Er.is=function(e){return Gc.test(e)};Er.parse=function(e){var t=parseInt(e,10)*1e3;return new Date(t)}});var Ft=y((Gy,_n)=>{"use strict";var vn=Sr(),yn=ln(),gn=hn(),Xc=Object.prototype,mn=Xc.toString;function Yc(e){return mn.call(e)==="[object Date]"}function Qc(e){return mn.call(e)==="[object Number]"}_n.exports=function(t){return Yc(t)?t:Qc(t)?new Date(Kc(t)):vn.is(t)?vn.parse(t):yn.is(t)?yn.parse(t):gn.is(t)?gn.parse(t):new Date(t)};function Kc(e){return e<315576e5?e*1e3:e}});var Pr=y((Xy,bn)=>{"use strict";var wn=Sr();bn.exports=Tr;function Tr(e,t){return t===void 0&&(t=!0),e&&typeof e=="object"?ep(e,t):Array.isArray(e)?tp(e,t):wn.is(e,t)?wn.parse(e):e}function ep(e,t){return Object.keys(e).forEach(function(r){e[r]=Tr(e[r],t)}),e}function tp(e,t){return e.forEach(function(r,i){e[i]=Tr(r,t)}),e}});var Pe=y((Yy,xn)=>{"use strict";var rp=on(),gt=fe().clone,ip=fn(),np=Ft(),zr=et(),op=Pr(),Mr=fe().type;function T(e,t){t=t||{},"clone"in t||(t.clone=!0),t.clone&&(e=gt(e)),"traverse"in t||(t.traverse=!0),"timestamp"in e?e.timestamp=np(e.timestamp):e.timestamp=new Date,t.traverse&&op(e),this.opts=t,this.obj=e}T.prototype.proxy=function(e){var t=e.split(".");e=t.shift();var r=this[e]||this.field(e);return r&&(typeof r=="function"&&(r=r.call(this)||{}),t.length===0?this.opts.clone?Nr(r):r:(r=zr(r,t.join(".")),this.opts.clone?Nr(r):r))};T.prototype.field=function(e){var t=this.obj[e];return this.opts.clone?Nr(t):t};T.proxy=function(e){return function(){return this.proxy(e)}};T.field=function(e){return function(){return this.field(e)}};T.multi=function(e){return function(){var t=this.proxy(e+"s");if(Mr(t)==="array")return t;var r=this.proxy(e);return r&&(r=[this.opts.clone?gt(r):r]),r||[]}};T.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var r=this.proxy(e+"s");if(Mr(r)==="array")return r[0]}};T.prototype.json=function(){var e=this.opts.clone?gt(this.obj):this.obj;return this.type&&(e.type=this.type()),e};T.prototype.options=function(e){var t=this.obj.options||this.obj.context||{},r=this.opts.clone?gt(t):t;if(!e)return r;if(this.enabled(e)){var i=this.integrations(),n=i[e]||zr(i,e);return typeof n!="object"&&(n=zr(this.options(),e)),typeof n=="object"?n:{}}};T.prototype.context=T.prototype.options;T.prototype.enabled=function(e){var t=this.proxy("options.providers.all");typeof t!="boolean"&&(t=this.proxy("options.all")),typeof t!="boolean"&&(t=this.proxy("integrations.all")),typeof t!="boolean"&&(t=!0);var r=t&&ip(e),i=this.integrations();if(i.providers&&i.providers.hasOwnProperty(e)&&(r=i.providers[e]),i.hasOwnProperty(e)){var n=i[e];typeof n=="boolean"?r=n:r=!0}return!!r};T.prototype.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()};T.prototype.active=function(){var e=this.proxy("options.active");return e==null&&(e=!0),e};T.prototype.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")};T.prototype.sessionId=T.prototype.anonymousId;T.prototype.groupId=T.proxy("options.groupId");T.prototype.traits=function(e){var t=this.proxy("options.traits")||{},r=this.userId();e=e||{},r&&(t.id=r);for(var i in e){var n=this[i]==null?this.proxy("options.traits."+i):this[i]();n!=null&&(t[e[i]]=n,delete t[i])}return t};T.prototype.library=function(){var e=this.proxy("options.library");return e?typeof e=="string"?{name:e,version:null}:e:{name:"unknown",version:null}};T.prototype.device=function(){var e=this.proxy("context.device");Mr(e)!=="object"&&(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e};T.prototype.userAgent=T.proxy("context.userAgent");T.prototype.timezone=T.proxy("context.timezone");T.prototype.timestamp=T.field("timestamp");T.prototype.channel=T.field("channel");T.prototype.ip=T.proxy("context.ip");T.prototype.userId=T.field("userId");rp(T.prototype);function Nr(e){return gt(e)}xn.exports=T});var jn=y((Qy,kn)=>{"use strict";var ap=fe().inherit,qn=Pe();function he(e,t){qn.call(this,e,t)}ap(he,qn);he.prototype.action=function(){return"alias"};he.prototype.type=he.prototype.action;he.prototype.previousId=function(){return this.field("previousId")||this.field("from")};he.prototype.from=he.prototype.previousId;he.prototype.userId=function(){return this.field("userId")||this.field("to")};he.prototype.to=he.prototype.userId;kn.exports=he});var mt=y((Ky,An)=>{An.exports=function(t){return/.+\@.+\..+/.test(t)}});var On=y((eg,Cn)=>{"use strict";var sp=fe().inherit,up=mt(),cp=Ft(),rt=Pe();function ce(e,t){rt.call(this,e,t)}sp(ce,rt);ce.prototype.action=function(){return"group"};ce.prototype.type=ce.prototype.action;ce.prototype.groupId=rt.field("groupId");ce.prototype.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return cp(e)};ce.prototype.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(up(t))return t};ce.prototype.traits=function(e){var t=this.properties(),r=this.groupId();e=e||{},r&&(t.id=r);for(var i in e){var n=this[i]==null?this.proxy("traits."+i):this[i]();n!=null&&(t[e[i]]=n,delete t[i])}return t};ce.prototype.name=rt.proxy("traits.name");ce.prototype.industry=rt.proxy("traits.industry");ce.prototype.employees=rt.proxy("traits.employees");ce.prototype.properties=function(){return this.field("traits")||this.field("properties")||{}};Cn.exports=ce});var Sn=y((it,In)=>{it=In.exports=pp;function pp(e){return e.trim?e.trim():it.right(it.left(e))}it.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};it.right=function(e){if(e.trimRight)return e.trimRight();for(var t=/\s/,r=e.length;t.test(e.charAt(--r)););return e.slice(0,r+1)}});var Dr=y((tg,En)=>{"use strict";var me=Pe(),nt=et(),fp=fe().inherit,dp=mt(),$n=Ft(),Je=Sn(),lp=fe().type;function B(e,t){me.call(this,e,t)}fp(B,me);B.prototype.action=function(){return"identify"};B.prototype.type=B.prototype.action;B.prototype.traits=function(e){var t=this.field("traits")||{},r=this.userId();e=e||{},r&&(t.id=r);for(var i in e){var n=this[i]==null?this.proxy("traits."+i):this[i]();n!=null&&(t[e[i]]=n,i!==e[i]&&delete t[i])}return t};B.prototype.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(dp(t))return t};B.prototype.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return $n(e)};B.prototype.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return $n(e)};B.prototype.companyName=function(){return this.proxy("traits.company.name")};B.prototype.name=function(){var e=this.proxy("traits.name");if(typeof e=="string")return Je(e);var t=this.firstName(),r=this.lastName();if(t&&r)return Je(t+" "+r)};B.prototype.firstName=function(){var e=this.proxy("traits.firstName");if(typeof e=="string")return Je(e);var t=this.proxy("traits.name");if(typeof t=="string")return Je(t).split(" ")[0]};B.prototype.lastName=function(){var e=this.proxy("traits.lastName");if(typeof e=="string")return Je(e);var t=this.proxy("traits.name");if(typeof t=="string"){var r=Je(t).indexOf(" ");if(r!==-1)return Je(t.substr(r+1))}};B.prototype.uid=function(){return this.userId()||this.username()||this.email()};B.prototype.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};B.prototype.age=function(){var e=this.birthday(),t=nt(this.traits(),"age");if(t!=null)return t;if(lp(e)==="date"){var r=new Date;return r.getFullYear()-e.getFullYear()}};B.prototype.avatar=function(){var e=this.traits();return nt(e,"avatar")||nt(e,"photoUrl")||nt(e,"avatarUrl")};B.prototype.position=function(){var e=this.traits();return nt(e,"position")||nt(e,"jobTitle")};B.prototype.username=me.proxy("traits.username");B.prototype.website=me.one("traits.website");B.prototype.websites=me.multi("traits.website");B.prototype.phone=me.one("traits.phone");B.prototype.phones=me.multi("traits.phone");B.prototype.address=me.proxy("traits.address");B.prototype.gender=me.proxy("traits.gender");B.prototype.birthday=me.proxy("traits.birthday");En.exports=B});var Bt=y((rg,Pn)=>{"use strict";var hp=fe().inherit,vp=fe().type,G=Pe(),yp=Dr(),gp=mt(),Tn=et();function E(e,t){G.call(this,e,t)}hp(E,G);E.prototype.action=function(){return"track"};E.prototype.type=E.prototype.action;E.prototype.event=G.field("event");E.prototype.value=G.proxy("properties.value");E.prototype.category=G.proxy("properties.category");E.prototype.id=G.proxy("properties.id");E.prototype.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")};E.prototype.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")};E.prototype.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")};E.prototype.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")};E.prototype.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")};E.prototype.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")};E.prototype.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")};E.prototype.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")};E.prototype.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")};E.prototype.sku=G.proxy("properties.sku");E.prototype.tax=G.proxy("properties.tax");E.prototype.name=G.proxy("properties.name");E.prototype.price=G.proxy("properties.price");E.prototype.total=G.proxy("properties.total");E.prototype.repeat=G.proxy("properties.repeat");E.prototype.coupon=G.proxy("properties.coupon");E.prototype.shipping=G.proxy("properties.shipping");E.prototype.discount=G.proxy("properties.discount");E.prototype.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")};E.prototype.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")};E.prototype.description=G.proxy("properties.description");E.prototype.plan=G.proxy("properties.plan");E.prototype.subtotal=function(){var e=Tn(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var r=this.tax();r&&(t-=r),r=this.shipping(),r&&(t-=r),r=this.discount(),r&&(t+=r)}return t};E.prototype.products=function(){var e=this.properties(),t=Tn(e,"products");return vp(t)==="array"?t:[]};E.prototype.quantity=function(){var e=this.obj.properties||{};return e.quantity||1};E.prototype.currency=function(){var e=this.obj.properties||{};return e.currency||"USD"};E.prototype.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};E.prototype.query=G.proxy("options.query");E.prototype.properties=function(e){var t=this.field("properties")||{};e=e||{};for(var r in e){var i=this[r]==null?this.proxy("properties."+r):this[r]();i!=null&&(t[e[r]]=i,delete t[r])}return t};E.prototype.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};E.prototype.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();if(gp(t))return t};E.prototype.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event(),r=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!e&&t&&t.match(r)&&(e=this.proxy("properties.total")),mp(e)};E.prototype.cents=function(){var e=this.revenue();return typeof e!="number"?this.value()||0:e*100};E.prototype.identify=function(){var e=this.json();return e.traits=this.traits(),new yp(e,this.opts)};function mp(e){if(e){if(typeof e=="number")return e;if(typeof e=="string"&&(e=e.replace(/\$/g,""),e=parseFloat(e),!isNaN(e)))return e}}Pn.exports=E});var Lr=y((ig,zn)=>{"use strict";var _p=fe().inherit,He=Pe(),wp=Bt(),bp=mt();function te(e,t){He.call(this,e,t)}_p(te,He);te.prototype.action=function(){return"page"};te.prototype.type=te.prototype.action;te.prototype.category=He.field("category");te.prototype.name=He.field("name");te.prototype.title=He.proxy("properties.title");te.prototype.path=He.proxy("properties.path");te.prototype.url=He.proxy("properties.url");te.prototype.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};te.prototype.properties=function(e){var t=this.field("properties")||{},r=this.category(),i=this.name();e=e||{},r&&(t.category=r),i&&(t.name=i);for(var n in e){var o=this[n]==null?this.proxy("properties."+n):this[n]();o!=null&&(t[e[n]]=o,n!==e[n]&&delete t[n])}return t};te.prototype.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();if(bp(t))return t};te.prototype.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t};te.prototype.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"};te.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new wp(t,this.opts)};zn.exports=te});var Dn=y((ng,Mn)=>{"use strict";var xp=fe().inherit,Nn=Lr(),qp=Bt();function Ze(e,t){Nn.call(this,e,t)}xp(Ze,Nn);Ze.prototype.action=function(){return"screen"};Ze.prototype.type=Ze.prototype.action;Ze.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"};Ze.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new qp(t,this.opts)};Mn.exports=Ze});var Un=y((og,Rn)=>{"use strict";var kp=fe().inherit,Ln=Pe();function Rr(e,t){Ln.call(this,e,t)}kp(Rr,Ln);Rr.prototype.type=function(){return"delete"};Rn.exports=Rr});var ke=y((ag,Fn)=>{"use strict";var ze=Pe();ze.Alias=jn();ze.Group=On();ze.Identify=Dr();ze.Track=Bt();ze.Page=Lr();ze.Screen=Dn();ze.Delete=Un();Fn.exports=ze});var _e=y((sg,Ur)=>{typeof Ur<"u"&&(Ur.exports=pe);function pe(e){if(e)return jp(e)}function jp(e){for(var t in pe.prototype)e[t]=pe.prototype[t];return e}pe.prototype.on=pe.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};pe.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};pe.prototype.off=pe.prototype.removeListener=pe.prototype.removeAllListeners=pe.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,n=0;n<r.length;n++)if(i=r[n],i===t||i.fn===t){r.splice(n,1);break}return r.length===0&&delete this._callbacks["$"+e],this};pe.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,n=r.length;i<n;++i)r[i].apply(this,t)}return this};pe.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};pe.prototype.hasListeners=function(e){return!!this.listeners(e).length}});var Jt=y((ug,_t)=>{"use strict";var Bn=ke();_t.exports.SourceMiddlewareChain=function(){var t=Vt(this);this.applyMiddlewares=function(r,i,n){return t(function(o,a,u){o({integrations:i,next:u,payload:a})},r,n)}};_t.exports.IntegrationMiddlewareChain=function(){var t=Vt(this);this.applyMiddlewares=function(r,i,n){return t(function(o,a,u){o(a,i,u)},r,n)}};_t.exports.DestinationMiddlewareChain=function(){var t=Vt(this);this.applyMiddlewares=function(r,i,n){return t(function(o,a,u){o({payload:a,integration:i,next:u})},r,n)}};function Vt(e){var t=[];return e.getMiddlewares=function(){return t.slice()},e.add=function(r){if(typeof r!="function")throw new Error("attempted to add non-function middleware");if(t.indexOf(r)!==-1)throw new Error("middleware is already registered");t.push(r)},function(i,n,o){if(typeof n!="object")throw new Error("applyMiddlewares requires a payload object");if(typeof o!="function")throw new Error("applyMiddlewares requires a function callback");var a=t.slice();a.push(o),Vn(i,n,a,0)}}function Vn(e,t,r,i){if(t===null){r[r.length-1](null);return}t instanceof Bn||(t=new Bn(t));var n=r[i];n&&(r[i+1]?e(n,t,function(o){Vn(e,o,r,++i)}):n(t))}_t.exports.middlewareChain=Vt});var ot=y((cg,Hn)=>{var Jn=[].slice;Hn.exports=function(e,t){if(typeof t=="string"&&(t=e[t]),typeof t!="function")throw new Error("bind() requires a function");var r=Jn.call(arguments,2);return function(){return t.apply(e,r.concat(Jn.call(arguments)))}}});var Ne=y((pg,Zn)=>{"use strict";var Ap=ot();function Cp(e){for(var t in e){var r=e[t];typeof r=="function"&&(e[t]=Ap(e,e[t]))}return e}Zn.exports=Cp});var wt=y((fg,Wn)=>{"use strict";var Op=ge(),Ip=function e(t){var r=Op(t),i;if(r==="object"){i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=e(t[n]));return i}if(r==="array"){i=new Array(t.length);for(var o=0,a=t.length;o<a;o++)i[o]=e(t[o]);return i}if(r==="regexp"){var u="";return u+=t.multiline?"m":"",u+=t.global?"g":"",u+=t.ignoreCase?"i":"",new RegExp(t.source,u)}return r==="date"?new Date(t.getTime()):t};Wn.exports=Ip});var Fr=y((dg,ro)=>{"use strict";var Ht=Object.prototype.hasOwnProperty,to=Object.prototype.toString,Gn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,Yn=function(t){return typeof Array.isArray=="function"?Array.isArray(t):to.call(t)==="[object Array]"},Qn=function(t){if(!t||to.call(t)!=="[object Object]")return!1;var r=Ht.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Ht.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var n;for(n in t);return typeof n>"u"||Ht.call(t,n)},Kn=function(t,r){Gn&&r.name==="__proto__"?Gn(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},eo=function(t,r){if(r==="__proto__")if(Ht.call(t,r)){if(Xn)return Xn(t,r).value}else return;return t[r]};ro.exports=function e(){var t,r,i,n,o,a,u=arguments[0],f=1,v=arguments.length,m=!1;for(typeof u=="boolean"&&(m=u,u=arguments[1]||{},f=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});f<v;++f)if(t=arguments[f],t!=null)for(r in t)i=eo(u,r),n=eo(t,r),u!==n&&(m&&n&&(Qn(n)||(o=Yn(n)))?(o?(o=!1,a=i&&Yn(i)?i:[]):a=i&&Qn(i)?i:{},Kn(u,{name:r,newValue:e(m,a,n)})):typeof n<"u"&&Kn(u,{name:r,newValue:n}));return u}});var no=y((lg,io)=>{var bt=1e3,xt=bt*60,qt=xt*60,kt=qt*24,Sp=kt*365.25;io.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return $p(e);if(r==="number"&&isNaN(e)===!1)return t.long?Tp(e):Ep(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function $p(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Sp;case"days":case"day":case"d":return r*kt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*qt;case"minutes":case"minute":case"mins":case"min":case"m":return r*xt;case"seconds":case"second":case"secs":case"sec":case"s":return r*bt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Ep(e){return e>=kt?Math.round(e/kt)+"d":e>=qt?Math.round(e/qt)+"h":e>=xt?Math.round(e/xt)+"m":e>=bt?Math.round(e/bt)+"s":e+"ms"}function Tp(e){return Zt(e,kt,"day")||Zt(e,qt,"hour")||Zt(e,xt,"minute")||Zt(e,bt,"second")||e+" ms"}function Zt(e,t,r){if(!(e<t))return e<t*1.5?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}});var ao=y((L,oo)=>{L=oo.exports=Vr.debug=Vr.default=Vr;L.coerce=Dp;L.disable=Np;L.enable=zp;L.enabled=Mp;L.humanize=no();L.names=[];L.skips=[];L.formatters={};var Br;function Pp(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return L.colors[Math.abs(t)%L.colors.length]}function Vr(e){function t(){if(t.enabled){var r=t,i=+new Date,n=i-(Br||i);r.diff=n,r.prev=Br,r.curr=i,Br=i;for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];o[0]=L.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(v,m){if(v==="%%")return v;u++;var q=L.formatters[m];if(typeof q=="function"){var $=o[u];v=q.call(r,$),o.splice(u,1),u--}return v}),L.formatArgs.call(r,o);var f=t.log||L.log||console.log.bind(console);f.apply(r,o)}}return t.namespace=e,t.enabled=L.enabled(e),t.useColors=L.useColors(),t.color=Pp(e),typeof L.init=="function"&&L.init(t),t}function zp(e){L.save(e),L.names=[],L.skips=[];for(var t=(typeof e=="string"?e:"").split(/[\s,]+/),r=t.length,i=0;i<r;i++)t[i]&&(e=t[i].replace(/\*/g,".*?"),e[0]==="-"?L.skips.push(new RegExp("^"+e.substr(1)+"$")):L.names.push(new RegExp("^"+e+"$")))}function Np(){L.enable("")}function Mp(e){var t,r;for(t=0,r=L.skips.length;t<r;t++)if(L.skips[t].test(e))return!1;for(t=0,r=L.names.length;t<r;t++)if(L.names[t].test(e))return!0;return!1}function Dp(e){return e instanceof Error?e.stack||e.message:e}});var re=y((ae,uo)=>{ae=uo.exports=ao();ae.log=Up;ae.formatArgs=Rp;ae.save=Fp;ae.load=so;ae.useColors=Lp;ae.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:Bp();ae.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function Lp(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}ae.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function Rp(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+ae.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(o){o!=="%%"&&(i++,o==="%c"&&(n=i))}),e.splice(n,0,r)}}function Up(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Fp(e){try{e==null?ae.storage.removeItem("debug"):ae.storage.debug=e}catch(t){}}function so(){var e;try{e=ae.storage.debug}catch(t){}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}ae.enable(so());function Bp(){try{return window.localStorage}catch(e){}}});var Jr=y((hg,ho)=>{"use strict";var fo=re()("cookie");ho.exports=function(e,t,r){switch(arguments.length){case 3:case 2:return Vp(e,t,r);case 1:return Jp(e);default:return lo()}};function Vp(e,t,r){r=r||{};var i=co(e)+"="+co(t);t==null&&(r.maxage=-1),r.maxage&&(r.expires=new Date(+new Date+r.maxage)),r.path&&(i+="; path="+r.path),r.domain&&(i+="; domain="+r.domain),r.expires&&(i+="; expires="+r.expires.toUTCString()),r.sameSite&&(i+="; SameSite="+r.sameSite),r.secure&&(i+="; secure"),document.cookie=i}function lo(){var e;try{e=document.cookie}catch(t){return typeof console<"u"&&typeof console.error=="function"&&console.error(t.stack||t),{}}return Hp(e)}function Jp(e){return lo()[e]}function Hp(e){var t={},r=e.split(/ *; */),i;if(r[0]=="")return t;for(var n=0;n<r.length;++n)i=r[n].split("="),t[po(i[0])]=po(i[1]);return t}function co(e){try{return encodeURIComponent(e)}catch(t){fo("error `encode(%o)` - %o",e,t)}}function po(e){try{return decodeURIComponent(e)}catch(t){fo("error `decode(%o)` - %o",e,t)}}});var go=y((vg,yo)=>{"use strict";var vo=Math.max,Zp=function(t,r){var i=r?r.length:0;if(!i)return[];for(var n=vo(Number(t)||0,0),o=vo(i-n,0),a=new Array(o),u=0;u<o;u+=1)a[u]=r[u+n];return a};yo.exports=Zp});var _o=y((yg,mo)=>{"use strict";var Wp=Math.max,Gp=function(t){if(t==null||!t.length)return[];for(var r=new Array(Wp(t.length-2,0)),i=1;i<t.length;i+=1)r[i-1]=t[i];return r};mo.exports=Gp});var we=y((gg,Hr)=>{"use strict";var Xp=go(),bo=_o(),xo=Object.prototype.hasOwnProperty,Yp=Object.prototype.toString,Qp=function(t){return!!t&&typeof t=="object"},wo=function(t){return!!t&&Yp.call(t)==="[object Object]"},Kp=function(t,r,i,n){return xo.call(r,n)&&t[n]===void 0&&(t[n]=i),r},ef=function(e,t,r,i){return xo.call(t,i)&&(wo(e[i])&&wo(r)?e[i]=ko(e[i],r):e[i]===void 0&&(e[i]=r)),t},qo=function(e,t){if(!Qp(t))return t;e=e||Kp;for(var r=Xp(2,arguments),i=0;i<r.length;i+=1)for(var n in r[i])e(t,r[i],r[i][n],n);return t},ko=function(t){return qo.apply(null,[ef,t].concat(bo(arguments)))},tf=function(e){return qo.apply(null,[null,e].concat(bo(arguments)))};Hr.exports=tf;Hr.exports.deep=ko});var Wt=y(Me=>{Me.parse=function(e){var t=document.createElement("a");return t.href=e,{href:t.href,host:t.host||location.host,port:t.port==="0"||t.port===""?rf(t.protocol):t.port,hash:t.hash,hostname:t.hostname||location.hostname,pathname:t.pathname.charAt(0)!="/"?"/"+t.pathname:t.pathname,protocol:!t.protocol||t.protocol==":"?location.protocol:t.protocol,search:t.search,query:t.search.slice(1)}};Me.isAbsolute=function(e){return e.indexOf("//")==0||!!~e.indexOf("://")};Me.isRelative=function(e){return!Me.isAbsolute(e)};Me.isCrossDomain=function(e){e=Me.parse(e);var t=Me.parse(window.location.href);return e.hostname!==t.hostname||e.port!==t.port||e.protocol!==t.protocol};function rf(e){switch(e){case"http:":return 80;case"https:":return 443;default:return location.port}}});var Zr=y((_g,Io)=>{var Co=re()("cookie");Io.exports=function(e,t,r){switch(arguments.length){case 3:case 2:return nf(e,t,r);case 1:return of(e);default:return Oo()}};function nf(e,t,r){r=r||{};var i=jo(e)+"="+jo(t);t==null&&(r.maxage=-1),r.maxage&&(r.expires=new Date(+new Date+r.maxage)),r.path&&(i+="; path="+r.path),r.domain&&(i+="; domain="+r.domain),r.expires&&(i+="; expires="+r.expires.toUTCString()),r.secure&&(i+="; secure"),document.cookie=i}function Oo(){var e;try{e=document.cookie}catch(t){return typeof console<"u"&&typeof console.error=="function"&&console.error(t.stack||t),{}}return af(e)}function of(e){return Oo()[e]}function af(e){var t={},r=e.split(/ *; */),i;if(r[0]=="")return t;for(var n=0;n<r.length;++n)i=r[n].split("="),t[Ao(i[0])]=Ao(i[1]);return t}function jo(e){try{return encodeURIComponent(e)}catch(t){Co("error `encode(%o)` - %o",e,t)}}function Ao(e){try{return decodeURIComponent(e)}catch(t){Co("error `decode(%o)` - %o",e,t)}}});var $o=y((Gt,So)=>{"use strict";var sf=Wt().parse,uf=Zr();function Wr(e){for(var t=Gt.cookie,r=Gt.levels(e),i=0;i<r.length;++i){var n="__tld__",o=r[i],a={domain:"."+o};if(t(n,1,a),t(n))return t(n,null,a),o}return""}Wr.levels=function(e){var t=sf(e).hostname,r=t.split("."),i=r[r.length-1],n=[];if(r.length===4&&i===parseInt(i,10)||r.length<=1)return n;for(var o=r.length-2;o>=0;--o)n.push(r.slice(o).join("."));return n};Wr.cookie=uf;Gt=So.exports=Wr});var Xt=y((To,Xr)=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});var cf=Ne(),Eo=wt(),Gr=Jr(),pf=re()("analytics.js:cookie"),ff=we(),df=$o();function at(e){this.options(e)}at.prototype.options=function(e){if(arguments.length===0)return this._options;e=e||{};var t="."+df(window.location.href);t==="."&&(t=null),this._options=ff(e,{maxage:31536e6,path:"/",domain:t,sameSite:"Lax"}),this.set("ajs:test",!0),this.get("ajs:test")||(pf("fallback to domain=null"),this._options.domain=null),this.remove("ajs:test")};at.prototype.set=function(e,t){try{return t=window.JSON.stringify(t),Gr(e,t==="null"?null:t,Eo(this._options)),!0}catch(r){return!1}};at.prototype.get=function(e){try{var t=Gr(e);return t=t?window.JSON.parse(t):null,t}catch(r){return null}};at.prototype.remove=function(e){try{return Gr(e,null,Eo(this._options)),!0}catch(t){return!1}};Xr.exports=cf(new at);Xr.exports.Cookie=at});var Yr=y((st,Yt)=>{(function(){var e=typeof define=="function"&&define.amd,t={function:!0,object:!0},r=t[typeof st]&&st&&!st.nodeType&&st,i=t[typeof window]&&window||this,n=r&&t[typeof Yt]&&Yt&&!Yt.nodeType&&typeof window=="object"&&window;n&&(n.global===n||n.window===n||n.self===n)&&(i=n);function o(m,q){m||(m=i.Object()),q||(q=i.Object());var $=m.Number||i.Number,w=m.String||i.String,k=m.Object||i.Object,A=m.Date||i.Date,N=m.SyntaxError||i.SyntaxError,R=m.TypeError||i.TypeError,ue=m.Math||i.Math,ne=m.JSON||i.JSON;typeof ne=="object"&&ne&&(q.stringify=ne.stringify,q.parse=ne.parse);var M=k.prototype,l=M.toString,p=M.hasOwnProperty,c;function s(_,j){try{_()}catch(x){j&&j()}}var h=new A(-0xc782b5b800cec);s(function(){h=h.getUTCFullYear()==-109252&&h.getUTCMonth()===0&&h.getUTCDate()===1&&h.getUTCHours()==10&&h.getUTCMinutes()==37&&h.getUTCSeconds()==6&&h.getUTCMilliseconds()==708});function d(_){if(d[_]!=null)return d[_];var j;if(_=="bug-string-char-index")j="a"[0]!="a";else if(_=="json")j=d("json-stringify")&&d("date-serialization")&&d("json-parse");else if(_=="date-serialization"){if(j=d("json-stringify")&&h,j){var x=q.stringify;s(function(){j=x(new A(-864e13))=='"-271821-04-20T00:00:00.000Z"'&&x(new A(864e13))=='"+275760-09-13T00:00:00.000Z"'&&x(new A(-621987552e5))=='"-000001-01-01T00:00:00.000Z"'&&x(new A(-1))=='"1969-12-31T23:59:59.999Z"'})}}else{var O,I='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if(_=="json-stringify"){var x=q.stringify,P=typeof x=="function";P&&((O=function(){return 1}).toJSON=O,s(function(){P=x(0)==="0"&&x(new $)==="0"&&x(new w)=='""'&&x(l)===c&&x(c)===c&&x()===c&&x(O)==="1"&&x([O])=="[1]"&&x([c])=="[null]"&&x(null)=="null"&&x([c,l,null])=="[null,null,null]"&&x({a:[O,!0,!1,null,`\0\b
\f\r `]})==I&&x(null,O)==="1"&&x([1,2],null,1)==`[
1,
2
]`},function(){P=!1})),j=P}if(_=="json-parse"){var b=q.parse,C;typeof b=="function"&&s(function(){b("0")===0&&!b(!1)&&(O=b(I),C=O.a.length==5&&O.a[0]===1,C&&(s(function(){C=!b('" "')}),C&&s(function(){C=b("01")!==1}),C&&s(function(){C=b("1.")!==1})))},function(){C=!1}),j=C}}return d[_]=!!j}if(d["bug-string-char-index"]=d["date-serialization"]=d.json=d["json-stringify"]=d["json-parse"]=null,!d("json")){var U="[object Function]",de="[object Date]",le="[object Number]",yt="[object String]",wr="[object Array]",wc="[object Boolean]",br=d("bug-string-char-index"),Qe=function(_,j){var x=0,O,I,P;(O=function(){this.valueOf=0}).prototype.valueOf=0,I=new O;for(P in I)p.call(I,P)&&x++;return O=I=null,x?Qe=function(b,C){var oe=l.call(b)==U,D,V;for(D in b)!(oe&&D=="prototype")&&p.call(b,D)&&!(V=D==="constructor")&&C(D);(V||p.call(b,D="constructor"))&&C(D)}:(I=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],Qe=function(b,C){var oe=l.call(b)==U,D,V,Ee=!oe&&typeof b.constructor!="function"&&t[typeof b.hasOwnProperty]&&b.hasOwnProperty||p;for(D in b)!(oe&&D=="prototype")&&Ee.call(b,D)&&C(D);for(V=I.length;D=I[--V];)Ee.call(b,D)&&C(D)}),Qe(_,j)};if(!d("json-stringify")&&!d("date-serialization")){var bc={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},xc="000000",be=function(_,j){return(xc+(j||0)).slice(-_)},Dt=function(_){var j,x,O,I,P,b,C,oe,D;if(h)j=function(F){x=F.getUTCFullYear(),O=F.getUTCMonth(),I=F.getUTCDate(),b=F.getUTCHours(),C=F.getUTCMinutes(),oe=F.getUTCSeconds(),D=F.getUTCMilliseconds()};else{var V=ue.floor,Ee=[0,31,59,90,120,151,181,212,243,273,304,334],xe=function(F,qe){return Ee[qe]+365*(F-1970)+V((F-1969+(qe=+(qe>1)))/4)-V((F-1901+qe)/100)+V((F-1601+qe)/400)};j=function(F){for(I=V(F/864e5),x=V(I/365.2425)+1970-1;xe(x+1,0)<=I;x++);for(O=V((I-xe(x,0))/30.42);xe(x,O+1)<=I;O++);I=1+I-xe(x,O),P=(F%864e5+864e5)%864e5,b=V(P/36e5)%24,C=V(P/6e4)%60,oe=V(P/1e3)%60,D=P%1e3}}return Dt=function(F){return F>-1/0&&F<1/0?(j(F),F=(x<=0||x>=1e4?(x<0?"-":"+")+be(6,x<0?-x:x):be(4,x))+"-"+be(2,O+1)+"-"+be(2,I)+"T"+be(2,b)+":"+be(2,C)+":"+be(2,oe)+"."+be(3,D)+"Z",x=O=I=b=C=oe=D=null):F=null,F},Dt(_)};if(d("json-stringify")&&!d("date-serialization")){let _=function(j){return Dt(this)};var Lm=_,qc=q.stringify;q.stringify=function(j,x,O){var I=A.prototype.toJSON;A.prototype.toJSON=_;var P=qc(j,x,O);return A.prototype.toJSON=I,P}}else{var kc="\\u00",jc=function(_){var j=_.charCodeAt(0),x=bc[j];return x||kc+be(2,j.toString(16))},xr=/[\x00-\x1f\x22\x5c]/g,Hi=function(_){return xr.lastIndex=0,'"'+(xr.test(_)?_.replace(xr,jc):_)+'"'},qr=function(_,j,x,O,I,P,b){var C,oe,D,V,Ee,xe,F,qe,jr;if(s(function(){C=j[_]}),typeof C=="object"&&C&&(C.getUTCFullYear&&l.call(C)==de&&C.toJSON===A.prototype.toJSON?C=Dt(C):typeof C.toJSON=="function"&&(C=C.toJSON(_))),x&&(C=x.call(j,_,C)),C==c)return C===c?C:"null";switch(oe=typeof C,oe=="object"&&(D=l.call(C)),D||oe){case"boolean":case wc:return""+C;case"number":case le:return C>-1/0&&C<1/0?""+C:"null";case"string":case yt:return Hi(""+C)}if(typeof C=="object"){for(F=b.length;F--;)if(b[F]===C)throw R();if(b.push(C),V=[],qe=P,P+=I,D==wr){for(xe=0,F=C.length;xe<F;xe++)Ee=qr(xe,C,x,O,I,P,b),V.push(Ee===c?"null":Ee);jr=V.length?I?`[
`+P+V.join(`,
`+P)+`
`+qe+"]":"["+V.join(",")+"]":"[]"}else Qe(O||C,function(Gi){var Xi=qr(Gi,C,x,O,I,P,b);Xi!==c&&V.push(Hi(Gi)+":"+(I?" ":"")+Xi)}),jr=V.length?I?`{
`+P+V.join(`,
`+P)+`
`+qe+"}":"{"+V.join(",")+"}":"{}";return b.pop(),jr}};q.stringify=function(_,j,x){var O,I,P,b;if(t[typeof j]&&j){if(b=l.call(j),b==U)I=j;else if(b==wr){P={};for(var C=0,oe=j.length,D;C<oe;)D=j[C++],b=l.call(D),(b=="[object String]"||b=="[object Number]")&&(P[D]=1)}}if(x)if(b=l.call(x),b==le){if((x-=x%1)>0)for(x>10&&(x=10),O="";O.length<x;)O+=" "}else b==yt&&(O=x.length<=10?x:x.slice(0,10));return qr("",(D={},D[""]=_,D),I,P,O,"",[])}}}if(!d("json-parse")){var Ac=w.fromCharCode,Cc={92:"\\",34:'"',47:"/",98:"\b",116:" ",110:`
`,102:"\f",114:"\r"},S,Lt,W=function(){throw S=Lt=null,N()},$e=function(){for(var _=Lt,j=_.length,x,O,I,P,b;S<j;)switch(b=_.charCodeAt(S),b){case 9:case 10:case 13:case 32:S++;break;case 123:case 125:case 91:case 93:case 58:case 44:return x=br?_.charAt(S):_[S],S++,x;case 34:for(x="@",S++;S<j;)if(b=_.charCodeAt(S),b<32)W();else if(b==92)switch(b=_.charCodeAt(++S),b){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:x+=Cc[b],S++;break;case 117:for(O=++S,I=S+4;S<I;S++)b=_.charCodeAt(S),b>=48&&b<=57||b>=97&&b<=102||b>=65&&b<=70||W();x+=Ac("0x"+_.slice(O,S));break;default:W()}else{if(b==34)break;for(b=_.charCodeAt(S),O=S;b>=32&&b!=92&&b!=34;)b=_.charCodeAt(++S);x+=_.slice(O,S)}if(_.charCodeAt(S)==34)return S++,x;W();default:if(O=S,b==45&&(P=!0,b=_.charCodeAt(++S)),b>=48&&b<=57){for(b==48&&(b=_.charCodeAt(S+1),b>=48&&b<=57)&&W(),P=!1;S<j&&(b=_.charCodeAt(S),b>=48&&b<=57);S++);if(_.charCodeAt(S)==46){for(I=++S;I<j&&(b=_.charCodeAt(I),!(b<48||b>57));I++);I==S&&W(),S=I}if(b=_.charCodeAt(S),b==101||b==69){for(b=_.charCodeAt(++S),(b==43||b==45)&&S++,I=S;I<j&&(b=_.charCodeAt(I),!(b<48||b>57));I++);I==S&&W(),S=I}return+_.slice(O,S)}P&&W();var C=_.slice(S,S+4);if(C=="true")return S+=4,!0;if(C=="fals"&&_.charCodeAt(S+4)==101)return S+=5,!1;if(C=="null")return S+=4,null;W()}return"$"},kr=function(_){var j,x;if(_=="$"&&W(),typeof _=="string"){if((br?_.charAt(0):_[0])=="@")return _.slice(1);if(_=="["){for(j=[];_=$e(),_!="]";)x?_==","?(_=$e(),_=="]"&&W()):W():x=!0,_==","&&W(),j.push(kr(_));return j}else if(_=="{"){for(j={};_=$e(),_!="}";)x?_==","?(_=$e(),_=="}"&&W()):W():x=!0,(_==","||typeof _!="string"||(br?_.charAt(0):_[0])!="@"||$e()!=":")&&W(),j[_.slice(1)]=kr($e());return j}W()}return _},Zi=function(_,j,x){var O=Wi(_,j,x);O===c?delete _[j]:_[j]=O},Wi=function(_,j,x){var O=_[j],I;if(typeof O=="object"&&O)if(l.call(O)==wr)for(I=O.length;I--;)Zi(l,Qe,O,I,x);else Qe(O,function(P){Zi(O,P,x)});return x.call(_,j,O)};q.parse=function(_,j){var x,O;return S=0,Lt=""+_,x=kr($e()),$e()!="$"&&W(),S=Lt=null,j&&l.call(j)==U?Wi((O={},O[""]=x,O),"",j):x}}}return q.runInContext=o,q}if(r&&!e)o(i,r);else{var a=i.JSON,u=i.JSON3,f=!1,v=o(i,i.JSON3={noConflict:function(){return f||(f=!0,i.JSON=a,i.JSON3=u,a=u=null),v}});i.JSON={parse:v.parse,stringify:v.stringify}}e&&define(function(){return v})}).call(st)});var zo=y((wg,Po)=>{Po.exports=lf;function lf(e){e=e.replace(/\r\n/g,`
`);for(var t="",r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(i&63|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(i&63|128))}return t}});var Mo=y((bg,No)=>{var hf=zo(),Qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";No.exports=vf;function vf(e){var t="",r,i,n,o,a,u,f,v=0;for(e=hf(e);v<e.length;)r=e.charCodeAt(v++),i=e.charCodeAt(v++),n=e.charCodeAt(v++),o=r>>2,a=(r&3)<<4|i>>4,u=(i&15)<<2|n>>6,f=n&63,isNaN(i)?u=f=64:isNaN(n)&&(f=64),t=t+Qt.charAt(o)+Qt.charAt(a)+Qt.charAt(u)+Qt.charAt(f);return t}});var Do=y((xg,Qr)=>{try{Qr.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(e){Qr.exports=!1}});var Uo=y((qg,Ro)=>{var Lo=re()("jsonp");Ro.exports=mf;var yf=0;function gf(){}function mf(e,t,r){typeof t=="function"&&(r=t,t={}),t||(t={});var i=t.prefix||"__jp",n=t.name||i+yf++,o=t.param||"callback",a=t.timeout!=null?t.timeout:6e4,u=encodeURIComponent,f=document.getElementsByTagName("script")[0]||document.head,v,m;a&&(m=setTimeout(function(){q(),r&&r(new Error("Timeout"))},a));function q(){v.parentNode&&v.parentNode.removeChild(v),window[n]=gf,m&&clearTimeout(m)}function $(){window[n]&&q()}return window[n]=function(w){Lo("jsonp got",w),q(),r&&r(null,w)},e+=(~e.indexOf("?")?"&":"?")+o+"="+u(n),e=e.replace("?&","?"),Lo('jsonp req "%s"',e),v=document.createElement("script"),v.src=e,f.parentNode.insertBefore(v,f),$}});var Zo=y((je,Ho)=>{"use strict";var Fo=Yr(),_f=Mo(),Bo=Do(),wf=Uo();je=Ho.exports=Bo?Vo:Jo;je.callback="callback";je.prefix="data";je.json=Vo;je.base64=Jo;je.type=Bo?"xhr":"jsonp";function Vo(e,t,r,i){arguments.length===3&&(i=r,r={});var n=new XMLHttpRequest;n.onerror=i,n.onreadystatechange=a,n.open("POST",e,!0);for(var o in r)n.setRequestHeader(o,r[o]);n.send(Fo.stringify(t));function a(){if(n.readyState===4)return i(null,n)}}function Jo(e,t,r,i){arguments.length===3&&(i=r);var n=je.prefix,o=bf(t);e+="?"+n+"="+o,wf(e,{param:je.callback},function(a,u){if(a)return i(a);i(null,{url:e,body:u})})}function bf(e){var t="";return t=Fo.stringify(e),t=_f(t),t=t.replace(/\+/g,"-").replace(/\//g,"_"),encodeURIComponent(t)}});var Xo=y((Go,Kr)=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});var xf=Ne(),Wo=Zo(),qf=re()("analytics.js:metrics");function jt(e){this.options(e)}jt.prototype.options=function(e){if(e=e||{},this.host=e.host||"api.segment.io/v1",this.sampleRate=e.sampleRate||0,this.flushTimer=e.flushTimer||30*1e3,this.maxQueueSize=e.maxQueueSize||20,this.queue=[],this.sampleRate>0){var t=this;setInterval(function(){t._flush()},this.flushTimer)}};jt.prototype.increment=function(e,t){Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize||(this.queue.push({type:"Counter",metric:e,value:1,tags:t}),e.indexOf("error")>0&&this._flush())};jt.prototype._flush=function(){var e=this;if(!(e.queue.length<=0)){var t={series:this.queue},r={"Content-Type":"text/plain"};e.queue=[],Wo.type==="xhr"&&Wo("https://"+this.host+"/m",t,r,function(i,n){qf("sent %O, received %O",t,[i,n])})}};Kr.exports=xf(new jt);Kr.exports.Metrics=jt});var ut=y((kg,Qo)=>{"use strict";var kf=Object.prototype.hasOwnProperty,jf=String.prototype.charAt,Af=Object.prototype.toString,Cf=function(e,t){return jf.call(e,t)},ei=function(t,r){return kf.call(t,r)},Of=function(t){return Af.call(t)==="[object String]"},If=function(t){return t!=null&&typeof t!="function"&&typeof t.length=="number"},Yo=function(t,r){r=r||ei;for(var i=[],n=0,o=t.length;n<o;n+=1)r(t,n)&&i.push(String(n));return i},Sf=function(t,r){r=r||ei;var i=[];for(var n in t)r(t,n)&&i.push(String(n));return i},$f=function(t){return t==null?[]:Of(t)?Yo(t,Cf):If(t)?Yo(t,ei):Sf(t)};Qo.exports=$f});var Kt=y((jg,ea)=>{"use strict";var Ef=ut(),Ko=Object.prototype.toString,Tf=function(t){var r=typeof t;return r==="number"||r==="object"&&Ko.call(t)==="[object Number]"},Pf=typeof Array.isArray=="function"?Array.isArray:function(t){return Ko.call(t)==="[object Array]"},zf=function(t){return t!=null&&(Pf(t)||t!=="function"&&Tf(t.length))},Nf=function(t,r){for(var i=0;i<r.length&&t(r[i],i,r)!==!1;i+=1);},Mf=function(t,r){for(var i=Ef(r),n=0;n<i.length&&t(r[i[n]],i[n],r)!==!1;n+=1);},Df=function(t,r){return(zf(r)?Nf:Mf).call(this,t,r)};ea.exports=Df});var At=y((Ag,ta)=>{"use strict";var Lf=Object.prototype.hasOwnProperty,Rf=function(t){for(var r=Array.prototype.slice.call(arguments,1),i=0;i<r.length;i+=1)for(var n in r[i])Lf.call(r[i],n)&&(t[n]=r[i][n]);return t};ta.exports=Rf});var ti=y((Cg,ia)=>{"use strict";var Uf=Ne(),ra=wt(),Ff=Object.prototype.hasOwnProperty;ia.exports=Uf(new er);function er(){this.store={}}er.prototype.set=function(e,t){return this.store[e]=ra(t),!0};er.prototype.get=function(e){if(Ff.call(this.store,e))return ra(this.store[e])};er.prototype.remove=function(e){return delete this.store[e],!0}});var aa=y((Og,oa)=>{"use strict";var na=Yr();oa.exports=function(){var e={},t=window,r=t.document,i="localStorage",n="script",o;e.disabled=!1,e.version="1.3.20",e.set=function(w,k){},e.get=function(w,k){},e.has=function(w){return e.get(w)!==void 0},e.remove=function(w){},e.clear=function(){},e.transact=function(w,k,A){A==null&&(A=k,k=null),k==null&&(k={});var N=e.get(w,k);A(N),e.set(w,N)},e.getAll=function(){var w={};return e.forEach(function(k,A){w[k]=A}),w},e.forEach=function(){},e.serialize=function(w){return na.stringify(w)},e.deserialize=function(w){if(typeof w=="string")try{return na.parse(w)}catch(k){return w||void 0}};function a(){try{return i in t&&t[i]}catch(w){return!1}}if(a())o=t[i],e.set=function(w,k){return k===void 0?e.remove(w):(o.setItem(w,e.serialize(k)),k)},e.get=function(w,k){var A=e.deserialize(o.getItem(w));return A===void 0?k:A},e.remove=function(w){o.removeItem(w)},e.clear=function(){o.clear()},e.forEach=function(w){for(var k=0;k<o.length;k++){var A=o.key(k);w(A,e.get(A))}};else if(r&&r.documentElement.addBehavior){var u,f;try{f=new ActiveXObject("htmlfile"),f.open(),f.write("<"+n+">document.w=window</"+n+'><iframe src="/favicon.ico"></iframe>'),f.close(),u=f.w.frames[0].document,o=u.createElement("div")}catch(w){o=r.createElement("div"),u=r.body}var v=function(w){return function(){var k=Array.prototype.slice.call(arguments,0);k.unshift(o),u.appendChild(o),o.addBehavior("#default#userData"),o.load(i);var A=w.apply(e,k);return u.removeChild(o),A}},m=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),q=function(w){return w.replace(/^d/,"___$&").replace(m,"___")};e.set=v(function(w,k,A){return k=q(k),A===void 0?e.remove(k):(w.setAttribute(k,e.serialize(A)),w.save(i),A)}),e.get=v(function(w,k,A){k=q(k);var N=e.deserialize(w.getAttribute(k));return N===void 0?A:N}),e.remove=v(function(w,k){k=q(k),w.removeAttribute(k),w.save(i)}),e.clear=v(function(w){var k=w.XMLDocument.documentElement.attributes;w.load(i);for(var A=k.length-1;A>=0;A--)w.removeAttribute(k[A].name);w.save(i)}),e.forEach=v(function(w,k){for(var A=w.XMLDocument.documentElement.attributes,N=0,R;R=A[N];++N)k(R.name,e.deserialize(w.getAttribute(R.name)))})}try{var $="__storejs__";e.set($,$),e.get($)!=$&&(e.disabled=!0),e.remove($)}catch(w){e.disabled=!0}return e.enabled=!e.disabled,e}()});var rr=y((Ig,ri)=>{"use strict";var Bf=Ne(),Vf=we(),tr=aa();function ct(e){this.options(e)}ct.prototype.options=function(e){if(arguments.length===0)return this._options;e=e||{},Vf(e,{enabled:!0}),this.enabled=e.enabled&&tr.enabled,this._options=e};ct.prototype.set=function(e,t){return this.enabled?tr.set(e,t):!1};ct.prototype.get=function(e){return this.enabled?tr.get(e):null};ct.prototype.remove=function(e){return this.enabled?tr.remove(e):!1};ri.exports=Bf(new ct);ri.exports.Store=ct});var ii=y((sa,ua)=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var Jf=wt(),ir=Xt(),Hf=re()("analytics:entity"),Zf=we(),Wf=At(),Gf=ti(),De=rr(),Xf=Pr();ua.exports=Z;function Z(e){this.options(e),this.initialize()}Z.prototype.initialize=function(){if(ir.set("ajs:cookies",!0),ir.get("ajs:cookies")){ir.remove("ajs:cookies"),this._storage=ir;return}if(De.enabled){this._storage=De;return}Hf("warning using memory store both cookies and localStorage are disabled"),this._storage=Gf};Z.prototype.storage=function(){return this._storage};Z.prototype.options=function(e){if(arguments.length===0)return this._options;this._options=Zf(e||{},this.defaults||{})};Z.prototype.id=function(e){switch(arguments.length){case 0:return this._getId();case 1:return this._setId(e);default:}};Z.prototype._getId=function(){if(!this._options.persist)return this._id===void 0?null:this._id;var e=this._getIdFromCookie();if(e)return e;var t=this._getIdFromLocalStorage();return t?(this._setIdInCookies(t),t):null};Z.prototype._getIdFromCookie=function(){return this.storage().get(this._options.cookie.key)};Z.prototype._getIdFromLocalStorage=function(){return this._options.localStorageFallbackDisabled?null:De.get(this._options.cookie.key)};Z.prototype._setId=function(e){this._options.persist?(this._setIdInCookies(e),this._setIdInLocalStorage(e)):this._id=e};Z.prototype._setIdInCookies=function(e){this.storage().set(this._options.cookie.key,e)};Z.prototype._setIdInLocalStorage=function(e){this._options.localStorageFallbackDisabled||De.set(this._options.cookie.key,e)};Z.prototype.properties=Z.prototype.traits=function(e){switch(arguments.length){case 0:return this._getTraits();case 1:return this._setTraits(e);default:}};Z.prototype._getTraits=function(){var e=this._options.persist?De.get(this._options.localStorage.key):this._traits;return e?Xf(Jf(e)):{}};Z.prototype._setTraits=function(e){e=e||{},this._options.persist?De.set(this._options.localStorage.key,e):this._traits=e};Z.prototype.identify=function(e,t){t=t||{};var r=this.id();(r===null||r===e)&&(t=Wf(this.traits(),t)),e&&this.id(e),this.debug("identify %o, %o",e,t),this.traits(t),this.save()};Z.prototype.save=function(){return this._options.persist?(this._setId(this.id()),this._setTraits(this.traits()),!0):!1};Z.prototype.logout=function(){this.id(null),this.traits({}),this.storage().remove(this._options.cookie.key),De.remove(this._options.cookie.key),De.remove(this._options.localStorage.key)};Z.prototype.reset=function(){this.logout(),this.options({})};Z.prototype.load=function(){this.id(this.id()),this.traits(this.traits())}});var fa=y((pa,ni)=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var ca=ii(),Yf=Ne(),Qf=re()("analytics:group"),Kf=Rt();Ct.defaults={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}};function Ct(e){this.defaults=Ct.defaults,this.debug=Qf,ca.call(this,e)}Kf(Ct,ca);ni.exports=Yf(new Ct);ni.exports.Group=Ct});var Le=y((Sg,ya)=>{"use strict";var da=Object.prototype,la=da.hasOwnProperty,se=da.toString,ha;typeof Symbol=="function"&&(ha=Symbol.prototype.valueOf);var va;typeof BigInt=="function"&&(va=BigInt.prototype.valueOf);var X=function(e){return e!==e},ed={boolean:1,number:1,string:1,undefined:1},td=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/,rd=/^[A-Fa-f0-9]+$/,g={};g.a=g.type=function(e,t){return typeof e===t};g.defined=function(e){return typeof e<"u"};g.empty=function(e){var t=se.call(e),r;if(t==="[object Array]"||t==="[object Arguments]"||t==="[object String]")return e.length===0;if(t==="[object Object]"){for(r in e)if(la.call(e,r))return!1;return!0}return!e};g.equal=function(t,r){if(t===r)return!0;var i=se.call(t),n;if(i!==se.call(r))return!1;if(i==="[object Object]"){for(n in t)if(!g.equal(t[n],r[n])||!(n in r))return!1;for(n in r)if(!g.equal(t[n],r[n])||!(n in t))return!1;return!0}if(i==="[object Array]"){if(n=t.length,n!==r.length)return!1;for(;n--;)if(!g.equal(t[n],r[n]))return!1;return!0}return i==="[object Function]"?t.prototype===r.prototype:i==="[object Date]"?t.getTime()===r.getTime():!1};g.hosted=function(e,t){var r=typeof t[e];return r==="object"?!!t[e]:!ed[r]};g.instance=g.instanceof=function(e,t){return e instanceof t};g.nil=g.null=function(e){return e===null};g.undef=g.undefined=function(e){return typeof e>"u"};g.args=g.arguments=function(e){var t=se.call(e)==="[object Arguments]",r=!g.array(e)&&g.arraylike(e)&&g.object(e)&&g.fn(e.callee);return t||r};g.array=Array.isArray||function(e){return se.call(e)==="[object Array]"};g.args.empty=function(e){return g.args(e)&&e.length===0};g.array.empty=function(e){return g.array(e)&&e.length===0};g.arraylike=function(e){return!!e&&!g.bool(e)&&la.call(e,"length")&&isFinite(e.length)&&g.number(e.length)&&e.length>=0};g.bool=g.boolean=function(e){return se.call(e)==="[object Boolean]"};g.false=function(e){return g.bool(e)&&!Number(e)};g.true=function(e){return g.bool(e)&&!!Number(e)};g.date=function(e){return se.call(e)==="[object Date]"};g.date.valid=function(e){return g.date(e)&&!isNaN(Number(e))};g.element=function(e){return e!==void 0&&typeof HTMLElement<"u"&&e instanceof HTMLElement&&e.nodeType===1};g.error=function(e){return se.call(e)==="[object Error]"};g.fn=g.function=function(e){var t=typeof window<"u"&&e===window.alert;if(t)return!0;var r=se.call(e);return r==="[object Function]"||r==="[object GeneratorFunction]"||r==="[object AsyncFunction]"};g.number=function(e){return se.call(e)==="[object Number]"};g.infinite=function(e){return e===1/0||e===-1/0};g.decimal=function(e){return g.number(e)&&!X(e)&&!g.infinite(e)&&e%1!==0};g.divisibleBy=function(e,t){var r=g.infinite(e),i=g.infinite(t),n=g.number(e)&&!X(e)&&g.number(t)&&!X(t)&&t!==0;return r||i||n&&e%t===0};g.integer=g.int=function(e){return g.number(e)&&!X(e)&&e%1===0};g.maximum=function(e,t){if(X(e))throw new TypeError("NaN is not a valid value");if(!g.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e<t[r])return!1;return!0};g.minimum=function(e,t){if(X(e))throw new TypeError("NaN is not a valid value");if(!g.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e>t[r])return!1;return!0};g.nan=function(e){return!g.number(e)||e!==e};g.even=function(e){return g.infinite(e)||g.number(e)&&e===e&&e%2===0};g.odd=function(e){return g.infinite(e)||g.number(e)&&e===e&&e%2!==0};g.ge=function(e,t){if(X(e)||X(t))throw new TypeError("NaN is not a valid value");return!g.infinite(e)&&!g.infinite(t)&&e>=t};g.gt=function(e,t){if(X(e)||X(t))throw new TypeError("NaN is not a valid value");return!g.infinite(e)&&!g.infinite(t)&&e>t};g.le=function(e,t){if(X(e)||X(t))throw new TypeError("NaN is not a valid value");return!g.infinite(e)&&!g.infinite(t)&&e<=t};g.lt=function(e,t){if(X(e)||X(t))throw new TypeError("NaN is not a valid value");return!g.infinite(e)&&!g.infinite(t)&&e<t};g.within=function(e,t,r){if(X(e)||X(t)||X(r))throw new TypeError("NaN is not a valid value");if(!g.number(e)||!g.number(t)||!g.number(r))throw new TypeError("all arguments must be numbers");var i=g.infinite(e)||g.infinite(t)||g.infinite(r);return i||e>=t&&e<=r};g.object=function(e){return se.call(e)==="[object Object]"};g.primitive=function(t){return t?!(typeof t=="object"||g.object(t)||g.fn(t)||g.array(t)):!0};g.hash=function(e){return g.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval};g.regexp=function(e){return se.call(e)==="[object RegExp]"};g.string=function(e){return se.call(e)==="[object String]"};g.base64=function(e){return g.string(e)&&(!e.length||td.test(e))};g.hex=function(e){return g.string(e)&&(!e.length||rd.test(e))};g.symbol=function(e){return typeof Symbol=="function"&&se.call(e)==="[object Symbol]"&&typeof ha.call(e)=="symbol"};g.bigint=function(e){return typeof BigInt=="function"&&se.call(e)==="[object BigInt]"&&typeof va.call(e)=="bigint"};ya.exports=g});var ma=y(($g,ga)=>{"use strict";function id(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return!0;var t=e.which,r=e.button;return!t&&r!==void 0?!r&1&&!r&2&&r&4:t===2}ga.exports=id});var Re=y((Eg,_a)=>{"use strict";var nr,oi;nr=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e};oi=function(e){var t=document.createTextNode(""),r,i=0;return new e(function(){var n;if(r){if(n=r,r=null,typeof n=="function"){n();return}n.forEach(function(o){o()})}}).observe(t,{characterData:!0}),function(n){if(nr(n),r){typeof r=="function"?r=[r,n]:r.push(n);return}r=n,t.data=i=++i%2}};_a.exports=function(){if(typeof process<"u"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return oi(MutationObserver);if(typeof WebKitMutationObserver=="function")return oi(WebKitMutationObserver)}return typeof setImmediate=="function"?function(e){setImmediate(nr(e))}:typeof setTimeout=="function"?function(e){setTimeout(nr(e),0)}:null}()});var ie=y((Tg,ba)=>{"use strict";var nd=ut(),wa=Object.prototype.toString,od=function(t){var r=typeof t;return r==="number"||r==="object"&&wa.call(t)==="[object Number]"},ad=typeof Array.isArray=="function"?Array.isArray:function(t){return wa.call(t)==="[object Array]"},sd=function(t){return t!=null&&(ad(t)||t!=="function"&&od(t.length))},ud=function(t,r){for(var i=0;i<r.length&&t(r[i],i,r)!==!1;i+=1);},cd=function(t,r){for(var i=nd(r),n=0;n<i.length&&t(r[i[n]],i[n],r)!==!1;n+=1);},pd=function(t,r){return(sd(r)?ud:cd).call(this,t,r)};ba.exports=pd});var Ue=y((Pg,xa)=>{"use strict";var fd=ie(),dd=String.prototype.indexOf,ld=function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r},hd=function(t,r){var i=!1;return typeof r=="string"?dd.call(r,t)!==-1:(fd(function(n){if(ld(n,t))return i=!0,!1},r),i)};xa.exports=hd});var ka=y((zg,qa)=>{"use strict";var vd=Kt(),yd=function(t,r){if(typeof t!="function")throw new TypeError("Expected a function but received a "+typeof t);var i=[];return vd(function(n,o,a){i.push(t(n,o,a))},r),i};qa.exports=yd});var ci=y((Ng,ui)=>{var ja=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);ja?(ai=new Uint8Array(16),ui.exports=function(){return ja(ai),ai}):(si=new Array(16),ui.exports=function(){for(var t=0,r;t<16;t++)t&3||(r=Math.random()*4294967296),si[t]=r>>>((t&3)<<3)&255;return si});var ai,si});var pi=y((Mg,Ca)=>{var Aa=[];for(Ot=0;Ot<256;++Ot)Aa[Ot]=(Ot+256).toString(16).substr(1);var Ot;function gd(e,t){var r=t||0,i=Aa;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}Ca.exports=gd});var fi=y((Dg,Oa)=>{var md=ci(),_d=pi();function wd(e,t,r){var i=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var n=e.random||(e.rng||md)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t)for(var o=0;o<16;++o)t[i+o]=n[o];return t||_d(n)}Oa.exports=wd});var $a=y((Ia,Sa)=>{(function(e){if(typeof Ia=="object")Sa.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t;try{t=window}catch(r){t=self}t.SparkMD5=e()}})(function(e){"use strict";var t=function(l,p){return l+p&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(l,p,c,s,h,d){return p=t(t(p,l),t(s,d)),t(p<<h|p>>>32-h,c)}function n(l,p,c,s,h,d,U){return i(p&c|~p&s,l,p,h,d,U)}function o(l,p,c,s,h,d,U){return i(p&s|c&~s,l,p,h,d,U)}function a(l,p,c,s,h,d,U){return i(p^c^s,l,p,h,d,U)}function u(l,p,c,s,h,d,U){return i(c^(p|~s),l,p,h,d,U)}function f(l,p){var c=l[0],s=l[1],h=l[2],d=l[3];c=n(c,s,h,d,p[0],7,-680876936),d=n(d,c,s,h,p[1],12,-389564586),h=n(h,d,c,s,p[2],17,606105819),s=n(s,h,d,c,p[3],22,-1044525330),c=n(c,s,h,d,p[4],7,-176418897),d=n(d,c,s,h,p[5],12,1200080426),h=n(h,d,c,s,p[6],17,-1473231341),s=n(s,h,d,c,p[7],22,-45705983),c=n(c,s,h,d,p[8],7,1770035416),d=n(d,c,s,h,p[9],12,-1958414417),h=n(h,d,c,s,p[10],17,-42063),s=n(s,h,d,c,p[11],22,-1990404162),c=n(c,s,h,d,p[12],7,1804603682),d=n(d,c,s,h,p[13],12,-40341101),h=n(h,d,c,s,p[14],17,-1502002290),s=n(s,h,d,c,p[15],22,1236535329),c=o(c,s,h,d,p[1],5,-165796510),d=o(d,c,s,h,p[6],9,-1069501632),h=o(h,d,c,s,p[11],14,643717713),s=o(s,h,d,c,p[0],20,-373897302),c=o(c,s,h,d,p[5],5,-701558691),d=o(d,c,s,h,p[10],9,38016083),h=o(h,d,c,s,p[15],14,-660478335),s=o(s,h,d,c,p[4],20,-405537848),c=o(c,s,h,d,p[9],5,568446438),d=o(d,c,s,h,p[14],9,-1019803690),h=o(h,d,c,s,p[3],14,-187363961),s=o(s,h,d,c,p[8],20,1163531501),c=o(c,s,h,d,p[13],5,-1444681467),d=o(d,c,s,h,p[2],9,-51403784),h=o(h,d,c,s,p[7],14,1735328473),s=o(s,h,d,c,p[12],20,-1926607734),c=a(c,s,h,d,p[5],4,-378558),d=a(d,c,s,h,p[8],11,-2022574463),h=a(h,d,c,s,p[11],16,1839030562),s=a(s,h,d,c,p[14],23,-35309556),c=a(c,s,h,d,p[1],4,-1530992060),d=a(d,c,s,h,p[4],11,1272893353),h=a(h,d,c,s,p[7],16,-155497632),s=a(s,h,d,c,p[10],23,-1094730640),c=a(c,s,h,d,p[13],4,681279174),d=a(d,c,s,h,p[0],11,-358537222),h=a(h,d,c,s,p[3],16,-722521979),s=a(s,h,d,c,p[6],23,76029189),c=a(c,s,h,d,p[9],4,-640364487),d=a(d,c,s,h,p[12],11,-421815835),h=a(h,d,c,s,p[15],16,530742520),s=a(s,h,d,c,p[2],23,-995338651),c=u(c,s,h,d,p[0],6,-198630844),d=u(d,c,s,h,p[7],10,1126891415),h=u(h,d,c,s,p[14],15,-1416354905),s=u(s,h,d,c,p[5],21,-57434055),c=u(c,s,h,d,p[12],6,1700485571),d=u(d,c,s,h,p[3],10,-1894986606),h=u(h,d,c,s,p[10],15,-1051523),s=u(s,h,d,c,p[1],21,-2054922799),c=u(c,s,h,d,p[8],6,1873313359),d=u(d,c,s,h,p[15],10,-30611744),h=u(h,d,c,s,p[6],15,-1560198380),s=u(s,h,d,c,p[13],21,1309151649),c=u(c,s,h,d,p[4],6,-145523070),d=u(d,c,s,h,p[11],10,-1120210379),h=u(h,d,c,s,p[2],15,718787259),s=u(s,h,d,c,p[9],21,-343485551),l[0]=t(c,l[0]),l[1]=t(s,l[1]),l[2]=t(h,l[2]),l[3]=t(d,l[3])}function v(l){var p=[],c;for(c=0;c<64;c+=4)p[c>>2]=l.charCodeAt(c)+(l.charCodeAt(c+1)<<8)+(l.charCodeAt(c+2)<<16)+(l.charCodeAt(c+3)<<24);return p}function m(l){var p=[],c;for(c=0;c<64;c+=4)p[c>>2]=l[c]+(l[c+1]<<8)+(l[c+2]<<16)+(l[c+3]<<24);return p}function q(l){var p=l.length,c=[1732584193,-271733879,-1732584194,271733878],s,h,d,U,de,le;for(s=64;s<=p;s+=64)f(c,v(l.substring(s-64,s)));for(l=l.substring(s-64),h=l.length,d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=0;s<h;s+=1)d[s>>2]|=l.charCodeAt(s)<<(s%4<<3);if(d[s>>2]|=128<<(s%4<<3),s>55)for(f(c,d),s=0;s<16;s+=1)d[s]=0;return U=p*8,U=U.toString(16).match(/(.*?)(.{0,8})$/),de=parseInt(U[2],16),le=parseInt(U[1],16)||0,d[14]=de,d[15]=le,f(c,d),c}function $(l){var p=l.length,c=[1732584193,-271733879,-1732584194,271733878],s,h,d,U,de,le;for(s=64;s<=p;s+=64)f(c,m(l.subarray(s-64,s)));for(l=s-64<p?l.subarray(s-64):new Uint8Array(0),h=l.length,d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=0;s<h;s+=1)d[s>>2]|=l[s]<<(s%4<<3);if(d[s>>2]|=128<<(s%4<<3),s>55)for(f(c,d),s=0;s<16;s+=1)d[s]=0;return U=p*8,U=U.toString(16).match(/(.*?)(.{0,8})$/),de=parseInt(U[2],16),le=parseInt(U[1],16)||0,d[14]=de,d[15]=le,f(c,d),c}function w(l){var p="",c;for(c=0;c<4;c+=1)p+=r[l>>c*8+4&15]+r[l>>c*8&15];return p}function k(l){var p;for(p=0;p<l.length;p+=1)l[p]=w(l[p]);return l.join("")}k(q("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(t=function(l,p){var c=(l&65535)+(p&65535),s=(l>>16)+(p>>16)+(c>>16);return s<<16|c&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function l(p,c){return p=p|0||0,p<0?Math.max(p+c,0):Math.min(p,c)}ArrayBuffer.prototype.slice=function(p,c){var s=this.byteLength,h=l(p,s),d=s,U,de,le,yt;return c!==e&&(d=l(c,s)),h>d?new ArrayBuffer(0):(U=d-h,de=new ArrayBuffer(U),le=new Uint8Array(de),yt=new Uint8Array(this,h,U),le.set(yt),de)}}();function A(l){return/[\u0080-\uFFFF]/.test(l)&&(l=unescape(encodeURIComponent(l))),l}function N(l,p){var c=l.length,s=new ArrayBuffer(c),h=new Uint8Array(s),d;for(d=0;d<c;d+=1)h[d]=l.charCodeAt(d);return p?h:s}function R(l){return String.fromCharCode.apply(null,new Uint8Array(l))}function ue(l,p,c){var s=new Uint8Array(l.byteLength+p.byteLength);return s.set(new Uint8Array(l)),s.set(new Uint8Array(p),l.byteLength),c?s:s.buffer}function ne(l){var p=[],c=l.length,s;for(s=0;s<c-1;s+=2)p.push(parseInt(l.substr(s,2),16));return String.fromCharCode.apply(String,p)}function M(){this.reset()}return M.prototype.append=function(l){return this.appendBinary(A(l)),this},M.prototype.appendBinary=function(l){this._buff+=l,this._length+=l.length;var p=this._buff.length,c;for(c=64;c<=p;c+=64)f(this._hash,v(this._buff.substring(c-64,c)));return this._buff=this._buff.substring(c-64),this},M.prototype.end=function(l){var p=this._buff,c=p.length,s,h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d;for(s=0;s<c;s+=1)h[s>>2]|=p.charCodeAt(s)<<(s%4<<3);return this._finish(h,c),d=k(this._hash),l&&(d=ne(d)),this.reset(),d},M.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},M.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},M.prototype.setState=function(l){return this._buff=l.buff,this._length=l.length,this._hash=l.hash,this},M.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},M.prototype._finish=function(l,p){var c=p,s,h,d;if(l[c>>2]|=128<<(c%4<<3),c>55)for(f(this._hash,l),c=0;c<16;c+=1)l[c]=0;s=this._length*8,s=s.toString(16).match(/(.*?)(.{0,8})$/),h=parseInt(s[2],16),d=parseInt(s[1],16)||0,l[14]=h,l[15]=d,f(this._hash,l)},M.hash=function(l,p){return M.hashBinary(A(l),p)},M.hashBinary=function(l,p){var c=q(l),s=k(c);return p?ne(s):s},M.ArrayBuffer=function(){this.reset()},M.ArrayBuffer.prototype.append=function(l){var p=ue(this._buff.buffer,l,!0),c=p.length,s;for(this._length+=l.byteLength,s=64;s<=c;s+=64)f(this._hash,m(p.subarray(s-64,s)));return this._buff=s-64<c?new Uint8Array(p.buffer.slice(s-64)):new Uint8Array(0),this},M.ArrayBuffer.prototype.end=function(l){var p=this._buff,c=p.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h,d;for(h=0;h<c;h+=1)s[h>>2]|=p[h]<<(h%4<<3);return this._finish(s,c),d=k(this._hash),l&&(d=ne(d)),this.reset(),d},M.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},M.ArrayBuffer.prototype.getState=function(){var l=M.prototype.getState.call(this);return l.buff=R(l.buff),l},M.ArrayBuffer.prototype.setState=function(l){return l.buff=N(l.buff,!0),M.prototype.setState.call(this,l)},M.ArrayBuffer.prototype.destroy=M.prototype.destroy,M.ArrayBuffer.prototype._finish=M.prototype._finish,M.ArrayBuffer.hash=function(l,p){var c=$(new Uint8Array(l)),s=k(c);return p?ne(s):s},M})});var Na=y((Pa,za)=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Ea=re()("analytics.js:normalize"),bd=we(),di=Kt(),li=Ue(),xd=ka(),qd=ge(),kd=fi(),jd=$a().hash,Ta=Object.prototype.hasOwnProperty;za.exports=Cd;var Ad=["integrations","anonymousId","timestamp","context"];function Cd(e,t){var r=xd(function(v){return v.toLowerCase()},t),i=e.options||{},n=i.integrations||{},o=i.providers||{},a=i.context||{},u={};return Ea("<-",e),di(function(v,m){f(m)&&(Ta.call(n,m)||(n[m]=v),delete i[m])},i),delete i.providers,di(function(v,m){f(m)&&qd(n[m])!=="object"&&(Ta.call(n,m)&&typeof o[m]=="boolean"||(n[m]=v))},o),di(function(v,m){li(m,Ad)?u[m]=i[m]:a[m]=i[m]},i),e.messageId="ajs-"+jd(window.JSON.stringify(e)+kd()),delete e.options,u.integrations=n,u.context=a,u=bd(u,e),Ea("->",u),u;function f(v){return!!(li(v,t)||v.toLowerCase()==="all"||li(v.toLowerCase(),r))}}});var La=y(hi=>{var Ma=window.addEventListener?"addEventListener":"attachEvent",Od=window.removeEventListener?"removeEventListener":"detachEvent",Da=Ma!=="addEventListener"?"on":"";hi.bind=function(e,t,r,i){return e[Ma](Da+t,r,i||!1),r};hi.unbind=function(e,t,r,i){return e[Od](Da+t,r,i||!1),r}});var Ua=y((Rg,Ra)=>{"use strict";function Id(){for(var e=document.getElementsByTagName("link"),t=0,r;r=e[t];t++)if(r.getAttribute("rel")==="canonical")return r.getAttribute("href")}Ra.exports=Id});var Ja=y((Ba,Va)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var Fa=Ua(),Sd=Ue(),$d=Wt();function Ed(){return{path:Td(),referrer:document.referrer,search:location.search,title:document.title,url:Pd(location.search)}}function Td(){var e=Fa();if(!e)return window.location.pathname;var t=$d.parse(e);return t.pathname}function Pd(e){var t=Fa();if(t)return Sd("?",t)?t:t+e;var r=window.location.href,i=r.indexOf("#");return i===-1?r:r.slice(0,i)}Va.exports=Ed});var vi=y((Ug,Wa)=>{"use strict";var Za=Object.prototype.toString,zd=function(e){return e!=null},Nd=function(e){return Za.call(e)==="[object Array]"},Ha=function(e){return typeof e=="string"||Za.call(e)==="[object String]"},Md=function(e){return e!=null&&typeof e=="object"},Dd=function(t,r){if(!zd(r)||!Md(r))return{};Ha(t)&&(t=[t]),Nd(t)||(t=[]);for(var i={},n=0;n<t.length;n+=1)Ha(t[n])&&t[n]in r&&(i[t[n]]=r[t[n]]);return i};Wa.exports=Dd});var Xa=y((Fg,Ga)=>{"use strict";function Ld(e){return e=e||window.event,e.preventDefault?e.preventDefault():e.returnValue=!1}Ga.exports=Ld});var Ka=y((Bg,Qa)=>{var Rd=ci(),Ud=pi(),Ya,yi,gi=0,mi=0;function Fd(e,t,r){var i=t&&r||0,n=t||[];e=e||{};var o=e.node||Ya,a=e.clockseq!==void 0?e.clockseq:yi;if(o==null||a==null){var u=Rd();o==null&&(o=Ya=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),a==null&&(a=yi=(u[6]<<8|u[7])&16383)}var f=e.msecs!==void 0?e.msecs:new Date().getTime(),v=e.nsecs!==void 0?e.nsecs:mi+1,m=f-gi+(v-mi)/1e4;if(m<0&&e.clockseq===void 0&&(a=a+1&16383),(m<0||f>gi)&&e.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");gi=f,mi=v,yi=a,f+=122192928e5;var q=((f&268435455)*1e4+v)%4294967296;n[i++]=q>>>24&255,n[i++]=q>>>16&255,n[i++]=q>>>8&255,n[i++]=q&255;var $=f/4294967296*1e4&268435455;n[i++]=$>>>8&255,n[i++]=$&255,n[i++]=$>>>24&15|16,n[i++]=$>>>16&255,n[i++]=a>>>8|128,n[i++]=a&255;for(var w=0;w<6;++w)n[i+w]=o[w];return t||Ud(n)}Qa.exports=Fd});var rs=y((Vg,ts)=>{var Bd=Ka(),es=fi(),_i=es;_i.v1=Bd;_i.v4=es;ts.exports=_i});var as=y((os,wi)=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var It=ii(),Vd=Ne(),is=Xt(),Jd=re()("analytics:user"),Hd=Rt(),Zd=Jr(),Wd=rs(),ns=rr();ve.defaults={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}};function ve(e){this.defaults=ve.defaults,this.debug=Jd,It.call(this,e)}Hd(ve,It);ve.prototype.id=function(e){var t=this._getId(),r=It.prototype.id.apply(this,arguments);return t==null||t!=e&&e&&this.anonymousId(null),r};ve.prototype.anonymousId=function(e){var t=this.storage();return arguments.length?(t.set("ajs_anonymous_id",e),this._setAnonymousIdInLocalStorage(e),this):(e=t.get("ajs_anonymous_id"),e?(this._setAnonymousIdInLocalStorage(e),t.set("ajs_anonymous_id",e),e):!this._options.localStorageFallbackDisabled&&(e=ns.get("ajs_anonymous_id"),e)?(t.set("ajs_anonymous_id",e),e):(e=Zd("_sio"),e?(e=e.split("----")[0],t.set("ajs_anonymous_id",e),this._setAnonymousIdInLocalStorage(e),t.remove("_sio"),e):(e=Wd.v4(),t.set("ajs_anonymous_id",e),this._setAnonymousIdInLocalStorage(e),t.get("ajs_anonymous_id"))))};ve.prototype._setAnonymousIdInLocalStorage=function(e){this._options.localStorageFallbackDisabled||ns.set("ajs_anonymous_id",e)};ve.prototype.logout=function(){It.prototype.logout.call(this),this.anonymousId(null)};ve.prototype.load=function(){this._loadOldCookie()||It.prototype.load.call(this)};ve.prototype._loadOldCookie=function(){var e=is.get(this._options.cookie.oldKey);return e?(this.id(e.id),this.traits(e.traits),is.remove(this._options.cookie.oldKey),!0):!1};wi.exports=Vd(new ve);wi.exports.User=ve});var hs=y((ls,ft)=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var Gd=window.analytics,Xd=ke().Alias,Yd=_e(),Fe=ke(),Qd=ke().Group,Kd=ke().Identify,el=Jt().SourceMiddlewareChain,tl=Jt().IntegrationMiddlewareChain,rl=Jt().DestinationMiddlewareChain,il=ke().Page,nl=ke().Track,ol=Ne(),al=wt(),or=Fr(),ss=Xt(),Ae=Xo(),bi=re(),Ge=we(),pt=Kt(),We=fa(),J=Le(),sl=ma(),xi=ut(),ul=ti(),us=Re(),cl=Na(),cs=La().bind,ps=Ja(),pl=vi(),fs=Xa(),fl=Wt(),ds=rr(),ye=as(),Be=ge();function z(){this._options({}),this.Integrations={},this._sourceMiddlewares=new el,this._integrationMiddlewares=new tl,this._destinationMiddlewares={},this._integrations={},this._readied=!1,this._timeout=300,this._user=ye,this.log=bi("analytics.js"),ol(this);var e=this;this.on("initialize",function(t,r){r.initialPageview&&e.page(),e._parseQuery(window.location.search)})}Yd(z.prototype);z.prototype.use=function(e){return e(this),this};z.prototype.addIntegration=function(e){var t=e.prototype.name;if(!t)throw new TypeError("attempted to add an invalid integration");return this.Integrations[t]=e,this};z.prototype.addSourceMiddleware=function(e){return this._sourceMiddlewares.add(e),this};z.prototype.addIntegrationMiddleware=function(e){return this._integrationMiddlewares.add(e),this};z.prototype.addDestinationMiddleware=function(e,t){var r=this;return t.forEach(function(i){r._destinationMiddlewares[e]||(r._destinationMiddlewares[e]=new rl),r._destinationMiddlewares[e].add(i)}),r};z.prototype.init=z.prototype.initialize=function(e,t){e=e||{},t=t||{},this._options(t),this._readied=!1;var r=this;pt(function(f,v){var m=r.Integrations[v];m||delete e[v]},e),pt(function(f,v){if(!(t.integrations&&(t.integrations[v]===!1||t.integrations.All===!1&&!t.integrations[v]))){var m=r.Integrations[v],q={};or(!0,q,f);var $=new m(q);r.log("initialize %o - %o",v,f),r.add($)}},e);var i=this._integrations;ye.load(),We.load();var n=0,o=xi(i).length,a=function(){n++,n>=o&&(r._readied=!0,r.emit("ready"))};o<=0&&a(),this.failedInitializations=[];var u=!1;return pt(function(f){if(t.initialPageview&&f.options.initialPageview===!1){var v=f.page;f.page=function(){if(u)return v.apply(this,arguments);u=!0}}f.analytics=r,f.once("ready",a);try{Ae.increment("analytics_js.integration.invoke",{method:"initialize",integration_name:f.name}),f.initialize()}catch(q){var m=f.name;Ae.increment("analytics_js.integration.invoke.error",{method:"initialize",integration_name:f.name}),r.failedInitializations.push(m),r.log("Error initializing %s integration: %o",m,q),f.ready()}},i),this.initialized=!0,this.emit("initialize",e,t),this};z.prototype.setAnonymousId=function(e){return this.user().anonymousId(e),this};z.prototype.add=function(e){return this._integrations[e.name]=e,this};z.prototype.identify=function(e,t,r,i){J.fn(r)&&(i=r,r=null),J.fn(t)&&(i=t,r=null,t=null),J.object(e)&&(r=t,t=e,e=ye.id()),ye.identify(e,t);var n=this.normalize({options:r,traits:ye.traits(),userId:ye.id()});return this.options.integrations&&Ge(n.integrations,this.options.integrations),this._invoke("identify",new Kd(n)),this.emit("identify",e,t,r),this._callback(i),this};z.prototype.user=function(){return ye};z.prototype.group=function(e,t,r,i){if(!arguments.length)return We;J.fn(r)&&(i=r,r=null),J.fn(t)&&(i=t,r=null,t=null),J.object(e)&&(r=t,t=e,e=We.id()),We.identify(e,t);var n=this.normalize({options:r,traits:We.traits(),groupId:We.id()});return this.options.integrations&&Ge(n.integrations,this.options.integrations),this._invoke("group",new Qd(n)),this.emit("group",e,t,r),this._callback(i),this};z.prototype.track=function(e,t,r,i){J.fn(r)&&(i=r,r=null),J.fn(t)&&(i=t,r=null,t=null);var n=this.options.plan||{},o=n.track||{},a={},u=this.normalize({properties:t,options:r,event:e});if(n=o[e],n)this.log("plan %o - %o",e,n),n.enabled===!1?a={All:!1,"Segment.io":!0}:a=n.integrations||{};else{var f=o.__default||{enabled:!0};f.enabled||(a={All:!1,"Segment.io":!0})}return Ge(u.integrations,this._mergeInitializeAndPlanIntegrations(a)),this._invoke("track",new nl(u)),this.emit("track",e,t,r),this._callback(i),this};z.prototype.trackClick=z.prototype.trackLink=function(e,t,r){if(!e)return this;Be(e)==="element"&&(e=[e]);var i=this;return pt(function(n){if(Be(n)!=="element")throw new TypeError("Must pass HTMLElement to `analytics.trackLink`.");cs(n,"click",function(o){var a=J.fn(t)?t(n):t,u=J.fn(r)?r(n):r,f=n.getAttribute("href")||n.getAttributeNS("http://www.w3.org/1999/xlink","href")||n.getAttribute("xlink:href");i.track(a,u),f&&n.target!=="_blank"&&!sl(o)&&(fs(o),i._callback(function(){window.location.href=f}))})},e),this};z.prototype.trackSubmit=z.prototype.trackForm=function(e,t,r){if(!e)return this;Be(e)==="element"&&(e=[e]);var i=this;return pt(function(n){if(Be(n)!=="element")throw new TypeError("Must pass HTMLElement to `analytics.trackForm`.");function o(u){fs(u);var f=J.fn(t)?t(n):t,v=J.fn(r)?r(n):r;i.track(f,v),i._callback(function(){n.submit()})}var a=window.jQuery||window.Zepto;a?a(n).submit(o):cs(n,"submit",o)},e),this};z.prototype.page=function(e,t,r,i,n){J.fn(i)&&(n=i,i=null),J.fn(r)&&(n=r,i=r=null),J.fn(t)&&(n=t,i=r=t=null),Be(e)==="object"&&(i=t,r=e,t=e=null),Be(t)==="object"&&(i=r,r=t,t=null),Be(e)==="string"&&Be(t)!=="string"&&(t=e,e=null),r=al(r)||{},t&&(r.name=t),e&&(r.category=e);var o=ps();Ge(r,o);var a=pl(xi(o),r);J.empty(a)||(i=i||{},i.context=i.context||{},i.context.page=a);var u=this.normalize({properties:r,category:e,options:i,name:t});return this.options.integrations&&Ge(u.integrations,this.options.integrations),this._invoke("page",new il(u)),this.emit("page",e,t,r,i),this._callback(n),this};z.prototype.pageview=function(e){var t={};return e&&(t.path=e),this.page(t),this};z.prototype.alias=function(e,t,r,i){J.fn(r)&&(i=r,r=null),J.fn(t)&&(i=t,r=null,t=null),J.object(t)&&(r=t,t=null);var n=this.normalize({options:r,previousId:t,userId:e});return this.options.integrations&&Ge(n.integrations,this.options.integrations),this._invoke("alias",new Xd(n)),this.emit("alias",e,t,r),this._callback(i),this};z.prototype.ready=function(e){return J.fn(e)&&(this._readied?us(e):this.once("ready",e)),this};z.prototype.timeout=function(e){this._timeout=e};z.prototype.debug=function(e){!arguments.length||e?bi.enable("analytics:"+(e||"*")):bi.disable()};z.prototype._options=function(e){return e=e||{},this.options=e,ss.options(e.cookie),Ae.options(e.metrics),ds.options(e.localStorage),ye.options(e.user),We.options(e.group),this};z.prototype._callback=function(e){return J.fn(e)&&(this._timeout?setTimeout(e,this._timeout):us(e)),this};z.prototype._invoke=function(e,t){var r=this;try{this._sourceMiddlewares.applyMiddlewares(or(!0,new Fe({}),t),this._integrations,function(n){if(n===null){r.log('Payload with method "%s" was null and dropped by source a middleware.',e);return}n instanceof Fe||(n=new Fe(n)),r.emit("invoke",n),Ae.increment("analytics_js.invoke",{method:e}),i(n)})}catch(n){Ae.increment("analytics_js.invoke.error",{method:e}),r.log("Error invoking .%s method of %s integration: %o",e,name,n)}return this;function i(n){var o=r.failedInitializations||[];pt(function(a,u){var f=or(!0,new Fe({}),n);if(f.enabled(u))if(o.indexOf(u)>=0)r.log("Skipping invocation of .%s method of %s integration. Integration failed to initialize properly.",e,u);else try{r._integrationMiddlewares.applyMiddlewares(f,a.name,function(v){if(v===null){r.log('Payload to integration "%s" was null and dropped by a middleware.',u);return}v instanceof Fe||(v=new Fe(v)),r._destinationMiddlewares[a.name]?r._destinationMiddlewares[a.name].applyMiddlewares(f,a.name,function(m){if(m===null){r.log('Payload to destination "%s" was null and dropped by a middleware.',u);return}m instanceof Fe||(m=new Fe(m)),Ae.increment("analytics_js.integration.invoke",{method:e,integration_name:a.name}),a.invoke.call(a,e,m)}):(Ae.increment("analytics_js.integration.invoke",{method:e,integration_name:a.name}),a.invoke.call(a,e,v))})}catch(v){Ae.increment("analytics_js.integration.invoke.error",{method:e,integration_name:a.name}),r.log("Error invoking .%s method of %s integration: %o",e,u,v)}},r._integrations)}};z.prototype.push=function(e){var t=e.shift();this[t]&&this[t].apply(this,e)};z.prototype.reset=function(){this.user().logout(),this.group().logout()};z.prototype._parseQuery=function(e){var t=fl.parse(e),r=t.query.split("&").reduce(function(a,u){var f=u.split("="),v=f[0],m=f[1];return a[v]=decodeURI(m).replace("+"," "),a},{}),i=o("ajs_trait_",r),n=o("ajs_prop_",r);return r.ajs_uid&&this.identify(r.ajs_uid,i),r.ajs_event&&this.track(r.ajs_event,n),r.ajs_aid&&ye.anonymousId(r.ajs_aid),this;function o(a,u){var f=a.length,v;return Object.keys(u).reduce(function(m,q){return q.substr(0,f)===a&&(v=q.substr(f),m[v]=u[q]),m},{})}};z.prototype.normalize=function(e){return e=cl(e,xi(this._integrations)),e.anonymousId&&ye.anonymousId(e.anonymousId),e.anonymousId=ye.anonymousId(),e.context.page=Ge(e.context.page||{},ps()),e};z.prototype._mergeInitializeAndPlanIntegrations=function(e){if(!this.options.integrations)return e;var t=or({},this.options.integrations),r;e.All===!1&&(t={All:!1});for(r in e)e.hasOwnProperty(r)&&this.options.integrations[r]!==!1&&(t[r]=e[r]);return t};z.prototype.noConflict=function(){return window.analytics=Gd,this};ft.exports=z;ft.exports.cookie=ss;ft.exports.memory=ul;ft.exports.store=ds;ft.exports.metrics=Ae});var vs=y((Jg,dl)=>{dl.exports={name:"@segment/analytics.js-core",author:"Segment <[email protected]>",version:"4.1.11",description:"The hassle-free way to integrate analytics into any web application.",types:"lib/index.d.ts",keywords:["analytics","analytics.js","segment","segment.io"],main:"build/index.js",scripts:{test:"make test",lint:'eslint "./{lib,test}/**/*.js"',format:'prettier-eslint --write --list-different "./{lib,test,test-e2e}/**/*.{ts,js,json,md}"',precommit:"lint-staged",np:"np --no-publish",cz:"git-cz","check-js":`if [[ $(git status -s | egrep '^(A|R)' | egrep 'jsx?"?$' | wc -l | awk '{print $1}') > 0 ]] ; then exit 125; else echo \u{1F389} ; fi; echo`},repository:{type:"git",url:"https://github.com/segmentio/analytics.js-core"},license:"SEE LICENSE IN LICENSE",bugs:{url:"https://github.com/segmentio/analytics.js-core/issues"},homepage:"https://github.com/segmentio/analytics.js-core#readme",dependencies:{"@ndhoule/defaults":"^2.0.1","@ndhoule/extend":"^2.0.0","@ndhoule/includes":"^2.0.1","@ndhoule/keys":"^2.0.0","@ndhoule/pick":"^2.0.0","@segment/canonical":"^1.0.0","@segment/cookie":"^1.1.5","@segment/is-meta":"^1.0.0","@segment/isodate":"^1.0.2","@segment/isodate-traverse":"^1.0.1","@segment/prevent-default":"^1.0.0","@segment/send-json":"^3.0.0","@segment/store":"^1.3.20","@segment/top-domain":"^3.0.1","bind-all":"^1.0.0","component-emitter":"^1.2.1","component-event":"^0.1.4","component-type":"^1.2.1","component-url":"^0.2.1",debug:"^2.6.9",extend:"3.0.2",inherits:"^2.0.1",install:"^0.7.3",is:"^3.1.0","new-date":"^1.0.0","next-tick":"^0.2.2","package-json-versionify":"^1.0.4","segmentio-facade":"^3.2.7","spark-md5":"^2.0.2",uuid:"^3.4.0"},devDependencies:{"@codeceptjs/mock-request":"^0.3.0","@segment/analytics.js-integration":"^3.2.2","@segment/eslint-config":"^4.0.0","@types/express":"^4.17.6","@types/lodash":"^4.14.161","@types/mocha":"^7.0.2","@types/node":"^14.0.6","@types/node-fetch":"^2.5.7",assert:"1.5.0",browserify:"16.5.2","browserify-istanbul":"^3.0.1",buffer:"^4.9.2",codeceptjs:"^2.6.5",codecov:"^3.7.2","compat-trigger-event":"^1.0.0","component-each":"^0.2.6","cz-conventional-changelog":"^2.1.0",eslint:"^7.8.1","eslint-config-prettier":"^2.9.0","eslint-plugin-mocha":"^5.0.0","eslint-plugin-react":"^7.9.1","eslint-plugin-require-path-exists":"^1.1.8",express:"^4.17.1",husky:"^0.14.3",jquery:"^3.5.0",karma:"5.1.1","karma-browserify":"^7.0.0","karma-chrome-launcher":"^3.1.0","karma-coverage":"^2.0.3","karma-junit-reporter":"^2.0.1","karma-mocha":"2.0.1","karma-sauce-launcher":"^1.2.0","karma-spec-reporter":"0.0.32","karma-summary-reporter":"^1.8.0","karma-typescript":"^5.1.0","lint-staged":"^10.2.13",lodash:"^4.17.20",mocha:"^4.1.0",np:"^6.5.0","prettier-eslint-cli":"5.0.0",proclaim:"^3.5.1",puppeteer:"^5.3.0",sinon:"^1.7.3",snyk:"^1.393.0","ts-node":"^8.10.2",typescript:"^4.2.4","wait-on":"^5.0.1",watchify:"^3.11.1"},"lint-staged":{"*.{js,jsx}":["yarn check-js"],"*.{js,json,md}":["prettier-eslint --write","git add"]},browserify:{transform:["package-json-versionify"]},resolutions:{buffer:"^4.9.2",assert:"1.5.0",browserify:"16.5.2",lodash:"4.17.20","node-fetch":"2.6.1",elliptic:"^6.5.4","component-cookie/debug":"2.6.9"}}});var ms=y((ys,gs)=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});var ll=hs(),qi=new ll;qi.require=rn;qi.VERSION=vs().version;gs.exports=qi});var ws=y((Zg,_s)=>{var ki;try{ki=ge()}catch(e){ki=ge()}_s.exports=ji;function ji(e){switch(ki(e)){case"object":var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=ji(e[t]));return r;case"array":for(var r=new Array(e.length),i=0,n=e.length;i<n;i++)r[i]=ji(e[i]);return r;case"regexp":var o="";return o+=e.multiline?"m":"",o+=e.global?"g":"",o+=e.ignoreCase?"i":"",new RegExp(e.source,o);case"date":return new Date(e.getTime());default:return e}}});var Ai=y((Wg,xs)=>{var hl=ge(),bs=ws();xs.exports=vl;function vl(e,t){switch(hl(t)){case"object":return yl(bs(e),t);case"function":return gl(bs(e),t)}}function yl(e,t){for(var r in t)e[r]!==void 0&&(e[t[r]]=e[r],delete e[r]);return e}function gl(e,t){var r={};for(var i in e)r[t(i)]=e[i];return r}});var Oi=y((Gg,ks)=>{"use strict";var ml=tt(),_l=ie(),Ci=ge();function qs(e,t){return e=ml(e),_l(function(r,i){Ci(r)==="date"&&(e[i]=t(r)),(Ci(r)==="object"||Ci(r)==="array")&&(e[i]=qs(r,t))},e),e}ks.exports=qs});var St=y((Xg,js)=>{js.exports=function(e,t){return t||(t={}),e.toLowerCase().replace(t.replace||/[^a-z0-9]/g," ").replace(/^ +| +$/g,"").replace(/ +/g,t.separator||"-")}});var Cs=y((Yg,As)=>{"use strict";var wl=Object.prototype.toString,bl=function(e){return typeof e=="function"},xl=function(e){var t=typeof e;return t==="number"||t==="object"&&wl.call(e)==="[object Number]"},ql=function(t){for(var r=[],i=1;i<=t;i+=1)r.push("arg"+i);return r},kl=function(t){var r=ql(t).join(", "),i="".concat(" return function(",r,`) {
`,` return func.apply(this, arguments);
`," };");return new Function("func",i)},Ii=[function(e){return function(){return e.apply(this,arguments)}},function(e){return function(t){return e.apply(this,arguments)}},function(e){return function(t,r){return e.apply(this,arguments)}},function(e){return function(t,r,i){return e.apply(this,arguments)}},function(e){return function(t,r,i,n){return e.apply(this,arguments)}},function(e){return function(t,r,i,n,o){return e.apply(this,arguments)}}],jl=function(t,r){if(!bl(r))throw new TypeError("Expected a function but got "+typeof r);return t=Math.max(xl(t)?t:0,0),Ii[t]||(Ii[t]=kl(t)),Ii[t](r)};As.exports=jl});var ar=y((Qg,Os)=>{"use strict";var Al=Cs(),Cl=Object.prototype.toString,Ol=function(e){return typeof e=="function"},Il=function(e){var t=typeof e;return t==="number"||t==="object"&&Cl.call(e)==="[object Number]"},Sl=function(t,r){if(!Il(t))throw new TypeError("Expected a number but received "+typeof t);if(!Ol(r))throw new TypeError("Expected a function but received "+typeof r);var i=0;return Al(r.length,function(){if(i+=1,!(i<t))return r.apply(this,arguments)})};Os.exports=Sl});var Ss=y((Kg,Is)=>{Is.exports={promotionViewed:/^[ _]?promotion[ _]?viewed?[ _]?$/i,viewedPromotion:/^[ _]?viewed[ _]?promotion?[ _]?$/i,promotionClicked:/^[ _]?promotion[ _]?clicked?[ _]?$/i,clickedPromotion:/^[ _]?clicked[ _]?promotion?[ _]?$/i,productsSearched:/^[ _]?products[ _]?searched[ _]?$/i,productListViewed:/^[ _]?product[ _]?list[ _]?viewed[ _]?$/i,productListFiltered:/^[ _]?product[ _]?list[ _]?filtered[ _]?$/i,viewedProductCategory:/^[ _]?viewed[ _]?product[ _]?category[ _]?$/i,viewedProductDetails:/^[ _]?viewed[ _]?product[ _]?details?[ _]?$/i,productClicked:/^[ _]?product[ _]?clicked[ _]?$/i,clickedProduct:/^[ _]?clicked[ _]?product[ _]?$/i,productViewed:/^[ _]?product[ _]?viewed[ _]?$/i,viewedProduct:/^[ _]?viewed[ _]?product[ _]?$/i,productAdded:/^[ _]?product[ _]?added[ _]?$/i,addedProduct:/^[ _]?added[ _]?product[ _]?$/i,productRemoved:/^[ _]?product[ _]?removed[ _]?$/i,removedProduct:/^[ _]?removed[ _]?product[ _]?$/i,cartViewed:/^[ _]?cart[ _]?viewed[ _]?$/i,orderStarted:/^[ _]?order[ _]?started[ _]?$/i,startedOrder:/^[ _]?started[ _]?order[ _]?$/i,orderUpdated:/^[ _]?order[ _]?updated[ _]?$/i,updatedOrder:/^[ _]?updated[ _]?order[ _]?$/i,orderCompleted:/^[ _]?order[ _]?completed[ _]?$/i,completedOrder:/^[ _]?completed[ _]?order[ _]?$/i,orderRefunded:/^[ _]?order[ _]?refunded[ _]?$/i,refundedOrder:/^[ _]?refunded[ _]?order[ _]?$/i,orderCancelled:/^[ _]?order[ _]?cancelled[ _]?$/i,paymentInfoAdded:/^[ _]?payment[ _]?info[ _]?added[ _]?$/i,checkoutStarted:/^[ _]?checkout[ _]?started[ _]?$/i,checkoutStepViewed:/^[ _]?checkout[ _]?step[ _]?viewed[ _]?$/i,viewedCheckoutStep:/^[ _]?viewed[ _]?checkout[ _]?step[ _]?$/i,checkoutStepCompleted:/^[ _]?checkout[ _]?step[ _]?completed[ _]?$/i,completedCheckoutStep:/^[ _]?completed[ _]?checkout[ _]?step[ _]?$/i,couponEntered:/^[ _]?coupon[ _]?entered[ _]?$/i,couponApplied:/^[ _]?coupon[ _]?applied[ _]?$/i,couponDenied:/^[ _]?coupon[ _]?denied[ _]?$/i,couponRemoved:/^[ _]?coupon[ _]?removed[ _]?$/i,productAddedToWishlist:/^[ _]?product[ _]?added[ _]?to[ _]?wishlist[ _]?$/i,wishlistProductRemoved:/^[ _]?wishlist[ _]?product[ _]?removed[ _]?$/i,wishlistProductAddedToCart:/^[ _]?wishlist[ _]?product[ _]?added[ _]?to[ _]?cart[ _]?$/i,productShared:/^[ _]?product[ _]?shared[ _]?$/i,cartShared:/^[ _]?cart[ _]?shared[ _]?$/i,productRemoved:/^[ _]?product[ _]?removed[ _]?$/i,applicationInstalled:/^[ _]?application[ _]?installed[ _]?$/i,applicationUpdated:/^[ _]?application[ _]?updated[ _]?$/i,applicationOpened:/^[ _]?application[ _]?opened[ _]?$/i,applicationBackgrounded:/^[ _]?application[ _]?backgrounded[ _]?$/i,applicationUninstalled:/^[ _]?application[ _]?uninstalled[ _]?$/i,installAttributed:/^[ _]?install[ _]?attributed[ _]?$/i,deepLinkOpened:/^[ _]?deep[ _]?link[ _]?opened[ _]?$/i,pushNotificationReceived:/^[ _]?push[ _]?notification[ _]?received[ _]?$/i,pushNotificationTapped:/^[ _]?push[ _]?notification[ _]?received[ _]?$/i,pushNotificationBounced:/^[ _]?push[ _]?notification[ _]?bounced[ _]?$/i}});var $t=y((em,$s)=>{"use strict";var $l=ie(),El=function(t,r){if(typeof t!="function")throw new TypeError("`predicate` must be a function but was a "+typeof t);var i=!0;return $l(function(n,o,a){if(i=!!t(n,o,a),!i)return!1},r),i};$s.exports=El});var Et=y((tm,Es)=>{"use strict";var Tl=window.JSON&&typeof JSON.stringify=="function"?JSON.stringify:String;function dt(e){var t=Array.prototype.slice.call(arguments,1),r=0;return e.replace(/%([a-z])/gi,function(i,n){return dt[n]?dt[n](t[r++]):i+n})}dt.o=Tl;dt.s=String;dt.d=parseInt;Es.exports=dt});var Xe=y((rm,Ts)=>{"use strict";var Pl=ie(),zl=function(t,r,i){if(typeof t!="function")throw new TypeError("Expected a function but received a "+typeof t);return Pl(function(n,o,a){r=t(r,n,o,a)},i),r};Ts.exports=zl});var Si=y((im,Ps)=>{Ps.exports=function(e,t){return e.addEventListener?Nl(e,t):Ml(e,t)};function Nl(e,t){e.addEventListener("load",function(r,i){t(null,i)},!1),e.addEventListener("error",function(r){var i=new Error('script error "'+e.src+'"');i.event=r,t(i)},!1)}function Ml(e,t){e.attachEvent("onreadystatechange",function(r){/complete|loaded/.test(e.readyState)&&t(null,r)}),e.attachEvent("onerror",function(r){var i=new Error('failed to load the script "'+e.src+'"');i.event=r||window.event,t(i)})}});var Tt=y((nm,Ns)=>{var zs=Le(),Dl=Si(),Ll=Re();Ns.exports=function(t,r){if(!t)throw new Error("Cant load nothing...");zs.string(t)&&(t={src:t});var i=document.location.protocol==="https:"||document.location.protocol==="chrome-extension:";t.src&&t.src.indexOf("//")===0&&(t.src=i?"https:"+t.src:"http:"+t.src),i&&t.https?t.src=t.https:!i&&t.http&&(t.src=t.http);var n=document.createElement("iframe");return n.src=t.src,n.width=t.width||1,n.height=t.height||1,n.style.display="none",zs.fn(r)&&Dl(n,r),Ll(function(){var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}),n}});var lt=y((om,Ds)=>{"use strict";var Rl=Si(),Ul=Re(),Ms=ge();function Fl(e,t){if(!e)throw new Error("Can't load nothing...");Ms(e)==="string"&&(e={src:e});var r=document.location.protocol==="https:"||document.location.protocol==="chrome-extension:";e.src&&e.src.indexOf("//")===0&&(e.src=(r?"https:":"http:")+e.src),r&&e.https?e.src=e.https:!r&&e.http&&(e.src=e.http);var i=document.createElement("script");return i.type="text/javascript",i.async=!0,i.src=e.src,Ms(t)==="function"&&Rl(i,t),Ul(function(){var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n)}),i}Ds.exports=Fl});var Pt=y((am,Ls)=>{Ls.exports=Jl;var Bl=/\s/,Vl=/[\W_]/;function Jl(e){return Bl.test(e)?e.toLowerCase():Vl.test(e)?(Zl(e)||e).toLowerCase():Gl(e).toLowerCase()}var Hl=/[\W_]+(.|$)/g;function Zl(e){return e.replace(Hl,function(t,r){return r?" "+r:""})}var Wl=/(.)([A-Z]+)/g;function Gl(e){return e.replace(Wl,function(t,r,i){return r+" "+i.toLowerCase().split("").join(" ")})}});var Bs=y(Y=>{"use strict";var Xl=_e(),Yl=ar(),Ei=ie(),$i=Ss(),Ql=$t(),Kl=Et(),Us=Xe(),sr=Le(),eh=Tt(),th=lt(),rh=Re(),Rs=Pt(),Fs=Object.prototype.hasOwnProperty,ih=function(){},nh=window.onerror,oh=null;Xl(Y);Y.initialize=function(){var e=this.ready;rh(e)};Y.loaded=function(){return!1};Y.page=function(e){};Y.track=function(e){};Y.map=function(e,t){var r=Rs(t),i=ah(e);return i==="unknown"?[]:Us(function(n,o,a){var u,f;return i==="map"&&(u=a,f=o),i==="array"&&(u=o,f=o),i==="mixed"&&(u=o.key,f=o.value),Rs(u)===r&&n.push(f),n},[],e)};Y.invoke=function(e){if(this[e]){var t=Array.prototype.slice.call(arguments,1);return this._ready?(this.debug("%s with %o",e,t),this[e].apply(this,t)):this.queue(e,t)}};Y.queue=function(e,t){if(e==="page"&&this._assumesPageview&&!this._initialized)return this.page.apply(this,t);this._queue.push({method:e,args:t})};Y.flush=function(){this._ready=!0;var e=this;Ei(function(t){e[t.method].apply(e,t.args)},this._queue),this._queue.length=0};Y.reset=function(){for(var e=0;e<this.globals.length;e++)window[this.globals[e]]=void 0;window.onerror=nh,window.onload=oh};Y.load=function(e,t,r){typeof e=="function"&&(r=e,t=null,e=null),e&&typeof e=="object"&&(r=t,t=e,e=null),typeof t=="function"&&(r=t,t=null),e=e||"library",t=t||{},t=this.locals(t);var i=this.templates[e];if(!i)throw new Error(Kl('template "%s" not defined.',e));var n=ph(i,t);r=r||ih;var o=this,a;switch(i.type){case"img":n.width=1,n.height=1,a=uh(n,r);break;case"script":a=th(n,function(u){if(!u)return r();o.debug('error loading "%s" error="%s"',o.name,u)}),delete n.src,Ei(function(u,f){a.setAttribute(f,u)},n);break;case"iframe":a=eh(n,r);break;default:}return a};Y.locals=function(e){e=e||{};var t=Math.floor(new Date().getTime()/36e5);return e.hasOwnProperty("cache")||(e.cache=t),Ei(function(r,i){e.hasOwnProperty(i)||(e[i]=r)},this.options),e};Y.ready=function(){this.emit("ready")};Y._wrapInitialize=function(){var e=this.initialize;this.initialize=function(){this.debug("initialize"),this._initialized=!0;var t=e.apply(this,arguments);return this.emit("initialize"),t},this._assumesPageview&&(this.initialize=Yl(2,this.initialize))};Y._wrapPage=function(){var e=this.page;this.page=function(){return this._assumesPageview&&!this._initialized?this.initialize.apply(this,arguments):e.apply(this,arguments)}};Y._wrapTrack=function(){var e=this.track;this.track=function(t){var r=t.event(),i,n;for(var o in $i)if(Fs.call($i,o)){var a=$i[o];if(!this[o]||!a.test(r))continue;n=this[o].apply(this,arguments),i=!0;break}return i||(n=e.apply(this,arguments)),n}};function ah(e){return sr.array(e)?Ql(sh,e)?"mixed":"array":sr.object(e)?"map":"unknown"}function sh(e){return!(!sr.object(e)||!sr.string(e.key)||!Fs.call(e,"value"))}function uh(e,t){t=t||function(){};var r=new Image;return r.onerror=ch(t,"failed to load pixel",r),r.onload=function(){t()},r.src=e.src,r.width=1,r.height=1,r}function ch(e,t,r){return function(i){i=i||window.event;var n=new Error(t);n.event=i,n.source=r,e(n)}}function ph(e,t){return Us(function(r,i,n){return r[n]=i.replace(/\{\{\ *(\w+)\ *\}\}/g,function(o,a){return t[a]}),r},{},e.attrs)}});var zt=y((um,Js)=>{Js.exports=fh;var Vs=!1,ur;typeof document<"u"&&(ur=document.createElement("div"),ur.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',Vs=!ur.getElementsByTagName("link").length,ur=void 0);var H={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:Vs?[1,"X<div>","</div>"]:[0,"",""]};H.td=H.th=[3,"<table><tbody><tr>","</tr></tbody></table>"];H.option=H.optgroup=[1,'<select multiple="multiple">',"</select>"];H.thead=H.tbody=H.colgroup=H.caption=H.tfoot=[1,"<table>","</table>"];H.polyline=H.ellipse=H.polygon=H.circle=H.text=H.line=H.path=H.rect=H.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function fh(e,t){if(typeof e!="string")throw new TypeError("String expected");t||(t=document);var r=/<([\w:]+)/.exec(e);if(!r)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=r[1];if(i=="body"){var f=t.createElement("html");return f.innerHTML=e,f.removeChild(f.lastChild)}var n=Object.prototype.hasOwnProperty.call(H,i)?H[i]:H._default,o=n[0],a=n[1],u=n[2],f=t.createElement("div");for(f.innerHTML=a+e+u;o--;)f=f.lastChild;if(f.firstChild==f.lastChild)return f.removeChild(f.firstChild);for(var v=t.createDocumentFragment();f.firstChild;)v.appendChild(f.removeChild(f.firstChild));return v}});var Hs=y(Ce=>{"use strict";var dh=_e(),lh=zt(),hh=ie(),vh=Ue();dh(Ce);Ce.option=function(e,t){return this.prototype.defaults[e]=t,this};Ce.mapping=function(e){return this.option(e,[]),this.prototype[e]=function(t){return this.map(this.options[e],t)},this};Ce.global=function(e){return this.prototype.globals.push(e),this};Ce.assumesPageview=function(){return this.prototype._assumesPageview=!0,this};Ce.readyOnLoad=function(){return this.prototype._readyOnLoad=!0,this};Ce.readyOnInitialize=function(){return this.prototype._readyOnInitialize=!0,this};Ce.tag=function(e,t){return t==null&&(t=e,e="library"),this.prototype.templates[e]=yh(t),this};function yh(e){e=e.replace(' src="',' data-src="');var t=lh(e),r={};return hh(function(i){var n=i.name==="data-src"?"src":i.name;vh(i.name+"=",e)&&(r[n]=i.value)},t.attributes),{type:t.tagName.toLowerCase(),attrs:r}}});var Xs=y((pm,Gs)=>{"use strict";var Zs=ot(),gh=tt(),mh=re(),_h=we(),Ws=At(),wh=St(),bh=Bs(),xh=Hs();function qh(e){function t(r){if(r&&r.addIntegration)return r.addIntegration(t);this.debug=mh("analytics:integration:"+wh(e)),this.options=_h(gh(r)||{},this.defaults),this._queue=[],this.once("ready",Zs(this,this.flush)),t.emit("construct",this),this.ready=Zs(this,this.ready),this._wrapInitialize(),this._wrapPage(),this._wrapTrack()}return t.prototype.defaults={},t.prototype.globals=[],t.prototype.templates={},t.prototype.name=e,Ws(t,xh),Ws(t.prototype,bh),t}Gs.exports=qh});var tu=y((fm,eu)=>{"use strict";var kh=ke().Identify,Ys=Ai(),Qs=Oi(),jh=Xs(),Ah=1970,ht=eu.exports=jh("Customer.io").global("_cio").option("siteId","").option("datacenter","").tag("eu-tag",'<script id="cio-tracker" src="https://assets.customer.io/assets/track-eu.js" data-site-id="{{ siteId }}">').tag("global-tag",'<script id="cio-tracker" src="https://assets.customer.io/assets/track.js" data-site-id="{{ siteId }}">');ht.prototype.initialize=function(){window._cio=window._cio||[],function(){var e,t,r;for(e=function(i){return function(){window._cio.push([i].concat(Array.prototype.slice.call(arguments,0)))}},t=["identify","track"],r=0;r<t.length;r++)window._cio[t[r]]=e(t[r])}(),this.options.datacenter==="eu"&&this.templates["eu-tag"]?this.load("eu-tag",this.ready):this.load("global-tag",this.ready)};ht.prototype.loaded=function(){return!!(window._cio&&window._cio.push!==Array.prototype.push)};ht.prototype.page=function(e){var t=e.name()||e.url();window._cio.page(t,e.properties())};ht.prototype.identify=function(e){if(!e.userId())return this.debug("user id required");var t=e.traits({createdAt:"created"});t=Ys(t,{created:"created_at"}),t=Qs(t,Ks),window._cio.identify(t)};ht.prototype.group=function(e){var t=e.traits(),r=this.analytics.user();t=Ys(t,function(i){return"Group "+i}),this.identify(new kh({userId:r.id(),traits:t}))};ht.prototype.track=function(e){var t=e.properties();t=Qs(t,Ks),window._cio.track(e.event(),t)};function Ks(e){return e.getFullYear()<Ah?e.toISOString():Math.floor(e.getTime()/1e3)}});var iu=y((dm,ru)=>{ru.exports={promotionViewed:/^[ _]?promotion[ _]?viewed?[ _]?$/i,viewedPromotion:/^[ _]?viewed[ _]?promotion?[ _]?$/i,promotionClicked:/^[ _]?promotion[ _]?clicked?[ _]?$/i,clickedPromotion:/^[ _]?clicked[ _]?promotion?[ _]?$/i,productsSearched:/^[ _]?products[ _]?searched[ _]?$/i,productListViewed:/^[ _]?product[ _]?list[ _]?viewed[ _]?$/i,productListFiltered:/^[ _]?product[ _]?list[ _]?filtered[ _]?$/i,viewedProductCategory:/^[ _]?viewed[ _]?product[ _]?category[ _]?$/i,viewedProductDetails:/^[ _]?viewed[ _]?product[ _]?details?[ _]?$/i,productClicked:/^[ _]?product[ _]?clicked[ _]?$/i,clickedProduct:/^[ _]?clicked[ _]?product[ _]?$/i,productViewed:/^[ _]?product[ _]?viewed[ _]?$/i,viewedProduct:/^[ _]?viewed[ _]?product[ _]?$/i,productAdded:/^[ _]?product[ _]?added[ _]?$/i,addedProduct:/^[ _]?added[ _]?product[ _]?$/i,productRemoved:/^[ _]?product[ _]?removed[ _]?$/i,removedProduct:/^[ _]?removed[ _]?product[ _]?$/i,cartViewed:/^[ _]?cart[ _]?viewed[ _]?$/i,orderStarted:/^[ _]?order[ _]?started[ _]?$/i,startedOrder:/^[ _]?started[ _]?order[ _]?$/i,orderUpdated:/^[ _]?order[ _]?updated[ _]?$/i,updatedOrder:/^[ _]?updated[ _]?order[ _]?$/i,orderCompleted:/^[ _]?order[ _]?completed[ _]?$/i,completedOrder:/^[ _]?completed[ _]?order[ _]?$/i,orderRefunded:/^[ _]?order[ _]?refunded[ _]?$/i,refundedOrder:/^[ _]?refunded[ _]?order[ _]?$/i,orderCancelled:/^[ _]?order[ _]?cancelled[ _]?$/i,paymentInfoAdded:/^[ _]?payment[ _]?info[ _]?added[ _]?$/i,checkoutStarted:/^[ _]?checkout[ _]?started[ _]?$/i,checkoutStepViewed:/^[ _]?checkout[ _]?step[ _]?viewed[ _]?$/i,viewedCheckoutStep:/^[ _]?viewed[ _]?checkout[ _]?step[ _]?$/i,checkoutStepCompleted:/^[ _]?checkout[ _]?step[ _]?completed[ _]?$/i,completedCheckoutStep:/^[ _]?completed[ _]?checkout[ _]?step[ _]?$/i,couponEntered:/^[ _]?coupon[ _]?entered[ _]?$/i,couponApplied:/^[ _]?coupon[ _]?applied[ _]?$/i,couponDenied:/^[ _]?coupon[ _]?denied[ _]?$/i,couponRemoved:/^[ _]?coupon[ _]?removed[ _]?$/i,productAddedToWishlist:/^[ _]?product[ _]?added[ _]?to[ _]?wishlist[ _]?$/i,wishlistProductRemoved:/^[ _]?wishlist[ _]?product[ _]?removed[ _]?$/i,wishlistProductAddedToCart:/^[ _]?wishlist[ _]?product[ _]?added[ _]?to[ _]?cart[ _]?$/i,productShared:/^[ _]?product[ _]?shared[ _]?$/i,cartShared:/^[ _]?cart[ _]?shared[ _]?$/i,productRemoved:/^[ _]?product[ _]?removed[ _]?$/i,applicationInstalled:/^[ _]?application[ _]?installed[ _]?$/i,applicationUpdated:/^[ _]?application[ _]?updated[ _]?$/i,applicationOpened:/^[ _]?application[ _]?opened[ _]?$/i,applicationBackgrounded:/^[ _]?application[ _]?backgrounded[ _]?$/i,applicationUninstalled:/^[ _]?application[ _]?uninstalled[ _]?$/i,installAttributed:/^[ _]?install[ _]?attributed[ _]?$/i,deepLinkOpened:/^[ _]?deep[ _]?link[ _]?opened[ _]?$/i,pushNotificationReceived:/^[ _]?push[ _]?notification[ _]?received[ _]?$/i,pushNotificationTapped:/^[ _]?push[ _]?notification[ _]?received[ _]?$/i,pushNotificationBounced:/^[ _]?push[ _]?notification[ _]?bounced[ _]?$/i}});var su=y(Q=>{"use strict";var Ch=_e(),Oh=ar(),Pi=ie(),Ti=iu(),Ih=$t(),Sh=Et(),ou=Xe(),cr=Le(),$h=Tt(),Eh=lt(),Th=Re(),nu=Pt(),au=Object.prototype.hasOwnProperty,Ph=function(){},zh=window.onerror,Nh=null;Ch(Q);Q.initialize=function(){var e=this.ready;Th(e)};Q.loaded=function(){return!1};Q.page=function(e){};Q.track=function(e){};Q.map=function(e,t){var r=nu(t),i=Mh(e);return i==="unknown"?[]:ou(function(n,o,a){var u,f;return i==="map"&&(u=a,f=o),i==="array"&&(u=o,f=o),i==="mixed"&&(u=o.key,f=o.value),nu(u)===r&&n.push(f),n},[],e)};Q.invoke=function(e){if(this[e]){var t=Array.prototype.slice.call(arguments,1);return this._ready?(this.debug("%s with %o",e,t),this[e].apply(this,t)):this.queue(e,t)}};Q.queue=function(e,t){if(e==="page"&&this._assumesPageview&&!this._initialized)return this.page.apply(this,t);this._queue.push({method:e,args:t})};Q.flush=function(){this._ready=!0;var e=this;Pi(function(t){e[t.method].apply(e,t.args)},this._queue),this._queue.length=0};Q.reset=function(){for(var e=0;e<this.globals.length;e++)window[this.globals[e]]=void 0;window.onerror=zh,window.onload=Nh};Q.load=function(e,t,r){typeof e=="function"&&(r=e,t=null,e=null),e&&typeof e=="object"&&(r=t,t=e,e=null),typeof t=="function"&&(r=t,t=null),e=e||"library",t=t||{},t=this.locals(t);var i=this.templates[e];if(!i)throw new Error(Sh('template "%s" not defined.',e));var n=Uh(i,t);r=r||Ph;var o=this,a;switch(i.type){case"img":n.width=1,n.height=1,a=Lh(n,r);break;case"script":a=Eh(n,function(u){if(!u)return r();o.debug('error loading "%s" error="%s"',o.name,u)}),delete n.src,Pi(function(u,f){a.setAttribute(f,u)},n);break;case"iframe":a=$h(n,r);break;default:}return a};Q.locals=function(e){e=e||{};var t=Math.floor(new Date().getTime()/36e5);return e.hasOwnProperty("cache")||(e.cache=t),Pi(function(r,i){e.hasOwnProperty(i)||(e[i]=r)},this.options),e};Q.ready=function(){this.emit("ready")};Q._wrapInitialize=function(){var e=this.initialize;this.initialize=function(){this.debug("initialize"),this._initialized=!0;var t=e.apply(this,arguments);return this.emit("initialize"),t},this._assumesPageview&&(this.initialize=Oh(2,this.initialize))};Q._wrapPage=function(){var e=this.page;this.page=function(){return this._assumesPageview&&!this._initialized?this.initialize.apply(this,arguments):e.apply(this,arguments)}};Q._wrapTrack=function(){var e=this.track;this.track=function(t){var r=t.event(),i,n;for(var o in Ti)if(au.call(Ti,o)){var a=Ti[o];if(!this[o]||!a.test(r))continue;n=this[o].apply(this,arguments),i=!0;break}return i||(n=e.apply(this,arguments)),n}};function Mh(e){return cr.array(e)?Ih(Dh,e)?"mixed":"array":cr.object(e)?"map":"unknown"}function Dh(e){return!(!cr.object(e)||!cr.string(e.key)||!au.call(e,"value"))}function Lh(e,t){t=t||function(){};var r=new Image;return r.onerror=Rh(t,"failed to load pixel",r),r.onload=function(){t()},r.src=e.src,r.width=1,r.height=1,r}function Rh(e,t,r){return function(i){i=i||window.event;var n=new Error(t);n.event=i,n.source=r,e(n)}}function Uh(e,t){return ou(function(r,i,n){return r[n]=i.replace(/\{\{\ *(\w+)\ *\}\}/g,function(o,a){return t[a]}),r},{},e.attrs)}});var uu=y(Oe=>{"use strict";var Fh=_e(),Bh=zt(),Vh=ie(),Jh=Ue();Fh(Oe);Oe.option=function(e,t){return this.prototype.defaults[e]=t,this};Oe.mapping=function(e){return this.option(e,[]),this.prototype[e]=function(t){return this.map(this.options[e],t)},this};Oe.global=function(e){return this.prototype.globals.push(e),this};Oe.assumesPageview=function(){return this.prototype._assumesPageview=!0,this};Oe.readyOnLoad=function(){return this.prototype._readyOnLoad=!0,this};Oe.readyOnInitialize=function(){return this.prototype._readyOnInitialize=!0,this};Oe.tag=function(e,t){return t==null&&(t=e,e="library"),this.prototype.templates[e]=Hh(t),this};function Hh(e){e=e.replace(' src="',' data-src="');var t=Bh(e),r={};return Vh(function(i){var n=i.name==="data-src"?"src":i.name;Jh(i.name+"=",e)&&(r[n]=i.value)},t.attributes),{type:t.tagName.toLowerCase(),attrs:r}}});var du=y((vm,fu)=>{"use strict";var cu=ot(),Zh=tt(),Wh=re(),Gh=we(),pu=At(),Xh=St(),Yh=su(),Qh=uu();function Kh(e){function t(r){if(r&&r.addIntegration)return r.addIntegration(t);this.debug=Wh("analytics:integration:"+Xh(e)),this.options=Gh(Zh(r)||{},this.defaults),this._queue=[],this.once("ready",cu(this,this.flush)),t.emit("construct",this),this.ready=cu(this,this.ready),this._wrapInitialize(),this._wrapPage(),this._wrapTrack()}return t.prototype.defaults={},t.prototype.globals=[],t.prototype.templates={},t.prototype.name=e,pu(t,Qh),pu(t.prototype,Yh),t}fu.exports=Kh});var hu=y((ym,lu)=>{"use strict";function Nt(e){var t=e.toString();return t.length===1?"0"+t:t}function ev(e){return e.getUTCFullYear()+"-"+Nt(e.getUTCMonth()+1)+"-"+Nt(e.getUTCDate())+"T"+Nt(e.getUTCHours())+":"+Nt(e.getUTCMinutes())+":"+Nt(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}lu.exports=ev});var yu=y((gm,vu)=>{vu.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}});var qu=y((mm,xu)=>{"use strict";var tv=Ai(),wu=Oi(),rv=et().del,gu=Ue(),iv=du(),bu=hu(),pr=vi(),fr=Le(),nv=yu(),Ye=xu.exports=iv("Mixpanel").global("mixpanel").option("eventIncrements",[]).option("propIncrements",[]).option("peopleProperties",[]).option("superProperties",[]).option("cookieName","").option("crossSubdomainCookie",!1).option("secureCookie",!1).option("persistence","cookie").option("nameTag",!0).option("pageview",!1).option("people",!1).option("token","").option("setAllTraitsByDefault",!0).option("consolidatedPageCalls",!0).option("trackAllPages",!1).option("trackNamedPages",!1).option("trackCategorizedPages",!1).option("groupIdentifierTraits",[]).option("sourceName","").option("enableEuropeanUnionEndpoint",!1).tag('<script src="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js">'),ov={cookieName:"cookie_name",crossSubdomainCookie:"cross_subdomain_cookie",secureCookie:"secure_cookie"};Ye.prototype.initialize=function(){(function(t,r){if(!r.__SV){var i=window;try{var n,o,a,u=i.location,f=u.hash;n=function(q,$){return(o=q.match(RegExp($+"=([^&]*)")))?o[1]:null},f&&n(f,"state")&&(a=JSON.parse(decodeURIComponent(n(f,"state"))),a.action==="mpeditor"&&(i.sessionStorage.setItem("_mpcehash",f),history.replaceState(a.desiredHash||"",t.title,u.pathname+u.search)))}catch(q){}var v,m;window.mixpanel=r,r._i=[],r.init=function(q,$,w){function k(N,R){var ue=R.split(".");ue.length==2&&(N=N[ue[0]],R=ue[1]),N[R]=function(){N.push([R].concat(Array.prototype.slice.call(arguments,0)))}}var A=r;for(typeof w<"u"?A=r[w]=[]:w="mixpanel",A.people=A.people||[],A.toString=function(N){var R="mixpanel";return w!=="mixpanel"&&(R+="."+w),N||(R+=" (stub)"),R},A.people.toString=function(){return A.toString(1)+".people (stub)"},v="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" "),m=0;m<v.length;m++)k(A,v[m]);r._i.push([q,$,w])},r.__SV=1.2}})(document,window.mixpanel||[]),this.options.eventIncrements=mu(this.options.eventIncrements),this.options.propIncrements=mu(this.options.propIncrements);var e=tv(this.options,ov);this.options.enableEuropeanUnionEndpoint&&(e.api_host="https://api-eu.mixpanel.com"),e.loaded=function(t){t.register({mp_lib:"Segment: web"})},window.mixpanel.init(e.token,e),this.load(this.ready)};Ye.prototype.loaded=function(){return!!(window.mixpanel&&window.mixpanel.config)};Ye.prototype.page=function(e){var t=e.category(),r=e.name(),i=this.options;if(i.consolidatedPageCalls){this.track(e.track());return}if(i.trackAllPages){this.track(e.track());return}if(i.trackCategorizedPages&&t){if(r){this.track(e.track(e.fullName()));return}this.track(e.track(t));return}r&&i.trackNamedPages&&this.track(e.track(r))};var Mt={created:"$created",email:"$email",firstName:"$first_name",lastName:"$last_name",lastSeen:"$last_seen",name:"$name",username:"$username",phone:"$phone"};Ye.prototype.identify=function(e){var t=e.username(),r=e.email(),i=e.userId(),n=this.options.setAllTraitsByDefault,o=this.options.people,a=av(this.options.peopleProperties),u=this.options.superProperties;i&&window.mixpanel.identify(i);var f=r||t||i;f&&window.mixpanel.name_tag(f);var v=e.traits(Mt);v.$created&&rv(v,"createdAt"),v=wu(v,bu);var m={},q={};for(var $ in v)if(v.hasOwnProperty($)){var w=v[$];if(Array.isArray(w)&&w.length>0){m[$]=w;var k=window.mixpanel.get_property($);k&&Array.isArray(k)&&(v[$]=pv(k,w))}else q[$]=w}if(n)window.mixpanel.register(v),o&&(window.mixpanel.people.set(q),window.mixpanel.people.union(m));else{var A=_u(u),N=pr(A||[],v);if(fr.empty(N)||window.mixpanel.register(N),o){var R=_u(a),ue=pr(R||[],q),ne=pr(R||[],m);fr.empty(ue)||window.mixpanel.people.set(ue),fr.empty(ne)||window.mixpanel.people.union(ne)}}};Ye.prototype.track=function(e){var t=this.options.eventIncrements||this.options.increments,r=this.options.propIncrements,i=e.event().toLowerCase(),n=this.options.people,o=e.properties(),a=e.revenue(),u=pr(this.options.superProperties,o),f=this.options.sourceName;if(f&&(o.segment_source_name=f),delete o.distinct_id,delete o.ip,delete o.mp_name_tag,delete o.mp_note,delete o.token,o=wu(o,bu),sv(o),n){gu(i,t)&&(window.mixpanel.people.increment(e.event()),window.mixpanel.people.set("Last "+e.event(),new Date));for(var v in o)if(Object.prototype.hasOwnProperty.call(o,v)){var m=o[v];gu(v.toLowerCase(),r)&&window.mixpanel.people.increment(v,m)}a&&window.mixpanel.people.track_charge(a)}var q;o.link_query?(q=o.link_query,delete o.link_query,window.mixpanel.track_links(q,e.event(),o)):o.form_query?(q=o.form_query,delete o.form_query,window.mixpanel.track_forms(q,e.event(),o)):window.mixpanel.track(e.event(),o),fr.empty(u)||window.mixpanel.register(u)};Ye.prototype.alias=function(e){var t=window.mixpanel,r=e.to();t.get_distinct_id&&t.get_distinct_id()===r||t.get_property&&t.get_property("$people_distinct_id")===r||t.alias(r,e.from())};Ye.prototype.group=function(e){var t=this.options.groupIdentifierTraits,r=e.groupId(),i=this.analytics.user().id(),n=e.properties();if(!(!r||!i||!t.length)){if(n&&Object.keys(n).length)for(var o=0;o<t.length;o++)window.mixpanel.get_group(t[o],r).set_once(n);for(var a=0;a<t.length;a++)window.mixpanel.set_group(t[a],[r])}};function mu(e){for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=String(e[r]).toLowerCase();return t}function _u(e){for(var t=new Array(e.length),r=0;r<e.length;++r)Mt.hasOwnProperty(e[r])?t.push(Mt[e[r]]):t.push(e[r]);return t}function av(e){var t=[];for(var r in Mt)Mt.hasOwnProperty(r)&&t.push(r);for(var i=0;i<t.length;++i)nv(e,t[i])<0&&e.push(t[i]);return e}function sv(e){var t=e;for(var r in t){var i=t[r];if(!(!t.hasOwnProperty(r)||!Array.isArray(i))){var n=uv(r,i);Object.keys(n).length!==0&&(cv(t,n),delete t[r])}}}function uv(e,t){for(var r={},i=0;i<t.length;i++){var n=t[i];if(typeof n!="object")return{};for(var o in n)if(n.hasOwnProperty(o)){var a=e+"_"+o+"s";a in r?r[a].push(n[o]):r[a]=[n[o]]}}return r}function cv(e,t){var r=e;for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];r[i]=i in r?r[i].concat(n):n}}function pv(e,t){var r={},i;for(i=0;i<e.length;i++)r[e[i]]=e[i];for(i=0;i<t.length;i++)r[t[i]]=t[i];return Object.keys(r)}});var ju=y((_m,ku)=>{"use strict";var fv=ut(),dv=function(t){for(var r=fv(t),i=new Array(r.length),n=0;n<r.length;n+=1)i[n]=t[r[n]];return i};ku.exports=dv});var Cu=y((wm,Au)=>{"use strict";var lv=ie(),hv=function(t,r){if(typeof t!="function")throw new TypeError("Expected a function but received a "+typeof t);var i=[];return lv(function(n,o,a){i.push(t(n,o,a))},r),i};Au.exports=hv});var Iu=y((bm,Ou)=>{"use strict";var zi=Cu(),vv=Xe(),yv={videoPlaybackStarted:[{object:"video playback",action:"started"}],videoPlaybackPaused:[{object:"video playback",action:"paused"}],videoPlaybackInterrupted:[{object:"video playback",action:"interrupted"}],videoPlaybackResumed:[{object:"video playback",action:"resumed"}],videoPlaybackCompleted:[{object:"video playback",action:"completed"}],videoPlaybackExited:[{object:"video playback",action:"exited"}],videoPlaybackBufferStarted:[{object:"video playback buffer",action:"started"}],videoPlaybackBufferCompleted:[{object:"video playback buffer",action:"completed"}],videoPlaybackSeekStarted:[{object:"video playback seek",action:"started"}],videoPlaybackSeekCompleted:[{object:"video playback seek",action:"completed"}],videoContentStarted:[{object:"video content",action:"started"}],videoContentPlaying:[{object:"video content",action:"playing"}],videoContentCompleted:[{object:"video content",action:"completed"}],videoAdStarted:[{object:"video ad",action:"started"}],videoAdPlaying:[{object:"video ad",action:"playing"}],videoAdCompleted:[{object:"video ad",action:"completed"}],videoAdClicked:[{object:"video ad",action:"clicked"}],videoAdSkipped:[{object:"video ad",action:"skipped"}],promotionViewed:[{object:"promotion",action:"viewed"}],promotionClicked:[{object:"promotion",action:"clicked"}],productsSearched:[{object:"products",action:"searched"}],productListViewed:[{object:"product list",action:"viewed"},{object:"product category",action:"viewed"}],productListFiltered:[{object:"product list",action:"filtered"}],productClicked:[{object:"product",action:"clicked"}],productViewed:[{object:"product",action:"viewed"}],productAdded:[{object:"product",action:"added"}],productRemoved:[{object:"product",action:"removed"}],cartViewed:[{object:"cart",action:"viewed"}],orderUpdated:[{object:"order",action:"updated"}],orderCompleted:[{object:"order",action:"completed"}],orderRefunded:[{object:"order",action:"refunded"}],orderCancelled:[{object:"order",action:"cancelled"}],paymentInfoEntered:[{object:"payment info",action:"entered"}],checkoutStarted:[{object:"checkout",action:"started"}],checkoutStepViewed:[{object:"checkout step",action:"viewed"}],checkoutStepCompleted:[{object:"checkout step",action:"completed"}],couponEntered:[{object:"coupon",action:"entered"}],couponApplied:[{object:"coupon",action:"applied"}],couponDenied:[{object:"coupon",action:"denied"}],couponRemoved:[{object:"coupon",action:"removed"}],productAddedToWishlist:[{object:"product",action:"added to wishlist"}],productRemovedFromWishlist:[{object:"product",action:"removed from wishlist"}],productAddedFromWishlistToCart:[{object:"product",action:"added to cart from wishlist"},{object:"product",action:"added from wishlist to cart"}],wishlistProductAddedToCart:[{object:"wishlist product",action:"added to cart"}],productShared:[{object:"product",action:"shared"}],cartShared:[{object:"cart",action:"shared"}],productReviewed:[{object:"product",action:"reviewed"}],applicationInstalled:[{object:"application",action:"installed"}],applicationUpdated:[{object:"application",action:"updated"}],applicationOpened:[{object:"application",action:"opened"}],applicationBackgrounded:[{object:"application",action:"backgrounded"}],applicationUninstalled:[{object:"application",action:"uninstalled"}],applicationCrashed:[{object:"application",action:"crashed"}],installAttributed:[{object:"install",action:"attributed"}],deepLinkOpened:[{object:"deep link",action:"opened"}],deepLinkClicked:[{object:"deep link",action:"clicked"}],pushNotificationReceived:[{object:"push notification",action:"received"}],pushNotificationTapped:[{object:"push notification",action:"tapped"}],pushNotificationBounced:[{object:"push notification",action:"bounced"}],emailBounced:[{object:"email",action:"bounced"}],emailDelivered:[{object:"email",action:"delivered"}],emailLinkClicked:[{object:"email link",action:"clicked"}],emailMarkedAsSpam:[{object:"email",action:"marked as spam"}],emailOpened:[{object:"email",action:"opened"}],unsubscribed:[{object:"",action:"unsubscribed"}],liveChatConversationEnded:[{object:"live chat conversation",action:"ended"}],liveChatConversationStarted:[{object:"live chat conversation",action:"started"}],liveChatMessageReceived:[{object:"live chat message",action:"received"}],liveChatMessageSent:[{object:"live chat message",action:"sent"}]};Ou.exports=vv(function(t,r,i){var n=zi(function(a){return zi(function(u){var f=[].concat.apply([],zi(function(v){return v.split(" ")},u));return"^[ _]?"+f.join("[ _]?")+"[ _]?"},[[a.action,a.object],[a.object,a.action]]).join("|")},r),o=n.join("|")+"$";return t[i]=new RegExp(o,"i"),t},{},yv)});var Tu=y(K=>{"use strict";var gv=_e(),Mi=ie(),Ni=Iu(),mv=$t(),_v=Et(),$u=Xe(),dr=Le(),wv=Tt(),bv=lt(),xv=Re(),Su=Pt(),Eu=Object.prototype.hasOwnProperty,qv=function(){},kv=window.onerror,jv=null;gv(K);K.initialize=function(){var e=this.ready;xv(e)};K.loaded=function(){return!1};K.page=function(e){};K.track=function(e){};K.map=function(e,t){var r=Su(t),i=Av(e);return i==="unknown"?[]:$u(function(n,o,a){var u,f;return i==="map"&&(u=a,f=o),i==="array"&&(u=o,f=o),i==="mixed"&&(u=o.key,f=o.value),Su(u)===r&&n.push(f),n},[],e)};K.invoke=function(e){if(this[e]){var t=Array.prototype.slice.call(arguments,1);return this._ready?(this.debug("%s with %o",e,t),this[e].apply(this,t)):this.queue(e,t)}};K.queue=function(e,t){this._queue.push({method:e,args:t})};K.flush=function(){this._ready=!0;var e=this;Mi(function(t){e[t.method].apply(e,t.args)},this._queue),this._queue.length=0};K.reset=function(){for(var e=0;e<this.globals.length;e++)window[this.globals[e]]=void 0;window.onerror=kv,window.onload=jv};K.load=function(e,t,r){typeof e=="function"&&(r=e,t=null,e=null),e&&typeof e=="object"&&(r=t,t=e,e=null),typeof t=="function"&&(r=t,t=null),e=e||"library",t=t||{},t=this.locals(t);var i=this.templates[e];if(!i)throw new Error(_v('template "%s" not defined.',e));var n=Sv(i,t);r=r||qv;var o=this,a;switch(i.type){case"img":n.width=1,n.height=1,a=Ov(n,r);break;case"script":a=bv(n,function(u){if(!u)return r();o.debug('error loading "%s" error="%s"',o.name,u)}),delete n.src,Mi(function(u,f){a.setAttribute(f,u)},n);break;case"iframe":a=wv(n,r);break;default:}return a};K.locals=function(e){e=e||{};var t=Math.floor(new Date().getTime()/36e5);return e.hasOwnProperty("cache")||(e.cache=t),Mi(function(r,i){e.hasOwnProperty(i)||(e[i]=r)},this.options),e};K.ready=function(){this.emit("ready")};K._wrapInitialize=function(){var e=this.initialize;this.initialize=function(){this.debug("initialize"),this._initialized=!0;var t=e.apply(this,arguments);return this.emit("initialize"),t}};K._wrapPage=function(){var e=this.page,t=!1;this.page=function(){if(this._assumesPageview&&!t){t=!0;return}return e.apply(this,arguments)}};K._wrapTrack=function(){var e=this.track;this.track=function(t){var r=t.event(),i,n;for(var o in Ni)if(Eu.call(Ni,o)){var a=Ni[o];if(!this[o]||!a.test(r))continue;n=this[o].apply(this,arguments),i=!0;break}return i||(n=e.apply(this,arguments)),n}};function Av(e){return dr.array(e)?mv(Cv,e)?"mixed":"array":dr.object(e)?"map":"unknown"}function Cv(e){return!(!dr.object(e)||!dr.string(e.key)||!Eu.call(e,"value"))}function Ov(e,t){t=t||function(){};var r=new Image;return r.onerror=Iv(t,"failed to load pixel",r),r.onload=function(){t()},r.src=e.src,r.width=1,r.height=1,r}function Iv(e,t,r){return function(i){i=i||window.event;var n=new Error(t);n.event=i,n.source=r,e(n)}}function Sv(e,t){return $u(function(r,i,n){return r[n]=i.replace(/\{\{\ *(\w+)\ *\}\}/g,function(o,a){return t[a]}),r},{},e.attrs)}});var Pu=y(Ie=>{"use strict";var $v=_e(),Ev=zt(),Tv=ie(),Pv=Ue();$v(Ie);Ie.option=function(e,t){return this.prototype.defaults[e]=t,this};Ie.mapping=function(e){return this.option(e,[]),this.prototype[e]=function(t){return this.map(this.options[e],t)},this};Ie.global=function(e){return this.prototype.globals.push(e),this};Ie.assumesPageview=function(){return this.prototype._assumesPageview=!0,this};Ie.readyOnLoad=function(){return this.prototype._readyOnLoad=!0,this};Ie.readyOnInitialize=function(){return this.prototype._readyOnInitialize=!0,this};Ie.tag=function(e,t){return t==null&&(t=e,e="library"),this.prototype.templates[e]=zv(t),this};function zv(e){e=e.replace(' src="',' data-src="');var t=Ev(e),r={};return Tv(function(i){var n=i.name==="data-src"?"src":i.name;Pv(i.name+"=",e)&&(r[n]=i.value)},t.attributes),{type:t.tagName.toLowerCase(),attrs:r}}});var lr=y((km,Nu)=>{"use strict";var zu=ot(),Nv=re(),Mv=we(),Di=Fr(),Dv=St(),Lv=Tu(),Rv=Pu();function Uv(e){function t(r){if(r&&r.addIntegration)return r.addIntegration(t);this.debug=Nv("analytics:integration:"+Dv(e));var i={};Di(!0,i,r),this.options=Mv(i||{},this.defaults),this._queue=[],this.once("ready",zu(this,this.flush)),t.emit("construct",this),this.ready=zu(this,this.ready),this._wrapInitialize(),this._wrapPage(),this._wrapTrack()}return t.prototype.defaults={},t.prototype.globals=[],t.prototype.templates={},t.prototype.name=e,Di(t,Rv),Di(t.prototype,Lv),t}Nu.exports=Uv});var Du=y((jm,Mu)=>{var Fv=re();Mu.exports=Bv;function Bv(e,t){var r=Fv("global-queue:"+e);return t=t||{},function(i){i=[].slice.call(arguments),window[e]||(window[e]=[]),r("%o",i),t.wrap===!1?window[e].push.apply(window[e],i):window[e].push(i)}}});var Uu=y((Am,Ru)=>{"use strict";var hr=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},Lu=function(e){var t=document.createTextNode(""),r,i,n=0;return new e(function(){var o;if(r)i&&(r=i.concat(r));else{if(!i)return;r=i}if(i=r,r=null,typeof i=="function"){o=i,i=null,o();return}for(t.data=n=++n%2;i;)o=i.shift(),i.length||(i=null),o()}).observe(t,{characterData:!0}),function(o){if(hr(o),r){typeof r=="function"?r=[r,o]:r.push(o);return}r=o,t.data=n=++n%2}};Ru.exports=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(e){queueMicrotask(hr(e))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return Lu(MutationObserver);if(typeof WebKitMutationObserver=="function")return Lu(WebKitMutationObserver)}return typeof setImmediate=="function"?function(e){setImmediate(hr(e))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(e){setTimeout(hr(e),0)}:null}()});var Ju=y((Cm,Vu)=>{"use strict";var Li=ut(),Ri=ju(),Ui=Xe(),Vv=ie(),Jv=lr(),Fu=Du()("optimizely",{wrap:!1}),Hv=Uu(),Ve=Vu.exports=Jv("Optimizely").option("trackCategorizedPages",!0).option("trackNamedPages",!0).option("variations",!1).option("listen",!0).option("nonInteraction",!1).option("sendRevenueOnlyForOrderCompleted",!0).option("customExperimentProperties",{}).option("customCampaignProperties",{}),Bu={name:"optimizely",version:"2.0.0"};Ve.prototype.initialize=function(){var e=this;Fu({type:"integration",OAuthClientId:"5360906403"}),Hv(function(){Ve.initOptimizelyIntegration({referrerOverride:e.setEffectiveReferrer.bind(e),sendExperimentData:e.sendClassicDataToSegment.bind(e),sendCampaignData:e.sendNewDataToSegment.bind(e)})}),this.ready()};Ve.prototype.track=function(e){var t=this.options,r=e.properties();r.revenue&&t.sendRevenueOnlyForOrderCompleted?e.event()==="Order Completed"?r.revenue=Math.round(r.revenue*100):e.event()!=="Order Completed"&&delete r.revenue:t.sendRevenueOnlyForOrderCompleted===!1&&r.revenue&&(r.revenue=Math.round(r.revenue*100));var i=e.event().replace(/:/g,"_"),n={type:"event",eventName:i,tags:r};Fu(n);var o=window.optimizelyClientInstance;if(o&&o.track){var a=e.options("Optimizely"),u=a.userId||e.userId()||this.analytics.user().id(),f=a.attributes||e.traits()||this.analytics.user().traits();u&&o.track(i,u,f,n.tags)}};Ve.prototype.page=function(e){var t=e.category(),r=e.fullName(),i=this.options;t&&i.trackCategorizedPages&&this.track(e.track(t)),r&&i.trackNamedPages&&this.track(e.track(r))};Ve.prototype.sendClassicDataToSegment=function(e){var t=e.experiment,r=e.variations,i=e.sections,n={integration:Bu},o=Ui(function(l,p){var c=l;return c[p.id]=p.name,c},{},r),a=Li(o).sort(),u=Ri(o).sort();if(this.options.listen){var f={experimentId:t.id,experimentName:t.name,variationId:a.join(),variationName:u.join(", ")};if(t.referrer&&(f.referrer=t.referrer,n.page={referrer:t.referrer}),i){for(var v={},m=Ui(function(l,p,c){var s=l;return Vv(function(h){s[h]={id:c,name:p.name}},p.variation_ids),s},{},i),q=0;q<a.length;q++){var $=a[q],w=m[$];w&&(v[w.id]=w.name)}f.sectionId=Li(v).sort().join(),f.sectionName=Ri(v).sort().join(", ")}this.options.nonInteraction&&(f.nonInteraction=1);var k=this.options.customExperimentProperties,A=Object.keys(k),N=window.optimizely&&window.optimizely.data;if(N&&A.length)for(var R=0;R<A.length;R++){var ue=A[R],ne=k[ue];typeof N[ne]<"u"&&(f[ue]=N[ne])}this.analytics.track("Experiment Viewed",f,n)}if(this.options.variations){var M={};M["Experiment: "+t.name]=u.join(", "),this.analytics.identify(M)}};Ve.prototype.sendNewDataToSegment=function(e){var t=e.experiment,r=e.variation,i={integration:Bu},n=Ui(function(A,N){var R=A;return R[N.id]=N.name,R},{},e.audiences),o=Li(n).sort().join(),a=Ri(n).sort().join(", ");if(this.options.listen){var u={campaignName:e.campaignName,campaignId:e.id,experimentId:t.id,experimentName:t.name,variationName:r.name,variationId:r.id,audienceId:o,audienceName:a,isInCampaignHoldback:e.isInCampaignHoldback};t.referrer&&(u.referrer=t.referrer,i.page={referrer:t.referrer}),this.options.nonInteraction&&(u.nonInteraction=1);var f=this.options.customCampaignProperties,v=Object.keys(f),m=window.optimizely&&window.optimizely.newMockData;if(m&&v.length)for(var q=0;q<v.length;q++){var $=v[q],w=f[$];typeof m[w]<"u"&&(u[$]=m[w])}this.analytics.track("Experiment Viewed",u,i)}if(this.options.variations){var k={};k["Experiment: "+t.name]=r.name,this.analytics.identify(k)}};Ve.prototype.setEffectiveReferrer=function(e){if(e)return window.optimizelyEffectiveReferrer=e,e};Ve.initOptimizelyIntegration=function(e){var t=function(i,n){var o=window.optimizely&&window.optimizely.data,a=o&&o.state;if(a){var u=a.activeExperiments;if(a.redirectExperiment){for(var f=a.redirectExperiment.experimentId,v=-1,m=0;m<a.activeExperiments.length;m++)if(a.activeExperiments[m]===f){v=m;break}v===-1&&u.push(f),i(a.redirectExperiment.referrer)}for(var q=0;q<u.length;q++){var $=u[q],w={experiment:{id:$,name:o.experiments[$].name},variations:[],sections:o.sections};a.redirectExperiment&&$===a.redirectExperiment.experimentId&&a.redirectExperiment.referrer&&(w.experiment.referrer=a.redirectExperiment.referrer);for(var k=a.variationIdsMap[w.experiment.id],A=0;A<k.length;A++){var N=k[A],R=o.variations[N].name;w.variations.push({id:N,name:R})}n(w)}}},r=function(i,n){var o=function(v,m){var q=window.optimizely.get&&window.optimizely.get("state");if(q){var $=q.getCampaignStates({isActive:!0}),w=$[v];m&&(w.experiment.referrer=m),n(w)}},a=function(){var v=window.optimizely.get&&window.optimizely.get("state");if(v){var m=v.getRedirectInfo()&&v.getRedirectInfo().referrer;if(m)return i(m),m}},u=function(){window.optimizely=window.optimizely||[],window.optimizely.push({type:"addListener",filter:{type:"lifecycle",name:"campaignDecided"},handler:function(v){var m=v.data.campaign.id;o(m)}})},f=function(){window.optimizely=window.optimizely||[];var v=window.optimizely.get&&window.optimizely.get("state");if(v){var m=a(),q=v.getCampaignStates({isActive:!0});for(var $ in q)({}).hasOwnProperty.call(q,$)&&(m?o($,m):o($))}else window.optimizely.push({type:"addListener",filter:{type:"lifecycle",name:"initialized"},handler:function(){a()}})};f(),u()};t(e.referrerOverride,e.sendExperimentData),r(e.referrerOverride,e.sendCampaignData)}});var Zu=y((Om,Hu)=>{Hu.exports={promotionViewed:/^[ _]?promotion[ _]?viewed?[ _]?$/i,viewedPromotion:/^[ _]?viewed[ _]?promotion?[ _]?$/i,promotionClicked:/^[ _]?promotion[ _]?clicked?[ _]?$/i,clickedPromotion:/^[ _]?clicked[ _]?promotion?[ _]?$/i,productsSearched:/^[ _]?products[ _]?searched[ _]?$/i,productListViewed:/^[ _]?product[ _]?list[ _]?viewed[ _]?$/i,productListFiltered:/^[ _]?product[ _]?list[ _]?filtered[ _]?$/i,viewedProductCategory:/^[ _]?viewed[ _]?product[ _]?category[ _]?$/i,viewedProductDetails:/^[ _]?viewed[ _]?product[ _]?details?[ _]?$/i,productClicked:/^[ _]?product[ _]?clicked[ _]?$/i,clickedProduct:/^[ _]?clicked[ _]?product[ _]?$/i,productViewed:/^[ _]?product[ _]?viewed[ _]?$/i,viewedProduct:/^[ _]?viewed[ _]?product[ _]?$/i,productAdded:/^[ _]?product[ _]?added[ _]?$/i,addedProduct:/^[ _]?added[ _]?product[ _]?$/i,productRemoved:/^[ _]?product[ _]?removed[ _]?$/i,removedProduct:/^[ _]?removed[ _]?product[ _]?$/i,cartViewed:/^[ _]?cart[ _]?viewed[ _]?$/i,orderStarted:/^[ _]?order[ _]?started[ _]?$/i,startedOrder:/^[ _]?started[ _]?order[ _]?$/i,orderUpdated:/^[ _]?order[ _]?updated[ _]?$/i,updatedOrder:/^[ _]?updated[ _]?order[ _]?$/i,orderCompleted:/^[ _]?order[ _]?completed[ _]?$/i,completedOrder:/^[ _]?completed[ _]?order[ _]?$/i,orderRefunded:/^[ _]?order[ _]?refunded[ _]?$/i,refundedOrder:/^[ _]?refunded[ _]?order[ _]?$/i,orderCancelled:/^[ _]?order[ _]?cancelled[ _]?$/i,paymentInfoAdded:/^[ _]?payment[ _]?info[ _]?added[ _]?$/i,checkoutStarted:/^[ _]?checkout[ _]?started[ _]?$/i,checkoutStepViewed:/^[ _]?checkout[ _]?step[ _]?viewed[ _]?$/i,viewedCheckoutStep:/^[ _]?viewed[ _]?checkout[ _]?step[ _]?$/i,checkoutStepCompleted:/^[ _]?checkout[ _]?step[ _]?completed[ _]?$/i,completedCheckoutStep:/^[ _]?completed[ _]?checkout[ _]?step[ _]?$/i,couponEntered:/^[ _]?coupon[ _]?entered[ _]?$/i,couponApplied:/^[ _]?coupon[ _]?applied[ _]?$/i,couponDenied:/^[ _]?coupon[ _]?denied[ _]?$/i,couponRemoved:/^[ _]?coupon[ _]?removed[ _]?$/i,productAddedToWishlist:/^[ _]?product[ _]?added[ _]?to[ _]?wishlist[ _]?$/i,wishlistProductRemoved:/^[ _]?wishlist[ _]?product[ _]?removed[ _]?$/i,wishlistProductAddedToCart:/^[ _]?wishlist[ _]?product[ _]?added[ _]?to[ _]?cart[ _]?$/i,productShared:/^[ _]?product[ _]?shared[ _]?$/i,cartShared:/^[ _]?cart[ _]?shared[ _]?$/i,productRemoved:/^[ _]?product[ _]?removed[ _]?$/i,applicationInstalled:/^[ _]?application[ _]?installed[ _]?$/i,applicationUpdated:/^[ _]?application[ _]?updated[ _]?$/i,applicationOpened:/^[ _]?application[ _]?opened[ _]?$/i,applicationBackgrounded:/^[ _]?application[ _]?backgrounded[ _]?$/i,applicationUninstalled:/^[ _]?application[ _]?uninstalled[ _]?$/i,installAttributed:/^[ _]?install[ _]?attributed[ _]?$/i,deepLinkOpened:/^[ _]?deep[ _]?link[ _]?opened[ _]?$/i,pushNotificationReceived:/^[ _]?push[ _]?notification[ _]?received[ _]?$/i,pushNotificationTapped:/^[ _]?push[ _]?notification[ _]?received[ _]?$/i,pushNotificationBounced:/^[ _]?push[ _]?notification[ _]?bounced[ _]?$/i}});var Yu=y(ee=>{"use strict";var Zv=_e(),Wv=ar(),Bi=ie(),Fi=Zu(),Gv=$t(),Xv=Et(),Gu=Xe(),vr=Le(),Yv=Tt(),Qv=lt(),Kv=Re(),Wu=Pt(),Xu=Object.prototype.hasOwnProperty,ey=function(){},ty=window.onerror,ry=null;Zv(ee);ee.initialize=function(){var e=this.ready;Kv(e)};ee.loaded=function(){return!1};ee.page=function(e){};ee.track=function(e){};ee.map=function(e,t){var r=Wu(t),i=iy(e);return i==="unknown"?[]:Gu(function(n,o,a){var u,f;return i==="map"&&(u=a,f=o),i==="array"&&(u=o,f=o),i==="mixed"&&(u=o.key,f=o.value),Wu(u)===r&&n.push(f),n},[],e)};ee.invoke=function(e){if(this[e]){var t=Array.prototype.slice.call(arguments,1);return this._ready?(this.debug("%s with %o",e,t),this[e].apply(this,t)):this.queue(e,t)}};ee.queue=function(e,t){if(e==="page"&&this._assumesPageview&&!this._initialized)return this.page.apply(this,t);this._queue.push({method:e,args:t})};ee.flush=function(){this._ready=!0;var e=this;Bi(function(t){e[t.method].apply(e,t.args)},this._queue),this._queue.length=0};ee.reset=function(){for(var e=0;e<this.globals.length;e++)window[this.globals[e]]=void 0;window.onerror=ty,window.onload=ry};ee.load=function(e,t,r){typeof e=="function"&&(r=e,t=null,e=null),e&&typeof e=="object"&&(r=t,t=e,e=null),typeof t=="function"&&(r=t,t=null),e=e||"library",t=t||{},t=this.locals(t);var i=this.templates[e];if(!i)throw new Error(Xv('template "%s" not defined.',e));var n=sy(i,t);r=r||ey;var o=this,a;switch(i.type){case"img":n.width=1,n.height=1,a=oy(n,r);break;case"script":a=Qv(n,function(u){if(!u)return r();o.debug('error loading "%s" error="%s"',o.name,u)}),delete n.src,Bi(function(u,f){a.setAttribute(f,u)},n);break;case"iframe":a=Yv(n,r);break;default:}return a};ee.locals=function(e){e=e||{};var t=Math.floor(new Date().getTime()/36e5);return e.hasOwnProperty("cache")||(e.cache=t),Bi(function(r,i){e.hasOwnProperty(i)||(e[i]=r)},this.options),e};ee.ready=function(){this.emit("ready")};ee._wrapInitialize=function(){var e=this.initialize;this.initialize=function(){this.debug("initialize"),this._initialized=!0;var t=e.apply(this,arguments);return this.emit("initialize"),t},this._assumesPageview&&(this.initialize=Wv(2,this.initialize))};ee._wrapPage=function(){var e=this.page;this.page=function(){return this._assumesPageview&&!this._initialized?this.initialize.apply(this,arguments):e.apply(this,arguments)}};ee._wrapTrack=function(){var e=this.track;this.track=function(t){var r=t.event(),i,n;for(var o in Fi)if(Xu.call(Fi,o)){var a=Fi[o];if(!this[o]||!a.test(r))continue;n=this[o].apply(this,arguments),i=!0;break}return i||(n=e.apply(this,arguments)),n}};function iy(e){return vr.array(e)?Gv(ny,e)?"mixed":"array":vr.object(e)?"map":"unknown"}function ny(e){return!(!vr.object(e)||!vr.string(e.key)||!Xu.call(e,"value"))}function oy(e,t){t=t||function(){};var r=new Image;return r.onerror=ay(t,"failed to load pixel",r),r.onload=function(){t()},r.src=e.src,r.width=1,r.height=1,r}function ay(e,t,r){return function(i){i=i||window.event;var n=new Error(t);n.event=i,n.source=r,e(n)}}function sy(e,t){return Gu(function(r,i,n){return r[n]=i.replace(/\{\{\ *(\w+)\ *\}\}/g,function(o,a){return t[a]}),r},{},e.attrs)}});var Qu=y(Se=>{"use strict";var uy=_e(),cy=zt(),py=ie(),fy=Ue();uy(Se);Se.option=function(e,t){return this.prototype.defaults[e]=t,this};Se.mapping=function(e){return this.option(e,[]),this.prototype[e]=function(t){return this.map(this.options[e],t)},this};Se.global=function(e){return this.prototype.globals.push(e),this};Se.assumesPageview=function(){return this.prototype._assumesPageview=!0,this};Se.readyOnLoad=function(){return this.prototype._readyOnLoad=!0,this};Se.readyOnInitialize=function(){return this.prototype._readyOnInitialize=!0,this};Se.tag=function(e,t){return t==null&&(t=e,e="library"),this.prototype.templates[e]=dy(t),this};function dy(e){e=e.replace(' src="',' data-src="');var t=cy(e),r={};return py(function(i){var n=i.name==="data-src"?"src":i.name;fy(i.name+"=",e)&&(r[n]=i.value)},t.attributes),{type:t.tagName.toLowerCase(),attrs:r}}});var rc=y(($m,tc)=>{"use strict";var Ku=ot(),ly=tt(),hy=re(),vy=we(),ec=At(),yy=St(),gy=Yu(),my=Qu();function _y(e){function t(r){if(r&&r.addIntegration)return r.addIntegration(t);this.debug=hy("analytics:integration:"+yy(e)),this.options=vy(ly(r)||{},this.defaults),this._queue=[],this.once("ready",Ku(this,this.flush)),t.emit("construct",this),this.ready=Ku(this,this.ready),this._wrapInitialize(),this._wrapPage(),this._wrapTrack()}return t.prototype.defaults={},t.prototype.globals=[],t.prototype.templates={},t.prototype.name=e,ec(t,my),ec(t.prototype,gy),t}tc.exports=_y});var nc=y((yr,ic)=>{yr=ic.exports=wy;function wy(e){return e.replace(/^\s*|\s*$/g,"")}yr.left=function(e){return e.replace(/^\s*/,"")};yr.right=function(e){return e.replace(/\s*$/,"")}});var ac=y((Em,oc)=>{var by=Object.prototype.toString;oc.exports=function(e){switch(by.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return e===null?"null":e===void 0?"undefined":e!==e?"nan":e&&e.nodeType===1?"element":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),typeof e)}});var sc=y(Ji=>{var gr=encodeURIComponent,Vi=decodeURIComponent,xy=nc(),qy=ac(),ky=/(\w+)\[(\d+)\]/;Ji.parse=function(e){if(typeof e!="string")return{};if(e=xy(e),e=="")return{};e.charAt(0)=="?"&&(e=e.slice(1));for(var t={},r=e.split("&"),i=0;i<r.length;i++){var n=r[i].split("="),o=Vi(n[0]),a;if(a=ky.exec(o)){t[a[1]]=t[a[1]]||[],t[a[1]][a[2]]=Vi(n[1]);continue}t[n[0]]=n[1]==null?"":Vi(n[1])}return t};Ji.stringify=function(e){if(!e)return"";var t=[];for(var r in e){var i=e[r];if(qy(i)=="array"){for(var n=0;n<i.length;++n)t.push(gr(r+"["+n+"]")+"="+gr(i[n]));continue}t.push(gr(r)+"="+gr(e[r]))}return t.join("&")}});var pc=y((Pm,cc)=>{cc.exports=function(e){switch(arguments.length){case 0:return uc();case 1:return jy(e)}};function jy(e){return uc()?"https:"+e:"http:"+e}function uc(){return location.protocol=="https:"||location.protocol=="chrome-extension:"}});var hc=y((zm,lc)=>{"use strict";var fc=Zr(),Ay=ie(),Cy=rc(),Oy=lt(),dc=sc(),Iy=pc(),Sy=Object.prototype.hasOwnProperty,mr=lc.exports=Cy("Pardot").assumesPageview().global("pi").global("piAId").global("piCId").global("piTracker").option("projectId","").option("piAId","").option("piCId","").tag("http",'<script src="http://cdn.pardot.com/pd.js">').tag("https",'<script src="https://pi.pardot.com/pd.js">');mr.prototype.initialize=function(){window.piAId=this.options.piAId,window.piCId=this.options.piCId;var e=Iy()?"https":"http";this.load(e,this.ready)};mr.prototype.loaded=function(){return!!window.piTracker};mr.prototype.identify=function(e){var t=e.traits(),r=e.email();if(r&&(t.email=r),!$y()&&t.email){var i=this.getRequestVariables();i.pi_email=t.email,Oy("//pi.pardot.com/analytics?"+dc.stringify(i))}};mr.prototype.getRequestVariables=function(){var e={account_id:window.piAId,campaign_id:window.piCId,pi_opt_in:fc("pi_opt_in"+(this.options.piAId-1e3)),ver:3,visitor_id:fc("visitor_id"+(this.options.piAId-1e3))},t=Ey(),r=["pi_email"];if(Ay(function(o){o in t&&(e[o]=t[o])},r),window.piIncludeInActivities!==void 0&&(e.pi_include_in_activies=window.piIncludeInActivities),window.piProfileId!==void 0&&(e.pi_profile_id=window.piProfileId),window.pi&&window.pi.tracker){for(var i in e)if(Sy.call(e,i)){var n=window.pi.tracker[i];n&&(e[i]=n)}}return e};function $y(){var e=window.pi;return!(!e||!e.tracker||String(e.tracker.pi_opt_in)==="false"||!e.tracker.title||!e.tracker.notify_pi)}function Ey(){return dc.parse(location.search.slice(1))}});var yc=y((Nm,vc)=>{"use strict";var Ty=lr(),vt=vc.exports=Ty("Google Analytics 4").global("gtag").global("ga4DataLayer").option("measurementIds",[]).option("cookieDomainName","auto").option("cookiePrefix","_ga").option("cookieExpiration",63072e3).option("cookieUpdate",!0).option("cookieFlags","").option("sendAutomaticPageViewEvent",!1).option("allowAllAdvertisingFeatures",!1).option("allowAdvertisingPersonalization",!1).option("disableGoogleAnalytics",!1).option("googleReportingIdentity","device").option("userProperties",{}).option("customEventMappings",[]).option("passthroughUnmappedEvents",!1).tag('<script src="//www.googletagmanager.com/gtag/js?id={{ measurementId }}&l=ga4DataLayer">');vt.prototype.initialize=function(){window.ga4DataLayer=window.ga4DataLayer||[],window.gtag=function(){window.ga4DataLayer.push(arguments)},window.gtag("js",new Date);var e=this.options,t=e.measurementIds;if(!(!t.length||e.disableGoogleAnalytics)){var r={send_page_view:e.sendAutomaticPageViewEvent,cookie_update:e.cookieUpdate,cookie_domain:e.cookieDomainName,cookie_prefix:e.cookiePrefix,cookie_expires:e.cookieExpiration,debug_mode:e.debugMode},i=[[{cookie_flags:e.cookieFlags}],["allow_google_signals",e.allowAllAdvertisingFeatures],["allow_ad_personalization_signals",e.allowAdvertisingPersonalization]],n=this;this.load({measurementId:t[0]},function(){for(var o=0;o<t.length;o++)window.gtag("config",t[o],r);for(var o=0;o<i.length;o++){var a=i[o].slice(0);a.unshift("set"),window.gtag.apply(null,a)}n.ready()})}};vt.prototype.loaded=function(){return!!(window.ga4DataLayer&&Array.prototype.push!==window.ga4DataLayer.push)};vt.prototype.identify=function(e){var t=this.options,r=t.userProperties,i={};for(var n in r)if(r.hasOwnProperty(n)){var o=r[n],a=e.proxy(n);i[o]=a}var u=e.userId(),f=t.googleReportingIdentity==="userIdSignalsAndDevice"||t.googleReportingIdentity==="userIdAndDevice";u&&f&&(i.user_id=u),Object.keys(i).length&&window.gtag("set","user_properties",i)};vt.prototype.group=function(e){window.gtag("event","join_group",{group_id:e.groupId()})};vt.prototype.page=function(e){if(!this.options.sendAutomaticPageViewEvent){var t=e.properties(),r=e.fullName(),i=t.url,n=e.referrer(),o=r||t.title;window.gtag("event","page_view",{page_location:i,page_referrer:n,page_title:o})}};vt.prototype.track=function(e){let t=Py(this.options,e.event());if(!t)return;let r=Array.isArray(t.parameters)?t.parameters.reduce((i,{googleParameter:n,segmentParameter:o})=>tn(en({},i),{[n]:e.proxy(o)}),{}):{};window.gtag("event",t.googleEvent,r)};function Py(e,t){return(e.customEventMappings||[]).find(n=>n.segmentEvent===t)||(e.passthroughUnmappedEvents?{googleEvent:t}:void 0)}});var _c=y((Dm,mc)=>{"use strict";var zy=lr(),gc=mc.exports=zy("HubSpot");gc.prototype.initialize=function(){this.ready()};gc.prototype.track=function(e){fetch("/hub_spot/track_event",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify(e.obj)})}});var _r=Nc(ms()),Ny=[tu(),qu(),Ju(),hc(),yc(),_c()];Ny.forEach(_r.default.use.bind(_r.default));window.analytics=_r.default;})();
/*! Bundled license information:
json3/lib/json3.js:
(*! JSON v3.3.2 | https://bestiejs.github.io/json3 | Copyright 2012-2015, Kit Cambridge, Benjamin Tan | http://kit.mit-license.org *)
is/index.js:
(**!
* is
* the definitive JavaScript type testing library
*
* @copyright 2013-2014 Enrico Marino / Jordan Harband
* @license MIT
*)
*/