ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشس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={2078:function(e,t,n){"use strict";var r=n(7294),o=n(3935),i=n(5697),a=n.n(i);var s="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==s&&s,c="URLSearchParams"in s,l="Symbol"in s&&"iterator"in Symbol,u="FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch(e){return!1}}(),f="FormData"in s,p="ArrayBuffer"in s;if(p)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(e){return e&&d.indexOf(Object.prototype.toString.call(e))>-1};function b(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 y(e){return"string"!=typeof e&&(e=String(e)),e}function m(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return l&&(t[Symbol.iterator]=function(){return t}),t}function v(e){this.map={},e instanceof v?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 g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function w(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function E(e){var t=new FileReader,n=w(t);return t.readAsArrayBuffer(e),n}function O(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:u&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:f&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:c&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():p&&u&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=O(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p&&(ArrayBuffer.prototype.isPrototypeOf(e)||h(e))?this._bodyArrayBuffer=O(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):c&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u&&(this.blob=function(){var e=g(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=g(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(E)}),this.text=function(){var e,t,n,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=w(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(e,t){e=b(e),t=y(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},v.prototype.delete=function(e){delete this.map[b(e)]},v.prototype.get=function(e){return e=b(e),this.has(e)?this.map[e]:null},v.prototype.has=function(e){return this.map.hasOwnProperty(b(e))},v.prototype.set=function(e,t){this.map[b(e)]=y(t)},v.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},v.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),m(e)},v.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),m(e)},v.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),m(e)},l&&(v.prototype[Symbol.iterator]=v.prototype.entries);var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];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.');var n,r,o=(t=t||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new v(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 v(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),k.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function P(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function x(e,t){if(!(this instanceof x))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 v(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},_.call(C.prototype),_.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];x.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})};var S=s.DOMException;try{new S}catch(e){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function T(e,t){return new Promise((function(n,r){var o=new C(e,t);if(o.signal&&o.signal.aborted)return r(new S("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new v,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 n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new x(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new S("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&s.location.href?s.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(u?i.responseType="blob":p&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof v?o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){i.setRequestHeader(e,y(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}function A(e){return A="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},A(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==A(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===A(i)?i:String(i)),r)}var o,i}T.polyfill=!0,s.fetch||(s.fetch=T,s.Headers=v,s.Request=C,s.Response=x);var B=["get","post","put","delete"],R=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),B.forEach((function(e){t[e]=t._setupAjaxAPI(e)}))}var t,n,r;return t=e,n=[{key:"_setupAjaxAPI",value:function(e){return"get"===e&&(e="post"),function(){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={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 T(ajaxurl,n).then((function(e){return e.json().then((function(t){return e.ok?t.data:Promise.reject(t.data)}))}))}}}],n&&N(t.prototype,n),r&&N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),I=n(4184),F=n.n(I);function D(e){var t=e.elements,n=e.header,o=e.extraClasses,i=Object.values(t).map((function(e,t){return r.createElement("div",{className:"table-row",key:t},r.createElement("div",{className:"wphb-caching-summary-item-type"},e.label),!window.lodash.includes(o,"two-columns")&&r.createElement("div",{className:"wphb-caching-summary-item-expiry"},e.expiry),r.createElement("div",null,e.details))}));return r.createElement("div",{className:F()("wphb-border-frame",o)},n&&r.createElement("div",{className:"table-header"},r.createElement("div",{className:"wphb-caching-summary-heading-type"},n[0]),!window.lodash.includes(o,"two-columns")&&r.createElement("div",{className:"wphb-caching-summary-heading-expiry"},n[2]),r.createElement("div",{className:"wphb-caching-summary-heading-status"},n[1])),i)}function z(e){var t=e.classes;return r.createElement("span",{className:t,"aria-hidden":"true"})}var U=wp.i18n.__;function H(e){var t=e.loading,n=e.text,o=U("Fetching latest data...","wphb");return n&&(o=n),r.createElement("div",{className:F()("wphb-loading-overlay",{"wphb-loading":t})},r.createElement(z,{classes:"sui-icon-loader sui-loading"}),r.createElement("p",null,o))}function M(e){return M="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},M(e)}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==M(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===M(i)?i:String(i)),r)}var o,i}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}function q(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 n,r=W(e);if(t){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===M(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,n)}}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},W(e)}var G=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&&Z(e,t)}(a,e);var t,n,o,i=q(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,o=[{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]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r.createElement(r.Fragment,null,(e||t)&&r.createElement("h3",{className:"sui-box-title"},t&&r.createElement(z,{classes:"sui-icon-"+t})," "+e),n)}}],(n=[{key:"renderContent",value:function(){var e,t=a.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"],r.createElement(r.Fragment,null,r.createElement(H,{loading:this.props.loading,text:this.props.loadingText}),!this.props.hideHeader&&r.createElement("div",{className:F()(e)},t),(!this.props.stickyType||this.props.showFilters)&&this.props.content&&r.createElement("div",{className:F()("sui-box-body",this.props.boxBodyClass)},this.props.content),(!this.props.stickyType||this.props.showFilters)&&this.props.footerActions&&r.createElement("div",{className:"sui-box-footer"},this.props.footerActions))}},{key:"render",value:function(){var e=this.renderContent();return this.props.stickyType?r.createElement(r.Fragment,null,e):r.createElement("div",{className:F()("sui-box",this.props.boxClass)},e)}}])&&L(t.prototype,n),o&&L(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);G.propTypes={boxClass:a().oneOfType([a().string,a().array]),boxBodyClass:a().oneOfType([a().string,a().array]),title:a().string,icon:a().string,hideHeader:a().bool,headerActions:a().element,content:a().element,footerActions:a().element,loading:a().bool,loadingText:a().string,stickyType:a().bool,showFilters:a().bool};var V=["text","url","classes","id","icon","target","disabled","onClick","type"];function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(this,arguments)}function $(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function J(e){var t,n=e.text,o=e.url,i=void 0===o?"#":o,a=e.classes,s=e.id,c=e.icon,l=e.target,u=e.disabled,f=void 0!==u&&u,p=e.onClick,d=e.type,h=void 0===d?"link":d,b=$(e,V);return c&&(c=r.createElement("span",{className:c,"aria-hidden":"true"})),"button"===h?r.createElement("button",Y({className:F()(a),id:s,disabled:f,onClick:p},b),!window.lodash.includes(a,"sui-button-icon-right")&&c,n,window.lodash.includes(a,"sui-button-icon-right")&&c):("blank"!==l&&"_blank"!==l||(l="_blank",t="noopener noreferrer"),r.createElement("a",Y({className:F()(a),href:i,id:s,target:l,rel:t,disabled:f,onClick:p},b),!window.lodash.includes(a,"sui-button-icon-right")&&c,n,window.lodash.includes(a,"sui-button-icon-right")&&c))}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 X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Q(i)?i:String(i)),r)}var o,i}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(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 n,r=ne(e);if(t){var o=ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Q(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,n)}}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}var re=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&&ee(e,t)}(a,e);var t,n,o,i=te(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getElement",value:function(){return r.createElement(r.Fragment,null,r.createElement("label",{htmlFor:"wphb-"+this.props.id,className:F()("sui-checkbox",{"sui-checkbox-sm":void 0!==this.props.size&&"sm"===this.props.size},{"sui-checkbox-stacked":this.props.stacked})},r.createElement("input",X({type:"checkbox",id:"wphb-"+this.props.id,"aria-labelledby":"wphb-"+this.props.id+"-label",checked:this.props.checked,disabled:this.props.disabled,onChange:this.props.onChange},this.props.data)),r.createElement("span",{"aria-hidden":"true"}),this.props.label&&r.createElement("span",{id:"wphb-"+this.props.id+"-label"},this.props.label)),this.props.description&&r.createElement("span",{className:"sui-description sui-checkbox-description"},this.props.description))}},{key:"render",value:function(){return this.props.stacked?this.getElement():r.createElement("div",{className:"sui-form-field"},this.getElement())}}])&&K(t.prototype,n),o&&K(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function oe(e){var t=e.message,n=e.classes,o=e.content,i=F()("sui-notice",n);return r.createElement("div",{className:i},r.createElement("div",{className:"sui-notice-content"},r.createElement("div",{className:"sui-notice-message"},r.createElement(z,{classes:"sui-notice-icon sui-icon-info sui-md"}),t&&r.createElement("p",null,t),o&&r.createElement("p",null,o))))}function ie(e){return ie="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},ie(e)}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==ie(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===ie(i)?i:String(i)),r)}var o,i}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}function ce(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 n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ie(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,n)}}function le(e){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},le(e)}re.defaultProps={id:"",description:"",label:"",checked:!1,disabled:!1,stacked:!1};var ue=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&&se(e,t)}(a,e);var t,n,o,i=ce(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$el.SUIselect2({minimumResultsForSearch:-1}),this.$el.on("change",this.props.onChange)}},{key:"render",value:function(){var e,t=this,n=this.props.items.map((function(e,t){return r.createElement("option",{value:e[0],key:t},e[1])})),o=void 0===this.props.classes?"250":null;return r.createElement("div",{className:F()("sui-form-field",{"sui-input-md":"250"===o})},r.createElement("label",{htmlFor:this.props.selectId,id:this.props.selectId+"-label",className:"sui-label"},this.props.label),r.createElement("select",{onChange:this.props.onChange,value:this.props.selected,className:F()("sui-select",this.props.classes),"data-width":o,name:this.props.selectId,id:this.props.selectId,multiple:this.props.multiple,"data-placeholder":null!==(e=this.props.placeholder)&&void 0!==e?e:"","aria-labelledby":this.props.selectId+"-label","aria-describedby":this.props.description?this.props.selectId+"-description":"",ref:function(e){return t.el=e}},this.props.placeholder&&r.createElement("option",null),n),this.props.description&&r.createElement("span",{id:this.props.selectId+"-description",className:"sui-description"},this.props.description))}}])&&ae(t.prototype,n),o&&ae(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function fe(e){var t=e.label,n=e.description,o=e.content,i=e.classes,a=e.wide;return void 0!==a&&a?r.createElement("div",{className:"sui-box-settings-row"},r.createElement("div",{className:"sui-box-settings-col-2"},r.createElement("span",{className:"sui-settings-label"},t),o)):n?r.createElement("div",{className:"sui-box-settings-row"},r.createElement("div",{className:"sui-box-settings-col-1"},r.createElement("span",{className:"sui-settings-label"},t),r.createElement("span",{className:"sui-description"},n)),r.createElement("div",{className:"sui-box-settings-col-2"},o)):r.createElement("div",{className:F()("sui-box-settings-row",i)},o)}ue.defaultProps={selectId:"",label:"",items:[],selected:"",multiple:!1};var pe=["text","id","name","className","onChange","checked","hideToggle","disabled","description"];function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(this,arguments)}function he(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function be(e){var t=e.text,n=e.id,o=e.name,i=e.className,a=e.onChange,s=e.checked,c=void 0!==s&&s,l=e.hideToggle,u=void 0!==l&&l,f=e.disabled,p=void 0!==f&&f,d=e.description,h=void 0===d?"":d,b=he(e,pe);return r.createElement("div",{className:"sui-form-field"},r.createElement("label",{htmlFor:n,className:F()(i,"sui-toggle")},r.createElement("input",de({type:"checkbox",name:o,id:n,checked:c,disabled:p,onChange:a,"aria-labelledby":n+"-label"},b)),!u&&r.createElement("span",{className:"sui-toggle-slider","aria-hidden":"true"}),t&&r.createElement("span",{id:n+"-label",className:"sui-toggle-label"},t),h&&r.createElement("span",{id:n+"-description",className:"sui-description"},h)))}function ye(e){var t=e.text,n=e.classes,o=e.children;return r.createElement("span",{className:F()("sui-tooltip",n),"data-tooltip":t},o)}function me(e){var t=e.value,n=e.type;if(0===t&&"success"===n)return r.createElement("span",{className:"sui-icon-check-tick sui-lg sui-success","aria-hidden":"true"});var o="sui-tag sui-tag-"+n;return r.createElement("span",{className:o},t)}let ve,ge,we,Ee;me.defaultProps={value:0,type:"success"};const Oe=/<(\/)?(\w+)\s*(\/)?>/g;function _e(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}const ke=e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every((e=>(0,r.isValidElement)(e)))};function Ce(e){const t=function(){const e=Oe.exec(ve);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,o,i]=e,a=n.length;if(i)return["self-closed",o,t,a];if(r)return["closer",o,t,a];return["opener",o,t,a]}(),[n,o,i,a]=t,s=Ee.length,c=i>ge?ge:null;if(!e[o])return Pe(),!1;switch(n){case"no-more-tokens":if(0!==s){const{leadingTextStart:e,tokenStart:t}=Ee.pop();we.push(ve.substr(e,t))}return Pe(),!1;case"self-closed":return 0===s?(null!==c&&we.push(ve.substr(c,i-c)),we.push(e[o]),ge=i+a,!0):(xe(_e(e[o],i,a)),ge=i+a,!0);case"opener":return Ee.push(_e(e[o],i,a,i+a,c)),ge=i+a,!0;case"closer":if(1===s)return function(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:i,children:a}=Ee.pop(),s=e?ve.substr(o,e-o):ve.substr(o);s&&a.push(s);null!==n&&we.push(ve.substr(n,i-n));we.push((0,r.cloneElement)(t,null,...a))}(i),ge=i+a,!0;const t=Ee.pop(),n=ve.substr(t.prevOffset,i-t.prevOffset);t.children.push(n),t.prevOffset=i+a;const l=_e(t.element,t.tokenStart,t.tokenLength,i+a);return l.children=t.children,xe(l),ge=i+a,!0;default:return Pe(),!1}}function Pe(){const e=ve.length-ge;0!==e&&we.push(ve.substr(ge,e))}function xe(e){const{element:t,tokenStart:n,tokenLength:o,prevOffset:i,children:a}=e,s=Ee[Ee.length-1],c=ve.substr(s.prevOffset,n-s.prevOffset);c&&s.children.push(c),s.children.push((0,r.cloneElement)(t,null,...a)),s.prevOffset=i||n+o}var je=(e,t)=>{if(ve=e,ge=0,we=[],Ee=[],Oe.lastIndex=0,!ke(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(Ce(t));return(0,r.createElement)(r.Fragment,null,...we)};function Se(e){return Se="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},Se(e)}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==Se(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Se(i)?i:String(i)),r)}var o,i}function Ae(e,t){return Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ae(e,t)}function Ne(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 n,r=Re(e);if(t){var o=Re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Be(e)}(this,n)}}function Be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Re(e){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Re(e)}var Ie,Fe=wp.i18n,De=Fe.__,ze=(Fe.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&&Ae(e,t)}(a,e);var t,n,o,i=Ne(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={api:new R,allowModify:t.props.wphbData.modify,links:t.props.wphbData.links,loading:!0,cf:t.props.wphbData.module.cloudflare,apo:t.props.wphbData.module.apo,zones:[],selectedZone:!1},t.disconnectCloudflare=t.disconnectCloudflare.bind(Be(t)),t.reCheckStatus=t.reCheckStatus.bind(Be(t)),t.reCheckAPOStatus=t.reCheckAPOStatus.bind(Be(t)),t.clearCache=t.clearCache.bind(Be(t)),t.handleAPOToggleChange=t.handleAPOToggleChange.bind(Be(t)),t.handleDevChkbxChange=t.handleDevChkbxChange.bind(Be(t)),t.handleZoneChange=t.handleZoneChange.bind(Be(t)),t.saveSelectedZone=t.saveSelectedZone.bind(Be(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this;this.state.api.post("cloudflare_status").then((function(t){e.setState({loading:!1,cf:t.cloudflare,apo:t.apo})})).catch((function(e){return window.console.log(e)}))}},{key:"openConnectModal",value:function(){window.SUI.openModal("cloudflare-connect","wphb-box-integrations","cloudflare-email",!1,!1)}},{key:"reCheckStatus",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("cloudflare_zones").then((function(t){void 0!==t.message&&window.WPHB_Admin.notices.show(t.message,"error");var n=[];void 0!==t.zones&&(n=t.zones),e.setState({loading:!1,zones:n})})).catch((function(e){return window.console.log(e)}))}},{key:"reCheckAPOStatus",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("cloudflare_apo_status").then((function(t){e.setState({loading:!1,cf:t.cloudflare,apo:t.apo})})).catch((function(e){return window.console.log(e)}))}},{key:"disconnectCloudflare",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("cloudflare_disconnect").then((function(t){e.setState({loading:!1,cf:t.cloudflare,apo:t.apo}),window.WPHB_Admin.notices.show(De("Cloudflare was disconnected successfully.","wphb"))})).catch((function(e){return window.console.log(e)}))}},{key:"clearCache",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("cloudflare_clear_cache").then((function(){e.setState({loading:!1}),window.WPHB_Admin.notices.show(De("Cloudflare cache successfully purged. Please wait 30 seconds for the purge to complete.","wphb"))})).catch((function(e){return window.console.log(e)}))}},{key:"handleAPOToggleChange",value:function(e){var t=this;this.setState({loading:!0});var n=De("Automatic Platform Optimization is disabled.","wphb");e.target.checked&&(n=De("Automatic Platform Optimization is enabled.","wphb")),this.state.api.post("cloudflare_toggle_apo",e.target.checked).then((function(e){t.setState({loading:!1,apo:e}),window.WPHB_Admin.notices.show(n)})).catch((function(e){return window.console.log(e)}))}},{key:"handleDevChkbxChange",value:function(e){var t=this;this.setState({loading:!0}),this.state.api.post("cloudflare_toggle_device_cache",e.target.checked).then((function(e){t.setState({loading:!1,apo:e}),window.WPHB_Admin.notices.show(De("Settings updated.","wphb"))})).catch((function(e){return window.console.log(e)}))}},{key:"handleZoneChange",value:function(){this.setState({selectedZone:jQuery("#cloudflare-zone-select").find(":selected").text()})}},{key:"saveSelectedZone",value:function(){var e=this;!1!==this.state.selectedZone&&(this.setState({loading:!0}),this.state.api.post("cloudflare_save_zone",this.state.selectedZone).then((function(t){e.setState({loading:!1,cf:t.cloudflare,apo:t.apo,zones:[],selectedZone:!1}),window.WPHB_Admin.notices.show(De("Cloudflare was connected successfully.","wphb"))})).catch((function(e){return window.console.log(e)})))}},{key:"renderHeaderTitle",value:function(){var e=this.state.links.wphbDirUrl+"admin/assets/image/integrations/",t=r.createElement(ye,{text:De("Cloudflare is connected for this domain.","wphb"),classes:"sui-tooltip-constrained"},r.createElement(z,{classes:"sui-icon-check-tick sui-success"}));return r.createElement("div",{className:"sui-accordion-item-title"},r.createElement("img",{className:"sui-image",alt:De("Cloudflare","wphb"),src:e+"icon-cloudflare.png",srcSet:e+"icon-cloudflare.png 1x, "+e+"icon-cloudflare@2x.png 2x"}),De("Cloudflare","wphb"),this.state.cf.connected&&this.state.cf.zone&&t)}},{key:"renderStatusNotice",value:function(){return this.state.cf.connected&&this.state.cf.zone?r.createElement(oe,{message:De("Cloudflare is connected for this domain.","wphb"),classes:"sui-notice-success"}):this.state.cf.connected&&!this.state.cf.zone?r.createElement(oe,{message:De("Cloudflare is connected, but it appears you don’t have any active zones for this domain. Double check your domain has been added to Cloudflare and tap re-check when ready.","wphb"),classes:["sui-notice-warning","sui-no-margin-bottom"]}):this.state.cf.dnsSet?r.createElement(oe,{message:De("We’ve detected you’re using Cloudflare! Connect your account to control your settings via Hummingbird.","wphb"),classes:"sui-notice-info"}):r.createElement(oe,{message:De("Cloudflare is not connected.","wphb"),classes:"sui-notice-grey"})}},{key:"renderZoneDropdown",value:function(){var e=this.state.zones.map((function(e){return[e.value,e.label]}));return e.unshift(["",""]),r.createElement(r.Fragment,null,r.createElement("p",{className:"sui-margin-top"},De("If the zone is not auto detected, try selecting one of the available zones from the list below:","wphb")),r.createElement(ue,{selectId:"cloudflare-zone-select",label:De("Cloudflare zone","wphb"),placeholder:De("Select zone","wphb"),items:e,onChange:this.handleZoneChange}))}},{key:"renderBrowserCaching",value:function(){var e=31536e3===this.state.cf.expiry?"green":"yellow",t=this.state.allowModify&&r.createElement(J,{href:this.state.links.caching,text:De("Configure","wphb"),icon:"sui-icon-wrench-tool sui-sm"}),n={label:r.createElement("span",{className:"wphb-filename-extension-label"},De("JavaScript, CSS, Media, Images","wphb")),expiry:r.createElement(me,{value:this.state.cf.human,type:e}),details:t};return r.createElement(r.Fragment,null,r.createElement("p",null,De("Store temporary data on your visitors devices so that they don’t have to download assets twice if they don’t have to. This results in a much faster second time round page load speed.","wphb")),r.createElement(D,{header:[De("File types","wphb"),"",De("Expiry time","wphb")],elements:[n]}))}},{key:"renderAPO",value:function(){var e=!1;"undefined"!==this.state.apo.settings&&"undefined"!==this.state.apo.settings.cache_by_device_type&&(e=this.state.apo.settings.cache_by_device_type);var t="https://dash.cloudflare.com/"+this.state.cf.accountId+"/"+this.state.cf.zoneName+"/speed/optimization/apo/purchase";return r.createElement(r.Fragment,null,r.createElement("p",null,De("Cloudflare APO will cache dynamic content and third-party scripts so the entire site is served from cache. This eliminates round trips between your server and the user's browser, drastically improving TTFB and other site performance metrics.","wphb")),r.createElement(be,{id:"cloudflare-apo",checked:this.state.apo.enabled,disabled:!this.state.apo.purchased||!this.state.allowModify,text:De("Enable APO","wphb"),onChange:this.handleAPOToggleChange}),this.state.apo.enabled&&r.createElement("div",{className:"sui-border-frame"},r.createElement(re,{id:"cloudflare-apo-device",label:De("Cache by device type","wphb"),checked:e,disabled:!this.state.apo.purchased||!this.state.allowModify,onChange:this.handleDevChkbxChange,description:De("This enables you to target visitors with cached content appropriate to their device. Once enabled, Cloudflare sends a CF-Device-Type HTTP header to your origin page with a value of either mobile, tablet or desktop for every request to specify the visitor’s device type. If your origin page responds with the appropriate content for that device type, Cloudflare caches the resource only for that specific device type. Note: changing the Cache by device type setting will purge the entire Cloudflare cache for your zone.","wphb")})),!this.state.apo.purchased&&r.createElement(oe,{message:je(De("Automatic Platform Optimization is a paid service and you need to purchase it to enable it. You can purchase it <a>here</a>.","wphb"),{a:r.createElement("a",{href:t,target:"_blank"})})}))}},{key:"renderContent",value:function(){var e=je(De("Cloudflare is a Content Delivery Network (CDN) that sends traffic through its global network to automatically optimize the delivery of your site so your visitors can browse your site at top speeds. With the new Automatic Platform Optimization (APO), Cloudflare can also cache dynamic content and third-party scripts so the entire site is served from cache. Learn more about the integration <a>here</a>.","wphb"),{a:r.createElement("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#browser-cache",target:"_blank"})});return r.createElement(r.Fragment,null,r.createElement("h4",null,De("Overview","wphb")),r.createElement("p",null,e),r.createElement("h4",null,De("Status","wphb")),this.renderStatusNotice(),0<this.state.zones.length&&this.renderZoneDropdown(),this.state.cf.connected&&this.state.cf.zone&&r.createElement(fe,{label:De("Browser Caching","wphb"),content:this.renderBrowserCaching(),wide:"true"}),this.state.cf.connected&&this.state.cf.zone&&r.createElement(fe,{label:De("Automatic Platform Optimization","wphb"),content:this.renderAPO(),wide:"true"}))}},{key:"renderFooter",value:function(){return r.createElement(r.Fragment,null,this.state.cf.connected&&r.createElement(J,{classes:["sui-button","sui-button-ghost"],icon:"sui-icon-power-on-off",text:De("Deactivate","wphb"),onClick:this.disconnectCloudflare}),this.state.cf.connected&&this.state.cf.zone&&r.createElement(J,{classes:["sui-button","sui-button-ghost"],icon:"sui-icon-update",text:De("Re-check status","wphb"),onClick:this.reCheckAPOStatus}),r.createElement("div",{className:"sui-actions-right"},this.state.cf.connected&&!this.state.cf.zone&&!this.state.selectedZone&&r.createElement(J,{type:"button",icon:"sui-icon-update",classes:"sui-button",text:De("Re-check","wphb"),onClick:this.reCheckStatus}),this.state.cf.connected&&!this.state.cf.zone&&this.state.selectedZone&&r.createElement(J,{type:"button",classes:"sui-button",text:De("Save zone","wphb"),onClick:this.saveSelectedZone}),!this.state.cf.connected&&r.createElement(J,{type:"button",classes:["sui-button","sui-button-blue"],text:De("Connect","wphb"),"aria-label":De("Connect","wphb"),onClick:this.openConnectModal}),this.state.cf.connected&&this.state.cf.zone&&r.createElement(J,{type:"button",classes:"sui-button",text:De("Clear cache","wphb"),onClick:this.clearCache})))}},{key:"render",value:function(){return r.createElement(r.Fragment,null,r.createElement("div",{className:"sui-accordion-item-header"},this.renderHeaderTitle(),r.createElement("div",{className:"wphb-integration-description"},De("Connect your Cloudflare account to control APO and Browser Caching directly from Hummingbird.","wphb")),r.createElement("div",{className:"sui-accordion-col-auto"},!this.state.cf.connected&&r.createElement(J,{type:"button",classes:["sui-button-icon","sui-button-blue","sui-accordion-item-action","sui-tooltip"],icon:"sui-icon-plus","aria-label":De("Connect Cloudflare","wphb"),"data-tooltip":De("Connect Cloudflare","wphb"),onClick:this.openConnectModal}),r.createElement(J,{type:"button",classes:["sui-button-icon","sui-accordion-open-indicator"],icon:"sui-icon-chevron-down","aria-label":De("Open item","wphb")}))),r.createElement("div",{className:"sui-accordion-item-body"},r.createElement(G,{loading:this.state.loading,hideHeader:!0,content:this.renderContent(),footerActions:this.renderFooter()})))}}])&&Te(t.prototype,n),o&&Te(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component));ze.propTypes={wphbData:a().object},Ie=function(){var e=document.getElementById("wphb-react-cloudflare");e&&o.render(r.createElement(ze,{wphbData:window.wphbReact}),e)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Ie):Ie())},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7418:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=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 l in i=Object(arguments[c]))n.call(i,l)&&(s[l]=i[l]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={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:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(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 n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,f=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(f,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var h=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 h&&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 b=!1,y=null,m=-1,v=5,g=0;t.unstable_shouldYield=function(){return t.unstable_now()>=g},i=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"):v=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();g=e+v;try{y(!0,e)?E.postMessage(null):(b=!1,y=null)}catch(e){throw E.postMessage(null),e}}else b=!1},n=function(e){y=e,b||(b=!0,E.postMessage(null))},r=function(e,n){m=p((function(){e(t.unstable_now())}),n)},o=function(){d(m),m=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>C(a,n))void 0!==c&&0>C(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],x=[],j=1,S=null,T=3,A=!1,N=!1,B=!1;function R(e){for(var t=_(x);null!==t;){if(null===t.callback)k(x);else{if(!(t.startTime<=e))break;k(x),t.sortIndex=t.expirationTime,O(P,t)}t=_(x)}}function I(e){if(B=!1,R(e),!N)if(null!==_(P))N=!0,n(F);else{var t=_(x);null!==t&&r(I,t.startTime-e)}}function F(e,n){N=!1,B&&(B=!1,o()),A=!0;var i=T;try{for(R(n),S=_(P);null!==S&&(!(S.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=S.callback;if("function"==typeof a){S.callback=null,T=S.priorityLevel;var s=a(S.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?S.callback=s:S===_(P)&&k(P),R(n)}else k(P);S=_(P)}if(null!==S)var c=!0;else{var l=_(x);null!==l&&r(I,l.startTime-n),c=!1}return c}finally{S=null,T=i,A=!1}}var D=i;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(){N||A||(N=!0,n(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return _(P)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,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:j++,callback:i,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>s?(e.sortIndex=a,O(x,e),null===_(P)&&e===_(x)&&(B?o():B=!0,r(I,a-s))):(e.sortIndex=c,O(P,e),N||A||(N=!0,n(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},3840:function(e,t,n){"use strict";e.exports=n(53)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=function(t,n,o,i){if(!n){var a=1/0;for(u=0;u<e.length;u++){n=e[u][0],o=e[u][1],i=e[u][2];for(var s=!0,c=0;c<n.length;c++)(!1&i||a>=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[c])}))?n.splice(c--,1):(s=!1,i<a&&(a=i));if(s){e.splice(u--,1);var l=o();void 0!==l&&(t=l)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={466:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],s=n[1],c=n[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(c)var u=c(r)}for(t&&t(n);l<a.length;l++)i=a[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(u)},n=self.webpackChunkwp_hummingbird=self.webpackChunkwp_hummingbird||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var o=r.O(void 0,[282],(function(){return r(2078)}));o=r.O(o)}(); //# sourceMappingURL=wphb-react-integrations.min.js.map