Your IP : 216.73.216.171


Current Path : /home/ereika83/www/wp-content/plugins/wp-hummingbird/admin/assets/js/
Upload File :
Current File : /home/ereika83/www/wp-content/plugins/wp-hummingbird/admin/assets/js/wphb-add-delay.min.js

!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function n(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(){"use strict";o=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new C(r||[]);return a(i,"_invoke",{value:S(t,n,c)}),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",v="suspendedYield",m="executing",w="completed",y={};function g(){}function b(){}function E(){}var L={};d(L,u,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(F([])));j&&j!==n&&i.call(j,u)&&(L=j);var _=E.prototype=g.prototype=Object.create(L);function k(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,a,c,u){var s=l(t[o],t,a);if("throw"!==s.type){var f=s.arg,d=f.value;return d&&"object"==r(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(d).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(s.arg)}var o;a(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}})}function S(e,n,r){var o=p;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===w){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=A(c,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=w,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=l(e,n,r);if("normal"===s.type){if(o=r.done?w:v,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=w,r.method="throw",r.arg=s.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function F(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return b.prototype=E,a(_,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:b,configurable:!0}),b.displayName=d(E,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,d(t,f,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},k(O.prototype),d(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(h(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(_),d(_,f,"Generator"),d(_,u,(function(){return this})),d(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=F,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:F(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function i(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function c(t){i(a,r,o,c,u,"next",t)}function u(t){i(a,r,o,c,u,"throw",t)}c(void 0)}))}}!function(){"use strict";var e=["keydown","mousedown","mousemove","wheel","touchmove","touchstart","touchend"],i={normal:[],defer:[],async:[]},c=[],u=[],s=!1,f="",d=function(){var d=function(){void 0!==A&&clearTimeout(A),e.forEach((function(t){window.removeEventListener(t,d,{passive:!0})})),document.removeEventListener("visibilitychange",d),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",h):h()},h=function(){var t=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l(),p(),v(),m(),w(),t.next=7,y(i.normal);case 7:return t.next=9,y(i.defer);case 9:return t.next=11,y(i.async);case 11:return t.next=13,b();case 13:return t.next=15,E();case 15:window.dispatchEvent(new Event("wphb-allScriptsLoaded")),j();case 17:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),l=function(){var t={},e=function(e,n){var r=function(n){return t[e].delayedEvents.indexOf(n)>=0?"wphb-"+n:n};t[e]||(t[e]={originalFunctions:{add:e.addEventListener,remove:e.removeEventListener},delayedEvents:[]},e.addEventListener=function(){arguments[0]=r(arguments[0]),t[e].originalFunctions.add.apply(e,arguments)},e.removeEventListener=function(){arguments[0]=r(arguments[0]),t[e].originalFunctions.remove.apply(e,arguments)}),t[e].delayedEvents.push(n)},n=function(t,e){var n=t[e];Object.defineProperty(t,e,{get:n||function(){},set:function(n){t["wphb-"+e]=n}})};e(document,"DOMContentLoaded"),e(window,"DOMContentLoaded"),e(window,"load"),e(window,"pageshow"),e(document,"readystatechange"),n(document,"onreadystatechange"),n(window,"onload"),n(window,"onpageshow")},p=function(){var t=window.jQuery;Object.defineProperty(window,"jQuery",{get:function(){return t},set:function(e){if(e&&e.fn&&!c.includes(e)){e.fn.ready=e.fn.init.prototype.ready=function(t){s?t.bind(document)(e):document.addEventListener("wphb-DOMContentLoaded",(function(){return t.bind(document)(e)}))};var o=e.fn.on;e.fn.on=e.fn.init.prototype.on=function(){var t=arguments;if(this[0]===window){function e(t){return t.split(" ").map((function(t){return"load"===t||0===t.indexOf("load.")?"wphb-jquery-load":t})).join(" ")}"string"==typeof arguments[0]||arguments[0]instanceof String?arguments[0]=e(arguments[0]):"object"==r(arguments[0])&&Object.keys(arguments[0]).forEach((function(r){delete Object.assign(t[0],n({},e(r),t[0][r]))[r]}))}return o.apply(this,arguments),this},c.push(e)}t=e}})},v=function(){var t=new Map;document.write=document.writeln=function(e){var n=document.currentScript,r=document.createRange(),o=t.get(n);void 0===o&&(o=n.nextSibling,t.set(n,o));var i=document.createDocumentFragment();r.setStart(i,0),i.appendChild(r.createContextualFragment(e)),n.parentElement.insertBefore(i,o)}},m=function(){document.querySelectorAll("script[type=wphb-delay-type]").forEach((function(t){t.hasAttribute("src")?t.hasAttribute("defer")&&!1!==t.defer?i.defer.push(t):t.hasAttribute("async")&&!1!==t.async?i.async.push(t):i.normal.push(t):i.normal.push(t)}))},w=function(){var e=document.createDocumentFragment();[].concat(t(i.normal),t(i.defer),t(i.async)).forEach((function(t){var n=t.getAttribute("src");if(n){var r=document.createElement("link");r.href=n,r.rel="preload",r.as="script",e.appendChild(r)}})),document.head.appendChild(e)},y=function(){var t=a(o().mark((function t(e){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.shift())){t.next=5;break}return t.next=4,g(n);case 4:return t.abrupt("return",y(e));case 5:return t.abrupt("return",Promise.resolve());case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),g=function(){var e=a(o().mark((function e(n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:return e.abrupt("return",new Promise((function(e){var r=document.createElement("script");t(n.attributes).forEach((function(t){var e=t.nodeName;"type"!==e&&("data-wphb-type"===e&&(e="type"),r.setAttribute(e,t.nodeValue))})),n.hasAttribute("src")?(r.addEventListener("load",e),r.addEventListener("error",e)):(r.text=n.text,e()),n.parentNode.replaceChild(r,n)})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var t=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=!0,t.next=3,L();case 3:return document.dispatchEvent(new Event("wphb-DOMContentLoaded")),t.next=6,L();case 6:return window.dispatchEvent(new Event("wphb-DOMContentLoaded")),t.next=9,L();case 9:return document.dispatchEvent(new Event("wphb-readystatechange")),t.next=12,L();case 12:document.wphm_onreadystatechange&&document.wphm_onreadystatechange();case 13:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),E=function(){var t=a(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,L();case 2:return window.dispatchEvent(new Event("wphb-load")),t.next=5,L();case 5:return window.wphm_onload&&window.wphm_onload(),t.next=8,L();case 8:return c.forEach((function(t){return t(window).trigger("wphb-jquery-load")})),t.next=11,L();case 11:return(e=new Event("wphm-pageshow")).persisted=window.hbPersisted,window.dispatchEvent(e),t.next=16,L();case 16:window.wphm_onpageshow&&window.wphm_onpageshow({persisted:window.hbPersisted});case 17:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),L=function(){var t=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){requestAnimationFrame(t)})));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),x=function(t){t.target.removeEventListener("click",x),S(t.target,"hb-onclick","onclick",t),u.push(t),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()},j=function(){window.removeEventListener("touchstart",_,{passive:!0}),window.removeEventListener("mousedown",_),u.forEach((function(t){t.target.outerHTML===f&&t.target.dispatchEvent(new MouseEvent("click",{view:t.view,bubbles:!0,cancelable:!0}))}))},_=function(t){"HTML"!==t.target.tagName&&(f||(f=t.target.outerHTML),window.addEventListener("touchend",O),window.addEventListener("mouseup",O),window.addEventListener("touchmove",k,{passive:!0}),window.addEventListener("mousemove",k),t.target.addEventListener("click",x),S(t.target,"onclick","hb-onclick",t))},k=function(t){window.removeEventListener("touchend",O),window.removeEventListener("mouseup",O),window.removeEventListener("touchmove",k,{passive:!0}),window.removeEventListener("mousemove",k),t.target.removeEventListener("click",x),S(t.target,"hb-onclick","onclick",t)},O=function(){window.removeEventListener("touchend",O),window.removeEventListener("mouseup",O),window.removeEventListener("touchmove",k,{passive:!0}),window.removeEventListener("mousemove",k)},S=function(t,e,n,r){t.hasAttribute&&t.hasAttribute(e)&&(r.target.setAttribute(n,r.target.getAttribute(e)),r.target.removeAttribute(e))};if(window.addEventListener("pageshow",(function(t){window.hbPersisted=t.persisted})),e.forEach((function(t){window.addEventListener(t,d,{passive:!0})})),document.addEventListener("visibilitychange",d),"undefined"!=typeof delay_js_timeout_timer&&delay_js_timeout_timer>0)var A=setTimeout((function(){d()}),delay_js_timeout_timer)};d()}()}();
//# sourceMappingURL=wphb-add-delay.min.js.map