!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("YotpoSMS",[],e):"object"==typeof exports?exports["yotpo-sms"]=e():t.smsbump=e()}(this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=13)}([function(t,e,r){"use strict";(function(t){var n;function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"e",(function(){return i})),r.d(e,"k",(function(){return a})),r.d(e,"l",(function(){return c})),r.d(e,"f",(function(){return u})),r.d(e,"j",(function(){return f})),r.d(e,"i",(function(){return s})),r.d(e,"m",(function(){return l})),r.d(e,"g",(function(){return p})),r.d(e,"d",(function(){return h})),r.d(e,"b",(function(){return d})),r.d(e,"n",(function(){return y})),r.d(e,"h",(function(){return v})),r.d(e,"a",(function(){return m})),r.d(e,"c",(function(){return b})),r.d(e,"o",(function(){return g}));var i="https://web-tracker.smsbump.com",a=t.env.SMSBUMP_API_BASE_URL||"https://api.smsbump.com",c=t.env.SMSBUMP_API_BASE_URL_LEGACY||"https://smsbump.com",u="ASNK5ikSal2KNZTqNBxIT7bUb84PDaOY5oAkH2G5",f=2,s=(o(n={},f,"shopify"),o(n,4,"generic"),o(n,3,"magento"),n),l="smsbump-custom-form-event",p="SMSKlaviyoFormSubmit",h=["product"],d=["product","collection","home","cart"],y="__wtba",v="__kla_id",m="__wtaos",b="ALL_TRACKING_COOKIES",g="wtbap"}).call(this,r(14))},function(t,e,r){"use strict";r.d(e,"d",(function(){return c})),r.d(e,"f",(function(){return u})),r.d(e,"c",(function(){return f})),r.d(e,"e",(function(){return s})),r.d(e,"b",(function(){return l})),r.d(e,"a",(function(){return p}));var n,o=r(2),i=r(8),a=r(0);function c(){var t=function(t){var e=null;try{var r=atob(t);e=JSON.parse(r)}catch(t){}return e}(l())||{pi:{name:window.location.pathname+window.location.search,count:1},s:[],ui:{t:(new Date).getTime()/1e3,ua:navigator.userAgent,tmpt:Object(o.c)()}};function e(){var t,e,r=Object(i.snapshot)(n),o=(t=r,e=JSON.stringify(t),btoa(e));s(a.n,o)}n=Object(i.proxy)(t),Object(i.subscribe)(n,e,!0),e()}function u(t){Object.assign(n,t)}function f(t){var e=Object(i.snapshot)(n);return t?e[t]:e}function s(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date("2038-01-19T03:14:07+00:00").toUTCString();document.cookie=t+"="+e+"; expires="+r+"; path=/"}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.n,e=new RegExp("^(?:.*;)?\\s*".concat(t,"\\s*=\\s*([^;]+)(?:.*)?$"));return(document.cookie.match(e)||[,null])[1]}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.n;t!==a.c?document.cookie="".concat(t,"= ; expires = Thu, 01 Jan 1970 00:00:00 GMT"):[a.n,a.a].forEach(p)}},function(t,e,r){"use strict";r.d(e,"c",(function(){return c})),r.d(e,"a",(function(){return u})),r.d(e,"d",(function(){return f})),r.d(e,"b",(function(){return s})),r.d(e,"f",(function(){return l})),r.d(e,"g",(function(){return p})),r.d(e,"h",(function(){return h})),r.d(e,"e",(function(){return d}));var n=r(7),o=r(0),i=r(4);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40,e="",r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=r.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:Object.keys(t);e.forEach((function(e){var r=a(t[e]);!["string","number"].includes(r)||"number"===r&&"NaN"===t[e].toString()?delete t[e]:t[e]=String(t[e]).replace(/[\s\u00A0]+/g,"")}))}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f();return t?o.i[t]:null}},function(t,e,r){"use strict";r.d(e,"c",(function(){return g})),r.d(e,"e",(function(){return S})),r.d(e,"d",(function(){return P})),r.d(e,"b",(function(){return T})),r.d(e,"a",(function(){return A}));var n=r(2),o=r(1),i=r(5),a=r(10),c=r(0);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f=["tmpt","tatd"];function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function y(){}function v(){}var m={};f(m,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(P([])));g&&g!==e&&r.call(g,i)&&(m=g);var w=v.prototype=d.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e((function(o,a){!function n(o,i,a,c){var f=p(t[o],t,i);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==u(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(f.arg)}(n,i,o,a)}))}return o=o?o.then(a,a):a()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===h)continue;return c}}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(t,e,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){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=p(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function l(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){l(i,n,o,a,c,"next",t)}function c(t){l(i,n,o,a,c,"throw",t)}a(void 0)}))}}function h(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?e-1:0),n=1;n0&&void 0!==v[0]?v[0]:{}).event=e.event||"custom",r=e.event,c=e.customer_id,u=void 0===c?null:c,f=e.exchange_id,l=void 0===f?null:f,p=o.c("ui"),h=p.tatd,["custom","form_submit"].includes(r)&&Object(n.h)(e,["phone","email"]),"custom_param"===r||e.email||e.phone){t.next=7;break}return t.abrupt("return",Promise.reject("Please provide phone or email"));case 7:return d={platform_id:Object(n.d)()},t.abrupt("return",Object(i.a)(y(y(y({},d),e),{},{tatd:h})).then((function(t){return w(y({customer_id:u,exchange_id:l},t)),Object(a.b)(),t})));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(){var t=o.c("ui");if(t.atd){var e=t.atd.split("-");/^[ecf]/.test(e.pop())&&o.f({ui:y(y({},t),{},{atd:e.join("-")})})}}function A(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.customer_id,r=t.reset,n=o.c("ui"),i=n.ci,a=n.atd;n.tatd;if((r||i&&String(i)!==String(e)||!i&&a&&e)&&(o.a(c.c),o.d()),e)return O(e);[L,x].forEach(function(){var t=p(s().mark((function t(e){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(S()){t.next=3;break}return t.next=3,e();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},function(t,e,r){"use strict";r.d(e,"b",(function(){return a}));var n=r(2);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function h(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){h(i,n,o,a,c,"next",t)}function c(t){h(i,n,o,a,c,"throw",t)}a(void 0)}))}}function y(t){var e=JSON.stringify(t),r=btoa(e),n=r.substring(0,10),i=r.substring(10),a=Object(o.c)(1);return Object(o.a)(n,3).join(a)+i}function v(t){return m.apply(this,arguments)}function m(){return(m=d(u().mark((function t(e){var r,n,o,i,a,f,l,h,d,y;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.base_url,n=e.path,o=void 0===n?"":n,i=e.opts,a=i.headers,f=p(i,c),l=e.body,h={"Content-Type":"application/json",Accept:"application/json"},d=new URL("".concat(r).concat(o)),"application/json"===(y=s(s({},f),{},{headers:s(s({},h),a),method:"POST",cache:"no-cache",body:l})).headers["Content-Type"]&&(y.body=JSON.stringify(y.body)),t.abrupt("return",fetch(d,y).then((function(t){if(t.status>=400)throw new Error("API call failed. Status code ".concat(t.status,": ").concat(t.statusText));return t})).then((function(t){return t.json()})).catch((function(t){return Promise.reject({status:"error",message:"Something went wrong",error:t})})));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(t){return g.apply(this,arguments)}function g(){return(g=d(u().mark((function t(e){var r,a,c,f,s,l,p,h,d,m;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.path,a=void 0===r?"":r,c=e.opts,f=void 0===c?{}:c,s=e.payload,l=void 0===s?{}:s,p=i.a.get(),h=p.store,d=p.store_id,h||d){t.next=4;break}throw new Error("Please use config() to set your store");case 4:return Array.isArray(l)||(Object.assign(l,{store:h,store_id:d}),Object(o.g)(l)),m={request:y(l)},t.abrupt("return",v({base_url:n.e,path:a,opts:f,body:m}));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t){return O.apply(this,arguments)}function O(){return(O=d(u().mark((function t(e){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",b({path:"/",opts:{headers:{"x-api-key":n.f}},payload:e}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(t){return x.apply(this,arguments)}function x(){return(x=d(u().mark((function t(e){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",b({path:"/customer",opts:{headers:{"x-api-key":n.f}},payload:e}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _(t,e){return L.apply(this,arguments)}function L(){return(L=d(u().mark((function t(e,r){var i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Object(o.g)(r),i=new URLSearchParams(r),t.abrupt("return",v({base_url:n.l,path:e,opts:{headers:{"Content-Type":"application/x-www-form-urlencoded"}},body:i}));case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function E(t,e){return S.apply(this,arguments)}function S(){return(S=d(u().mark((function t(e,r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Object(o.g)(r),t.abrupt("return",v({base_url:n.k,path:e,opts:{headers:{"x-smsbump-platform":Object(o.e)()}},body:r}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},function(t,e,r){"use strict";r.r(e),r.d(e,"track",(function(){return b})),r.d(e,"subscribe",(function(){return w}));var n=r(5),o=r(2),i=r(9),a=r(3);r.d(e,"identify",(function(){return a.d})),r.d(e,"isIdentified",(function(){return a.e}));var c=r(4),u=r(0);r.d(e,"config",(function(){return c.a}));var f=r(12);for(var s in f)["default","track","subscribe","config","identify","isIdentified"].indexOf(s)<0&&function(t){r.d(e,t,(function(){return f[t]}))}(s);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function d(){}function y(){}function v(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(P([])));g&&g!==e&&r.call(g,i)&&(m=g);var w=v.prototype=d.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e((function(o,a){!function n(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var f=u.arg,p=f.value;return p&&"object"==l(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}(n,i,o,a)}))}return o=o?o.then(a,a):a()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===h)continue;return c}}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=s(t,e,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){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e1&&void 0!==b[1]?b[1]:{},Object(a.e)()){t.next=3;break}return t.abrupt("return",Promise.reject("Visitor not identified"));case 3:if(e&&"string"==typeof e){t.next=5;break}return t.abrupt("return",Promise.reject("Event name missing"));case 5:return o=Object(a.c)(),c=d({},o),(u=Object(i.a)("pageView"))&&(f=u.type,s=u.url,l=s.pathname,h=s.search,y=u.id,v=u.variant_id,Object.assign(c,{entity_type:f,page:l+h,entity_id:y,variant_id:v})),m=[d(d(d({},c),{},{event:e},r),{},{timestamp:(new Date).getTime()/1e3})],t.abrupt("return",Object(n.d)(m).then((function(){return!0})).catch((function(){return!1})));case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(){return O.apply(this,arguments)}function O(){return(O=m(p().mark((function t(){var e,r,i,f,s,l,h,d,y=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d=function(t){var e=t.status,n=(t.error_code,t.message),o=void 0===n?"Something went wrong":n;return"success"===e||o.includes("already subscribed")?(Object(a.d)({event:"form_submit",phone:r,email:i}),Promise.resolve(!0)):Promise.reject(o)},e=y.length>0&&void 0!==y[0]?y[0]:{},Object(o.h)(e),e.phone||e.email){t.next=5;break}return t.abrupt("return",Promise.reject('Please provide "phone" or "email"'));case 5:if(r=e.phone,i=e.email,f=e.form_id,s=e.source,l=e.country,t.prev=6,!f){t.next=13;break}return t.next=10,Object(n.b)("/v2/formsPublic/subscribe",{form_id:f,phone:r,email:i,country:l,source:s}).then(d);case 10:return t.abrupt("return",t.sent);case 13:if(Object(o.d)()!==u.j){t.next=20;break}return h=c.a.get("store"),t.next=17,Object(n.c)("/shopify/submitSubscriptionForm",{phone_number:r,customer_email:i,store:h,source:s||"yieldify",country_code:l}).then(d);case 17:return t.abrupt("return",t.sent);case 20:return t.abrupt("return",Promise.reject('Please provide "form_id".'));case 21:t.next=26;break;case 23:return t.prev=23,t.t0=t.catch(6),t.abrupt("return",Promise.reject(t.t0.toString()));case 26:case"end":return t.stop()}}),t,null,[[6,23]])})))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n.j})),r.d(e,"b",(function(){return j}));var n=r(0),o=r(2),i=r(9);function a(t){this.url=t.url,this.type=t.type,this.id=t.id,this.variant_id=t.variant_id;try{this.url=new URL(this.url)}catch(e){throw Object(o.b)("invalid url: ",t.url),new Error("invalid url: ".concat(t.url))}Object(i.b)({pageView:this})}var c=r(11),u=r.n(c),f=r(4),s=r(3),l=r(10),p=r(5),h=r(1);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l={};function p(){}function h(){}function v(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(P([])));g&&g!==e&&r.call(g,i)&&(m=g);var w=v.prototype=p.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e((function(o,a){!function n(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==d(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}(n,i,o,a)}))}return o=o?o.then(a,a):a()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===l)continue;return c}}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=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function v(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){v(i,n,o,a,c,"next",t)}function c(t){v(i,n,o,a,c,"throw",t)}a(void 0)}))}}function b(){var t,e=(null===(t=ShopifyAnalytics)||void 0===t?void 0:t.meta).selectedVariantId;return e||(e=new URL(document.URL).searchParams.get("variant")||void 0),e}function g(){return w.apply(this,arguments)}function w(){return(w=m(y().mark((function t(){var e,r,n,o,i,a,c;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=null===(e=u.a.checkout)||void 0===e?void 0:e.order_id){t.next=3;break}return t.abrupt("return");case 3:return n=u.a.checkout,o=n.email,i=n.shipping_address.phone,t.prev=4,t.next=7,Object(s.d)({phone:i,email:o,event:"order"});case 7:a=h.c("ui"),c=a.atd,Object(p.a)({event:"order_created",atd:c,order_id:r}),Object(s.b)(),t.next=14;break;case 12:t.prev=12,t.t0=t.catch(4);case 14:case"end":return t.stop()}}),t,null,[[4,12]])})))).apply(this,arguments)}function O(){var t=__st.p&&n.b.includes(__st.p)?__st.p:"home";f.b.store=u.a.shop;var e=new a({id:__st.rid,type:t,variant_id:b(),url:window.location});return Object(l.a)(e),e}function j(){return x.apply(this,arguments)}function x(){return(x=m(y().mark((function t(){var e;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=O(),Object(s.a)({customer_id:__st.cid}),g(),"product"===e.type&&document.addEventListener("change",(function(t){b()!==e.variant_id&&(e=O())}));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},function(t,e,r){"use strict";var n=r(15),o=function(t){return"object"==typeof t&&null!==t},i=new WeakMap,a=new WeakSet,c=function(t,e,r,c,u,l,p,h,d){return void 0===t&&(t=Object.is),void 0===e&&(e=function(t,e){return new Proxy(t,e)}),void 0===r&&(r=function(t){return o(t)&&!a.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer)}),void 0===c&&(c=function(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t}}),void 0===u&&(u=new WeakMap),void 0===l&&(l=function(t,e,r){void 0===r&&(r=c);var o=u.get(t);if((null==o?void 0:o[0])===e)return o[1];var f=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return n.markToTrack(f,!0),u.set(t,[e,f]),Reflect.ownKeys(t).forEach((function(e){var o=Reflect.get(t,e);a.has(o)?(n.markToTrack(o,!1),f[e]=o):o instanceof Promise?Object.defineProperty(f,e,{get:function(){return r(o)}}):i.has(o)?f[e]=s(o,r):f[e]=o})),Object.freeze(f)}),void 0===p&&(p=new WeakMap),void 0===h&&(h=[1,1]),void 0===d&&(d=function(c){if(!o(c))throw new Error("object required");var u=p.get(c);if(u)return u;var s=h[0],d=new Set,y=function(t,e){void 0===e&&(e=++h[0]),s!==e&&(s=e,d.forEach((function(r){return r(t,e)})))},v=h[1],m=function(t){return function(e,r){var n=[].concat(e);n[1]=[t].concat(n[1]),y(n,r)}},b=new Map,g=function(t){var e,r=b.get(t);r&&(b.delete(t),null==(e=r[1])||e.call(r))},w=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),O=e(w,{deleteProperty:function(t,e){var r=Reflect.get(t,e);g(e);var n=Reflect.deleteProperty(t,e);return n&&y(["delete",[e],r]),n},set:function(e,c,u,s){var l,p=Reflect.has(e,c),h=Reflect.get(e,c,s);if(p&&t(h,u))return!0;g(c),o(u)&&(u=n.getUntracked(u)||u);var v=u;if(null!=(l=Object.getOwnPropertyDescriptor(e,c))&&l.set);else if(u instanceof Promise)u.then((function(t){u.status="fulfilled",u.value=t,y(["resolve",[c],t])})).catch((function(t){u.status="rejected",u.reason=t,y(["reject",[c],t])}));else{!i.has(u)&&r(u)&&(v=f(u));var w=!a.has(v)&&i.get(v);w&&function(t,e){if(d.size){var r=e[3](m(t));b.set(t,[e,r])}else b.set(t,[e])}(c,w)}return Reflect.set(e,c,v,s),y(["set",[c],u,h]),!0}});p.set(c,O);var j=[w,function(t){return void 0===t&&(t=++h[1]),v===t||d.size||(v=t,b.forEach((function(e){var r=e[0][1](t);r>s&&(s=r)}))),s},l,function(t){d.add(t),1===d.size&&b.forEach((function(t,e){var r=t[0];t[1];var n=r[3](m(e));b.set(e,[r,n])}));return function(){d.delete(t),0===d.size&&b.forEach((function(t,e){var r=t[0],n=t[1];n&&(n(),b.set(e,[r]))}))}}];return i.set(O,j),Reflect.ownKeys(c).forEach((function(t){var e=Object.getOwnPropertyDescriptor(c,t);e.get||e.set?Object.defineProperty(w,t,e):O[t]=c[t]})),O}),[d,i,a,t,e,r,c,u,l,p,h]},u=c()[0];function f(t){return void 0===t&&(t={}),u(t)}function s(t,e){var r=i.get(t),n=r[0],o=r[1];return(0,r[2])(n,o(),e)}var l=c;e.getVersion=function(t){var e=i.get(t);return null==e?void 0:e[1]()},e.proxy=f,e.ref=function(t){return a.add(t),t},e.snapshot=s,e.subscribe=function(t,e,r){var n,o=i.get(t),a=[],c=o[3],u=!1,f=c((function(t){a.push(t),r?e(a.splice(0)):n||(n=Promise.resolve().then((function(){n=void 0,u&&e(a.splice(0))})))}));return u=!0,function(){u=!1,f()}},e.unstable_buildProxyFunction=l},function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return i}));var n={};function o(t){Object.assign(n,t)}function i(t){return t&&n[t]||null}},function(t,e,r){"use strict";r.d(e,"b",(function(){return g})),r.d(e,"a",(function(){return j}));var n=r(0),o=r(1),i=r(3),a=r(5);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",f=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new S(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function y(){}function v(){}var m={};s(m,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(P([])));g&&g!==e&&r.call(g,i)&&(m=g);var w=v.prototype=d.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e((function(o,a){!function n(o,i,a,u){var f=p(t[o],t,i);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==c(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(f.arg)}(n,i,o,a)}))}return o=o?o.then(a,a):a()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===h)continue;return c}}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(t,e,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){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=p(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r1)for(var r=1;rnew Proxy(t,e);const c=Object.getPrototypeOf,u=new WeakMap,f=t=>t&&(u.has(t)?u.get(t):c(t)===Object.prototype||c(t)===Array.prototype),s=t=>"object"==typeof t&&null!==t,l=new WeakMap,p=t=>t[o]||t,h=(t,e,r)=>{if(!f(t))return t;const u=p(t),s=(t=>Object.isFrozen(t)||Object.values(Object.getOwnPropertyDescriptors(t)).some(t=>!t.writable))(u);let d=r&&r.get(u);return d&&d[1].f===s||(d=((t,e)=>{const r={f:e};let a=!1;const c=(e,n)=>{if(!a){let o=r.a.get(t);if(o||(o={},r.a.set(t,o)),e===i)o.w=!0;else{let t=o[e];t||(t=new Set,o[e]=t),t.add(n)}}},u={get:(e,n)=>n===o?t:(c("k",n),h(Reflect.get(e,n),r.a,r.c)),has:(e,o)=>o===n?(a=!0,r.a.delete(t),!0):(c("h",o),Reflect.has(e,o)),getOwnPropertyDescriptor:(t,e)=>(c("o",e),Reflect.getOwnPropertyDescriptor(t,e)),ownKeys:t=>(c(i),Reflect.ownKeys(t))};return e&&(u.set=u.deleteProperty=()=>!1),[u,r]})(u,s),d[1].p=a(s?(t=>{let e=l.get(t);if(!e){if(Array.isArray(t))e=Array.from(t);else{const r=Object.getOwnPropertyDescriptors(t);Object.values(r).forEach(t=>{t.configurable=!0}),e=Object.create(c(t),r)}l.set(t,e)}return e})(u):u,d[0]),r&&r.set(u,d)),d[1].a=e,d[1].c=r,d[1].p},d=(t,e,r,n)=>{if(Object.is(t,e))return!1;if(!s(t)||!s(e))return!0;const o=r.get(p(t));if(!o)return!0;if(n){const r=n.get(t);if(r&&r.n===e)return r.g;n.set(t,{n:e,g:!1})}let i=null;try{for(const r of o.h||[])if(i=Reflect.has(t,r)!==Reflect.has(e,r),i)return i;if(!0===o.w){if(i=((t,e)=>{const r=Reflect.ownKeys(t),n=Reflect.ownKeys(e);return r.length!==n.length||r.some((t,e)=>t!==n[e])})(t,e),i)return i}else for(const r of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(t,r)!=!!Reflect.getOwnPropertyDescriptor(e,r),i)return i;for(const a of o.k||[])if(i=d(t[a],e[a],r,n),i)return i;return null===i&&(i=!0),i}finally{n&&n.set(t,{n:e,g:i})}},y=t=>!!f(t)&&n in t,v=t=>f(t)&&t[o]||null,m=(t,e=!0)=>{u.set(t,e)},b=(t,e,r)=>{const n=[],o=new WeakSet,i=(t,a)=>{if(o.has(t))return;s(t)&&o.add(t);const c=s(t)&&e.get(p(t));if(c){var u,f;if(null==(u=c.h)||u.forEach(t=>{const e=`:has(${String(t)})`;n.push(a?[...a,e]:[e])}),!0===c.w){const t=":ownKeys";n.push(a?[...a,t]:[t])}else{var l;null==(l=c.o)||l.forEach(t=>{const e=`:hasOwn(${String(t)})`;n.push(a?[...a,e]:[e])})}null==(f=c.k)||f.forEach(e=>{r&&!("value"in(Object.getOwnPropertyDescriptor(t,e)||{}))||i(t[e],a?[...a,e]:[e])})}else a&&n.push(a)};return i(t),n},g=t=>{a=t}},function(t,e,r){"use strict";var n=r(7),o=r(1),i=r(0),a=r(6);"undefined"!=typeof document&&(o.d(),document.addEventListener(i.m,(function(t){var e=t.detail;Object(a.identify)(e)})),window.addEventListener(i.g,(function(t){var e=t.detail.subscriber_data,r=e.$email,n=e.$phone_number;Object(a.identify)({event:"form_submit",email:r,phone:n})}))),n.b&&Object(n.b)()}])}));