ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
www-data
/
sites
/
naresh-newwordpress
/
wp-content
/
plugins
/
hummingbird-performance
/
admin
/
assets
/
js
/
Upload FileeE
HOME
!function(){var e,t={9576:function(e,t,r){var n=r(8891);!function(){"use strict";var e=!1;window.wphbMixPanel={init:function(){void 0!==wphb.mixpanel&&wphb.mixpanel.enabled&&(n.init("5d545622e3a040aca63f2089b0e6cae7",{opt_out_tracking_by_default:!wphb.mixpanel.enabled,ip:!1}),n.register({plugin:wphb.mixpanel.plugin,plugin_type:wphb.mixpanel.plugin_type,plugin_version:wphb.mixpanel.plugin_version,wp_version:wphb.mixpanel.wp_version,wp_type:wphb.mixpanel.wp_type,locale:wphb.mixpanel.locale,active_theme:wphb.mixpanel.active_theme,php_version:wphb.mixpanel.php_version,mysql_version:wphb.mixpanel.mysql_version,server_type:wphb.mixpanel.server_type}))},optIn:function(){wphb.mixpanel.enabled=!0,this.init(),n.opt_in_tracking()},optOut:function(){n.opt_out_tracking()},deactivate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.track("plugin_deactivate",{reason:e,feedback:t})},enableFeature:function(e){this.track("plugin_feature_activate",{feature:e})},trackDelayJSUpsell:function(e){this.track("js_delay_upsell",e)},trackCriticalCSSUpsell:function(t){e||(e=!0,this.track("critical_css_upsell",t))},trackDelayJSEvent:function(e){"activate"===e.update_type&&this.enableFeature("JS Delay"),"deactivate"===e.update_type&&this.disableFeature("JS Delay"),this.track("js_delay_updated",e)},trackAOUpdated:function(e){var t=e.Mode.charAt(0).toUpperCase()+e.Mode.slice(1);e.Mode=t,this.track("ao_updated",e)},disableFeature:function(e){this.track("plugin_feature_deactivate",{feature:e})},track:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};void 0!==wphb.mixpanel&&wphb.mixpanel.enabled&&(n.has_opted_out_tracking()||n.track(e,t))}}}()},8538:function(e,t,r){"use strict";var n=r(7294),i=r(3935),o=r(5697),s=r.n(o);var a=function(e){return wphb.links[e]||""},c="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==c&&c,u="URLSearchParams"in c,p="Symbol"in c&&"iterator"in Symbol,l="FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch(e){return!1}}(),h="FormData"in c,f="ArrayBuffer"in c;if(f)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(e){return e&&d.indexOf(Object.prototype.toString.call(e))>-1};function _(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function g(e){return"string"!=typeof e&&(e=String(e)),e}function y(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return p&&(t[Symbol.iterator]=function(){return t}),t}function b(e){this.map={},e instanceof b?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function v(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function w(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function k(e){var t=new FileReader,r=w(t);return t.readAsArrayBuffer(e),r}function S(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:l&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:h&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:u&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():f&&l&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=S(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f&&(ArrayBuffer.prototype.isPrototypeOf(e)||m(e))?this._bodyArrayBuffer=S(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):u&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l&&(this.blob=function(){var e=v(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=v(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(k)}),this.text=function(){var e,t,r,n=v(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=w(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},h&&(this.formData=function(){return this.text().then(j)}),this.json=function(){return this.text().then(JSON.parse)},this}b.prototype.append=function(e,t){e=_(e),t=g(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},b.prototype.delete=function(e){delete this.map[_(e)]},b.prototype.get=function(e){return e=_(e),this.has(e)?this.map[e]:null},b.prototype.has=function(e){return this.map.hasOwnProperty(_(e))},b.prototype.set=function(e,t){this.map[_(e)]=g(t)},b.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},b.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),y(e)},b.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),y(e)},b.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),y(e)},p&&(b.prototype[Symbol.iterator]=b.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new b(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new b(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),x.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function j(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function C(e,t){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new b(t.headers),this.url=t.url||"",this._initBody(e)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},E.call(O.prototype),E.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var P=[301,302,303,307,308];C.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})};var T=c.DOMException;try{new T}catch(e){(T=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),T.prototype.constructor=T}function A(e,t){return new Promise((function(r,n){var i=new O(e,t);if(i.signal&&i.signal.aborted)return n(new T("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,n={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new b,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){r(new C(i,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new T("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&c.location.href?c.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(l?o.responseType="blob":f&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof b?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,g(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}function q(e){return q="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},q(e)}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==q(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===q(o)?o:String(o)),n)}var i,o}A.polyfill=!0,c.fetch||(c.fetch=A,c.Headers=b,c.Request=O,c.Response=C);var I=["get","post","put","delete"],D=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),I.forEach((function(e){t[e]=t._setupAjaxAPI(e)}))}var t,r,n;return t=e,r=[{key:"_setupAjaxAPI",value:function(e){return"get"===e&&(e="post"),function(){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={credentials:"same-origin",method:e,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=wphb_react_"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/")+"&_wpnonce="+wphb.nonces.HBFetchNonce+"&data="+JSON.stringify(t)};return A(ajaxurl,r).then((function(e){return e.json().then((function(t){return e.ok?t.data:Promise.reject(t.data)}))}))}}}],r&&N(t.prototype,r),n&&N(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),B=r(4184),F=r.n(B),U=["text","url","classes","id","icon","target","disabled","onClick","type"];function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(this,arguments)}function R(e,t){if(null==e)return{};var r,n,i=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,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}function $(e){var t,r=e.text,i=e.url,o=void 0===i?"#":i,s=e.classes,a=e.id,c=e.icon,u=e.target,p=e.disabled,l=void 0!==p&&p,h=e.onClick,f=e.type,d=void 0===f?"link":f,m=R(e,U);return c&&(c=n.createElement("span",{className:c,"aria-hidden":"true"})),"button"===d?n.createElement("button",M({className:F()(s),id:a,disabled:l,onClick:h},m),!window.lodash.includes(s,"sui-button-icon-right")&&c,r,window.lodash.includes(s,"sui-button-icon-right")&&c):("blank"!==u&&"_blank"!==u||(u="_blank",t="noopener noreferrer"),n.createElement("a",M({className:F()(s),href:o,id:a,target:u,rel:t,disabled:l,onClick:h},m),!window.lodash.includes(s,"sui-button-icon-right")&&c,r,window.lodash.includes(s,"sui-button-icon-right")&&c))}function H(e){var t=e.classes;return n.createElement("span",{className:t,"aria-hidden":"true"})}function L(e){var t=e.text,r=e.classes,i=e.icon,o=e.onClick,s=e.loading,a=void 0!==s&&s,c=e.loadingText;return n.createElement("button",{className:F()("sui-button",r,{"sui-button-onload-text":a&&c},{"sui-button-onload":a&&!c}),onClick:o,"aria-live":"polite"},c&&n.createElement("span",{className:"sui-button-text-default"},i&&n.createElement("span",{className:i,"aria-hidden":"true"}),t),!c&&n.createElement("span",{className:"sui-loading-text"},t),!c&&n.createElement(H,{classes:"sui-icon-loader sui-loading"}),c&&n.createElement("span",{className:"sui-button-text-onload"},n.createElement(H,{classes:"sui-icon-loader sui-loading"}),c))}function z(e){var t=e.text,r=e.classes,i=e.children;return n.createElement("span",{className:F()("sui-tooltip",r),"data-tooltip":t},i)}var G=wp.i18n.__;function W(e){var t=e.loading,r=e.text,i=G("Fetching latest data...","wphb");return r&&(i=r),n.createElement("div",{className:F()("wphb-loading-overlay",{"wphb-loading":t})},n.createElement(H,{classes:"sui-icon-loader sui-loading"}),n.createElement("p",null,i))}function J(e){return J="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},J(e)}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==J(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===J(o)?o:String(o)),n)}var i,o}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=K(e);if(t){var i=K(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(s,e);var t,r,i,o=Y(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return t=s,i=[{key:"boxHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return n.createElement(n.Fragment,null,(e||t)&&n.createElement("h3",{className:"sui-box-title"},t&&n.createElement(H,{classes:"sui-icon-"+t})," "+e),r)}}],(r=[{key:"renderContent",value:function(){var e,t=s.boxHeader(this.props.title,this.props.icon,this.props.headerActions);return e=this.props.stickyType?["sui-box","sui-box-header",this.props.boxClass]:["sui-box-header"],n.createElement(n.Fragment,null,n.createElement(W,{loading:this.props.loading,text:this.props.loadingText}),!this.props.hideHeader&&n.createElement("div",{className:F()(e)},t),(!this.props.stickyType||this.props.showFilters)&&this.props.content&&n.createElement("div",{className:F()("sui-box-body",this.props.boxBodyClass)},this.props.content),(!this.props.stickyType||this.props.showFilters)&&this.props.footerActions&&n.createElement("div",{className:"sui-box-footer"},this.props.footerActions))}},{key:"render",value:function(){var e=this.renderContent();return this.props.stickyType?n.createElement(n.Fragment,null,e):n.createElement("div",{className:F()("sui-box",this.props.boxClass)},e)}}])&&V(t.prototype,r),i&&V(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);function Z(e){var t=e.progress,r=void 0===t?0:t,i=e.status,o=void 0===i?"":i;return n.createElement(n.Fragment,null,n.createElement("div",{className:"sui-progress-block"},n.createElement("div",{className:"sui-progress"},n.createElement("span",{className:"sui-progress-icon","aria-hidden":"true"},n.createElement(H,{classes:"sui-icon-loader sui-loading"})),n.createElement("span",{className:"sui-progress-text"},r+"%"),n.createElement("div",{className:"sui-progress-bar","aria-hidden":"true"},n.createElement("span",{style:{width:r+"%"}})))),o&&n.createElement("div",{className:"sui-progress-state"},n.createElement("span",null,o)))}function ee(e){var t=e.value,r=e.type;if(0===t&&"success"===r)return n.createElement("span",{className:"sui-icon-check-tick sui-lg sui-success","aria-hidden":"true"});var i="sui-tag sui-tag-"+r;return n.createElement("span",{className:i},t)}function te(e){return te="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},te(e)}function re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==te(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==te(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===te(o)?o:String(o)),n)}var i,o}X.propTypes={boxClass:s().oneOfType([s().string,s().array]),boxBodyClass:s().oneOfType([s().string,s().array]),title:s().string,icon:s().string,hideHeader:s().bool,headerActions:s().element,content:s().element,footerActions:s().element,loading:s().bool,loadingText:s().string,stickyType:s().bool,showFilters:s().bool},ee.defaultProps={value:0,type:"success"};var ne=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.totalSteps=parseInt(t),this.currentStep=parseInt(r),this.cancelling=!1}var t,r,n;return t=e,r=[{key:"start",value:function(){var e=this;this.updateProgressBar(this.getProgress());var t=this.totalSteps-this.currentStep;0!==this.currentStep?this.step(t):this.onStart().then((function(){e.step(t)}))}},{key:"cancel",value:function(){this.cancelling=!0,this.updateProgressBar(0,!0)}},{key:"getProgress",value:function(){if(this.cancelling)return 0;var e=this.totalSteps-this.currentStep;return Math.min(Math.round(100*parseInt(this.totalSteps-e)/this.totalSteps),99)}},{key:"updateProgressBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e>100&&(e=100),document.querySelector(".sui-progress-block .sui-progress-text span").innerHTML=e+"%",document.querySelector(".sui-progress-block .sui-progress-bar span").style.width=e+"%",e>=90&&(document.querySelector(".sui-progress-state .sui-progress-state-text").innerHTML="Finalizing..."),t&&(document.querySelector(".sui-progress-state .sui-progress-state-text").innerHTML="Cancelling...")}},{key:"step",value:function(e){e>=0&&(this.currentStep=this.totalSteps-e)}},{key:"onStart",value:function(){throw new Error("onStart() must be implemented in child class")}},{key:"onFinish",value:function(){this.updateProgressBar(100)}}],r&&re(t.prototype,r),n&&re(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ie=ne,oe=r(8583),se=r.n(oe);function ae(e){return ae="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},ae(e)}var ce=new function(){var e=ajaxurl,t=wphb.nonces.HBFetchNonce,n="wphb_",i="wphb_pro_";function o(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o={url:e,method:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",cache:!1};return i instanceof FormData?(i.append("nonce",t),i.append("action",n),o.contentType=!1,o.processData=!1):(i.nonce=t,i.action=n),o.data=i,new(0,r(2702).Promise)((function(e,t){jQuery.ajax(o).done(e).fail(t)})).then((function(e){return function(e){"object"!==ae(e)&&(e=JSON.parse(e));if(e.success)return e.data;var t=e.data||{},r=new Error(t.message||"Error trying to fetch response from server");throw r.response=e,r}(e)}))}var s={caching:{saveSettings:function(e,t){return o(n+e+"_save_settings",{data:t},"POST").then((function(e){return e}))},clearCache:function(e){return o(n+"clear_module_cache",{module:e},"POST").then((function(e){return e}))},clearCacheForPost:function(e){return o(n+"gutenberg_clear_post_cache",{postId:e},"POST")},redisSaveSettings:function(e,t,r,i){return o(n+"redis_save_settings",{host:e,port:t,password:r,db:i},"POST")},redisObjectCache:function(e){return o(n+"redis_toggle_object_cache",{value:e},"POST")},clearCacheBatch:function(e,t){return o(n+"clear_network_cache",{sites:e,offset:t},"POST")},disableFastCGI:function(){return o(n+"disable_fast_cgi",{},"POST").then((function(e){return e}))}},cloudflare:{connect:function(e,t,r,i){return o(n+"cloudflare_connect",{email:e,key:t,token:r,zone:i},"POST").then((function(e){return e}))}},minification:{toggleCDN:function(e){return o(n+"minification_toggle_cdn",{value:e},"POST")},toggleLog:function(e){return o(n+"minification_toggle_log",{value:e},"POST")},toggleView:function(e,t){return o(n+"minification_toggle_view",{value:e,hide:t},"POST")},startCheck:function(){return o(n+"minification_start_check",{},"POST")},checkStep:function(e){return o(n+"minification_check_step",{step:e},"POST").then((function(e){return e}))},finishCheck:function(){return o(n+"minification_finish_scan",{},"POST").then((function(e){return e}))},cancelScan:function(){return o(n+"minification_cancel_scan",{},"POST")},saveCriticalCss:function(e){return o(n+"minification_save_extra_optimization_data",{form:e},"POST").then((function(e){return e}))},updateAssetPath:function(e){return o(n+"minification_update_asset_path",{value:e},"POST")},saveNetworkSettings:function(e){return o(n+"minification_update_network_settings",{settings:e},"POST")},updateExcludeList:function(e){return o(n+"minification_save_exclude_list",{data:e},"POST")},toggleDelayJs:function(e){return o(n+"react_minify_toggle_delay_js",{data:e},"POST")}},performance:{savePerformanceTestSettings:function(e){return o(n+"performance_save_settings",{data:e},"POST")}},advanced:{saveSettings:function(e,t){return o(n+"advanced_save_settings",{data:e,form:t},"POST").then((function(e){return e}))},deleteSelectedData:function(e){return o(n+"advanced_db_delete_data",{data:e},"POST").then((function(e){return e}))},clearOrphanedBatch:function(e){return o(n+"advanced_purge_orphaned",{rows:e},"POST")}},settings:{saveSettings:function(e){return o(n+"admin_settings_save_settings",{form_data:e},"POST").then((function(e){return e}))},importSettings:function(e){return o(n+"admin_settings_import_settings",e,"POST").then((function(e){return e}))},exportSettings:function(){var r=n+"admin_settings_export_settings";window.location=e+"?action="+r+"&nonce="+t}},common:{dismissNotice:function(e){return o(n+"notice_dismiss",{id:e},"POST")},clearLogs:function(e){return o(n+"logger_clear",{module:e},"POST").then((function(e){return e}))},call:function(e){return o(e,{},"POST").then((function(e){return e}))},clearCaches:function(e){return o(n+"clear_caches",{modules:e},"POST").then((function(e){return e}))}},notifications:{resendConfirmationEmail:function(e,t){return o(i+"resend_confirmation",{name:e,email:t},"POST").then((function(e){return e}))},sendConfirmationEmail:function(e,t){return o(i+"send_confirmation",{name:e,email:t},"POST").then((function(e){return e}))},disable:function(e,t){return o(i+"disable_notification",{id:e,type:t},"POST")},enable:function(e){return o(i+"enable_notification",{settings:e,update:arguments.length>1&&void 0!==arguments[1]&&arguments[1]},"POST").then((function(e){return e}))},getAvatar:function(e){return o(i+"get_avatar",{email:e},"POST").then((function(e){return e}))},getUsers:function(e){return o(i+"search_users",{exclude:e},"POST").then((function(e){return e}))}}};se()(this,s)},ue=ce;function pe(e){return pe="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},pe(e)}function le(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==pe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===pe(o)?o:String(o)),n)}var i,o}function he(){return he="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=me(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},he.apply(this,arguments)}function fe(e,t){return fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fe(e,t)}function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=me(e);if(t){var i=me(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},me(e)}var _e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}(o,e);var t,r,n,i=de(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return t=o,(r=[{key:"step",value:function(e){var t=this;he(me(o.prototype),"step",this).call(this,e),e>=0?ue.minification.checkStep(this.currentStep).then((function(){e-=1,t.updateProgressBar(t.getProgress()),t.step(e)})):ue.minification.finishCheck().then((function(e){t.onFinish(e)}))}},{key:"cancel",value:function(){he(me(o.prototype),"cancel",this).call(this),ue.minification.cancelScan().then((function(){window.location.href=a("minification")}))}},{key:"onStart",value:function(){return ue.minification.startCheck()}},{key:"onFinish",value:function(e){he(me(o.prototype),"onFinish",this).call(this),void 0!==e.assets_msg&&(document.getElementById("assetsFound").innerHTML=e.assets_msg),window.SUI.closeModal(),window.SUI.openModal("wphb-assets-modal","wpbody-content")}}])&&le(t.prototype,r),n&&le(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(ie);function ge(e){return ge="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},ge(e)}function ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==ge(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===ge(o)?o:String(o)),n)}var i,o}function be(e,t){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},be(e,t)}function ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=we(e);if(t){var i=we(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function we(e){return we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},we(e)}var ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&be(e,t)}(o,e);var t,r,n,i=ve(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return t=o,r=[{key:"updateProgressBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e>100&&(e=100),document.querySelector(".sui-progress .sui-progress-text").innerHTML=e+"%",document.querySelector(".sui-progress .sui-progress-bar span").style.width=e+"%",e>=90&&(document.querySelector(".wphb-progress-wrapper .sui-progress-state > span").innerHTML="Finalizing..."),t&&(document.querySelector(".wphb-progress-wrapper .sui-progress-state > span").innerHTML="Cancelling...")}},{key:"onFinish",value:function(){window.wphbSetupNextStep()}}],r&&ye(t.prototype,r),n&&ye(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(_e),Se=ke,Ee=["text","id","name","className","onChange","checked","hideToggle","disabled","description"];function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xe.apply(this,arguments)}function Oe(e,t){if(null==e)return{};var r,n,i=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,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}function je(e){var t=e.text,r=e.id,i=e.name,o=e.className,s=e.onChange,a=e.checked,c=void 0!==a&&a,u=e.hideToggle,p=void 0!==u&&u,l=e.disabled,h=void 0!==l&&l,f=e.description,d=void 0===f?"":f,m=Oe(e,Ee);return n.createElement("div",{className:"sui-form-field"},n.createElement("label",{htmlFor:r,className:F()(o,"sui-toggle")},n.createElement("input",xe({type:"checkbox",name:i,id:r,checked:c,disabled:h,onChange:s,"aria-labelledby":r+"-label"},m)),!p&&n.createElement("span",{className:"sui-toggle-slider","aria-hidden":"true"}),t&&n.createElement("span",{id:r+"-label",className:"sui-toggle-label"},t),d&&n.createElement("span",{id:r+"-description",className:"sui-description"},d)))}function Ce(e){var t=e.label,r=e.description,i=e.content,o=e.classes,s=e.wide;return void 0!==s&&s?n.createElement("div",{className:"sui-box-settings-row"},n.createElement("div",{className:"sui-box-settings-col-2"},n.createElement("span",{className:"sui-settings-label"},t),i)):r?n.createElement("div",{className:"sui-box-settings-row"},n.createElement("div",{className:"sui-box-settings-col-1"},n.createElement("span",{className:"sui-settings-label"},t),n.createElement("span",{className:"sui-description"},r)),n.createElement("div",{className:"sui-box-settings-col-2"},i)):n.createElement("div",{className:F()("sui-box-settings-row",o)},i)}function Pe(e){return Pe="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},Pe(e)}function Te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==Pe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===Pe(o)?o:String(o)),n)}var i,o}function Ae(e,t){return Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ae(e,t)}function qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ne(e);if(t){var i=Ne(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function Ne(e){return Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ne(e)}var Ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ae(e,t)}(s,e);var t,r,i,o=qe(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return t=s,(r=[{key:"componentDidMount",value:function(){this.props.sideTabs||SUI.tabs()}},{key:"render",value:function(){var e=this,t=Object.values(this.props.menu).map((function(e){var t=void 0!==e.checked&&e.checked;return n.createElement($,{text:e.title,id:e.id+"-tab",classes:F()("sui-tab-item",{active:t}),type:"button",role:"tab","aria-controls":e.id+"-tab-content","aria-selected":t,tabIndex:t?"0":"-1",key:e.id,onClick:e.onClick})})),r=Object.values(this.props.tabs).map((function(t,r){var i=void 0!==t.active&&t.active,o=F()({"sui-tab-content":!e.props.sideTabs},{"sui-tab-boxed":e.props.sideTabs},{active:i});return n.createElement("div",{role:"tabpanel",tabIndex:"0",id:t.id+"-tab-content",className:o,"aria-labelledby":t.id+"-tab",hidden:!i,key:r},t.description&&n.createElement("div",{className:"sui-description sui-margin-bottom"},t.description),t.content)}));return n.createElement("div",{className:F()({"sui-tabs":!this.props.sideTabs},{"sui-tabs-flushed":this.props.flushed},{"sui-side-tabs":this.props.sideTabs},this.props.className)},n.createElement("div",{role:"tablist",className:"sui-tabs-menu"},t),!window.lodash.isEmpty(this.props.tabs)&&n.createElement("div",{className:"sui-tabs-content"},r))}}])&&Te(t.prototype,r),i&&Te(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);let De,Be,Fe,Ue;Ie.defaultProps={tabs:{}};const Me=/<(\/)?(\w+)\s*(\/)?>/g;function Re(e,t,r,n,i){return{element:e,tokenStart:t,tokenLength:r,prevOffset:n,leadingTextStart:i,children:[]}}const $e=e=>{const t="object"==typeof e,r=t&&Object.values(e);return t&&r.length&&r.every((e=>(0,n.isValidElement)(e)))};function He(e){const t=function(){const e=Me.exec(De);if(null===e)return["no-more-tokens"];const t=e.index,[r,n,i,o]=e,s=r.length;if(o)return["self-closed",i,t,s];if(n)return["closer",i,t,s];return["opener",i,t,s]}(),[r,i,o,s]=t,a=Ue.length,c=o>Be?Be:null;if(!e[i])return Le(),!1;switch(r){case"no-more-tokens":if(0!==a){const{leadingTextStart:e,tokenStart:t}=Ue.pop();Fe.push(De.substr(e,t))}return Le(),!1;case"self-closed":return 0===a?(null!==c&&Fe.push(De.substr(c,o-c)),Fe.push(e[i]),Be=o+s,!0):(ze(Re(e[i],o,s)),Be=o+s,!0);case"opener":return Ue.push(Re(e[i],o,s,o+s,c)),Be=o+s,!0;case"closer":if(1===a)return function(e){const{element:t,leadingTextStart:r,prevOffset:i,tokenStart:o,children:s}=Ue.pop(),a=e?De.substr(i,e-i):De.substr(i);a&&s.push(a);null!==r&&Fe.push(De.substr(r,o-r));Fe.push((0,n.cloneElement)(t,null,...s))}(o),Be=o+s,!0;const t=Ue.pop(),r=De.substr(t.prevOffset,o-t.prevOffset);t.children.push(r),t.prevOffset=o+s;const u=Re(t.element,t.tokenStart,t.tokenLength,o+s);return u.children=t.children,ze(u),Be=o+s,!0;default:return Le(),!1}}function Le(){const e=De.length-Be;0!==e&&Fe.push(De.substr(Be,e))}function ze(e){const{element:t,tokenStart:r,tokenLength:i,prevOffset:o,children:s}=e,a=Ue[Ue.length-1],c=De.substr(a.prevOffset,r-a.prevOffset);c&&a.children.push(c),a.children.push((0,n.cloneElement)(t,null,...s)),a.prevOffset=o||r+i}var Ge=(e,t)=>{if(De=e,Be=0,Fe=[],Ue=[],Me.lastIndex=0,!$e(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(He(t));return(0,n.createElement)(n.Fragment,null,...Fe)};function We(e){return We="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},We(e)}function Je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==We(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===We(o)?o:String(o)),n)}var i,o}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ke(e);if(t){var i=Ke(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ye(e)}(this,r)}}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}var Xe=wp.i18n,Ze=Xe.__,et=(Xe.sprintf,function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(s,e);var t,r,i,o=Qe(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this,e)).state={steps:{1:Ze("Getting Started","wphb"),2:Ze("Asset Optimization","wphb"),3:Ze("Uptime","wphb"),4:Ze("Page Caching","wphb"),5:Ze("Advanced Tools","wphb"),6:Ze("Finish","wphb")},scanning:!1,skip:{advCacheFile:!1,fastCGI:!1}},t.continueToNextStep=t.continueToNextStep.bind(Ye(t)),t}return t=s,(r=[{key:"componentDidUpdate",value:function(e,t){if(1===this.props.step&&this.props.showConflicts){if(this.props.step===e.step&&this.props.showConflicts===e.showConflicts)return;this.setState({skip:{advCacheFile:!this.props.issues.advCacheFile,fastCGI:!this.props.issues.fastCGI}}),jQuery(".sui-box-header").on("click",this.toggleContent)}2===this.props.step&&this.props.settings.aoEnable&&!0===this.state.scanning&&this.state.scanning!==t.scanning&&new Se(this.props.minifySteps,0).start(),3<=this.props.step&&this.props.step!==e.step&&this.setState({scanning:!1})}},{key:"toggleContent",value:function(e){e.currentTarget.parentNode.classList.toggle("open")}},{key:"getNavigation",value:function(){var e=this,t=Object.entries(this.state.steps).map((function(t,r){if(6===r)return null;var i=20*r,o=20*t[0],s=e.props.step<=t[0]?"#D8D8D8":"#1ABC9C";return n.createElement("line",{key:r,x1:i+"%",x2:o+"%",className:"line-mobile",stroke:s})})),r=Object.entries(this.state.steps).map((function(t,r){if(6===r)return null;var i=F()({current:parseInt(t[0])===e.props.step,done:parseInt(t[0])<e.props.step,disabled:3===parseInt(t[0])&&!e.props.hasUptime});return n.createElement(n.Fragment,{key:r},n.createElement("li",{className:i},"done"!==i&&n.createElement("span",null,t[0]),"done"===i&&n.createElement(H,{classes:"sui-icon-check"}),t[1],3===parseInt(t[0])&&!e.props.hasUptime&&n.createElement(ee,{type:"pro",value:Ze("Pro","wphb")})),5>r&&n.createElement("svg",{focusable:"false","aria-hidden":"true"},n.createElement("line",{y1:"0",y2:"30px"})))}));return n.createElement("div",{className:"sui-sidenav"},n.createElement("svg",{focusable:"false","aria-hidden":"true"},t),n.createElement("ul",null,r))}},{key:"getHeader",value:function(){var e=this.state.steps[this.props.step],t=this.state.steps[this.props.step].replace(/\s+/g,"-").toLowerCase();return 1===this.props.step&&this.props.showConflicts?(t=this.props.issues.advCacheFile||this.props.issues.fastCGI?"failed":"success",e=Ze("Plugin Conflict","wphb")):6===this.props.step&&(t="success",e=Ze("Wizard Completed!","wphb")),n.createElement(n.Fragment,null,n.createElement("img",{className:"sui-image",alt:this.state.steps[this.props.step],src:a("wphbDirUrl")+"admin/assets/image/setup/"+t+".png",srcSet:a("wphbDirUrl")+"admin/assets/image/setup/"+t+".png 1x, "+a("wphbDirUrl")+"admin/assets/image/setup/"+t+"@2x.png 2x"}),n.createElement("small",null,Ze("Hummingbird Setup","wphb")),n.createElement("h2",null,e))}},{key:"getCompatPluginsContent",value:function(){if(!this.props.showConflicts||this.state.skip.advCacheFile)return null;var e=Ze("No other caching plugin is detected","wphb"),t="check-tick sui-success",r=n.createElement("p",{className:"sui-description"},Ze("No other caching plugin is detected. You can proceed with the setup.","wphb"));if(this.props.issues.advCacheFile){e=Ze("Another caching plugin is detected","wphb"),t="warning-alert sui-error";var i=Ge(Ze("Hummingbird has detected an advanced-cache.php file in your site’s wp-content directory. <a>Manage your plugins</a> and disable any other active caching plugins to ensure Hummingbird’s page caching works properly.","wphb"),{a:n.createElement("a",{href:a("plugins")})});r=n.createElement(n.Fragment,null,n.createElement("p",{className:"sui-description"},i),n.createElement("p",{className:"sui-description"},Ze("If no other caching plugins are active, the advanced-cache.php may have been left by a previously used caching plugin. You can remove the file from the wp-content directory, or remove it via your file manager or FTP.","wphb")))}return n.createElement(X,{boxClass:"open",icon:t,title:e,headerActions:n.createElement("div",{className:"sui-actions-right"},n.createElement($,{onClick:this.toggleContent,type:"button",classes:"sui-button-icon",icon:"sui-icon-chevron-up"})),content:r,footerActions:n.createElement(n.Fragment,null,n.createElement($,{onClick:this.props.reCheckRequirements,type:"button",classes:["sui-button","sui-button-ghost"],icon:"sui-icon-update",text:Ze("Re-check status","wphb")}),this.props.issues.advCacheFile&&n.createElement("div",{className:"sui-actions-right"},n.createElement($,{onClick:this.props.removeAdvancedCache,type:"button",classes:["sui-button","sui-button-blue"],text:Ze("Remove file","wphb")})))})}},{key:"getFastCGIContent",value:function(){if(!this.props.showConflicts||this.state.skip.fastCGI)return null;var e=Ze("Static Server Cache cache is disabled","wphb"),t="check-tick sui-success",r=Ze("Static Server Cache cache is disabled and Hummingbird is set as a main page caching tool.","wphb");return this.props.issues.fastCGI&&(e=Ze("Static Server Cache is active on your server","wphb"),t="warning-alert sui-warning",r=Ze("Hummingbird has detected that you have Static Server Cache active on your server. We recommend to use only one page caching tool. If you disable the Static Server Cache, Hummingbird will be set as primary caching tool, if you continue without disabling, Static Server Cache will be set as the main caching tool, but you still will be able to clear cache on page/post update using Hummingbird.","wphb")),n.createElement(X,{boxClass:F()({open:this.state.skip.advCacheFile}),icon:t,title:e,headerActions:n.createElement("div",{className:"sui-actions-right"},n.createElement($,{onClick:this.toggleContent,type:"button",classes:"sui-button-icon",icon:"sui-icon-chevron-up"})),content:n.createElement("p",{className:"sui-description"},r),footerActions:n.createElement(n.Fragment,null,n.createElement($,{onClick:this.props.reCheckRequirements,type:"button",classes:["sui-button","sui-button-ghost"],icon:"sui-icon-update",text:Ze("Re-check status","wphb")}),this.props.issues.fastCGI&&n.createElement("div",{className:"sui-actions-right"},n.createElement("p",{className:"sui-description"},n.createElement($,{onClick:this.props.disableFastCGI,text:Ze("Disable Static Server Cache ","wphb")}))))})}},{key:"toggleButtons",value:function(){var e=this;if(2>this.props.step||4<this.props.step)return null;if(2===this.props.step&&this.state.scanning)return null;var t=["aoEnable","uptimeEnable","cacheEnable"],r=[{title:Ze("Enable","wphb"),checked:this.props.settings[t[this.props.step-2]],id:"enable",onClick:function(){return e.props.toggleModule("enable",t[e.props.step-2])}},{title:Ze("Disable","wphb"),checked:!this.props.settings[t[this.props.step-2]],id:"disable",onClick:function(){return e.props.toggleModule("disable",t[e.props.step-2])}}];return n.createElement(Ie,{sideTabs:"true",menu:r})}},{key:"assetOptimizationSettings",value:function(){return n.createElement(n.Fragment,null,this.props.settings.aoEnable&&n.createElement("div",{className:F()("sui-border-frame",{"sui-hidden":this.state.scanning||this.props.isNetworkAdmin&&!this.props.isMember})},!this.props.isNetworkAdmin&&n.createElement(Ce,{classes:"sui-flushed",content:n.createElement(je,{id:"aoSpeedy",onChange:this.props.updateSettings,text:Ze("Enable Speedy Compression","wphb"),checked:this.props.settings.aoSpeedy,description:Ze("Our automatic solution for optimization, the Speedy compression will auto-compress and auto-combine smaller files together. This can help to decrease the number of requests made when a page is loaded.","wphb")})}),this.props.isMember&&n.createElement(Ce,{classes:"sui-flushed",content:n.createElement(je,{id:"aoCdn",onChange:this.props.updateSettings,text:Ze("WPMU DEV CDN","wphb"),checked:this.props.settings.aoCdn,description:Ze("WPMU DEV CDN will serve your CSS, JS and other compatible files from our external CDN, effectively taking the load off your server so that pages load faster for your visitors.","wphb")})})),this.state.scanning&&n.createElement(n.Fragment,null,n.createElement("div",{className:"wphb-progress-wrapper"},n.createElement(Z,{status:this.props.settings.aoSpeedy?Ze("Activating Speedy Optimization...","wphb"):Ze("Activating Basic Optimization...","wphb")})),n.createElement("p",{className:"sui-description"},Ze("Please wait, this won’t take more than a minute...","wphb"))))}},{key:"cacheSettings",value:function(){return this.props.settings.cacheEnable?n.createElement("div",{className:"sui-border-frame"},n.createElement(Ce,{classes:"sui-flushed",content:n.createElement(je,{id:"cacheOnMobile",onChange:this.props.updateSettings,text:Ze("Cache on mobile devices","wphb"),checked:this.props.settings.cacheOnMobile,description:Ze("By default, page caching is enabled for mobile devices. If you don't want to use mobile caching, simply disable this setting.","wphb")})}),n.createElement(Ce,{classes:"sui-flushed",content:n.createElement(je,{id:"clearOnComment",onChange:this.props.updateSettings,text:Ze("Clear cache on comment post","wphb"),checked:this.props.settings.clearOnComment,description:Ze("The page cache will be cleared after each comment made on a post.","wphb")})}),n.createElement(Ce,{classes:"sui-flushed",content:n.createElement(je,{id:"cacheHeader",onChange:this.props.updateSettings,text:Ze("Cache HTTP headers","wphb"),checked:this.props.settings.cacheHeader,description:Ze("By default, Hummingbird won't cache HTTP headers. Enable this feature to include them.","wphb")})}),n.createElement(Ce,{classes:"sui-flushed",content:n.createElement(je,{id:"clearCacheButton",onChange:this.props.updateSettings,text:Ze("Show clear cache button in admin bar","wphb"),checked:this.props.settings.clearCacheButton,description:Ze("Add a shortcut to Hummingbird settings in the top WordPress Admin bar. Clicking the Clear Cache button in the WordPress Admin Bar will clear all active cache types.","wphb")})})):null}},{key:"advancedSettings",value:function(){return n.createElement("div",{className:"sui-border-frame"},n.createElement(Ce,{classes:"sui-flushed",content:n.createElement(je,{id:"queryStrings",onChange:this.props.updateSettings,text:Ze("Remove query strings from my assets","wphb"),checked:this.props.settings.queryStrings,description:Ze("Some of your resource URLs can end with something like “?x=y”, these are the query strings of the URL. Some servers, CDNs or caching systems don’t like query strings and removing them can help to increase speed.","wphb")})}),this.props.hasWoo&&n.createElement(Ce,{classes:"sui-flushed",content:n.createElement(je,{id:"cartFragments",onChange:this.props.updateSettings,text:Ze("Disable cart fragments","wphb"),checked:this.props.settings.cartFragments,description:Ze("WooCommerce uses ajax calls to update cart totals without refreshing the page. These ajax calls run on every page and can drastically increase page load times. We recommend disabling cart fragments on all non-WooCommerce pages.","wphb")})}),n.createElement(Ce,{classes:"sui-flushed",content:n.createElement(je,{id:"removeEmoji",onChange:this.props.updateSettings,text:Ze("Remove the default Emoji JS & CSS files","wphb"),checked:this.props.settings.removeEmoji,description:Ze("WordPress adds Javascript and CSS files to convert common symbols like “:)” to visual emojis. If you don’t need emojis this will remove two unnecessary assets.","wphb")})}))}},{key:"showResults",value:function(){return n.createElement("table",{className:"sui-table"},n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",null,Ze("Modules","wphb")),n.createElement("th",null,Ze("Settings applied","wphb")),n.createElement("th",null,Ze("Status","wphb")))),n.createElement("tbody",null,this.props.settings.aoEnable&&n.createElement("tr",null,n.createElement("td",{className:"sui-table-item-title"},Ze("Asset Optimization","wphb")),n.createElement("td",null,!this.props.isNetworkAdmin&&this.props.settings.aoSpeedy&&Ze("Speedy Optimization","wphb"),!this.props.isNetworkAdmin&&!this.props.settings.aoSpeedy&&Ze("Basic Optimization","wphb"),this.props.isNetworkAdmin&&Ze("Active on subsites","wphb"),this.props.isMember&&n.createElement("br",null),this.props.isMember&&n.createElement(n.Fragment,null,Ze("CDN","wphb"))),n.createElement("td",null,n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}),this.props.settings.aoCdn&&this.props.isMember&&n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}),!this.props.settings.aoCdn&&this.props.isMember&&n.createElement(ee,{type:"grey sui-tag-sm",value:Ze("Disabled","wphb")}))),this.props.settings.uptimeEnable&&n.createElement("tr",null,n.createElement("td",{className:"sui-table-item-title"},Ze("Uptime","wphb")),n.createElement("td",null,Ze("Default settings","wphb")),n.createElement("td",null,n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}))),this.props.settings.cacheEnable&&this.props.issues.fastCGI&&n.createElement("tr",null,n.createElement("td",{className:"sui-table-item-title"},Ze("Page Caching","wphb")),n.createElement("td",null,Ze("Static Server Cache","wphb")),n.createElement("td",null,n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}))),this.props.settings.cacheEnable&&!this.props.issues.fastCGI&&n.createElement("tr",null,n.createElement("td",{className:"sui-table-item-title"},Ze("Page Caching","wphb")),n.createElement("td",null,Ze("Cache on mobile devices","wphb"),n.createElement("br",null),Ze("Clear cache on comment post","wphb"),n.createElement("br",null),Ze("Cache HTTP headers","wphb"),n.createElement("br",null),Ze("Show clear cache button in admin bar","wphb")),n.createElement("td",null,this.props.settings.cacheOnMobile&&n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}),!this.props.settings.cacheOnMobile&&n.createElement(ee,{type:"grey sui-tag-sm",value:Ze("Disabled","wphb")}),this.props.settings.clearOnComment&&n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}),!this.props.settings.clearOnComment&&n.createElement(ee,{type:"grey sui-tag-sm",value:Ze("Disabled","wphb")}),this.props.settings.cacheHeader&&n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}),!this.props.settings.cacheHeader&&n.createElement(ee,{type:"grey sui-tag-sm",value:Ze("Disabled","wphb")}),this.props.settings.clearCacheButton&&n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}),!this.props.settings.clearCacheButton&&n.createElement(ee,{type:"grey sui-tag-sm",value:Ze("Disabled","wphb")}))),n.createElement("tr",null,n.createElement("td",{className:"sui-table-item-title"},Ze("Advanced Tools","wphb")),n.createElement("td",null,Ze("Remove query strings from my assets","wphb"),n.createElement("br",null),this.props.hasWoo&&n.createElement(n.Fragment,null,Ze("Disable cart fragments","wphb"),n.createElement("br",null)),Ze("Remove the default Emoji JS & CSS files","wphb")),n.createElement("td",null,this.props.settings.queryStrings&&n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}),!this.props.settings.queryStrings&&n.createElement(ee,{type:"grey sui-tag-sm",value:Ze("Disabled","wphb")}),this.props.hasWoo&&n.createElement(n.Fragment,null,this.props.settings.cartFragments&&n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}),!this.props.settings.cartFragments&&n.createElement(ee,{type:"grey sui-tag-sm",value:Ze("Disabled","wphb")})),this.props.settings.removeEmoji&&n.createElement(ee,{type:"blue sui-tag-sm",value:Ze("Enabled","wphb")}),!this.props.settings.removeEmoji&&n.createElement(ee,{type:"grey sui-tag-sm",value:Ze("Disabled","wphb")})))))}},{key:"getContent",value:function(){var e;return 1===this.props.step?(e=Ze("Get started by activating all our features with recommended default settings, then fine-tune them to suit your specific needs. Alternately you can skip this process if you’d prefer to start customizing.","wphb"),this.props.showConflicts&&(e=Ze("Any issue reported here may cause issues while we set up the plugin.","wphb"),this.props.issues.advCacheFile||this.props.issues.fastCGI||(e=Ze("There are no more potential issues. You can proceed with the setup.","wphb")))):2===this.props.step?e=Ze("Hummingbird's Asset Optimization engine can combine and minify the files your website outputs when a user visits your website. The fewer requests your visitors have to make to your server, the better.","wphb"):3===this.props.step?e=Ze("Uptime monitors your server response time and lets you know when your website is down or too slow for your visitors. Monitor your site every minute to make sure it's up and graph your site speed so you can make sure everything is running super smooth.","wphb"):4===this.props.step?e=Ze("Hummingbird stores static HTML copies of your pages and posts to decrease page load time. We will activate the default and basic settings and you can then fine-tune them to suit your specific needs.","wphb"):5===this.props.step?e=Ze("Here are a few additional tweaks you can make to further reduce your page load times.","wphb"):6===this.props.step&&(e=Ze("The setup is complete. We have activated the main features with the default settings. You can proceed to run a Performance Test or go directly to the Dashboard page.","wphb")),n.createElement(n.Fragment,null,n.createElement("p",{className:"sui-description"},e),1===this.props.step&&!this.props.showConflicts&&n.createElement("div",{className:"sui-border-frame"},n.createElement(je,{id:"tracking",onChange:this.props.updateSettings,text:Ze("Enable usage tracking and help make Hummingbird better","wphb"),checked:this.props.settings.tracking,description:Ge(Ze("Help make Hummingbird better by letting our team learn how you're using the plugin. Note: Usage tracking is completely anonymous. We are only tracking what features you are/aren't using to make our feature decision more informed. You can read about what data will be collected <a>here</a>.","wphb"),{a:n.createElement("a",{href:a("tracking"),target:"_blank"})})}),n.createElement("div",{className:"with-love"},n.createElement(H,{classes:"sui-icon-heart"}),n.createElement("small",null,Ze("Thank you for helping us to improve the plugin.","wphb")))),1===this.props.step&&this.props.showConflicts&&n.createElement("div",{className:"wphb-progress-wrapper"},this.getCompatPluginsContent(),this.getFastCGIContent()),this.toggleButtons(),2===this.props.step&&this.assetOptimizationSettings(),4===this.props.step&&this.cacheSettings(),5===this.props.step&&this.advancedSettings(),6===this.props.step&&this.showResults())}},{key:"getFooter",value:function(){var e=this;return n.createElement(n.Fragment,null,1===this.props.step&&!this.props.showConflicts&&n.createElement("span",{className:"sui-description"},n.createElement($,{onClick:function(){return e.props.finish("configs")},text:Ze("Skip wizard and apply a config","wphb")})),1!==this.props.step&&n.createElement($,{onClick:this.props.prevStep,disabled:this.state.scanning,type:"button",icon:"sui-icon-arrow-left",classes:["sui-button","sui-button-ghost"],text:Ze("Back","wphb")}),n.createElement("div",{className:"sui-actions-right"},1===this.props.step&&!this.props.showConflicts&&n.createElement($,{onClick:this.props.nextStep,type:"button",classes:["sui-button","sui-button-blue"],text:Ze("Get started","wphb")}),1===this.props.step&&this.props.showConflicts&&(this.props.issues.advCacheFile||this.props.issues.fastCGI)&&n.createElement(z,{classes:"sui-tooltip-constrained sui-tooltip-top-right-mobile",text:Ze("We advise to check the recommendations before proceeding.","wphb")},n.createElement($,{onClick:this.props.skipConflicts,type:"button",icon:"sui-icon-arrow-right",classes:["sui-button","sui-button-ghost"],text:Ze("Continue anyway","wphb")})),(1!==this.props.step||this.props.showConflicts&&!this.props.issues.advCacheFile&&!this.props.issues.fastCGI)&&6>this.props.step&&n.createElement($,{onClick:this.continueToNextStep,disabled:this.state.scanning,type:"button",icon:"sui-icon-arrow-right",classes:["sui-button","sui-button-blue"],text:Ze("Continue","wphb")}),6===this.props.step&&n.createElement(n.Fragment,null,n.createElement($,{onClick:function(){return e.props.finish("runPerf")},type:"button",classes:["sui-button","sui-button-ghost"],text:Ze("Run Performance Test","wphb")}),n.createElement($,{onClick:this.props.finish,type:"button",classes:["sui-button","sui-button-blue"],text:Ze("Go to Dashboard","wphb")}))))}},{key:"continueToNextStep",value:function(){2===this.props.step&&this.props.settings.aoEnable&&!this.props.isNetworkAdmin?this.setState({scanning:!0}):this.props.nextStep()}},{key:"render",value:function(){return n.createElement("div",{className:"sui-row-with-sidenav"},this.getNavigation(),n.createElement(X,{boxClass:"box-setup-requirements",hideHeader:!0,loading:this.props.loading,loadingText:1===this.props.step?Ze("Checking status","wphb"):Ze("Saving settings","wphb"),content:n.createElement(n.Fragment,null,this.getHeader(),this.getContent()),footerActions:this.getFooter()}))}}])&&Je(t.prototype,r),i&&Je(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component));function tt(e){return tt="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},tt(e)}function rt(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 nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){it(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function it(e,t,r){return(t=st(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,st(n.key),n)}}function st(e){var t=function(e,t){if("object"!==tt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tt(t)?t:String(t)}function at(e,t){return at=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},at(e,t)}function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=pt(e);if(t){var i=pt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ut(e)}(this,r)}}function ut(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pt(e){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pt(e)}var lt=wp.i18n.__;r(9576);var ht,ft=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&at(e,t)}(s,e);var t,r,i,o=ct(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this,e)).state={api:new D,isMember:t.props.wphbData.isMember,hasUptime:t.props.wphbData.hasUptime,loading:!1,step:1,issues:{advCacheFile:!1,fastCGI:!1},showConflicts:!1,settings:{aoEnable:!0,aoSpeedy:!0,aoCdn:Boolean(t.props.wphbData.isMember),uptimeEnable:Boolean(t.props.wphbData.hasUptime),cacheEnable:!0,cacheOnMobile:!0,clearOnComment:!0,cacheHeader:!0,clearCacheButton:!0,queryStrings:!0,cartFragments:Boolean(t.props.wphbData.hasWoo),removeEmoji:!0,tracking:!1}},t.checkRequirements=t.checkRequirements.bind(ut(t)),t.removeAdvancedCache=t.removeAdvancedCache.bind(ut(t)),t.disableFastCGI=t.disableFastCGI.bind(ut(t)),t.skipConflicts=t.skipConflicts.bind(ut(t)),t.nextStep=t.nextStep.bind(ut(t)),t.prevStep=t.prevStep.bind(ut(t)),t.finish=t.finish.bind(ut(t)),t.updateSettings=t.updateSettings.bind(ut(t)),t.toggleModule=t.toggleModule.bind(ut(t)),t.quitWizard=t.quitWizard.bind(ut(t)),t}return t=s,r=[{key:"componentDidMount",value:function(){this.checkRequirements()}},{key:"skipConflicts",value:function(){this.setState({showConflicts:!1,step:2})}},{key:"nextStep",value:function(){var e=this;if(1!==this.state.step||!this.state.issues.advCacheFile&&!this.state.issues.fastCGI){var t=this.state.step+1;2!==this.state.step||this.state.hasUptime||t++,3===this.state.step&&this.state.issues.fastCGI&&t++,this.setState({loading:!0});var r=nt(nt({},this.state.settings),{},{module:"",enable:!1});2===this.state.step?(r.module="ao",r.enable=this.state.settings.aoEnable):3===this.state.step?(r.module="uptime",r.enable=this.state.settings.uptimeEnable):4===this.state.step?(r.module="caching",r.enable=this.state.settings.cacheEnable):5===this.state.step&&(r.module="advanced"),this.state.api.post("settings",r).then((function(){return e.setState({showConflicts:!1,step:t,loading:!1})})).catch((function(e){return window.console.log(e)}))}else this.setState({showConflicts:!0})}},{key:"prevStep",value:function(){var e=this.state.step-1;5===this.state.step&&this.state.issues.fastCGI&&e--,4!==this.state.step||this.state.hasUptime||e--,this.setState({step:e})}},{key:"finish",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pluginDash";this.setState({loading:!0}),this.state.api.post("complete_wizard").then((function(){"string"!=typeof e&&(e="pluginDash"),"runPerf"===e&&window.wphbMixPanel.track("plugin_scan_started",{score_mobile_previous:"-",score_desktop_previous:"-"}),window.location.href=a(e)})).catch((function(e){return window.console.log(e)}))}},{key:"checkRequirements",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.setState({loading:!0}),this.state.api.post("check_requirements").then((function(t){e.setState({loading:!1,issues:t.status})})).catch((function(e){return window.console.log(e)}))}},{key:"removeAdvancedCache",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("remove_advanced_cache").then((function(t){e.setState({loading:!1,issues:t.status})})).catch((function(e){return window.console.log(e)}))}},{key:"disableFastCGI",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("disable_fast_cgi").then((function(t){e.setState({loading:!1,issues:t.status})})).catch((function(e){return window.console.log(e)}))}},{key:"updateSettings",value:function(e){var t=nt({},this.state.settings);t[e.target.id]=e.target.checked,"tracking"===e.target.id&&(e.target.checked?window.wphbMixPanel.optIn():window.wphbMixPanel.optOut()),this.setState({settings:t})}},{key:"toggleModule",value:function(e,t){var r=nt({},this.state.settings);r[t]="enable"===e,this.setState({settings:r})}},{key:"quitWizard",value:function(){this.setState({loading:!0}),this.state.api.post("cancel_wizard").then((function(){return window.location.href=a("pluginDash")})).catch((function(e){return window.console.log(e)}))}},{key:"getHeader",value:function(){return n.createElement("div",{className:"sui-header wphb-wizard-header"},n.createElement("h2",{className:"sui-header-title"},n.createElement("img",{className:"sui-image",alt:lt("Setup wizard","wphb"),src:a("wphbDirUrl")+"admin/assets/image/setup/hummingbird.png",srcSet:a("wphbDirUrl")+"admin/assets/image/setup/hummingbird.png 1x, "+a("wphbDirUrl")+"admin/assets/image/setup/hummingbird@2x.png 2x"}),lt("Hummingbird","wphb"),n.createElement("small",null,lt("Wizard","wphb"))),n.createElement("div",{className:"sui-actions-right"},!this.state.isMember&&n.createElement(z,{text:lt("Get Hummingbird Pro for our full WordPress speed optimization suite, including uptime monitoring and enhanced, hosted file minification.","wphb"),classes:["sui-tooltip-constrained","sui-tooltip-bottom"]},n.createElement($,{classes:["sui-button","sui-button-purple"],target:"blank",url:a("upsell"),text:lt("UPGRADE TO PRO","wphb")})),6!==this.state.step&&n.createElement(L,{onClick:this.quitWizard,type:"button",loading:this.state.loading,classes:["sui-button","sui-button-ghost"],icon:"sui-icon-logout",text:lt("Quit wizard","wphb")}),n.createElement($,{classes:["sui-button","sui-button-ghost"],icon:"sui-icon-academy",target:"blank",url:a("docs"),text:lt("Documentation","wphb")})))}},{key:"render",value:function(){var e=this;return n.createElement(n.Fragment,null,this.getHeader(),n.createElement(et,{loading:this.state.loading,step:this.state.step,showConflicts:this.state.showConflicts,issues:this.state.issues,minifySteps:this.props.wphbData.minifySteps,nextStep:this.nextStep,prevStep:this.prevStep,finish:this.finish,skipConflicts:this.skipConflicts,isMember:this.state.isMember,isNetworkAdmin:this.props.wphbData.isNetworkAdmin,hasUptime:this.state.hasUptime,settings:this.state.settings,hasWoo:this.props.wphbData.hasWoo,reCheckRequirements:function(){return e.checkRequirements(!0)},updateSettings:this.updateSettings,toggleModule:this.toggleModule,disableFastCGI:this.disableFastCGI,removeAdvancedCache:this.removeAdvancedCache}))}}],r&&ot(t.prototype,r),i&&ot(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);ft.propTypes={wphbData:s().object},ht=function(){var e=document.getElementById("wrap-wphb-setup");if(e){var t=i.render(n.createElement(ft,{wphbData:window.wphb}),e);window.wphbSetupNextStep=t.nextStep}},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",ht):ht())},4184:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var s=i.apply(null,r);s&&e.push(s)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},2702:function(e,t,r){e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,o=void 0,s=void 0,a=function(e,t){v[i]=e,v[i+1]=t,2===(i+=2)&&(s?s(w):S())};function c(e){s=e}function u(e){a=e}var p="undefined"!=typeof window?window:void 0,l=p||{},h=l.MutationObserver||l.WebKitMutationObserver,f="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function m(){return function(){return process.nextTick(w)}}function _(){return void 0!==o?function(){o(w)}:b()}function g(){var e=0,t=new h(w),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}function y(){var e=new MessageChannel;return e.port1.onmessage=w,function(){return e.port2.postMessage(0)}}function b(){var e=setTimeout;return function(){return e(w,1)}}var v=new Array(1e3);function w(){for(var e=0;e<i;e+=2)(0,v[e])(v[e+1]),v[e]=void 0,v[e+1]=void 0;i=0}function k(){try{var e=Function("return this")().require("vertx");return o=e.runOnLoop||e.runOnContext,_()}catch(e){return b()}}var S=void 0;function E(e,t){var r=this,n=new this.constructor(j);void 0===n[O]&&J(n);var i=r._state;if(i){var o=arguments[i-1];a((function(){return L(i,n,o,r._result)}))}else $(r,n,e,t);return n}function x(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var r=new t(j);return F(r,e),r}S=f?m():h?g():d?y():void 0===p?k():b();var O=Math.random().toString(36).substring(2);function j(){}var C=void 0,P=1,T=2;function A(){return new TypeError("You cannot resolve a promise with itself")}function q(){return new TypeError("A promises callback cannot return that same promise.")}function N(e,t,r,n){try{e.call(t,r,n)}catch(e){return e}}function I(e,t,r){a((function(e){var n=!1,i=N(r,t,(function(r){n||(n=!0,t!==r?F(e,r):M(e,r))}),(function(t){n||(n=!0,R(e,t))}),"Settle: "+(e._label||" unknown promise"));!n&&i&&(n=!0,R(e,i))}),e)}function D(e,t){t._state===P?M(e,t._result):t._state===T?R(e,t._result):$(t,void 0,(function(t){return F(e,t)}),(function(t){return R(e,t)}))}function B(e,r,n){r.constructor===e.constructor&&n===E&&r.constructor.resolve===x?D(e,r):void 0===n?M(e,r):t(n)?I(e,r,n):M(e,r)}function F(t,r){if(t===r)R(t,A());else if(e(r)){var n=void 0;try{n=r.then}catch(e){return void R(t,e)}B(t,r,n)}else M(t,r)}function U(e){e._onerror&&e._onerror(e._result),H(e)}function M(e,t){e._state===C&&(e._result=t,e._state=P,0!==e._subscribers.length&&a(H,e))}function R(e,t){e._state===C&&(e._state=T,e._result=t,a(U,e))}function $(e,t,r,n){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+P]=r,i[o+T]=n,0===o&&e._state&&a(H,e)}function H(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,i=void 0,o=e._result,s=0;s<t.length;s+=3)n=t[s],i=t[s+r],n?L(r,n,i,o):i(o);e._subscribers.length=0}}function L(e,r,n,i){var o=t(n),s=void 0,a=void 0,c=!0;if(o){try{s=n(i)}catch(e){c=!1,a=e}if(r===s)return void R(r,q())}else s=i;r._state!==C||(o&&c?F(r,s):!1===c?R(r,a):e===P?M(r,s):e===T&&R(r,s))}function z(e,t){try{t((function(t){F(e,t)}),(function(t){R(e,t)}))}catch(t){R(e,t)}}var G=0;function W(){return G++}function J(e){e[O]=G++,e._state=void 0,e._result=void 0,e._subscribers=[]}function V(){return new Error("Array Methods must be provided an Array")}var Q=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(j),this.promise[O]||J(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?M(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&M(this.promise,this._result))):R(this.promise,V())}return e.prototype._enumerate=function(e){for(var t=0;this._state===C&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,n=r.resolve;if(n===x){var i=void 0,o=void 0,s=!1;try{i=e.then}catch(e){s=!0,o=e}if(i===E&&e._state!==C)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(r===te){var a=new r(j);s?R(a,o):B(a,e,i),this._willSettleAt(a,t)}else this._willSettleAt(new r((function(t){return t(e)})),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,r){var n=this.promise;n._state===C&&(this._remaining--,e===T?R(n,r):this._result[t]=r),0===this._remaining&&M(n,this._result)},e.prototype._willSettleAt=function(e,t){var r=this;$(e,void 0,(function(e){return r._settledAt(P,t,e)}),(function(e){return r._settledAt(T,t,e)}))},e}();function Y(e){return new Q(this,e).promise}function K(e){var t=this;return n(e)?new t((function(r,n){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(r,n)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function X(e){var t=new this(j);return R(t,e),t}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ee(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var te=function(){function e(t){this[O]=W(),this._result=this._state=void 0,this._subscribers=[],j!==t&&("function"!=typeof t&&Z(),this instanceof e?z(this,t):ee())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var r=this,n=r.constructor;return t(e)?r.then((function(t){return n.resolve(e()).then((function(){return t}))}),(function(t){return n.resolve(e()).then((function(){throw t}))})):r.then(e,e)},e}();function re(){var e=void 0;if(void 0!==r.g)e=r.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=te}return te.prototype.then=E,te.all=Y,te.race=K,te.resolve=x,te.reject=X,te._setScheduler=c,te._setAsap=u,te._asap=a,te.polyfill=re,te.Promise=te,te}()},2705:function(e,t,r){var n=r(5639).Symbol;e.exports=n},6874:function(e){e.exports=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)}},4636:function(e,t,r){var n=r(2545),i=r(5694),o=r(1469),s=r(4144),a=r(5776),c=r(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),p=!r&&i(e),l=!r&&!p&&s(e),h=!r&&!p&&!l&&c(e),f=r||p||l||h,d=f?n(e.length,String):[],m=d.length;for(var _ in e)!t&&!u.call(e,_)||f&&("length"==_||l&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,m))||d.push(_);return d}},4865:function(e,t,r){var n=r(9465),i=r(7813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var s=e[t];o.call(e,t)&&i(s,r)&&(void 0!==r||t in e)||n(e,t,r)}},9465:function(e,t,r){var n=r(8777);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},4239:function(e,t,r){var n=r(2705),i=r(9607),o=r(2333),s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},9454:function(e,t,r){var n=r(4239),i=r(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},8458:function(e,t,r){var n=r(3560),i=r(5346),o=r(3218),s=r(346),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,p=c.toString,l=u.hasOwnProperty,h=RegExp("^"+p.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:a).test(s(e))}},8749:function(e,t,r){var n=r(4239),i=r(1780),o=r(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[n(e)]}},280:function(e,t,r){var n=r(5726),i=r(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},5976:function(e,t,r){var n=r(6557),i=r(5357),o=r(61);e.exports=function(e,t){return o(i(e,t,n),e+"")}},6560:function(e,t,r){var n=r(5703),i=r(8777),o=r(6557),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=s},2545:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},8363:function(e,t,r){var n=r(4865),i=r(9465);e.exports=function(e,t,r,o){var s=!r;r||(r={});for(var a=-1,c=t.length;++a<c;){var u=t[a],p=o?o(r[u],e[u],u,r,e):void 0;void 0===p&&(p=e[u]),s?i(r,u,p):n(r,u,p)}return r}},4429:function(e,t,r){var n=r(5639)["__core-js_shared__"];e.exports=n},1463:function(e,t,r){var n=r(5976),i=r(6612);e.exports=function(e){return n((function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var c=r[n];c&&e(t,c,n,s)}return t}))}},8777:function(e,t,r){var n=r(852),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},1957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},852:function(e,t,r){var n=r(8458),i=r(7801);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},9607:function(e,t,r){var n=r(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}},7801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},5776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},6612:function(e,t,r){var n=r(7813),i=r(8612),o=r(5776),s=r(3218);e.exports=function(e,t,r){if(!s(r))return!1;var a=typeof t;return!!("number"==a?i(r)&&o(t,r.length):"string"==a&&t in r)&&n(r[t],e)}},5346:function(e,t,r){var n,i=r(4429),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},5726:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},6916:function(e,t,r){var n=r(5569)(Object.keys,Object);e.exports=n},1167:function(e,t,r){e=r.nmd(e);var n=r(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},5357:function(e,t,r){var n=r(6874),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=i(o.length-t,0),c=Array(a);++s<a;)c[s]=o[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=o[s];return u[t]=r(c),n(e,this,u)}}},5639:function(e,t,r){var n=r(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},61:function(e,t,r){var n=r(6560),i=r(1275)(n);e.exports=i},1275:function(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8583:function(e,t,r){var n=r(4865),i=r(8363),o=r(1463),s=r(8612),a=r(5726),c=r(3674),u=Object.prototype.hasOwnProperty,p=o((function(e,t){if(a(t)||s(t))i(t,c(t),e);else for(var r in t)u.call(t,r)&&n(e,r,t[r])}));e.exports=p},5703:function(e){e.exports=function(e){return function(){return e}}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},6557:function(e){e.exports=function(e){return e}},5694:function(e,t,r){var n=r(9454),i=r(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},1469:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,r){var n=r(3560),i=r(1780);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},4144:function(e,t,r){e=r.nmd(e);var n=r(5639),i=r(5062),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;e.exports=c},3560:function(e,t,r){var n=r(4239),i=r(3218);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},6719:function(e,t,r){var n=r(8749),i=r(7518),o=r(1167),s=o&&o.isTypedArray,a=s?i(s):n;e.exports=a},3674:function(e,t,r){var n=r(4636),i=r(280),o=r(8612);e.exports=function(e){return o(e)?n(e):i(e)}},5062:function(e){e.exports=function(){return!1}},8891:function(e){"use strict";var t,r={DEBUG:!1,LIB_VERSION:"2.47.0"};if("undefined"==typeof window){var n={hostname:""};t={navigator:{userAgent:""},document:{location:n,referrer:""},screen:{width:0,height:0},location:n}}else t=window;var i,o,s,a,c,u,p,l,h,f,d,m=Array.prototype,_=Function.prototype,g=Object.prototype,y=m.slice,b=g.toString,v=g.hasOwnProperty,w=t.console,k=t.navigator,S=t.document,E=t.opera,x=t.screen,O=k.userAgent,j=_.bind,C=m.forEach,P=m.indexOf,T=m.map,A=Array.isArray,q={},N={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},I={log:function(){if(r.DEBUG&&!N.isUndefined(w)&&w)try{w.log.apply(w,arguments)}catch(e){N.each(arguments,(function(e){w.log(e)}))}},warn:function(){if(r.DEBUG&&!N.isUndefined(w)&&w){var e=["Mixpanel warning:"].concat(N.toArray(arguments));try{w.warn.apply(w,e)}catch(t){N.each(e,(function(e){w.warn(e)}))}}},error:function(){if(r.DEBUG&&!N.isUndefined(w)&&w){var e=["Mixpanel error:"].concat(N.toArray(arguments));try{w.error.apply(w,e)}catch(t){N.each(e,(function(e){w.error(e)}))}}},critical:function(){if(!N.isUndefined(w)&&w){var e=["Mixpanel error:"].concat(N.toArray(arguments));try{w.error.apply(w,e)}catch(t){N.each(e,(function(e){w.error(e)}))}}}},D=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(I,arguments)}},B=function(e){return{log:D(I.log,e),error:D(I.error,e),critical:D(I.critical,e)}};N.bind=function(e,t){var r,n;if(j&&e.bind===j)return j.apply(e,y.call(arguments,1));if(!N.isFunction(e))throw new TypeError;return r=y.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(y.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(y.call(arguments)));return Object(s)===s?s:o},n},N.each=function(e,t,r){if(null!=e)if(C&&e.forEach===C)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===q)return}else for(var o in e)if(v.call(e,o)&&t.call(r,e[o],o,e)===q)return},N.extend=function(e){return N.each(y.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},N.isArray=A||function(e){return"[object Array]"===b.call(e)},N.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},N.isArguments=function(e){return!(!e||!v.call(e,"callee"))},N.toArray=function(e){return e?e.toArray?e.toArray():N.isArray(e)||N.isArguments(e)?y.call(e):N.values(e):[]},N.map=function(e,t,r){if(T&&e.map===T)return e.map(t,r);var n=[];return N.each(e,(function(e){n.push(t.call(r,e))})),n},N.keys=function(e){var t=[];return null===e||N.each(e,(function(e,r){t[t.length]=r})),t},N.values=function(e){var t=[];return null===e||N.each(e,(function(e){t[t.length]=e})),t},N.include=function(e,t){var r=!1;return null===e?r:P&&e.indexOf===P?-1!=e.indexOf(t):(N.each(e,(function(e){if(r||(r=e===t))return q})),r)},N.includes=function(e,t){return-1!==e.indexOf(t)},N.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},N.isObject=function(e){return e===Object(e)&&!N.isArray(e)},N.isEmptyObject=function(e){if(N.isObject(e)){for(var t in e)if(v.call(e,t))return!1;return!0}return!1},N.isUndefined=function(e){return void 0===e},N.isString=function(e){return"[object String]"==b.call(e)},N.isDate=function(e){return"[object Date]"==b.call(e)},N.isNumber=function(e){return"[object Number]"==b.call(e)},N.isElement=function(e){return!(!e||1!==e.nodeType)},N.encodeDates=function(e){return N.each(e,(function(t,r){N.isDate(t)?e[r]=N.formatDate(t):N.isObject(t)&&(e[r]=N.encodeDates(t))})),e},N.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},N.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},N.strip_empty_properties=function(e){var t={};return N.each(e,(function(e,r){N.isString(e)&&e.length>0&&(t[r]=e)})),t},N.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):N.isArray(e)?(r=[],N.each(e,(function(e){r.push(N.truncate(e,t))}))):N.isObject(e)?(r={},N.each(e,(function(e,n){r[n]=N.truncate(e,t)}))):r=e,r},N.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,p=[],l=n[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),typeof l){case"string":return t(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(i+=" ",p=[],"[object Array]"===b.apply(l)){for(c=l.length,o=0;o<c;o+=1)p[o]=r(o,l)||"null";return a=0===p.length?"[]":i?"[\n"+i+p.join(",\n"+i)+"\n"+u+"]":"["+p.join(",")+"]",i=u,a}for(s in l)v.call(l,s)&&(a=r(s,l))&&p.push(t(s)+(i?": ":":")+a);return a=0===p.length?"{}":i?"{"+p.join(",")+u+"}":"{"+p.join(",")+"}",i=u,a}};return r("",{"":e})},N.JSONDecode=(c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},u=function(e){var t=new SyntaxError(e);throw t.at=i,t.text=s,t},p=function(e){return e&&e!==o&&u("Expected '"+e+"' instead of '"+o+"'"),o=s.charAt(i),i+=1,o},l=function(){var e,t="";for("-"===o&&(t="-",p("-"));o>="0"&&o<="9";)t+=o,p();if("."===o)for(t+=".";p()&&o>="0"&&o<="9";)t+=o;if("e"===o||"E"===o)for(t+=o,p(),"-"!==o&&"+"!==o||(t+=o,p());o>="0"&&o<="9";)t+=o,p();if(e=+t,isFinite(e))return e;u("Bad number")},h=function(){var e,t,r,n="";if('"'===o)for(;p();){if('"'===o)return p(),n;if("\\"===o)if(p(),"u"===o){for(r=0,t=0;t<4&&(e=parseInt(p(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof c[o])break;n+=c[o]}else n+=o}u("Bad string")},f=function(){for(;o&&o<=" ";)p()},a=function(){switch(f(),o){case"{":return function(){var e,t={};if("{"===o){if(p("{"),f(),"}"===o)return p("}"),t;for(;o;){if(e=h(),f(),p(":"),Object.hasOwnProperty.call(t,e)&&u('Duplicate key "'+e+'"'),t[e]=a(),f(),"}"===o)return p("}"),t;p(","),f()}}u("Bad object")}();case"[":return function(){var e=[];if("["===o){if(p("["),f(),"]"===o)return p("]"),e;for(;o;){if(e.push(a()),f(),"]"===o)return p("]"),e;p(","),f()}}u("Bad array")}();case'"':return h();case"-":return l();default:return o>="0"&&o<="9"?l():function(){switch(o){case"t":return p("t"),p("r"),p("u"),p("e"),!0;case"f":return p("f"),p("a"),p("l"),p("s"),p("e"),!1;case"n":return p("n"),p("u"),p("l"),p("l"),null}u('Unexpected "'+o+'"')}()}},function(e){var t;return s=e,i=0,o=" ",t=a(),f(),o&&u("Syntax error"),t}),N.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",p=[];if(!e)return e;e=N.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,p[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(u=p.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},N.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},N.UUID=(d=function(){var e,r=1*new Date;if(t.performance&&t.performance.now)e=t.performance.now();else for(e=0;r==1*new Date;)e++;return r.toString(16)+Math.floor(e).toString(16)},function(){var e=(x.height*x.width).toString(16);return d()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=O,n=[],i=0;function o(e,t){var r,i=0;for(r=0;r<t.length;r++)i|=n[r]<<8*r;return e^i}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(i=o(i,n),n=[]);return n.length>0&&(i=o(i,n)),i.toString(16)}()+"-"+e+"-"+d()});var F=["ahrefsbot","baiduspider","bingbot","bingpreview","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];N.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<F.length;t++)if(-1!==e.indexOf(F[t]))return!0;return!1},N.HTTPBuildQuery=function(e,t){var r,n,i=[];return N.isUndefined(t)&&(t="&"),N.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r})),i.join(t)},N.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){I.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},N.cookie={get:function(e){for(var t=e+"=",r=S.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=N.JSONDecode(N.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var p=W(S.location.hostname);a=p?"; domain=."+p:""}if(r){var l=new Date;l.setTime(l.getTime()+1e3*r),c="; expires="+l.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),S.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var p=W(S.location.hostname);a=p?"; domain=."+p:""}if(r){var l=new Date;l.setTime(l.getTime()+24*r*60*60*1e3),c="; expires="+l.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var h=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return S.cookie=h,h},remove:function(e,t,r){N.cookie.set(e,"",-1,t,!1,!1,r)}};var U=null,M=function(e,t){if(null!==U&&!t)return U;var r=!0;try{e=e||window.localStorage;var n="__mplss_"+L(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(r=!1),e.removeItem(n)}catch(e){r=!1}return U=r,r};N.localStorage={is_supported:function(e){var t=M(null,e);return t||I.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){I.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){N.localStorage.error(e)}return null},parse:function(e){try{return N.JSONDecode(N.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){N.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){N.localStorage.error(e)}}},N.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var i=function(i){if(i=i||e(window.event)){var o,s,a=!0;return N.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}};return i}(t,n,a)}else I.error("No valid element provided to register_event")}}();var R=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');N.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!S.getElementsByTagName)return[];var n,i,o,s,a,c,u,p,l,h,f=t.split(" "),d=[S];for(c=0;c<f.length;c++)if((n=f[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var m=i[1],_=S.getElementById(m);if(!_||o&&_.nodeName.toLowerCase()!=o)return[];d=[_]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var g=i[1];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(l="*"==o?e(d[u]):d[u].getElementsByTagName(o),p=0;p<l.length;p++)s[a++]=l[p];for(d=[],h=0,u=0;u<s.length;u++)s[u].className&&N.isString(s[u].className)&&r(s[u],g)&&(d[h++]=s[u])}else{var y=n.match(R);if(y){o=y[1];var b,v=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(l="*"==o?e(d[u]):d[u].getElementsByTagName(o),p=0;p<l.length;p++)s[a++]=l[p];switch(d=[],h=0,w){case"=":b=function(e){return e.getAttribute(v)==k};break;case"~":b=function(e){return e.getAttribute(v).match(new RegExp("\\b"+k+"\\b"))};break;case"|":b=function(e){return e.getAttribute(v).match(new RegExp("^"+k+"-?"))};break;case"^":b=function(e){return 0===e.getAttribute(v).indexOf(k)};break;case"$":b=function(e){return e.getAttribute(v).lastIndexOf(k)==e.getAttribute(v).length-k.length};break;case"*":b=function(e){return e.getAttribute(v).indexOf(k)>-1};break;default:b=function(e){return e.getAttribute(v)}}for(d=[],h=0,u=0;u<s.length;u++)b(s[u])&&(d[h++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<d.length;u++)for(l=d[u].getElementsByTagName(o),p=0;p<l.length;p++)s[a++]=l[p];d=s}}return d}return function(e){return N.isElement(e)?[e]:N.isObject(e)&&!N.isUndefined(e.length)?e:n.call(this,e)}}();var $=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],H=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];N.info={campaignParams:function(e){var t="",r={};return N.each($,(function(n){(t=N.getQueryParam(S.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return N.each(H,(function(r){(e=N.getQueryParam(S.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return N.extend(N.info.campaignParams(),N.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=N.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=N.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||N.includes(e," OPR/")?N.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":N.includes(e,"IEMobile")||N.includes(e,"WPDesktop")?"Internet Explorer Mobile":N.includes(e,"SamsungBrowser/")?"Samsung Internet":N.includes(e,"Edge")||N.includes(e,"Edg/")?"Microsoft Edge":N.includes(e,"FBIOS")?"Facebook Mobile":N.includes(e,"Chrome")?"Chrome":N.includes(e,"CriOS")?"Chrome iOS":N.includes(e,"UCWEB")||N.includes(e,"UCBrowser")?"UC Browser":N.includes(e,"FxiOS")?"Firefox iOS":N.includes(t,"Apple")?N.includes(e,"Mobile")?"Mobile Safari":"Safari":N.includes(e,"Android")?"Android Mobile":N.includes(e,"Konqueror")?"Konqueror":N.includes(e,"Firefox")?"Firefox":N.includes(e,"MSIE")||N.includes(e,"Trident/")?"Internet Explorer":N.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[N.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=O;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},properties:function(){return N.extend(N.strip_empty_properties({$os:N.info.os(),$browser:N.info.browser(O,k.vendor,E),$referrer:S.referrer,$referring_domain:N.info.referringDomain(S.referrer),$device:N.info.device(O)}),{$current_url:t.location.href,$browser_version:N.info.browserVersion(O,k.vendor,E),$screen_height:x.height,$screen_width:x.width,mp_lib:"web",$lib_version:r.LIB_VERSION,$insert_id:L(),time:N.timestamp()/1e3})},people_properties:function(){return N.extend(N.strip_empty_properties({$os:N.info.os(),$browser:N.info.browser(O,k.vendor,E)}),{$browser_version:N.info.browserVersion(O,k.vendor,E)})},mpPageViewProperties:function(){return N.strip_empty_properties({current_page_title:S.title,current_domain:t.location.hostname,current_url_path:t.location.pathname,current_url_protocol:t.location.protocol,current_url_search:t.location.search})}};var L=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},z=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,G=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,W=function(e){var t=G,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=z);var i=e.match(t);return i?i[0]:""},J=null,V=null;"undefined"!=typeof JSON&&(J=JSON.stringify,V=JSON.parse),J=J||N.JSONEncode,V=V||N.JSONDecode,N.toArray=N.toArray,N.isObject=N.isObject,N.JSONEncode=N.JSONEncode,N.JSONDecode=N.JSONDecode,N.isBlockedUA=N.isBlockedUA,N.isEmptyObject=N.isEmptyObject,N.info=N.info,N.info.device=N.info.device,N.info.browser=N.info.browser,N.info.browserVersion=N.info.browserVersion,N.info.properties=N.info.properties;var Q=function(){};Q.prototype.create_properties=function(){},Q.prototype.event_handler=function(){},Q.prototype.after_track_handler=function(){},Q.prototype.init=function(e){return this.mp=e,this},Q.prototype.track=function(e,t,r,n){var i=this,o=N.dom_query(e);if(0!==o.length)return N.each(o,(function(e){N.register_event(e,this.override_event,(function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))}))}),this),!0;I.error("The DOM query ("+e+") returned 0 elements")},Q.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},Q.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):N.extend({},e)};var Y=function(){this.override_event="click"};N.inherit(Y,Q),Y.prototype.create_properties=function(e,t){var r=Y.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Y.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},Y.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var K=function(){this.override_event="submit"};N.inherit(K,Q),K.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},K.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var X=B("lock"),Z=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};Z.prototype.withLock=function(e,t,r){r||"function"==typeof t||(r=t,t=null);var n=r||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),o=this.storageKey,s=this.pollIntervalMS,a=this.timeoutMS,c=this.storage,u=o+":X",p=o+":Y",l=o+":Z",h=function(e){t&&t(e)},f=function(e){if((new Date).getTime()-i>a)return X.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+n+"]"),c.removeItem(l),c.removeItem(p),void _();setTimeout((function(){try{e()}catch(e){h(e)}}),s*(Math.random()+.1))},d=function(e,t){e()?t():f((function(){d(e,t)}))},m=function(){var e=c.getItem(p);if(e&&e!==n)return!1;if(c.setItem(p,n),c.getItem(p)===n)return!0;if(!M(c,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},_=function(){c.setItem(u,n),d(m,(function(){c.getItem(u)!==n?f((function(){c.getItem(p)===n?d((function(){return!c.getItem(l)}),g):_()})):g()}))},g=function(){c.setItem(l,"1");try{e()}finally{c.removeItem(l),c.getItem(p)===n&&c.removeItem(p),c.getItem(u)===n&&c.removeItem(u)}};try{if(!M(c,!0))throw new Error("localStorage support check failed");_()}catch(e){h(e)}};var ee=B("batch"),te=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||N.bind(ee.error,ee),this.lock=new Z(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};te.prototype.enqueue=function(e,t,r){var n={id:L(),flushAfter:(new Date).getTime()+2*t,payload:e};this.lock.withLock(N.bind((function(){var t;try{var i=this.readFromStorage();i.push(n),(t=this.saveToStorage(i))&&this.memQueue.push(n)}catch(r){this.reportError("Error enqueueing item",e),t=!1}r&&r(t)}),this),N.bind((function(e){this.reportError("Error acquiring storage lock",e),r&&r(!1)}),this),this.pid)},te.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var r=this.readFromStorage();if(r.length){var n={};N.each(t,(function(e){n[e.id]=!0}));for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};var re=function(e,t){var r=[];return N.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};te.prototype.removeItemsByID=function(e,t){var r={};N.each(e,(function(e){r[e]=!0})),this.memQueue=re(this.memQueue,r);var n=N.bind((function(){var t;try{var n=this.readFromStorage();if(n=re(n,r),t=this.saveToStorage(n)){n=this.readFromStorage();for(var i=0;i<n.length;i++){var o=n[i];if(o.id&&r[o.id])return this.reportError("Item not removed from storage"),!1}}}catch(r){this.reportError("Error removing items",e),t=!1}return t}),this);this.lock.withLock((function(){var e=n();t&&t(e)}),N.bind((function(e){var r=!1;if(this.reportError("Error acquiring storage lock",e),!M(this.storage,!0)&&!(r=n()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(r)}),this),this.pid)};var ne=function(e,t){var r=[];return N.each(e,(function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)})),r};te.prototype.updatePayloads=function(e,t){this.memQueue=ne(this.memQueue,e),this.lock.withLock(N.bind((function(){var r;try{var n=this.readFromStorage();n=ne(n,e),r=this.saveToStorage(n)}catch(t){this.reportError("Error updating items",e),r=!1}t&&t(r)}),this),N.bind((function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)}),this),this.pid)},te.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=V(e),N.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},te.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,J(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},te.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var ie=B("batch"),oe=function(e,t){this.errorReporter=t.errorReporter,this.queue=new te(e,{errorReporter:N.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={}};oe.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},oe.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},oe.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},oe.prototype.clear=function(){this.queue.clear()},oe.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},oe.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},oe.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(N.bind(this.flush,this),this.flushInterval))},oe.prototype.flush=function(e){try{if(this.requestInProgress)return void ie.log("Flush: Request already in progress");e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=(new Date).getTime(),i=this.batchSize,o=this.queue.fillBatch(i),s=[],a={};if(N.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=N.extend({},t.properties,{mp_sent_by_lib_version:r.LIB_VERSION}));var n=!0,i=e.id;i?(this.itemIdsSentSuccessfully[i]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[i]}),n=!1):this.reportError("[dupe] found item with no ID",{item:e}),n&&s.push(t)}a[e.id]=t}),this),s.length<1)return void this.resetFlush();this.requestInProgress=!0;var c=N.bind((function(r){this.requestInProgress=!1;try{var s=!1;if(e.unloading)this.queue.updatePayloads(a);else if(N.isObject(r)&&"timeout"===r.error&&(new Date).getTime()-n>=t)this.reportError("Network timeout; retrying"),this.flush();else if(N.isObject(r)&&r.xhr_req&&(r.xhr_req.status>=500||429===r.xhr_req.status||"timeout"===r.error)){var c=2*this.flushInterval,u=r.xhr_req.responseHeaders;if(u){var p=u["Retry-After"];p&&(c=1e3*parseInt(p,10)||c)}c=Math.min(6e5,c),this.reportError("Error; retry in "+c+" ms"),this.scheduleFlush(c)}else if(N.isObject(r)&&r.xhr_req&&413===r.xhr_req.status)if(o.length>1){var l=Math.max(1,Math.floor(i/2));this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),s=!0;else s=!0;s&&(this.queue.removeItemsByID(N.map(o,(function(e){return e.id})),N.bind((function(e){e?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())}),this)),N.each(o,N.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}}),this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(u.transport="sendBeacon"),ie.log("MIXPANEL REQUEST:",s),this.sendRequest(s,u,c)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},oe.prototype.reportError=function(e,t){if(ie.error.apply(ie.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){ie.error(t)}};var se="__mp_opt_in_out_";function ae(e,t){ye(!0,e,t)}function ce(e,t){ye(!1,e,t)}function ue(e,t){return"1"===ge(e,t)}function pe(e,r){if(function(e){if(e&&e.ignoreDnt)return!1;var r=e&&e.window||t,n=r.navigator||{},i=!1;return N.each([n.doNotTrack,n.msDoNotTrack,r.doNotTrack],(function(e){N.includes([!0,1,"1","yes"],e)&&(i=!0)})),i}(r))return I.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n="0"===ge(e,r);return n&&I.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function le(e){return be(e,(function(e){return this.get_config(e)}))}function he(e){return be(e,(function(e){return this._get_config(e)}))}function fe(e){return be(e,(function(e){return this._get_config(e)}))}function de(e,t){me(t=t||{}).remove(_e(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function me(e){return"localStorage"===(e=e||{}).persistenceType?N.localStorage:N.cookie}function _e(e,t){return((t=t||{}).persistencePrefix||se)+e}function ge(e,t){return me(t).get(_e(e,t))}function ye(e,t,r){N.isString(t)&&t.length?(me(r=r||{}).set(_e(t,r),e?1:0,N.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):I.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function be(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=pe(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){I.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var ve="$set",we="$set_once",ke="$unset",Se="$add",Ee="$append",xe="$union",Oe="$remove",je={set_action:function(e,t){var r={},n={};return N.isObject(e)?N.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[ve]=n,r},unset_action:function(e){var t={},r=[];return N.isArray(e)||(e=[e]),N.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[ke]=r,t},set_once_action:function(e,t){var r={},n={};return N.isObject(e)?N.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[we]=n,r},union_action:function(e,t){var r={},n={};return N.isObject(e)?N.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=N.isArray(e)?e:[e])}),this):n[e]=N.isArray(t)?t:[t],r[xe]=n,r},append_action:function(e,t){var r={},n={};return N.isObject(e)?N.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Ee]=n,r},remove_action:function(e,t){var r={},n={};return N.isObject(e)?N.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Oe]=n,r},delete_action:function(){var e={$delete:""};return e}},Ce=function(){};N.extend(Ce.prototype,je),Ce.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Ce.prototype.set=fe((function(e,t,r){var n=this.set_action(e,t);return N.isObject(e)&&(r=t),this._send_request(n,r)})),Ce.prototype.set_once=fe((function(e,t,r){var n=this.set_once_action(e,t);return N.isObject(e)&&(r=t),this._send_request(n,r)})),Ce.prototype.unset=fe((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Ce.prototype.union=fe((function(e,t,r){N.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Ce.prototype.delete=fe((function(e){var t=this.delete_action();return this._send_request(t,e)})),Ce.prototype.remove=fe((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),Ce.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=N.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},t)},Ce.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Ce.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Ce.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Ce.prototype.remove=Ce.prototype.remove,Ce.prototype.set=Ce.prototype.set,Ce.prototype.set_once=Ce.prototype.set_once,Ce.prototype.union=Ce.prototype.union,Ce.prototype.unset=Ce.prototype.unset,Ce.prototype.toString=Ce.prototype.toString;var Pe=function(){};N.extend(Pe.prototype,je),Pe.prototype._init=function(e){this._mixpanel=e},Pe.prototype.set=he((function(e,t,r){var n=this.set_action(e,t);return N.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[ve]=N.extend({},N.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),n[ve]),this._send_request(n,r)})),Pe.prototype.set_once=he((function(e,t,r){var n=this.set_once_action(e,t);return N.isObject(e)&&(r=t),this._send_request(n,r)})),Pe.prototype.unset=he((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Pe.prototype.increment=he((function(e,t,r){var n={},i={};return N.isObject(e)?(N.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void I.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}}),this),r=t):(N.isUndefined(t)&&(t=1),i[e]=t),n[Se]=i,this._send_request(n,r)})),Pe.prototype.append=he((function(e,t,r){N.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),Pe.prototype.remove=he((function(e,t,r){N.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),Pe.prototype.union=he((function(e,t,r){N.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Pe.prototype.track_charge=he((function(e,t,r){if(N.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",N.extend({$amount:e},t),r);I.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),Pe.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Pe.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}I.error("mixpanel.people.delete_user() requires you to call identify() first")},Pe.prototype.toString=function(){return this._mixpanel.toString()+".people"},Pe.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=N.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),N.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),N.truncate(o,255))},Pe.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Pe.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Pe.prototype._enqueue=function(e){ve in e?this._mixpanel.persistence._add_to_people_queue(ve,e):we in e?this._mixpanel.persistence._add_to_people_queue(we,e):ke in e?this._mixpanel.persistence._add_to_people_queue(ke,e):Se in e?this._mixpanel.persistence._add_to_people_queue(Se,e):Ee in e?this._mixpanel.persistence._add_to_people_queue(Ee,e):Oe in e?this._mixpanel.persistence._add_to_people_queue(Oe,e):xe in e?this._mixpanel.persistence._add_to_people_queue(xe,e):I.error("Invalid call to _enqueue():",e)},Pe.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=N.extend({},this._mixpanel.persistence._get_queue(e)),s=o;N.isUndefined(o)||!N.isObject(o)||N.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),n&&(s=n(o)),t.call(i,s,(function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),N.isUndefined(r)||r(t,n)})))},Pe.prototype._flush=function(e,t,r,n,i,o,s){var a=this,c=this._mixpanel.persistence._get_queue(Ee),u=this._mixpanel.persistence._get_queue(Oe);if(this._flush_one_queue(ve,this.set,e),this._flush_one_queue(we,this.set_once,n),this._flush_one_queue(ke,this.unset,o,(function(e){return N.keys(e)})),this._flush_one_queue(Se,this.increment,t),this._flush_one_queue(xe,this.union,i),!N.isUndefined(c)&&N.isArray(c)&&c.length){for(var p,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Ee,p),N.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)p=c.pop(),N.isEmptyObject(p)||a.append(p,l);a._mixpanel.persistence.save()}if(!N.isUndefined(u)&&N.isArray(u)&&u.length){for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Oe,f),N.isUndefined(s)||s(e,t)},m=u.length-1;m>=0;m--)f=u.pop(),N.isEmptyObject(f)||a.remove(f,d);a._mixpanel.persistence.save()}},Pe.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Pe.prototype.set=Pe.prototype.set,Pe.prototype.set_once=Pe.prototype.set_once,Pe.prototype.unset=Pe.prototype.unset,Pe.prototype.increment=Pe.prototype.increment,Pe.prototype.append=Pe.prototype.append,Pe.prototype.remove=Pe.prototype.remove,Pe.prototype.union=Pe.prototype.union,Pe.prototype.track_charge=Pe.prototype.track_charge,Pe.prototype.clear_charges=Pe.prototype.clear_charges,Pe.prototype.delete_user=Pe.prototype.delete_user,Pe.prototype.toString=Pe.prototype.toString;var Te,Ae,qe="__mps",Ne="__mpso",Ie="__mpus",De="__mpa",Be="__mpap",Fe="__mpr",Ue="__mpu",Me="$people_distinct_id",Re="__alias",$e="__timers",He=[qe,Ne,Ie,De,Be,Fe,Ue,Me,Re,$e],Le=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(I.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&N.localStorage.is_supported()?this.storage=N.localStorage:this.storage=N.cookie,this.load(),this.update_config(e),this.upgrade(e),this.save()};Le.prototype.properties=function(){var e={};return N.each(this.props,(function(t,r){N.include(He,r)||(e[r]=t)})),e},Le.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=N.extend({},e))}},Le.prototype.upgrade=function(e){var t,r,n=e.upgrade;n&&(t="mp_super_properties","string"==typeof n&&(t=n),r=this.storage.parse(t),this.storage.remove(t),this.storage.remove(t,!0),r&&(this.props=N.extend(this.props,r.all,r.events))),e.cookie_name||"mixpanel"===e.name||(t="mp_"+e.token+"_"+e.name,(r=this.storage.parse(t))&&(this.storage.remove(t),this.storage.remove(t,!0),this.register_once(r))),this.storage===N.localStorage&&(r=N.cookie.parse(this.name),N.cookie.remove(this.name),N.cookie.remove(this.name,!0),r&&this.register_once(r))},Le.prototype.save=function(){this.disabled||this.storage.set(this.name,N.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Le.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Le.prototype.clear=function(){this.remove(),this.props={}},Le.prototype.register_once=function(e,t,r){return!!N.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,N.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},Le.prototype.register=function(e,t){return!!N.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,N.extend(this.props,e),this.save(),!0)},Le.prototype.unregister=function(e){e in this.props&&(delete this.props[e],this.save())},Le.prototype.update_search_keyword=function(e){this.register(N.info.searchInfo(e))},Le.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:N.info.referringDomain(e)||"$direct"},"")},Le.prototype.get_referrer_info=function(){return N.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Le.prototype.safe_merge=function(e){return N.each(this.props,(function(t,r){r in e||(e[r]=t)})),e},Le.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Le.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Le.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Le.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Le.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Le.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Le.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Le.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(ve),o=this._get_or_create_queue(we),s=this._get_or_create_queue(ke),a=this._get_or_create_queue(Se),c=this._get_or_create_queue(xe),u=this._get_or_create_queue(Oe,[]),p=this._get_or_create_queue(Ee,[]);r===qe?(N.extend(i,n),this._pop_from_people_queue(Se,n),this._pop_from_people_queue(xe,n),this._pop_from_people_queue(ke,n)):r===Ne?(N.each(n,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue(ke,n)):r===Ie?N.each(n,(function(e){N.each([i,o,a,c],(function(t){e in t&&delete t[e]})),N.each(p,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===De?(N.each(n,(function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)}),this),this._pop_from_people_queue(ke,n)):r===Ue?(N.each(n,(function(e,t){N.isArray(e)&&(t in c||(c[t]=[]),c[t]=c[t].concat(e))})),this._pop_from_people_queue(ke,n)):r===Fe?(u.push(n),this._pop_from_people_queue(Ee,n)):r===Be&&(p.push(n),this._pop_from_people_queue(ke,n)),I.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),I.log(t),this.save()},Le.prototype._pop_from_people_queue=function(e,t){var r=this._get_queue(e);N.isUndefined(r)||(N.each(t,(function(t,n){e===Ee||e===Oe?N.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this),this.save())},Le.prototype._get_queue_key=function(e){return e===ve?qe:e===we?Ne:e===ke?Ie:e===Se?De:e===Ee?Be:e===Oe?Fe:e===xe?Ue:void I.error("Invalid queue:",e)},Le.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]},Le.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=N.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Le.prototype.set_event_timer=function(e,t){var r=this.props[$e]||{};r[e]=t,this.props[$e]=r,this.save()},Le.prototype.remove_event_timer=function(e){var t=(this.props[$e]||{})[e];return N.isUndefined(t)||(delete this.props[$e][e],this.save()),t};var ze=function(e){return e},Ge=function(){},We="mixpanel",Je="base64",Ve="$device:",Qe=t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ye=!Qe&&-1===O.indexOf("MSIE")&&-1===O.indexOf("Mozilla"),Ke=null;k.sendBeacon&&(Ke=function(){return k.sendBeacon.apply(k,arguments)});var Xe={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:Je,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ge,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ge,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{}},Ze=!1,et=function(){},tt=function(e,t,n){var i,o=n===We?Ae:Ae[n];if(o&&0===Te)i=o;else{if(o&&!N.isArray(o))return void I.error("You have already initialized "+n);i=new et}if(i._cached_groups={},i._init(e,t,n),i.people=new Pe,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var s=N.info.campaignParams(null),a={},c=!1;N.each(s,(function(e,t){a["initial_"+t]=e,e&&(c=!0)})),c&&i.people.set_once(a)}return r.DEBUG=r.DEBUG||i.get_config("debug"),!N.isUndefined(o)&&N.isArray(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),i};et.prototype.init=function(e,t,r){if(N.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==We){var n=tt(e,t,r);return Ae[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},et.prototype._init=function(e,r,n){r=r||{},this.__loaded=!0,this.config={};var i={};"api_payload_format"in r||(r.api_host||Xe.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json");if(this.set_config(N.extend({},Xe,i,r,{name:n,token:e,callback_fn:(n===We?n:We+"."+n)+"._jsc"})),this._jsc=Ge,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(N.localStorage.is_supported(!0)&&Qe){if(this.init_batchers(),Ke&&t.addEventListener){var o=N.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);t.addEventListener("pagehide",(function(e){e.persisted&&o()})),t.addEventListener("visibilitychange",(function(){"hidden"===S.visibilityState&&o()}))}}else this._batch_requests=!1,I.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");this.persistence=this.cookie=new Le(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=N.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ve+s,$device_id:s},""),this.get_config("track_pageview")&&this.track_pageview()},et.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()},et.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(S.referrer),this.get_config("store_google")&&this.register(N.info.campaignParams(),{persistent:!1}),this.get_config("save_referrer")&&this.persistence.update_referrer_info(S.referrer)},et.prototype._dom_loaded=function(){N.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||N.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},et.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Ze)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},et.prototype._prepare_callback=function(e,t){if(N.isUndefined(e))return null;if(Qe){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},et.prototype._send_request=function(e,t,r,n){var i=!0;if(Ye)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!N.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=N.extend(o,r||{}),Qe||(r.method="GET");var a="POST"===r.method,c=Ke&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),Qe||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+N.HTTPBuildQuery(t);var p=this;if("img"in t){var l=S.createElement("img");l.src=e,S.body.appendChild(l)}else if(c){try{i=Ke(e,s)}catch(e){p.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){p.report_error(e)}}else if(Qe)try{var h=new XMLHttpRequest;h.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),N.each(f,(function(e,t){h.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==h.timeout){h.timeout=r.timeout_ms;var d=(new Date).getTime()}h.withCredentials=!0,h.onreadystatechange=function(){var e;if(4===h.readyState)if(200===h.status){if(n)if(u){var t;try{t=N.JSONDecode(h.responseText)}catch(e){if(p.report_error(e),!r.ignore_json_errors)return;t=h.responseText}n(t)}else n(Number(h.responseText))}else e=h.timeout&&!h.status&&(new Date).getTime()-d>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,p.report_error(e),n&&n(u?{status:0,error:e,xhr_req:h}:0)},h.send(s)}catch(e){p.report_error(e),i=!1}else{var m=S.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var _=S.getElementsByTagName("script")[0];_.parentNode.insertBefore(m,_)}return i},et.prototype._execute_array=function(e){var t,r=[],n=[],i=[];N.each(e,(function(e){e&&(t=e[0],N.isArray(t)?i.push(e):"function"==typeof e?e.call(this):N.isArray(e)&&"alias"===t?r.push(e):N.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))}),this);var o=function(e,t){N.each(e,(function(e){if(N.isArray(e[0])){var r=t;N.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};o(r,this),o(n,this),o(i,this)},et.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},et.prototype.init_batchers=function(){var e=this.get_config("token");if(!this.are_batchers_initialized()){var t=N.bind((function(t){return new oe("__mpq_"+e+t.queue_suffix,{libConfig:this.config,sendRequestFunc:N.bind((function(e,r,n){this._send_request(this.get_config("api_host")+t.endpoint,this._encode_data_for_request(e),r,this._prepare_callback(n,e))}),this),beforeSendHook:N.bind((function(e){return this._run_hook("before_send_"+t.type,e)}),this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:N.bind(this.stop_batch_senders,this)})}),this);this.request_batchers={events:t({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:t({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:t({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()},et.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,N.each(this.request_batchers,(function(e){e.start()})))},et.prototype.stop_batch_senders=function(){this._batch_requests=!1,N.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},et.prototype.push=function(e){this._execute_array([e])},et.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},et.prototype._encode_data_for_request=function(e){var t=N.JSONEncode(e);return this.get_config("api_payload_format")===Je&&(t=N.base64Encode(t)),{data:t}},et.prototype._track_or_batch=function(e,t){var r=N.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Ge;var a=!0,c=N.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(I.log("MIXPANEL REQUEST:"),I.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!o?i.enqueue(r,(function(e){e?t(1,r):c()})):a=c(),a&&r},et.prototype.track=le((function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=Ge),N.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=t||{}).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!N.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?N.info.marketingParams():{};t=N.extend({},N.info.properties(),c,this.persistence.properties(),this.unpersisted_superprops,t);var u=this.get_config("property_blacklist");N.isArray(u)?N.each(u,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+u);var p={event:e,properties:t};return this._track_or_batch({type:"events",data:p,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}n(0)}})),et.prototype.set_group=le((function(e,t,r){N.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),et.prototype.add_group=le((function(e,t,r){var n=this.get_property(e);if(void 0===n){var i={};i[e]=[t],this.register(i)}else-1===n.indexOf(t)&&(n.push(t),this.register(i));return this.people.union(e,t,r)})),et.prototype.remove_group=le((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),et.prototype.track_with_groups=le((function(e,t,r,n){var i=N.extend({},t||{});return N.each(r,(function(e,t){null!=e&&(i[t]=e)})),this.track(e,i,n)})),et.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},et.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},et.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new Ce)._init(this,e,t),this._cached_groups[r]=n),n},et.prototype.track_pageview=le((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=N.extend(N.info.mpPageViewProperties(),N.info.campaignParams(),N.info.clickParams()),i=N.extend({},n,e);return this.track(r,i)})),et.prototype.track_links=function(){return this._track_dom.call(this,Y,arguments)},et.prototype.track_forms=function(){return this._track_dom.call(this,K,arguments)},et.prototype.time_event=function(e){N.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var rt={persistent:!0},nt=function(e){var t;return t=N.isObject(e)?e:N.isUndefined(e)?{}:{days:e},N.extend({},rt,t)};et.prototype.register=function(e,t){var r=nt(t);r.persistent?this.persistence.register(e,r.days):N.extend(this.unpersisted_superprops,e)},et.prototype.register_once=function(e,t,r){var n=nt(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),N.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))},et.prototype.unregister=function(e,t){(t=nt(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},et.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},et.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(Ve))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==c&&e!==this.get_property(Re)&&(this.unregister(Re),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},et.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=N.UUID();this.register_once({distinct_id:Ve+e,$device_id:e},"")},et.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},et.prototype.alias=function(e,t){if(e===this.get_property(Me))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return N.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Re,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},et.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},et.prototype.set_config=function(e){N.isObject(e)&&(N.extend(this.config,e),e.batch_size&&N.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),r.DEBUG=r.DEBUG||this.get_config("debug"))},et.prototype.get_config=function(e){return this.config[e]},et.prototype._run_hook=function(e){var t=(this.config.hooks[e]||ze).apply(this,y.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},et.prototype.get_property=function(e){return this.persistence.props[e]},et.prototype.toString=function(){var e=this.get_config("name");return e!==We&&(e=We+"."+e),e},et.prototype._event_is_disabled=function(e){return N.isBlockedUA(O)||this._flags.disable_all_events||N.include(this.__disabled_events,e)},et.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&N.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!N.cookie.get("mp_optout")||(N.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},et.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t&&N.each(this.request_batchers,(function(e){e.clear()}))},et.prototype._gdpr_call_func=function(e,t){return t=N.extend({track:N.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),N.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},et.prototype.opt_in_tracking=function(e){e=N.extend({enable_persistence:!0},e),this._gdpr_call_func(ae,e),this._gdpr_update_persistence(e)},et.prototype.opt_out_tracking=function(e){(e=N.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ce,e),this._gdpr_update_persistence(e)},et.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ue,e)},et.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(pe,e)},et.prototype.clear_opt_in_out_tracking=function(e){e=N.extend({enable_persistence:!0},e),this._gdpr_call_func(de,e),this._gdpr_update_persistence(e)},et.prototype.report_error=function(e,t){I.error.apply(I.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){I.error(t)}},et.prototype.init=et.prototype.init,et.prototype.reset=et.prototype.reset,et.prototype.disable=et.prototype.disable,et.prototype.time_event=et.prototype.time_event,et.prototype.track=et.prototype.track,et.prototype.track_links=et.prototype.track_links,et.prototype.track_forms=et.prototype.track_forms,et.prototype.track_pageview=et.prototype.track_pageview,et.prototype.register=et.prototype.register,et.prototype.register_once=et.prototype.register_once,et.prototype.unregister=et.prototype.unregister,et.prototype.identify=et.prototype.identify,et.prototype.alias=et.prototype.alias,et.prototype.name_tag=et.prototype.name_tag,et.prototype.set_config=et.prototype.set_config,et.prototype.get_config=et.prototype.get_config,et.prototype.get_property=et.prototype.get_property,et.prototype.get_distinct_id=et.prototype.get_distinct_id,et.prototype.toString=et.prototype.toString,et.prototype.opt_out_tracking=et.prototype.opt_out_tracking,et.prototype.opt_in_tracking=et.prototype.opt_in_tracking,et.prototype.has_opted_out_tracking=et.prototype.has_opted_out_tracking,et.prototype.has_opted_in_tracking=et.prototype.has_opted_in_tracking,et.prototype.clear_opt_in_out_tracking=et.prototype.clear_opt_in_out_tracking,et.prototype.get_group=et.prototype.get_group,et.prototype.set_group=et.prototype.set_group,et.prototype.add_group=et.prototype.add_group,et.prototype.remove_group=et.prototype.remove_group,et.prototype.track_with_groups=et.prototype.track_with_groups,et.prototype.start_batch_senders=et.prototype.start_batch_senders,et.prototype.stop_batch_senders=et.prototype.stop_batch_senders,Le.prototype.properties=Le.prototype.properties,Le.prototype.update_search_keyword=Le.prototype.update_search_keyword,Le.prototype.update_referrer_info=Le.prototype.update_referrer_info,Le.prototype.get_cross_subdomain=Le.prototype.get_cross_subdomain,Le.prototype.clear=Le.prototype.clear;var it={},ot=function(){Ae.init=function(e,r,n){if(n)return Ae[n]||(Ae[n]=it[n]=tt(e,r,n),Ae[n]._loaded()),Ae[n];var i=Ae;it[We]?i=it[We]:e&&((i=tt(e,r,We))._loaded(),it[We]=i),Ae=i,1===Te&&(t[We]=Ae),N.each(it,(function(e,t){t!==We&&(Ae[t]=e)})),Ae._=N}};var st=(Te=0,Ae=new et,ot(),Ae.init(),function(){function e(){e.done||(e.done=!0,Ze=!0,Ye=!1,N.each(it,(function(e){e._dom_loaded()})))}if(S.addEventListener)"complete"===S.readyState?e():S.addEventListener("DOMContentLoaded",e,!1);else if(S.attachEvent){S.attachEvent("onreadystatechange",e);var r=!1;try{r=null===t.frameElement}catch(e){}S.documentElement.doScroll&&r&&function t(){try{S.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}N.register_event(t,"load",e,!0)}(),Ae);e.exports=st},7418:function(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in o=Object(arguments[c]))r.call(o,u)&&(a[u]=o[u]);if(t){s=t(o);for(var p=0;p<s.length;p++)n.call(o,s[p])&&(a[s[p]]=o[s[p]])}}return a}},2703:function(e,t,r){"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},5697:function(e,t,r){e.exports=r(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},53:function(e,t){"use strict";var r,n,i,o;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,c=a.now();t.unstable_now=function(){return a.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,p=null,l=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(l,0),e}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(l,0))},n=function(e,t){p=setTimeout(e,t)},i=function(){clearTimeout(p)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var d=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof d&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,_=null,g=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var v=new MessageChannel,w=v.port2;v.port1.onmessage=function(){if(null!==_){var e=t.unstable_now();b=e+y;try{_(!0,e)?w.postMessage(null):(m=!1,_=null)}catch(e){throw w.postMessage(null),e}}else m=!1},r=function(e){_=e,m||(m=!0,w.postMessage(null))},n=function(e,r){g=h((function(){e(t.unstable_now())}),r)},i=function(){f(g),g=-1}}function k(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,i=e[n];if(!(void 0!==i&&0<x(i,t)))break e;e[n]=t,e[r]=i,r=n}}function S(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length;n<i;){var o=2*(n+1)-1,s=e[o],a=o+1,c=e[a];if(void 0!==s&&0>x(s,r))void 0!==c&&0>x(c,s)?(e[n]=c,e[a]=r,n=a):(e[n]=s,e[o]=r,n=o);else{if(!(void 0!==c&&0>x(c,r)))break e;e[n]=c,e[a]=r,n=a}}}return t}return null}function x(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var O=[],j=[],C=1,P=null,T=3,A=!1,q=!1,N=!1;function I(e){for(var t=S(j);null!==t;){if(null===t.callback)E(j);else{if(!(t.startTime<=e))break;E(j),t.sortIndex=t.expirationTime,k(O,t)}t=S(j)}}function D(e){if(N=!1,I(e),!q)if(null!==S(O))q=!0,r(B);else{var t=S(j);null!==t&&n(D,t.startTime-e)}}function B(e,r){q=!1,N&&(N=!1,i()),A=!0;var o=T;try{for(I(r),P=S(O);null!==P&&(!(P.expirationTime>r)||e&&!t.unstable_shouldYield());){var s=P.callback;if("function"==typeof s){P.callback=null,T=P.priorityLevel;var a=s(P.expirationTime<=r);r=t.unstable_now(),"function"==typeof a?P.callback=a:P===S(O)&&E(O),I(r)}else E(O);P=S(O)}if(null!==P)var c=!0;else{var u=S(j);null!==u&&n(D,u.startTime-r),c=!1}return c}finally{P=null,T=o,A=!1}}var F=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){q||A||(q=!0,r(B))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var r=T;T=t;try{return e()}finally{T=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=T;T=e;try{return t()}finally{T=r}},t.unstable_scheduleCallback=function(e,o,s){var a=t.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:C++,callback:o,priorityLevel:e,startTime:s,expirationTime:c=s+c,sortIndex:-1},s>a?(e.sortIndex=s,k(j,e),null===S(O)&&e===S(j)&&(N?i():N=!0,n(D,s-a))):(e.sortIndex=c,k(O,e),q||A||(q=!0,r(B))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var r=T;T=t;try{return e.apply(this,arguments)}finally{T=r}}}},3840:function(e,t,r){"use strict";e.exports=r(53)}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=t,e=[],n.O=function(t,r,i,o){if(!r){var s=1/0;for(p=0;p<e.length;p++){r=e[p][0],i=e[p][1],o=e[p][2];for(var a=!0,c=0;c<r.length;c++)(!1&o||s>=o)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(a=!1,o<s&&(s=o));if(a){e.splice(p--,1);var u=i();void 0!==u&&(t=u)}}return t}o=o||0;for(var p=e.length;p>0&&e[p-1][2]>o;p--)e[p]=e[p-1];e[p]=[r,i,o]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={122:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var i,o,s=r[0],a=r[1],c=r[2],u=0;if(s.some((function(t){return 0!==e[t]}))){for(i in a)n.o(a,i)&&(n.m[i]=a[i]);if(c)var p=c(n)}for(t&&t(r);u<s.length;u++)o=s[u],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(p)},r=self.webpackChunkwp_hummingbird=self.webpackChunkwp_hummingbird||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var i=n.O(void 0,[282],(function(){return n(8538)}));i=n.O(i)}(); //# sourceMappingURL=wphb-setup-wizard.min.js.map