New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zeecoder/container-query

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zeecoder/container-query - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0-alpha.2c38f0a5

.size-limit

2

dist/bundle.cjs.js

@@ -1,1 +0,1 @@

"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function andCondition(e,t){for(var n=e.length,r=0;r<n;r++)if(!e[r](t))return!1;return!0}function orCondition(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r](t))return!0;return!1}function noCondition(){return!0}function convertConditionArrayToFunction(e){var t=e[0],n=e[1],r=e[2];if("width"===t){if(">"===n)return function(e){return e.width>parseInt(r)};if(">="===n)return function(e){return e.width>=parseInt(r)};if("<"===n)return function(e){return e.width<parseInt(r)};if("<="===n)return function(e){return e.width<=parseInt(r)}}else if("height"===t){if(">"===n)return function(e){return e.height>parseInt(r)};if(">="===n)return function(e){return e.height>=parseInt(r)};if("<"===n)return function(e){return e.height<parseInt(r)};if("<="===n)return function(e){return e.height<=parseInt(r)}}else if("aspect-ratio"===t){if(">"===n)return function(e){return e.width/e.height>parseFloat(r)};if(">="===n)return function(e){return e.width/e.height>=parseFloat(r)};if("<"===n)return function(e){return e.width/e.height<parseFloat(r)};if("<="===n)return function(e){return e.width/e.height<=parseFloat(r)}}else if("orientation"===t)return"portrait"===r?function(e){return e.height>=e.width}:function(e){return e.height<e.width};return noCondition}function getConditionFunction(e){var t=this;return Array.isArray(e)&&0!==e.length?orCondition.bind(this,e.map(function(e){return andCondition.bind(t,e.map(convertConditionArrayToFunction))})):noCondition}function processConfig(e){if("object"!==(void 0===e?"undefined":_typeof(e))||"string"!=typeof e.selector||!Array.isArray(e.queries))throw new Error("Invalid query stats object. It's either not an object, or it's missing the 'selectors' and/or the 'queries' property.");var t=objectAssign({},e);return t.queries.forEach(function(e){e.conditionFunction=getConditionFunction(e.conditions)}),t}function getContainerSize(e){return{width:e.clientWidth,height:e.clientHeight}}function applyStylesToElements(e,t){for(var n=t.length,r=0;r<n;r++)for(var i in e)t[r].style.setProperty(i,e[i])}function convertSingleValue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=t.toLowerCase().match(/^ *(\d+(\.\d+)?)([rwhminax]+) *$/i);if(!Array.isArray(r))return t;var i=r[1],o=r[3];if("rh"!==o&&"rw"!==o&&"rmin"!==o&&"rmax"!==o)return t;return("rh"===o||"rmin"===o&&e.height<e.width||"rmax"===o&&e.height>e.width?e.height*parseFloat(i)/100:e.width*parseFloat(i)/100).toFixed(n)+"px"}function convertCompositValue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=t.match(/\d+(\.\d+)?[rwhminax]+/gi);if(!Array.isArray(r))return t;var i={};r.forEach(function(t){i[t]=convertSingleValue(e,t,n)});var o=t;for(var s in i)o=o.replace(new RegExp(s,"g"),i[s]);return o}function adjustValueObjectByContainerSize(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=objectAssign({},t);for(var i in r)r[i]=convertCompositValue(e,r[i],n);return r}function getAffectedPropsByElementData(e){var t={};return objectAssign(t,e.styles),objectAssign(t,e.values),Object.keys(t)}function getChangedStyles(e,t){var n=registry.get(e);if(!n)return{};for(var r=n.queryState,i=n.jsonStats,o=n.instance,s={},a={},u=i.queries.length-1;u>=0;u--)!function(e){var n=i.queries[e],u="function"!=typeof n.conditionFunction||n.conditionFunction(t),c=r[e];r[e]=u,n.elements.forEach(function(e){s[e.selector]||(s[e.selector]={addStyle:{},removeProps:[]}),a[e.selector]||(a[e.selector]=[]);var n=s[e.selector],r=a[e.selector];if(u&&c){var i={},f=0;for(var l in e.values)if(-1===r.indexOf(l)){f++,i[l]=e.values[l],r.push(l);var h=n.removeProps.indexOf(l);-1!==h&&n.removeProps.splice(h,1)}var v={};for(var d in e.styles){var p=n.removeProps.indexOf(d);-1!==p&&(n.removeProps.splice(p,1),v[d]=e.styles[d]),-1===r.indexOf(d)&&r.push(d)}f>0&&objectAssign(v,adjustValueObjectByContainerSize(t,i,o.opts.valuePrecision)),objectAssign(s[e.selector].addStyle,v)}else if(!u&&c){var y=getAffectedPropsByElementData(e),g=_difference(y,r);s[e.selector].removeProps=_union(s[e.selector].removeProps,g)}else if(u&&!c){var m={};for(var b in e.styles)-1===r.indexOf(b)&&(m[b]=e.styles[b],r.push(b));for(var w in e.values)-1===r.indexOf(w)&&(m[w]=e.values[w],r.push(w));var j=adjustValueObjectByContainerSize(t,m,o.opts.valuePrecision);for(var C in j){var S=s[e.selector].removeProps.indexOf(C);-1!==S&&s[e.selector].removeProps.splice(S,1)}objectAssign(s[e.selector].addStyle,j)}})}(u);for(var c in s)0===Object.keys(s[c].addStyle).length&&delete s[c].addStyle,0===s[c].removeProps.length&&delete s[c].removeProps;return s}function adjustContainer(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=registry.get(e);if(n){t||(t=getContainerSize(e));var r=getChangedStyles(e,t);for(var i in r){(function(t){if(!r[t].addStyle&&!Array.isArray(r[t].removeProps))return"continue";var i=r[t].addStyle||{};Array.isArray(r[t].removeProps)&&r[t].removeProps.forEach(function(e){i[e]=""});var o=t===n.jsonStats.selector?[e]:e.querySelectorAll(t);applyStylesToElements(i,o)})(i)}}}var objectAssign=_interopDefault(require("object-assign")),WeakMap=_interopDefault(require("es6-weak-map")),_difference=_interopDefault(require("lodash/difference")),_union=_interopDefault(require("lodash/union")),ResizeObserver=_interopDefault(require("resize-observer-polyfill")),MutationObserver=_interopDefault(require("mutation-observer")),raf=_interopDefault(require("raf")),_typeof="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},asyncGenerator=function(){function e(e){this.value=e}function t(t){function n(i,o){try{var s=t[i](o),a=s.value;a instanceof e?Promise.resolve(a.value).then(function(e){n("next",e)},function(e){n("throw",e)}):r(s.done?"return":"normal",s.value)}catch(e){r("throw",e)}}function r(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}(i=i.next)?n(i.key,i.arg):o=null}var i,o;this._invoke=function(e,t){return new Promise(function(r,s){var a={key:e,arg:t,resolve:r,reject:s,next:null};o?o=o.next=a:(i=o=a,n(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},createClass=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),containerRegistry=new WeakMap,registry={set:function(e,t){containerRegistry.set(e,t)},get:function(e){return containerRegistry.get(e)},has:function(e){return containerRegistry.has(e)},delete:function(e){containerRegistry.delete(e)}};window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)});var resizeObserver=new ResizeObserver(function(e){Array.isArray(e)&&e.forEach(function(e){var t=registry.get(e.target);void 0!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&"object"===_typeof(t.instance)&&"function"==typeof t.instance.adjust?t.instance.adjust({width:e.contentRect.width,height:e.contentRect.height}):console.warn("Could not find Container instance for element:",e.target)})}),mutationObserver=new MutationObserver(function(e){e.forEach(function(e){e.removedNodes.forEach(function(e){!1!==registry.has(e)&&(resizeObserver.unobserve(e),registry.delete(e))})})}),Container=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,e),this.containerElement=t,this.processedJsonStats=processConfig(n),this.opts=objectAssign({adjustOnResize:!0,adjustOnInstantiation:!0,valuePrecision:2},i);registry.set(t,{instance:this,jsonStats:n,queryState:Array.isArray(n.queries)?n.queries.map(function(){return!1}):[]}),mutationObserver.observe(this.containerElement.parentNode,{childList:!0}),this.opts.adjustOnResize&&this.observeResize(),this.opts.adjustOnInstantiation&&raf(function(){return r.adjust()})}return createClass(e,[{key:"observeResize",value:function(){resizeObserver.observe(this.containerElement)}},{key:"unobserveResize",value:function(){resizeObserver.unobserve(this.containerElement)}},{key:"adjust",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;adjustContainer(this.containerElement,e)}}]),e}();module.exports=Container;
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function andCondition(e,t){for(var n=e.length,r=0;r<n;r++)if(!e[r](t))return!1;return!0}function orCondition(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r](t))return!0;return!1}function noCondition(){return!0}function convertConditionArrayToFunction(e){var t=e[0],n=e[1],r=e[2];if("width"===t){if(">"===n)return function(e){return e.width>parseInt(r)};if(">="===n)return function(e){return e.width>=parseInt(r)};if("<"===n)return function(e){return e.width<parseInt(r)};if("<="===n)return function(e){return e.width<=parseInt(r)}}else if("height"===t){if(">"===n)return function(e){return e.height>parseInt(r)};if(">="===n)return function(e){return e.height>=parseInt(r)};if("<"===n)return function(e){return e.height<parseInt(r)};if("<="===n)return function(e){return e.height<=parseInt(r)}}else if("aspect-ratio"===t){if(">"===n)return function(e){return e.width/e.height>parseFloat(r)};if(">="===n)return function(e){return e.width/e.height>=parseFloat(r)};if("<"===n)return function(e){return e.width/e.height<parseFloat(r)};if("<="===n)return function(e){return e.width/e.height<=parseFloat(r)}}else if("orientation"===t)return"portrait"===r?function(e){return e.height>=e.width}:function(e){return e.height<e.width};return noCondition}function getConditionFunction(e){var t=this;return Array.isArray(e)&&0!==e.length?orCondition.bind(this,e.map(function(e){return andCondition.bind(t,e.map(convertConditionArrayToFunction))})):noCondition}function processConfig(e){if("object"!==(void 0===e?"undefined":_typeof(e))||"string"!=typeof e.selector||!Array.isArray(e.queries))throw new Error("Invalid query stats object. It's either not an object, or it's missing the 'selectors' and/or the 'queries' property.");var t=objectAssign({},e);return t.queries.forEach(function(e){e.conditionFunction=getConditionFunction(e.conditions)}),t}function getContainerSize(e){return{width:e.clientWidth,height:e.clientHeight}}function applyStylesToElements(e,t){for(var n=t.length,r=0;r<n;r++)for(var i in e)t[r].style.setProperty(i,e[i])}function convertSingleValue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=t.toLowerCase().match(/^ *(\d+(\.\d+)?)([rwhminax]+) *$/i);if(!Array.isArray(r))return t;var i=r[1],o=r[3];if("rh"!==o&&"rw"!==o&&"rmin"!==o&&"rmax"!==o)return t;return("rh"===o||"rmin"===o&&e.height<e.width||"rmax"===o&&e.height>e.width?e.height*parseFloat(i)/100:e.width*parseFloat(i)/100).toFixed(n)+"px"}function convertCompositValue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=t.match(/\d+(\.\d+)?[rwhminax]+/gi);if(!Array.isArray(r))return t;var i={};r.forEach(function(t){i[t]=convertSingleValue(e,t,n)});var o=t;for(var s in i)o=o.replace(new RegExp(s,"g"),i[s]);return o}function adjustValueObjectByContainerSize(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=objectAssign({},t);for(var i in r)r[i]=convertCompositValue(e,r[i],n);return r}function getAffectedPropsByElementData(e){var t={};return objectAssign(t,e.styles),objectAssign(t,e.values),Object.keys(t)}function getChangedStyles(e,t){var n=registry.get(e);if(!n)return{};for(var r=n.queryState,i=n.jsonStats,o=n.instance,s={},a={},u=i.queries.length-1;u>=0;u--)!function(e){var n=i.queries[e],u="function"!=typeof n.conditionFunction||n.conditionFunction(t),c=r[e];r[e]=u,n.elements.forEach(function(e){s[e.selector]||(s[e.selector]={addStyle:{},removeProps:[]}),a[e.selector]||(a[e.selector]=[]);var n=s[e.selector],r=a[e.selector];if(u&&c){var i={},f=0;for(var l in e.values)if(-1===r.indexOf(l)){f++,i[l]=e.values[l],r.push(l);var h=n.removeProps.indexOf(l);-1!==h&&n.removeProps.splice(h,1)}var v={};for(var d in e.styles){var p=n.removeProps.indexOf(d);-1!==p&&(n.removeProps.splice(p,1),v[d]=e.styles[d]),-1===r.indexOf(d)&&r.push(d)}f>0&&objectAssign(v,adjustValueObjectByContainerSize(t,i,o.opts.valuePrecision)),objectAssign(s[e.selector].addStyle,v)}else if(!u&&c){var y=getAffectedPropsByElementData(e),g=_difference(y,r);s[e.selector].removeProps=_union(s[e.selector].removeProps,g)}else if(u&&!c){var m={};for(var b in e.styles)-1===r.indexOf(b)&&(m[b]=e.styles[b],r.push(b));for(var w in e.values)-1===r.indexOf(w)&&(m[w]=e.values[w],r.push(w));var j=adjustValueObjectByContainerSize(t,m,o.opts.valuePrecision);for(var C in j){var S=s[e.selector].removeProps.indexOf(C);-1!==S&&s[e.selector].removeProps.splice(S,1)}objectAssign(s[e.selector].addStyle,j)}})}(u);for(var c in s)0===Object.keys(s[c].addStyle).length&&delete s[c].addStyle,0===s[c].removeProps.length&&delete s[c].removeProps;return s}function adjustContainer(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=registry.get(e);if(n){t||(t=getContainerSize(e));var r=getChangedStyles(e,t);for(var i in r){(function(t){if(!r[t].addStyle&&!Array.isArray(r[t].removeProps))return"continue";var i=r[t].addStyle||{};Array.isArray(r[t].removeProps)&&r[t].removeProps.forEach(function(e){i[e]=""});var o=t===n.jsonStats.selector||":self"===t?[e]:e.querySelectorAll(t);applyStylesToElements(i,o)})(i)}}}var objectAssign=_interopDefault(require("object-assign")),WeakMap=_interopDefault(require("es6-weak-map")),_difference=_interopDefault(require("lodash/difference")),_union=_interopDefault(require("lodash/union")),ResizeObserver=_interopDefault(require("resize-observer-polyfill")),MutationObserver=_interopDefault(require("mutation-observer")),raf=_interopDefault(require("raf")),_typeof="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},asyncGenerator=function(){function e(e){this.value=e}function t(t){function n(i,o){try{var s=t[i](o),a=s.value;a instanceof e?Promise.resolve(a.value).then(function(e){n("next",e)},function(e){n("throw",e)}):r(s.done?"return":"normal",s.value)}catch(e){r("throw",e)}}function r(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}(i=i.next)?n(i.key,i.arg):o=null}var i,o;this._invoke=function(e,t){return new Promise(function(r,s){var a={key:e,arg:t,resolve:r,reject:s,next:null};o?o=o.next=a:(i=o=a,n(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},createClass=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),containerRegistry=new WeakMap,registry={set:function(e,t){containerRegistry.set(e,t)},get:function(e){return containerRegistry.get(e)},has:function(e){return containerRegistry.has(e)},delete:function(e){containerRegistry.delete(e)}};window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)});var resizeObserver=new ResizeObserver(function(e){Array.isArray(e)&&e.forEach(function(e){var t=registry.get(e.target);void 0!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&"object"===_typeof(t.instance)&&"function"==typeof t.instance.adjust?t.instance.adjust({width:e.contentRect.width,height:e.contentRect.height}):console.warn("Could not find Container instance for element:",e.target)})}),mutationObserver=new MutationObserver(function(e){e.forEach(function(e){e.removedNodes.forEach(function(e){!1!==registry.has(e)&&(resizeObserver.unobserve(e),registry.delete(e))})})}),Container=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,e),this.containerElement=t,this.processedJsonStats=processConfig(n),this.opts=objectAssign({adjustOnResize:!0,adjustOnInstantiation:!0,valuePrecision:2},i);registry.set(t,{instance:this,jsonStats:n,queryState:Array.isArray(n.queries)?n.queries.map(function(){return!1}):[]}),mutationObserver.observe(this.containerElement.parentNode,{childList:!0}),this.opts.adjustOnResize&&this.observeResize(),this.opts.adjustOnInstantiation&&raf(function(){return r.adjust()})}return createClass(e,[{key:"observeResize",value:function(){resizeObserver.observe(this.containerElement)}},{key:"unobserveResize",value:function(){resizeObserver.unobserve(this.containerElement)}},{key:"adjust",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;adjustContainer(this.containerElement,e)}}]),e}();module.exports=Container;

