{"size": 12597, "ext": "js", "max_stars_repo_path": "docs/scripts/vendors~cursor-complex~event-manager~homepage~sizes-cache.js", "max_stars_repo_name": "liqueflies/okiba-ui", "max_stars_repo_stars_event_min_datetime": "2020-03-17T19:56:47.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-20T09:40:33.000Z", "max_issues_repo_path": "docs/scripts/vendors~cursor-complex~event-manager~homepage~sizes-cache.js", "max_issues_repo_name": "liqueflies/okiba-ui", "max_issues_repo_issues_event_min_datetime": "2020-02-02T14:36:45.000Z", "max_issues_repo_issues_event_max_datetime": "2020-04-04T17:38:19.000Z", "max_forks_repo_path": "docs/scripts/vendors~cursor-complex~event-manager~homepage~sizes-cache.js", "max_forks_repo_name": "liqueflies/okiba-ui", "max_forks_repo_forks_event_min_datetime": "2020-10-06T15:39:34.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-05T14:36:52.000Z"}
{"max_stars_count": 3, "max_issues_count": 9, "max_forks_count": 2, "avg_line_length": 12597.0, "max_line_length": 12597, "alphanum_fraction": 0.7040565214}
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{23:function(e,t,n){"use strict";var r=n(22),o=n(28);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(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 u(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,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(){function e(t){var n=this,r=t.type,u=t.alias,f=void 0===u?r:u,l=c(t,["type","alias"]);!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"eventCallback",(function(e){var t=n.config,r=t.alias,o=t.payloadFilter;(0,t.dispatch)(r,"function"==typeof o?o(e):e)})),this.config=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:r,alias:f},l),this.onEvent=l.debounce?Object(o.a)(this.eventCallback,l.debounce):this.eventCallback,this.config.forceListening&&this.listen()}var t,n,r;return t=e,(n=[{key:"listen",value:function(){this.listening||(this.listening=!0)}},{key:"unlisten",value:function(){this.listening&&!this.config.forceListening&&(this.listening=!1)}}])&&u(t.prototype,n),r&&u(t,r),e}(),l=n(15),s=n(20);function p(e){return(p="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})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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,r.key,r)}}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function v(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var w=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}}),t&&d(e,t)}(c,e);var t,n,r,o,i=(t=c,function(){var e,n=O(t);if(g()){var r=O(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return v(this,e)});function c(){return y(this,c),i.apply(this,arguments)}return n=c,(r=[{key:"listen",value:function(){var e=this;h(O(c.prototype),"listen",this).call(this);var t=this.config,n=t.type,r=t.target,o=t.passive,i=void 0===o||o,u=t.capture,a=void 0!==u&&u,f=s.a?{passive:i,capture:a}:a;Array.isArray(n)?n.forEach((function(t){return Object(l.e)(r,t,e.onEvent,f)})):Object(l.e)(r,n,this.onEvent,f)}},{key:"unlisten",value:function(){var e=this;h(O(c.prototype),"unlisten",this).call(this);var t=this.config,n=t.type,r=t.target,o=t.passive,i=void 0===o||o,u=t.capture,a=void 0!==u&&u,f=s.a?{passive:i,capture:a}:a;Array.isArray(n)?n.forEach((function(t){return Object(l.c)(r,t,e.onEvent,f)})):Object(l.c)(r,n,this.onEvent,f)}}])&&b(n.prototype,r),o&&b(n,o),c}(f);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})(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(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,r.key,r)}}function k(e,t,n){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=A(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function E(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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}}),t&&_(e,t)}(c,e);var t,n,r,o,i=(t=c,function(){var e,n=A(t);if(R()){var r=A(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return E(this,e)});function c(){var e;j(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return D(S(e=i.call.apply(i,[this].concat(n))),"nextFrame",(function(t){t&&e.onEvent(t),e.requestId=window.requestAnimationFrame(e.nextFrame)})),e}return n=c,(r=[{key:"listen",value:function(){k(A(c.prototype),"listen",this).call(this),this.nextFrame()}},{key:"unlisten",value:function(){k(A(c.prototype),"unlisten",this).call(this),window.cancelAnimationFrame(this.requestId)}}])&&P(n.prototype,r),o&&P(n,o),c}(f);function C(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,r.key,r)}}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(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}var F=new r.a,H={};function L(e,t){var n=e.handler,r=void 0===n?w:n,o=e.type,i=e.alias,c=void 0===i?o:i,u=I(e,["handler","type","alias"]);H.hasOwnProperty(c)?!t&&console.warn('[EventManager error]: a global event "'.concat(c,'" has been already subscribed. Skipping...')):(H[c]=new r(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u,{type:o,alias:c,dispatch:function(e,t){return F.emit(e,t)}})),F.hasListeners(o)&&H[c].listen())}function q(e){H.hasOwnProperty(e)&&(H[e].listening&&H[e].unlisten(),delete H[e])}var M=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"hasListeners",value:function(e){return!!F.hs[e]&&!!F.hs[e].length}},{key:"subscribe",value:function(e){Array.isArray(e)?e.forEach((function(e){return L(e)})):L(e)}},{key:"unsubscribe",value:function(e){Array.isArray(e)?e.forEach((function(e){return q(e)})):q(e)}},{key:"update",value:function(t,n){e.unsubscribe(t),e.subscribe(n)}},{key:"on",value:function(e,t){F.on(e,t),H.hasOwnProperty(e)&&!H[e].listening&&H[e].listen()}},{key:"off",value:function(e,t){F.off(e,t),H.hasOwnProperty(e)&&H[e].listening&&H[e].unlisten()}},{key:"emit",value:function(e,t){H.hasOwnProperty(e)&&F.emit(e,t)}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.subscribedEvents;Array.isArray(t)&&t.forEach((function(e){F.hs[e]&&F.hs[e].clear()}))}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.subscribedEvents;e.clear(t),e.unsubscribe(t)}},{key:"subscribedEvents",get:function(){return Object.keys(H)}}],(n=null)&&C(t.prototype,n),r&&C(t,r),e}(),W={type:"resize",target:window,debounce:200},J={type:"scroll",target:window},U={alias:"raf",handler:x};M.subscribe([W,J,U]);t.a=M},26:function(e,t,n){"use strict";var r=n(15),o=n(16);function i(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(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,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=new(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),a(this,"onResize",(function(){t.window={width:window.innerWidth,height:window.innerHeight},t.body={width:document.body.offsetWidth,height:document.body.offsetHeight,scrollArea:document.body.offsetHeight-window.innerHeight};var e,n=i(t.map.keys());try{for(n.s();!(e=n.n()).done;){var r=e.value;t.compute(r)}}catch(e){n.e(e)}finally{n.f()}})),a(this,"reset",(function(){t.map.clear()})),this.map=new Map,this.onResize(),this.listen()}var t,n,c;return t=e,(n=[{key:"get",value:function(e){return this.map.has(e)||(this.map.set(e,{}),this.compute(e)),this.map.get(e)}},{key:"compute",value:function(e){var t=this.map.get(e),n=Object(r.d)(e),o=n.top,i=n.left,c=e.offsetWidth,u=e.offsetHeight;t.top=o,t.left=i,t.width=c,t.height=u,t.right=i+c,t.bottom=o+u}},{key:"listen",value:function(){o.a.on("resize",this.onResize)}},{key:"unlisten",value:function(){o.a.off("resize",this.onResize)}}])&&u(t.prototype,n),c&&u(t,c),e}())}}]);