function _typeof(l){"@babel/helpers - typeof";_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"===typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m};return _typeof(l)}
if(/msie [0-9]{1}/i.test(navigator.userAgent)||/Trident\/[7]{1}/i.test(navigator.userAgent))(function(){function l(m,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var y=document.createEvent("CustomEvent");y.initCustomEvent(m,e.bubbles,e.cancelable,e.detail);return y}if("function"===typeof window.CustomEvent)return!1;l.prototype=window.Event.prototype;window.CustomEvent=l})(),function(){function l(b){try{return b.defaultView&&b.defaultView.frameElement||null}catch(a){return null}}function m(b){this.time=
b.time;this.target=b.target;this.rootBounds=r(b.rootBounds);this.boundingClientRect=r(b.boundingClientRect);this.intersectionRect=r(b.intersectionRect||g());this.isIntersecting=!!b.intersectionRect;b=this.boundingClientRect;b=b.width*b.height;var a=this.intersectionRect;a=a.width*a.height;this.intersectionRatio=b?Number((a/b).toFixed(4)):this.isIntersecting?1:0}function e(b,a){a=a||{};if("function"!=typeof b)throw Error("callback must be a function");if(a.root&&1!=a.root.nodeType&&9!=a.root.nodeType)throw Error("root must be a Document or Element");
this._checkForIntersections=y(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=b;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(a.rootMargin);this.thresholds=this._initThresholds(a.threshold);this.root=a.root||null;this.rootMargin=this._rootMarginValues.map(function(c){return c.value+c.unit}).join(" ");this._monitoringDocuments=[];this._monitoringUnsubscribes=[]}function y(b,a){var c=null;return function(){c||=setTimeout(function(){b();
c=null},a)}}function C(b,a,c,d){"function"==typeof b.addEventListener?b.addEventListener(a,c,d||!1):"function"==typeof b.attachEvent&&b.attachEvent("on"+a,c)}function q(b,a,c,d){"function"==typeof b.removeEventListener?b.removeEventListener(a,c,d||!1):"function"==typeof b.detatchEvent&&b.detatchEvent("on"+a,c)}function n(b){try{var a=b.getBoundingClientRect()}catch(c){}if(!a)return g();a.width&&a.height||(a={top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.right-a.left,height:a.bottom-
a.top});return a}function g(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function r(b){return!b||"x"in b?b:{top:b.top,y:b.top,bottom:b.bottom,left:b.left,x:b.left,right:b.right,width:b.width,height:b.height}}function z(b,a){var c=a.top-b.top;b=a.left-b.left;return{top:c,left:b,height:a.height,width:a.width,bottom:c+a.height,right:b+a.width}}function h(b,a){for(;a;){if(a==b)return!0;a=u(a)}return!1}function u(b){var a=b.parentNode;if(9==b.nodeType&&b!=t)return l(b);a&&a.assignedSlot&&(a=
a.assignedSlot.parentNode);return a&&11==a.nodeType&&a.host?a.host:a}function v(b){return b&&9===b.nodeType}if("object"===("undefined"===typeof window?"undefined":_typeof(window)))if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}});
else{var t=function(b){for(var a=l(b);a;)b=a.ownerDocument,a=l(b);return b}(window.document),w=[],A=null,x=null;e.prototype.THROTTLE_TIMEOUT=100;e.prototype.POLL_INTERVAL=null;e.prototype.USE_MUTATION_OBSERVER=!0;e._setupCrossOriginUpdater=function(){A||=function(b,a){x=b&&a?z(b,a):g();w.forEach(function(c){c._checkForIntersections()})};return A};e._resetCrossOriginUpdater=function(){x=A=null};e.prototype.observe=function(b){if(!this._observationTargets.some(function(a){return a.element==b})){if(!b||
1!=b.nodeType)throw Error("target must be an Element");this._registerInstance();this._observationTargets.push({element:b,entry:null});this._monitorIntersections(b.ownerDocument);this._checkForIntersections()}};e.prototype.unobserve=function(b){this._observationTargets=this._observationTargets.filter(function(a){return a.element!=b});this._unmonitorIntersections(b.ownerDocument);0==this._observationTargets.length&&this._unregisterInstance()};e.prototype.disconnect=function(){this._observationTargets=
[];this._unmonitorAllIntersections();this._unregisterInstance()};e.prototype.takeRecords=function(){var b=this._queuedEntries.slice();this._queuedEntries=[];return b};e.prototype._initThresholds=function(b){b=b||[0];Array.isArray(b)||(b=[b]);return b.sort().filter(function(a,c,d){if("number"!=typeof a||isNaN(a)||0>a||1<a)throw Error("threshold must be a number between 0 and 1 inclusively");return a!==d[c-1]})};e.prototype._parseRootMargin=function(b){b=(b||"0px").split(/\s+/).map(function(a){a=/^(-?\d*\.?\d+)(px|%)$/.exec(a);
if(!a)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(a[1]),unit:a[2]}});b[1]=b[1]||b[0];b[2]=b[2]||b[0];b[3]=b[3]||b[1];return b};e.prototype._monitorIntersections=function(b){var a=b.defaultView;if(a&&-1==this._monitoringDocuments.indexOf(b)){var c=this._checkForIntersections,d=null,f=null;this.POLL_INTERVAL?d=a.setInterval(c,this.POLL_INTERVAL):(C(a,"resize",c,!0),C(b,"scroll",c,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in a&&(f=new a.MutationObserver(c),
f.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0})));this._monitoringDocuments.push(b);this._monitoringUnsubscribes.push(function(){var k=b.defaultView;k&&(d&&k.clearInterval(d),q(k,"resize",c,!0));q(b,"scroll",c,!0);f&&f.disconnect()});b!=(this.root&&(this.root.ownerDocument||this.root)||t)&&(a=l(b))&&this._monitorIntersections(a.ownerDocument)}};e.prototype._unmonitorIntersections=function(b){var a=this._monitoringDocuments.indexOf(b);if(-1!=a){var c=this.root&&(this.root.ownerDocument||
this.root)||t;if(!this._observationTargets.some(function(f){f=f.element.ownerDocument;if(f==b)return!0;for(;f&&f!=c;)if(f=(f=l(f))&&f.ownerDocument,f==b)return!0;return!1})){var d=this._monitoringUnsubscribes[a];this._monitoringDocuments.splice(a,1);this._monitoringUnsubscribes.splice(a,1);d();b!=c&&(a=l(b))&&this._unmonitorIntersections(a.ownerDocument)}}};e.prototype._unmonitorAllIntersections=function(){var b=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0;for(var a=this._monitoringUnsubscribes.length=
0;a<b.length;a++)b[a]()};e.prototype._checkForIntersections=function(){if(this.root||!A||x){var b=this._rootIsInDom(),a=b?this._getRootRect():g();this._observationTargets.forEach(function(c){var d=c.element,f=n(d),k=this._rootContainsTarget(d),p=c.entry,D=b&&k&&this._computeTargetAndRootIntersection(d,f,a),B=null;if(!this._rootContainsTarget(d))B=g();else if(!A||this.root)B=a;c=c.entry=new m({time:window.performance&&performance.now&&performance.now(),target:d,boundingClientRect:f,rootBounds:B,intersectionRect:D});
p?b&&k?this._hasCrossedThreshold(p,c)&&this._queuedEntries.push(c):p&&p.isIntersecting&&this._queuedEntries.push(c):this._queuedEntries.push(c)},this);this._queuedEntries.length&&this._callback(this.takeRecords(),this)}};e.prototype._computeTargetAndRootIntersection=function(b,a,c){if("none"!=window.getComputedStyle(b).display){var d=a;a=u(b);for(b=!1;!b&&a;){var f=null,k=1==a.nodeType?window.getComputedStyle(a):{};if("none"==k.display)return null;if(a==this.root||9==a.nodeType)if(b=!0,a==this.root||
a==t)A&&!this.root?!x||0==x.width&&0==x.height?d=f=a=null:f=x:f=c;else{k=(a=u(a))&&n(a);var p=a&&this._computeTargetAndRootIntersection(a,k,c);k&&p?f=z(k,p):d=a=null}else p=a.ownerDocument,a!=p.body&&a!=p.documentElement&&"visible"!=k.overflow&&(f=n(a));if(f){k=Math.max(f.top,d.top);p=Math.min(f.bottom,d.bottom);var D=Math.max(f.left,d.left);d=Math.min(f.right,d.right);f=d-D;var B=p-k;d=0<=f&&0<=B&&{top:k,bottom:p,left:D,right:d,width:f,height:B}||null}if(!d)break;a=a&&u(a)}return d}};e.prototype._getRootRect=
function(){if(this.root&&!v(this.root))var b=n(this.root);else{var a=v(this.root)?this.root:t;b=a.documentElement;a=a.body;b={top:0,left:0,right:b.clientWidth||a.clientWidth,width:b.clientWidth||a.clientWidth,bottom:b.clientHeight||a.clientHeight,height:b.clientHeight||a.clientHeight}}return this._expandRectByRootMargin(b)};e.prototype._expandRectByRootMargin=function(b){var a=this._rootMarginValues.map(function(c,d){return"px"==c.unit?c.value:c.value*(d%2?b.width:b.height)/100});a={top:b.top-a[0],
right:b.right+a[1],bottom:b.bottom+a[2],left:b.left-a[3]};a.width=a.right-a.left;a.height=a.bottom-a.top;return a};e.prototype._hasCrossedThreshold=function(b,a){b=b&&b.isIntersecting?b.intersectionRatio||0:-1;a=a.isIntersecting?a.intersectionRatio||0:-1;if(b!==a)for(var c=0;c<this.thresholds.length;c++){var d=this.thresholds[c];if(d==b||d==a||d<b!==d<a)return!0}};e.prototype._rootIsInDom=function(){return!this.root||h(t,this.root)};e.prototype._rootContainsTarget=function(b){var a=this.root&&(this.root.ownerDocument||
this.root)||t;return h(a,b)&&(!this.root||a==b.ownerDocument)};e.prototype._registerInstance=function(){0>w.indexOf(this)&&w.push(this)};e.prototype._unregisterInstance=function(){var b=w.indexOf(this);-1!=b&&w.splice(b,1)};window.IntersectionObserver=e;window.IntersectionObserverEntry=m}}(),Array.from||(Array.from=function(){try{var l=Symbol.iterator?Symbol.iterator:"Symbol(Symbol.iterator)"}catch(q){l="Symbol(Symbol.iterator)"}var m=Object.prototype.toString,e=function(q){return"function"===typeof q||
"[object Function]"===m.call(q)},y=Math.pow(2,53)-1,C=function(q,n){var g=q&&n[l]();return function(r){return q?g.next():n[r]}};return function(q){var n=Object(q),g=e(n[l]);if(null==q&&!g)throw new TypeError("Array.from requires an array-like object or iterator - not null or undefined");var r=1<arguments.length?arguments[1]:void 0,z;if("undefined"!==typeof r){if(!e(r))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(z=arguments[2])}var h=
Number(n.length);h=isNaN(h)?0:0!==h&&isFinite(h)?(0<h?1:-1)*Math.floor(Math.abs(h)):h;h=Math.min(Math.max(h,0),y);var u=e(this)?Object(new this(h)):Array(h);a:{n=C(g,n);for(var v=0;v<h||g;){var t=n(v),w=g?t.value:t;if(g&&t.done){g=u;break a}else u[v]=r?"undefined"===typeof z?r(w,v):r.call(z,w,v):w;v+=1}if(g)throw new TypeError("Array.from: provided arrayLike or iterator has length more then 2 ** 52 - 1");u.length=h;g=u}return g}}());