@@ -1,1 +0,1 @@

function andCondition(e,t){for(var n=e.length,r=0;r<n;r++)if(!e[r](t))return!1;return!0}function orCondition(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r](t))return!0;return!1}function noCondition(){return!0}function convertConditionArrayToFunction(e){var t=e[0],n=e[1],r=e[2];if("width"===t){if(">"===n)return function(e){return e.width>parseInt(r)};if(">="===n)return function(e){return e.width>=parseInt(r)};if("<"===n)return function(e){return e.width<parseInt(r)};if("<="===n)return function(e){return e.width<=parseInt(r)}}else if("height"===t){if(">"===n)return function(e){return e.height>parseInt(r)};if(">="===n)return function(e){return e.height>=parseInt(r)};if("<"===n)return function(e){return e.height<parseInt(r)};if("<="===n)return function(e){return e.height<=parseInt(r)}}else if("aspect-ratio"===t){if(">"===n)return function(e){return e.width/e.height>parseFloat(r)};if(">="===n)return function(e){return e.width/e.height>=parseFloat(r)};if("<"===n)return function(e){return e.width/e.height<parseFloat(r)};if("<="===n)return function(e){return e.width/e.height<=parseFloat(r)}}else if("orientation"===t)return"portrait"===r?function(e){return e.height>=e.width}:function(e){return e.height<e.width};return noCondition}function getConditionFunction(e){var t=this;return Array.isArray(e)&&0!==e.length?orCondition.bind(this,e.map(function(e){return andCondition.bind(t,e.map(convertConditionArrayToFunction))})):noCondition}function processConfig(e){if("object"!==(void 0===e?"undefined":_typeof(e))||"string"!=typeof e.selector||!Array.isArray(e.queries))throw new Error("Invalid query stats object. It's either not an object, or it's missing the 'selectors' and/or the 'queries' property.");var t=objectAssign({},e);return t.queries.forEach(function(e){e.conditionFunction=getConditionFunction(e.conditions)}),t}function getContainerSize(e){return{width:e.clientWidth,height:e.clientHeight}}function applyStylesToElements(e,t){for(var n=t.length,r=0;r<n;r++)for(var o in e)t[r].style.setProperty(o,e[o])}function convertSingleValue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=t.toLowerCase().match(/^ *(\d+(\.\d+)?)([rwhminax]+) *$/i);if(!Array.isArray(r))return t;var o=r[1],i=r[3];if("rh"!==i&&"rw"!==i&&"rmin"!==i&&"rmax"!==i)return t;return("rh"===i||"rmin"===i&&e.height<e.width||"rmax"===i&&e.height>e.width?e.height*parseFloat(o)/100:e.width*parseFloat(o)/100).toFixed(n)+"px"}function convertCompositValue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=t.match(/\d+(\.\d+)?[rwhminax]+/gi);if(!Array.isArray(r))return t;var o={};r.forEach(function(t){o[t]=convertSingleValue(e,t,n)});var i=t;for(var s in o)i=i.replace(new RegExp(s,"g"),o[s]);return i}function adjustValueObjectByContainerSize(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=objectAssign({},t);for(var o in r)r[o]=convertCompositValue(e,r[o],n);return r}function getAffectedPropsByElementData(e){var t={};return objectAssign(t,e.styles),objectAssign(t,e.values),Object.keys(t)}function getChangedStyles(e,t){var n=registry.get(e);if(!n)return{};for(var r=n.queryState,o=n.jsonStats,i=n.instance,s={},a={},u=o.queries.length-1;u>=0;u--)!function(e){var n=o.queries[e],u="function"!=typeof n.conditionFunction||n.conditionFunction(t),c=r[e];r[e]=u,n.elements.forEach(function(e){s[e.selector]||(s[e.selector]={addStyle:{},removeProps:[]}),a[e.selector]||(a[e.selector]=[]);var n=s[e.selector],r=a[e.selector];if(u&&c){var o={},f=0;for(var l in e.values)if(-1===r.indexOf(l)){f++,o[l]=e.values[l],r.push(l);var h=n.removeProps.indexOf(l);-1!==h&&n.removeProps.splice(h,1)}var v={};for(var d in e.styles){var p=n.removeProps.indexOf(d);-1!==p&&(n.removeProps.splice(p,1),v[d]=e.styles[d]),-1===r.indexOf(d)&&r.push(d)}f>0&&objectAssign(v,adjustValueObjectByContainerSize(t,o,i.opts.valuePrecision)),objectAssign(s[e.selector].addStyle,v)}else if(!u&&c){var y=getAffectedPropsByElementData(e),g=_difference(y,r);s[e.selector].removeProps=_union(s[e.selector].removeProps,g)}else if(u&&!c){var m={};for(var b in e.styles)-1===r.indexOf(b)&&(m[b]=e.styles[b],r.push(b));for(var w in e.values)-1===r.indexOf(w)&&(m[w]=e.values[w],r.push(w));var j=adjustValueObjectByContainerSize(t,m,i.opts.valuePrecision);for(var C in j){var S=s[e.selector].removeProps.indexOf(C);-1!==S&&s[e.selector].removeProps.splice(S,1)}objectAssign(s[e.selector].addStyle,j)}})}(u);for(var c in s)0===Object.keys(s[c].addStyle).length&&delete s[c].addStyle,0===s[c].removeProps.length&&delete s[c].removeProps;return s}function adjustContainer(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=registry.get(e);if(n){t||(t=getContainerSize(e));var r=getChangedStyles(e,t);for(var o in r){(function(t){if(!r[t].addStyle&&!Array.isArray(r[t].removeProps))return"continue";var o=r[t].addStyle||{};Array.isArray(r[t].removeProps)&&r[t].removeProps.forEach(function(e){o[e]=""});var i=t===n.jsonStats.selector?[e]:e.querySelectorAll(t);applyStylesToElements(o,i)})(o)}}}import objectAssign from"object-assign";import WeakMap from"es6-weak-map";import _difference from"lodash/difference";import _union from"lodash/union";import ResizeObserver from"resize-observer-polyfill";import MutationObserver from"mutation-observer";import raf from"raf";var _typeof="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},asyncGenerator=function(){function e(e){this.value=e}function t(t){function n(o,i){try{var s=t[o](i),a=s.value;a instanceof e?Promise.resolve(a.value).then(function(e){n("next",e)},function(e){n("throw",e)}):r(s.done?"return":"normal",s.value)}catch(e){r("throw",e)}}function r(e,t){switch(e){case"return":o.resolve({value:t,done:!0});break;case"throw":o.reject(t);break;default:o.resolve({value:t,done:!1})}(o=o.next)?n(o.key,o.arg):i=null}var o,i;this._invoke=function(e,t){return new Promise(function(r,s){var a={key:e,arg:t,resolve:r,reject:s,next:null};i?i=i.next=a:(o=i=a,n(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},createClass=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),containerRegistry=new WeakMap,registry={set:function(e,t){containerRegistry.set(e,t)},get:function(e){return containerRegistry.get(e)},has:function(e){return containerRegistry.has(e)},delete:function(e){containerRegistry.delete(e)}};window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)});var resizeObserver=new ResizeObserver(function(e){Array.isArray(e)&&e.forEach(function(e){var t=registry.get(e.target);void 0!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&"object"===_typeof(t.instance)&&"function"==typeof t.instance.adjust?t.instance.adjust({width:e.contentRect.width,height:e.contentRect.height}):console.warn("Could not find Container instance for element:",e.target)})}),mutationObserver=new MutationObserver(function(e){e.forEach(function(e){e.removedNodes.forEach(function(e){!1!==registry.has(e)&&(resizeObserver.unobserve(e),registry.delete(e))})})}),Container=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,e),this.containerElement=t,this.processedJsonStats=processConfig(n),this.opts=objectAssign({adjustOnResize:!0,adjustOnInstantiation:!0,valuePrecision:2},o);registry.set(t,{instance:this,jsonStats:n,queryState:Array.isArray(n.queries)?n.queries.map(function(){return!1}):[]}),mutationObserver.observe(this.containerElement.parentNode,{childList:!0}),this.opts.adjustOnResize&&this.observeResize(),this.opts.adjustOnInstantiation&&raf(function(){return r.adjust()})}return createClass(e,[{key:"observeResize",value:function(){resizeObserver.observe(this.containerElement)}},{key:"unobserveResize",value:function(){resizeObserver.unobserve(this.containerElement)}},{key:"adjust",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;adjustContainer(this.containerElement,e)}}]),e}();export default Container;
function andCondition(e,t){for(var n=e.length,r=0;r<n;r++)if(!e[r](t))return!1;return!0}function orCondition(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r](t))return!0;return!1}function noCondition(){return!0}function convertConditionArrayToFunction(e){var t=e[0],n=e[1],r=e[2];if("width"===t){if(">"===n)return function(e){return e.width>parseInt(r)};if(">="===n)return function(e){return e.width>=parseInt(r)};if("<"===n)return function(e){return e.width<parseInt(r)};if("<="===n)return function(e){return e.width<=parseInt(r)}}else if("height"===t){if(">"===n)return function(e){return e.height>parseInt(r)};if(">="===n)return function(e){return e.height>=parseInt(r)};if("<"===n)return function(e){return e.height<parseInt(r)};if("<="===n)return function(e){return e.height<=parseInt(r)}}else if("aspect-ratio"===t){if(">"===n)return function(e){return e.width/e.height>parseFloat(r)};if(">="===n)return function(e){return e.width/e.height>=parseFloat(r)};if("<"===n)return function(e){return e.width/e.height<parseFloat(r)};if("<="===n)return function(e){return e.width/e.height<=parseFloat(r)}}else if("orientation"===t)return"portrait"===r?function(e){return e.height>=e.width}:function(e){return e.height<e.width};return noCondition}function getConditionFunction(e){var t=this;return Array.isArray(e)&&0!==e.length?orCondition.bind(this,e.map(function(e){return andCondition.bind(t,e.map(convertConditionArrayToFunction))})):noCondition}function processConfig(e){if("object"!==(void 0===e?"undefined":_typeof(e))||"string"!=typeof e.selector||!Array.isArray(e.queries))throw new Error("Invalid query stats object. It's either not an object, or it's missing the 'selectors' and/or the 'queries' property.");var t=objectAssign({},e);return t.queries.forEach(function(e){e.conditionFunction=getConditionFunction(e.conditions)}),t}function getContainerSize(e){return{width:e.clientWidth,height:e.clientHeight}}function applyStylesToElements(e,t){for(var n=t.length,r=0;r<n;r++)for(var o in e)t[r].style.setProperty(o,e[o])}function convertSingleValue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=t.toLowerCase().match(/^ *(\d+(\.\d+)?)([rwhminax]+) *$/i);if(!Array.isArray(r))return t;var o=r[1],i=r[3];if("rh"!==i&&"rw"!==i&&"rmin"!==i&&"rmax"!==i)return t;return("rh"===i||"rmin"===i&&e.height<e.width||"rmax"===i&&e.height>e.width?e.height*parseFloat(o)/100:e.width*parseFloat(o)/100).toFixed(n)+"px"}function convertCompositValue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=t.match(/\d+(\.\d+)?[rwhminax]+/gi);if(!Array.isArray(r))return t;var o={};r.forEach(function(t){o[t]=convertSingleValue(e,t,n)});var i=t;for(var s in o)i=i.replace(new RegExp(s,"g"),o[s]);return i}function adjustValueObjectByContainerSize(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=objectAssign({},t);for(var o in r)r[o]=convertCompositValue(e,r[o],n);return r}function getAffectedPropsByElementData(e){var t={};return objectAssign(t,e.styles),objectAssign(t,e.values),Object.keys(t)}function getChangedStyles(e,t){var n=registry.get(e);if(!n)return{};for(var r=n.queryState,o=n.jsonStats,i=n.instance,s={},a={},u=o.queries.length-1;u>=0;u--)!function(e){var n=o.queries[e],u="function"!=typeof n.conditionFunction||n.conditionFunction(t),c=r[e];r[e]=u,n.elements.forEach(function(e){s[e.selector]||(s[e.selector]={addStyle:{},removeProps:[]}),a[e.selector]||(a[e.selector]=[]);var n=s[e.selector],r=a[e.selector];if(u&&c){var o={},f=0;for(var l in e.values)if(-1===r.indexOf(l)){f++,o[l]=e.values[l],r.push(l);var h=n.removeProps.indexOf(l);-1!==h&&n.removeProps.splice(h,1)}var v={};for(var d in e.styles){var p=n.removeProps.indexOf(d);-1!==p&&(n.removeProps.splice(p,1),v[d]=e.styles[d]),-1===r.indexOf(d)&&r.push(d)}f>0&&objectAssign(v,adjustValueObjectByContainerSize(t,o,i.opts.valuePrecision)),objectAssign(s[e.selector].addStyle,v)}else if(!u&&c){var y=getAffectedPropsByElementData(e),g=_difference(y,r);s[e.selector].removeProps=_union(s[e.selector].removeProps,g)}else if(u&&!c){var m={};for(var b in e.styles)-1===r.indexOf(b)&&(m[b]=e.styles[b],r.push(b));for(var w in e.values)-1===r.indexOf(w)&&(m[w]=e.values[w],r.push(w));var j=adjustValueObjectByContainerSize(t,m,i.opts.valuePrecision);for(var C in j){var S=s[e.selector].removeProps.indexOf(C);-1!==S&&s[e.selector].removeProps.splice(S,1)}objectAssign(s[e.selector].addStyle,j)}})}(u);for(var c in s)0===Object.keys(s[c].addStyle).length&&delete s[c].addStyle,0===s[c].removeProps.length&&delete s[c].removeProps;return s}function adjustContainer(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=registry.get(e);if(n){t||(t=getContainerSize(e));var r=getChangedStyles(e,t);for(var o in r){(function(t){if(!r[t].addStyle&&!Array.isArray(r[t].removeProps))return"continue";var o=r[t].addStyle||{};Array.isArray(r[t].removeProps)&&r[t].removeProps.forEach(function(e){o[e]=""});var i=t===n.jsonStats.selector||":self"===t?[e]:e.querySelectorAll(t);applyStylesToElements(o,i)})(o)}}}import objectAssign from"object-assign";import WeakMap from"es6-weak-map";import _difference from"lodash/difference";import _union from"lodash/union";import ResizeObserver from"resize-observer-polyfill";import MutationObserver from"mutation-observer";import raf from"raf";var _typeof="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},asyncGenerator=function(){function e(e){this.value=e}function t(t){function n(o,i){try{var s=t[o](i),a=s.value;a instanceof e?Promise.resolve(a.value).then(function(e){n("next",e)},function(e){n("throw",e)}):r(s.done?"return":"normal",s.value)}catch(e){r("throw",e)}}function r(e,t){switch(e){case"return":o.resolve({value:t,done:!0});break;case"throw":o.reject(t);break;default:o.resolve({value:t,done:!1})}(o=o.next)?n(o.key,o.arg):i=null}var o,i;this._invoke=function(e,t){return new Promise(function(r,s){var a={key:e,arg:t,resolve:r,reject:s,next:null};i?i=i.next=a:(o=i=a,n(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},createClass=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),containerRegistry=new WeakMap,registry={set:function(e,t){containerRegistry.set(e,t)},get:function(e){return containerRegistry.get(e)},has:function(e){return containerRegistry.has(e)},delete:function(e){containerRegistry.delete(e)}};window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)});var resizeObserver=new ResizeObserver(function(e){Array.isArray(e)&&e.forEach(function(e){var t=registry.get(e.target);void 0!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&"object"===_typeof(t.instance)&&"function"==typeof t.instance.adjust?t.instance.adjust({width:e.contentRect.width,height:e.contentRect.height}):console.warn("Could not find Container instance for element:",e.target)})}),mutationObserver=new MutationObserver(function(e){e.forEach(function(e){e.removedNodes.forEach(function(e){!1!==registry.has(e)&&(resizeObserver.unobserve(e),registry.delete(e))})})}),Container=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,e),this.containerElement=t,this.processedJsonStats=processConfig(n),this.opts=objectAssign({adjustOnResize:!0,adjustOnInstantiation:!0,valuePrecision:2},o);registry.set(t,{instance:this,jsonStats:n,queryState:Array.isArray(n.queries)?n.queries.map(function(){return!1}):[]}),mutationObserver.observe(this.containerElement.parentNode,{childList:!0}),this.opts.adjustOnResize&&this.observeResize(),this.opts.adjustOnInstantiation&&raf(function(){return r.adjust()})}return createClass(e,[{key:"observeResize",value:function(){resizeObserver.observe(this.containerElement)}},{key:"unobserveResize",value:function(){resizeObserver.unobserve(this.containerElement)}},{key:"adjust",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;adjustContainer(this.containerElement,e)}}]),e}();export default Container;

