deathrowdiaries.com
Open in
urlscan Pro
154.12.240.206
Public Scan
URL:
https://deathrowdiaries.com/wp-content/plugins/wordpress-popup/assets/js/front.min.js?ver=7.8.5
Submission: On November 19 via api from US — Scanned from US
Submission: On November 19 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
!function(){var t={2457:function(){!function(){"use strict";window.Hustle=function(t,e,i){const s={},n={},o={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g},r=_.extend({},Backbone.Events),a=Backbone.View.extend({initialize(){_.isFunction(this.initMix)&&this.initMix.apply(this,arguments),this.render&&(this.render=_.wrap(this.render,(function(t){this.trigger("before_render"),t.call(this),r.trigger("view.rendered",this),this.trigger("rendered")}))),_.isFunction(this.init)&&this.init.apply(this,arguments)}}),l=_.memoize((function(t){let e;return function(i){return e=e||_.template(document.getElementById(t).innerHTML,null,o),e(i).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}})),h=_.memoize((function(t){let e;return function(i){return e=e||_.template(t,null,o),e(i)}}));return{define:function(s,o){if(s.split(".").length){const r=function(s,n){const a=s.split("."),l=a.splice(0,1)[0];let h;l&&(a.length?n[l]=n[l]||{}:(h=o.call(null,t,e,i),n[l]=_.isFunction(h)||void 0===h?h:_.extend(n[l]||{},h)),a.length&&l&&r(a.join("."),n[l]))};r(s,n)}else{const r=n[s]||{};n[s]=_.extend(r,o.call(null,t,e,i))}},setModule:(t,e)=>{s[t]=e},getModules:function(){return s},getModule:function(t){return s[t]},get:function(t){let e,i;return t.split(".").length?(e=!1,i=function(t,s){const n=t.split("."),o=n.splice(0,1)[0];e=s[o],n.length&&i(n.join("."),s[o])},i(t,n),e):n[t]||!1},Events:r,View:a,template:l,createTemplate:h,getTemplateOptions:function(){return t.extend(!0,{},o)},consts:{ModuleShowCount:"hustle_module_show_count-"}}}(jQuery,document,window)}(jQuery)},4881:function(){!function(t){"use strict";window.Optin={},window.Optin.Models={},window.Optin.template=_.memoize((function(e){let i;const s={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g};return function(n){return i=i||_.template(t("#"+e).html(),null,s),i(n).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}})),window.Optin.templateCompat=_.memoize((function(e){let i;return function(s){return i=i||_.template(t("#"+e).html()),i(s).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}})),window.Optin.cookie={get(t){let e;const i=document.cookie.split(";"),s=i.length,n=t+"=";for(let t=0;t<s;t+=1){for(e=i[t];" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(n)){const t=e.substring(n.length,e.length);return t?JSON.parse(t):t}}return null},set(e,i,s){let n,o;i=Array.isArray(i)||t.isPlainObject(i)?JSON.stringify(i):i,isNaN(s)?o="":(n=new Date,n.setTime(n.getTime()+24*s*60*60*1e3),o="; expires="+n.toGMTString()),document.cookie=e+"="+i+o+"; path=/"}},window.Optin.Mixins={_mixins:{},_servicesMixins:{},_desingMixins:{},_displayMixins:{},add(t,e){this._mixins[t]=e},getMixins(){return this._mixins},addServicesMixin(t,e){this._servicesMixins[t]=e},getServicesMixins(){return this._servicesMixins}}}(jQuery)},7635:function(t,e,i){var s,n,o;o="object"==typeof self&&self.self===self&&self||"object"==typeof i.g&&i.g.global===i.g&&i.g,s=[i(2224),i(1669),e],n=function(t,e,i){o.Backbone=function(t,e,i,s){var n=t.Backbone,o=Array.prototype.slice;e.VERSION="1.3.3",e.$=s,e.noConflict=function(){return t.Backbone=n,this},e.emulateHTTP=!1,e.emulateJSON=!1;var r=function(t,e,s){switch(t){case 1:return function(){return i[e](this[s])};case 2:return function(t){return i[e](this[s],t)};case 3:return function(t,n){return i[e](this[s],l(t,this),n)};case 4:return function(t,n,o){return i[e](this[s],l(t,this),n,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[s]),i[e].apply(i,t)}}},a=function(t,e,s){i.each(e,(function(e,n){i[n]&&(t.prototype[n]=r(e,n,s))}))},l=function(t,e){return i.isFunction(t)?t:i.isObject(t)&&!e._isModel(t)?h(t):i.isString(t)?function(e){return e.get(t)}:t},h=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}},u=e.Events={},c=/\s+/,d=function(t,e,s,n,o){var r,a=0;if(s&&"object"==typeof s){void 0!==n&&"context"in o&&void 0===o.context&&(o.context=n);for(r=i.keys(s);a<r.length;a++)e=d(t,e,r[a],s[r[a]],o)}else if(s&&c.test(s))for(r=s.split(c);a<r.length;a++)e=t(e,r[a],n,o);else e=t(e,s,n,o);return e};u.on=function(t,e,i){return f(this,t,e,i)};var f=function(t,e,i,s,n){return t._events=d(p,t._events||{},e,i,{context:s,ctx:t,listening:n}),n&&((t._listeners||(t._listeners={}))[n.id]=n),t};u.listenTo=function(t,e,s){if(!t)return this;var n=t._listenId||(t._listenId=i.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),r=o[n];if(!r){var a=this._listenId||(this._listenId=i.uniqueId("l"));r=o[n]={obj:t,objId:n,id:a,listeningTo:o,count:0}}return f(t,e,s,this,r),this};var p=function(t,e,i,s){if(i){var n=t[e]||(t[e]=[]),o=s.context,r=s.ctx,a=s.listening;a&&a.count++,n.push({callback:i,context:o,ctx:o||r,listening:a})}return t};u.off=function(t,e,i){return this._events?(this._events=d(g,this._events,t,e,{context:i,listeners:this._listeners}),this):this},u.stopListening=function(t,e,s){var n=this._listeningTo;if(!n)return this;for(var o=t?[t._listenId]:i.keys(n),r=0;r<o.length;r++){var a=n[o[r]];if(!a)break;a.obj.off(e,s,this)}return this};var g=function(t,e,s,n){if(t){var o,r=0,a=n.context,l=n.listeners;if(e||s||a){for(var h=e?[e]:i.keys(t);r<h.length;r++){var u=t[e=h[r]];if(!u)break;for(var c=[],d=0;d<u.length;d++){var f=u[d];s&&s!==f.callback&&s!==f.callback._callback||a&&a!==f.context?c.push(f):(o=f.listening)&&0==--o.count&&(delete l[o.id],delete o.listeningTo[o.objId])}c.length?t[e]=c:delete t[e]}return t}for(var p=i.keys(l);r<p.length;r++)delete l[(o=l[p[r]]).id],delete o.listeningTo[o.objId]}};u.once=function(t,e,s){var n=d(m,{},t,e,i.bind(this.off,this));return"string"==typeof t&&null==s&&(e=void 0),this.on(n,e,s)},u.listenToOnce=function(t,e,s){var n=d(m,{},e,s,i.bind(this.stopListening,this,t));return this.listenTo(t,n)};var m=function(t,e,s,n){if(s){var o=t[e]=i.once((function(){n(e,o),s.apply(this,arguments)}));o._callback=s}return t};u.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),i=Array(e),s=0;s<e;s++)i[s]=arguments[s+1];return d(_,this._events,t,void 0,i),this};var _=function(t,e,i,s){if(t){var n=t[e],o=t.all;n&&o&&(o=o.slice()),n&&v(n,s),o&&v(o,[e].concat(s))}return t},v=function(t,e){var i,s=-1,n=t.length,o=e[0],r=e[1],a=e[2];switch(e.length){case 0:for(;++s<n;)(i=t[s]).callback.call(i.ctx);return;case 1:for(;++s<n;)(i=t[s]).callback.call(i.ctx,o);return;case 2:for(;++s<n;)(i=t[s]).callback.call(i.ctx,o,r);return;case 3:for(;++s<n;)(i=t[s]).callback.call(i.ctx,o,r,a);return;default:for(;++s<n;)(i=t[s]).callback.apply(i.ctx,e);return}};u.bind=u.on,u.unbind=u.off,i.extend(e,u);var y=e.Model=function(t,e){var s=t||{};e||(e={}),this.cid=i.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(s=this.parse(s,e)||{});var n=i.result(this,"defaults");s=i.defaults(i.extend({},n,s),n),this.set(s,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(y.prototype,u,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!i.iteratee(t,this)(this.attributes)},set:function(t,e,s){if(null==t)return this;var n;if("object"==typeof t?(n=t,s=e):(n={})[t]=e,s||(s={}),!this._validate(n,s))return!1;var o=s.unset,r=s.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=i.clone(this.attributes),this.changed={});var h=this.attributes,u=this.changed,c=this._previousAttributes;for(var d in n)e=n[d],i.isEqual(h[d],e)||a.push(d),i.isEqual(c[d],e)?delete u[d]:u[d]=e,o?delete h[d]:h[d]=e;if(this.idAttribute in n&&(this.id=this.get(this.idAttribute)),!r){a.length&&(this._pending=s);for(var f=0;f<a.length;f++)this.trigger("change:"+a[f],this,h[a[f]],s)}if(l)return this;if(!r)for(;this._pending;)s=this._pending,this._pending=!1,this.trigger("change",this,s);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var s in this.attributes)e[s]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&i.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,s={};for(var n in t){var o=t[n];i.isEqual(e[n],o)||(s[n]=o)}return!!i.size(s)&&s},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=i.extend({parse:!0},t);var e=this,s=t.success;return t.success=function(i){var n=t.parse?e.parse(i,t):i;if(!e.set(n,t))return!1;s&&s.call(t.context,e,i,t),e.trigger("sync",e,i,t)},N(this,t),this.sync("read",this,t)},save:function(t,e,s){var n;null==t||"object"==typeof t?(n=t,s=e):(n={})[t]=e;var o=(s=i.extend({validate:!0,parse:!0},s)).wait;if(n&&!o){if(!this.set(n,s))return!1}else if(!this._validate(n,s))return!1;var r=this,a=s.success,l=this.attributes;s.success=function(t){r.attributes=l;var e=s.parse?r.parse(t,s):t;if(o&&(e=i.extend({},n,e)),e&&!r.set(e,s))return!1;a&&a.call(s.context,r,t,s),r.trigger("sync",r,t,s)},N(this,s),n&&o&&(this.attributes=i.extend({},l,n));var h=this.isNew()?"create":s.patch?"patch":"update";"patch"!==h||s.attrs||(s.attrs=n);var u=this.sync(h,this,s);return this.attributes=l,u},destroy:function(t){t=t?i.clone(t):{};var e=this,s=t.success,n=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(i){n&&o(),s&&s.call(t.context,e,i,t),e.isNew()||e.trigger("sync",e,i,t)};var r=!1;return this.isNew()?i.defer(t.success):(N(this,t),r=this.sync("delete",this,t)),n||o(),r},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||R();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var s=this.validationError=this.validate(t,e)||null;return!s||(this.trigger("invalid",this,s,i.extend(e,{validationError:s})),!1)}}),a(y,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes");var w=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,i.extend({silent:!0},e))},b={add:!0,remove:!0,merge:!0},x={add:!0,remove:!1},k=function(t,e,i){i=Math.min(Math.max(i,0),t.length);var s,n=Array(t.length-i),o=e.length;for(s=0;s<n.length;s++)n[s]=t[s+i];for(s=0;s<o;s++)t[s+i]=e[s];for(s=0;s<n.length;s++)t[s+o+i]=n[s]};i.extend(w.prototype,u,{model:y,initialize:function(){},toJSON:function(t){return this.map((function(e){return e.toJSON(t)}))},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,x))},remove:function(t,e){e=i.extend({},e);var s=!i.isArray(t);t=s?[t]:t.slice();var n=this._removeModels(t,e);return!e.silent&&n.length&&(e.changes={added:[],merged:[],removed:n},this.trigger("update",this,e)),s?n[0]:n},set:function(t,e){if(null!=t){(e=i.extend({},b,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var s=!i.isArray(t);t=s?[t]:t.slice();var n=e.at;null!=n&&(n=+n),n>this.length&&(n=this.length),n<0&&(n+=this.length+1);var o,r,a=[],l=[],h=[],u=[],c={},d=e.add,f=e.merge,p=e.remove,g=!1,m=this.comparator&&null==n&&!1!==e.sort,_=i.isString(this.comparator)?this.comparator:null;for(r=0;r<t.length;r++){o=t[r];var v=this.get(o);if(v){if(f&&o!==v){var y=this._isModel(o)?o.attributes:o;e.parse&&(y=v.parse(y,e)),v.set(y,e),h.push(v),m&&!g&&(g=v.hasChanged(_))}c[v.cid]||(c[v.cid]=!0,a.push(v)),t[r]=v}else d&&(o=t[r]=this._prepareModel(o,e))&&(l.push(o),this._addReference(o,e),c[o.cid]=!0,a.push(o))}if(p){for(r=0;r<this.length;r++)c[(o=this.models[r]).cid]||u.push(o);u.length&&this._removeModels(u,e)}var w=!1,x=!m&&d&&p;if(a.length&&x?(w=this.length!==a.length||i.some(this.models,(function(t,e){return t!==a[e]})),this.models.length=0,k(this.models,a,0),this.length=this.models.length):l.length&&(m&&(g=!0),k(this.models,l,null==n?this.length:n),this.length=this.models.length),g&&this.sort({silent:!0}),!e.silent){for(r=0;r<l.length;r++)null!=n&&(e.index=n+r),(o=l[r]).trigger("add",o,this,e);(g||w)&&this.trigger("sort",this,e),(l.length||u.length||h.length)&&(e.changes={added:l,removed:u,merged:h},this.trigger("update",this,e))}return s?t[0]:t}},reset:function(t,e){e=e?i.clone(e):{};for(var s=0;s<this.models.length;s++)this._removeReference(this.models[s],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(t.attributes||t)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var s=e.length;return i.isFunction(e)&&(e=i.bind(e,this)),1===s||i.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){var e=(t=i.extend({parse:!0},t)).success,s=this;return t.success=function(i){var n=t.reset?"reset":"set";s[n](i,t),e&&e.call(t.context,s,i,t),s.trigger("sync",s,i,t)},N(this,t),this.sync("read",this,t)},create:function(t,e){var s=(e=e?i.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;s||this.add(t,e);var n=this,o=e.success;return e.success=function(t,e,i){s&&n.add(t,i),o&&o.call(i.context,t,e,i)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;(e=e?i.clone(e):{}).collection=this;var s=new this.model(t,e);return s.validationError?(this.trigger("invalid",this,s.validationError,e),!1):s},_removeModels:function(t,e){for(var i=[],s=0;s<t.length;s++){var n=this.get(t[s]);if(n){var o=this.indexOf(n);this.models.splice(o,1),this.length--,delete this._byId[n.cid];var r=this.modelId(n.attributes);null!=r&&delete this._byId[r],e.silent||(e.index=o,n.trigger("remove",n,this,e)),i.push(n),this._removeReference(n,e)}}return i},_isModel:function(t){return t instanceof y},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes);null!=i&&(this._byId[i]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes);null!=i&&delete this._byId[i],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,s){if(e){if(("add"===t||"remove"===t)&&i!==this)return;if("destroy"===t&&this.remove(e,s),"change"===t){var n=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);n!==o&&(null!=n&&delete this._byId[n],null!=o&&(this._byId[o]=e))}}this.trigger.apply(this,arguments)}}),a(w,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models");var C=e.View=function(t){this.cid=i.uniqueId("view"),i.extend(this,i.pick(t,O)),this._ensureElement(),this.initialize.apply(this,arguments)},I=/^(\S+)\s*(.*)$/,O=["model","collection","el","id","attributes","className","tagName","events"];i.extend(C.prototype,u,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=i.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var s=t[e];if(i.isFunction(s)||(s=this[s]),s){var n=e.match(I);this.delegate(n[1],n[2],i.bind(s,this))}}return this},delegate:function(t,e,i){return this.$el.on(t+".delegateEvents"+this.cid,e,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,i){return this.$el.off(t+".delegateEvents"+this.cid,e,i),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"));else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t.class=i.result(this,"className")),this.setElement(this._createElement(i.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,s,n){var o=S[t];i.defaults(n||(n={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var r={type:o,dataType:"json"};if(n.url||(r.url=i.result(s,"url")||R()),null!=n.data||!s||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(n.attrs||s.toJSON(n))),n.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),n.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){r.type="POST",n.emulateJSON&&(r.data._method=o);var a=n.beforeSend;n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===r.type||n.emulateJSON||(r.processData=!1);var l=n.error;n.error=function(t,e,i){n.textStatus=e,n.errorThrown=i,l&&l.call(n.context,t,e,i)};var h=n.xhr=e.ajax(i.extend(r,n));return s.trigger("request",s,h,n),h};var S={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var T=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},$=/\((.*?)\)/g,E=/(\(\?)?:\w+/g,M=/\*\w+/g,H=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(T.prototype,u,{initialize:function(){},route:function(t,s,n){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(s)&&(n=s,s=""),n||(n=this[s]);var o=this;return e.history.route(t,(function(i){var r=o._extractParameters(t,i);!1!==o.execute(n,r,s)&&(o.trigger.apply(o,["route:"+s].concat(r)),o.trigger("route",s,r),e.history.trigger("route",o,s,r))})),this},execute:function(t,e,i){t&&t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(H,"\\$&").replace($,"(?:$1)?").replace(E,(function(t,e){return e?t:"([^/?]+)"})).replace(M,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var s=t.exec(e).slice(1);return i.map(s,(function(t,e){return e===s.length-1?t||null:t?decodeURIComponent(t):null}))}});var j=e.History=function(){this.handlers=[],this.checkUrl=i.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},U=/^[#\/]|\s+$/g,A=/^\/+|\/+$/g,P=/#.*$/;j.started=!1,i.extend(j.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(U,"")},start:function(t){if(j.started)throw new Error("Backbone.history has already been started");if(j.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(A,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var s=document.body,n=s.insertBefore(this.iframe,s.firstChild).contentWindow;n.document.open(),n.document.close(),n.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),j.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),i.some(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!j.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root;""!==t&&"?"!==t.charAt(0)||(i=i.slice(0,-1)||"/");var s=i+t;if(t=this.decodeFragment(t.replace(P,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,s);else{if(!this._wantsHashChange)return this.location.assign(s);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var n=this.iframe.contentWindow;e.replace||(n.document.open(),n.document.close()),this._updateHash(n.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){if(i){var s=t.href.replace(/(javascript:|#).*$/,"");t.replace(s+"#"+e)}else t.hash="#"+e}}),e.history=new j;var L=function(t,e){var s,n=this;return s=t&&i.has(t,"constructor")?t.constructor:function(){return n.apply(this,arguments)},i.extend(s,n,e),s.prototype=i.create(n.prototype,t),s.prototype.constructor=s,s.__super__=n.prototype,s};y.extend=w.extend=T.extend=C.extend=j.extend=L;var R=function(){throw new Error('A "url" property or function must be specified')},N=function(t,e){var i=e.error;e.error=function(s){i&&i.call(e.context,t,s,e),t.trigger("error",t,s,e)}};return e}(o,i,t,e)}.apply(e,s),void 0===n||(t.exports=n)},417:function(){!function(t){"use strict";incOpt.is_admin||(window.Optin.moduleLogView=Backbone.Model.extend({url:incOpt.ajaxurl+"?action=hustle_module_viewed",defaults:{page_id:incOpt.page_id},parse(t){t.success?console.log("Log success!"):console.log("Log failed!")}}),t(document).on("hustle:module:loaded",(function(t,e){if("object"==typeof e){const t=e.moduleType;if(e.useCountCookie){const i=Hustle.consts.ModuleShowCount+t+"-"+e.moduleId,s=window.Optin.cookie.get(i);window.Optin.cookie.set(i,s+1,e.countCookieExpiration)}const i="undefined"!==e.$el.data("sub-type")?e.$el.data("sub-type"):null;if(void 0!==window.Optin.moduleLogView&&e.isTrackingEnabled){const s=new window.Optin.moduleLogView;s.set("module_sub_type",i),s.set("module_type",t),s.set("module_id",e.moduleId),s.save()}}})),window.Optin.updateSshareNetworks=function(){const e=window.Optin.networksToRetrieve;void 0!==e&&e.length&&t.ajax({type:"POST",url:incOpt.ajaxurl,dataType:"json",data:{action:"hustle_update_network_shares",postId:incOpt.page_id,networks:e}}).done((function(e){if(e.success){const i=e.data;t.each(i.networks,(function(e,s){const n=t(`.hustle-share-icon[data-counter="native"][data-network="${e}"]`);n.length&&n.each((function(){const e=t(this).find(".hustle-counter"),n=parseInt(t(this).data("count"),10);n>parseInt(s,10)&&(s=parseInt(n,10));let o="";o=1e3>s?s:1e6>s?(s/1e3).toFixed(1)+i.shorten.thousand:(s/1e6).toFixed(1)+i.shorten.million,e.text(o)}))}))}}))})}(jQuery)},7505:function(){var t;(t=jQuery)(document).on("submit","form.hustle-unsubscribe-form",(function(e){e.preventDefault();const i=t(e.target),s=i.find(".hustle-email-section"),n=i.serialize(),o=i.find("button"),r=i.find(".wpoi-submit-failure");return o.attr("disabled",!0),o.addClass("sui-button-onload"),i.on("keypress",(()=>r.hide())),t.ajax({type:"POST",url:incOpt.ajaxurl,dataType:"json",data:{action:"hustle_unsubscribe_form_submission",data:n},success(t){t.success&&!0===t.success?(s.hide(),r.hide(),t.data.wrapper&&t.data.html&&i.find(t.data.wrapper).html(t.data.html)):t.data.html&&(r.text(t.data.html),r.show())},error(){r.text(r.data("default-error")),r.show()},complete(){o.attr("disabled",!1),o.removeClass("sui-button-onload")}}),!1}))},3202:function(){!function(t){"use strict";window.Optin.Embedded=window.Optin.Module.extend({type:"embedded",beforeListenForDisplay(){const e=this.el;t(window).on("resize",(function(){HUI.inlineResize(e)}))},displayOnTrigger(){this.display()},showModule(){HUI.inlineResize(this.el),this.$el.trigger("hustle:module:beforeEmbedLoad",this.$el),HUI.inlineLoad(this.el),this.$el.trigger("hustle:module:afterEmbedLoad",this.$el)}})}(jQuery)},1225:function(){!function(t){"use strict";incOpt.is_upfront||(_.each(Modules,(function(e){const i=e.module_id;if(e.el=".hustle_module_id_"+i,"popup"===e.module_type)Hustle.setModule(i,new window.Optin.PopUp(e));else if("slidein"===e.module_type)Hustle.setModule(i,new window.Optin.SlideIn(e));else if("embedded"===e.module_type){const s=[];let n=t(e.el);n.length?(n.each((function(){e.el=this,s.push(new window.Optin.Embedded(e))})),Hustle.setModule(i,s)):setTimeout((function(){n=t(e.el),n.each((function(){e.el=this,s.push(new window.Optin.Embedded(e))})),Hustle.setModule(i,s)}),incOpt.script_delay)}else if("social_sharing"===e.module_type){const s=t(e.el),n=[];s.each((function(){e.el=this,n.push(new window.Optin.SShare(e))})),Hustle.setModule(i,n)}})),HUI.inputFilled(),t(document).trigger("hustleInitialized"),window.Optin.updateSshareNetworks())}(jQuery)},4859:function(){!function(t,e,i){"use strict";const s=Backbone.noConflict();incOpt.is_upfront||(incOpt.is_admin||(window.Optin.ModuleLogConversion=s.Model.extend({url:incOpt.ajaxurl+"?action=hustle_module_converted",defaults:{page_id:incOpt.page_id},parse(t){t.success?console.log("Log success!"):console.log("Log failed!")}})),window.Optin.Module=s.View.extend({moduleId:"",moduleType:"",settings:{},data:{},appearAfter:"time",parent:"body",legacyCookieKey:"",neverSeeCookieKey:"",isShown:!1,events:{"click .hustle-button-cta":"ctaClicked","click .hustle-whole-module-cta":"wholeCta"},close:_.noop,initialize(t){this.data=t,this.moduleId=t.module_id,this.settings=t.settings,this.moduleType=t.module_type,this.useCountCookie=t.useCountCookie,this.countCookieExpiration=t.countCookieExpiration,this.isTrackingEnabled="enabled"===this.$el.data("tracking"),this.setOnInit(t),this.handleDisplay()},setOnInit(){"optin"===this.data.module_mode&&(this.$el.off("submit").on("submit",(t=>this.handleSubmission(t))),this.$el.find(".hustle-layout-form").off("change").on("change",(t=>this.onInputChange(t)))),this.triggers=this.settings.triggers,"popup"===this.moduleType?this.legacyCookieKey="inc_optin_popup_long_hidden-"+this.moduleId:"slidein"===this.moduleType?this.legacyCookieKey="inc_optin_slide_in_long_hidden-"+this.moduleId:"embedded"===this.moduleType&&(this.legacyCookieKey="inc_optin_embedded_long_hidden-"+this.moduleId),this.neverSeeCookieKey="inc_optin_never_see_again-"+this.moduleType+"-"+this.moduleId},getCookieName(t,e=!1){if("never_see"===t)return this.neverSeeCookieKey;const i=this.settings[t];if(!i||"keep_show"===i)return!1;let s;switch(t){case"hide_after_subscription":s="_success";break;case"hide_after_cta":s="_cta_success";break;case"hide_after_cta2":s="_cta2_success";break;case"after_close":s="";break;default:return!1}if("no_show_on_post"===i){s+="_"+("0"===incOpt.page_id&&incOpt.page_slug?incOpt.page_slug:incOpt.page_id)}return(e?this.legacyCookieKey:"hustle-hide-module-"+this.moduleId)+s},shouldDisplay(){if(!this.$el.length)return!1;const t=window.Optin.cookie.get(this.neverSeeCookieKey);if(parseInt(t)===parseInt(this.moduleId))return!1;const e=["after_close","hide_after_subscription","hide_after_cta","hide_after_cta2"];for(const t of e){const e=this.getCookieName(t);if(e){if(window.Optin.cookie.get(e))return!1;if("after_close"===t&&window.Optin.cookie.get(this.getCookieName(t,!0)))return!1}}return!0},getExpirationDays(t){let e="";switch(t){case"after_close":case"never_see":e="";break;case"hide_after_subscription":e="after_optin_";break;case"hide_after_cta":e="after_cta_";break;case"hide_after_cta2":e="after_cta2_";break;default:return 365}const i=parseInt(this.settings[e+"expiration"],10);switch(this.settings[e+"expiration_unit"]){case"months":return 30*i;case"weeks":return 7*i;case"hours":return i/24;case"minutes":return i/1440;case"seconds":return i/86400;default:return i}},handleDisplay(){this.shouldDisplay()?(this.beforeListenForDisplay(),this.displayOnTrigger()):this.$el.css("display","none")},displayOnTrigger(){const t=this.settings.triggers.trigger;for(const e of t)"function"==typeof this[e+"Trigger"]&&this[e+"Trigger"]()},beforeListenForDisplay(){this.$el.off("hustle:module:closed").on("hustle:module:closed",(()=>this.onModuleClosed("click_close_icon"))),this.$el.off("hustle:module:hidden").on("hustle:module:hidden",(()=>this.onModuleClosed("auto_hide"))),this.$el.off("hustle:module:click_outside").on("hustle:module:click_outside",(()=>this.onModuleClosed("click_outside"))),this.$el.off("hustle:module:esc_key_pressed").on("hustle:module:esc_key_pressed",(()=>this.onModuleClosed("esc_key"))),this.$el.off("hustle:module:clicked_never_see").on("hustle:module:clicked_never_see",(()=>this.onModuleClosed("click_never_see")))},executeRecaptcha(t,e){const{version:i}=e.data();if("v2_checkbox"===i)this.doSubmit(t);else{const t={};"v3_recaptcha"===i&&(t.action="contact"),grecaptcha.execute(e.attr("recaptcha-id"),t)}},display(){if(!this.isShown&&this.shouldDisplay())if(this.$el.hasClass("hustle-show-this-module"))this.displayModule();else if(this.data.avoidStaticCache){const e=this,i=this.$el.data("sub-type");t.ajax({type:"POST",url:incOpt.ajaxurl,dataType:"json",data:{action:"hustle_module_display_despite_static_cache",module_id:e.moduleId,conditional_tags:incOpt.conditional_tags,real_page_id:incOpt.real_page_id,thereferrer:incOpt.thereferrer,actual_url:incOpt.actual_url,full_actual_url:incOpt.full_actual_url,subType:i}}).done((t=>{t&&t.success&&t.data.display?e.displayModule():t&&!1===t.data.display&&e.$el.hasClass("hustle-inline")&&e.$el.css("display","none")}))}else this.displayModule()},displayModule(){this.beforeShowModule(),t(document).trigger("hustle:module:before_show",this),this.showModule(),t(document).trigger("hustle:module:loaded",this),this.isShown=!0},beforeShowModule(){if(this.handleExternalFormsSubmissions(),HUI.maybeRenderRecaptcha(this.$el,this),this.$el.find(".hustle-select2").length&&HUI.select2(),this.$el.find(".hustle-time").length&&HUI.timepicker(".hustle-time"),this.$el.find(".hustle-date").length){const e=t(".hustle-date"),{days_and_months:i}=incOpt;_.each(e,(function(t){HUI.datepicker(t,i.days_full,i.days_short,i.days_min,i.months_full,i.months_short)}))}HUI.inputFilled()},timeTrigger(){let t=1e3*parseInt(this.triggers.on_time_delay,10);"minutes"===this.triggers.on_time_unit?t*=60:"hours"===this.triggers.on_time_unit&&(t*=3600),_.delay((()=>this.display()),t)},clickTrigger(){const e=this,i=this.triggers.on_click_element.trim();if("1"===this.triggers.enable_on_click_element&&""!==i){const s=function(t){t.preventDefault(),e.display()};t(i).length?t(i).on("click",s):t(document).on("click",i,s)}"1"===this.triggers.enable_on_click_shortcode&&t(document).on("click",".hustle_module_shortcode_trigger",(function(i){i.preventDefault(),t(this).closest(".mfp-wrap").removeAttr("tabindex"),t(this).data("id")===parseInt(e.moduleId)&&t(this).data("type")===e.type&&e.display()}))},scrollTrigger(){const s=this;let n=!1;if("scrolled"===this.triggers.on_scroll&&t(i).on("scroll",_.debounce((function(){if(n)return;const o=t(e).height(),r=t(window).height();100*(i.pageYOffset/(o-r))>=parseInt(s.triggers.on_scroll_page_percent)&&(s.display(),n=!0)}),50)),"selector"===this.triggers.on_scroll){const e=t(this.triggers.on_scroll_css_selector);e.length&&t(i).on("scroll",_.debounce((function(){n||i.pageYOffset>=e.offset().top&&(s.display(),n=!0)}),50))}},exit_intentTrigger(){const i=this;let s=0;"0"!==this.triggers.on_exit_intent_delayed_time&&(s=1e3*parseInt(this.triggers.on_exit_intent_delayed_time,10),"minutes"===this.triggers.on_exit_intent_delayed_unit?s*=60:"hours"===this.triggers.on_exit_intent_delayed_unit&&(s*=3600)),t(e).on("mouseleave",_.debounce((function(e){t("input, select").is(":focus")||(i.setExitTimer(),"1"===i.triggers.on_exit_intent_per_session&&t(this).off(e))}),300)),t("html").on("mousemove",_.debounce((function(){i.resetExitTimer()}),300)),this.exitTimer=null,this.resetExitTimer=function(){i.exitTimer&&clearTimeout(i.exitTimer)},this.setExitTimer=function(){i.exitTimer=setTimeout((function(){i.exitTimer=null,i.display()}),s)}},adblockTrigger(){if(!t("#hustle_optin_adBlock_detector").length&&this.triggers.trigger.includes("adblock"))if("0"===this.triggers.on_adblock_delay)this.display();else{const t=this.triggers.on_adblock_delay,e=this.triggers.on_adblock_delay_unit,i=this.convertToMicroseconds(t,e);setTimeout((()=>this.display()),i)}},convertToMicroseconds(t,e){return"seconds"===e?1e3*parseInt(t,10):"minutes"===e?60*parseInt(t,10)*1e3:60*parseInt(t,10)*60*1e3},onModuleClosed(e){this.clearRunningCompatInterval(),this.$el.find("iframe").each((function(){t(this).attr("src",t(this).attr("src"))})),Array.isArray(this.settings.after_close_trigger)&&-1!==this.settings.after_close_trigger.indexOf(e)?this.maybeSetVisibilityCookie("after_close"):"click_never_see"===e&&this.maybeSetVisibilityCookie("never_see"),this.isShown=!1,this.stopPlayingAudioVideo()},handleExternalFormsSubmissions(){const e=this.data.settings.on_submit,i=this.convertToMicroseconds(this.data.settings.on_submit_delay,this.data.settings.on_submit_delay_unit),s=s=>{"redirect"===e?t(s.target).attr("action")&&setTimeout((()=>window.location.replace(t(s.target).attr("action"))),i):"embedded"===this.moduleType||"close"!==e&&"default"!==e||setTimeout((()=>this.close(this.el)),i),this.maybeSetVisibilityCookie("hide_after_subscription")};if(this.$el.find("form.wpcf7-form").length&&this.$el.on("wpcf7mailsent",(t=>s(t))),this.$(".forminator-custom-form").length&&this.$el.on("forminator:form:submit:success",(t=>s(t))),this.$(".gform_wrapper").length&&this.$(".gform_wrapper form").attr("target")){t(document).on("gform_confirmation_loaded",(t=>s(t)));this.$(`#${this.$(".gform_wrapper form").attr("target")}`).on("load",(function(t){jQuery(this).contents().find("*").html().indexOf("gformRedirect(){")>=0&&s(t)}))}if(this.$(".nf-form-cont").length&&t(document).on("nfFormSubmitResponse",(t=>s(t))),this.$el.find("form#subscribes_form").length){let t=1e3;this.waitEnewsletterResult=setInterval((()=>{t+=1e3;const e=this.$el.find("#message");_.isEmpty(e.text().trim())&&216e6!==t||this.close()}),1e3)}},maybeCloseAfterCtaClick(t,e){if(void 0!==this.data.settings.close_cta&&"0"!==this.data.settings.close_cta){const i=this;setTimeout((()=>i.close(t)),e)}},maybeSetVisibilityCookie(t){const e=this.getCookieName(t);if(e){const i=this.getExpirationDays(t);window.Optin.cookie.set(e,this.data.module_id,i)}},handleSubmission(e){e.preventDefault();const i=t(e.target);if(i.data("sending"))return;let s=HUI.optinValidate(this.$el);if(s=this.validateSubmission(s),s.length)return void HUI.optinError(i.find(".hustle-error-message"),s);HUI.optinSubmit(i.find(".hustle-button-submit"));const n=i.find(".hustle-recaptcha");n.length?this.executeRecaptcha(i,n):this.doSubmit(i)},doSubmit(e){const i=e.serialize(),s=e.find('input[name="hustle_module_id"]').val(),n=e.find("#hustle-modal-gdpr-"+s+":checked").val(),o=e.find(".hustle-error-message");e.trigger("hustle:module:submit",i),e.data("sending",!0),t.ajax({type:"POST",url:incOpt.ajaxurl,dataType:"json",data:{action:"hustle_module_form_submit",data:{form:i,module_id:s,gdpr:n,uri:encodeURI(window.location.href)}}}).done((t=>{if(t&&t.success){e.trigger("hustle:module:submit:success",i),this.maybeSetVisibilityCookie("hide_after_subscription");let s=!0;if("redirect"===t.data.behavior.after_submit&&0<t.data.behavior.url.length){const e=t.data.behavior.url;"newtab_hide"===t.data.behavior.redirect_tab?(s=!1,this.close(),window.open(e,"_blank")):"newtab_thankyou"===t.data.behavior.redirect_tab?window.open(e,"_blank"):(s=!1,window.location.assign(e))}if(s){const e=this.$(".hustle-success"),i=this.$(".hustle-success-content");if(t.data.message&&i.length&&i.html(t.data.message),HUI.optinSuccess(e,e.data("close-delay")),t.data.behavior.file){const e=document.createElement("a");e.href=t.data.behavior.file,e.download=t.data.behavior.file_name,document.body.appendChild(e),e.click(),e.remove()}}}else{e.trigger("hustle:module:submit:failed",i);const s=e.find(".hustle-recaptcha").attr("recaptcha-id");s&&grecaptcha.reset(s),HUI.optinError(o,t.data.errors)}})).fail((()=>{e.trigger("hustle:module:submit:failed",i),HUI.optinError(o)})).always((()=>{e.data("sending",!1),e.find(".hustle-button-onload").removeClass("hustle-button-onload")}))},validateSubmission(e){const i=this,s=this.$el.find('[data-validate="1"]'),n=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i,o=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)?/i;return t.each(s,((s,r)=>{const a=t(r),l=String(a.val()).trim().toLowerCase();if(!l.length)return;let h=!0;if("email"===a.attr("type"))h=n.test(l);else if("url"===a.attr("type"))h=o.test(l);else if("datepicker"===a.attr("type")){const t=a.data("format").toString();let e="";"mm/dd/yy"===t||"mm/dd/yy"===t||"mm.dd.yy"===t||"mm.dd.yy"===t||"mm-dd-yy"===t||"mm-dd-yy"===t?e=/^(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d/:"dd/mm/yy"===t||"dd/mm/yy"===t||"dd.mm.yy"===t||"dd.mm.yy"===t||"dd-mm-yy"===t||"dd-mm-yy"===t?e=/^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d/:"yy/mm/dd"!==t&&"Y/m/d"!==t&&"yy.mm.dd"!==t&&"Y.m.d"!==t&&"yy-mm-dd"!==t&&"Y-m-d"!==t||(e=/^(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])/),""!==e&&(h=e.test(l))}else"timepicker"===a.attr("type")&&(h=i.validateTime(l,a.data("time-format")));h||(a.closest(".hustle-field").addClass("hustle-field-error"),e.push(a.data("validation-error")))})),e},validateTime(t,e){const i=t.match(/^(\d{1,2}):(\d{2})(:00)?( [apAP][mM])?$/);return!!i&&("HH:mm"===e?!(23<i[1])&&!(59<i[2]):!(1>i[1]||12<i[1])&&(!(59<i[2])&&("am"===i[4].toLowerCase().trim()||"pm"===i[4].toLowerCase().trim())))},onInputChange(e){t(e.target).closest(".hustle-field").removeClass("hustle-field-error")},stopPlayingAudioVideo(){this.$el.find("audio, video").trigger("pause")},clearRunningCompatInterval(){void 0!==this.waitEnewsletterResult&&clearInterval(this.waitEnewsletterResult)},wholeCta(e){if(t(e.target).closest("input,a,.hustle-checkbox,button").length)return!0;const i=t(e.target).closest(".hustle-ui").find("a.hustle-button-cta:first-child"),s=i.attr("target"),n=i.attr("href");i.trigger("click"),"#"!==n&&""!==n&&0!==n.indexOf("javascript:void(")&&("_blank"===s?window.open(n):document.location.href=n)},ctaClicked(e){const i=t(e.target),s=i.data("cta-type")||"",n=this.convertToMicroseconds(this.data.settings.close_cta_time,this.data.settings.close_cta_unit);if(void 0!==window.Optin.ModuleLogConversion&&this.isTrackingEnabled&&!i.hasClass("hustle-cta-close")){const t=new window.Optin.ModuleLogConversion,e=this.$el.data("sub-type")||"";t.set("module_sub_type",e),t.set("module_id",this.moduleId),t.set("cta",s),t.save()}"cta_2"!==s?this.maybeSetVisibilityCookie("hide_after_cta"):this.maybeSetVisibilityCookie("hide_after_cta2"),this.maybeCloseAfterCtaClick(i,n),e.stopPropagation()}}))}(jQuery,document,window)},9564:function(){!function(t){"use strict";incOpt.is_upfront||(window.Optin.PopUp=window.Optin.Module.extend({type:"popup",showModule(){"0"===this.settings.allow_scroll_page&&(t("html").addClass("hustle-no-scroll"),this.$el.addClass("hustle-scroll-forbidden"));const e="false"!==String(this.$el.data("close-delay"))&&this.$el.data("close-delay");this.$el.trigger("hustle:module:beforePopupLoad",this.$el),HUI.popupLoad(this.el,e),this.$el.trigger("hustle:module:afterPopupLoad",this.$el)},close(t=0){HUI.popupClose(this.$el,t)}}))}(jQuery)},9160:function(){!function(t){"use strict";incOpt.is_upfront||(window.Optin.SlideIn=window.Optin.Module.extend({type:"slidein",showModule(){const e=this,i="false"!==String(this.$el.data("close-delay"))&&this.$el.data("close-delay");HUI.slideinLayouts(this.$el),t(window).on("resize",(function(){HUI.slideinLayouts(e.$el)})),this.$el.trigger("hustle:module:beforeSlideInLoad",this.$el),HUI.slideinLoad(this.$el,i),this.$el.trigger("hustle:module:afterSlideInLoad",this.$el)},close(t=0){HUI.slideinClose(this.$el,t)}}))}(jQuery)},8791:function(){!function(t){"use strict";window.Optin.SShare=window.Optin.Module.extend({type:"social_sharing",beforeShowModule:_.noop,events:{"click .hustle-share-icon":"iconClicked"},beforeListenForDisplay(){this.collectNativeCounters()},handleDisplay(){this.beforeListenForDisplay(),this.display()},showModule(){const e=this.$el.data(),i=this;this.$el.trigger("hustle:module:beforeSshareLoad",this.$el),"floating"===e.subType?(HUI.floatLoad(this.el),t(window).on("resize",(()=>HUI.floatLoad(i.el)))):(HUI.inlineLoad(this.el),HUI.inlineResizeSocialSharing(this.el),t(window).on("resize",(()=>HUI.inlineResizeSocialSharing(i.el)))),this.$el.trigger("hustle:module:afterSshareLoad",this.$el)},setOnInit(t){void 0!==t.parent&&(this.parent=t.parent)},shouldDisplay(){return!0},iconClicked(e){const i=t(e.currentTarget),s=i.data("counter"),n=i.data("link");this.isTrackingEnabled&&this.logConversion(),"native"===n&&(e.preventDefault(),this.openNativeSharingUrl(i)),"native"===s?this.updateSocialCounter(i,"native"):"click"===s&&this.updateSocialCounter(i,"click")},logConversion(){if(void 0!==window.Optin.ModuleLogConversion&&this.isTrackingEnabled){const t=new window.Optin.ModuleLogConversion,e="undefined"!==this.$el.data("sub-type")?this.$el.data("sub-type"):"";t.set("module_sub_type",e),t.set("module_id",this.moduleId),t.save()}},openNativeSharingUrl(t){const e=t.data("network");e&&void 0!==incOpt.native_share_enpoints[e]&&("pinterest"===e?(this.updateSocialCounter(t,"click"),PinUtils.pinAny()):window.open(incOpt.native_share_enpoints[e],"MsgWindow","menubar=no,toolbar=no,resizable=yes,scrollbars=yes"))},updateSocialCounter(e,i){const s=e.data("network"),n=".hustle_module_id_"+this.$el.data("id");"click"===i?(this.storeUpdatedClickCounter(s),setTimeout((function(){t(n+' a[data-network="'+s+'"]').not('a[data-counter="native"]').each((function(){const e=t(this).find(".hustle-counter");if(e.length){const t=parseInt(e.text())+1;e.text(t)}}))}),5e3)):setTimeout((function(){t(n+' a[data-network="'+s+'"]').not('a[data-counter="click"]').each((function(){const e=t(this).find(".hustle-counter");if(e.length){const t='<i class="hustle-icon-check" aria-hidden="true"></i>';e.html(t)}}))}),5e3)},storeUpdatedClickCounter(e){t.post({url:incOpt.ajaxurl,dataType:"json",data:{action:"hustle_sshare_click_counted",moduleId:this.moduleId,network:e}})},collectNativeCounters(){const e=this.$el.find('.hustle-share-icon[data-counter="native"]');e.length&&(window.Optin.networksToRetrieve=window.Optin.networksToRetrieve||[],e.each((function(){const e=t(this).data("network");-1===window.Optin.networksToRetrieve.indexOf(e)&&window.Optin.networksToRetrieve.push(e)})))}})}(jQuery)},2224:function(t){"use strict";t.exports=_},1669:function(t){"use strict";t.exports=jQuery}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,i),o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";i(7635),i(2457),i(4881),i(417),i(7505),i(4859),i(3202),i(9564),i(9160),i(8791),i(1225)}()}();