https://cheezu.ru/wp-content/themes/yjn-cheese/public/js/components-screamer.a9890242f93199cb4e57.js
1(self.webpackChunkyjn_cheese=self.webpackChunkyjn_cheese||[]).push([[3572],{2959:function(t,e){!function(t){"use strict";function e(t,e,r,n){var o,i=!1,s=0;function c(){o&&clearTimeout(o)}function u(){for(var u=arguments.length,a=new Array(u),l=0;l<u;l++)a[l]=arguments[l];var f=this,h=Date.now()-s;function p(){s=Date.now(),r.apply(f,a)}function y(){o=void 0}i||(n&&!o&&p(),c(),void 0===n&&h>t?p():!0!==e&&(o=setTimeout(n?y:p,void 0===n?t-h:t)))}return"boolean"!=typeof e&&(n=r,r=e,e=void 0),u.cancel=function(){c(),i=!0},u}t.debounce=function(t,r,n){return void 0===n?e(t,r,!1):e(t,n,!1!==r)},t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})}(e)},4621:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>d});var n=r(4013),o=r.n(n),i=r(4932),s=r(5014);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e,r,n,o,i,s){try{var c=t[i](s),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(v,t);var e,r,n,i,c,d,b=(c=v,d=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(t){return!1}}(),function(){var t,e=p(c);if(d){var r=p(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return f(this,t)});function v(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),y(h(e=b.call(this)),"repository",void 0),y(h(e),"visibilityObserver",void 0),y(h(e),"lazyMountObserver",void 0),y(h(e),"isVisible",!1),y(h(e),"data",void 0),y(h(e),"refreshEnable",!1),y(h(e),"refreshTimer",void 0),y(h(e),"refreshTime",void 0),y(h(e),"refreshCount",0),y(h(e),"refreshInterval",3e4),y(h(e),"refreshLimit",8),e.repository=t,e}return e=v,r=[{key:"mounted",value:function(){this.props.provider&&(this.$refs.container?(window.context.adb&&(this.$el.style.display="none"),window.context.screamer.refresh&&window.context.screamer.refresh>=0&&(this.refreshInterval=window.context.screamer.refresh),window.context.screamer.refreshLimit&&window.context.screamer.refreshLimit>=0&&(this.refreshLimit=window.context.screamer.refreshLimit),this.tryRefresh=this.tryRefresh.bind(this),this.onPageVisibilityChange=this.onPageVisibilityChange.bind(this),this.data={uid:this.getUID(),provider:this.props.provider,config:JSON.parse(this.props.config),element:this.$refs.container},"false"!==this.props.lazy&&"0"!==this.props.lazy?this.mountSlotLazy():this.mountSlot()):this.logWarn("Screamer's container not found."))}},{key:"mountSlotLazy",value:function(){var t=this;this.lazyMountObserver=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(t.lazyMountObserver.unobserve(e.target),t.mountSlot())}))}),{rootMargin:"100px 0px"}),this.lazyMountObserver.observe(this.$el)}},{key:"mountSlot",value:(n=o().mark((function t(){var e=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.logDebug("".concat(this.props.type,": ").concat(this.props.provider)),t.next=3,this.repository.mount(this.data);case 3:if(!(this.refreshInterval<=0||"false"===this.props.refresh||"0"===this.props.refresh)){t.next=5;break}return t.abrupt("return");case 5:this.refreshEnable=!0,this.updateRefreshTime(),this.visibilityObserver=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&!e.isVisible?(e.isVisible=!0,e.tryRefresh()):e.isVisible&&(e.isVisible=!1)}))})),this.visibilityObserver.observe(this.$el),this.refreshTimer=window.setInterval(this.tryRefresh,this.refreshInterval),this.emitter.on(s.T.visibilityChange,this.onPageVisibilityChange),this.logDebug("".concat(this.props.type,": â"));case 12:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function s(t){u(i,r,o,s,c,"next",t)}function c(t){u(i,r,o,s,c,"throw",t)}s(void 0)}))},function(){return i.apply(this,arguments)})},{key:"updateRefreshTime",value:function(){this.refreshTime=(new Date).getTime()+this.refreshInterval}},{key:"onPageVisibilityChange",value:function(t){this.refreshEnable=t,this.tryRefresh()}},{key:"tryRefresh",value:function(){var t=this;!this.refreshEnable||this.refreshCount>=this.refreshLimit||!this.refreshTime||(new Date).getTime()<this.refreshTime||this.isVisible&&(this.updateRefreshTime(),this.repository.reload(this.data).then((function(){t.refreshCount+=1,t.logDebug("".concat(t.props.type,": â³"))})))}},{key:"destroyed",value:function(){this.data&&this.repository.destroy(this.data),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.lazyMountObserver&&(this.lazyMountObserver.disconnect(),this.lazyMountObserver=null),this.refreshTimer&&clearInterval(this.refreshTimer),this.emitter.off(s.T.visibilityChange,this.onPageVisibilityChange)}}],r&&a(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),v}(i.Z)},2036:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>b});var n=r(189);function o(t){return o="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},o(t)}function i(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.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)?s(t,e):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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=l(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},a.apply(this,arguments)}function l(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function h(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
1function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(b,t);var e,r,o,s,l=(o=b,s=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(t){return!1}}(),function(){var t,e=y(o);if(s){var r=y(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return h(this,t)});function b(){var t;c(this,b);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return d(p(t=l.call.apply(l,[this].concat(r))),"props",void 0),d(p(t),"classes",["sticky","z-30","screamer-sticky"]),d(p(t),"timer",{mountAfter:2,releaseAfter:4}),d(p(t),"showTimeout",void 0),d(p(t),"stickyObserver",void 0),t}return e=b,(r=[{key:"mounted",value:function(){var t=this;if(a(y(b.prototype),"mounted",this).call(this),this.props.provider){if(this.props.mountAfter&&(this.timer.mountAfter=this.props.mountAfter),this.props.releaseAfter&&(this.timer.releaseAfter=this.props.releaseAfter),this.trigger=this.trigger.bind(this),this.release=this.release.bind(this),this.$el.getBoundingClientRect().top<0&&!this.$el.hidden)return this.mountSlot(),void this.trigger();this.stickyObserver=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(t.trigger(),t.stickyObserver.disconnect(),t.stickyObserver=null)}))}),{rootMargin:"0px 0px -95%"}),this.stickyObserver.observe(this.$el)}}},{key:"destroyed",value:function(){a(y(b.prototype),"destroyed",this).call(this),this.stickyObserver&&(this.stickyObserver.disconnect(),this.stickyObserver=null),this.showTimeout&&clearTimeout(this.showTimeout)}},{key:"trigger",value:function(){var t=this;this.logDebug("trigger"),this.showTimeout=window.setTimeout((function(){var e;t.logDebug("stick"),(e=t.$el.classList).add.apply(e,i(t.classes)),window.setTimeout((function(){t.logDebug("show"),t.$el.classList.add("show","animated"),window.setTimeout(t.release,1e3*t.timer.releaseAfter)}),50)}),1e3*this.timer.mountAfter)}},{key:"release",value:function(){var t=this;this.logDebug("hide"),(0,n.QU)(this.$el,"show",!0).then((function(){var e;(e=t.$el.classList).remove.apply(e,i(t.classes)),t.logDebug("release")}))}}])&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),b}(r(4621).default)},7846:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>v});var n=r(4621),o=r(2037),i=r(387);function s(t){return s="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},s(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=f(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},l.apply(this,arguments)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
1function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(v,t);var e,r,n,s,f=(n=v,s=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(t){return!1}}(),function(){var t,e=d(n);if(s){var r=d(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function v(){var t;u(this,v);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return b(y(t=f.call.apply(f,[this].concat(r))),"props",void 0),b(y(t),"classes",["screamer-sticky-bottom"]),b(y(t),"timer",{mountAfter:2}),b(y(t),"showTimeout",void 0),b(y(t),"scrollAction",void 0),t}return e=v,(r=[{key:"mounted",value:function(){var t;if(this.props.provider){var e=(0,o.MR)("fixed-bottom");e?this.$root.findToken(e,this.token).length>0||(e.append(this.$el),this.props.mountAfter&&(this.timer.mountAfter=this.props.mountAfter),this.release=this.release.bind(this),null===(t=this.$refs.close)||void 0===t||t.addEventListener("click",this.release),this.onScrollTrigger=this.onScrollTrigger.bind(this),this.scrollAction=new i.G(this.onScrollTrigger),this.scrollAction.enable()):this.logWarn('Container "fixed-bottom" not found')}}},{key:"destroyed",value:function(){var t;l(d(v.prototype),"destroyed",this).call(this),null===(t=this.$refs.close)||void 0===t||t.removeEventListener("click",this.release),this.showTimeout&&clearTimeout(this.showTimeout)}},{key:"onScrollTrigger",value:function(){this.timeTrigger(),this.scrollAction.disable(),this.scrollAction=null}},{key:"timeTrigger",value:function(){var t=this;this.logDebug("timeTrigger"),this.showTimeout=window.setTimeout((function(){var e,r,n,o;t.logDebug("stick"),null===(e=t.$refs.wrapper)||void 0===e||(r=e.classList).add.apply(r,function(t){if(Array.isArray(t))return c(t)}(o=t.classes)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.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)?c(t,e):void 0}}(o)||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.")}()),null===(n=t.$refs.wrapper)||void 0===n||n.classList.remove("hidden"),window.setTimeout((function(){var e;t.logDebug("show"),null===(e=t.$refs.wrapper)||void 0===e||e.classList.add("show","animated"),l(d(v.prototype),"mounted",t).call(t)}),50)}),1e3*this.timer.mountAfter)}},{key:"release",value:function(){this.logDebug("hide"),this.destroy(),this.$el.remove()}}])&&a(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),v}(n.default)},189:(t,e,r)=>{"use strict";function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.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)?o(t,e):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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e?{transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"}:{animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},n=Object.keys(r).find((function(e){return void 0!==t.style[e]}));return n?r[n]:null}function s(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r,n){t.classList.add("animated");var o=i(t,e);if(!o)return console.error("Animation event not found, animation canceled"),void n();t.addEventListener(o,(function e(){t.removeEventListener(o,e,!1),r()}),!1)}))}function c(t,e){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.trim().split(" ");return(r=t.classList).add.apply(r,n(i)),s(t,o).then((function(){var e;(e=t.classList).remove.apply(e,n(i))}))}function u(t,e){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(r=t.classList).remove.apply(r,n(e.trim().split(" "))),s(t,o)}function a(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hidden";return t.classList.remove(r),c(t,e)}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hidden";return t.classList.contains(r)?Promise.resolve():c(t,e).then((function(){t.classList.add(r)}))}r.d(e,{OO:()=>a,PH:()=>l,QU:()=>u})},2037:(t,e,r)=>{"use strict";function n(t){var e=document.createElement("template");return e.innerHTML=t,e.content.firstElementChild}function o(t,e){var r=document.createElement("div");return r.setAttribute("id",e),t.innerHTML="",t.append(r),r}function i(t,e,r){var n=document.head.querySelector("link[rel='".concat(t,"'][").concat(e,"='").concat(r,"']"));if(n)return n;var o=document.createElement("link");return o.setAttribute("rel",t),o.setAttribute(e,r),document.head.appendChild(o),o}function s(t){return new Promise((function(e,r){var n=document.head||document.body||document,o=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=document.createElement("script");return r.type="text/javascript",r.src=t,e&&(r.async=!0),r}(t);o.onload=function(){return e(o)},o.onerror=function(t){return r(t)},n.appendChild(o)}))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return e.querySelector('[jello-container="'.concat(t,'"]'))}function u(t,e){return e.closest('[jello-container="'.concat(t,'"]'))}r.d(e,{Bj:()=>o,K7:()=>i,MR:()=>c,Vw:()=>u,az:()=>n,ve:()=>s})},387:(t,e,r)=>{"use strict";r.d(e,{G:()=>p});var n=r(2959);function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t){return i="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},i(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function a(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(y,t);var e,r,o,i,p=(o=y,i=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(t){return!1}}(),function(){var t,e=f(o);if(i){var r=f(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return a(this,t)});function y(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200;return s(this,y),h(l(e=p.call(this,t)),"scrollPosition",void 0),h(l(e),"throttledScroll",void 0),h(l(e),"threshold",void 0),e.threshold=r,e.onScroll=e.onScroll.bind(l(e)),e.throttledScroll=(0,n.throttle)(o,e.onScroll),e}return e=y,(r=[{key:"enable",value:function(){this.updateScrollPosition(),document.addEventListener("scroll",this.throttledScroll)}},{key:"disable",value:function(){document.removeEventListener("scroll",this.throttledScroll)}},{key:"trigger",value:function(){var t={position:this.scrollPosition,direction:this.scrollPosition-window.pageYOffset>0?"up":"down"};this.callback(t)}},{key:"onScroll",value:function(){Math.abs(window.pageYOffset-this.scrollPosition)>this.threshold&&this.trigger(),this.updateScrollPosition()}},{key:"updateScrollPosition",value:function(){this.scrollPosition=window.pageYOffset}}])&&c(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),y}(function(){function t(e){var r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=void 0,(r="callback")in this?Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[r]=n,this.setCallback(e)}var e,r;return e=t,(r=[{key:"setCallback",value:function(t){this.callback=t}}])&&o(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}())},5014:(t,e,r)=>{"use strict";r.d(e,{T:()=>n});var n={visibilityChange:"visibility.change",visibilityVisible:"visibility.visible",visibilityHidden:"visibility.hidden"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.