@@ -1,1 +0,1 @@

var Container=function(){"use strict";function t(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function e(t,e){for(var n=t.length,r=0;r<n;r++)if(!t[r](e))return!1;return!0}function n(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r](e))return!0;return!1}function r(){return!0}function o(t){var e=t[0],n=t[1],o=t[2];if("width"===e){if(">"===n)return function(t){return t.width>parseInt(o)};if(">="===n)return function(t){return t.width>=parseInt(o)};if("<"===n)return function(t){return t.width<parseInt(o)};if("<="===n)return function(t){return t.width<=parseInt(o)}}else if("height"===e){if(">"===n)return function(t){return t.height>parseInt(o)};if(">="===n)return function(t){return t.height>=parseInt(o)};if("<"===n)return function(t){return t.height<parseInt(o)};if("<="===n)return function(t){return t.height<=parseInt(o)}}else if("aspect-ratio"===e){if(">"===n)return function(t){return t.width/t.height>parseFloat(o)};if(">="===n)return function(t){return t.width/t.height>=parseFloat(o)};if("<"===n)return function(t){return t.width/t.height<parseFloat(o)};if("<="===n)return function(t){return t.width/t.height<=parseFloat(o)}}else if("orientation"===e)return"portrait"===o?function(t){return t.height>=t.width}:function(t){return t.height<t.width};return r}function i(t){var i=this;return Array.isArray(t)&&0!==t.length?n.bind(this,t.map(function(t){return e.bind(i,t.map(o))})):r}function a(t){if("object"!==(void 0===t?"undefined":K(t))||"string"!=typeof t.selector||!Array.isArray(t.queries))throw new Error("Invalid query stats object. It's either not an object, or it's missing the 'selectors' and/or the 'queries' property.");var e=J({},t);return e.queries.forEach(function(t){t.conditionFunction=i(t.conditions)}),e}function s(t){return{width:t.clientWidth,height:t.clientHeight}}function u(t,e){for(var n=e.length,r=0;r<n;r++)for(var o in t)e[r].style.setProperty(o,t[o])}function c(t,e){return e={exports:{}},t(e,e.exports),e.exports}function f(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function d(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Kn;++e<n;)this.add(t[e])}function p(t,e,n,r,o){var i=-1,a=t.length;for(n||(n=gr),o||(o=[]);++i<a;){var s=t[i];e>0&&n(s)?e>1?p(s,e-1,n,r,o):cr(o,s):r||(o[o.length]=s)}return o}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=e.toLowerCase().match(/^ *(\d+(\.\d+)?)([rwhminax]+) *$/i);if(!Array.isArray(r))return e;var o=r[1],i=r[3];if("rh"!==i&&"rw"!==i&&"rmin"!==i&&"rmax"!==i)return e;return("rh"===i||"rmin"===i&&t.height<t.width||"rmax"===i&&t.height>t.width?t.height*parseFloat(o)/100:t.width*parseFloat(o)/100).toFixed(n)+"px"}function v(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=e.match(/\d+(\.\d+)?[rwhminax]+/gi);if(!Array.isArray(r))return e;var o={};r.forEach(function(e){o[e]=_(t,e,n)});var i=e;for(var a in o)i=i.replace(new RegExp(a,"g"),o[a]);return i}function y(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=J({},e);for(var o in r)r[o]=v(t,r[o],n);return r}function b(t){var e={};return J(e,t.styles),J(e,t.values),Object.keys(e)}function g(t,e){var n=Ye.get(t);if(!n)return{};for(var r=n.queryState,o=n.jsonStats,i=n.instance,a={},s={},u=o.queries.length-1;u>=0;u--)!function(t){var n=o.queries[t],u="function"!=typeof n.conditionFunction||n.conditionFunction(e),c=r[t];r[t]=u,n.elements.forEach(function(t){a[t.selector]||(a[t.selector]={addStyle:{},removeProps:[]}),s[t.selector]||(s[t.selector]=[]);var n=a[t.selector],r=s[t.selector];if(u&&c){var o={},f=0;for(var l in t.values)if(-1===r.indexOf(l)){f++,o[l]=t.values[l],r.push(l);var h=n.removeProps.indexOf(l);-1!==h&&n.removeProps.splice(h,1)}var d={};for(var p in t.styles){var _=n.removeProps.indexOf(p);-1!==_&&(n.removeProps.splice(_,1),d[p]=t.styles[p]),-1===r.indexOf(p)&&r.push(p)}f>0&&J(d,y(e,o,i.opts.valuePrecision)),J(a[t.selector].addStyle,d)}else if(!u&&c){var v=b(t),g=Fr(v,r);a[t.selector].removeProps=$r(a[t.selector].removeProps,g)}else if(u&&!c){var m={};for(var w in t.styles)-1===r.indexOf(w)&&(m[w]=t.styles[w],r.push(w));for(var O in t.values)-1===r.indexOf(O)&&(m[O]=t.values[O],r.push(O));var j=y(e,m,i.opts.valuePrecision);for(var S in j){var x=a[t.selector].removeProps.indexOf(S);-1!==x&&a[t.selector].removeProps.splice(x,1)}J(a[t.selector].addStyle,j)}})}(u);for(var c in a)0===Object.keys(a[c].addStyle).length&&delete a[c].addStyle,0===a[c].removeProps.length&&delete a[c].removeProps;return a}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ye.get(t);if(n){e||(e=s(t));var r=g(t,e);for(var o in r){(function(e){if(!r[e].addStyle&&!Array.isArray(r[e].removeProps))return"continue";var o=r[e].addStyle||{};Array.isArray(r[e].removeProps)&&r[e].removeProps.forEach(function(t){o[t]=""});var i=e===n.jsonStats.selector?[t]:t.querySelectorAll(e);u(o,i)})(o)}}}function w(t){return parseFloat(t)||0}function O(t){return Array.prototype.slice.call(arguments,1).reduce(function(e,n){return e+w(t["border-"+n+"-width"])},0)}function j(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var o=r[n],i=t["padding-"+o];e[o]=w(i)}return e}function S(t){var e=t.getBBox();return A(0,0,e.width,e.height)}function x(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return to;var r=getComputedStyle(t),o=j(r),i=o.left+o.right,a=o.top+o.bottom,s=w(r.width),u=w(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==e&&(s-=O(r,"left","right")+i),Math.round(u+a)!==n&&(u-=O(r,"top","bottom")+a)),!E(t)){var c=Math.round(s+i)-e,f=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(f)&&(u-=f)}return A(o.left,o.top,s,u)}function E(t){return t===document.documentElement}function M(t){return Gr?eo(t)?S(t):x(t):to}function P(t){var e=t.x,n=t.y,r=t.width,o=t.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Zr(a,{x:e,y:n,width:r,height:o,top:n,right:e+r,bottom:o+n,left:e}),a}function A(t,e,n,r){return{x:t,y:e,width:n,height:r}}function k(t){bo.push(t),yo||(yo=!0,po(I))}function D(t){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(t)||t}function I(){yo=!1;var t=bo;bo=[],t.sort(function(t,e){return t.uid_-e.uid_});var e=!1;t.forEach(function(t){var n=t.takeRecords();N(t),n.length&&(t.callback_(n,t),e=!0)}),e&&I()}function N(t){t.nodes_.forEach(function(e){var n=ho.get(e);n&&n.forEach(function(e){e.observer===t&&e.removeTransientObservers()})})}function T(t,e){for(var n=t;n;n=n.parentNode){var r=ho.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o],a=i.options;if(n===t||a.subtree){var s=e(a);s&&i.enqueue(s)}}}}function L(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++go}function z(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function F(t){var e=new z(t.type,t.target);return e.addedNodes=t.addedNodes.slice(),e.removedNodes=t.removedNodes.slice(),e.previousSibling=t.previousSibling,e.nextSibling=t.nextSibling,e.attributeName=t.attributeName,e.attributeNamespace=t.attributeNamespace,e.oldValue=t.oldValue,e}function C(t,e){return mo=new z(t,e)}function R(t){return wo||(wo=F(mo),wo.oldValue=t,wo)}function q(){mo=wo=void 0}function W(t){return t===wo||t===mo}function V(t,e){return t===e?t:wo&&W(t)?wo:null}function $(t,e,n){this.observer=t,this.target=e,this.options=n,this.transientObservedNodes=[]}var B,G=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,J=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(e,n){for(var r,o,i=t(e),a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var s in r)H.call(r,s)&&(i[s]=r[s]);if(G){o=G(r);for(var u=0;u<o.length;u++)U.call(r,o[u])&&(i[o[u]]=r[o[u]])}}return i},K="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},Q=(function(){function t(t){this.value=t}function e(e){function n(o,i){try{var a=e[o](i),s=a.value;s instanceof t?Promise.resolve(s.value).then(function(t){n("next",t)},function(t){n("throw",t)}):r(a.done?"return":"normal",a.value)}catch(t){r("throw",t)}}function r(t,e){switch(t){case"return":o.resolve({value:e,done:!0});break;case"throw":o.reject(e);break;default:o.resolve({value:e,done:!1})}(o=o.next)?n(o.key,o.arg):i=null}var o,i;this._invoke=function(t,e){return new Promise(function(r,a){var s={key:t,arg:e,resolve:r,reject:a,next:null};i?i=i.next=s:(o=i=s,n(t,e))})},"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(e.prototype[Symbol.asyncIterator]=function(){return this}),e.prototype.next=function(t){return this._invoke("next",t)},e.prototype.throw=function(t){return this._invoke("throw",t)},e.prototype.return=function(t){return this._invoke("return",t)}}(),function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}),X=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Y=Object.create,Z=Object.getPrototypeOf,tt={},et=function(){var t=Object.setPrototypeOf,e=arguments[0]||Y;return"function"==typeof t&&Z(t(e(null),tt))===tt},nt={function:!0,object:!0},rt=function(t){return null!=t&&nt[void 0===t?"undefined":K(t)]||!1},ot=function(t){if(null==t)throw new TypeError("Cannot use null or undefined");return t},it=Object.create;et()||(B=pt);!function(){var t,e,n;B&&(1!==B.level||(t={},e={},n={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(t){e[t]="__proto__"!==t?n:{configurable:!0,enumerable:!1,writable:!0,value:void 0}}),Object.defineProperties(t,e),Object.defineProperty(B,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:t})))}();var at,st=Object.prototype.isPrototypeOf,ut=Object.defineProperty,ct={configurable:!0,enumerable:!1,writable:!0,value:void 0};at=function(t,e){if(ot(t),null===e||rt(e))return t;throw new TypeError("Prototype must be null or an object")};var ft,lt,ht,dt,pt=function(t){var e,n;return t?(2===t.level?t.set?(n=t.set,e=function(t,e){return n.call(at(t,e),e),t}):e=function(t,e){return at(t,e).__proto__=e,t}:e=function t(e,n){var r;return at(e,n),(r=st.call(t.nullPolyfill,e))&&delete t.nullPolyfill.__proto__,null===n&&(n=t.nullPolyfill),e.__proto__=n,r&&ut(t.nullPolyfill,"__proto__",ct),e},Object.defineProperty(e,"level",{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),n={},r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(r){try{(t=r.set).call(e,n)}catch(t){}if(Object.getPrototypeOf(e)===n)return{set:t,level:2}}return e.__proto__=n,Object.getPrototypeOf(e)===n?{level:2}:(e={},e.__proto__=n,Object.getPrototypeOf(e)===n&&{level:1})}()),_t=et()?Object.setPrototypeOf:pt,vt=function(t){if(!rt(t))throw new TypeError(t+" is not an Object");return t},yt=Object.create(null),bt=Math.random,gt=function(){var t;do{t=bt().toString(36).slice(2)}while(yt[t]);return t},mt="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},wt=Object.keys,Ot=function(){try{return!0}catch(t){return!1}}()?Object.keys:function(t){return wt(null==t?t:Object(t))},jt=Math.max,St=function(){var t,e=Object.assign;return"function"==typeof e&&(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=jt(arguments.length,2);for(t=Object(ot(t)),o=function(r){try{t[r]=e[r]}catch(t){n||(n=t)}},r=1;r<i;++r)e=arguments[r],Ot(e).forEach(o);if(void 0!==n)throw n;return t},xt=Array.prototype.forEach,Et=Object.create,Mt=function(t,e){var n;for(n in t)e[n]=t[n]},Pt=function(t){var e=Et(null);return xt.call(arguments,function(t){null!=t&&Mt(Object(t),e)}),e},At=function(t){return"function"==typeof t},kt="razdwatrzy",Dt=String.prototype.indexOf,It="function"==typeof kt.contains&&!0===kt.contains("dwa")&&!1===kt.contains("foo")?String.prototype.contains:function(t){return Dt.call(this,t,arguments[1])>-1},Nt=c(function(t){(t.exports=function(t,e){var n,r,o,i,a;return arguments.length<2||"string"!=typeof t?(i=e,e=t,t=null):i=arguments[2],null==t?(n=o=!0,r=!1):(n=It.call(t,"c"),r=It.call(t,"e"),o=It.call(t,"w")),a={value:e,configurable:n,enumerable:r,writable:o},i?St(Pt(i),a):a}).gs=function(t,e,n){var r,o,i,a;return"string"!=typeof t?(i=n,n=e,e=t,t=null):i=arguments[3],null==e?e=void 0:At(e)?null==n?n=void 0:At(n)||(i=n,n=void 0):(i=e,e=n=void 0),null==t?(r=!0,o=!1):(r=It.call(t,"c"),o=It.call(t,"e")),a={get:e,set:n,configurable:r,enumerable:o},i?St(Pt(i),a):a}}),Tt=Object.prototype.toString,Lt=Tt.call(function(){return arguments}()),zt=function(t){return Tt.call(t)===Lt},Ft=Object.prototype.toString,Ct=Ft.call(""),Rt=function(t){return"string"==typeof t||t&&"object"===(void 0===t?"undefined":K(t))&&(t instanceof String||Ft.call(t)===Ct)||!1},qt=function(){return ot(this).length=0,this},Wt=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t},Vt={object:!0,symbol:!0},$t=function(t){return!!t&&("symbol"===(void 0===t?"undefined":K(t))||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))},Bt=function(t){if(!$t(t))throw new TypeError(t+" is not a symbol");return t},Gt=Object.create,Ht=Object.defineProperties,Ut=Object.defineProperty,Jt=Object.prototype,Kt=Gt(null);if("function"==typeof Symbol){ft=Symbol;try{dt=!0}catch(t){}}var Qt=function(){var t=Gt(null);return function(e){for(var n,r,o=0;t[e+(o||"")];)++o;return e+=o||"",t[e]=!0,n="@@"+e,Ut(Jt,n,Nt.gs(null,function(t){r||(r=!0,Ut(this,n,Nt(t)),r=!1)})),n}}();ht=function(t){if(this instanceof ht)throw new TypeError("Symbol is not a constructor");return lt(t)};var Xt=lt=function t(e){var n;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return dt?ft(e):(n=Gt(ht.prototype),e=void 0===e?"":String(e),Ht(n,{__description__:Nt("",e),__name__:Nt("",Qt(e))}))};Ht(lt,{for:Nt(function(t){return Kt[t]?Kt[t]:Kt[t]=lt(String(t))}),keyFor:Nt(function(t){var e;Bt(t);for(e in Kt)if(Kt[e]===t)return e}),hasInstance:Nt("",ft&&ft.hasInstance||lt("hasInstance")),isConcatSpreadable:Nt("",ft&&ft.isConcatSpreadable||lt("isConcatSpreadable")),iterator:Nt("",ft&&ft.iterator||lt("iterator")),match:Nt("",ft&&ft.match||lt("match")),replace:Nt("",ft&&ft.replace||lt("replace")),search:Nt("",ft&&ft.search||lt("search")),species:Nt("",ft&&ft.species||lt("species")),split:Nt("",ft&&ft.split||lt("split")),toPrimitive:Nt("",ft&&ft.toPrimitive||lt("toPrimitive")),toStringTag:Nt("",ft&&ft.toStringTag||lt("toStringTag")),unscopables:Nt("",ft&&ft.unscopables||lt("unscopables"))}),Ht(ht.prototype,{constructor:Nt(lt),toString:Nt("",function(){return this.__name__})}),Ht(lt.prototype,{toString:Nt(function(){return"Symbol ("+Bt(this).__description__+")"}),valueOf:Nt(function(){return Bt(this)})}),Ut(lt.prototype,lt.toPrimitive,Nt("",function(){var t=Bt(this);return"symbol"===(void 0===t?"undefined":K(t))?t:t.toString()})),Ut(lt.prototype,lt.toStringTag,Nt("c","Symbol")),Ut(ht.prototype,lt.toStringTag,Nt("c",lt.prototype[lt.toStringTag])),Ut(ht.prototype,lt.toPrimitive,Nt("c",lt.prototype[lt.toPrimitive]));var Yt,Zt="function"!=typeof Symbol||!Vt[K(Symbol.iterator)]||!Vt[K(Symbol.toPrimitive)]||!Vt[K(Symbol.toStringTag)]?Xt:Symbol,te=Object.prototype.toString,ee=te.call(function(){}),ne=function(t){return"function"==typeof t&&te.call(t)===ee},re=function(){var t=Math.sign;return"function"==typeof t&&1===t(10)&&-1===t(-20)}()?Math.sign:function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1},oe=Math.abs,ie=Math.floor,ae=function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?re(t)*ie(oe(t)):t},se=Math.max,ue=function(t){return se(0,ae(t))},ce=Zt.iterator,fe=Array.isArray,le=Function.prototype.call,he={configurable:!0,enumerable:!0,writable:!0,value:null},de=Object.defineProperty,pe=function(){var t,e,n=Array.from;return"function"==typeof n&&(t=["raz","dwa"],e=n(t),Boolean(e&&e!==t&&"dwa"===e[1]))}()?Array.from:function(t){var e,n,r,o,i,a,s,u,c,f,l=arguments[1],h=arguments[2];if(t=Object(ot(t)),null!=l&&Wt(l),this&&this!==Array&&ne(this))e=this;else{if(!l){if(zt(t))return 1!==(i=t.length)?Array.apply(null,t):(o=new Array(1),o[0]=t[0],o);if(fe(t)){for(o=new Array(i=t.length),n=0;n<i;++n)o[n]=t[n];return o}}o=[]}if(!fe(t))if(void 0!==(c=t[ce])){for(s=Wt(c).call(t),e&&(o=new e),u=s.next(),n=0;!u.done;)f=l?le.call(l,h,u.value,n):u.value,e?(he.value=f,de(o,n,he)):o[n]=f,u=s.next(),++n;i=n}else if(Rt(t)){for(i=t.length,e&&(o=new e),n=0,r=0;n<i;++n)f=t[n],n+1<i&&(a=f.charCodeAt(0))>=55296&&a<=56319&&(f+=t[++n]),f=l?le.call(l,h,f,r):f,e?(he.value=f,de(o,r,he)):o[r]=f,++r;i=r}if(void 0===i)for(i=ue(t.length),e&&(o=new e(i)),n=0;n<i;++n)f=l?le.call(l,h,t[n],n):t[n],e?(he.value=f,de(o,n,he)):o[n]=f;return e&&(he.value=null,o.length=i),o},_e=function(t){var e=Object(ot(t)),n=arguments[1],r=Object(arguments[2]);if(e!==t&&!n)return e;var o={};return n?pe(n,function(e){(r.ensure||e in t)&&(o[e]=t[e])}):St(o,t),o},ve=Function.prototype.bind,ye=Function.prototype.call,be=Object.keys,ge=Object.prototype.propertyIsEnumerable,me=function(t,e){return function(n,r){var o,i=arguments[2],a=arguments[3];return n=Object(ot(n)),Wt(r),o=be(n),a&&o.sort("function"==typeof a?ve.call(a,n):void 0),"function"!=typeof t&&(t=o[t]),ye.call(t,o,function(t,o){return ge.call(n,t)?ye.call(r,i,n[t],t,n,o):e})}}("forEach"),we=Function.prototype.call,Oe=function(t,e){var n={},r=arguments[2];return Wt(e),me(t,function(t,o,i,a){n[o]=we.call(e,r,t,o,i,a)}),n},je=Wt,Se=Function.prototype.bind,xe=Object.defineProperty,Ee=Object.prototype.hasOwnProperty;Yt=function(t,e,n){var r,o=ot(e)&&je(e.value);return r=_e(e),delete r.writable,delete r.value,r.get=function(){return!n.overwriteDefinition&&Ee.call(this,t)?o:(e.value=Se.call(o,n.resolveContext?n.resolveContext(this):this),xe(this,t,e),this[t])},r};var Me,Pe=Object.defineProperty,Ae=Object.defineProperties,ke=Me=function(t,e){if(!(this instanceof Me))return new Me(t,e);Ae(this,{__list__:Nt("w",ot(t)),__context__:Nt("w",e),__nextIndex__:Nt("w",0)}),e&&(Wt(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))};Ae(Me.prototype,St({constructor:Nt(Me),_next:Nt(function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()}),next:Nt(function(){return this._createResult(this._next())}),_createResult:Nt(function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}}),_resolve:Nt(function(t){return this.__list__[t]}),_unBind:Nt(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:Nt(function(){return"[object Iterator]"})},function(t){var e=Pt(arguments[1]);return null!=e.resolveContext&&Wt(e.resolveContext),Oe(t,function(t,n){return Yt(n,t,e)})}({_onAdd:Nt(function(t){t>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(e,n){e>=t&&(this.__redo__[n]=++e)},this),this.__redo__.push(t)):Pe(this,"__redo__",Nt("c",[t])))}),_onDelete:Nt(function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach(function(e,n){e>t&&(this.__redo__[n]=--e)},this)))}),_onClear:Nt(function(){this.__redo__&&qt.call(this.__redo__),this.__nextIndex__=0})}))),Pe(Me.prototype,Zt.iterator,Nt(function(){return this})),Pe(Me.prototype,Zt.toStringTag,Nt("","Iterator"));var De,Ie=c(function(t){var e,n=Object.defineProperty;e=t.exports=function(t,r){if(!(this instanceof e))return new e(t,r);ke.call(this,t),r=r?It.call(r,"key+value")?"key+value":It.call(r,"key")?"key":"value":"value",n(this,"__kind__",Nt("",r))},_t&&_t(e,ke),e.prototype=Object.create(ke.prototype,{constructor:Nt(e),_resolve:Nt(function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}),toString:Nt(function(){return"[object Array Iterator]"})})}),Ne=c(function(t){var e,n=Object.defineProperty;e=t.exports=function(t){if(!(this instanceof e))return new e(t);t=String(t),ke.call(this,t),n(this,"__length__",Nt("",t.length))},_t&&_t(e,ke),e.prototype=Object.create(ke.prototype,{constructor:Nt(e),_next:Nt(function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()}),_resolve:Nt(function(t){var e,n=this.__list__[t];return this.__nextIndex__===this.__length__?n:(e=n.charCodeAt(0))>=55296&&e<=56319?n+this.__list__[this.__nextIndex__++]:n}),toString:Nt(function(){return"[object String Iterator]"})})}),Te=Zt.iterator,Le=Array.isArray,ze=function(t){return null!=t&&(!!Le(t)||(!!Rt(t)||(!!zt(t)||"function"==typeof t[Te])))},Fe=function(t){if(!ze(t))throw new TypeError(t+" is not iterable");return t},Ce=Zt.iterator,Re=function(t){return"function"==typeof Fe(t)[Ce]?t[Ce]():zt(t)?new Ie(t):Rt(t)?new Ne(t):new Ie(t)},qe=Array.isArray,We=Function.prototype.call,Ve=Array.prototype.some,$e=function(t,e){var n,r,o,i,a,s,u,c,f=arguments[2];if(qe(t)||zt(t)?n="array":Rt(t)?n="string":t=Re(t),Wt(e),o=function(){i=!0},"array"!==n)if("string"!==n)for(r=t.next();!r.done;){if(We.call(e,f,r.value,o),i)return;r=t.next()}else for(s=t.length,a=0;a<s&&(u=t[a],a+1<s&&(c=u.charCodeAt(0))>=55296&&c<=56319&&(u+=t[++a]),We.call(e,f,u,o),!i);++a);else Ve.call(t,function(t){if(We.call(e,f,t,o),i)return!0})},Be="function"==typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap),Ge=Zt.toStringTag,He=Array.isArray,Ue=Object.defineProperty,Je=Object.prototype.hasOwnProperty,Ke=Object.getPrototypeOf,Qe=De=function(){var t,e=arguments[0];if(!(this instanceof De))throw new TypeError("Constructor requires 'new'");return t=Be&&_t&&WeakMap!==De?_t(new WeakMap,Ke(this)):this,null!=e&&(He(e)||(e=Re(e))),Ue(t,"__weakMapData__",Nt("c","$weakMap$"+gt())),e?($e(e,function(e){ot(e),t.set(e[0],e[1])}),t):t};Be&&(_t&&_t(De,WeakMap),De.prototype=Object.create(WeakMap.prototype,{constructor:Nt(De)})),Object.defineProperties(De.prototype,{delete:Nt(function(t){return!!Je.call(vt(t),this.__weakMapData__)&&(delete t[this.__weakMapData__],!0)}),get:Nt(function(t){if(Je.call(vt(t),this.__weakMapData__))return t[this.__weakMapData__]}),has:Nt(function(t){return Je.call(vt(t),this.__weakMapData__)}),set:Nt(function(t,e){return Ue(vt(t),this.__weakMapData__,Nt("c",e)),this}),toString:Nt(function(){return"[object WeakMap]"})}),Ue(De.prototype,Ge,Nt("c","WeakMap"));var Xe=new(function(){var t,e;if("function"!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return"[object WeakMap]"===String(t)&&"function"==typeof t.set&&t.set({},1)===t&&"function"==typeof t.delete&&"function"==typeof t.has&&"one"===t.get(e)}()?WeakMap:Qe),Ye={set:function(t,e){Xe.set(t,e)},get:function(t){return Xe.get(t)},has:function(t){return Xe.has(t)},delete:function(t){Xe.delete(t)}},Ze="object"==K(mt)&&mt&&mt.Object===Object&&mt,tn="object"==("undefined"==typeof self?"undefined":K(self))&&self&&self.Object===Object&&self,en=Ze||tn||Function("return this")(),nn=en.Symbol,rn=Object.prototype,on=rn.hasOwnProperty,an=rn.toString,sn=nn?nn.toStringTag:void 0,un=function(t){var e=on.call(t,sn),n=t[sn];try{t[sn]=void 0;var r=!0}catch(t){}var o=an.call(t);return r&&(e?t[sn]=n:delete t[sn]),o},cn=Object.prototype.toString,fn=function(t){return cn.call(t)},ln="[object Null]",hn="[object Undefined]",dn=nn?nn.toStringTag:void 0,pn=function(t){return null==t?void 0===t?hn:ln:dn&&dn in Object(t)?un(t):fn(t)},_n=function(t){var e=void 0===t?"undefined":K(t);return null!=t&&("object"==e||"function"==e)},vn="[object AsyncFunction]",yn="[object Function]",bn="[object GeneratorFunction]",gn="[object Proxy]",mn=function(t){if(!_n(t))return!1;var e=pn(t);return e==yn||e==bn||e==vn||e==gn},wn=en["__core-js_shared__"],On=function(){var t=/[^.]+$/.exec(wn&&wn.keys&&wn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),jn=function(t){return!!On&&On in t},Sn=Function.prototype.toString,xn=function(t){if(null!=t){try{return Sn.call(t)}catch(t){}try{return t+""}catch(t){}}return""},En=/[\\^$.*+?()[\]{}|]/g,Mn=/^\[object .+?Constructor\]$/,Pn=Function.prototype,An=Object.prototype,kn=Pn.toString,Dn=An.hasOwnProperty,In=RegExp("^"+kn.call(Dn).replace(En,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nn=function(t){return!(!_n(t)||jn(t))&&(mn(t)?In:Mn).test(xn(t))},Tn=function(t,e){return null==t?void 0:t[e]},Ln=function(t,e){var n=Tn(t,e);return Nn(n)?n:void 0},zn=Ln(Object,"create"),Fn="__lodash_hash_undefined__",Cn=Object.prototype.hasOwnProperty,Rn=Object.prototype.hasOwnProperty,qn="__lodash_hash_undefined__";f.prototype.clear=function(){this.__data__=zn?zn(null):{},this.size=0},f.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},f.prototype.get=function(t){var e=this.__data__;if(zn){var n=e[t];return n===Fn?void 0:n}return Cn.call(e,t)?e[t]:void 0},f.prototype.has=function(t){var e=this.__data__;return zn?void 0!==e[t]:Rn.call(e,t)},f.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=zn&&void 0===e?qn:e,this};var Wn=f,Vn=function(t,e){return t===e||t!==t&&e!==e},$n=function(t,e){for(var n=t.length;n--;)if(Vn(t[n][0],e))return n;return-1},Bn=Array.prototype.splice;l.prototype.clear=function(){this.__data__=[],this.size=0},l.prototype.delete=function(t){var e=this.__data__,n=$n(e,t);return!(n<0||(n==e.length-1?e.pop():Bn.call(e,n,1),--this.size,0))},l.prototype.get=function(t){var e=this.__data__,n=$n(e,t);return n<0?void 0:e[n][1]},l.prototype.has=function(t){return $n(this.__data__,t)>-1},l.prototype.set=function(t,e){var n=this.__data__,r=$n(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Gn=l,Hn=Ln(en,"Map"),Un=function(t){var e=void 0===t?"undefined":K(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},Jn=function(t,e){var n=t.__data__;return Un(e)?n["string"==typeof e?"string":"hash"]:n.map};h.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Hn||Gn),string:new Wn}},h.prototype.delete=function(t){var e=Jn(this,t).delete(t);return this.size-=e?1:0,e},h.prototype.get=function(t){return Jn(this,t).get(t)},h.prototype.has=function(t){return Jn(this,t).has(t)},h.prototype.set=function(t,e){var n=Jn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Kn=h,Qn="__lodash_hash_undefined__";d.prototype.add=d.prototype.push=function(t){return this.__data__.set(t,Qn),this},d.prototype.has=function(t){return this.__data__.has(t)};var Xn=d,Yn=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1},Zn=function(t){return t!==t},tr=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1},er=function(t,e,n){return e===e?tr(t,e,n):Yn(t,Zn,n)},nr=function(t,e){return!!(null==t?0:t.length)&&er(t,e,0)>-1},rr=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1},or=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},ir=function(t){return function(e){return t(e)}},ar=function(t,e){return t.has(e)},sr=200,ur=function(t,e,n,r){var o=-1,i=nr,a=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=or(e,ir(n))),r?(i=rr,a=!1):e.length>=sr&&(i=ar,a=!1,e=new Xn(e));t:for(;++o<s;){var f=t[o],l=null==n?f:n(f);if(f=r||0!==f?f:0,a&&l===l){for(var h=c;h--;)if(e[h]===l)continue t;u.push(f)}else i(e,l,r)||u.push(f)}return u},cr=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},fr=function(t){return null!=t&&"object"==(void 0===t?"undefined":K(t))},lr="[object Arguments]",hr=function(t){return fr(t)&&pn(t)==lr},dr=Object.prototype,pr=dr.hasOwnProperty,_r=dr.propertyIsEnumerable,vr=hr(function(){return arguments}())?hr:function(t){return fr(t)&&pr.call(t,"callee")&&!_r.call(t,"callee")},yr=Array.isArray,br=nn?nn.isConcatSpreadable:void 0,gr=function(t){return yr(t)||vr(t)||!!(br&&t&&t[br])},mr=p,wr=function(t){return t},Or=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},jr=Math.max,Sr=function(t,e,n){return e=jr(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=jr(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(a),Or(t,this,s)}},xr=function(t){return function(){return t}},Er=function(){try{var t=Ln(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Mr=Er?function(t,e){return Er(t,"toString",{configurable:!0,enumerable:!1,value:xr(e),writable:!0})}:wr,Pr=800,Ar=16,kr=Date.now,Dr=function(t){var e=0,n=0;return function(){var r=kr(),o=Ar-(r-n);if(n=r,o>0){if(++e>=Pr)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Mr),Ir=function(t,e){return Dr(Sr(t,e,wr),t+"")},Nr=9007199254740991,Tr=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Nr},Lr=function(t){return null!=t&&Tr(t.length)&&!mn(t)},zr=function(t){return fr(t)&&Lr(t)},Fr=Ir(function(t,e){return zr(t)?ur(t,mr(e,1,zr,!0)):[]}),Cr=Ln(en,"Set"),Rr=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},qr=Cr&&1/Rr(new Cr([,-0]))[1]==1/0?function(t){return new Cr(t)}:function(){},Wr=200,Vr=function(t,e,n){var r=-1,o=nr,i=t.length,a=!0,s=[],u=s;if(n)a=!1,o=rr;else if(i>=Wr){var c=e?null:qr(t);if(c)return Rr(c);a=!1,o=ar,u=new Xn}else u=e?[]:s;t:for(;++r<i;){var f=t[r],l=e?e(f):f;if(f=n||0!==f?f:0,a&&l===l){for(var h=u.length;h--;)if(u[h]===l)continue t;e&&u.push(l),s.push(f)}else o(u,l,n)||(u!==s&&u.push(l),s.push(f))}return s},$r=Ir(function(t){return Vr(mr(t,1,zr,!0))}),Br=function(){function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return"undefined"!=typeof Map?Map:function(){function e(){this.__entries__=[]}var n={size:{}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var o=r[n];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,n),e}()}(),Gr="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Hr="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},Ur=2,Jr=function(t,e){function n(){i&&(i=!1,t()),a&&o()}function r(){Hr(n)}function o(){var t=Date.now();if(i){if(t-s<Ur)return;a=!0}else i=!0,a=!1,setTimeout(r,e);s=t}var i=!1,a=!1,s=0;return o},Kr=["top","right","bottom","left","width","height","size","weight"],Qr="undefined"!=typeof navigator&&/Trident\/.*rv:11/.test(navigator.userAgent),Xr="undefined"!=typeof MutationObserver&&!Qr,Yr=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Jr(this.refresh.bind(this),20)};Yr.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},Yr.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},Yr.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},Yr.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},Yr.prototype.connect_=function(){Gr&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Xr?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},Yr.prototype.disconnect_=function(){Gr&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},Yr.prototype.onTransitionEnd_=function(t){var e=t.propertyName;Kr.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},Yr.getInstance=function(){return this.instance_||(this.instance_=new Yr),this.instance_},Yr.instance_=null;var Zr=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},to=A(0,0,0,0),eo="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof SVGGraphicsElement}:function(t){return t instanceof SVGElement&&"function"==typeof t.getBBox},no=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=A(0,0,0,0),this.target=t};no.prototype.isActive=function(){var t=M(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},no.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var ro=function(t,e){var n=P(e);Zr(this,{target:t,contentRect:n})},oo=function(t,e,n){if("function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.activeObservations_=[],this.observations_=new Br,this.callback_=t,this.controller_=e,this.callbackCtx_=n};oo.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new no(t)),this.controller_.addObserver(this),this.controller_.refresh())}},oo.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},oo.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},oo.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},oo.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new ro(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},oo.prototype.clearActive=function(){this.activeObservations_.splice(0)},oo.prototype.hasActive=function(){return this.activeObservations_.length>0};var io="undefined"!=typeof WeakMap?new WeakMap:new Br,ao=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Yr.getInstance(),r=new oo(e,n,this);io.set(this,r)};["observe","unobserve","disconnect"].forEach(function(t){ao.prototype[t]=function(){return(e=io.get(this))[t].apply(e,arguments);var e}});var so="undefined"!=typeof ResizeObserver?ResizeObserver:ao,uo=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,co=window.WeakMap;if(void 0===co){var fo=Object.defineProperty,lo=Date.now()%1e9;(co=function(){this.name="__st"+(1e9*Math.random()>>>0)+lo+++"__"}).prototype={set:function(t,e){var n=t[this.name];return n&&n[0]===t?n[1]=e:fo(t,this.name,{value:[t,e],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){var e=t[this.name];if(!e)return!1;var n=e[0]===t;return e[0]=e[1]=void 0,n},has:function(t){var e=t[this.name];return!!e&&e[0]===t}}}var ho=new co,po=window.msSetImmediate;if(!po){var _o=[],vo=String(Math.random());window.addEventListener("message",function(t){if(t.data===vo){var e=_o;_o=[],e.forEach(function(t){t()})}}),po=function(t){_o.push(t),window.postMessage(vo,"*")}}var yo=!1,bo=[],go=0;L.prototype={observe:function(t,e){if(t=D(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var n=ho.get(t);n||ho.set(t,n=[]);for(var r,o=0;o<n.length;o++)if(n[o].observer===this){(r=n[o]).removeListeners(),r.options=e;break}r||(r=new $(this,t,e),n.push(r),this.nodes_.push(t)),r.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=ho.get(t),n=0;n<e.length;n++){var r=e[n];if(r.observer===this){r.removeListeners(),e.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}};var mo,wo;$.prototype={enqueue:function(t){var e=this.observer.records_,n=e.length;if(e.length>0){var r=V(e[n-1],t);if(r)return void(e[n-1]=r)}else k(this.observer);e[n]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=ho.get(t);e||ho.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=ho.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}},this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,n=t.relatedNode.namespaceURI,r=t.target;(o=new C("attributes",r)).attributeName=e,o.attributeNamespace=n;i=null;"undefined"!=typeof MutationEvent&&t.attrChange===MutationEvent.ADDITION||(i=t.prevValue),T(r,function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(n)))return t.attributeOldValue?R(i):o});break;case"DOMCharacterDataModified":var o=C("characterData",r=t.target),i=t.prevValue;T(r,function(t){if(t.characterData)return t.characterDataOldValue?R(i):o});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var a,s,r=t.relatedNode,u=t.target;"DOMNodeInserted"===t.type?(a=[u],s=[]):(a=[],s=[u]);var c=u.previousSibling,f=u.nextSibling;(o=C("childList",r)).addedNodes=a,o.removedNodes=s,o.previousSibling=c,o.nextSibling=f,T(r,function(t){if(t.childList)return o})}q()}},uo||(uo=L);for(var Oo=uo,jo=c(function(t){(function(){var e,n,r,o,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-i)/1e6},n=process.hrtime,o=(e=function(){var t;return 1e9*(t=n())[0]+t[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(mt)}),So="undefined"==typeof window?mt:window,xo=["moz","webkit"],Eo="AnimationFrame",Mo=So["request"+Eo],Po=So["cancel"+Eo]||So["cancelRequest"+Eo],Ao=0;!Mo&&Ao<xo.length;Ao++)Mo=So[xo[Ao]+"Request"+Eo],Po=So[xo[Ao]+"Cancel"+Eo]||So[xo[Ao]+"CancelRequest"+Eo];if(!Mo||!Po){var ko=0,Do=0,Io=[];Mo=function(t){if(0===Io.length){var e=jo(),n=Math.max(0,1e3/60-(e-ko));ko=n+e,setTimeout(function(){var t=Io.slice(0);Io.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(ko)}catch(t){setTimeout(function(){throw t},0)}},Math.round(n))}return Io.push({handle:++Do,callback:t,cancelled:!1}),Do},Po=function(t){for(var e=0;e<Io.length;e++)Io[e].handle===t&&(Io[e].cancelled=!0)}}var No=function(t){return Mo.call(So,t)};No.cancel=function(){Po.apply(So,arguments)},No.polyfill=function(){So.requestAnimationFrame=Mo,So.cancelAnimationFrame=Po},window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)});var To=new so(function(t){Array.isArray(t)&&t.forEach(function(t){var e=Ye.get(t.target);void 0!==e&&"object"===(void 0===e?"undefined":K(e))&&"object"===K(e.instance)&&"function"==typeof e.instance.adjust?e.instance.adjust({width:t.contentRect.width,height:t.contentRect.height}):console.warn("Could not find Container instance for element:",t.target)})}),Lo=new Oo(function(t){t.forEach(function(t){t.removedNodes.forEach(function(t){!1!==Ye.has(t)&&(To.unobserve(t),Ye.delete(t))})})});return function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q(this,t),this.containerElement=e,this.processedJsonStats=a(n),this.opts=J({adjustOnResize:!0,adjustOnInstantiation:!0,valuePrecision:2},o);Ye.set(e,{instance:this,jsonStats:n,queryState:Array.isArray(n.queries)?n.queries.map(function(){return!1}):[]}),Lo.observe(this.containerElement.parentNode,{childList:!0}),this.opts.adjustOnResize&&this.observeResize(),this.opts.adjustOnInstantiation&&No(function(){return r.adjust()})}return X(t,[{key:"observeResize",value:function(){To.observe(this.containerElement)}},{key:"unobserveResize",value:function(){To.unobserve(this.containerElement)}},{key:"adjust",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;m(this.containerElement,t)}}]),t}()}();
var Container=function(){"use strict";function t(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function e(t,e){for(var n=t.length,r=0;r<n;r++)if(!t[r](e))return!1;return!0}function n(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r](e))return!0;return!1}function r(){return!0}function o(t){var e=t[0],n=t[1],o=t[2];if("width"===e){if(">"===n)return function(t){return t.width>parseInt(o)};if(">="===n)return function(t){return t.width>=parseInt(o)};if("<"===n)return function(t){return t.width<parseInt(o)};if("<="===n)return function(t){return t.width<=parseInt(o)}}else if("height"===e){if(">"===n)return function(t){return t.height>parseInt(o)};if(">="===n)return function(t){return t.height>=parseInt(o)};if("<"===n)return function(t){return t.height<parseInt(o)};if("<="===n)return function(t){return t.height<=parseInt(o)}}else if("aspect-ratio"===e){if(">"===n)return function(t){return t.width/t.height>parseFloat(o)};if(">="===n)return function(t){return t.width/t.height>=parseFloat(o)};if("<"===n)return function(t){return t.width/t.height<parseFloat(o)};if("<="===n)return function(t){return t.width/t.height<=parseFloat(o)}}else if("orientation"===e)return"portrait"===o?function(t){return t.height>=t.width}:function(t){return t.height<t.width};return r}function i(t){var i=this;return Array.isArray(t)&&0!==t.length?n.bind(this,t.map(function(t){return e.bind(i,t.map(o))})):r}function a(t){if("object"!==(void 0===t?"undefined":K(t))||"string"!=typeof t.selector||!Array.isArray(t.queries))throw new Error("Invalid query stats object. It's either not an object, or it's missing the 'selectors' and/or the 'queries' property.");var e=J({},t);return e.queries.forEach(function(t){t.conditionFunction=i(t.conditions)}),e}function s(t){return{width:t.clientWidth,height:t.clientHeight}}function u(t,e){for(var n=e.length,r=0;r<n;r++)for(var o in t)e[r].style.setProperty(o,t[o])}function c(t,e){return e={exports:{}},t(e,e.exports),e.exports}function f(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function d(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Kn;++e<n;)this.add(t[e])}function p(t,e,n,r,o){var i=-1,a=t.length;for(n||(n=gr),o||(o=[]);++i<a;){var s=t[i];e>0&&n(s)?e>1?p(s,e-1,n,r,o):cr(o,s):r||(o[o.length]=s)}return o}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=e.toLowerCase().match(/^ *(\d+(\.\d+)?)([rwhminax]+) *$/i);if(!Array.isArray(r))return e;var o=r[1],i=r[3];if("rh"!==i&&"rw"!==i&&"rmin"!==i&&"rmax"!==i)return e;return("rh"===i||"rmin"===i&&t.height<t.width||"rmax"===i&&t.height>t.width?t.height*parseFloat(o)/100:t.width*parseFloat(o)/100).toFixed(n)+"px"}function v(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=e.match(/\d+(\.\d+)?[rwhminax]+/gi);if(!Array.isArray(r))return e;var o={};r.forEach(function(e){o[e]=_(t,e,n)});var i=e;for(var a in o)i=i.replace(new RegExp(a,"g"),o[a]);return i}function y(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=J({},e);for(var o in r)r[o]=v(t,r[o],n);return r}function b(t){var e={};return J(e,t.styles),J(e,t.values),Object.keys(e)}function g(t,e){var n=Ye.get(t);if(!n)return{};for(var r=n.queryState,o=n.jsonStats,i=n.instance,a={},s={},u=o.queries.length-1;u>=0;u--)!function(t){var n=o.queries[t],u="function"!=typeof n.conditionFunction||n.conditionFunction(e),c=r[t];r[t]=u,n.elements.forEach(function(t){a[t.selector]||(a[t.selector]={addStyle:{},removeProps:[]}),s[t.selector]||(s[t.selector]=[]);var n=a[t.selector],r=s[t.selector];if(u&&c){var o={},f=0;for(var l in t.values)if(-1===r.indexOf(l)){f++,o[l]=t.values[l],r.push(l);var h=n.removeProps.indexOf(l);-1!==h&&n.removeProps.splice(h,1)}var d={};for(var p in t.styles){var _=n.removeProps.indexOf(p);-1!==_&&(n.removeProps.splice(_,1),d[p]=t.styles[p]),-1===r.indexOf(p)&&r.push(p)}f>0&&J(d,y(e,o,i.opts.valuePrecision)),J(a[t.selector].addStyle,d)}else if(!u&&c){var v=b(t),g=Fr(v,r);a[t.selector].removeProps=$r(a[t.selector].removeProps,g)}else if(u&&!c){var m={};for(var w in t.styles)-1===r.indexOf(w)&&(m[w]=t.styles[w],r.push(w));for(var O in t.values)-1===r.indexOf(O)&&(m[O]=t.values[O],r.push(O));var j=y(e,m,i.opts.valuePrecision);for(var S in j){var x=a[t.selector].removeProps.indexOf(S);-1!==x&&a[t.selector].removeProps.splice(x,1)}J(a[t.selector].addStyle,j)}})}(u);for(var c in a)0===Object.keys(a[c].addStyle).length&&delete a[c].addStyle,0===a[c].removeProps.length&&delete a[c].removeProps;return a}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ye.get(t);if(n){e||(e=s(t));var r=g(t,e);for(var o in r){(function(e){if(!r[e].addStyle&&!Array.isArray(r[e].removeProps))return"continue";var o=r[e].addStyle||{};Array.isArray(r[e].removeProps)&&r[e].removeProps.forEach(function(t){o[t]=""});var i=e===n.jsonStats.selector||":self"===e?[t]:t.querySelectorAll(e);u(o,i)})(o)}}}function w(t){return parseFloat(t)||0}function O(t){return Array.prototype.slice.call(arguments,1).reduce(function(e,n){return e+w(t["border-"+n+"-width"])},0)}function j(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var o=r[n],i=t["padding-"+o];e[o]=w(i)}return e}function S(t){var e=t.getBBox();return A(0,0,e.width,e.height)}function x(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return to;var r=getComputedStyle(t),o=j(r),i=o.left+o.right,a=o.top+o.bottom,s=w(r.width),u=w(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==e&&(s-=O(r,"left","right")+i),Math.round(u+a)!==n&&(u-=O(r,"top","bottom")+a)),!E(t)){var c=Math.round(s+i)-e,f=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(f)&&(u-=f)}return A(o.left,o.top,s,u)}function E(t){return t===document.documentElement}function M(t){return Gr?eo(t)?S(t):x(t):to}function P(t){var e=t.x,n=t.y,r=t.width,o=t.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Zr(a,{x:e,y:n,width:r,height:o,top:n,right:e+r,bottom:o+n,left:e}),a}function A(t,e,n,r){return{x:t,y:e,width:n,height:r}}function k(t){bo.push(t),yo||(yo=!0,po(I))}function D(t){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(t)||t}function I(){yo=!1;var t=bo;bo=[],t.sort(function(t,e){return t.uid_-e.uid_});var e=!1;t.forEach(function(t){var n=t.takeRecords();N(t),n.length&&(t.callback_(n,t),e=!0)}),e&&I()}function N(t){t.nodes_.forEach(function(e){var n=ho.get(e);n&&n.forEach(function(e){e.observer===t&&e.removeTransientObservers()})})}function T(t,e){for(var n=t;n;n=n.parentNode){var r=ho.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o],a=i.options;if(n===t||a.subtree){var s=e(a);s&&i.enqueue(s)}}}}function L(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++go}function z(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function F(t){var e=new z(t.type,t.target);return e.addedNodes=t.addedNodes.slice(),e.removedNodes=t.removedNodes.slice(),e.previousSibling=t.previousSibling,e.nextSibling=t.nextSibling,e.attributeName=t.attributeName,e.attributeNamespace=t.attributeNamespace,e.oldValue=t.oldValue,e}function C(t,e){return mo=new z(t,e)}function R(t){return wo||(wo=F(mo),wo.oldValue=t,wo)}function q(){mo=wo=void 0}function W(t){return t===wo||t===mo}function V(t,e){return t===e?t:wo&&W(t)?wo:null}function $(t,e,n){this.observer=t,this.target=e,this.options=n,this.transientObservedNodes=[]}var B,G=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,J=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(e,n){for(var r,o,i=t(e),a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var s in r)H.call(r,s)&&(i[s]=r[s]);if(G){o=G(r);for(var u=0;u<o.length;u++)U.call(r,o[u])&&(i[o[u]]=r[o[u]])}}return i},K="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},Q=(function(){function t(t){this.value=t}function e(e){function n(o,i){try{var a=e[o](i),s=a.value;s instanceof t?Promise.resolve(s.value).then(function(t){n("next",t)},function(t){n("throw",t)}):r(a.done?"return":"normal",a.value)}catch(t){r("throw",t)}}function r(t,e){switch(t){case"return":o.resolve({value:e,done:!0});break;case"throw":o.reject(e);break;default:o.resolve({value:e,done:!1})}(o=o.next)?n(o.key,o.arg):i=null}var o,i;this._invoke=function(t,e){return new Promise(function(r,a){var s={key:t,arg:e,resolve:r,reject:a,next:null};i?i=i.next=s:(o=i=s,n(t,e))})},"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(e.prototype[Symbol.asyncIterator]=function(){return this}),e.prototype.next=function(t){return this._invoke("next",t)},e.prototype.throw=function(t){return this._invoke("throw",t)},e.prototype.return=function(t){return this._invoke("return",t)}}(),function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}),X=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Y=Object.create,Z=Object.getPrototypeOf,tt={},et=function(){var t=Object.setPrototypeOf,e=arguments[0]||Y;return"function"==typeof t&&Z(t(e(null),tt))===tt},nt={function:!0,object:!0},rt=function(t){return null!=t&&nt[void 0===t?"undefined":K(t)]||!1},ot=function(t){if(null==t)throw new TypeError("Cannot use null or undefined");return t},it=Object.create;et()||(B=pt);!function(){var t,e,n;B&&(1!==B.level||(t={},e={},n={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(t){e[t]="__proto__"!==t?n:{configurable:!0,enumerable:!1,writable:!0,value:void 0}}),Object.defineProperties(t,e),Object.defineProperty(B,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:t})))}();var at,st=Object.prototype.isPrototypeOf,ut=Object.defineProperty,ct={configurable:!0,enumerable:!1,writable:!0,value:void 0};at=function(t,e){if(ot(t),null===e||rt(e))return t;throw new TypeError("Prototype must be null or an object")};var ft,lt,ht,dt,pt=function(t){var e,n;return t?(2===t.level?t.set?(n=t.set,e=function(t,e){return n.call(at(t,e),e),t}):e=function(t,e){return at(t,e).__proto__=e,t}:e=function t(e,n){var r;return at(e,n),(r=st.call(t.nullPolyfill,e))&&delete t.nullPolyfill.__proto__,null===n&&(n=t.nullPolyfill),e.__proto__=n,r&&ut(t.nullPolyfill,"__proto__",ct),e},Object.defineProperty(e,"level",{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),n={},r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(r){try{(t=r.set).call(e,n)}catch(t){}if(Object.getPrototypeOf(e)===n)return{set:t,level:2}}return e.__proto__=n,Object.getPrototypeOf(e)===n?{level:2}:(e={},e.__proto__=n,Object.getPrototypeOf(e)===n&&{level:1})}()),_t=et()?Object.setPrototypeOf:pt,vt=function(t){if(!rt(t))throw new TypeError(t+" is not an Object");return t},yt=Object.create(null),bt=Math.random,gt=function(){var t;do{t=bt().toString(36).slice(2)}while(yt[t]);return t},mt="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},wt=Object.keys,Ot=function(){try{return!0}catch(t){return!1}}()?Object.keys:function(t){return wt(null==t?t:Object(t))},jt=Math.max,St=function(){var t,e=Object.assign;return"function"==typeof e&&(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=jt(arguments.length,2);for(t=Object(ot(t)),o=function(r){try{t[r]=e[r]}catch(t){n||(n=t)}},r=1;r<i;++r)e=arguments[r],Ot(e).forEach(o);if(void 0!==n)throw n;return t},xt=Array.prototype.forEach,Et=Object.create,Mt=function(t,e){var n;for(n in t)e[n]=t[n]},Pt=function(t){var e=Et(null);return xt.call(arguments,function(t){null!=t&&Mt(Object(t),e)}),e},At=function(t){return"function"==typeof t},kt="razdwatrzy",Dt=String.prototype.indexOf,It="function"==typeof kt.contains&&!0===kt.contains("dwa")&&!1===kt.contains("foo")?String.prototype.contains:function(t){return Dt.call(this,t,arguments[1])>-1},Nt=c(function(t){(t.exports=function(t,e){var n,r,o,i,a;return arguments.length<2||"string"!=typeof t?(i=e,e=t,t=null):i=arguments[2],null==t?(n=o=!0,r=!1):(n=It.call(t,"c"),r=It.call(t,"e"),o=It.call(t,"w")),a={value:e,configurable:n,enumerable:r,writable:o},i?St(Pt(i),a):a}).gs=function(t,e,n){var r,o,i,a;return"string"!=typeof t?(i=n,n=e,e=t,t=null):i=arguments[3],null==e?e=void 0:At(e)?null==n?n=void 0:At(n)||(i=n,n=void 0):(i=e,e=n=void 0),null==t?(r=!0,o=!1):(r=It.call(t,"c"),o=It.call(t,"e")),a={get:e,set:n,configurable:r,enumerable:o},i?St(Pt(i),a):a}}),Tt=Object.prototype.toString,Lt=Tt.call(function(){return arguments}()),zt=function(t){return Tt.call(t)===Lt},Ft=Object.prototype.toString,Ct=Ft.call(""),Rt=function(t){return"string"==typeof t||t&&"object"===(void 0===t?"undefined":K(t))&&(t instanceof String||Ft.call(t)===Ct)||!1},qt=function(){return ot(this).length=0,this},Wt=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t},Vt={object:!0,symbol:!0},$t=function(t){return!!t&&("symbol"===(void 0===t?"undefined":K(t))||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))},Bt=function(t){if(!$t(t))throw new TypeError(t+" is not a symbol");return t},Gt=Object.create,Ht=Object.defineProperties,Ut=Object.defineProperty,Jt=Object.prototype,Kt=Gt(null);if("function"==typeof Symbol){ft=Symbol;try{dt=!0}catch(t){}}var Qt=function(){var t=Gt(null);return function(e){for(var n,r,o=0;t[e+(o||"")];)++o;return e+=o||"",t[e]=!0,n="@@"+e,Ut(Jt,n,Nt.gs(null,function(t){r||(r=!0,Ut(this,n,Nt(t)),r=!1)})),n}}();ht=function(t){if(this instanceof ht)throw new TypeError("Symbol is not a constructor");return lt(t)};var Xt=lt=function t(e){var n;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return dt?ft(e):(n=Gt(ht.prototype),e=void 0===e?"":String(e),Ht(n,{__description__:Nt("",e),__name__:Nt("",Qt(e))}))};Ht(lt,{for:Nt(function(t){return Kt[t]?Kt[t]:Kt[t]=lt(String(t))}),keyFor:Nt(function(t){var e;Bt(t);for(e in Kt)if(Kt[e]===t)return e}),hasInstance:Nt("",ft&&ft.hasInstance||lt("hasInstance")),isConcatSpreadable:Nt("",ft&&ft.isConcatSpreadable||lt("isConcatSpreadable")),iterator:Nt("",ft&&ft.iterator||lt("iterator")),match:Nt("",ft&&ft.match||lt("match")),replace:Nt("",ft&&ft.replace||lt("replace")),search:Nt("",ft&&ft.search||lt("search")),species:Nt("",ft&&ft.species||lt("species")),split:Nt("",ft&&ft.split||lt("split")),toPrimitive:Nt("",ft&&ft.toPrimitive||lt("toPrimitive")),toStringTag:Nt("",ft&&ft.toStringTag||lt("toStringTag")),unscopables:Nt("",ft&&ft.unscopables||lt("unscopables"))}),Ht(ht.prototype,{constructor:Nt(lt),toString:Nt("",function(){return this.__name__})}),Ht(lt.prototype,{toString:Nt(function(){return"Symbol ("+Bt(this).__description__+")"}),valueOf:Nt(function(){return Bt(this)})}),Ut(lt.prototype,lt.toPrimitive,Nt("",function(){var t=Bt(this);return"symbol"===(void 0===t?"undefined":K(t))?t:t.toString()})),Ut(lt.prototype,lt.toStringTag,Nt("c","Symbol")),Ut(ht.prototype,lt.toStringTag,Nt("c",lt.prototype[lt.toStringTag])),Ut(ht.prototype,lt.toPrimitive,Nt("c",lt.prototype[lt.toPrimitive]));var Yt,Zt="function"!=typeof Symbol||!Vt[K(Symbol.iterator)]||!Vt[K(Symbol.toPrimitive)]||!Vt[K(Symbol.toStringTag)]?Xt:Symbol,te=Object.prototype.toString,ee=te.call(function(){}),ne=function(t){return"function"==typeof t&&te.call(t)===ee},re=function(){var t=Math.sign;return"function"==typeof t&&1===t(10)&&-1===t(-20)}()?Math.sign:function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1},oe=Math.abs,ie=Math.floor,ae=function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?re(t)*ie(oe(t)):t},se=Math.max,ue=function(t){return se(0,ae(t))},ce=Zt.iterator,fe=Array.isArray,le=Function.prototype.call,he={configurable:!0,enumerable:!0,writable:!0,value:null},de=Object.defineProperty,pe=function(){var t,e,n=Array.from;return"function"==typeof n&&(t=["raz","dwa"],e=n(t),Boolean(e&&e!==t&&"dwa"===e[1]))}()?Array.from:function(t){var e,n,r,o,i,a,s,u,c,f,l=arguments[1],h=arguments[2];if(t=Object(ot(t)),null!=l&&Wt(l),this&&this!==Array&&ne(this))e=this;else{if(!l){if(zt(t))return 1!==(i=t.length)?Array.apply(null,t):(o=new Array(1),o[0]=t[0],o);if(fe(t)){for(o=new Array(i=t.length),n=0;n<i;++n)o[n]=t[n];return o}}o=[]}if(!fe(t))if(void 0!==(c=t[ce])){for(s=Wt(c).call(t),e&&(o=new e),u=s.next(),n=0;!u.done;)f=l?le.call(l,h,u.value,n):u.value,e?(he.value=f,de(o,n,he)):o[n]=f,u=s.next(),++n;i=n}else if(Rt(t)){for(i=t.length,e&&(o=new e),n=0,r=0;n<i;++n)f=t[n],n+1<i&&(a=f.charCodeAt(0))>=55296&&a<=56319&&(f+=t[++n]),f=l?le.call(l,h,f,r):f,e?(he.value=f,de(o,r,he)):o[r]=f,++r;i=r}if(void 0===i)for(i=ue(t.length),e&&(o=new e(i)),n=0;n<i;++n)f=l?le.call(l,h,t[n],n):t[n],e?(he.value=f,de(o,n,he)):o[n]=f;return e&&(he.value=null,o.length=i),o},_e=function(t){var e=Object(ot(t)),n=arguments[1],r=Object(arguments[2]);if(e!==t&&!n)return e;var o={};return n?pe(n,function(e){(r.ensure||e in t)&&(o[e]=t[e])}):St(o,t),o},ve=Function.prototype.bind,ye=Function.prototype.call,be=Object.keys,ge=Object.prototype.propertyIsEnumerable,me=function(t,e){return function(n,r){var o,i=arguments[2],a=arguments[3];return n=Object(ot(n)),Wt(r),o=be(n),a&&o.sort("function"==typeof a?ve.call(a,n):void 0),"function"!=typeof t&&(t=o[t]),ye.call(t,o,function(t,o){return ge.call(n,t)?ye.call(r,i,n[t],t,n,o):e})}}("forEach"),we=Function.prototype.call,Oe=function(t,e){var n={},r=arguments[2];return Wt(e),me(t,function(t,o,i,a){n[o]=we.call(e,r,t,o,i,a)}),n},je=Wt,Se=Function.prototype.bind,xe=Object.defineProperty,Ee=Object.prototype.hasOwnProperty;Yt=function(t,e,n){var r,o=ot(e)&&je(e.value);return r=_e(e),delete r.writable,delete r.value,r.get=function(){return!n.overwriteDefinition&&Ee.call(this,t)?o:(e.value=Se.call(o,n.resolveContext?n.resolveContext(this):this),xe(this,t,e),this[t])},r};var Me,Pe=Object.defineProperty,Ae=Object.defineProperties,ke=Me=function(t,e){if(!(this instanceof Me))return new Me(t,e);Ae(this,{__list__:Nt("w",ot(t)),__context__:Nt("w",e),__nextIndex__:Nt("w",0)}),e&&(Wt(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))};Ae(Me.prototype,St({constructor:Nt(Me),_next:Nt(function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()}),next:Nt(function(){return this._createResult(this._next())}),_createResult:Nt(function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}}),_resolve:Nt(function(t){return this.__list__[t]}),_unBind:Nt(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:Nt(function(){return"[object Iterator]"})},function(t){var e=Pt(arguments[1]);return null!=e.resolveContext&&Wt(e.resolveContext),Oe(t,function(t,n){return Yt(n,t,e)})}({_onAdd:Nt(function(t){t>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(e,n){e>=t&&(this.__redo__[n]=++e)},this),this.__redo__.push(t)):Pe(this,"__redo__",Nt("c",[t])))}),_onDelete:Nt(function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach(function(e,n){e>t&&(this.__redo__[n]=--e)},this)))}),_onClear:Nt(function(){this.__redo__&&qt.call(this.__redo__),this.__nextIndex__=0})}))),Pe(Me.prototype,Zt.iterator,Nt(function(){return this})),Pe(Me.prototype,Zt.toStringTag,Nt("","Iterator"));var De,Ie=c(function(t){var e,n=Object.defineProperty;e=t.exports=function(t,r){if(!(this instanceof e))return new e(t,r);ke.call(this,t),r=r?It.call(r,"key+value")?"key+value":It.call(r,"key")?"key":"value":"value",n(this,"__kind__",Nt("",r))},_t&&_t(e,ke),e.prototype=Object.create(ke.prototype,{constructor:Nt(e),_resolve:Nt(function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}),toString:Nt(function(){return"[object Array Iterator]"})})}),Ne=c(function(t){var e,n=Object.defineProperty;e=t.exports=function(t){if(!(this instanceof e))return new e(t);t=String(t),ke.call(this,t),n(this,"__length__",Nt("",t.length))},_t&&_t(e,ke),e.prototype=Object.create(ke.prototype,{constructor:Nt(e),_next:Nt(function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()}),_resolve:Nt(function(t){var e,n=this.__list__[t];return this.__nextIndex__===this.__length__?n:(e=n.charCodeAt(0))>=55296&&e<=56319?n+this.__list__[this.__nextIndex__++]:n}),toString:Nt(function(){return"[object String Iterator]"})})}),Te=Zt.iterator,Le=Array.isArray,ze=function(t){return null!=t&&(!!Le(t)||(!!Rt(t)||(!!zt(t)||"function"==typeof t[Te])))},Fe=function(t){if(!ze(t))throw new TypeError(t+" is not iterable");return t},Ce=Zt.iterator,Re=function(t){return"function"==typeof Fe(t)[Ce]?t[Ce]():zt(t)?new Ie(t):Rt(t)?new Ne(t):new Ie(t)},qe=Array.isArray,We=Function.prototype.call,Ve=Array.prototype.some,$e=function(t,e){var n,r,o,i,a,s,u,c,f=arguments[2];if(qe(t)||zt(t)?n="array":Rt(t)?n="string":t=Re(t),Wt(e),o=function(){i=!0},"array"!==n)if("string"!==n)for(r=t.next();!r.done;){if(We.call(e,f,r.value,o),i)return;r=t.next()}else for(s=t.length,a=0;a<s&&(u=t[a],a+1<s&&(c=u.charCodeAt(0))>=55296&&c<=56319&&(u+=t[++a]),We.call(e,f,u,o),!i);++a);else Ve.call(t,function(t){if(We.call(e,f,t,o),i)return!0})},Be="function"==typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap),Ge=Zt.toStringTag,He=Array.isArray,Ue=Object.defineProperty,Je=Object.prototype.hasOwnProperty,Ke=Object.getPrototypeOf,Qe=De=function(){var t,e=arguments[0];if(!(this instanceof De))throw new TypeError("Constructor requires 'new'");return t=Be&&_t&&WeakMap!==De?_t(new WeakMap,Ke(this)):this,null!=e&&(He(e)||(e=Re(e))),Ue(t,"__weakMapData__",Nt("c","$weakMap$"+gt())),e?($e(e,function(e){ot(e),t.set(e[0],e[1])}),t):t};Be&&(_t&&_t(De,WeakMap),De.prototype=Object.create(WeakMap.prototype,{constructor:Nt(De)})),Object.defineProperties(De.prototype,{delete:Nt(function(t){return!!Je.call(vt(t),this.__weakMapData__)&&(delete t[this.__weakMapData__],!0)}),get:Nt(function(t){if(Je.call(vt(t),this.__weakMapData__))return t[this.__weakMapData__]}),has:Nt(function(t){return Je.call(vt(t),this.__weakMapData__)}),set:Nt(function(t,e){return Ue(vt(t),this.__weakMapData__,Nt("c",e)),this}),toString:Nt(function(){return"[object WeakMap]"})}),Ue(De.prototype,Ge,Nt("c","WeakMap"));var Xe=new(function(){var t,e;if("function"!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return"[object WeakMap]"===String(t)&&"function"==typeof t.set&&t.set({},1)===t&&"function"==typeof t.delete&&"function"==typeof t.has&&"one"===t.get(e)}()?WeakMap:Qe),Ye={set:function(t,e){Xe.set(t,e)},get:function(t){return Xe.get(t)},has:function(t){return Xe.has(t)},delete:function(t){Xe.delete(t)}},Ze="object"==K(mt)&&mt&&mt.Object===Object&&mt,tn="object"==("undefined"==typeof self?"undefined":K(self))&&self&&self.Object===Object&&self,en=Ze||tn||Function("return this")(),nn=en.Symbol,rn=Object.prototype,on=rn.hasOwnProperty,an=rn.toString,sn=nn?nn.toStringTag:void 0,un=function(t){var e=on.call(t,sn),n=t[sn];try{t[sn]=void 0;var r=!0}catch(t){}var o=an.call(t);return r&&(e?t[sn]=n:delete t[sn]),o},cn=Object.prototype.toString,fn=function(t){return cn.call(t)},ln="[object Null]",hn="[object Undefined]",dn=nn?nn.toStringTag:void 0,pn=function(t){return null==t?void 0===t?hn:ln:dn&&dn in Object(t)?un(t):fn(t)},_n=function(t){var e=void 0===t?"undefined":K(t);return null!=t&&("object"==e||"function"==e)},vn="[object AsyncFunction]",yn="[object Function]",bn="[object GeneratorFunction]",gn="[object Proxy]",mn=function(t){if(!_n(t))return!1;var e=pn(t);return e==yn||e==bn||e==vn||e==gn},wn=en["__core-js_shared__"],On=function(){var t=/[^.]+$/.exec(wn&&wn.keys&&wn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),jn=function(t){return!!On&&On in t},Sn=Function.prototype.toString,xn=function(t){if(null!=t){try{return Sn.call(t)}catch(t){}try{return t+""}catch(t){}}return""},En=/[\\^$.*+?()[\]{}|]/g,Mn=/^\[object .+?Constructor\]$/,Pn=Function.prototype,An=Object.prototype,kn=Pn.toString,Dn=An.hasOwnProperty,In=RegExp("^"+kn.call(Dn).replace(En,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nn=function(t){return!(!_n(t)||jn(t))&&(mn(t)?In:Mn).test(xn(t))},Tn=function(t,e){return null==t?void 0:t[e]},Ln=function(t,e){var n=Tn(t,e);return Nn(n)?n:void 0},zn=Ln(Object,"create"),Fn="__lodash_hash_undefined__",Cn=Object.prototype.hasOwnProperty,Rn=Object.prototype.hasOwnProperty,qn="__lodash_hash_undefined__";f.prototype.clear=function(){this.__data__=zn?zn(null):{},this.size=0},f.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},f.prototype.get=function(t){var e=this.__data__;if(zn){var n=e[t];return n===Fn?void 0:n}return Cn.call(e,t)?e[t]:void 0},f.prototype.has=function(t){var e=this.__data__;return zn?void 0!==e[t]:Rn.call(e,t)},f.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=zn&&void 0===e?qn:e,this};var Wn=f,Vn=function(t,e){return t===e||t!==t&&e!==e},$n=function(t,e){for(var n=t.length;n--;)if(Vn(t[n][0],e))return n;return-1},Bn=Array.prototype.splice;l.prototype.clear=function(){this.__data__=[],this.size=0},l.prototype.delete=function(t){var e=this.__data__,n=$n(e,t);return!(n<0||(n==e.length-1?e.pop():Bn.call(e,n,1),--this.size,0))},l.prototype.get=function(t){var e=this.__data__,n=$n(e,t);return n<0?void 0:e[n][1]},l.prototype.has=function(t){return $n(this.__data__,t)>-1},l.prototype.set=function(t,e){var n=this.__data__,r=$n(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Gn=l,Hn=Ln(en,"Map"),Un=function(t){var e=void 0===t?"undefined":K(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},Jn=function(t,e){var n=t.__data__;return Un(e)?n["string"==typeof e?"string":"hash"]:n.map};h.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Hn||Gn),string:new Wn}},h.prototype.delete=function(t){var e=Jn(this,t).delete(t);return this.size-=e?1:0,e},h.prototype.get=function(t){return Jn(this,t).get(t)},h.prototype.has=function(t){return Jn(this,t).has(t)},h.prototype.set=function(t,e){var n=Jn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Kn=h,Qn="__lodash_hash_undefined__";d.prototype.add=d.prototype.push=function(t){return this.__data__.set(t,Qn),this},d.prototype.has=function(t){return this.__data__.has(t)};var Xn=d,Yn=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1},Zn=function(t){return t!==t},tr=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1},er=function(t,e,n){return e===e?tr(t,e,n):Yn(t,Zn,n)},nr=function(t,e){return!!(null==t?0:t.length)&&er(t,e,0)>-1},rr=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1},or=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},ir=function(t){return function(e){return t(e)}},ar=function(t,e){return t.has(e)},sr=200,ur=function(t,e,n,r){var o=-1,i=nr,a=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=or(e,ir(n))),r?(i=rr,a=!1):e.length>=sr&&(i=ar,a=!1,e=new Xn(e));t:for(;++o<s;){var f=t[o],l=null==n?f:n(f);if(f=r||0!==f?f:0,a&&l===l){for(var h=c;h--;)if(e[h]===l)continue t;u.push(f)}else i(e,l,r)||u.push(f)}return u},cr=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},fr=function(t){return null!=t&&"object"==(void 0===t?"undefined":K(t))},lr="[object Arguments]",hr=function(t){return fr(t)&&pn(t)==lr},dr=Object.prototype,pr=dr.hasOwnProperty,_r=dr.propertyIsEnumerable,vr=hr(function(){return arguments}())?hr:function(t){return fr(t)&&pr.call(t,"callee")&&!_r.call(t,"callee")},yr=Array.isArray,br=nn?nn.isConcatSpreadable:void 0,gr=function(t){return yr(t)||vr(t)||!!(br&&t&&t[br])},mr=p,wr=function(t){return t},Or=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},jr=Math.max,Sr=function(t,e,n){return e=jr(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=jr(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(a),Or(t,this,s)}},xr=function(t){return function(){return t}},Er=function(){try{var t=Ln(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Mr=Er?function(t,e){return Er(t,"toString",{configurable:!0,enumerable:!1,value:xr(e),writable:!0})}:wr,Pr=800,Ar=16,kr=Date.now,Dr=function(t){var e=0,n=0;return function(){var r=kr(),o=Ar-(r-n);if(n=r,o>0){if(++e>=Pr)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Mr),Ir=function(t,e){return Dr(Sr(t,e,wr),t+"")},Nr=9007199254740991,Tr=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Nr},Lr=function(t){return null!=t&&Tr(t.length)&&!mn(t)},zr=function(t){return fr(t)&&Lr(t)},Fr=Ir(function(t,e){return zr(t)?ur(t,mr(e,1,zr,!0)):[]}),Cr=Ln(en,"Set"),Rr=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},qr=Cr&&1/Rr(new Cr([,-0]))[1]==1/0?function(t){return new Cr(t)}:function(){},Wr=200,Vr=function(t,e,n){var r=-1,o=nr,i=t.length,a=!0,s=[],u=s;if(n)a=!1,o=rr;else if(i>=Wr){var c=e?null:qr(t);if(c)return Rr(c);a=!1,o=ar,u=new Xn}else u=e?[]:s;t:for(;++r<i;){var f=t[r],l=e?e(f):f;if(f=n||0!==f?f:0,a&&l===l){for(var h=u.length;h--;)if(u[h]===l)continue t;e&&u.push(l),s.push(f)}else o(u,l,n)||(u!==s&&u.push(l),s.push(f))}return s},$r=Ir(function(t){return Vr(mr(t,1,zr,!0))}),Br=function(){function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return"undefined"!=typeof Map?Map:function(){function e(){this.__entries__=[]}var n={size:{}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var o=r[n];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,n),e}()}(),Gr="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Hr="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},Ur=2,Jr=function(t,e){function n(){i&&(i=!1,t()),a&&o()}function r(){Hr(n)}function o(){var t=Date.now();if(i){if(t-s<Ur)return;a=!0}else i=!0,a=!1,setTimeout(r,e);s=t}var i=!1,a=!1,s=0;return o},Kr=["top","right","bottom","left","width","height","size","weight"],Qr="undefined"!=typeof navigator&&/Trident\/.*rv:11/.test(navigator.userAgent),Xr="undefined"!=typeof MutationObserver&&!Qr,Yr=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Jr(this.refresh.bind(this),20)};Yr.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},Yr.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},Yr.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},Yr.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},Yr.prototype.connect_=function(){Gr&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Xr?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},Yr.prototype.disconnect_=function(){Gr&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},Yr.prototype.onTransitionEnd_=function(t){var e=t.propertyName;Kr.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},Yr.getInstance=function(){return this.instance_||(this.instance_=new Yr),this.instance_},Yr.instance_=null;var Zr=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},to=A(0,0,0,0),eo="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof SVGGraphicsElement}:function(t){return t instanceof SVGElement&&"function"==typeof t.getBBox},no=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=A(0,0,0,0),this.target=t};no.prototype.isActive=function(){var t=M(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},no.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var ro=function(t,e){var n=P(e);Zr(this,{target:t,contentRect:n})},oo=function(t,e,n){if("function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.activeObservations_=[],this.observations_=new Br,this.callback_=t,this.controller_=e,this.callbackCtx_=n};oo.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new no(t)),this.controller_.addObserver(this),this.controller_.refresh())}},oo.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},oo.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},oo.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},oo.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new ro(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},oo.prototype.clearActive=function(){this.activeObservations_.splice(0)},oo.prototype.hasActive=function(){return this.activeObservations_.length>0};var io="undefined"!=typeof WeakMap?new WeakMap:new Br,ao=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Yr.getInstance(),r=new oo(e,n,this);io.set(this,r)};["observe","unobserve","disconnect"].forEach(function(t){ao.prototype[t]=function(){return(e=io.get(this))[t].apply(e,arguments);var e}});var so="undefined"!=typeof ResizeObserver?ResizeObserver:ao,uo=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,co=window.WeakMap;if(void 0===co){var fo=Object.defineProperty,lo=Date.now()%1e9;(co=function(){this.name="__st"+(1e9*Math.random()>>>0)+lo+++"__"}).prototype={set:function(t,e){var n=t[this.name];return n&&n[0]===t?n[1]=e:fo(t,this.name,{value:[t,e],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){var e=t[this.name];if(!e)return!1;var n=e[0]===t;return e[0]=e[1]=void 0,n},has:function(t){var e=t[this.name];return!!e&&e[0]===t}}}var ho=new co,po=window.msSetImmediate;if(!po){var _o=[],vo=String(Math.random());window.addEventListener("message",function(t){if(t.data===vo){var e=_o;_o=[],e.forEach(function(t){t()})}}),po=function(t){_o.push(t),window.postMessage(vo,"*")}}var yo=!1,bo=[],go=0;L.prototype={observe:function(t,e){if(t=D(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var n=ho.get(t);n||ho.set(t,n=[]);for(var r,o=0;o<n.length;o++)if(n[o].observer===this){(r=n[o]).removeListeners(),r.options=e;break}r||(r=new $(this,t,e),n.push(r),this.nodes_.push(t)),r.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=ho.get(t),n=0;n<e.length;n++){var r=e[n];if(r.observer===this){r.removeListeners(),e.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}};var mo,wo;$.prototype={enqueue:function(t){var e=this.observer.records_,n=e.length;if(e.length>0){var r=V(e[n-1],t);if(r)return void(e[n-1]=r)}else k(this.observer);e[n]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=ho.get(t);e||ho.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=ho.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}},this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,n=t.relatedNode.namespaceURI,r=t.target;(o=new C("attributes",r)).attributeName=e,o.attributeNamespace=n;i=null;"undefined"!=typeof MutationEvent&&t.attrChange===MutationEvent.ADDITION||(i=t.prevValue),T(r,function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(n)))return t.attributeOldValue?R(i):o});break;case"DOMCharacterDataModified":var o=C("characterData",r=t.target),i=t.prevValue;T(r,function(t){if(t.characterData)return t.characterDataOldValue?R(i):o});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var a,s,r=t.relatedNode,u=t.target;"DOMNodeInserted"===t.type?(a=[u],s=[]):(a=[],s=[u]);var c=u.previousSibling,f=u.nextSibling;(o=C("childList",r)).addedNodes=a,o.removedNodes=s,o.previousSibling=c,o.nextSibling=f,T(r,function(t){if(t.childList)return o})}q()}},uo||(uo=L);for(var Oo=uo,jo=c(function(t){(function(){var e,n,r,o,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-i)/1e6},n=process.hrtime,o=(e=function(){var t;return 1e9*(t=n())[0]+t[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(mt)}),So="undefined"==typeof window?mt:window,xo=["moz","webkit"],Eo="AnimationFrame",Mo=So["request"+Eo],Po=So["cancel"+Eo]||So["cancelRequest"+Eo],Ao=0;!Mo&&Ao<xo.length;Ao++)Mo=So[xo[Ao]+"Request"+Eo],Po=So[xo[Ao]+"Cancel"+Eo]||So[xo[Ao]+"CancelRequest"+Eo];if(!Mo||!Po){var ko=0,Do=0,Io=[];Mo=function(t){if(0===Io.length){var e=jo(),n=Math.max(0,1e3/60-(e-ko));ko=n+e,setTimeout(function(){var t=Io.slice(0);Io.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(ko)}catch(t){setTimeout(function(){throw t},0)}},Math.round(n))}return Io.push({handle:++Do,callback:t,cancelled:!1}),Do},Po=function(t){for(var e=0;e<Io.length;e++)Io[e].handle===t&&(Io[e].cancelled=!0)}}var No=function(t){return Mo.call(So,t)};No.cancel=function(){Po.apply(So,arguments)},No.polyfill=function(){So.requestAnimationFrame=Mo,So.cancelAnimationFrame=Po},window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)});var To=new so(function(t){Array.isArray(t)&&t.forEach(function(t){var e=Ye.get(t.target);void 0!==e&&"object"===(void 0===e?"undefined":K(e))&&"object"===K(e.instance)&&"function"==typeof e.instance.adjust?e.instance.adjust({width:t.contentRect.width,height:t.contentRect.height}):console.warn("Could not find Container instance for element:",t.target)})}),Lo=new Oo(function(t){t.forEach(function(t){t.removedNodes.forEach(function(t){!1!==Ye.has(t)&&(To.unobserve(t),Ye.delete(t))})})});return function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q(this,t),this.containerElement=e,this.processedJsonStats=a(n),this.opts=J({adjustOnResize:!0,adjustOnInstantiation:!0,valuePrecision:2},o);Ye.set(e,{instance:this,jsonStats:n,queryState:Array.isArray(n.queries)?n.queries.map(function(){return!1}):[]}),Lo.observe(this.containerElement.parentNode,{childList:!0}),this.opts.adjustOnResize&&this.observeResize(),this.opts.adjustOnInstantiation&&No(function(){return r.adjust()})}return X(t,[{key:"observeResize",value:function(){To.observe(this.containerElement)}},{key:"unobserveResize",value:function(){To.unobserve(this.containerElement)}},{key:"adjust",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;m(this.containerElement,t)}}]),t}()}();

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "2.1.0",
"version": "2.2.0-alpha.2c38f0a5",
"author": "Viktor Hubert <rpgmorpheus@gmail.com>",

@@ -16,3 +16,6 @@ "engines": {

"prebuild": "flow check",
"build": "rollup -c rollup/rollup.esm.js && rollup -c rollup/rollup.cjs.js && rollup -c rollup/rollup.umd.js",
"build:esm": "BABEL_ENV=production rollup -c rollup/rollup.esm.js",
"build:cjs": "BABEL_ENV=production rollup -c rollup/rollup.cjs.js",
"build:umd": "BABEL_ENV=production rollup -c rollup/rollup.umd.js",
"build": "npm-run-all build:*",
"size": "size-limit"

@@ -27,2 +30,3 @@ },

"jest": "^21.1.0",
"npm-run-all": "^4.1.2",
"rollup": "^0.50.0",

@@ -34,3 +38,3 @@ "rollup-plugin-babel": "^3.0.2",

"rollup-plugin-uglify": "^2.0.1",
"size-limit": "^0.11.4",
"size-limit": "^0.14.0",
"uglify-es": "^3.0.26"

@@ -66,17 +70,3 @@ },

"access": "public"
},
"size-limit": [
{
"path": "dist/bundle.cjs.js",
"limit": "14.21KB"
},
{
"path": "dist/bundle.esm.js",
"limit": "14.21KB"
},
{
"path": "dist/bundle.umd.js",
"limit": "14KB"
}
]
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc