(window["webpackJsonpseu-igem2019"]=window["webpackJsonpseu-igem2019"]||[]).push([[28],{332:function(t,e){!function(){"use strict";var t="undefined"===typeof window,e=!t&&"scrollBehavior"in document.documentElement.style,o=function(){return(o=Object.assign||function(t){for(var e,o=1,l=arguments.length;o<l;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function l(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var l,n,r=o.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(l=r.next()).done;)i.push(l.value)}catch(s){n={error:s}}finally{try{l&&!l.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return i}function n(){return null!=document.scrollingElement?document.scrollingElement:document.documentElement}var r="scroll-behavior",i=new RegExp(r+":\\s*([^;]*)");function s(t,e){var o=r+":"+e,l=t.getAttribute("style");if(null!=l&&""!==l){var n=c(t);if(null!=n){var i=r+":"+n;l=(l=l.replace(i+";","")).replace(i,"")}t.setAttribute("style",l.endsWith(";")?""+l+o:";"+l+o)}else t.setAttribute("style",o)}function c(t){var e=t.getAttribute("style");if(null!=e&&e.includes(r)){var o=e.match(i);if(null!=o){var n=l(o,2)[1];if(null!=n&&""!==n)return n}}}var a="scrollBehavior";function u(t,e){if(null!=e&&"smooth"===e.behavior)return"smooth";var o,l="style"in t?t:n();if("style"in l){var r=l.style[a];null!=r&&""!==r&&(o=r)}if(null==o){var i=l.getAttribute("scroll-behavior");null!=i&&""!==i&&(o=i)}if(null==o&&(o=c(l)),null==o){var s=getComputedStyle(l).getPropertyValue("scrollBehavior");null!=s&&""!==s&&(o=s)}return o}var d=.5;function f(t){return d*(1-Math.cos(Math.PI*t))}var h={reset:function(){}},p="undefined"===typeof WeakMap?void 0:new WeakMap;var v=15e3;function y(t){var o=t.startTime,l=t.startX,r=t.startY,i=t.endX,a=t.endY,u=t.method,d=t.scroller,y=0,w=i-l,m=a-r,g=Math.max(Math.abs(w/1e3*v),Math.abs(m/1e3*v)),b=function(t){if(e||null==p)return h;var o,l,r,i,a,u=n(),d=p.get(t);if(null!=d)o=d.cachedScrollSnapValue,l=d.cachedScrollBehaviorStyleAttributeValue,r=d.secondaryScroller,i=d.secondaryScrollerCachedScrollSnapValue,a=d.secondaryScrollerCachedScrollBehaviorStyleAttributeValue,d.release();else{o=""===t.style.scrollSnapType?null:t.style.scrollSnapType,l=c(t),r=t===u&&u!==document.body?document.body:void 0,i=null==r?void 0:""===r.style.scrollSnapType?null:r.style.scrollSnapType,a=null==r?void 0:c(r);var f=getComputedStyle(t).getPropertyValue("scroll-snap-type"),v=null==r?void 0:getComputedStyle(r).getPropertyValue("scroll-snap-type");if("none"===f&&"none"===v)return h}t.style.scrollSnapType="none",void 0!==r&&(r.style.scrollSnapType="none"),void 0!==l&&s(t,l),void 0!==r&&void 0!==a&&s(r,a);var y=!1,w=t===u?window:t;function m(){w.removeEventListener("scroll",g),null!=p&&p.delete(t),y=!0}function g(){t.style.scrollSnapType=o,null!=r&&void 0!==i&&(r.style.scrollSnapType=i),void 0!==l&&s(t,l),void 0!==r&&void 0!==a&&s(r,a),m()}return p.set(t,{release:m,cachedScrollSnapValue:o,cachedScrollBehaviorStyleAttributeValue:l,secondaryScroller:r,secondaryScrollerCachedScrollSnapValue:i,secondaryScrollerCachedScrollBehaviorStyleAttributeValue:a}),{reset:function(){setTimeout(function(){y||w.addEventListener("scroll",g)})}}}(d);requestAnimationFrame(function t(e){y+=e-o;var n=Math.max(0,Math.min(1,0===g?0:y/g)),s=Math.floor(l+w*f(n)),c=Math.floor(r+m*f(n));u(s,c),s!==i||c!==a?requestAnimationFrame(t):null!=b&&(b.reset(),b=void 0)})}var w=t?void 0:Element.prototype.scroll,m=t?void 0:window.scroll,g=t?void 0:Element.prototype.scrollBy,b=t?void 0:window.scrollBy,S=t?void 0:Element.prototype.scrollTo,T=t?void 0:window.scrollTo;function E(t,e){this.__adjustingScrollPosition=!0,this.scrollLeft=t,this.scrollTop=e,delete this.__adjustingScrollPosition}function B(t,e){return E.call(this,t,e)}function M(t,e){this.__adjustingScrollPosition=!0,this.scrollLeft+=t,this.scrollTop+=e,delete this.__adjustingScrollPosition}function V(t,e){switch(t){case"scroll":return e instanceof Element?null!=w?w:E:m;case"scrollBy":return e instanceof Element?null!=g?g:M:b;case"scrollTo":return e instanceof Element?null!=S?S:B:T}}function P(t,e,o,l){var r="performance"in window?performance.now():Date.now();if(t instanceof Element)return{startTime:r,startX:i=t.scrollLeft,startY:s=t.scrollTop,endX:Math.floor("scrollBy"===l?i+e:e),endY:Math.floor("scrollBy"===l?s+o:o),method:V("scrollTo",t).bind(t),scroller:t};var i,s,c=window.scrollX,a=window.pageXOffset,u=window.scrollY,d=window.pageYOffset;return{startTime:r,startX:i=null==c||0===c?a:c,startY:s=null==u||0===u?d:u,endX:Math.floor("scrollBy"===l?i+e:e),endY:Math.floor("scrollBy"===l?s+o:o),method:V("scrollTo",window).bind(window),scroller:n()}}function j(t){return null==t?0:"number"===typeof t?t:"string"===typeof t?parseFloat(t):0}function W(t){return null!=t&&"object"===typeof t}function O(t,e,l,n){!function(t,e,o){var l=u(e,t);null==l||"auto"===l?V(o,e).call(e,t.left,t.top):y(P(e,t.left,t.top,o))}(function(t,e){if(void 0===e&&!W(t))throw new TypeError("Failed to execute 'scroll' on 'Element': parameter 1 ('options') is not an object.");return W(t)?o(o({},A(t.left,t.top)),{behavior:null==t.behavior?"auto":t.behavior}):o(o({},A(t,e)),{behavior:"auto"})}(l,n),t,e)}function A(t,e){return{left:j(t),top:j(e)}}function L(t){return"nodeType"in t&&1===t.nodeType?t.parentNode:"ShadowRoot"in window&&t instanceof window.ShadowRoot?t.host:t===document?window:t instanceof Node?t.parentNode:null}function X(t){return"visible"!==t&&"clip"!==t}function Y(t){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var e=getComputedStyle(t,null);return X(e.overflowY)||X(e.overflowX)}return!1}function _(t){for(var e=t,o=n();null!=e;){var l=u(e);if(null!=l&&(e===o||Y(e)))return[e,l];e=L(e)}for(e=t;null!=e;){if(e===o||Y(e))return[e,"auto"];e=L(e)}return[o,"auto"]}function C(t){return void 0===t&&(t=location),"origin"in t&&null!=t.origin?t.origin:t.protocol+"//"+t.hostname+(null!=t.port&&t.port.length>0?":"+t.port:"")}var I=/^#\d/;function x(){window.addEventListener("click",function(t){if(t.isTrusted&&t.target instanceof HTMLAnchorElement){var e=t.target,o=e.pathname,n=e.search,r=e.hash;if(C(t.target)===C(location)&&o===location.pathname&&n===location.search&&null!=r&&!(r.length<1)){var i=function(t){for(var e=t;null!=e;){if("ShadowRoot"in window&&e instanceof window.ShadowRoot)return e;var o=L(e);if(o===e)return document;e=o}return document}(t.target),s=null!=r.match(I)?i.getElementById(r.slice(1)):i.querySelector(r);if(null!=s){var c=l(_(s),2)[1];"smooth"===c&&(t.preventDefault(),s.scrollIntoView({behavior:c}))}}}})}var k=t?void 0:Element.prototype.scrollIntoView;function H(t,e,o,l,n,r,i,s){return r<t&&i>e||r>t&&i<e?0:r<=t&&s<=o||i>=e&&s>=o?r-t-l:i>e&&s<o||r<t&&s>o?i-e+n:0}function R(t,e,o){var l=o.block,r=o.inline,i=n(),s=null!=window.visualViewport?visualViewport.width:innerWidth,c=null!=window.visualViewport?visualViewport.height:innerHeight,a=null!=window.scrollX?window.scrollX:window.pageXOffset,u=null!=window.scrollY?window.scrollY:window.pageYOffset,d=t.getBoundingClientRect(),f=d.height,h=d.width,p=d.top,v=d.right,y=d.bottom,w=d.left,m="start"===l||"nearest"===l?p:"end"===l?y:p+f/2,g="center"===r?w+h/2:"end"===r?v:w,b=e.getBoundingClientRect(),S=b.height,T=b.width,E=b.top,B=b.right,M=b.bottom,V=b.left,P=getComputedStyle(e),j=parseInt(P.borderLeftWidth,10),W=parseInt(P.borderTopWidth,10),O=parseInt(P.borderRightWidth,10),A=parseInt(P.borderBottomWidth,10),L=0,X=0,Y="offsetWidth"in e?e.offsetWidth-e.clientWidth-j-O:0,_="offsetHeight"in e?e.offsetHeight-e.clientHeight-W-A:0;if(i===e)L="start"===l?m:"end"===l?m-c:"nearest"===l?H(u,u+c,c,W,A,u+m,u+m+f,f):m-c/2,X="start"===r?g:"center"===r?g-s/2:"end"===r?g-s:H(a,a+s,s,j,O,a+g,a+g+h,h),L=Math.max(0,L+u),X=Math.max(0,X+a);else{L="start"===l?m-E-W:"end"===l?m-M+A+_:"nearest"===l?H(E,M,S,W,A+_,m,m+f,f):m-(E+S/2)+_/2,X="start"===r?g-V-j:"center"===r?g-(V+T/2)+Y/2:"end"===r?g-B+O+Y:H(V,B,T,j,O+Y,g,g+h,h);var C=e.scrollLeft,I=e.scrollTop;L=Math.max(0,Math.min(I+L,e.scrollHeight-S+_)),X=Math.max(0,Math.min(C+X,e.scrollWidth-T+Y))}return{top:L,left:X}}var D=t?void 0:Object.getOwnPropertyDescriptor(Element.prototype,"scrollTop").set;var F=t?void 0:Object.getOwnPropertyDescriptor(Element.prototype,"scrollLeft").set;var q=!t&&("scroll"in Element.prototype&&"scrollTo"in Element.prototype&&"scrollBy"in Element.prototype&&"scrollIntoView"in Element.prototype);t||e&&q||(Element.prototype.scroll=function(t,e){O(this,"scroll",t,e)},Element.prototype.scrollBy=function(t,e){O(this,"scrollBy",t,e)},Element.prototype.scrollTo=function(t,e){O(this,"scrollTo",t,e)},Element.prototype.scrollIntoView=function(t){var e=null==t||!0===t?{block:"start",inline:"nearest"}:!1===t?{block:"end",inline:"nearest"}:t,n=l(_(this),2),r=n[0],i=n[1],s=null!=e.behavior?e.behavior:i;if("smooth"===s)r.scrollTo(o({behavior:s},R(this,r,e)));else if(null!=k)k.call(this,e);else{var c=R(this,r,e),a=c.top,u=c.left;V("scrollTo",this).call(this,u,a)}},Object.defineProperty(Element.prototype,"scrollLeft",{set:function(t){return this.__adjustingScrollPosition?F.call(this,t):(O(this,"scrollTo",t,this.scrollTop),t)}}),Object.defineProperty(Element.prototype,"scrollTop",{set:function(t){return this.__adjustingScrollPosition?D.call(this,t):(O(this,"scrollTo",this.scrollLeft,t),t)}}),window.scroll=function(t,e){O(this,"scroll",t,e)},window.scrollBy=function(t,e){O(this,"scrollBy",t,e)},window.scrollTo=function(t,e){O(this,"scrollTo",t,e)},x())}()}}]); //# sourceMappingURL=../28-0c60c492-chunk.js.map?action=raw&ctype=text/javascript