PageSourceSearch

https://shop.truvani.com/cdn/shop/t/23/assets/truvani.min.js?v=120617115722069434031790794026

js truvani.com collected 2026-10-03 21:28:08 UTC 208,269 bytes, 7 lines download raw bytes

1var truvani=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return n(null==t&&r.path)}},r.exports),r.exports}function n(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var i=r((function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),o=t(i),a=r((function(e,t){var r;r=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
vendor: 10,020 bytes, line 1
1)+/g,decodeURIComponent)}return function r(n){function i(){}function o(t,r,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(r);/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in o)o[u]&&(s+="; "+u,!0!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=t+"="+r+s}}function a(e,r){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),u=s.slice(1).join("=");r||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=t(s[0]);if(u=(n.read||n)(u,c)||t(u),r)try{u=JSON.parse(u)}catch(e){}if(i[c]=u,e===c)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,r){o(t,"",e(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}((function(){}))},e.exports=r()})),s=r((function(e){var t=i.default;e.exports=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports})),u=r((function(e){var t=i.default;e.exports=function(e){var r=s(e,"string");return"symbol"===t(r)?r:String(r)},e.exports.__esModule=!0,e.exports.default=e.exports})),c=t(r((function(e){e.exports=function(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}))),l=r((function(e){e.exports=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},e.exports.__esModule=!0,e.exports.default=e.exports})),d=t(r((function(e){e.exports=function(e,t){if(null==e)return{};var r,n,i=l(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}))),f=Array.isArray,p="object"==typeof e&&e&&e.Object===Object&&e,h="object"==typeof self&&self&&self.Object===Object&&self,v=p||h||Function("return this")(),m=v.Symbol,g=Object.prototype,y=g.hasOwnProperty,b=g.toString,w=m?m.toStringTag:void 0;var _=function(e){var t=y.call(e,w),r=e[w];try{e[w]=void 0;var n=!0}catch(e){}var i=b.call(e);return n&&(t?e[w]=r:delete e[w]),i},O=Object.prototype.toString;var P=function(e){return O.call(e)},S=m?m.toStringTag:void 0;var T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?_(e):P(e)};var I=function(e){return null!=e&&"object"==typeof e};var C=function(e){return"symbol"==typeof e||I(e)&&"[object Symbol]"==T(e)},E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/;var D=function(e,t){if(f(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!C(e))||(x.test(e)||!E.test(e)||null!=t&&e in Object(t))};var A=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var M,k=function(e){if(!A(e))return!1;var t=T(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},j=v["__core-js_shared__"],L=(M=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"";var N=function(e){return!!L&&L in e},R=Function.prototype.toString;var $=function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""},B=/^\[object .+?Constructor\]$/,F=Function.prototype,W=Object.prototype,H=F.toString,U=W.hasOwnProperty,q=RegExp("^"+H.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var V=function(e){return!(!A(e)||N(e))&&(k(e)?q:B).test($(e))};var z=function(e,t){return null==e?void 0:e[t]};var Y=function(e,t){var r=z(e,t);return V(r)?r:void 0},K=Y(Object,"create");var G=function(){this.__data__=K?K(null):{},this.size=0};var Q=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},J=Object.prototype.hasOwnProperty;var Z=function(e){var t=this.__data__;if(K){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return J.call(t,e)?t[e]:void 0},X=Object.prototype.hasOwnProperty;var ee=function(e){var t=this.__data__;return K?void 0!==t[e]:X.call(t,e)};var te=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=K&&void 0===t?"__lodash_hash_undefined__":t,this};function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=G,re.prototype.delete=Q,re.prototype.get=Z,re.prototype.has=ee,re.prototype.set=te;var ne=re;var ie=function(){this.__data__=[],this.size=0};var oe=function(e,t){return e===t||e!=e&&t!=t};var ae=function(e,t){for(var r=e.length;r--;)if(oe(e[r][0],t))return r;return-1},se=Array.prototype.splice;var ue=function(e){var t=this.__data__,r=ae(t,e);return!(r<0)&&(r==t.length-1?t.pop():se.call(t,r,1),--this.size,!0)};var ce=function(e){var t=this.__data__,r=ae(t,e);return r<0?void 0:t[r][1]};var le=function(e){return ae(this.__data__,e)>-1};var de=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function fe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fe.prototype.clear=ie,fe.prototype.delete=ue,fe.prototype.get=ce,fe.prototype.has=le,fe.prototype.set=de;var pe=fe,he=Y(v,"Map");var ve=function(){this.size=0,this.__data__={hash:new ne,map:new(he||pe),string:new ne}};var me=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ge=function(e,t){var r=e.__data__;return me(t)?r["string"==typeof t?"string":"hash"]:r.map};var ye=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t};var be=function(e){return ge(this,e).get(e)};var we=function(e){return ge(this,e).has(e)};var _e=function(e,t){var r=ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Oe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Oe.prototype.clear=ve,Oe.prototype.delete=ye,Oe.prototype.get=be,Oe.prototype.has=we,Oe.prototype.set=_e;var Pe=Oe;function Se(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Se.Cache||Pe),r}Se.Cache=Pe;var Te=Se;var Ie=function(e){var t=Te(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},Ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ee=/\\(\\)?/g,xe=Ie((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ce,(function(e,r,n,i){t.push(n?i.replace(Ee,"$1"):r||e)})),t}));var De=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},Ae=m?m.prototype:void 0,Me=Ae?Ae.toString:void 0;var ke=function e(t){if("string"==typeof t)return t;if(f(t))return De(t,e)+"";if(C(t))return Me?Me.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var je=function(e){return null==e?"":ke(e)};var Le=function(e,t){return f(e)?e:D(e,t)?[e]:xe(je(e))};var Ne=function(e){if("string"==typeof e||C(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Re=function(e,t){for(var r=0,n=(t=Le(t,e)).length;null!=e&&r<n;)e=e[Ne(t[r++])];return r&&r==n?e:void 0};var $e=function(e,t,r){var n=null==e?void 0:Re(e,t);return void 0===n?r:n};var Be=function(){this.__data__=new pe,this.size=0};var Fe=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var We=function(e){return this.__data__.get(e)};var He=function(e){return this.__data__.has(e)};var Ue=function(e,t){var r=this.__data__;if(r instanceof pe){var n=r.__data__;if(!he||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pe(n)}return r.set(e,t),this.size=r.size,this};function qe(e){var t=this.__data__=new pe(e);this.size=t.size}qe.prototype.clear=Be,qe.prototype.delete=Fe,qe.prototype.get=We,qe.prototype.has=He,qe.prototype.set=Ue;var Ve=qe;var ze=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Ye=function(){try{var e=Y(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ke=Ye;var Ge=function(e,t,r){"__proto__"==t&&Ke?Ke(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},Qe=Object.prototype.hasOwnProperty;var Je=function(e,t,r){var n=e[t];Qe.call(e,t)&&oe(n,r)&&(void 0!==r||t in e)||Ge(e,t,r)};var Ze=function(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),i?Ge(r,s,u):Je(r,s,u)}return r};var Xe=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var et=function(e){return I(e)&&"[object Arguments]"==T(e)},tt=Object.prototype,rt=tt.hasOwnProperty,nt=tt.propertyIsEnumerable,it=et(function(){return arguments}())?et:function(e){return I(e)&&rt.call(e,"callee")&&!nt.call(e,"callee")},ot=it;var at=function(){return!1},st=r((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,i=n&&n.exports===r?v.Buffer:void 0,o=(i?i.isBuffer:void 0)||at;e.exports=o})),ut=/^(?:0|[1-9]\d*)$/;var ct=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ut.test(e))&&e>-1&&e%1==0&&e<t};var lt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},dt={};
1dt["[object Float32Array]"]=dt["[object Float64Array]"]=dt["[object Int8Array]"]=dt["[object Int16Array]"]=dt["[object Int32Array]"]=dt["[object Uint8Array]"]=dt["[object Uint8ClampedArray]"]=dt["[object Uint16Array]"]=dt["[object Uint32Array]"]=!0,dt["[object Arguments]"]=dt["[object Array]"]=dt["[object ArrayBuffer]"]=dt["[object Boolean]"]=dt["[object DataView]"]=dt["[object Date]"]=dt["[object Error]"]=dt["[object Function]"]=dt["[object Map]"]=dt["[object Number]"]=dt["[object Object]"]=dt["[object RegExp]"]=dt["[object Set]"]=dt["[object String]"]=dt["[object WeakMap]"]=!1;var ft=function(e){return I(e)&&lt(e.length)&&!!dt[T(e)]};var pt=function(e){return function(t){return e(t)}},ht=r((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,i=n&&n.exports===r&&p.process,o=function(){try{var e=n&&n.require&&n.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),vt=ht&&ht.isTypedArray,mt=vt?pt(vt):ft,gt=Object.prototype.hasOwnProperty;var yt=function(e,t){var r=f(e),n=!r&&ot(e),i=!r&&!n&&st(e),o=!r&&!n&&!i&&mt(e),a=r||n||i||o,s=a?Xe(e.length,String):[],u=s.length;for(var c in e)!t&&!gt.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ct(c,u))||s.push(c);return s},bt=Object.prototype;var wt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||bt)};var _t=function(e,t){return function(r){return e(t(r))}},Ot=_t(Object.keys,Object),Pt=Object.prototype.hasOwnProperty;var St=function(e){if(!wt(e))return Ot(e);var t=[];for(var r in Object(e))Pt.call(e,r)&&"constructor"!=r&&t.push(r);return t};var Tt=function(e){return null!=e&&lt(e.length)&&!k(e)};var It=function(e){return Tt(e)?yt(e):St(e)};var Ct=function(e,t){return e&&Ze(t,It(t),e)};var Et=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},xt=Object.prototype.hasOwnProperty;var Dt=function(e){if(!A(e))return Et(e);var t=wt(e),r=[];for(var n in e)("constructor"!=n||!t&&xt.call(e,n))&&r.push(n);return r};var At=function(e){return Tt(e)?yt(e,!0):Dt(e)};var Mt=function(e,t){return e&&Ze(t,At(t),e)},kt=r((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,i=n&&n.exports===r?v.Buffer:void 0,o=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=o?o(r):new e.constructor(r);return e.copy(n),n}}));var jt=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var Lt=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o};var Nt=function(){return[]},Rt=Object.prototype.propertyIsEnumerable,$t=Object.getOwnPropertySymbols,Bt=$t?function(e){return null==e?[]:(e=Object(e),Lt($t(e),(function(t){return Rt.call(e,t)})))}:Nt;var Ft=function(e,t){return Ze(e,Bt(e),t)};var Wt=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},Ht=_t(Object.getPrototypeOf,Object),Ut=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Wt(t,Bt(e)),e=Ht(e);return t}:Nt;var qt=function(e,t){return Ze(e,Ut(e),t)};var Vt=function(e,t,r){var n=t(e);return f(e)?n:Wt(n,r(e))};var zt=function(e){return Vt(e,It,Bt)};var Yt=function(e){return Vt(e,At,Ut)},Kt=Y(v,"DataView"),Gt=Y(v,"Promise"),Qt=Y(v,"Set"),Jt=Y(v,"WeakMap"),Zt="[object Map]",Xt="[object Promise]",er="[object Set]",tr="[object WeakMap]",rr="[object DataView]",nr=$(Kt),ir=$(he),or=$(Gt),ar=$(Qt),sr=$(Jt),ur=T;(Kt&&ur(new Kt(new ArrayBuffer(1)))!=rr||he&&ur(new he)!=Zt||Gt&&ur(Gt.resolve())!=Xt||Qt&&ur(new Qt)!=er||Jt&&ur(new Jt)!=tr)&&(ur=function(e){var t=T(e),r="[object Object]"==t?e.constructor:void 0,n=r?$(r):"";if(n)switch(n){case nr:return rr;case ir:return Zt;case or:return Xt;case ar:return er;case sr:return tr}return t});var cr=ur,lr=Object.prototype.hasOwnProperty;var dr=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&lr.call(e,"index")&&(r.index=e.index,r.input=e.input),r},fr=v.Uint8Array;var pr=function(e){var t=new e.constructor(e.byteLength);return new fr(t).set(new fr(e)),t};var hr=function(e,t){var r=t?pr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},vr=/\w*$/;var mr=function(e){var t=new e.constructor(e.source,vr.exec(e));return t.lastIndex=e.lastIndex,t},gr=m?m.prototype:void 0,yr=gr?gr.valueOf:void 0;var br=function(e){return yr?Object(yr.call(e)):{}};var wr=function(e,t){var r=t?pr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var _r=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return pr(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return hr(e,r);
1case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return wr(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return mr(e);case"[object Symbol]":return br(e)}},Or=Object.create,Pr=function(){function e(){}return function(t){if(!A(t))return{};if(Or)return Or(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var Sr=function(e){return"function"!=typeof e.constructor||wt(e)?{}:Pr(Ht(e))};var Tr=function(e){return I(e)&&"[object Map]"==cr(e)},Ir=ht&&ht.isMap,Cr=Ir?pt(Ir):Tr;var Er=function(e){return I(e)&&"[object Set]"==cr(e)},xr=ht&&ht.isSet,Dr=xr?pt(xr):Er,Ar="[object Arguments]",Mr="[object Function]",kr="[object Object]",jr={};jr[Ar]=jr["[object Array]"]=jr["[object ArrayBuffer]"]=jr["[object DataView]"]=jr["[object Boolean]"]=jr["[object Date]"]=jr["[object Float32Array]"]=jr["[object Float64Array]"]=jr["[object Int8Array]"]=jr["[object Int16Array]"]=jr["[object Int32Array]"]=jr["[object Map]"]=jr["[object Number]"]=jr[kr]=jr["[object RegExp]"]=jr["[object Set]"]=jr["[object String]"]=jr["[object Symbol]"]=jr["[object Uint8Array]"]=jr["[object Uint8ClampedArray]"]=jr["[object Uint16Array]"]=jr["[object Uint32Array]"]=!0,jr["[object Error]"]=jr[Mr]=jr["[object WeakMap]"]=!1;var Lr=function e(t,r,n,i,o,a){var s,u=1&r,c=2&r,l=4&r;if(n&&(s=o?n(t,i,o,a):n(t)),void 0!==s)return s;if(!A(t))return t;var d=f(t);if(d){if(s=dr(t),!u)return jt(t,s)}else{var p=cr(t),h=p==Mr||"[object GeneratorFunction]"==p;if(st(t))return kt(t,u);if(p==kr||p==Ar||h&&!o){if(s=c||h?{}:Sr(t),!u)return c?qt(t,Mt(s,t)):Ft(t,Ct(s,t))}else{if(!jr[p])return o?t:{};s=_r(t,p,u)}}a||(a=new Ve);var v=a.get(t);if(v)return v;a.set(t,s),Dr(t)?t.forEach((function(i){s.add(e(i,r,n,i,t,a))})):Cr(t)&&t.forEach((function(i,o){s.set(o,e(i,r,n,o,t,a))}));var m=d?void 0:(l?c?Yt:zt:c?At:It)(t);return ze(m||t,(function(i,o){m&&(i=t[o=i]),Je(s,o,e(i,r,n,o,t,a))})),s};var Nr=function(e){return Lr(e,5)};function Rr(e){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(e)}function $r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Br(e){$r(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Rr(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Fr(e,t){$r(2,arguments);var r=Br(e),n=Br(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function Wr(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Hr(e,t){if($r(2,arguments),!t||"object"!==Rr(t))return new Date(NaN);var r=t.years?Wr(t.years):0,n=t.months?Wr(t.months):0,i=t.weeks?Wr(t.weeks):0,o=t.days?Wr(t.days):0,a=t.hours?Wr(t.hours):0,s=t.minutes?Wr(t.minutes):0,u=t.seconds?Wr(t.seconds):0,c=Br(e),l=n||r?function(e,t){$r(2,arguments);var r=Br(e),n=Wr(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),o=new Date(r.getTime());return o.setMonth(r.getMonth()+n+1,0),i>=o.getDate()?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}(c,n+12*r):c,d=o||i?function(e,t){$r(2,arguments);var r=Br(e),n=Wr(t);return isNaN(n)?new Date(NaN):n?(r.setDate(r.getDate()+n),r):r}(l,o+7*i):l,f=1e3*(u+60*(s+60*a));return new Date(d.getTime()+f)}function Ur(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function qr(e){$r(1,arguments);var t=Br(e);return t.setHours(0,0,0,0),t}var Vr=864e5;function zr(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function Yr(e,t){$r(2,arguments);var r=Br(e),n=Br(t),i=zr(r,n),o=Math.abs(function(e,t){$r(2,arguments);var r=qr(e),n=qr(t),i=r.getTime()-Ur(r),o=n.getTime()-Ur(n);return Math.round((i-o)/Vr)}(r,n));r.setDate(r.getDate()-i*o);var a=i*(o-Number(zr(r,n)===-i));return 0===a?0:a}var Kr=6e4,Gr=36e5;function Qr(e,t){return $r(2,arguments),Br(e).getTime()-Br(t).getTime()}var Jr={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Zr="trunc";function Xr(e){return e?Jr[e]:Jr[Zr]}function en(e){$r(1,arguments);var t=Br(e);return function(e){$r(1,arguments);var t=Br(e);return t.setHours(23,59,59,999),t}(t).getTime()===function(e){$r(1,arguments);var t=Br(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}(t).getTime()}function tn(e,t){$r(2,arguments);var r,n=Br(e),i=Br(t),o=Fr(n,i),a=Math.abs(function(e,t){$r(2,arguments);var r=Br(e),n=Br(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,i));if(a<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=Fr(n,i)===-o;en(Br(e))&&1===a&&1===Fr(e,i)&&(s=!1),r=o*(a-Number(s))}return 0===r?0:r}function rn(e,t){$r(2,arguments);var r=Br(e),n=Br(t),i=Fr(r,n),o=Math.abs(function(e,t){$r(2,arguments);var r=Br(e),n=Br(t);return r.getFullYear()-n.getFullYear()}(r,n));r.setFullYear(1584),n.setFullYear(1584);var a=Fr(r,n)===-i,s=i*(o-Number(a));return 0===s?0:s}function nn(e){$r(1,arguments);var t=Br(e.start),r=Br(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invali
1d");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(rn(r,t));var i=Fr(r,t),o=Hr(t,{years:i*n.years});n.months=Math.abs(tn(r,o));var a=Hr(o,{months:i*n.months});n.days=Math.abs(Yr(r,a));var s=Hr(a,{days:i*n.days});n.hours=Math.abs(function(e,t,r){$r(2,arguments);var n=Qr(e,t)/Gr;return Xr(null==r?void 0:r.roundingMethod)(n)}(r,s));var u=Hr(s,{hours:i*n.hours});n.minutes=Math.abs(function(e,t,r){$r(2,arguments);var n=Qr(e,t)/Kr;return Xr(null==r?void 0:r.roundingMethod)(n)}(r,u));var c=Hr(u,{minutes:i*n.minutes});return n.seconds=Math.abs(function(e,t,r){$r(2,arguments);var n=Qr(e,t)/1e3;return Xr(null==r?void 0:r.roundingMethod)(n)}(r,c)),n}function on(e){return $r(1,arguments),Br(e).getTime()<Date.now()}var an=r((function(e,t){!function(t,r){e.exports=r()}(0,(function(){var e=[],t=[],r={},n={},i={};function o(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(t[0],(function(r,n){var i,o,s=(i=t[1],o=arguments,i.replace(/\$(\d{1,2})/g,(function(e,t){return o[t]||""})));return a(""===r?e[n-1]:r,s)}))}function u(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var i=n.length;i--;){var o=n[i];if(o[0].test(t))return s(t,o)}return t}function c(e,t,r){return function(n){var i=n.toLowerCase();return t.hasOwnProperty(i)?a(n,i):e.hasOwnProperty(i)?a(n,e[i]):u(i,n,r)}}function l(e,t,r,n){return function(n){var i=n.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&u(i,i,r)===i}}function d(e,t,r){return(r?t+" ":"")+(1===t?d.singular(e):d.plural(e))}return d.plural=c(i,n,e),d.isPlural=l(i,n,e),d.singular=c(n,i,t),d.isSingular=l(n,i,t),d.addPluralRule=function(t,r){e.push([o(t),r])},d.addSingularRule=function(e,r){t.push([o(e),r])},d.addUncountableRule=function(e){"string"!=typeof e?(d.addPluralRule(e,"$0"),d.addSingularRule(e,"$0")):r[e.toLowerCase()]=!0},d.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach((function(e){return d.addIrregularRule(e[0],e[1])})),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEac
1h((function(e){return d.addPluralRule(e[0],e[1])})),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach((function(e){return d.addSingularRule(e[0],e[1])})),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(d.addUncountableRule),d}))}));function sn(e){var t=e.label,r=e.globalOptions,n=e.componentConfig,i=e.reviewSummaries,a=void 0===i?[]:i;function s(e,t){return Array.isArray(t)?e.filter((function(e){return t.some((function(t){return t===e.key}))})).reduce((function(e,r){return e.count+=r.count,e.average+=r.average/t.length,e}),{count:0,average:0}):e.find((function(e){return e.key===t}))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=r?"subscribeMany":"addMany",i=e.reduce((function(e,t){var r=Array.isArray(t.variantId)?t.variantId:[t.variantId];return e=e.concat(r),Array.from(new Set(e))}),[]),o=$e(Spruce.store("buy")||{},"currentBulkDiscountQuantity",1);r&&(o=1);var a=i.map((function(e){return{id:e,quantity:o,properties:t}}));return Qs.cart[n](a)}var c=r.config;if(Object.keys(r).includes("config")||(c=r),c&&c.products.length>0&&c.products.some((function(e){return!0===e.soldOut}))){c.products=c.products.map((function(e){return!0!==e.soldOut||e.label.includes("SOLD OUT")||(e.label=e.label+" - SOLD OUT"),e})),c.products=c.products.filter((function(e){return!0!==e.soldOut||void 0!==e.waitListLink})).concat(c.products.filter((function(e){return!0===e.soldOut&&void 0===e.waitListLink})));var l=c.products.find((function(e){return!0!==e.soldOut})).key;null!=l&&Qs.fire("buy-box-dropdown:changed",{label:t,value:l})}var d=void 0!==Object.keys(c).find((function(e){return"grid"===e}));if(c.products.length<1)throw new Error("You must provide at least one product to buyBox.");return c.soldOut&&(c.shipping=""!=c.shipping?c.shipping:"TEMPORARILY UNAVAILABLE",c.lead=""!=c.soldOutLead?c.soldOutLead:"Due to high demand, these products are temporarily unavailable while we ship all the current orders."),{label:t,globalOptions:r,componentConfig:n,customerId:r.customerId,init:function(e,t,r,n){var i=this;this.$el=e,this.$refs=t,this.$dispatch=r,this.$watch=n,!1===Qs.buy.initialized&&(Qs.buy.init(c.products[0]),void 0!==this.customerId&&fetch("https://recharge-api-wrapper.truvani.workers.dev/customers/".concat(this.customerId,"/deliveries?limit=1&min_next_delivery_date=tomorrow"),{method:"GET"}).then((function(e){return e.json()})).then((function(e){i.$store.buy.subscription={address_id:e.address_id,next_charge_scheduled_at:e.next_charge_scheduled_at},Qs.fire("subscription:deliverydate:fetched",new Date(e.next_charge_scheduled_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})),i.upcomingDeliveryDate=new Date(e.next_charge_scheduled_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})}))),this.registerListeners(),d||this.$nextTick((function(e){i.$store.buy.selectedProducts.length>0&&(i.$store.buy.selectedProducts=[]),"bundle"===i.mode?i.products.forEac
1h((function(e){return i.$store.buy.selectedProducts.push(e.key)})):(i.$store.buy.selectedProduct=i.products[0].key,i.$store.buy.selectedProducts=[i.$store.buy.selectedProduct]),i.override&&Object.keys(i.override).map((function(e){i.override&&i.$store.buy[e]&&(i.$store.buy[e]=i.override[e])})),i.$store.buy.totalPricing=Qs.buy.updateTotalPricing(i.getAllItems(),i.$store.buy.selectedProducts,i.$store.buy.currentBulkDiscountQuantity),i.$store.buy.currentPrice=Qs.buy.updateCurrentPrice(i.$store.buy.currentPurchaseOptionType,i.$store.buy.totalPricing)})),this.estimateDelivery(),this.estimateDeliveryTime()},registerListeners:function(){var e=this;window.addEventListener("shipping:initialized",(function(){e.estimateDelivery()})),this.$watch("$store.buy.currentProduct",this.handleCurrentProductChanged.bind(this)),this.$watch("$store.buy.selectedProduct",(function(t){var r=Qs.buy.selectedProductChanged(t,e.$store.buy.currentProduct.key,e.products,e.$store.buy.selectedProducts);e.$store.buy.currentProduct=r.selectedProduct,e.$store.buy.selectedProducts=r.selectedProducts,e.$store.buy.currentProduct.soldOut?(e.soldOut=!0,e.shipping="SOLD OUT"):c.soldOut||(e.soldOut=!1,e.shipping="In Stock Ready to Ship")})),this.$watch("$store.buy.selectedProducts",(function(){e.$store.buy.totalPricing=Qs.buy.updateTotalPricing(e.getAllItems(),e.$store.buy.selectedProducts,e.$store.buy.currentBulkDiscountQuantity),e.$store.buy.currentPrice=Qs.buy.updateCurrentPrice(e.$store.buy.currentPurchaseOptionType,e.$store.buy.totalPricing)})),this.$watch("$store.buy.totalPricing",(function(){e.$store.buy.currentPrice=Qs.buy.updateCurrentPrice(e.$store.buy.currentPurchaseOptionType,e.$store.buy.totalPricing)})),this.$watch("$store.buy.currentPurchaseOptionType",(function(){e.$store.buy.currentBulkDiscountQuantity=1,e.$store.buy.totalPricing=Qs.buy.updateTotalPricing(e.getAllItems(),e.$store.buy.selectedProducts,e.$store.buy.currentBulkDiscountQuantity),e.$store.buy.currentPrice=Qs.buy.updateCurrentPrice(e.$store.buy.currentPurchaseOptionType,e.$store.buy.totalPricing)})),this.$watch("$store.buy.currentBulkDiscountQuantity",(function(){e.$store.buy.totalPricing=Qs.buy.updateTotalPricing(e.getAllItems(),e.$store.buy.selectedProducts,e.$store.buy.currentBulkDiscountQuantity),e.$store.buy.currentPrice=Qs.buy.updateCurrentPrice(e.$store.buy.currentPurchaseOptionType,e.$store.buy.totalPricing)}))},getAllItems:function(){var e=JSON.parse(Nr(JSON.stringify(this.products))).concat(JSON.parse(Nr(JSON.stringify(this.addOns)))).reduce((function(e,t){return e[t.key]=t,e}),{});return Object.values(e)},addSubscriptionToCart:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Qs.fire("buy-mixin:item-added",this.$store.buy.currentProduct.subscription),this.subscriptionHandler)return Qs.fire(this.subscriptionHandler,{product:Nr(this.$store.buy.currentProduct),type:"subscription"});var r=this.getAllItems().filter((function(t){return e.$store.buy.selectedProducts.includes(t.key)})).map((function(e){return e.subscription})).filter(Boolean);u(r,this.getLineItemProperties(r[0]||{}),!0),t&&Qs.fire("ui:drawer:open")},addOneTimePurchaseToCart:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("false"===Qs.utilities.getCookie("sub_upsell_".concat(window.location.pathname))&&"object"===o(this.oneTimePurchaseHandler)&&this.oneTimePurchaseHandler.arguments.includes("upsell")&&(this.oneTimePurchaseHandler=""),Qs.fire("buy-mixin:item-added",this.$store.buy.currentProduct.oneTimePurchase),this.oneTimePurchaseHandler&&r){if("string"==typeof this.oneTimePurchaseHandler)return Qs.fire(this.oneTimePurchaseHandler,{product:Nr(this.$store.buy.currentProduct),type:"oneTimePurchase"});if("object"===o(this.oneTimePurchaseHandler))return Qs.fire(this.oneTimePurchaseHandler.event,this.oneTimePurchaseHandler.arguments);throw new Error("Incorrect One Time Purchase handler.")}var n=this.getAllItems().filter((function(t){return e.$store.buy.selectedProducts.includes(t.key)})).map((function(e){return e.oneTimePurchase}
1)).filter(Boolean);u(n,this.getLineItemProperties(n[0]||{})),t&&Qs.fire("ui:drawer:open")},dispatchChanged:function(){Qs.fire("buy-component:changed",{id:this.label,purchaseOptionType:this.$store.buy.currentPurchaseOptionType})},fireSoldOutHandler:function(){if(this.soldOutHandler){if("string"==typeof this.soldOutHandler)return document.dispatchEvent(new CustomEvent(this.soldOutHandler));if("object"===o(this.soldOutHandler))return document.dispatchEvent(new CustomEvent(this.soldOutHandler,this.soldOutHandler.arguments));throw new Error("Incorrect Sold Out handler.")}return!1},getLineItemProperties:function(e){var t={};return this.promo&&this.promo.name&&(t._promo=this.promo.name),this.promo&&this.promo.type&&(t._promoType=this.promo.type),this.promo&&this.promo.type&&(t._trueSubDiscount=this.promo.trueSubDiscount),this.offer&&(t._offer=this.offer),e.gifts&&(t._gifts=e.gifts),t},handleCurrentProductChanged:function(e){this.reviewSummaries&&(this.currentReviewSummary=s(this.reviewSummaries,e.reviewsKey||e.key)),this.estimateDelivery(),this.$store.buy.currentBulkDiscountQuantity=1},handleReviewsFetched:function(e){this.reviewSummaries=Object.keys(e).reduce((function(t,r){return t.push({key:r,count:e[r].total_reviews,average:e[r].average_score}),t}),[]),this.currentReviewSummary=s(this.reviewSummaries,c.products[0].reviewsKey||c.products[0].key)},toggleProduct:function(e){this.$store.buy.selectedProducts.find((function(t){return t===e}))?this.$store.buy.selectedProducts.length>1&&(this.$store.buy.selectedProducts=Qs.buy.removeSelectedItem(e,this.$store.buy.selectedProducts)):this.$store.buy.selectedProducts=Qs.buy.addSelectedItem(e,this.$store.buy.selectedProducts)},updateCurrentProduct:function(e){var t=this.products.find((function(t){return t.key===e}));t&&(this.$store.buy.currentProduct=t)},hasSavings:function(e){return!(!e.final||!e.regular||e.final>=e.regular)&&e.final<e.regular},hasBulkDiscounts:function(){return $e(this.$store.buy.currentProduct,"".concat(this.$store.buy.currentPurchaseOptionType,".bulkDiscounts"),!1)},getSavingsPercentage:function(e){if(!this.hasSavings(e))return 0;var t=e.final;return t>800&&(t=(e.final/100).toFixed(2)),100-Math.round(t/e.regular*100)},getRecurringSavingsPercentage:function(e){return this.hasSavings(e)?void 0!==e.original?-1*(Math.round(e.original/e.regular*100)-100):this.getSavingsPercentage(e):0},hasFirstMonthSavings:function(e){return!(!this.hasSavings(e)||!e.original||e.original<=0)&&this.getSavingsPercentage(e)!==this.getRecurringSavingsPercentage(e)},getBuyButtonText:function(){var e="subscription"===this.$store.buy.currentPurchaseOptionType?"Subscribe & Save":"One-Time Purchase";return this.specialBuyButtonText?this.soldOutHandler?"JOIN THE WAIT LIST":"subscription"===this.$store.buy.currentPurchaseOptionType?"".concat(e," - ").concat(Qs.utilities.formatCurrency(this.$store.buy.currentPrice)):"".concat(this.specialBuyButtonText.replace("{PRICE}",Qs.utilities.formatCurrency(this.$store.buy.currentPrice))):this.customBuyButtonText?this.soldOutHandler?"JOIN THE WAIT LIST":"".concat(this.customBuyButtonText.replace("{PRICE}",Qs.utilities.formatCurrency(this.$store.buy.currentPrice))," - ").concat(e):this.soldOutHandler?"JOIN THE WAIT LIST":'<i class="fa fa-lock text-white text-sm pr-2"></i> '.concat(e," - ").concat(Qs.utilities.formatCurrency(this.$store.buy.currentPrice))},getBuyDiscountText:function(){var e=this;if(1!=this.hasSpecialDiscountText)return null;if("subscription"===this.$store.buy.currentPurchaseOptionType)return"".concat(Qs.utilities.formatCurrency(this.$store.buy.currentProduct.oneTimePurchase.price.final)," BUY ONCE");var t=this.$store.buy.currentProduct&&this.$store.buy.currentProduct.oneTimePurchase&&this.$store.buy.currentProduct.oneTimePurchase.bulkDiscounts?this.$store.buy.currentProduct.oneTimePurchase.bulkDiscounts.find((function(t){return t.quantity===e.$store.buy.currentBulkDiscountQuantity})):null;return 1==this.$store.buy.currentBulkDiscountQuantity?"".concat(Qs.utilities.formatCurrency(this.$store.buy.currentPrice)," BUY ONCE"):"".concat(Qs.utilities.formatCurrency(this.$store.buy.currentPrice)," BUY ONCE").concat(t&&t.price.percent?" & SAVE ".concat(t.price.percent,"%"):"")},buyNowHandler:function(){this.soldOut?this.fireSoldOutHandler():"subscription"===this.$store.buy.currentPurchaseOptionType?this.addSubscriptionToCart():this.addOneTimePurchaseToCart(),this.oneTimePurchaseHandler||this.subscriptionHandler||this.soldOutHandler||Qs.fire("ui:modal:close")},buyLaterHandler:function(){"subscription"===this.$store.buy.currentPurchaseOptionType?Qs.fire("ui:modal:open","addToOrderSub-modal"):Qs.fire("ui:modal:open","addToOrderOtp-modal")},addToOrderButtonHandler:function(){this.soldOut?this.fireSoldOutHandler():"subscription"===this.$store.buy.currentPurchaseOptionType?this.addSubscriptionToCart(!1):this.addOneTimePurchaseToCart(!1,!1)},estimateDelivery:function(){this.estimatedDelivery=Qs.shipping.defaultDeliveryEstimate(this.estimatedDeliveryPadding)},estimateDeliveryTime:function(){var e=this,t=new Date((new Date).toLocaleStr
1ing("en-US",{timeZone:"America/Los_Angeles"}));if(t.getHours()>=11&&t.setDate(t.getDate()+1),t.setHours(11,0,0,0),!this.hideInitialDeliveryTime)var r=setInterval((function(){var n=nn({start:new Date((new Date).toLocaleString("en-US",{timeZone:"America/Los_Angeles"})),end:t});0===n.hours?e.estimatedDeliveryTime="Faster Delivery <u>Order within ".concat(an("min",n.minutes,!0)," & ").concat(an("sec",n.seconds,!0)," </u>"):e.estimatedDeliveryTime="Faster Delivery <u>Order within ".concat(an("hr",n.hours,!0)," & ").concat(an("min",n.minutes,!0),"</u>"),(on(t)||n.hours>=8)&&(e.estimateDelivery(),e.estimatedDeliveryTime=e.estimatedDelivery,clearInterval(r))}),1e3)},selectProduct:function(e){console.log("Selecting product with key: ",e),this.selectedProduct=this.products.find((function(t){return t.key===e})),console.log("Selected product: ",this.selectedProduct)},addOns:$e(c,"addOns",[]),soldOut:$e(c,"soldOut",!1),soldOutLead:$e(c,"soldOutLead",""),mode:$e(c,"mode","normal"),currentReviewSummary:s(a,c.products[0].reviewsKey||c.products[0].key),offer:$e(r,"offer",""),products:$e(c,"products",[]),promo:$e(r,"promo",{}),oneTimePurchaseHandler:c.oneTimePurchaseHandler,soldOutHandler:c.soldOutHandler,reviewSummaries:a,subscriptionHandler:c.subscriptionHandler,title:$e(c,"title",""),override:$e(c,"override",{}),ohiShipping:$e(c,"ohiShipping",!1),upcomingDeliveryDate:"",customSavingsText:"",customBuyButtonText:$e(c,"customBuyButtonText",!1),specialBuyButtonText:$e(c,"specialBuyButtonText",!1),hasSpecialDiscountText:$e(c,"hasSpecialDiscountText",!1),addToNextOrder:!1,mobileTest:$e(c,"mobileTest",!1),estimatedDelivery:$e(c,"estimatedDelivery",""),estimatedDeliveryTime:$e(c,"estimatedDeliveryTime",""),hideInitialDeliveryTime:$e(c,"hideInitialDeliveryTime",!1),estimatedDeliveryPadding:$e(c,"estimatedDeliveryPadding",0),buyWithPrime:$e(c,"buyWithPrime",{sku:"",price:{original:0,final:0}})}}var un=r((function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","t
1imes","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var i in r){var o=r[i];e.call(n,o)?n[o].push(i):n[o]=[i]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})),cn={},ln=Array.prototype.push;function dn(e,t){return 2==t?function(t,r){return e(t,r)}:function(t){return e(t)}}function fn(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function pn(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var i=n[0]=t.apply(void 0,n);return e.apply(void 0,n),i}}}var hn=function e(t,r,n,i){var o="function"==typeof r,a=r===Object(r);
vendor: 5,208 bytes, line 1
1if(a&&(i=n,n=r,r=void 0),null==n)throw new TypeError;i||(i={});var s={cap:!("cap"in i)||i.cap,curry:!("curry"in i)||i.curry,fixed:!("fixed"in i)||i.fixed,immutable:!("immutable"in i)||i.immutable,rearg:!("rearg"in i)||i.rearg},u=o?n:cn,c="curry"in i&&i.curry,l="fixed"in i&&i.fixed,d="rearg"in i&&i.rearg,f=o?n.runInContext():void 0,p=o?n:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},h=p.ary,v=p.assign,m=p.clone,g=p.curry,y=p.forEach,b=p.isArray,w=p.isError,_=p.isFunction,O=p.isWeakMap,P=p.keys,S=p.rearg,T=p.toInteger,I=p.toPath,C=P(un.aryMethod),E={castArray:function(e){return function(){var t=arguments[0];return b(t)?e(fn(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],r=e(arguments[0],t),n=r.length;return s.cap&&"number"==typeof t?(t=t>2?t-2:1,n&&n<=t?r:dn(r,t)):r}},mixin:function(e){return function(t){var r=this;if(!_(r))return e(r,Object(t));var n=[];return y(P(t),(function(e){_(t[e])&&n.push([e,r.prototype[e]])})),e(r,Object(t)),y(n,(function(e){var t=e[1];_(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]})),r}},nthArg:function(e){return function(t){var r=t<0?1:T(t)+1;return g(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return g(e(t,r),n)}},runInContext:function(r){return function(n){return e(t,r(n),i)}}};function x(e,t){if(s.cap){var r=un.iterateeRearg[e];if(r)return function(e,t){return j(e,(function(e){var r=t.length;return function(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(S(dn(e,r),t),r)}))}(t,r);var n=!o&&un.iterateeAry[e];if(n)return function(e,t){return j(e,(function(e){return"function"==typeof e?dn(e,t):e}))}(t,n)}return t}function D(e,t,r){if(s.fixed&&(l||!un.skipFixed[e])){var n=un.methodSpread[e],i=n&&n.start;return void 0===i?h(t,r):function(e,t){return function(){for(var r=arguments.length,n=r-1,i=Array(r);r--;)i[r]=arguments[r];var o=i[t],a=i.slice(0,t);return o&&ln.apply(a,o),t!=n&&ln.apply(a,i.slice(t+1)),e.apply(this,a)}}(t,i)}return t}function A(e,t,r){return s.rearg&&r>1&&(d||!un.skipRearg[e])?S(t,un.methodRearg[e]||un.aryRearg[r]):t}function M(e,t){for(var r=-1,n=(t=I(t)).length,i=n-1,o=m(Object(e)),a=o;null!=a&&++r<n;){var s=t[r],u=a[s];null==u||_(u)||w(u)||O(u)||(a[s]=m(r==i?u:Object(u))),a=a[s]}return o}function k(t,r){var n=un.aliasToReal[t]||t,a=un.remap[n]||n,s=i;return function(t){var i=o?f:p,u=o?f[a]:r,c=v(v({},s),t);return e(i,n,u,c)}}function j(e,t){return function(){var r=arguments.length;if(!r)return e();for(var n=Array(r);r--;)n[r]=arguments[r];var i=s.rearg?0:r-1;return n[i]=t(n[i]),e.apply(void 0,n)}}function L(e,t,r){var n,i=un.aliasToReal[e]||e,o=t,a=E[i];return a?o=a(t):s.immutable&&(un.mutate.array[i]?o=pn(t,fn):un.mutate.object[i]?o=pn(t,function(e){return function(t){return e({},t)}}(t)):un.mutate.set[i]&&(o=pn(t,M))),y(C,(function(e){return y(un.aryMethod[e],(function(t){if(i==t){var r=un.methodSpread[i],a=r&&r.afterRearg;return n=a?D(i,A(i,o,e),e):A(i,D(i,o,e),e),n=function(e,t,r){return c||s.curry&&r>1?g(t,r):t}(0,n=x(i,n),e),!1}})),!n})),n||(n=o),n==t&&(n=c?g(n,1):function(){return t.apply(this,arguments)}),n.convert=k(i,t),n.placeholder=t.placeholder=r,n}if(!a)return L(r,n,u);var N=n,R=[];return y(C,(function(e){y(un.aryMethod[e],(function(e){var t=N[un.remap[e]||e];t&&R.push([e,L(e,t,N)])}))})),y(P(N),(function(e){var t=N[e];if("function"==typeof t){for(var r=R.length;r--;)if(R[r][0]==e)return;t.convert=k(e,t),R.push([e,t])}})),y(R,(function(e){N[e[0]]=e[1]})),N.convert=function(e){return N.runInContext.convert(e)(void 0)},N.placeholder=N,y(P(N),(function(e){y(un.realToAlias[e]||[],(function(t){N[t]=N[e]}))})),N};var vn=function(e){return e},mn=Jt&&new Jt,gn=mn?function(e,t){return mn.set(e,t),e}:vn,yn=gn;var bn=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Pr(e.prototype),n=e.apply(r,t);return A(n)?n:r}};var wn=function(e,t,r){var n=1&t,i=bn(e);return function t(){return(this&&this!==v&&this instanceof t?i:e).apply(n?r:this,arguments)}};var _n=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},On=Math.max;var Pn=function(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,u=t.length,c=On(o-a,0),l=Array(u+c),d=!n;++s<u;)l[s]=t[s];for(;++i<a;)(d||i<o)&&(l[r[i]]=e[i]);for(;c--;)l[s++]=e[i++];return l},Sn=Math.max;var Tn=function(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,u=-1,c=t.length,l=Sn(o-s,0),d=Array(l+c),f=!n;++i<l;)d[i]=e[i];for(var p=i;++u<c;)d[p+u]=t[u];for(;++a<s;)(f||i<o)&&(d[p+r[a]]=e[i++]);return d};var In=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n};
1var Cn=function(){};function En(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}En.prototype=Pr(Cn.prototype),En.prototype.constructor=En;var xn=En;var Dn=mn?function(e){return mn.get(e)}:function(){},An=Dn,Mn={},kn=Object.prototype.hasOwnProperty;var jn=function(e){for(var t=e.name+"",r=Mn[t],n=kn.call(Mn,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t};function Ln(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Ln.prototype=Pr(Cn.prototype),Ln.prototype.constructor=Ln;var Nn=Ln;var Rn=function(e){if(e instanceof xn)return e.clone();var t=new Nn(e.__wrapped__,e.__chain__);return t.__actions__=jt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},$n=Object.prototype.hasOwnProperty;function Bn(e){if(I(e)&&!f(e)&&!(e instanceof xn)){if(e instanceof Nn)return e;if($n.call(e,"__wrapped__"))return Rn(e)}return new Nn(e)}Bn.prototype=Cn.prototype,Bn.prototype.constructor=Bn;var Fn=Bn;var Wn=function(e){var t=jn(e),r=Fn[t];if("function"!=typeof r||!(t in xn.prototype))return!1;if(e===r)return!0;var n=An(r);return!!n&&e===n[0]},Hn=Date.now;var Un=function(e){var t=0,r=0;return function(){var n=Hn(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},qn=Un(yn),Vn=/\{\n\/\* \[wrapped with (.+)\] \*/,zn=/,? & /;var Yn=function(e){var t=e.match(Vn);return t?t[1].split(zn):[]},Kn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var Gn=function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Kn,"{\n/* [wrapped with "+t+"] */\n")};var Qn=function(e){return function(){return e}},Jn=Ke?function(e,t){return Ke(e,"toString",{configurable:!0,enumerable:!1,value:Qn(t),writable:!0})}:vn,Zn=Un(Jn);var Xn=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1};var ei=function(e){return e!=e};var ti=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1};var ri=function(e,t,r){return t==t?ti(e,t,r):Xn(e,ei,r)};var ni=function(e,t){return!!(null==e?0:e.length)&&ri(e,t,0)>-1},ii=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var oi=function(e,t){return ze(ii,(function(r){var n="_."+r[0];t&r[1]&&!ni(e,n)&&e.push(n)})),e.sort()};var ai=function(e,t,r){var n=t+"";return Zn(e,Gn(n,oi(Yn(n),r)))};var si=function(e,t,r,n,i,o,a,s,u,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var d=[e,t,i,l?o:void 0,l?a:void 0,l?void 0:o,l?void 0:a,s,u,c],f=r.apply(void 0,d);return Wn(e)&&qn(f,d),f.placeholder=n,ai(f,e,t)};var ui=function(e){return e.placeholder},ci=Math.min;var li=function(e,t){for(var r=e.length,n=ci(t.length,r),i=jt(e);n--;){var o=t[n];e[n]=ct(o,r)?i[o]:void 0}return e},di="__lodash_placeholder__";var fi=function(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r];a!==t&&a!==di||(e[r]=di,o[i++]=r)}return o};var pi=function e(t,r,n,i,o,a,s,u,c,l){var d=128&r,f=1&r,p=2&r,h=24&r,m=512&r,g=p?void 0:bn(t);return function y(){for(var b=arguments.length,w=Array(b),_=b;_--;)w[_]=arguments[_];if(h)var O=ui(y),P=In(w,O);if(i&&(w=Pn(w,i,o,h)),a&&(w=Tn(w,a,s,h)),b-=P,h&&b<l){var S=fi(w,O);return si(t,r,e,y.placeholder,n,w,S,u,c,l-b)}var T=f?n:this,I=p?T[t]:t;return b=w.length,u?w=li(w,u):m&&b>1&&w.reverse(),d&&c<b&&(w.length=c),this&&this!==v&&this instanceof y&&(I=g||bn(I)),I.apply(T,w)}};var hi=function(e,t,r){var n=bn(e);return function i(){for(var o=arguments.length,a=Array(o),s=o,u=ui(i);s--;)a[s]=arguments[s];var c=o<3&&a[0]!==u&&a[o-1]!==u?[]:fi(a,u);return(o-=c.length)<r?si(e,t,pi,i.placeholder,void 0,a,c,void 0,void 0,r-o):_n(this&&this!==v&&this instanceof i?n:e,this,a)}};var vi=function(e,t,r,n){var i=1&t,o=bn(e);return function t(){for(var a=-1,s=arguments.length,u=-1,c=n.length,l=Array(c+s),d=this&&this!==v&&this instanceof t?o:e;++u<c;)l[u]=n[u];for(;s--;)l[u++]=arguments[++a];return _n(d,i?r:this,l)}},mi="__lodash_placeholder__",gi=128,yi=Math.min;var bi=function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,a=n==gi&&8==r||n==gi&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!o&&!a)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?Pn(u,s,t[4]):s,e[4]=u?fi(e[3],mi):t[4]}return(s=t[5])&&(u=e[5],e[5]=u?Tn(u,s,t[6]):s,e[6]=u?fi(e[5],mi):t[6]),(s=t[7])&&(e[7]=s),n&gi&&(e[8]=null==e[8]?t[8]:yi(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e},wi=/\s/;var _i=function(e){for(var t=e.length;t--&&wi.test(e.charAt(t)););return t},Oi=/^\s+/;var Pi=function(e){return e?e.slice(0,_i(e)+1).replace(Oi,""):e},Si=/^[-+]0x[0-9a-f]+$/i,Ti=/^0b[01]+$/i,Ii=/^0o[0-7]+$/i,Ci=parseInt;var Ei=function(e){if("number"==typeof e)return e;if(C(e))return NaN;if(A(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=A(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Pi(e);var r=Ti.test(e);return r||Ii.test(e)?Ci(e.slice(2),r?2:8):Si.test(e)?NaN:+e},xi=1/0;var Di=function(e){return e?(e=Ei(e))===xi||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Ai=function(e){var t=Di(e),r=t%1;return t==t?r?t-r:t:0},Mi=Math.max;var ki=function(e,t,r,n,i,o,a,s){var u=2&t;if(!u&&"function"!=typeof e)throw new TypeError("Expected a function");var c=n?n.length:0;if(c||(t&=-97,n=i=void 0),a=void 0===a?a:Mi(Ai(a),0),s=void 0===s?s:Ai(s),c-=i?i.length:0,64&t){var l=n,d=i;
1n=i=void 0}var f=u?void 0:An(e),p=[e,t,r,n,i,l,d,o,a,s];if(f&&bi(p,f),e=p[0],t=p[1],r=p[2],n=p[3],i=p[4],!(s=p[9]=void 0===p[9]?u?0:e.length:Mi(p[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?hi(e,t,s):32!=t&&33!=t||i.length?pi.apply(void 0,p):vi(e,t,r,n);else var h=wn(e,t,r);return ai((f?yn:qn)(h,p),e,t)};var ji=function(e,t,r){return t=r?void 0:t,t=e&&null==t?e.length:t,ki(e,128,void 0,void 0,void 0,void 0,t)};var Li=function(e){return Lr(e,4)};function Ni(e,t,r){var n=ki(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return n.placeholder=Ni.placeholder,n}Ni.placeholder={};var Ri=Ni,$i=Function.prototype,Bi=Object.prototype,Fi=$i.toString,Wi=Bi.hasOwnProperty,Hi=Fi.call(Object);var Ui=function(e){if(!I(e)||"[object Object]"!=T(e))return!1;var t=Ht(e);if(null===t)return!0;var r=Wi.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Fi.call(r)==Hi};var qi=function(e){if(!I(e))return!1;var t=T(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ui(e)};var Vi=function(e){return I(e)&&"[object WeakMap]"==cr(e)};var zi=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Yi=function(e){return this.__data__.has(e)};function Ki(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Pe;++t<r;)this.add(e[t])}Ki.prototype.add=Ki.prototype.push=zi,Ki.prototype.has=Yi;var Gi=Ki;var Qi=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Ji=function(e,t){return e.has(t)};var Zi=function(e,t,r,n,i,o){var a=1&r,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(e),l=o.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,p=2&r?new Gi:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],v=t[d];if(n)var m=a?n(v,h,d,t,e,o):n(h,v,d,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!Qi(t,(function(e,t){if(!Ji(p,t)&&(h===e||i(h,e,r,n,o)))return p.push(t)}))){f=!1;break}}else if(h!==v&&!i(h,v,r,n,o)){f=!1;break}}return o.delete(e),o.delete(t),f};var Xi=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var eo=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},to=m?m.prototype:void 0,ro=to?to.valueOf:void 0;var no=function(e,t,r,n,i,o,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new fr(e),new fr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return oe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Xi;case"[object Set]":var u=1&n;if(s||(s=eo),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var l=Zi(s(e),s(t),n,i,o,a);return a.delete(e),l;case"[object Symbol]":if(ro)return ro.call(e)==ro.call(t)}return!1},io=Object.prototype.hasOwnProperty;var oo=function(e,t,r,n,i,o){var a=1&r,s=zt(e),u=s.length;if(u!=zt(t).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in t:io.call(t,l)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=a;++c<u;){var v=e[l=s[c]],m=t[l];if(n)var g=a?n(m,v,l,t,e,o):n(v,m,l,e,t,o);if(!(void 0===g?v===m||i(v,m,r,n,o):g)){p=!1;break}h||(h="constructor"==l)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},ao="[object Arguments]",so="[object Array]",uo="[object Object]",co=Object.prototype.hasOwnProperty;var lo=function(e,t,r,n,i,o){var a=f(e),s=f(t),u=a?so:cr(e),c=s?so:cr(t),l=(u=u==ao?uo:u)==uo,d=(c=c==ao?uo:c)==uo,p=u==c;if(p&&st(e)){if(!st(t))return!1;a=!0,l=!1}if(p&&!l)return o||(o=new Ve),a||mt(e)?Zi(e,t,r,n,i,o):no(e,t,u,r,n,i,o);if(!(1&r)){var h=l&&co.call(e,"__wrapped__"),v=d&&co.call(t,"__wrapped__");
1if(h||v){var m=h?e.value():e,g=v?t.value():t;return o||(o=new Ve),i(m,g,r,n,o)}}return!!p&&(o||(o=new Ve),oo(e,t,r,n,i,o))};var fo=function e(t,r,n,i,o){return t===r||(null==t||null==r||!I(t)&&!I(r)?t!=t&&r!=r:lo(t,r,n,i,e,o))};var po=function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var u=(s=r[i])[0],c=e[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in e))return!1}else{var d=new Ve;if(n)var f=n(c,l,u,e,t,d);if(!(void 0===f?fo(l,c,3,n,d):f))return!1}}return!0};var ho=function(e){return e==e&&!A(e)};var vo=function(e){for(var t=It(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ho(i)]}return t};var mo=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}};var go=function(e){var t=vo(e);return 1==t.length&&t[0][2]?mo(t[0][0],t[0][1]):function(r){return r===e||po(r,e,t)}};var yo=function(e,t){return null!=e&&t in Object(e)};var bo=function(e,t,r){for(var n=-1,i=(t=Le(t,e)).length,o=!1;++n<i;){var a=Ne(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&lt(i)&&ct(a,i)&&(f(e)||ot(e))};var wo=function(e,t){return null!=e&&bo(e,t,yo)};var _o=function(e,t){return D(e)&&ho(t)?mo(Ne(e),t):function(r){var n=$e(r,e);return void 0===n&&n===t?wo(r,e):fo(t,n,3)}};var Oo=function(e){return function(t){return null==t?void 0:t[e]}};var Po=function(e){return function(t){return Re(t,e)}};var So=function(e){return D(e)?Oo(Ne(e)):Po(e)};var To=function(e){return"function"==typeof e?e:null==e?vn:"object"==typeof e?f(e)?_o(e[0],e[1]):go(e):So(e)};var Io=function(e){return To("function"==typeof e?e:Lr(e,1))},Co=m?m.isConcatSpreadable:void 0;var Eo=function(e){return f(e)||ot(e)||!!(Co&&e&&e[Co])};var xo=function e(t,r,n,i,o){var a=-1,s=t.length;for(n||(n=Eo),o||(o=[]);++a<s;){var u=t[a];r>0&&n(u)?r>1?e(u,r-1,n,i,o):Wt(o,u):i||(o[o.length]=u)}return o};var Do=function(e){return(null==e?0:e.length)?xo(e,1):[]},Ao=Math.max;var Mo=function(e,t,r){return t=Ao(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Ao(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),_n(e,this,s)}};var ko=function(e){return Zn(Mo(e,void 0,Do),e+"")},jo=ko((function(e,t){return ki(e,256,void 0,void 0,void 0,t)}));var Lo=function(e){return f(e)?De(e,Ne):C(e)?[e]:jt(xe(je(e)))},No={ary:ji,assign:Ct,clone:Li,curry:Ri,forEach:ze,isArray:f,isError:qi,isFunction:k,isWeakMap:Vi,iteratee:Io,keys:St,rearg:jo,toInteger:Ai,toPath:Lo};var Ro=function(e,t,r){return hn(No,e,t,r)};var $o=function(e){return ko((function(t){var r=t.length,n=r,i=Nn.prototype.thru;for(e&&t.reverse();n--;){var o=t[n];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!a&&"wrapper"==jn(o))var a=new Nn([],!0)}for(n=a?n:r;++n<r;){o=t[n];var s=jn(o),u="wrapper"==s?An(o):void 0;a=u&&Wn(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?a[jn(u[0])].apply(a,u[3]):1==o.length&&Wn(o)?a[s]():a.thru(o)}return function(){var e=arguments,n=e[0];if(a&&1==e.length&&f(n))return a.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))},Bo=Ro("flowRight",$o(!0));Bo.placeholder=cn;var Fo=Bo,Wo=["label","globalOptions","reviewSummaries"];function Ho(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Uo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ho(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qo(e){var t=e.label,r=e.globalOptions;e.reviewSummaries;var n=d(e,Wo),i=r.config;return Object.keys(r).includes("config")||(i=r),Uo(Uo({},n),{},{label:t,lead:$e(i,"lead",""),learnMore:$e(i,"learnMore"),preheadline:$e(i,"preheadline",""),shipping:$e(i,"shipping",""),showShippingStatus:$e(i,"showShippingStatus",!0),stackValue:$e(i,"stackValue",""),benefitsList:$e(i,"benefitsList",!1),showMoreBenefits:!1,typeLabel:$e(i,"typeLabel","Flavor"),waitListLink:$e(i,"waitListLink",""),estimatedDelivery:$e(i,"estimatedDelivery",""),estimatedDeliveryTime:$e(i,"estimatedDeliveryTime",""),showAddToOrder:$e(i,"showAddToOrder",!1)&&r.customerId,specialOffer:$e(i,"specialOffer",{title:"Special Offer",image:"",text:""})})}function Vo(e){var t,r=e.label,n=e.globalOptions,i=e.componentConfig,a=e.reviewSummaries,s=void 0===a?[]:a;function u(e,t){return e.find((function(e){return e.key===t}))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"subscribeMany":"addMany",n=e.reduce((function(e,t){var r=Array.isArray(t.variantId)?t.variantId:[t.variantId];return e=e.concat(r),Array.from(new Set(e))}),[]).map((function(e){return{id:e,quantity:1,properties:t}}));return Qs.cart[r](n)}var d=n.config;if(Object.keys(n).includes("config")||(d=n),d.products.length<1)throw new Error("You must provide at least one product to buyBox.");return d.soldOut&&(d.shipping=""!=d.shipping?d.shipping:"TEMPORARILY UNAVAILABLE",d.lead=""!=d.soldOutLead?d.soldOutLead:"Due to high demand, these products are temporarily unavailable while we ship all the current orders."),t={label:r,globalOptions:n,componentConfig:i,init:function(e,t,r,n){this.$el=e,this.$refs=t,this.$dispatch=r,this.$watch=n,!1===Qs.buy.initialized&&Qs.buy.init(d.products[0]),this.registerListeners()},registerListeners:function(){},getAllItems:function(){var e=JSON.parse(Nr(JSON.stringify(this.products))).concat(JSON.parse(Nr(JSON.stringify(this.addOns)))).reduce((function(e,t){return e[t.key]=t,e}),{});return Object.values(e)},addSubscriptionToCart:function(){var e=this;if(this.subscriptionHandler)return Qs.fire(this.subscriptionHandler,{product:Nr(this.currentProduct),t
1ype:"subscription"});var t=this.getAllItems().filter((function(t){return t.key===e.selectedProduct})).map((function(e){return e.subscription})).filter(Boolean);l(t,this.getLineItemProperties(t[0]||{}),!0),Qs.fire("ui:drawer:open")},addOneTimePurchaseToCart:function(){var e=this;if(this.oneTimePurchaseHandler){if("string"==typeof this.oneTimePurchaseHandler)return Qs.fire(this.oneTimePurchaseHandler,{product:Nr(this.currentProduct),type:"oneTimePurchase"});if("object"===o(this.oneTimePurchaseHandler))return Qs.fire(this.oneTimePurchaseHandler.event,this.oneTimePurchaseHandler.arguments);throw new Error("Incorrect One Time Purchase handler.")}var t=this.getAllItems().filter((function(t){return t.key===e.selectedProduct})).map((function(e){return e.oneTimePurchase})).filter(Boolean);l(t,this.getLineItemProperties(t[0]||{})),Qs.fire("ui:drawer:open")},dispatchChanged:function(){Qs.fire("buy-component:changed",{id:this.label,purchaseOptionType:this.currentPurchaseOptionType})},fireSoldOutHandler:function(){if(this.soldOutHandler){if("string"==typeof this.soldOutHandler)return document.dispatchEvent(new CustomEvent(this.soldOutHandler));if("object"===o(this.soldOutHandler))return document.dispatchEvent(new CustomEvent(this.soldOutHandler,this.soldOutHandler.arguments));throw new Error("Incorrect Sold Out handler.")}return!1},getLineItemProperties:function(e){var t={};return this.promo&&this.promo.name&&(t._promo=this.promo.name),this.promo&&this.promo.type&&(t._promoType=this.promo.type),this.promo&&this.promo.type&&(t._trueSubDiscount=this.promo.trueSubDiscount),this.offer&&(t._offer=this.offer),e.gifts&&(t._gifts=e.gifts),t},handleReviewsFetched:function(e){if(this.reviewSummaries=Object.keys(e).reduce((function(t,r){return t.push({key:r,count:e[r].total_reviews,average:e[r].average_score}),t}),[]),n.config&&n.config.productReviewSummary){var t=n.config.productReviewSummary;t&&t.reviewCount>0&&(this.reviewSummaries.some((function(e){return e.key===n.config.reviewsKey}))||this.reviewSummaries.push({key:n.config.reviewsKey,count:Number(t.reviewCount),average:Number(t.reviewAverageValue)}))}this.currentReviewSummary=u(this.reviewSummaries,this.currentProduct.reviewsKey||this.currentProduct.key)},hasSavings:function(e){return!(!e.final||!e.regular||e.final>=e.regular)&&e.final<e.regular},getSavingsPercentage:function(e){return this.hasSavings(e)?100-Math.round(e.final/e.regular*100):0},getRecurringSavingsPercentage:function(e){return this.hasSavings(e)?void 0!==e.original?-1*(Math.round(e.original/e.regular*100)-100):this.getSavingsPercentage(e):0},hasFirstMonthSavings:function(e){return!(!this.hasSavings(e)||!e.original||e.original<=0)&&this.getSavingsPercentage(e)!==this.getRecurringSavingsPercentage(e)},getBuyButtonText:function(){return this.soldOutHandler?"NOTIFY ME WHEN WHEY RESTOCKS":"".concat("subscription"===this.currentPurchaseOptionType?"Autoship & Save":"Add to cart"," - ").concat(Qs.utilities.formatCurrency(this.currentPrice))},buyButtonHandler:function(){this.soldOut?this.fireSoldOutHandler():"subscription"===this.currentPurchaseOptionType?this.addSubscriptionToCart():this.addOneTimePurchaseToCart(),this.oneTimePurchaseHandler||this.subscriptionHandler||this.soldOutHandler||Qs.fire("ui:modal:close")},estimateDelivery:function(){this.estimatedDelivery=Qs.shipping.defaultDeliveryEstimate()},estimateDeliveryTime:function(){var e=this,t=new Date((new Date).toLocaleString("en-US",{timeZone:"America/Los_Angeles"}));if(t.getHours()>=11&&t.setDate(t.getDate()+1),t.setHours(11,0,0,0),!this.hideInitialDeliveryTime)var r=setInterval((function(){var n=nn({start:new Date((new Date).toLocaleString("en-US",{timeZone:"America/Los_Angeles"})),end:t});0===n.hours?e.estimatedDeliveryTime="Faster Delivery <u>Order within ".concat(an("min",n.minutes,!0)," & ").concat(an("sec",n.seconds,!0)," </u>"):e.estimatedDeliveryTime="Faster Delivery <u>Order within ".concat(an("hr",n.hours,!0)," & ").concat(an("min",n.minutes,!0),"</u>"),(on(t)||n.hours>=8)&&(e.estimateDelivery(),e.estimatedDeliveryTime=e.estimatedDelivery,clearInterval(r))}),1e3)},addOns:$e(d,"addOns",[]),soldOut:$e(d,"soldOut",!1),soldOutLead:$e(d,"soldOutLead",""),mode:$e(d,"mode","normal"),currentReviewSummary:u(s,d.products[0].reviewsKey||d.products[0].key)},c(t,"label",r),c(t,"offer",$e(n,"offer","")),c(t,"products",$e(d,"products",[])),c(t,"ohiShipping",$e(d,"ohiShipping",!1)),c(t,"hideLead",$e(d,"hideLead",!1)),c(t,"hideMeta",$e(d,"hideMeta",!1)),c(t,"estimatedDelivery",$e(d,"estimatedDelivery","")),c(t,"estimatedDeliveryTime",$e(d,"estimatedDeliveryTime","")),c(t,"promo",$e(n,"promo",{}
1)),c(t,"oneTimePurchaseHandler",d.oneTimePurchaseHandler),c(t,"soldOutHandler",d.soldOutHandler),c(t,"reviewSummaries",[]),c(t,"subscriptionHandler",d.subscriptionHandler),c(t,"title",$e(d,"title","")),c(t,"override",$e(d,"override",{})),c(t,"buyWithPrime",$e(d,"buyWithPrime",{sku:"",price:{original:0,final:0}})),t}var zo=["label","globalOptions","reviewSummaries"];function Yo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ko(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Go(e){e.label;var t=e.globalOptions;e.reviewSummaries;var r=d(e,zo),n=t.config;Object.keys(t).includes("config")||(n=t);var i=$e(n,"products",[]),o=i[0]||void 0,a=truvani.buy.getDefaultPurchaseOptionType(o),s=truvani.buy.updateTotalPricing(JSON.parse(JSON.stringify(i)),[o.key]),u=truvani.buy.updateCurrentPrice(a,s);return Ko(Ko({},r),{},{init:function(){r.init(),this.registerListeners()},registerListeners:function(){var e=this;window.addEventListener("shipping:initialized",(function(){e.estimateDelivery()})),this.estimateDelivery(),this.$watch("selectedProduct",(function(t){var r=i.find((function(e){return e.key===t}));if(!r)throw new Error("Could not find a product for key: ".concat(t));e.currentProduct=r})),this.$watch("currentProduct",(function(t){void 0===t[e.currentPurchaseOptionType]&&(e.currentPurchaseOptionType=truvani.buy.getDefaultPurchaseOptionType(t)),e.reviewSummaries&&(e.currentReviewSummary=function(e,t){return e.find((function(e){return e.key===t}))}(e.reviewSummaries,t.reviewsKey||t.key)),e.totalPricing=truvani.buy.updateTotalPricing(JSON.parse(JSON.stringify(e.products)),[e.selectedProduct]),e.currentPrice=truvani.buy.updateCurrentPrice(e.currentPurchaseOptionType,e.totalPricing)})),this.$watch("currentPurchaseOptionType",(function(t){e.currentPrice=truvani.buy.updateCurrentPrice(e.currentPurchaseOptionType,e.totalPricing)})),this.$watch("totalPricing",(function(t){e.currentPrice=truvani.buy.updateCurrentPrice(e.currentPurchaseOptionType,e.totalPricing)}))},lead:$e(n,"lead",""),learnMore:$e(n,"learnMore"),preheadline:$e(n,"preheadline",""),shipping:$e(n,"shipping",""),currentProduct:o,selectedProduct:$e(o,"key"),estimatedDelivery:$e(n,"estimatedDelivery",""),estimatedDeliveryTime:$e(n,"estimatedDeliveryTime",""),currentPurchaseOptionType:a,totalPricing:s,currentPrice:u,show:!0,specialOffer:$e(n,"specialOffer",{title:"Special Offer",image:"",text:""})})}var Qo=["componentConfig","globalOptions"];function Jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xo(e){var t=e.componentConfig,r=e.globalOptions,n=d(e,Qo),i=r.config,o=t;return Zo(Zo({},n),{},{dispatchChanged:function(){truvani.fire("cart-bar:changed",{id:this.label,purchaseOptionType:this.$store.buy.currentPurchaseOptionType})},getBuyButtonText:function(){return this.soldOutHandler?"JOIN THE WAIT LIST":"Add to Cart"},getSubscribeLabel:function(e){return this.hasSavings(e)?"Subscribe & Save ("+this.getSavingsPercentage(this.$store.buy.currentProduct.subscription.price)+" % off)":"Subscribe"},open:window.scrollY>=100,openFrequency:!1,openOptions:!1,title:o.title?o.title:i.title,products:i.products,showRewardsProgress:o.showRewardsProgress,showReviews:o.showReviews,showVariants:o.showVariants,variantTitle:o.variantTitle})}var ea=["globalOptions"];function ta(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ra(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?ta(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ta(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function na(e){var t=e.globalOptions,r=d(e,ea),n=t.config;return ra(ra({},r),{},{dispatchChanged:function(){truvani.fire("thumb-drawer:changed",{id:this.label,purchaseOptionType:this.$store.buy.currentPurchaseOptionType})},openThumbDrawer:function(){this.open=window.scrollY>document.querySelector("div.section").getBoundingClientRect().top},open:!1,openFrequency:!1,products:n.products})}function ia(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";return Number.isInteger(e)&&(e/=100),new Intl.NumberFormat("en-EN",{style:"currency",currency:t}).format(e)}var oa=!1;if("undefined"!=typeof window){var aa={get passive(){oa=!0}};window.addEventListener("testPassive",null,aa),window.removeEventListener("testPassive",null,aa)}var sa="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),ua=[],ca=!1,la=-1,da=void 0,fa=void 0,pa=function(e){return ua.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},ha=function(e){var t=e||window.event;return!!pa(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},va=function(e,t){if(e){if(!ua.some((function(t){return t.targetElement===e}))){var r={targetElement:e,options:t||{}};ua=[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(ua),[r]),sa?(e.ontouchstart=function(e){1===e.targetTouches.length&&(la=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var r=e.targetTouches[0].clientY-la;!pa(e.target)&&(t&&0===t.scrollTop&&r>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&r<0?ha(e):e.stopPropagation())}(t,e)},ca||(document.addEventListener("touchmove",ha,oa?{passive:!1}:void 0),ca=!0)):function(e){if(void 0===fa){var t=!!e&&!0===e.reserveScrollBarGap,r=window.innerWidth-document.documentElement.clientWidth;t&&r>0&&(fa=document.body.style.paddingRight,document.body.style.paddingRight=r+"px")}void 0===da&&(da=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},ma=function(e){e?(ua=ua.filter((function(t){return t.targetElement!==e})),sa?(e.ontouchstart=null,e.ontouchmove=null,ca&&0===ua.length&&(document.removeEventListener("touchmove",ha,oa?{passive:!1}:void 0),ca=!1)):ua.length||(void 0!==fa&&(document.body.style.paddingRight=fa,fa=void 0),void 0!==da&&(document.body.style.overflow=da,da=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")};var ga=r((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports})),ya=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},e.exports=t.default})),ba=ya,wa=t(r((function(e,t){var r=ga.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)({},e)};var n=r(ba);e.exports=t.default}))),_a=t(r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default}))),Oa=t(r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default})));function Pa(e,t){var r=function(e){if(!Ta[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/Ne
1w_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t;Ta[e]=r?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ta[e]}(t);return r.formatToParts?function(e,t){try{for(var r=e.formatToParts(t),n=[],i=0;i<r.length;i++){var o=Sa[r[i].type];o>=0&&(n[o]=parseInt(r[i].value,10))}return n}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(r,e):function(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}(r,e)}var Sa={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ta={};function Ia(e,t,r,n,i,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,i,o,a),s}var Ca=36e5,Ea=6e4,xa={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Da(e,t,r){var n,i,o;if(!e)return 0;if(n=xa.timezoneZ.exec(e))return 0;if(n=xa.timezoneHH.exec(e))return Ma(o=parseInt(n[1],10))?-o*Ca:NaN;if(n=xa.timezoneHHMM.exec(e)){o=parseInt(n[1],10);var a=parseInt(n[2],10);return Ma(o,a)?(i=Math.abs(o)*Ca+a*Ea,o>0?-i:i):NaN}if(function(e){if(ka[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),ka[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=r?t:function(e){return Ia(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),u=Aa(s,e),c=r?u:function(e,t,r){var n=e.getTime(),i=n-t,o=Aa(new Date(i),r);if(t===o)return t;i-=o-t;var a=Aa(new Date(i),r);if(o===a)return o;return Math.max(o,a)}(t,u,e);return-c}return NaN}function Aa(e,t){var r=Pa(e,t),n=Ia(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),i=e.getTime(),o=i%1e3;return n-(i-=o>=0?o:1e3+o)}function Ma(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var ka={};var ja=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,La=36e5,Na=6e4,Ra=2,$a={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:ja};function Ba(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var r=t||{},n=null==r.additionalDigits?Ra:_a(r.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i=function(e){var t,r={},n=$a.dateTimePattern.exec(e);n?(r.date=n[1],t=n[3]):(n=$a.datePattern.exec(e))?(r.date=n[1],t=n[2]):(r.date=null,t=e);if(t){var i=$a.timeZone.exec(t);i?(r.time=t.replace(i[1],""),r.timeZone=i[1].trim()):r.time=t}return r}(e),o=function(e,t){var r,n=$a.YYY[t],i=$a.YYYYY[t];if(r=$a.YYYY.exec(e)||i.exec(e)){var o=r[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(r=$a.YY.exec(e)||n.exec(e)){var a=r[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(i.date,n),a=o.year,s=function(e,t){if(null===t)return null;var r,n,i,o;if(0===e.length)return(n=new Date(0)).setUTCFullYear(t),n;if(r=$a.MM.exec(e))return n=new Date(0),qa(t,i=parseInt(r[1],10)-1)?(n.setUTCFullYear(t,i),n):new Date(NaN);if(r=$a.DDD.exec(e)){n=new Date(0);var a=parseInt(r[1],10);return function(e,t){if(t<1)return!1;var r=Ua(e);if(r&&t>366)return!1;if(!r&&t>365)return!1;return!0}(t,a)?(n.setUTCFullYear(t,0,a),n):new Date(NaN)}if(r=$a.MMDD.exec(e)){n=new Date(0),i=parseInt(r[1],10)-1;var s=parseInt(r[2],10);return qa(t,i,s)?(n.setUTCFullYear(t,i,s),n):new Date(NaN)}if(r=$a.Www.exec(e))return Va(t,o=parseInt(r[1],10)-1)?Fa(t,o):new Date(NaN);if(r=$a.WwwD.exec(e)){o=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return Va(t,o,u)?Fa(t,o,u):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var u,c=s.getTime(),l=0;if(i.time&&(l=function(e){var t,r,n;if(t=$a.HH.exec(e))return za(r=parseFloat(t[1].replace(",",".")))?r%24*La:NaN;if(t=$a.HHMM.exec(e))return za(r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")))?r%24*La+n*Na:NaN;if(t=$a.HHMMSS.exec(e)){r=parseInt(t[1],10),n=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return za(r,n,i)?r%24*La+n*Na+1e3*i:NaN}return null}(i.time),isNaN(l)))return new Date(NaN);if(i.timeZone||r.timeZone){if(u=Da(i.timeZone||r.timeZone,new Date(c+l)),isNaN(u))return new Date(NaN)}else u=Oa(new Date(c+l)),u=Oa(new Date(c+l+u));return new Date(c+l+u)}return new Date(NaN)}
1function Fa(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var i=7*t+r+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+i),n}var Wa=[31,28,31,30,31,30,31,31,30,31,30,31],Ha=[31,29,31,30,31,30,31,31,30,31,30,31];function Ua(e){return e%400==0||e%4==0&&e%100!=0}function qa(e,t,r){if(t<0||t>11)return!1;if(null!=r){if(r<1)return!1;var n=Ua(e);if(n&&r>Ha[t])return!1;if(!n&&r>Wa[t])return!1}return!0}function Va(e,t,r){return!(t<0||t>52)&&(null==r||!(r<0||r>6))}function za(e,t,r){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==r||!(r<0||r>=60)))}function Ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ka(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ga={initialized:!1,init:function(e){Spruce.store("buy",{currentProduct:e,selectedProduct:[e.key],selectedProducts:[e.key],buyWithPrime:e.buyWithPrime||{sku:""},currentPurchaseOptionType:this.getDefaultPurchaseOptionType(e),currentPrice:0,totalPricing:{oneTimePurchase:{price:{regular:0,final:0}},subscription:{price:{regular:0,final:0}}},subscription:{}}),this.initialized=!0},updateTotalPricing:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e.filter((function(e){return t.includes(e.key)})).reduce((function(e,t){if(t.oneTimePurchase){var n=t.oneTimePurchase,i=n.price,o=(n.bulkDiscounts||[]).find((function(e){return e.quantity===r})),a=o?r:1;o&&(i={regular:o.price.regular||o.price.final,final:o.price.final}),i.regular?e.oneTimePurchase.price.regular+=i.regular*a:e.oneTimePurchase.price.regular+=i.final*a,i.dirty&&(e.oneTimePurchase.price.dirty=i.dirty),i.original&&(e.oneTimePurchase.price.original+=i.original*a),e.oneTimePurchase.price.final+=i.final*a}if(t.subscription){var s=t.subscription,u=s.price,c=(s.bulkDiscounts||[]).find((function(e){return e.quantity===r})),l=c?r:1;c&&(u={regular:c.price.regular||c.price.final,original:c.price.regular||!1,dirty:c.price.dirty||!1,final:c.price.final}),u.regular?e.subscription.price.regular+=u.regular*l:e.subscription.price.regular+=u.final*l,u.dirty&&(e.subscription.price.dirty=u.dirty),u.original&&(e.subscription.price.original+=u.original*l),e.subscription.price.final+=u.final*l}return e}),{oneTimePurchase:{price:{dirty:!1,original:0,regular:0,final:0}},subscription:{price:{dirty:!1,original:0,regular:0,final:0}}})},getDefaultPurchaseOptionType:function(e){if(!e.subscription&&!e.oneTimePurchase)throw new Error("Products must have subscription or oneTimePurchase details.");var t=e.subscription?"subscription":"oneTimePurchase";return e.currentPurchaseOptionType&&(e[e.currentPurchaseOptionType]?t=e.currentPurchaseOptionType:console.warn("`product`.`currentPurchaseOption` is defined but option object does not exist.")),t},addSelectedItem:function(e,t){if(!t.find((function(t){return t===e})))return t.push(e),t},removeSelectedItem:function(e,t){return t.filter((function(t){return t!==e}))},selectedProductChanged:function(e,t,r,n){return n=this.removeSelectedItem(t,n),this.addSelectedItem(e,n),{selectedProduct:JSON.parse(JSON.stringify(r.find((function(t){return t.key===e})))),selectedProducts:n}},updateCurrentPrice:function(e,t){return t[e].price.final},changeProduct:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=e;e.config&&(r=e.config);var n=t?r[t].products[0]:r.products[0],i=this.updateTotalPricing([n],[n.key]),o=this.getDefaultPurchaseOptionType(n);Spruce.reset("buy",{currentProduct:n,selectedProduct:[n.key],selectedProducts:[n.key],currentPurchaseOptionType:o,totalPricing:i,currentPrice:this.updateCurrentPrice(o,i)})},addProductToUpcomingDelivery:function(e,t,r){truvani.fire("spinner:show");var n=Spruce.store("buy").currentPurchaseOptionType;e[0].label;var i="";i="subscription"==n?"subscriptions":"onetimes";var o=e.map((function(e){if(Spruce.store("buy").selectedProducts.includes(e.ke
1y))return Ka(Ka({},Spruce.store("buy").subscription),{},{product_title:"subscription"==n?"".concat(e.label," Monthly Subscription"):e.label,shopify_variant_id:e[n].variantId})})),a={customer_hash:r};a[i]=o;try{fetch("https://recharge-api-wrapper.truvani.workers.dev/customers/".concat(t,"/").concat(i),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((function(e){200===e.status?(truvani.fire("ui:modal:close"),truvani.fire("spinner:hide"),truvani.fire("ui:modal:open","addToOrderConfirmation-modal")):(truvani.fire("ui:modal:close"),truvani.fire("spinner:hide"),truvani.fire("ui:modal:open","addToOrderError-modal"),truvani.fire("addtodelivery"))}))}catch(e){truvani.fire("ui:modal:close"),truvani.fire("spinner:hide"),truvani.fire("ui:modal:open","addToOrderError-modal"),truvani.fire("addtodelivery")}}},Qa=r((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports})),Ja=r((function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports})),Za=r((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports})),Xa=r((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return Za(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Za(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports})),es=r((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports})),ts=t(r((function(e){e.exports=function(e,t){return Qa(e)||Ja(e,t)||Xa(e,t)||es()},e.exports.__esModule=!0,e.exports.default=e.exports})));var rs=function(e,t){return fo(e,t)};var ns=function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e};var is=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=Ei(r))==r?r:0),void 0!==t&&(t=(t=Ei(t))==t?t:0),ns(Ei(e),t,r)};function os(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function as(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?os(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):os(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ss={COOKIE_NAME:"truvani_offer",PAGE_SPECIFIC_COOKIE:"truvani_page_offer",ready:!1,_syncing:!1,init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(e))throw new Error("Cannot initialize rewards because it is not a collection.");this.registerListeners(),Spruce.store("rewards",{next:void 0,progress:{remainder:0,percentage:0},all:Nr(e),active:[],earned:[],given:[]})},registerListeners:function(){var e=this;window.addEventListener("cart:initialized",(function(){e.ready=!0})),window.addEventListener("DOMContentLoaded",this.calculateRewards.bind(this)),window.addEventListener("cart:updated",this.calculateRewards.bind(this)),window.addEventListener("rewards:active:updated",this.calculateRewards.bind(this)),window.addEventListener("rewards:calculated",this.sync.bind(this)),window.addEventListener("rewards:calculated",this.calculateNextReward.bind(this)),window.addEventListener("rewards:next:updated",this.calculateProgress.bind(this))},calculateRewards:function(){this.ready&&(this.calculateActive(),this.calculateEarned(),this.calculateGiven(),this.calculateProgress(),truvani.fire("rewards:calculated"))},calculateNextReward:function(){var e=Spruce.store("rewards"),t=((Spruce.store("cart")||{}).items||[]).some((function(e){return!!e.selling_plan_allocation||e.properties&&"sub"===e.properties._revType}
1)),r=(e.active||[]).filter((function(e){return!e.hidden})).filter((function(e){return!!t||!(e&&!0===e.subOnly)})),n=e.earned,i=e.next,o=r.filter((function(e){return!n.find((function(t){return rs(e,t)}))})),a=ts(o,1)[0];r.length&&!a&&(a=r[r.length-1]),rs(i,a)||(e.next=a,truvani.fire("rewards:next:updated",a))},calculateProgress:function(){var e=Spruce.store("rewards"),t=e.progress,r=Spruce.store("cart"),n=r.totalPrice||0,i=(r.items||[]).some((function(e){return!!e.selling_plan_allocation})),o=(e.active||[]).filter((function(e){return!e.hidden})).filter((function(e){return!!i||!(e&&!0===e.subOnly)})),a={remainder:0,percentage:0};if(o.length){var s=o.map((function(e){var t=e.amount||0,r=i&&null!=e.subAmount?e.subAmount:null,n=null!=r?r:t;return as(as({},e),{},{_threshold:n})})),u=s.find((function(e){return n<e._threshold}))||s[s.length-1],c=u._threshold||0,l=c-n,d=is(l,0,l);a={remainder:d,percentage:c>0&&d>0?100-d/c*100:100}}rs(t,a)||(e.progress=a,truvani.fire("rewards:progress:updated",a))},calculateActive:function(){var e=this,t=Spruce.store("rewards"),r=Nr(t.active),n=this.doesCartContainColdTrafficPromoItems(),i=!(!window.truvani_page_config||!window.truvani_page_config.coldTraffic)&&window.truvani_page_config,o=Nr(t.all).filter((function(t){return(!t.hasOwnProperty("disableOnUrl")||!window.location.pathname.includes(t.disableOnUrl))&&(t.hasOwnProperty("excludeColdTraffic")&&(n||i)?!0!==t.excludeColdTraffic:t.hasOwnProperty("includeNormalTraffic")?!0===t.includeNormalTraffic&&i:!t.cookie||(t.cookie===a.get(e.COOKIE_NAME)||t.cookie===a.get(e.PAGE_SPECIFIC_COOKIE)))})).sort((function(e,t){return e.amount-t.amount}));rs(r,o)||(t.active=o,truvani.fire("rewards:active:updated",o))},calculateEarned:function(){var e=Spruce.store("rewards"),t=Spruce.store("cart"),r=t.totalPrice,n=Nr(e.earned),i=Nr(e.active),o=i.filter((function(e){var n=e.hasOwnProperty("subOnly")&&!0===e.subOnly,i=e.hasOwnProperty("validVariantsForRewards")&&Array.isArray(e.validVariantsForRewards)&&e.validVariantsForRewards.length>0;return n&&i?t.items.filter((function(t){return t.properties&&"sub"===t.properties._revType&&e.validVariantsForRewards.includes(t.variant_id)})).reduce((function(e,t){return e+t.line_price}),0)>=e.amount:n&&!i?t.items.filter((function(e){return e.properties&&"sub"===e.properties._revType})).reduce((function(e,t){return e+t.line_price}),0)>=e.amount:!i&&r>=e.amount})),a=i.filter((function(e){return r>=e.subAmount&&!o.includes(e)&&!e.hasOwnProperty("validVariantsForRewards")}));a.length>0&&t.items.some((function(e){return"sub"===e.properties._revType}))&&(o=o.concat(a));var s=i.filter((function(e){return e.hasOwnProperty("validVariantsForRewards")&&e.validVariantsForRewards.length>0&&!o.includes(e)&&!(e.hasOwnProperty("subOnly")&&!0===e.subOnly)}));if(s.length>0)for(var u=function(){var e=s[c];t.items.some((function(t){return e.validVariantsForRewards.includes(t.variant_id)}))&&o.push(e)},c=0;c<s.length;c++)u();var l=i.filter((function(e){return Array.isArray(e.disqualifiedRewards)&&e.disqualifiedRewards.length>0&&t.items.some((function(t){return e.disqualifiedRewards.includes(t.variant_id)}))}));l.length>0&&(o=o.filter((function(e){return!l.includes(e)})));var d=t.items.filter((function(e){return!(e.properties&&!0===e.properties._reward)})),f=function(e){return d.length>0&&d.every((function(t){return e.includes(t.variant_id)}))};return o=o.filter((function(e){return!(Array.isArray(e.exclusiveVariantsForRewards)&&e.exclusiveVariantsForRewards.length>0&&!f(e.exclusiveVariantsForRewards))&&!(Array.isArray(e.disqualifyIfExclusiveVariants)&&e.disqualifyIfExclusiveVariants.length>0&&f(e.disqualifyIfExclusiveVariants))})),rs(n,o)||(e.earned=o,truvani.fire("rewards:earned:updated",o)),o},calculateGiven:function(){var e=Spruce.store("rewards"),t=Spruce.store("cart"),r=Nr(e.active),n=t.items,i=Nr(e.given),o=Nr(n).map((function(e){return!0===e.properties._reward?r.find((function(t){return"number"==typeof t.variantId?t.variantId===e.variant_id:t.variantId&&Array.isArray(t.variantId)?e.variant_id===t.variantId.find((function(t){return t===e.variant_id})):void 0})):void 0}
1)).filter(Boolean).filter((function(e,t,r){return r.indexOf(e)===t}));return rs(i,o)||(e.given=o,truvani.fire("rewards:given:updated",o)),o},sync:function(){var e=this;if(!this._syncing){var t=Spruce.store("rewards"),r=t.earned,n=t.given;t.next;var i=Spruce.store("cart").items,o=this.getRemovedRewards(),a=[],s=r.reduce((function(e,t){return t.variantId?"number"==typeof t.variantId?(void 0===e[t.variantId]&&(e[t.variantId]=0),e[t.variantId]++,e):(t.variantId.forEach((function(t){void 0===e[t]&&(e[t]=0),e[t]++})),e):e}),{});if(Object.keys(s).map(Number).forEach((function(e){var t=s[e],n=i.find((function(t){return t.properties._reward&&t.variant_id===e})),u=r.find((function(t){return Array.isArray(t.variantId)?t.variantId.includes(e):t.variantId===e}))||{},c=!1;o.some((function(t){return t===e}))&&(c=!0),!1!==c||n&&n.quantity===t||a.push({variantId:e,currentQuantity:n?n.quantity:0,targetQuantity:t,promoName:u.promoName?u.promoName:"",key:null==n?void 0:n.key,autoReward:!!u&&(!!u.autoReward&&u.autoReward),rewardSelectorKey:!!u.rewardSelectorKey&&u.rewardSelectorKey,sellingPlan:u.sellingPlan||truvani.cart.getSellingPlanOfVariant(e)||null})})),n.forEach((function(t){if("number"==typeof t.variantId){if(!r.find((function(e){return"number"==typeof e.variantId?t.variantId===e.variantId:Array.isArray(e.variantId)?e.variantId.some((function(e){return t.variantId===e})):void 0}))){var n=e.rewardToExistingLineItem(t);n&&a.push({variantId:t.variantId,currentQuantity:n.quantity,targetQuantity:0,key:n.key})}}else{var i=Nr(t),o=[];Array.isArray(i.variantId)&&i.variantId.forEach((function(e){r.some((function(t){return"number"==typeof t.variantId?e===t.variantId:Array.isArray(t.variantId)?t.variantId.some((function(t){return e===t})):void 0}))||o.push(e)})),o.length>0&&o.forEach((function(e){var t=(Spruce.store("cart").items||[]).find((function(t){return t.variant_id===e}));t&&a.push({variantId:e,currentQuantity:t.quantity,targetQuantity:0,key:t.key})}))}})),0!==a.length)return this._syncing=!0,new Promise((function(e,t){var r=a.filter((function(e){return 0===e.currentQuantity&&e.targetQuantity})),n=a.filter((function(e){return 0!==e.currentQuantity&&0===e.targetQuantity})),o=a.filter((function(e){return e.currentQuantity>0&&e.targetQuantity>0&&e.currentQuantity!==e.targetQuantity})),s=n.concat(o),u=[];n.forEach((function(e){return"number"==typeof e.variantId?u.push(e.variantId):e.variantId.forEach((function(e){return u.push(e)}))}));var c=Nr(i.filter((function(e){return!0===e.properties._reward&&e.variant_id===u.find((function(t){return t===e.variant_id}))}))),l=Promise.resolve();c.length>0&&(l=truvani.cart.removeMany(c),s=o,u=[]);var d=Promise.resolve();if(r.length>0){var f={_reward:!0};d=truvani.cart.addMany(a.filter(Boolean).map((function(e){var t=as({},f);t._promo=e.promoName?e.promoName:t._promo,e.autoReward&&(t._autoReward=!0),e.rewardSelectorKey?t._rewardSelectorKey=e.rewardSelectorKey:delete t._rewardSelectorKey;var r={id:e.variantId,quantity:e.targetQuantity,properties:t};return e.sellingPlan&&(r.selling_plan=e.sellingPlan),r})))}var p=function(){var t={removed:n,added:r,updated:o};truvani.fire("rewards:synced",t),e(t)},h=Promise.all([l,d]);s.length>0?h.then((function(){return s.reduce((function(e,t){return e.then((function(){if(!0==(void 0!==t.key)){var e=i.find((function(e){return e.key===t.key}));return truvani.cart.changeQuantity(e,t.targetQuantity)}return Promise.resolve()}))}),Promise.resolve())})).then(p).catch((function(e){return t(e)})):h.then(p).catch((function(e){return t(e)}))})).finally((function(){e._syncing=!1}))}},rewardToExistingLineItem:function(e){return(Spruce.store("cart").items||[]).find((function(t){return"number"==typeof e.variantId?t.variant_id===e.variantId:t.variant_id===e.variantId.find((function(e){return e===t.variant_id}))}))},rewardToNewLineItem:function(e){return e.properties?e.properties._gift=!0:e.properties={_gift:!0},{id:e.variantId,quantity:1,properties:Nr(e.properties||{})}},doesCartContainColdTrafficPromoItems:function(){return Spruce.store("cart").items.some((function(e){return"cold-traffic"===e.properties._promoType}))},getRemovedRewards:function(){var e=[];return 0===Spruce.store("cart").items.length&&a.remove("removedRewards"),truvani.utilities.getCookie("removedRewards")&&(e=decodeURIComponent(truvani.utilities.getCookie("removedRewards")).split(",").map((function(e){return parseInt(e)}))),e}},us={GA_CLIENT_ID_COOKIE:"_ga",GA_SESSION_ID_COOKIE:"_ga_SERVERSIDE",FB_PIXEL_ID_COOKIE:"_fbp",FB_CLICK_ID_COOKIE:"_fbc",DATA_LIB_DISTINCT_ID:"",init:function(){this.registerListeners()},registerListeners:function(){window.addEventListener("mp:loaded",this.handleMixpanelLoaded.bind(this))},handleMixpanelLoaded:function(e){var t=e.detail.mp_distinct_id;this.DATA_LIB_DISTINCT_ID=t},getUTMData:function(){var e=window.location.search,t=new URLSearchParams(e),r={},n=a.get("_utm_truvani");if(t.get("utm_campaign")&&(r._utm_campaign=t.get("utm_campaign")),t.get("utm_term")&&(r._utm_term=t.get("utm_term")),t.get("utm_medium")&&(r._utm_medium=t.get("utm_medium")),t.get("utm_content")&&(r._utm_content=t.get("utm_content")),t.get("utm_source")&&(r._utm_source=t.get("utm_source")),n)try{JSON.parse(n).length&&((n=JSON.parse(n)[0]).timestamp&&delete n.timestamp,Object.keys(r).length||(r=n))}catch(e){console.error(e)}return!1===rs(r,n)&&(r.timestamp=Date.now(),a.set("_utm_truvani",[r],{expires:7})),r},parseGoogleStreamCookie:function(e){var t={s:"sessionId",o:"sessionNumber",g:"sessionEngaged",t:"lastHitTimestamp",j:"joinT
1imer",l:"enhancedUserIdLoggedInState",h:"enhancedUserId",d:"joinId"},r=e.split("."),n=ts(r,3),i=n[0],o=n[2];if("GS1"===i){var a=e.split(".").slice(2);return Object.fromEntries(["s","o","g","t","j","l","h","d"].map((function(e,r){return[t[e],a[r]||""]})))}return Object.fromEntries(o.replace(/%24/g,"$").split("$").map((function(e){return[t[e[0]]||e[0],decodeURIComponent(e.slice(1))]})))},getGoogleAnalyticsClientId:function(){var e=a.get(this.GA_CLIENT_ID_COOKIE);if(!e)return"";return/GA[0-9]+\.[0-9]+\.([0-9]+\.[0-9]+)/gm.exec(e)[1]||""},getGoogleAnalyticsSessionId:function(){var e=a.get(this.GA_SESSION_ID_COOKIE);return e&&this.parseGoogleStreamCookie(e).sessionId||""},syncCartAttributes:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!window.Cypress){var r=this.getUTMData(),n={_ga_client_id:this.getGoogleAnalyticsClientId(),_ga_session_id:this.getGoogleAnalyticsSessionId(),_fb_pixel_id:a.get(this.FB_PIXEL_ID_COOKIE)||"",_fb_click_id:a.get(this.FB_CLICK_ID_COOKIE)||""};if(""!==this.DATA_LIB_DISTINCT_ID&&!1!==this.DATA_LIB_DISTINCT_ID&&(n._dp_mp_distinct_id=this.DATA_LIB_DISTINCT_ID),!e)for(var i=0,o=Object.entries(r);i<o.length;i++){var s=ts(o[i],2),u=s[0],c=s[1];"timestamp"!==u&&(n[u]=c)}return t&&(t=t.replace(/[^a-z0-9_\-.,:]/gi,""),n._tags=t?encodeURIComponent(t):""),fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:n})})}}},cs={ready:!1,disableRewards:!1,init:function(){this.registerListeners()},registerListeners:function(){var e=this;window.addEventListener("cart:initialized",(function(){var t;e.ready=!0,e.disableRewards=null!==(t=Spruce.store("disableRewards"))&&void 0!==t&&t})),window.addEventListener("cart:items:added",this.add.bind(this)),window.addEventListener("cart:items:removed",this.remove.bind(this)),window.addEventListener("cart:updated",this.limitQuantity.bind(this)),window.addEventListener("buy-mixin:item-added",(function(t){return e.latestItem=Nr(t.detail)}))},latestItem:void 0,getEarned:function(){var e=this,t=(Spruce.store("cart").items||[]).find((function(t){return e.latestItem&&e.latestItem.gifts?e.latestItem.variantId===t.variant_id:$e(t,"properties._gifts")})),r=$e(t,"properties._gifts");return Array.from(new Set(r))},getReceived:function(){return(Spruce.store("cart").items||[]).filter((function(e){return!0===$e(e,"properties._gift")}))},add:function(){if(null!=this.latestItem&&void 0===this.latestItem.gifts)return truvani.fire("gifts:skipped"),Promise.resolve();var e=this.getEarned(),t=this.getReceived();this.disableRewards&&this.removeRewardCookie();var r=e.filter((function(e){return void 0===t.find((function(t){return e===t.variant_id}))})).map(this.giftIdToNewLineItem);return t.filter((function(t){return void 0===e.find((function(e){return e===t.variant_id}))})).map(this.giftIdToNewLineItem).length>0&&this.remove(),0===r.length?(truvani.fire("gifts:skipped"),Promise.resolve()):(truvani.fire("gifts:add",r),new Promise((function(e,t){truvani.cart.addMany(r).then((function(){truvani.fire("gifts:added",r),e(r)})).catch(t)})))},remove:function(){truvani.fire("gifts:remove");var e=this.getReceived(),t=this.getEarned(),r=e.filter((function(e){return void 0===t.find((function(t){return t===e.variant_id}))}));return 0===r.length?(truvani.fire("gifts:removed",r),Promise.resolve(r)):new Promise((function(e,t){truvani.cart.removeMany(r).then((function(){truvani.fire("gifts:removed",r),e(r)})).catch(t)}))},limitQuantity:function(){var e=this.getReceived().filter((function(e){return e.quantity>1}));return e.length>0?new Promise((function(t,r){truvani.cart.changeQuantity(e,1).then((function(){truvani.fire("gifts:quantity:limited"),t()})).then(r)})):Promise.resolve()},sync:function(){var e=this;return truvani.fire("gifts:sync"),new Promise((function(t,r){Promise.all([e.add(),e.remove()]).then((function(e){var r=ts(e,2),n=r[0],i=r[1];truvani.fire("gifts:synced",{added:n,removed:i}),t({added:n,removed:i})})).catch(r)}))},giftIdToNewLineItem:function(e){return{id:e,quantity:1,properties:{_gift:!0}}},removeRewardCookie:function(){truvani.utilities.getCookie("truvani_offer")&&truvani.utilities.setCo
vendor: 4,109 bytes, line 1
1okie("truvani_offer","")}},ls=r((function(e){var t=i.default;function r(){e.exports=r=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),s=new E(n||[]);return a(o,"_invoke",{value:S(e,r,s)}),o}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var h={};function v(){}function m(){}function g(){}var y={};d(y,u,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(x([])));w&&w!==i&&o.call(w,u)&&(y=w);var _=g.prototype=v.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,r){function n(i,a,s,u){var c=p(e[i],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==t(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):r.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,i){n(e,t,r,i)}))}return i=i?i.then(o,o):o()}})}function S(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return D()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=T(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function T(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=p(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function x(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:D}}function D(){return{value:void 0,done:!0}}return m.prototype=g,a(_,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:m,configurable:!0}),m.displayName=d(g,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,d(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},n.awrap=function(e){return{__await:e}},O(P.prototype),d(P.prototype,c,(function(){return this})),n.AsyncIterator=P,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);
1var a=new P(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(_),d(_,l,"Generator"),d(_,u,(function(){return this})),d(_,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=x,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})),ds=ls(),fs=ds;try{regeneratorRuntime=ds}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=ds:Function("r","regeneratorRuntime = r")(ds)}function ps(e){return new Promise((function(t,r){function n(o,a){try{var s=e[a?"throw":"next"](o)}catch(e){return void r(e)}s.done?t(s.value):Promise.resolve(s.value).then(n,i)}function i(e){n(e,1)}n()}))}var hs={init:function(){return ps(fs.mark((function e(){return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Spruce.store("reviews",{count:0,average:0,products:{}}),fetch("https://www.truvani.com/yotpo-bottomlines").then((function(e){return e.json()})).then((function(e){var t=e.organic_reviews;window.truvani.fire("reviews:fetched",e),void 0===window.Spruce.store("reviews")&&window.Spruce.store("reviews",{count:0,average:0,products:{}}),window.Spruce.store("reviews").products=e.data,window.Spruce.store("reviews").count=t,window.Spruce.store("reviews").average=e.organic_average_score})),e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)}))())}};var vs=function(e,t,r){(void 0!==r&&!oe(e[t],r)||void 0===r&&!(t in e))&&Ge(e,t,r)};var ms=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===r(o[u],u,o))break}return t}},gs=ms();var ys=function(e){return I(e)&&Tt(e)};var bs=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var ws=function(e){return Ze(e,At(e))};var _s=function(e,t,r,n,i,o,a){var s=bs(e,r),u=bs(t,r),c=a.get(u);if(c)vs(e,r,c);else{var l=o?o(s,u,r+"",e,t,a):void 0,d=void 0===l;if(d){var p=f(u),h=!p&&st(u),v=!p&&!h&&mt(u);l=u,p||h||v?f(s)?l=s:ys(s)?l=jt(s):h?(d=!1,l=kt(u,!0)):v?(d=!1,l=wr(u,!0)):l=[]:Ui(u)||ot(u)?(l=s,ot(s)?l=ws(s):A(s)&&!k(s)||(l=Sr(u))):d=!1}d&&(a.set(u,l),i(l,u,n,o,a),a.delete(u)),vs(e,r,l)}};var Os=function e(t,r,n,i,o){t!==r&&gs(r,(function(a,s){if(o||(o=new Ve),A(a))_s(t,r,s,n,e,i,o);else{var u=i?i(bs(t,s),a,s+"",t,r,o):void 0;void 0===u&&(u=a),vs(t,s,u)}}),At)};var Ps=function(e,t){return Zn(Mo(e,t,vn),e+"")};var Ss=function(e,t,r){if(!A(r))return!1;var n=typeof t;return!!("number"==n?Tt(r)&&ct(t,r.length):"string"==n&&t in r)&&oe(r[t],e)};var Ts=function(e){return Ps((function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&Ss(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t}))}((function(e,t,r){Os(e,t,r)})),Is=Object.prototype.hasOwnProperty;var Cs=function(e){if(null==e)return!0;
1if(Tt(e)&&(f(e)||"string"==typeof e||"function"==typeof e.splice||st(e)||mt(e)||ot(e)))return!e.length;var t=cr(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(wt(e))return!St(e).length;for(var r in e)if(Is.call(e,r))return!1;return!0};function Es(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return xs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xs(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function xs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ds={initialized:!1,appliedDiscountCode:!1,enforcedUniqueProductVariantIDSet:[],enforcedMaxOnePerCart:[],_purgingOrphanedGifts:!1,blankCartState:{items:[],originalSubtotal:0,discount:0,subtotal:0,totalPrice:0,protectionEnabled:!1,protectionItem:null,count:0},rechargeSellingPlanMapOnVariantId:{43234724872237:"2808217645",43234725003309:"2808217645",43234725036077:"2808217645",43234725068845:"2808217645",43234725101613:"2808217645",43234727297069:"2808217645",43234727329837:"2808217645",43234727362605:"2808217645",43234847719469:"2808217645",43234727395373:"2808217645",43234724905005:"2808217645",43234724970541:"2808217645",43234724937773:"2808217645",43247054782509:"2808283181",43247054815277:"2808283181",43247054848045:"2808283181",43247054880813:"2808283181",43247054946349:"2808283181",43247055044653:"2808283181",43247055011885:"2808283181",43247054913581:"2808283181",43247054716973:"2808283181",43247054684205:"2808283181",43247054749741:"2808283181",43247054979117:"2808283181",43247055077421:"2808283181",43247187656749:"2808348717",43247187722285:"2808348717",43247187787821:"2808348717",43247187853357:"2808348717",43247187918893:"2808348717",43247187951661:"2808348717",43247188017197:"2808348717",43247188049965:"2808348717",43247187689517:"2808348717",43247187755053:"2808348717",43247187984429:"2808348717",43247187820589:"2808348717",43247187886125:"2808348717",43247209087021:"2804580397",43247209021485:"2804580397",43247208955949:"2804580397",43247209054253:"2804580397",43247209185325:"2804580397",43247209283629:"2804580397",43247209119789:"2804580397",43247208988717:"2804580397",43247209250861:"2804580397",43247209152557:"2804580397",43247209316397:"2804580397",43247209349165:"2804580397",43247209218093:"2804580397",43280470540333:"2808479789",43280470507565:"2808479789",43280470474797:"2808479789",43280470442029:"2808479789",43280470278189:"2808479789",43280470376493:"2808479789",43280470343725:"2808479789",43280470310957:"2808479789",43280470245421:"2808479789",43280470212653:"2808479789",43280470179885:"2808479789",43280470147117:"2808479789",43280470409261:"2808479789",43342138409005:"2808741933",43359529205805:"2808545325",43359529271341:"2808545325",43359529238573:"2808545325",43359529173037:"2808545325",43359529041965:"2808545325",43359529107501:"2808545325",43359528878125:"2808545325",43359529140269:"2808545325",43359528910893:"2808545325",43359528976429:"2808545325",43359529009197:"2808545325",43359528943661:"2808545325",43359529074733:"2808545325",43968552960045:"2808840237",43968553058349:"2808840237",43968553025581:"2808840237",43968552992813:"2808840237",43968552927277:"2808840237",44010947805229:"2808709165",44010947837997:"2808709165",44010947903533:"2808709165",44010947641389:"2808709165",44010947313709:"2808709165",44010947772461:"2808709165",44010947215405:"2808709165",44010947870765:"2808709165",44156779462701:"2808709165",44156779429933:"2808709165",44010947739693:"2808709165",44010947936301:"2808709165",44010947674157:"2808709165",44010947379245:"2808709165",44010947182637:"2808709165",44010947248173:"2808709165",44010947280941:"2808709165",44010947706925:"2808709165",44010947412013:"2808709165",44010947444781:"2808709165",44010947346477:"2808709165",44010947510317:"2808709165",44010947575853:"2808709165",44010947477549:"2808709165",44010947543085:"2808709165",44010947608621:"2808709165",44123486519341:"2808938541",44123486650413:"2808938541",44123486617645:"2808938541",44123486584877:"2808938541",44123486552109:"2808938541",44190262100013:"2765029421",44190262165549:"2765029421",44190262198317:"2765029421",44190262132781:"2765029421",44190262067245:"2765029421",44244256489517:"2782134317",44244256456749:"2782134317",44244256096301:"2782134317",44244256423981:"2782134317",44244256129069:"2782134317",44244256260141:"2782134317",44244256194605:"2782134317",44244256391213:"2782134317",44244256358445:"2782134317",44244256325677:"2782134317",44244256161837:"2782134317",44244256227373:"2782134317",44244256292909:"2782134317",44247846813741:"2782134317",44225829601325:"2782134317",44225829470253:"2782134317",44225829568557:"2782134317",44225829634093:"2782134317",44225829666861:"2782134317",44225829699629:"2782134317",44225829765165:"2782134317",44225829797933:"2782134317",44225829830701:"2782134317",44225829863469:"2782134317",44225829732397:"2782134317",44247846780973:"2782134317",44247846748205:"2782134317",44225829503021:"2782134317",44225829535789:"2782134317",44225836613677:"2782265389",44225836482605:"2782265389",44225836515373:"2782265389",44225836580909:"2782265389",44225836548141:"2782265389",44225837858861:"2782494765",44225837727789:"2782494765",44225837793325:"2782494765",44225838284845:"2782494765",44225838219309:"2782494765",44225838153773:"2782494765",44225838088237:"2782494765",44225838022701:"2782494765",44225837957165:"2782494765",44225837891629:"2782494765",44225837826093:"2782494765",44225837760557:"2782494765",44225838317613:"2782494765",44225837695021:"2782494765",44225837563949:"2782494765",44225837498413:"2782494765",44225837662253:"2782494765",44225837531181:"2782494765",44225838252077:"2782494765",44225838186541:"2782494765",44225837596717:"2782494765",44225838055469:"2782494765",44225837989933:"2782494765",44225837924397:"2782494765",44225837629485:"2782494765",44225838121005:"2782494765",44225840250925:"2782625837",44225840283693:"2782625837",44225840316461:"2782625837",44225842741293:"2782789677",44225845198893:"2782953517",44225846313005:"2783084589",44225847722029:"2783281197",44225848737837:"2783412269",44225850802221:"2783576109",44225851654189:"2783772717",44225853489197:"2783871021",44225856372781:"2784034861",44244301774893:"2791407661",44244301578285:"2791407661",44244301840429:"2791407661",44244301905965:"2791407661",44244301971501:"2791407661",44244302037037:"2791407661",44244301709357:"2791407661",44244301643821:"2791407661",44244301512749:"2791407661",44244301316141:"2791407661",44244301381677:"2791407661",44244301250605:"2791407661",44244301447213:"2791407661",44244446838829:"2791604269",44244446937133:"2791604269",44244446969901:"2791604269",44244447002669:"2791604269",44244447035437:"2791604269",44244447068205:"2791604269",44244446904365:"2791604269",44244446871597:"2791604269",44244446806061:"2791604269",44244446773293:"2791604269",44244446740525:"2791604269",44244446707757:"2791604269",44244446674989:"2791604269",44244463878189:"2791768109",44244463910957:"2791768109",44244463943725:"2791768109",44244463976493:"2791768109",44244464009261:"2791768109",44244495040557:"2791931949",44244494975021:"2791931949",44244494909485:"2791931949",44244494843949:"2791931949",44244494778413:"2791931949",44244494712877:"2791931949",44244494647341:"2791931949",44244494581805:"2791931949",44244494319661:"2791931949",44244494450733:"2791931949",44244494385197:"2791931949",44244494516269:"2791931949",44244505493549:"2792095789",44244505460781:"2792095789",44244505428013:"2792095789",44244505395245:"2792095789",44262613385261:"2801532973",44262613418029:"2801532973",44262613975085:"2801696813",44282610122797:"2810675245",44413326327853:"2782789677",44419926949933:"2901278765",44419926982701:"2901278765",44635707244589:"3830251565",44871673643053:"4946198573",67036840198189:"5167022125",67036840230957:"5167022125",67036840263725:"5167022125",67299915530285:"5167022125",67299915563053:"5167022125",67036841738285:"5167513645",67299915300909:"5167513645",67036841771053:"5167513645",67036841803821:"5167513645",67299915268141:"5167513645",67299915399213:"5167284269",67299915431981:"5167284269",67036841377837:"5167284269",67036841410605:"5167284269",67036841443373:"5167284269",67299915464749:"5167349805",67299915497517:"5167349805",67036840722477:"5167349805",67036840755245:"5167349805",67036840788013:"5167349805"},manualDiscountCodes:[{type:"PERCENT",code:["OLIVIA","OLIVIA20","RAE","CHERIDAN","JESS20","CHRISTINA20","KAYLA20","BEVSBYBEVERLY","DERLE","KALEJUNKIE","GRACE","ALPA","DANIELLE","CORTNEY","KAYLA","SOPHIA","STEPH","PC20","LESSWITHLAUR","ROSA","BROOKE20","KAT20","SWAN20","ROSE","RUTH","BRIANNA20","CARTY20","BLACKFRIDAY"],appliesTo:"all",applies_to_skus:!0,allow_extra_discount:!1,discount_amount:.2,valid_from:!1,valid_to:new Date("28 Nov 2023 00:00:00 PST")},{type:"PERCENT",code:["BFCM25"],appliesTo:"all",applies_to_skus:!0,allow_extra_discount:!1,discount_amount:.25,valid_from:!1,valid_to:new Date("28 Nov 2023 00:00:00 PST")},{type:"PERCENT",code:["SAVE33"],appliesTo:"subscription",applies_to_skus:!0,allow_extra_discount:!1,discount_amount:.2,valid_from:new Date("21 Mar 2024 05:00:00 PST"),valid_to:new Date("25 Sep 2025 00:00:00 PST")},{type:"PERCENT",code:["SAVE20"],appliesTo:"all",applies_to_skus:!0,allow_extra_discount:!1,discount_amount:.2,valid_from:new Date("21 Mar 2024 05:00:00 PST"),valid_to:new Date("11 May 2025 00:00:00 PST")},{type:"PERCENT",code:["25OFF"],appliesTo:"all",applies_to_skus:!0,allow_extra_discount:!1,discount_amount:.25,valid_from:new Date("05 Mar 2025 00:00:00 PST"),valid_to:new Date("16 Mar 2025 00:00:00 PST")},{type:"PERCENT",code:["BIRTHDAY50OFF"],appliesTo:"subscription",applies_to_skus:!0,allow_extra_discount:!1,discount_amount:.50001,valid_from:new Date("05 Mar 2025 00:00:00 PST"),valid_to:new Date("13 Mar 2025 00:00:00 PST"),disableOnUrls:["chocolate-strawberry-launch"]},{type:"PERCENT",code:["SUMMER25OFF"],appliesTo:"all",applies_to_skus:!0,allow_extra_discount:!1,discount_amount:.2501,valid_from:new Date("05 Mar 2025 00:00:00 PST"),valid_to:new Date("28 Sep 2025 00:00:00 PST"),disableOnUrls:["chocolate-strawberry-launch"]},{type:"PERCENT",code:["NY26"],appliesTo:"all",applies_to_skus:!0,allow_extra_discount:!0,discount_amount:.25,valid_from:new Date("05 Mar 2025 00:00:00 PST"),valid_to:new Date("01 Feb 2026 00:00:00 PST"),disableOnUrls:["new-year-flash-sale"]},{type:"PERCENT",code:["MD25"],appliesTo:"all",applies_to_skus:!0,allow_extra_discount:!0,discount_amount:.25,valid_from:!1,valid_to:new Date("01 Jul 2026 00:00:00 PST")},{type:"PERCENT",code:["LABORDAY"],appliesTo:"all",applies_to_skus:!0,allow_extra_discount:!0,discount_amount:.25,valid_from:!1,valid_to:new Date("01 Jul 2027 00:00:00 PST")},{type:"FLAT",code:["ELECTROLYTESPECIAL"],appliesTo:"oneTime",applies_to_skus:["HYDRATION12S"],allow_extra_discount:!0,discount_amount:400,valid_from:!1,valid_to:new Date("01 Jul 2028 00:00:00 PST")},{type:"FLAT",code:["HYDRATIONSPECIAL"],appliesTo:"oneTime",applies_to_skus:["HYDRATION12S"],allow_extra_discount:!0,discount_amount:300,valid_from:!1,valid_to:new Date("01 Jul 2028 00:00:00 PST")},{type:"PERCENT",code:["50OFF-VALENTINES"],appliesTo:"subscription",applies_to_skus:!0,allow_extra_discount:!0,discount_amount:.5,valid_from:new Date("01 Feb 202 00:00:00 PST"),valid_to:new Date("17 Feb 2026 00:00:00 PST"),disableOnUrls:["chocolate-strawberry-launch"]},{type:"PERCENT",code:["50OFF-WELCOMEBACK","HB50"],appliesTo:"subscription",applies_to_skus:!0,allow_extra_discount:!0,discount_amount:.5,valid_from:new Date("01 Feb 2026 00:00:00 PST"),valid_to:new Date("17 Apr 2031 00:00:00 PST"),disableOnUrls:["chocolate-strawberry-launch"]},{type:"PERCENT",code:["25OFF-FLASH"],appliesTo:"oneTime",applies_to_skus:["CREATINE90U","COLLAGEN28P","COLLAGEN14P","COLLAGEN7P","COLLAGEN1P-BOX20","COLLAGEN1P-10PK","COLLAGEN1P-7PK","COLLAGEN1P-5PK","COLLAGEN15","OB-TC","OB-CB-12PK","OB-CB-4PK","OB-SD-12PK","OB-SD-4PK","OB-CCCD-12PK","OB-CCCD-4PK","OB-OCC-12PK","OB-OCC-4PK","OB-SC-12PK","OB-SC-4PK","OB-LB-12PK","OB-LB-4PK","OB-CCBB-12PK","OB-CCBB-4PK","OB-CCC-12PK","OB-CCC-4PK","OB-PBCC-12PK","OB-PBCC-4PK","OB-CP-12PK","OB-CP-4PK","OB-CC-12P
1K","OB-CC-4PK","OB-MC-12PK","OB-MC-4PK","PROBIOTIC","TURMERIC","VITD","IMMUNE","VITC","ASH","DE","MAG"],allow_extra_discount:!0,discount_amount:.25,valid_from:new Date("01 Feb 2026 00:00:00 PST"),valid_to:new Date("17 Apr 2031 00:00:00 PST"),disableOnUrls:["chocolate-strawberry-launch"]},{type:"FLAT",code:["LC-RELAUNCH2025"],appliesTo:"subscription",applies_to_skus:["PROTEIN20S","PROTEIN20MC","PROTEIN20M","PROTEIN20U","PROTEIN20PB","PROTEIN20VC","PROTEIN20CPB","PROTEIN20BC","PROTEIN20V","PROTEIN20C-CHIA","PROTEIN20CS","PROTEIN20L"],allow_extra_discount:!1,discount_amount:500,valid_from:new Date("27 Dec 2024 00:00:00 PST"),valid_to:new Date("12 Apr 2025 00:00:00 PST")},{type:"PERCENT",code:["25OFFBARS"],appliesTo:"subscription",applies_to_skus:["OB-CL","OB-OCC","OB-PBCC","OB-SD","OB-SC","OB-CCBB","OB-CC","OB-CCC","OB-LB","OB-MC","OB-CCCD","OB-CP"],allow_extra_discount:!1,discount_amount:.125,valid_from:new Date(Date.now()),valid_to:new Date("23 May 2025 00:00:00 PST"),disableOnUrls:[]},{type:"PERCENT",code:["PRIMETIME"],appliesTo:"all",applies_to_skus:!0,allow_extra_discount:!0,discount_amount:.2,valid_from:!1,valid_to:new Date("01 Jul 2026 00:00:00 PST")},{type:"FLAT",code:["PROTEINBOGO"],appliesTo:"subscription",applies_to_skus:!0,allow_extra_discount:!0,discount_amount:2e3,valid_from:!1,valid_to:new Date("01 Sep 2026 00:00:00 PST"),properties:{_promoType:"cold-traffic",_page:"/pages/protein-starter-kit-email-bogo"}},{type:"PERCENT",code:["SUMMER20"],appliesTo:"subscription",applies_to_skus:!0,allow_extra_discount:!0,excludes_skus:["HYDRATION12S-LL-PC"],excludes_handles:["electrolyte-drink-mix","electrolyte-drink-mix-variety-pack"],discount_amount:.28,valid_from:!1,valid_to:new Date("01 Sep 2026 00:00:00 PST"),round_up_to_dollar:!0,properties:{_promoType:"internal",_page:"/pages/summer20"}},{type:"PERCENT",code:["SUMMER20"],appliesTo:"oneTime",applies_to_skus:!0,allow_extra_discount:!0,excludes_skus:["PROTEIN20S","PROTEIN20MC","PROTEIN20M","PROTEIN20U","PROTEIN20PB","PROTEIN20VC","PROTEIN20CPB","PROTEIN20BC","PROTEIN20C-CHIA","PROTEIN20CS","PROTEIN20L","HYDRATION12S-LL-PC"],excludes_handles:["plant-based-protein-powder-20-servings-recharge-new","electrolyte-drink-mix","electrolyte-drink-mix-variety-pack"],discount_amount:.2,valid_from:!1,valid_to:new Date("01 Sep 2026 00:00:00 PST"),round_up_to_dollar:!0,properties:{_promoType:"internal",_page:"/pages/summer20"}},{type:"PERCENT",code:["SUMMER20"],appliesTo:"oneTime",applies_to_skus:!0,excludes_skus:["PROTEIN20S","PROTEIN20MC","PROTEIN20M","PROTEIN20U","PROTEIN20PB","PROTEIN20VC","PROTEIN20CPB","PROTEIN20BC","PROTEIN20C-CHIA","PROTEIN20CS","PROTEIN20L","HYDRATION12S-LL-PC"],excludes_handles:["plant-based-protein-powder-20-servings-recharge-new","electrolyte-drink-mix","electrolyte-drink-mix-variety-pack"],allow_extra_discount:!0,discount_amount:.2,valid_from:!1,valid_to:new Date("01 Sep 2026 00:00:00 PST"),round_up_to_dollar:!0,properties:{_promoType:"internal",_page:"/pages/summer20"}}],init:function(){window.Spruce.store("cart",Nr(this.blankCartState)),this.enforcedUniqueProductVariantIDSet=window.cart_qty_limits.map(Number)||[],this.enforcedMaxOnePerCart=[41819870887981,34912273268781],this.registerListeners()},registerListeners:function(){window.addEventListener("cart:items:removed",this.removeOrphanedRewardsAndGifts.bind(this))},getProductDiscountedPriceForActiveCode:function(e,t,r,n,i){if(this.appliedDiscountCode){var o=(Array.isArray(this.appliedDiscountCode)?this.appliedDiscountCode:[this.appliedDiscountCode]).find((function(e){if("all"!==e.appliesTo&&t!==e.appliesTo)return!1;var o=!0===e.applies_to_skus||e.applies_to_skus.some((function(e){return e===r})),a=e.applies_to_handles&&e.applies_to_handles.some((function(e){return e===n})),s=e.excludes_skus&&e.excludes_skus.includes(r)||e.excludes_handles&&e.excludes_handles.includes(n),u=!e.properties||i&&Object.keys(e.properties).every((function(t){return i[t]===e.properties[t]}));return(o||a)&&!s&&u}));if(o){var a=!1,s=e;if("PERCENT"===o.type){Number.isInteger(s)||(a=!0,s*=100);var u=s*(1-o.discount_amount);if(o.round_up_to_dollar){var c=Math.round(u);c%10==9&&(u=c+1)}return a?Number((Math.abs(u)/100).toFixed(2)):Math.abs(Math.round(u))}if("FLAT"===o.type){Number.isInteger(s)||(a=!0,s*=100);var l=s-o.discount_amount;if(o.round_up_to_dollar){var d=Math.round(l);d%10==9&&(l=d+1)}return a?Number((Math.abs(l)/100).toFixed(2)):Math.abs(l)}}}return e},checkForManualDiscountCode:function(){if(Qs.utilities.getCookie("discount_code")&&""!==Qs.utilities.getCookie("discount_code").trim()){var e=Qs.utilities.getCookie("discount_code").trim().toUpperCase(),t=this.manualDiscountCodes.filter((function(t){if(!0!==t.evergreen){if(!1!==t.valid_from&&t.valid_from>new Date)return!1;if(!1!==t.valid_to&&t.valid_to<new Date)return!1}return!(t&&t.disableOnUrls&&t.disableOnUrls.some((function(e){return location.pathname.includes(e)})))&&(Array.isArray(t.code)?t.code.includes(e):"string"==typeof t.code&&t.code===e)}));if(t.length>0)return this.appliedDiscountCode=t,!0}return!1},calcDiscountsWhenUsingManualCode:function(e){if(!this.appliedDiscountCode)return e;var t=this,r=Array.isArray(this.appliedDiscountCode)?this.appliedDiscountCode:[this.appliedDiscountCode];return e.forEach((function(e){var n=e.selling_plan_allocation?"subscription":"oneTime",i=e.original_price,o=r.find((function(t){if("all"!==t.appliesTo&&n!==t.appliesTo)return!1;var r=!0===t.applies_to_skus||t.applies_to_skus.some((function(t){return t===e.sku})),i=t.applies_to_handles&&t.applies_to_handles.some((function(t){return t===e.handle})),o=t.excludes_skus&&t.excludes_skus.includes(e.sku)||t.excludes_handles&&t.excludes_handles.includes(e.handle),a=!t.properties||e.properties&&Object.keys(t.properties).every((function(r){return e.properties[r]===t.properties[r]}));return(r||i)&&!o&&a}));if(o&&(0!==e.original_price&&e.final_price===e.original_price||o.allow_extra_discount)){var a,s,u=t.getProductDiscountedPriceForActiveCode(i,n,e.sku,e.handle,e.properties);if(a=u,"subscription"===n){s=i-(a=u-0),(a=Math.round(a))<0&&(a=0)}else s=i-(a=Math.round(u));s>0&&(s*e.quantity,e.discounted_price=a,e.final_price=a,e.final_line_price=a*e.quantity,e.line_price=a*e.quantity,e.line_level_total_discount=s*e.quantity)}})),e},save:function(e){var t=e.items,r=e.original_total_price,n=e.total_discount,i=e.items_subtotal_price,o=e.total_price;if(Qs.fire("cart:save",e),this.cartHasChanged(e)){Qs.fire("cart:update",e);
1var a=Nr(this.blankCartState),s=Nr(t);if(s.find((function(e){return"VSP001"===e.sku}))&&(a.protectionEnabled=!0,a.protectionItem=s.find((function(e){return"VSP001"===e.sku})),s=s.filter((function(e){return"VSP001"!==e.sku}))),0!==s.length){this.calcDiscountsWhenUsingManualCode(s),a.items=s;var u=s.reduce((function(e,t){return e+t.final_price*t.quantity}),0),c=r-u;0===c?(a.originalSubtotal=r,a.discount=n,a.subtotal=i):(a.originalSubtotal=r,a.discount=c,a.subtotal=u),a.totalPrice=o-(a.protectionItem?a.protectionItem.final_line_price:0),a.count=s.reduce((function(e,t){return e+t.quantity}),0)}window.Spruce.reset("cart",a),!1===this.initialized&&(this.initialized=!0,Qs.fire("cart:initialized")),Qs.fire("cart:updated",e)}return Qs.fire("cart:saved",e),e},subscribe:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Qs.fire("cart:item:cart_add_sub"),this.subscribeMany([{id:e,quantity:t,properties:r}],n)},upgradeToSub:function(e,t){var r=this;Qs.fire("cart:item:sub_upgrade",t);var n=t.properties||{};return(t.product_title&&t.product_title.includes("Only Bar")||t.product_title&&t.product_title.includes("Tasting Collection"))&&(n._promo="50-fm-sub-ob",n._offer="50-fm-sub-ob",n._promoType="internal"),this.removeMany([t]).then((function(){return r.subscribeMany([{id:e,quantity:t.quantity,properties:n}])})).catch((function(e){throw e}))},upgradeToSubV2:function(e){Qs.fire("cart:item:sub_upgrade",e);var t=Nr(e.properties||{});return t._revType="sub",this.changeItemInCartByLineKeyV2(e.key,e.variant_id,e.quantity,!0,t).catch((function(e){throw e}))},getSellingPlanOfVariant:function(e){return this.rechargeSellingPlanMapOnVariantId?this.rechargeSellingPlanMapOnVariantId[e]:null},subscribeMany:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.rechargeSellingPlanMapOnVariantId,n={34936774066221:"44225829503021",34936775213101:"44225829535789",42795075141677:"44225829666861",43170892218413:"44225829765165",43210959323181:"44225829797933",34831335325741:"44225829568557",41076941717549:"44225829601325",41643542806573:"44225829699629",41466229948461:"44225829830701",34831336472621:"44225829634093",41076946731053:"44225829863469",39326797627437:"44244256129069",39326797332525:"44244256161837",39326796906541:"44244256194605",41568912015405:"44244256227373",41674188914733:"44244256325677",41568911589421:"44244256456749",39326796251181:"44244256260141",41568911949869:"44244256489517",35024221536301:"44262613975085",34980965122093:"44262613385261",34980965154861:"44262613418029",41727121424429:"44225829732397",41560140251181:"44225840250925",41568925188141:"44225840283693",43465511010349:"44244505493549",34917271011373:"44225842741293",39444520370221:"44225838022701",40874000384045:"44225838219309",40874022797357:"44225837891629",40874027417645:"44225838153773",41536246022189:"44225837957165",42926748729389:"44225837498413",42926858829869:"44225837629485",42926864302125:"44225837695021",42926885830701:"44225837760557",42926894579757:"44225837563949",42926911258669:"44225837826093",42926915354669:"44225837891629",42959958868013:"44225838284845",34917335367725:"44225845198893",34917278842925:"44225846313005",34917229232173:"44225847722029",34936596791341:"44225848737837",34936677105709:"44225850802221",34936563433517:"44225851654189",34936601313325:"44225853489197",34936661409837:"44225856372781"};return void 0!==(e=Nr(e).map((function(e){return n.hasOwnProperty(String(e.id))&&(e.id=n[String(e.id)]),e}))).find((function(e){return!e.properties.hasOwnProperty("_reward")&&!r.hasOwnProperty(String(e.id))}))?(console.error("Attempted to add stay.ai subscription item to cart",e),!1):this.addMany(e.map((function(e){var t=String(e.id).replace(/\D/g,"");if(!e.selling_plan){var n=r[t];n?e.selling_plan=String(n).replace(/\D/g,""):console.error("Recharge selling plan missing for variant",{variantId:e.id,key:t})}return e})),t)},add:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.addMany([{id:e,quantity:t,properties:Nr(r)}],n)},addMany:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={34915246014509:"44225829503021",34915247423533:"44225829535789",42795074650157:"44225829666861",43170886746157:"44225829765165",43210959388717:"44225829797933",34831324315693:"44225829568557",41076930412589:"44225829601325",41643540381741:"44225829699629",41484020514861:"44225829830701",34831336276013:"44225829634093",41076950401069:"44225829863469",34852481597485:"44244256129069",34852483792941:"44244256161837",39321220743213:"44244256194605",41568907460653:"44244256227373",41674187636781:"44244256325677",41568907821101:"44244256456749",39321242697773:"44244256260141",41568907690029:"44244256489517",35024221339693:"44262613975085",34980960927789:"44262613385261",34980960960557:"44262613418029",41727119458349:"44225829732397",41560138252333:"44225840250925",41568924270637:"44225840283693",43465510912045:"44244505493549",39444508606509:"44225838022701",40873951625261:"44225838219309",40874017423405:"44225837891629",40874031513645:"44225838153773",41536245694509:"44225837957165",42926744010797:"44225837498413",42926856175661:"44225837629485",42926862139437:"44225837695021",42926867120173:"44225837760557",42926890811437:"44225837563949",42926903918637:"44225837826093",42926912897069:"44225837891629",42959955230765:"44225838284845",34915241132077:"44225845198893",34912315113517:"44225846313005",34911750258733:"44225847722029",34936596529197:"44225848737837",34915244376109:"44225850802221",34936562810925:"44225851654189",34936601149485:"44225853489197",34936659410989:"44225856372781"},i=Nr(t);if(t=i.map((function(e){return n.hasOwnProperty(String(e.id))&&(e.id=n[String(e.id)]),e})),this.enforceUniqueProductRules(t.map((function(e){return e.id}))),0===(t=this.enforceMaxOnePerCartRules(i)).length)return!1;if(t=t.map((function(e){"string"==typeof e.id&&(e.id=parseInt(e.id));var t={};if(void 0===e._page&&(t._page=window.location.pathname),void 0===e._utm){var r=new 
1URLSearchParams(us.getUTMData()).toString();Cs(r)||(t._utm=r)}if(e.selling_plan&&(t._revType="sub"),(e.properties.reward||e.properties._gift||e.properties.manualGift)&&(delete t._page,delete t._utm),!Cs(t)){var n=e.properties||{};e.properties=Ts(t,n)}return e})),Qs.fire("cart:items:add",t),0===t.length)return Promise.resolve();var o=[];return new Promise((function(n,i){fetch("https://shop.truvani.com/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:t})}).then((function(e){return e.json()})).then((function(n){return n.items.map((function(e){return Nr(e)})).forEach((function(e){var r=t.find((function(t){return t.id===e.variant_id}));r&&(e.quantity=r.quantity),o.push(e)})),r?e.sync():null})).then((function(e){return Qs.fire("cart:items:added",{cart:e,lineItems:o}),e})).then(n).catch(i)}))},remove:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.removeMany([e],t)},removeMany:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Qs.fire("cart:items:remove",t),0===t.length?(Qs.fire("cart:items:removed",t,t),Promise.resolve()):new Promise((function(n,i){e.changeQuantity(t,0).then((function(){return r?e.sync():null})).then((function(e){Qs.fire("cart:items:removed",{cart:e,lineItems:t.map((function(e){return Nr(e)}))})})).then((function(){return n(t)})).catch(i)}))},increment:function(e){var t=this,r=e.quantity+1;return Qs.fire("cart:item:update",e),new Promise((function(n,i){t.changeQuantity(Nr(e),r).then((function(t){return Qs.fire("cart:item:updated",{item:Nr(e),quantity:r}),t})).then(n).catch(i)}))},decrement:function(e){var t=this,r=e.quantity-1;return Qs.fire("cart:item:update",e),1===e.quantity?this.remove(e):new Promise((function(n,i){return t.changeQuantity(Nr(e),r).then((function(t){return Qs.fire("cart:item:updated",{item:Nr(e),quantity:r}),t})).then(n).catch(i)}))},changeQuantity:function(e,t){var r=this,n=(Array.isArray(e)?e:[e]).reduce((function(e,r){return e[r.variant_id]=t,e}),{});return new Promise((function(e,t){fetch("https://shop.truvani.com/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({updates:n})}).then((function(e){return e.json()})).then((function(e){return r.save(e),r.sync()})).then(e).catch(t)}))},swapItemInCart:function(e,t,r){var n=this,i={};return i[e]=0,i[t]=r,new Promise((function(e,t){fetch("https://shop.truvani.com/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({updates:i})}).then((function(e){return e.json()})).then((function(e){return n.save(e),n.sync()})).then(e).catch(t)}))},changeItemInCartByLineKey:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i={};return i.line=e,i.quantity=t,i.selling_plan=null,n&&(i.selling_plan=959348781),new Promise((function(e,t){fetch("https://shop.truvani.com/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then((function(e){return e.json()})).then((function(e){return r.save(e),r.sync()})).then(e).catch(t)}))},changeItemInCartByLineKeyV2:function(e,t,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a={};if(a.id=e,a.quantity=r,a.selling_plan=null,i){a.selling_plan=this.getSellingPlanOfVariant(t);var s=Nr(o||{});s._revType="sub",a.properties=s}else o&&(a.properties=Nr(o));return new Promise((function(e,t){fetch("https://shop.truvani.com/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((function(e){return e.json()})).then((function(e){return n.save(e),n.sync()})).then(e).catch(t)}))},sync:function(){var e=this;return new Promise((function(t,r){fetch("https://shop.truvani.com/cart.json").then((function(e){return e.json()})).then((function(t){return e.save(t)})).then(t).catch(r)}))},emptyCart:function(){var e=this;return new Promise((function(t,r){fetch("https://shop.truvani.com/cart/clear.js").then((function(){return e.sync()}
1)).then(t).catch(r)}))},cartHasChanged:function(e){var t=window.Spruce.store("cart"),r=t.items,n=t.subtotal,i=e.items,o=e.items_subtotal_price,a=r.map((function(e){return e.key})),s=i.map((function(e){return e.key}));return n!==o||a.length!==s.length||0===a.filter((function(e){return!s.find((function(t){return t===e}))})).length},hasSku:function(e){return window.Spruce.store("cart").items.some((function(t){return t.sku===e}))},hasSubscriptionItems:function(){return window.Spruce.store("cart").items.some((function(e){return"selling_plan_allocation"in e}))},hasLineItemWithProperty:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return window.Spruce.store("cart").items.some((function(r){return void 0===t?void 0!==r.properties[e]:r.properties[e]===t}))},isEmpty:function(){return!window.Spruce.store("cart").items.length},hasNonGiftProduct:function(){return window.Spruce.store("cart").items.some((function(e){return!e.properties._gift}))},isFreeGiftOrRewardItem:function(e){var t=e.properties||{};return!!t._gift||!!t.manualGift||!!t._rewardSelectorKey||!!t._reward&&0===e.line_price},removeOrphanedRewardsAndGifts:function(){var e=this;if(this._purgingOrphanedGifts)return Promise.resolve();var t=window.Spruce.store("cart").items;if(0===t.length)return Promise.resolve();var r=t.filter((function(t){return e.isFreeGiftOrRewardItem(t)}));return r.length!==t.length||0===r.length?Promise.resolve():(this._purgingOrphanedGifts=!0,this.removeMany(r).finally((function(){e._purgingOrphanedGifts=!1})))},enforceUniqueProductRules:function(e){return ps(fs.mark((function t(){var r,n,i,o,a,s,u,c,l,d,f,p,h,v;return fs.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=!1,n=[],i=Es(e);try{for(i.s();!(o=i.n()).done;)if(a=o.value,a=Number(a),this.enforcedUniqueProductVariantIDSet.includes(a)&&(s=window.Spruce.store("cart"),u=s.items,c=u.map((function(e){return e.id})),d=(l=function(e,t){return e.reduce((function(e,r){return e[r]=t.filter((function(e){return r===e})).length,e}),{})})(this.enforcedUniqueProductVariantIDSet,c),Object.values(l(this.enforcedUniqueProductVariantIDSet,c)).some((function(e){return e>0})))){for(f=0,p=Object.entries(d);f<p.length;f++)h=ts(p[f],2),v=h[0],h[1]>0&&n.push({variant_id:v});r=!0}}catch(e){i.e(e)}finally{i.f()}if(0===n.length){t.next=7;break}return t.next=7,this.removeMany(n);case 7:return t.abrupt("return",r);case 8:case"end":return t.stop()}}),t,this)})).call(this))},enforceMaxOnePerCartRules:function(e){var t,r=[],n=Es(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,o=i.id;if(o=Number(o),this.enforcedMaxOnePerCart.includes(o))if(window.Spruce.store("cart").items.map((function(e){return e.id})).includes(o))continue;r.push(i)}}catch(e){n.e(e)}finally{n.f()}return r}},As={ready:!1,protectionEnabled:!1,cartUpdating:!1,COOKIE_NAME:"truvani_vsp",items:[{id:42976671170605,price:98},{id:42976671203373,price:115},{id:42976671236141,price:135},{id:42976671268909,price:155},{id:42976671301677,price:175},{id:42976671334445,price:195},{id:42976671367213,price:215},{id:42976671399981,price:235},{id:42976671432749,price:255},{id:42976671465517,price:275},{id:42976671498285,price:295},{id:42976671531053,price:315},{id:42976671563821,price:335},{id:42976671596589,price:355},{id:42976671629357,price:375},{id:42976671662125,price:395},{id:42976671694893,price:415},{id:42976671793197,price:435},{id:42976671891501,price:455},{id:42976671924269,price:475},{id:42976671957037,price:495},{id:42976671989805,price:515},{id:42976672022573,price:535},{id:42976672055341,price:555},{id:42976672088109,price:575},{id:42976672120877,price:595},{id:42976672153645,price:615},{id:42976672186413,price:635},{id:42976672219181,price:655},{id:42976672251949,price:675},{id:42976672284717,price:695},{id:42976672317485,price:715},{id:42976672350253,price:735},{id:42976672383021,price:755},{id:42976672415789,price:775},{id:42976672448557,price:795},{id:42976672481325,price:815},{id:42976672514093,price:835},{id:42976672546861,price:855},{id:42976672579629,price:875},{id:42976672612397,price:895},{id:42976672645165,price:938},{id:42976672677933,price:1003},{id:42976672710701,price:1068},{id:42976672743469,price:1133},{id:42976672776237,price:1198},{id:42976672809005,price:1263},{id:42976672841773,price:1328},{id:42976672874541,price:1393},{id:42976672907309,price:1458},{id:42976672940077,price:1523},{id:42976672972845,price:1588},{id:42976673005613,price:1653},{id:42976673038381,price:1718},{id:42976673071149,price:1783},{id:42976673103917,price:1848},{id:42976673136685,price:1913},{id:42976673169453,price:1978},{id:42976673202221,price:2043},{id:42976673234989,price:2438},{id:42976673267757,price:3163},{id:42976673300525,price:3888},{id:42976673333293,price:4613},{id:42976673366061,price:5338},{id:42976673398829,price:6063},{id:42976673431597,price:6788},{id:42976673464365,price:7513},{id:42976673497133,price:8238},{id:42976673529901,price:8963},{id:42976673562669,price:9688},{id:42976673595437,price:10413},{id:42976673628205,price:11138},{id:42976673660973,price:11863},{id:42976673693741,price:12588},{id:42976673726509,price:13313},{id:42976673759277,price:14030}],init:function(){window.truvaniThemeSettings&&window.truvaniThemeSettings.shippingProtectionEnabled&&!0===window.truvaniThemeSettings.shippingProtectionEnabled&&(this.protectionEnabled=!0),this.registerListeners()},registerListeners:function(){var e=this;this.protectionEnabled&&(window.addEventListener("cart:initialized",(function(){e.ready=!0})),void 0===a.get(this.COOKIE_NAME)&&a.set(this.COOKIE_NAME,!0,{expires:1}),window.addEventListener("cart:initialized",this.syncDomStatusWithCart.bind(this)),window.addEventListener("cart:updated",this.updateCartIfCorrectProtectionItemChanged.bind(this)),window.addEventListener("protection:change",this.handleProtectionChangeEvent.bind(this)))},handleProtectionChangeEvent:function(){this.cartUpdating||(this.cartUpdating=!0,"true"===a.get(this.COOKIE_NAME)?(this.removeProtectionFromCart(),a.set(this.COOKIE_NAME,!1,{expires:1})):(this.addProtectionToCart(),a.set(this.COOKIE_NAME,!0,{expires:1})),this.syncDomStatusWithCart(),this.cartUpdating=!1)},addProtectionToCart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.getCorrectProtectionItem();return window.truvani.cart.hasSubscriptionItems()?window.truvani.cart.subscribe(t.id,1,e):window.truvani.cart.add(t.id,1,e)},removeProtectionFromCart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.getProtectionItemInCart();if(t)return window.truvani.cart.remove(t,e)},getProtectionItemInCart:function(){return window.Spruce.store("cart").protectionItem},getCorrectProtectionItem:function(){if(window.Spruce.store("cart")){var e=window.Spruce.store("cart").subtotal,t=Math.ceil(.03*e);return this.items.filter((function(e){return e.price>=t}))[0]}return null},isProtectionItemSubscriptionEnabled:function(){var e=this.getProtectionItemInCart();return e&&"selling_plan_allocation"in e},doesCartContainColdTrafficPromoItems:function(){return window.Spruce.store("cart").items.some((function(e){return"cold-traffic"===e.properties._promoType}))},updateCartIfCorrectProtectionItemChanged:function(){return ps(fs.mark((function e(){var t,r,n,i;return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=window.Spruce.store("cart"),r=t.subtotal,n=this.getProtectionItemInCart(),i=this.getCorrectProtectionItem(),"true"!==a.get(this.COOKIE_NAME)||this.doesCartContainColdTrafficPromoItems()){e.next=37;break}if(!n){e.next=32;break}if(0===r){e.next=28;break}if(parseInt(i.price)===parseInt(n.line_price)){e.next=26;break}if(!window.truvani.cart.hasSubscriptionItems()){e.next=22;break}
1if(!this.isProtectionItemSubscriptionEnabled()){e.next=16;break}return e.next=12,this.removeProtectionFromCart(!1);case 12:return e.next=14,this.addProtectionToCart();case 14:e.next=20;break;case 16:return e.next=18,this.removeProtectionFromCart(!1);case 18:return e.next=20,this.addProtectionToCart();case 20:e.next=26;break;case 22:return e.next=24,this.removeProtectionFromCart(!1);case 24:return e.next=26,this.addProtectionToCart();case 26:e.next=30;break;case 28:return e.next=30,this.removeProtectionFromCart();case 30:e.next=35;break;case 32:if(0===r){e.next=35;break}return e.next=35,this.addProtectionToCart();case 35:e.next=39;break;case 37:return e.next=39,this.removeProtectionFromCart();case 39:this.syncDomStatusWithCart();case 40:case"end":return e.stop()}}),e,this)})).call(this))},syncDomStatusWithCart:function(){var e=document.querySelector("#truvaniShippingProtectionStatus");e&&(e.checked="true"===a.get(this.COOKIE_NAME))}};const Ms={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},ks={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},js={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Ls={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ns={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Rs{static getFirstMatch(e,t){const r=t.match(e);return r&&r.length>0&&r[1]||""}static getSecondMatch(e,t){const r=t.match(e);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(e,t,r){if(e.test(t))return r}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const t=e.split(".").splice(0,2).map((e=>parseInt(e,10)||0));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const t=e.split(".").splice(0,2).map((e=>parseInt(e,10)||0));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,r=!1){const n=Rs.getVersionPrecision(e),i=Rs.getVersionPrecision(t);let o=Math.max(n,i),a=0;const s=Rs.map([e,t],(e=>{const t=o-Rs.getVersionPrecision(e),r=e+new Array(t+1).join(".0");return Rs.map(r.split("."),(e=>new Array(20-e.length).join("0")+e)).reverse()}));
vendor: 9,729 bytes, line 1
1for(r&&(a=o-Math.min(n,i)),o-=1;o>=a;){if(s[0][o]>s[1][o])return 1;if(s[0][o]===s[1][o]){if(o===a)return 0;o-=1}else if(s[0][o]<s[1][o])return-1}}static map(e,t){const r=[];let n;if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r}static find(e,t){let r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){const n=e[r];if(t(n,r))return n}}static assign(e,...t){const r=e;let n,i;if(Object.assign)return Object.assign(e,...t);for(n=0,i=t.length;n<i;n+=1){const e=t[n];if("object"==typeof e&&null!==e){Object.keys(e).forEach((t=>{r[t]=e[t]}))}}return e}static getBrowserAlias(e){return Ms[e]}static getBrowserTypeByAlias(e){return ks[e]||""}}const $s=/version\/(\d+(\.?_?\d+)+)/i,Bs=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},r=Rs.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},r=Rs.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},r=Rs.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},r=Rs.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},r=Rs.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},r=Rs.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},r=Rs.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},r=Rs.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=Rs.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},r=Rs.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},r=Rs.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},r=Rs.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},r=Rs.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},r=Rs.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},r=Rs.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},r=Rs.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},r=Rs.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},r=Rs.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},r=Rs.getFirstMatch($s,e)||Rs.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},r=Rs.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},r=Rs.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},r=Rs.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},r=Rs.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},r=Rs.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},r=Rs.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},r=Rs.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},r=Rs.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},r=Rs.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t={name:"Android Browser"},r=Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},r=Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},r=Rs.getFirstMatch($s,e);return r&&(t.version=r),t}},{test:[/.*/i],describe(e){const t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:Rs.getFirstMatch(t,e),version:Rs.getSecondMatch(t,e)}}}];var Fs=[{test:[/Roku\/DVP/],describe(e){const t=Rs.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Ls.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Rs.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Ls.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Rs.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=Rs.getWindowsVersionName(t);return{name:Ls.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Ls.iOS},r=Rs.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe(e){const t=Rs.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=Rs.getMacOSVersionName(t),n={name:Ls.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Rs.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Ls.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t=Rs.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=Rs.getAndroidVersionName(t),n={name:Ls.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Rs.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:Ls.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Rs.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Rs.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Rs.getFirstMatch(/\bbb(\d+)/i,e);return{name:Ls.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Rs.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Ls.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Rs.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Ls.Tizen,version:t}}},{test:[/linux/i],describe:()=>({name:Ls.Linux})},{test:[/CrOS/],describe:()=>({name:Ls.ChromeOS})},{test:[/PlayStation 4/],describe(e){const t=Rs.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);
1return{name:Ls.PlayStation4,version:t}}}],Ws=[{test:[/googlebot/i],describe:()=>({type:"bot",vendor:"Google"})},{test:[/huawei/i],describe(e){const t=Rs.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:js.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:()=>({type:js.tablet,vendor:"Nexus"})},{test:[/ipad/i],describe:()=>({type:js.tablet,vendor:"Apple",model:"iPad"})},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:()=>({type:js.tablet,vendor:"Apple",model:"iPad"})},{test:[/kftt build/i],describe:()=>({type:js.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"})},{test:[/silk/i],describe:()=>({type:js.tablet,vendor:"Amazon"})},{test:[/tablet(?! pc)/i],describe:()=>({type:js.tablet})},{test(e){const t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe(e){const t=Rs.getFirstMatch(/(ipod|iphone)/i,e);return{type:js.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:()=>({type:js.mobile,vendor:"Nexus"})},{test:[/[^-]mobi/i],describe:()=>({type:js.mobile})},{test:e=>"blackberry"===e.getBrowserName(!0),describe:()=>({type:js.mobile,vendor:"BlackBerry"})},{test:e=>"bada"===e.getBrowserName(!0),describe:()=>({type:js.mobile})},{test:e=>"windows phone"===e.getBrowserName(),describe:()=>({type:js.mobile,vendor:"Microsoft"})},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:()=>({type:js.tablet})},{test:e=>"android"===e.getOSName(!0),describe:()=>({type:js.mobile})},{test:e=>"macos"===e.getOSName(!0),describe:()=>({type:js.desktop,vendor:"Apple"})},{test:e=>"windows"===e.getOSName(!0),describe:()=>({type:js.desktop})},{test:e=>"linux"===e.getOSName(!0),describe:()=>({type:js.desktop})},{test:e=>"playstation 4"===e.getOSName(!0),describe:()=>({type:js.tv})},{test:e=>"roku"===e.getOSName(!0),describe:()=>({type:js.tv})}],Hs=[{test:e=>"microsoft edge"===e.getBrowserName(!0),describe(e){if(/\sedg\//i.test(e))return{name:Ns.Blink};const t=Rs.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ns.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:Ns.Trident},r=Rs.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:e=>e.test(/presto/i),describe(e){const t={name:Ns.Presto},r=Rs.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe(e){const t={name:Ns.Gecko},r=Rs.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:()=>({name:Ns.Blink})},{test:[/(apple)?webkit/i],describe(e){const t={name:Ns.WebKit},r=Rs.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];class Us{constructor(e,t=!1){if(null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=Rs.find(Bs,(e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some((e=>this.test(e)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=Rs.find(Fs,(e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some((e=>this.test(e)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};const e=Rs.find(Ws,(e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some((e=>this.test(e)));
1throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=Rs.find(Hs,(e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some((e=>this.test(e)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Rs.assign({},this.parsedResult)}satisfies(e){const t={};let r=0;const n={};let i=0;if(Object.keys(e).forEach((o=>{const a=e[o];"string"==typeof a?(n[o]=a,i+=1):"object"==typeof a&&(t[o]=a,r+=1)})),r>0){const e=Object.keys(t),r=Rs.find(e,(e=>this.isOS(e)));if(r){const e=this.satisfies(t[r]);if(void 0!==e)return e}const n=Rs.find(e,(e=>this.isPlatform(e)));if(n){const e=this.satisfies(t[n]);if(void 0!==e)return e}}if(i>0){const e=Object.keys(n),t=Rs.find(e,(e=>this.isBrowser(e,!0)));if(void 0!==t)return this.compareVersion(n[t])}}isBrowser(e,t=!1){const r=this.getBrowserName().toLowerCase();let n=e.toLowerCase();const i=Rs.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r}compareVersion(e){let t=[0],r=e,n=!1;const i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(Rs.compareVersions(i,r,n))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some((e=>this.is(e)))}}
2/*!
3	 * Bowser - a browser detector
4	 * https://github.com/lancedikson/bowser
5	 * MIT License | (c) Dustin Diaz 2012-2015
6	 * MIT License | (c) Denis Demchenko 2015-2019
7	 */class qs{static getParser(e,t=!1){if("string"!=typeof e)throw new Error("UserAgent should be a string");return new Us(e,t)}static parse(e){return new Us(e).getResult()}static get BROWSER_MAP(){return ks}static get ENGINE_MAP(){return Ns}static get OS_MAP(){return Ls}static get PLATFORMS_MAP(){return js}}var Vs={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function zs(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function Ys(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Ks=r((function(e,t){e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var r,n=e.HTMLElement||e.Element,i=468,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||u,scrollIntoView:n.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=(r=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(r)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?h.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var e=arguments[0].left,t=arguments[0].top;h.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var r=function(e){for(;e!==t.body&&!1===f(e);)e=e.parentNode||e.host;return e}(this),n=r.getBoundingClientRect(),i=this.getBoundingClientRect();r!==t.body?(h.call(this,r,r.scrollLeft+i.left-n.left,r.scrollTop+i.top-n.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function u(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;
7if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function d(t,r){var n=e.getComputedStyle(t,null)["overflow"+r];return"auto"===n||"scroll"===n}function f(e){var t=l(e,"Y")&&d(e,"Y"),r=l(e,"X")&&d(e,"X");return t||r}function p(t){var r,n,o,s,u=(a()-t.startTime)/i;s=u=u>1?1:u,r=.5*(1-Math.cos(Math.PI*s)),n=t.startX+(t.x-t.startX)*r,o=t.startY+(t.y-t.startY)*r,t.method.call(t.scrollable,n,o),n===t.x&&o===t.y||e.requestAnimationFrame(p.bind(e,t))}function h(r,n,i){var s,c,l,d,f=a();r===t.body?(s=e,c=e.scrollX||e.pageXOffset,l=e.scrollY||e.pageYOffset,d=o.scroll):(s=r,c=r.scrollLeft,l=r.scrollTop,d=u),p({scrollable:s,method:d,startTime:f,startX:c,startY:l,x:n,y:i})}}}})),Gs={init:function(){return ps(fs.mark((function e(){return fs.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))())},render:function(e){return this.defaultDeliveryEstimate()},defaultDeliveryEstimate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=new Date((new Date).toLocaleString("en-US",{timeZone:"America/New_York"})),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],i=1,o=4;e>0&&(i=e),t>0&&(o=t),r.getHours()>=23&&r.getMinutes()>=1&&r.setDate(r.getDate()+1);var a=new Date(r.setDate(r.getDate()+i)),s=new Date(r.setDate(r.getDate()+o));return a=n[a.getMonth()]+" "+a.getDate(),s=n[s.getMonth()]+" "+s.getDate(),"<p>Estimated Arrival <u>".concat(a," - ").concat(s,"</u></p>")},defaultDeliveryTime:function(){var e=this,t=new Date((new Date).toLocaleString("en-US",{timeZone:"America/Los_Angeles"}));if(t.getHours()>=11&&t.setDate(t.getDate()+1),t.setHours(11,0,0,0),!this.hideInitialDeliveryTime)var r=setInterval((function(){var n=nn({start:new Date((new Date).toLocaleString("en-US",{timeZone:"America/Los_Angeles"})),end:t});0===n.hours?e.estimatedDeliveryTime="Faster Delivery <u>Order within ".concat(an("min",n.minutes,!0)," & ").concat(an("sec",n.seconds,!0)):e.estimatedDeliveryTime="Faster Delivery <u>Order within ".concat(an("hr",n.hours,!0)," & ").concat(an("min",n.minutes,!0)),(on(t)||n.hours>=8)&&(e.estimateDelivery(),e.estimatedDeliveryTime=e.estimatedDelivery,clearInterval(r))}),1e3)},publicDataProxy:function(){return{estimatedDeliveryTime:this.estimatedDeliveryTime,defaultDeliveryTime:this.defaultDeliveryTime}}},Qs={init:function(){var e=this,t=0;qs.getParser(window.navigator.userAgent).satisfies({mobile:{safari:">=9"}})&&window.addEventListener("load",(function(){var e=document.querySelector("body").className.split(" ");e.push("browser-ios-safari"),document.querySelector("body").className=e.join(" ")})),this.cart.checkForManualDiscountCode();var r=setInterval((function(){if(window.Alpine&&window.Spruce&&window.cart_rewards){e.cart.init(),e.protection.init(),e.reviews.init(),e.gifts.init(),e.rewards.init(window.cart_rewards),e.tracking.init(),e.shipping.init(),Spruce.store("ui",{currentCollection:"*"}),e.cart.sync();var n=new URLSearchParams(window.location.search),i=n.get("_delutm"),o=n.get("_ctags");e.tracking.syncCartAttributes(i,o),Object.keys(e.campaigns).forEach((function(t){"function"==typeof e.campaigns[t].init&&e.campaigns[t].init()})),clearInterval(r)}if(t>=100)throw clearInterval(r),new Error("Did not load Alpine and Spruce successfully.");t++}),50);window.requestAnimationFrame(Ks.polyfill)},buy:Ga,tracking:us,cart:Ds,protection:As,gifts:cs,rewards:ss,reviews:hs,shipping:Gs,fire:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;window.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:t}))},campaigns:{},components:{buyBox:function(e,t,r){var n={label:e,globalOptions:t,reviewSummaries:r};return Fo(qo,sn)(n)},buyBoxSolo:function(e,t,r){var n={label:e,globalOptions:t,reviewSummaries:r};return Fo(Go,Vo)(n)},carousel:function(e,t,r){return{init:function(e,t,r,n){var i=this;this.$el=e,this.$refs=t,this.$dispatch=r;var o=parseInt(n,10)||0,a="video:loaded:".concat(this.label);this.$nextTick((function(){i._carouselWidth=i.$refs.items.clientWidth,i.current=o,i.resetScroll(),i.initVideos(),i._onVideoLoaded&&window.removeEventListener(a,i._onVideoLoaded),i._onVideoLoaded=function(){setTimeout((function(){i.goTo(i.$refs.items,o)}),750)},window.addEventListener(a,i._onVideoLoaded,{once:!0})}))},initVideos:function(){var e=this;this.$refs.items.querySelectorAll("[data-vimeo-id]").forEach((function(t){var r=new window.Vimeo.Player(t,{responsive:!0}),n=t.closest(".carousel__item").querySelector(".carousel__cover");r.on("play",(function(){n&&n.classList.add("hidden"),Qs.fire("video:playing",r)})),r.on("pause",(function(){Qs.fire("video:paused"),n&&n.classList.remove("hidden")})),e.players.push(r)})),Qs.fire("video:loaded:".concat(this.label))},resetScroll:function(){this._carouselWidth=this.$refs.items.clientWidth;var e=this.current*this._carouselWidth;this.$refs.items.scrollTo({left:e,behavior:"instant"}),this.$refs.items.scrollLeft=e}
7,pauseAllVideos:function(){this.players.forEach((function(e){return e.pause()}))},playSlideVideo:function(e){var t=this.$refs.items.querySelector('.carousel__item[data-index="'.concat(e,'"]')).querySelector("[data-vimeo-id]");new Vimeo.Player(t).play()},goTo:function(e,t){if(t!==this.current){this._carouselWidth=this.$refs.items.clientWidth;var r=this.current,n=t;this.current=n,e.scrollTo({left:this._carouselWidth*n,top:0,behavior:"smooth"}),this.$dispatch("current-changed",n,r)}},handleScrollFinish:function(){if(this._carouselWidth=this.$refs.items.clientWidth,this._carouselWidth){var e=this.current,t=Math.round(this.$refs.items.scrollLeft/this._carouselWidth);e!==t&&(this.current=t,this.$dispatch("current-changed",t,e))}},handleWindowResize:function(e){this._carouselWidth=this.$refs.items.clientWidth,this.resetScroll()},getCdnUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.filename||e.cover;if(!n)return"";var i="files"===e.source?Shopify.files_url:Shopify.assets_url;if(t){var o=n.split("."),a=o.pop(),s=o.join(".");n="".concat(s,"_").concat(t,".").concat(a)}return r?n:"".concat(i,"/").concat(n)},isDown:!1,startX:0,current:0,label:e,items:t,iconColor:"green",touched:!1,players:[],_carouselWidth:500,badge:r}},cartBar:function(e,t){var r={componentConfig:e,globalOptions:t};return Fo(Xo,sn)(r)},drawer:function(e){return{open:!1,directToCheckout:$e(e,"directToCheckout",!1),checkoutLink:"https://shop.truvani.com/checkout/",cartLink:"https://shop.truvani.com/cart/",shopifyCheckout:$e(e,"shopifyCheckout",!1),showSavings:$e(e,"showSavings",!1),giftRemovalCookieName:"removedRewards",allowGiftRemoval:$e(e,"allowGiftRemoval",!1),showSubUpgrade:$e(e,"showSubUpgrade",!1),usingCustomUpsells:!!$e(e,"usingCustomUpsells",!1),upsellTitle:"",addQuantity:1,currentIndex:0,requiresConsent:!1,requiresConsentIsChecked:!1,requestCount:0,init:function(){var e=this;window.addEventListener("keydown",(function(t){"Esc"!==t.key&&"Escape"!==t.key||(e.open=!1)})),window.addEventListener("rewards:calculated",(function(){return e.getTitle()})),window.addEventListener("cart:items:added",(function(){return e.getTitle()})),window.addEventListener("cart:items:removed",(function(){return e.getTitle()})),window.addEventListener("ui:drawer:open",(function(){return e.getTitle()})),this.getTitle()},handleRequiresConsent:function(){this.requiresConsent=!1},handleRemoveReward:function(e){var t=a.get(this.giftRemovalCookieName)||"",r=t?t.split(","):[];return r.includes(e.id.toString())||(r.push(e.id),a.set(this.giftRemovalCookieName,r.join(","),{expires:3})),window.truvani.cart.remove(e)},getPackageProtectionItem:function(){return window.truvani.protection.getProtectionItemInCart()},getCurrentPackageProtectionPrice:function(){var e=this.getPackageProtectionItem();return ia(e?e.line_price:(e=window.truvani.protection.getCorrectProtectionItem()).price)},doesCartContainColdTrafficPromoItems:function(){return window.Spruce.store("cart").items.some((function(e){return"cold-traffic"===e.properties._promoType}))},checkout:function(){var e=this.cartLink;if(this.directToCheckout){var t=a.get("discount_code");t&&"BIRTHDAY50OFF"!==t&&"BIRTHDAY25OFF"!==t&&(this.checkoutLink+="?discount="+t),e=this.checkoutLink}window.truvani.fire("drawer:checkout",e),window.location.href=e},get lastAddedItem(){var e=["plant-based-protein-powder","whey-protein-powder","collagen-peptides","the-only-bar"],t=((window.Spruce.store("cart")||{}).items||[]).filter((function(e){return e.line_price>0&&!(e.properties&&!0===e.properties._reward)})).filter((function(t){var r=t.handle||"",n=e.some((function(e){return r.includes(e)})),i="collagen"===r,o=r.includes("collagen-peptides-14");return(n||i)&&!o}));if(t.length>0){var r=t[t.length-1];"Collagen Peptides"===r.product_title&&"14 Servings"===r.variant_title&&1===r.quantity||"The Only Bar"===r.product_title&&r.selling_plan_allocation&&1===r.quantity?this.addQuantity=2:this.addQuantity=1}return t.length>0?t[t.length-1]:null},get items(){return Array.from(this.$el.querySelectorAll(".cart-upsell"))},get total(){return this.items.length},next:function(){0!==this.total&&(this.currentIndex=(this.currentIndex+1)%this.total)},prev:function(){0!==this.total&&(this.currentIndex=(this.currentIndex-1+this.total)%this.total)},getTitle:function(){var e=Spruce.store("rewards")||{};Spruce.store("cart");var t=e.active,r=void 0===t?[]:t,n=e.earned,i=void 0===n?[]:n,o=r.filter((function(e){return!e.hidden})),a=o.filter((function(e){return(i||[]).some((function(t){return JSON.stringify(t)===JSON.stringify(e)}))}));if(o.length){var s=o.find((function(e){return!a.some((function(t){return JSON.stringify(t)===JSON.stringify(e)}))}))||null;if(s)this.upsellTitle="Add more for ".concat(s.label);else{var u=o[o.length-1];this.upsellTitle=u?"You've Unlocked ".concat(u.label):"Add more for your next reward"}}else this.upsellTitle="Add more for your next reward"}}},everGreenTimer:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("object"===o(e)&&(e=function(e){var t=1e3,r=60*t,n=60*r,i=24*n,o=new Date,s=0;e.cookie&&a.get(e.cookie)&&(s=a.get(e.cookie),o=new Date(parseInt(s)));0==s&&e.padding&&(e.padding.days&&"number"==typeof e.padding.days&&(s+=i*e.padding.days),e.padding.hours&&"number"==typeof e.padding.hours&&(s+=n*e.padding.hours),e.padding.minutes&&"number"==typeof e.padding.minutes&&(s+=r*e.padding.minutes),e.padding.seconds&&"number"==typeof e.padding.seconds&&(s+=t*e.padding.seconds),o=new Date(o.setTime(o.getTime()+s)),e.cookie&&a.set(e.co
7okie,o.getTime(),{expires:o.getDate()-(new Date).getDate()+1}));return o}(e)),!(e instanceof Date))throw new Error("Timer bar requires that expiration be an instance of Date.");return{open:!t||window.scrollY>=100,expiration:e.getTime()/1e3,days:0,hours:0,minutes:0,seconds:0,MIN_Y_SCROLL:100,init:function(){this.timeout=setInterval(this.tick.bind(this),1e3)},tick:function(){var e=(new Date).getTime()/1e3,t=this.expiration-e;if(t<0)return this.seconds=0,this.minutes=0,this.hours=0,this.days=0,this.open=!1,clearInterval(this.timeout);this.seconds=Math.floor(t%60),this.minutes=Math.floor(t/60%60),this.hours=Math.floor(t/3600%24),this.days=Math.floor(t/86400)}}},modal:function(e){return{id:e,dynamicUrl:"",open:!1,init:function(e,t,r){var n=this;this.$el=e,this.$watch=t,this.$dispatch=r,window.addEventListener("keydown",(function(e){"Esc"!==e.key&&"Escape"!==e.key||(n.open=!1)})),this.registerListeners()},registerListeners:function(){this.$watch("open",this.toggleBodyScrollLock.bind(this))},toggleBodyScrollLock:function(e){e?va(this.$el):ma(this.$el)}}},navDrawer:function(){return{open:!1,init:function(){var e=this;window.addEventListener("keydown",(function(t){"Esc"!==t.key&&"Escape"!==t.key||(e.open=!1)}))}}},subscriptionUpsell:function(e){function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=r?"subscribeMany":"addMany",i=e.reduce((function(e,t){var r=Array.isArray(t.variantId)?t.variantId:[t.variantId];return e=e.concat(r),Array.from(new Set(e))}),[]),o=$e(Spruce.store("buy")||{},"currentBulkDiscountQuantity",1);r&&(o=1);var a=i.map((function(e){return{id:e,quantity:o,properties:t}}));return window.truvani.cart[n](a)}var r=e.config;if(r.products.length<1)throw new Error("You must provide at least one product to the Subscription Upsell config.");return{init:function(e,t,n,i){var o=this;this.$el=e,this.$refs=t,this.$dispatch=n,this.$watch=i,!1===window.truvani.buy.initialized&&r.products[0]&&window.truvani.buy.init(r.products[0]),this.registerListeners(),this.$nextTick((function(){o.$store.buy.selectedProducts.push(o.products[0].key)}))},registerListeners:function(){},getAllItems:function(){var e=Nr(this.products).concat(Nr(this.addOns)).reduce((function(e,t){return e[t.key]=t,e}),{});return Object.values(e)},updatePricing:function(){var e=["oneTimePurchase","subscription"],t=this.getAllItems();this.currentPricing=this.$store.buy.selectedProducts.map((function(e){return t.find((function(t){return e===t.key}))})).filter(Boolean).reduce((function(t,r){return e.forEach((function(e){r[e].price.regular&&r[e].price.final?(t[e].regular+=r[e].price.regular,t[e].final+=r[e].price.final):(t[e].regular+=r[e].price.final,t[e].final+=r[e].price.final)})),t}),{oneTimePurchase:{regular:0,final:0},subscription:{regular:0,final:0}})},handleBuyBoxChanges:function(e){this.$store.buy.selectedProducts=e.selectedProducts,this.updatePricing()},addSubscriptionToCart:function(){var e=this,r=Nr(this.products).concat(Nr(this.addOns)).filter((function(t){return e.$store.buy.selectedProducts.includes(t.key)})).map((function(e){return e.subscription})).filter(Boolean);t(r,this.getLineItemProperties(r[0]||{}),!0),window.truvani.fire("ui:modal:close"),window.truvani.fire("ui:drawer:open")},addOneTimePurchaseToCart:function(){var e=this,r=Nr(this.products).concat(Nr(this.addOns)).filter((function(t){return e.$store.buy.selectedProducts.includes(t.key)})).map((function(e){return e.oneTimePurchase})).filter(Boolean);t(r,this.getLineItemProperties(r[0]||{}
7)),truvani.utilities.setCookie("sub_upsell_".concat(window.location.pathname),"false",{expires:7}),window.truvani.fire("ui:modal:close"),window.truvani.fire("ui:drawer:open")},getLineItemProperties:function(e){var t={};return this.promo&&this.promo.name&&(t._promo=this.promo.name),this.promo&&this.promo.type&&(t._promoType=this.promo.type),this.offer&&(t._offer=this.offer),e.gifts&&(t._gifts=e.gifts),t},addOns:$e(r,"addOns",[]),currentPricing:{oneTimePurchase:{regular:0,final:0},subscription:{regular:0,final:0}},offer:$e(e,"offer",""),products:$e(r,"products",[]),promo:$e(e,"promo",{})}},testimonialCarousel:function(e,t,r){return{init:function(e,t,r,n){var i=this;this.$el=e,this.$refs=t,this.$dispatch=r,this.$watch=n,this.presetDimensions(),this.$refs.wrapper.addEventListener("mousedown",this.startDrag.bind(this)),this.$refs.wrapper.addEventListener("mousemove",this.drag.bind(this)),document.addEventListener("mouseup",this.endDrag.bind(this)),this.$watch("position",this.goToPosition.bind(this)),this.$nextTick((function(){i.initDimensions(),i.initVideos()}))},initDimensions:function(){var e=this.$refs.wrapper,t=this.$refs.items.querySelector(".testimonial-carousel__item"),r=t.getBoundingClientRect(),n=getComputedStyle(t),i=parseInt(n.marginLeft.replace("px","")),o=parseInt(n.marginRight.replace("px",""));this._itemWidth=r.width+i+o,this._outerWidth=e.offsetWidth,this._innerWidth=this._itemWidth*this.items.length,this._scrollWidth=this._innerWidth>this._outerWidth?this._innerWidth-this._outerWidth:0,this._scrollIncrement=this._scrollWidth/(this.items.length-1)},initVideos:function(){var e=this;this.$refs.items.querySelectorAll("[data-vimeo-id]").forEach((function(t){var r=new Vimeo.Player(t,{responsive:!0}),n=t.closest(".testimonial-carousel__item");r.on("play",(function(){n.classList.add("testimonial-carousel__item--playing"),truvani.fire("video:playing",r)})),r.on("pause",(function(){n.classList.remove("testimonial-carousel__item--playing")})),e.players.push(r)}))},initPosition:function(){this._outerWidth<768?this.position=0:this.position=this._innerWidth>this._outerWidth?Math.ceil(this.items.length/2)-1:0},goToPosition:function(e){e!==this.position&&(this.position=Math.max(0,Math.min(e,this.items.length-1)),this.$refs.wrapper.scrollTo({left:this._itemWidth*this.position,top:0,behavior:"smooth"}))},goBack:function(){this.goToPosition(this.position-1)},goForward:function(){this.goToPosition(this.position+1)},updatePosition:function(){var e=this.$refs.wrapper.scrollLeft;this.position=Math.round(e/this._itemWidth),this.position=Math.max(0,Math.min(this.position,this.items.length-1)),this.$dispatch("position-changed")},pauseAllVideos:function(){this.players.forEach((function(e){return e.pause()}))},playSlideVideo:function(e){var t=this.$refs.items.querySelector('.testimonial-carousel__item[data-index="'.concat(e,'"]')),r=t.querySelector("[data-vimeo-id]");new Vimeo.Player(r).play(),t.classList.add("testimonial-carousel__item--playing")},getCdnUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=e.filename||e.cover;if(!r)return this.hasCover=!1,"";var n="files"===e.source?Shopify.files_url:Shopify.assets_url;if(t){var i=r.split("."),o=i.pop(),a=i.join(".");r="".concat(a,"_").concat(t,".").concat(o)}return"".concat(n,"/").concat(r)},startDrag:function(e){this.isDown=!0,this.lastX=e.clientX,this.startScroll=this.$refs.wrapper.scrollLeft},drag:function(e){if(this.isDown){e.preventDefault();var t=e.clientX-this.lastX;this.$refs.wrapper.scrollLeft=this.startScroll-t}},endDrag:function(){this.isDown=!1},presetDimensions:function(){this._itemWidth=401,this._innerWidth=this._itemWidth*this.items.length,this.$refs.items&&(this.$refs.items.style.width="".concat(this._innerWidth,"px"))},destroy:function(){this.$refs&&this.$refs.wrapper&&(this.$refs.wrapper.removeEventListener("mousedown",this.startDrag.bind(this)),this.$refs.wrapper.removeEventListener("mousemove",this.drag.bind(this))),document.removeEventListener("mouseup",this.endDrag.bind(this)),this.players&&this.players.length&&(this.players.forEac
7h((function(e){e&&"function"==typeof e.destroy&&e.destroy()})),this.players=[])},isDown:!1,hasCover:!0,lastX:0,label:e,items:t,position:0,players:[],thumbnail:r,_outerWidth:document.body.offsetWidth,_innerWidth:401*t.length,_itemWidth:401,startScroll:0}},miniPlayer:function(e,t,r){return{player:!1,maximized:!1,minimized:!1,scrollTarget:r||!1,scrolled:!1,init:function(e,r,n){var i=this;this.$el=e,this.player=new Vimeo.Player(this.$refs.stage,{id:t,controls:!1,autoplay:!0,muted:!0,loop:!0,responsive:!0}),this.scrollTarget&&document.addEventListener("scroll",(function(e){i.scrolled=!!(null!=document.querySelector(i.scrollTarget)&&window.pageYOffset>document.querySelector(i.scrollTarget).offsetTop)}))},maximizePlayer:function(){this.player&&!1===this.maximized&&(this.maximized=!0,this.player.setCurrentTime(0),this.player.setVolume(1),this.minimized&&(this.minimized=!1,this.player.play()))},closePlayer:function(){this.player&&(this.player.setCurrentTime(0),this.player.setVolume(0),this.player.pause(),this.minimized=!0,this.maximized=!1)},openPlayer:function(){this.player&&this.minimized&&!1===this.maximized&&this.maximizePlayer()}}},thumbDrawer:function(e,t){var r={globalOptions:t};return Fo(na,sn)(r)},timerBar:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if("string"==typeof e&&(e=function(e,t,r){if("string"==typeof e&&!e.match(ja)){var n=wa(r);return n.timeZone=t,Ba(e,n)}var i=Ba(e,r),o=Ia(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()).getTime(),a=Da(t,new Date(o));return new Date(o+a)}(e,"America/Los_Angeles")),!(e instanceof Date))throw new Error("Timer bar requires that expiration be an instance of Date.");return{open:!!t||window.scrollY>=100,expiration:e.getTime()/1e3,startDay:r,days:0,hours:0,minutes:0,seconds:0,MIN_Y_SCROLL:100,scrollTo:0,init:function(){this.timeout=setInterval(this.tick.bind(this),1e3)},tick:function(){var e=(new Date).getTime()/1e3,t=this.expiration-e;if(t<0||!t)return this.seconds=0,this.minutes=0,this.hours=0,this.days=0,this.open=!1,clearInterval(this.timeout);this.seconds=Math.floor(t%60),this.minutes=Math.floor(t/60%60),this.hours=Math.floor(t/3600%24),this.days=Math.floor(t/86400)},scrollToBuyBox:function(){var e=(document.querySelector(".promo-collections")||document.querySelector(".buy-box__title")).offsetTop;window.scrollTo({top:e-100,behavior:"smooth"})},toggleTimerBarOpen:function(){this.open=window.scrollY>=100&&this.days<this.startDay}}},videoEmbed:function(e){return{init:function(e,t){var r=this;this.$el=e,this.$refs=t,this.$nextTick((function(){return r.initVideo()}))},play:function(){this.player&&this.player.play()},pause:function(){this.player&&this.player.pause()},initVideo:function(){var e=this;this.player=new Vimeo.Player(this.$refs.player,{responsive:!0}),this.player.on("pause",(function(){return e.playing=!1})),this.player.on("play",(function(){e.playing=!0,truvani.fire("video:playing",e.player)}))},playing:!1,player:void 0,videoId:e}}},utilities:{clamp:is,formatCurrency:ia,get:$e,cloneDeep:Nr,getThumbnailUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"medium";if(e){if(e.indexOf("cdn.shopify.com")<0)throw new Error("You cannot use getThumbnailUrl with images that are not hosted on Shopify's CDN.");var r=new URL(e),n=r.pathname,i=n.split("."),o=i.pop();return r.toString().replace(n,"".concat(i.join("."),"_").concat(t,".").concat(o))}},getQueryParam:function(e){if(""!==window.location.search.trim()){var t=window.location.search.substr(1).split("&").reduce((function(e,t){var r=t.split("="),n=ts(r,2),i=n[0],o=n[1];return e[i]=o,e}),{});return t[e]}},getCookie:function(e){return a.get(e)},setCookie:function(e,t,r){return a.set(e,t,r)},md:function e(t,r){var n,i,o,a,s,u=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t|  {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|(  \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,c=[],l="",d=r||{},f=0;function p(e){var t=Vs[e[1]||""],r=c[c.length-1]==e;return t?t[1]?(r?c.pop():c.push(e),t[0|r]):t[0]:e}function h(){for(var e="";c.length;)e+=p(c[c.length-1]);return e}for(t=t.replace(/^\[(.+?)\]:\s*(.+)$/gm,(function(e,t,r){return d[t.toLowerCase()]=r,""})).replace(/^\n+|\n+$/g,"");o=u.exec(t);)i=t.substring(f,o.index),f=u.lastIndex,n=o[0],i.match(/[^\\](\\\\)*\\$/)||((s=o[3]||o[4])?n='<pre class="code '+(o[4]?"poetry":o[2].toLowerCase())+'"><code'+(o[2]?' class="language-'+o[2].toLowerCase()+'"':"")+">"+zs(Ys(s).replace(/^\n+|\n+$/g,""))+"</code></pre>":(s=o[6])?(s.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),a=e(zs(o[5].replace(/^\s*[>*+.-]/gm,""))),">
7"==s?s="blockquote":(s=s.match(/\./)?"ol":"ul",a=a.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+s+">"+a+"</"+s+">"):o[8]?n='<img src="'+Ys(o[8])+'" alt="'+Ys(o[7])+'">':o[10]?(l=l.replace("<a>",'<a href="'+Ys(o[11]||d[i.toLowerCase()])+'">'),n=h()+"</a>"):o[9]?n="<a>":o[12]||o[14]?n="<"+(s="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+e(o[12]||o[15],d)+"</"+s+">":o[16]?n="<code>"+Ys(o[16])+"</code>":(o[17]||o[1])&&(n=p(o[17]||"--"))),l+=i,l+=n;return(l+t.substring(f)+h()).replace(/^\n+|\n+$/g,"")},getUrlParameter:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=window.location.search.substring(1).split("&");for(r=0;r<i.length;r++)if((t=i[r].split("="))[0]===e)return void 0===o(t[1])||decodeURIComponent(t[1]);return n},scrollIntoView:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-50,n=null===(t=Array.prototype.slice.call(document.querySelectorAll(e)).filter((function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0})))||void 0===t?void 0:t[0];if(n){var i=n.offsetTop;window.scrollTo({top:i+r,behavior:"smooth"})}},audioEyeToggle:function(){window.AudioEye&&window.AudioEye.launcher&&!0===window.AudioEye.launcher.active?window.AudioEye.activate():window.AudioEye.deactivate()}}};return Qs.init(),Qs}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.