1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.ScrollReveal=t()}(this,function(){"use strict";function r(e){return"object"==typeof window.Node?e instanceof window.Node:null!==e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function l(e,t){if(void 0===t&&(t=document),e instanceof Array)return e.filter(r);if(r(e))return[e];if(n=e,i=Object.prototype.toString.call(n),"object"==typeof window.NodeList?n instanceof window.NodeList:null!==n&&"object"==typeof n&&"number"==typeof n.length&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(i)&&(0===n.length||r(n[0])))return Array.prototype.slice.call(e);var n,i;if("string"==typeof e)try{var o=t.querySelectorAll(e);return Array.prototype.slice.call(o)}catch(e){}return[]}function o(e){return null!==e&&e instanceof Object&&(e.constructor===Object||"[object Object]"===Object.prototype.toString.call(e))}function d(n,i){if(o(n))return Object.keys(n).forEach(function(e){return i(n[e],e,n)});if(n instanceof Array)return n.forEach(function(e,t){return i(e,t,n)});throw new TypeError("Expected either an array or object literal.")}function u(e){for(var t,n=[],i=arguments.length-1;0<i--;)n[i]=arguments[i+1];this.constructor.debug&&console&&(t="%cScrollReveal: "+e,n.forEach(function(e){return t+="\n â "+e}),console.log(t,"color: #ea654b;"))}function n(){function e(){return{active:[],stale:[]}}var n=this,t=e(),i=e(),o=e();try{d(l("[data-sr-id]"),function(e){e=parseInt(e.getAttribute("data-sr-id"));t.active.push(e)})}catch(n){throw n}d(this.store.elements,function(e){-1===t.active.indexOf(e.id)&&t.stale.push(e.id)}),d(t.stale,function(e){return delete n.store.elements[e]}),d(this.store.elements,function(e){-1===o.active.indexOf(e.containerId)&&o.active.push(e.containerId),e.hasOwnProperty("sequence")&&-1===i.active.indexOf(e.sequence.id)&&i.active.push(e.sequence.id)}),d(this.store.containers,function(e){-1===o.active.indexOf(e.id)&&o.stale.push(e.id)}),d(o.stale,function(e){var t=n.store.containers[e].node;t.removeEventListener("scroll",n.delegate),t.removeEventListener("resize",n.delegate),delete n.store.containers[e]}),d(this.store.sequences,function(e){-1===i.active.indexOf(e.id)&&i.stale.push(e.id)}),d(i.stale,function(e){return delete n.store.sequences[e]})}function f(e){var i,o=this;try{d(l(e),function(e){var t,n=e.getAttribute("data-sr-id");null!==n&&(i=!0,(t=o.store.elements[n]).callbackTimer&&window.clearTimeout(t.callbackTimer.clock),e.setAttribute("style",t.styles.inline.generated),e.removeAttribute("data-sr-id"),delete o.store.elements[n])})}catch(e){return u.call(this,"Clean failed.",e.message)}if(i)try{n.call(this)}catch(e){return u.call(this,"Clean failed.",e.message)}}function g(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(16===e.length)return e;var t;if(6===e.length)return(t=v())[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t;throw new RangeError("Expected array with either 6 or 16 values.")}function v(){for(var e=[],t=0;t<16;t++)e.push(t%5==0?1:0);return e}function F(e,t){for(var n=g(e),i=g(t),o=[],r=0;r<4;r++)for(var s=[n[r],n[r+4],n[r+8],n[r+12]],a=0;a<4;a++){var c=4*a,l=[i[c],i[1+c],i[2+c],i[3+c]];o[r+c]=s[0]*l[0]+s[1]*l[1]+s[2]*l[2]+s[3]*l[3]}return o}function b(e,t){var n=v();return n[0]=e,n[5]="number"==typeof t?t:e,n}function D(e){var t,n,i,o=window.getComputedStyle(e.node),r=o.position,s=e.config,a={},c=(e.node.getAttribute("style")||"").match(/[\w-]+\s*:\s*[^;]+\s*/gi)||[],c=(a.computed=c?c.map(function(e){return e.trim()}).join("; ")+";":"",a.generated=c.some(function(e){return e.match(/visibility\s?:\s?visible/i)})?a.computed:c.concat(["visibility: visible"]).map(function(e){return e.trim()}).join("; ")+";",parseFloat(o.opacity)),l=isNaN(parseFloat(s.opacity))?parseFloat(o.opacity):parseFloat(s.opacity),c={computed:c!==l?"opacity: "+c+";":"",generated:c!==l?"opacity: "+l+";":""},l=[];
1if(parseFloat(s.distance)){var d="top"===s.origin||"bottom"===s.origin?"Y":"X",u=s.distance,f=(u="top"!==s.origin&&"left"!==s.origin?u:/^-/.test(u)?u.substr(1):"-"+u).match(/(^-?\d+\.?\d?)|(em$|px$|%$)/g),h=f[0];switch(f[1]){case"em":u=parseInt(o.fontSize)*h;break;case"px":u=h;break;case"%":u="Y"==d?e.node.getBoundingClientRect().height*h/100:e.node.getBoundingClientRect().width*h/100;break;default:throw new RangeError("Unrecognized or missing distance unit.")}l.push("Y"==d?(f=u,(t=v())[13]=f,t):(f=u,(t=v())[12]=f,t))}s.rotate.x&&l.push((f=s.rotate.x,f=Math.PI/180*f,(i=v())[5]=i[10]=Math.cos(f),i[6]=i[9]=Math.sin(f),i[9]*=-1,i)),s.rotate.y&&l.push((i=s.rotate.y,i=Math.PI/180*i,(n=v())[0]=n[10]=Math.cos(i),n[2]=n[8]=Math.sin(i),n[2]*=-1,n)),s.rotate.z&&l.push((n=s.rotate.z,n=Math.PI/180*n,(y=v())[0]=y[5]=Math.cos(n),y[1]=y[4]=Math.sin(n),y[4]*=-1,y)),1!==s.scale&&(0===s.scale?l.push(b(2e-4)):l.push(b(s.scale)));var p,m,y={},l=(l.length?(y.property=W("transform"),y.computed={raw:o[y.property],matrix:function(e){if("string"==typeof e){e=e.match(/matrix(3d)?\(([^)]+)\)/);if(e)return g(e[2].split(", ").map(parseFloat))}return v()}(o[y.property])},l.unshift(y.computed.matrix),l=l.reduce(F),y.generated={initial:y.property+": matrix3d("+l.join(", ")+");",final:y.property+": matrix3d("+y.computed.matrix.join(", ")+");"}):y.generated={initial:"",final:""},{});return c.generated||y.generated.initial?(l.property=W("transition"),l.computed=o[l.property],l.fragments=[],m=s.delay,p=s.duration,s=s.easing,c.generated&&l.fragments.push({delayed:"opacity "+p/1e3+"s "+s+" "+m/1e3+"s",instant:"opacity "+p/1e3+"s "+s+" 0s"}),y.generated.initial&&l.fragments.push({delayed:y.property+" "+p/1e3+"s "+s+" "+m/1e3+"s",instant:y.property+" "+p/1e3+"s "+s+" 0s"}),l.computed&&!l.computed.match(/all 0s/)&&l.fragments.unshift({delayed:l.computed,instant:l.computed}),m=l.fragments.reduce(function(e,t,n){return e.delayed+=0===n?t.delayed:", "+t.delayed,e.instant+=0===n?t.instant:", "+t.instant,e},{delayed:"",instant:""}),l.generated={delayed:l.property+": "+m.delayed+";",instant:l.property+": "+m.instant+";"}):l.generated={delayed:"",instant:""},{inline:a,opacity:c,position:r,transform:y,transition:l}}function a(e,t){var n=(t=void 0===t?{}
1:t).pristine||this.pristine,n="always"===e.config.useDelay||"onload"===e.config.useDelay&&n||"once"===e.config.useDelay&&!e.seen,i=e.visible&&!e.revealed,o=!e.visible&&e.revealed&&e.config.reset;return t.reveal||i?function(e,t){var n=[e.styles.inline.generated,e.styles.opacity.computed,e.styles.transform.generated.final];n.push(t?e.styles.transition.generated.delayed:e.styles.transition.generated.instant),e.revealed=e.seen=!0,e.node.setAttribute("style",n.filter(function(e){return""!==e}).join(" ")),s.call(this,e,t)}.call(this,e,n):t.reset||o?function(e){var t=[e.styles.inline.generated,e.styles.opacity.generated,e.styles.transform.generated.initial,e.styles.transition.generated.instant];e.revealed=!1,e.node.setAttribute("style",t.filter(function(e){return""!==e}).join(" ")),s.call(this,e)}.call(this,e):void 0}function s(e,t){var n=this,t=t?e.config.duration+e.config.delay:e.config.duration,i=e.revealed?e.config.beforeReveal:e.config.beforeReset,o=e.revealed?e.config.afterReveal:e.config.afterReset,r=0;e.callbackTimer&&(r=Date.now()-e.callbackTimer.start,window.clearTimeout(e.callbackTimer.clock)),i(e.node),e.callbackTimer={start:Date.now(),clock:window.setTimeout(function(){o(e.node),e.callbackTimer=null,e.revealed&&!e.config.reset&&e.config.cleanup&&f.call(n,e.node)},t-r)}}function c(e,t){if(void 0===t&&(t=this.pristine),!e.visible&&e.revealed&&e.config.reset)return a.call(this,e,{reset:!0});var n=this.store.sequences[e.sequence.id],i=e.sequence.index;if(n){var o=new h(n,"visible",this.store),r=new h(n,"revealed",this.store);if(n.models={visible:o,revealed:r},!r.body.length){var s=n.members[o.body[0]],s=this.store.elements[s];if(s)return p.call(this,n,o.body[0],-1,t),p.call(this,n,o.body[0],1,t),a.call(this,s,{reveal:!0,pristine:t})}return!n.blocked.head&&i===[].concat(r.head).pop()&&i>=[].concat(o.body).shift()?(p.call(this,n,i,-1,t),a.call(this,e,{reveal:!0,pristine:t})):!n.blocked.foot&&i===[].concat(r.foot).shift()&&i<=[].concat(o.body).pop()?(p.call(this,n,i,1,t),a.call(this,e,{reveal:!0,pristine:t})):void 0}}function S(e){e=Math.abs(e);if(isNaN(e))throw new RangeError("Invalid sequence interval.");this.id=z(),this.interval=Math.max(e,16),this.members=[],this.models={},this.blocked={head:!1,foot:!1}}function h(e,n,i){var o=this;this.head=[],this.body=[],this.foot=[],d(e.members,function(e,t){e=i.elements[e];e&&e[n]&&o.body.push(t)}),this.body.length&&d(e.members,function(e,t){e=i.elements[e];e&&!e[n]&&(t<o.body[0]?o.head:o.foot).push(t)})}function p(e,t,n,i){var o=this,r=["head",null,"foot"][1+n],t=e.members[t+n],s=this.store.elements[t];e.blocked[r]=!0,setTimeout(function(){e.blocked[r]=!1,s&&c.call(o,s,i)},e.interval)}function m(){var t=this;n.call(this),d(this.store.elements,function(e){var t=[e.styles.inline.generated];e.visible?(t.push(e.styles.opacity.computed),t.push(e.styles.transform.generated.final),e.revealed=!0):(t.push(e.styles.opacity.generated),t.push(e.styles.transform.generated.initial),e.revealed=!1),e.node.setAttribute("style",t.filter(function(e){return""!==e}).join(" "))}),d(this.store.containers,function(e){e=e.node===document.documentElement?window:e.node;e.addEventListener("scroll",t.delegate),e.addEventListener("resize",t.delegate)}),this.delegate(),this.initTimeout=null}function y(e){return void 0===e&&(e=navigator.userAgent),/Android|iPhone|iPad|iPod/i.test(e)}function w(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];if(o(n))return d(e,function(e){d(e,function(e,t){o(e)?(n[t]&&o(n[t])||(n[t]={}),w(n[t],e)):n[t]=e})}),n;throw new TypeError("Target must be an object literal.")}function i(e,r,t){var s=this;void 0===t&&(t=!1);var a,c=[],n=(r=void 0===r?{}:r).interval||I.interval;try{n&&(a=new S(n));var i=l(e);if(!i.length)throw new Error("Invalid reveal target.");d(i.reduce(function(e,t){var n={},i=t.getAttribute("data-sr-id"),o=(i?(w(n,s.store.elements[i]),n.node.setAttribute("style",n.styles.inline.computed)):(n.id=z(),n.node=t,n.seen=!1,n.revealed=!1,n.visible=!1),w({},n.config||s.defaults,r));if(!o.mobile&&y()||!o.desktop&&!y())i&&f.call(s,n);else{i=l(o.container)[0];if(!i)throw new Error("Invalid container.");i.contains(t)&&(null===(t=function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];var i=null;return d(e,function(e){d(e,function(e){null===i&&e.node===t&&(i=e.id)})}),i}
vendor: 1,263 bytes, line 1
1(i,c,s.store.containers))&&(t=z(),c.push({id:t,node:i})),n.config=o,n.containerId=t,n.styles=D(n),a&&(n.sequence={id:a.id,index:a.members.length},a.members.push(n.id)),e.push(n))}return e},[]),function(e){(s.store.elements[e.id]=e).node.setAttribute("data-sr-id",e.id)})}catch(e){return u.call(this,"Reveal failed.",e.message)}d(c,function(e){s.store.containers[e.id]={id:e.id,node:e.node}}),a&&(this.store.sequences[a.id]=a),!0!==t&&(this.store.history.push({target:e,options:r}),this.initTimeout&&window.clearTimeout(this.initTimeout),this.initTimeout=window.setTimeout(m.bind(this),0))}function E(e,t){for(var n=t?e.node.clientHeight:e.node.offsetHeight,t=t?e.node.clientWidth:e.node.offsetWidth,i=0,o=0,r=e.node;isNaN(r.offsetTop)||(i+=r.offsetTop),isNaN(r.offsetLeft)||(o+=r.offsetLeft),r=r.offsetParent;);return{bounds:{top:i,right:o+t,bottom:i+n,left:o},height:n,width:t}}function C(e,t){var i=this;void 0===e&&(e={type:"init"}),void 0===t&&(t=this.store.elements),H(function(){var n="init"===e.type||"resize"===e.type;d(i.store.containers,function(e){n&&(e.geometry=E.call(i,e,!0));var t=function(e){var t,e=e.node===document.documentElement?(t=window.pageYOffset,window.pageXOffset):(t=e.node.scrollTop,e.node.scrollLeft);return{top:t,left:e}}.call(i,e);
1e.scroll&&(e.direction={x:Y(t.left-e.scroll.left),y:Y(t.top-e.scroll.top)}),e.scroll=t}),d(t,function(e){n&&(e.geometry=E.call(i,e)),e.visible=function(e){var t,n,i,o,r,s,a,c,l=this.store.containers[(e=void 0===e?{}:e).containerId];if(l)return r=Math.max(0,Math.min(1,e.config.viewFactor)),t=e.config.viewOffset,n=e.geometry.bounds.top+e.geometry.height*r,i=e.geometry.bounds.right-e.geometry.width*r,o=e.geometry.bounds.bottom-e.geometry.height*r,r=e.geometry.bounds.left+e.geometry.width*r,s=l.geometry.bounds.top+l.scroll.top+t.top,a=l.geometry.bounds.right+l.scroll.left-t.right,c=l.geometry.bounds.bottom+l.scroll.top-t.bottom,l=l.geometry.bounds.left+l.scroll.left+t.left,n<c&&l<i&&s<o&&r<a||"fixed"===e.styles.position}.call(i,e)}),d(t,function(e){(e.sequence?c:a).call(i,e)}),i.pristine=!1})}function j(e){if(void 0===e&&(e={}),void 0===this||Object.getPrototypeOf(this)!==j.prototype)return new j(e);if(!j.isSupported())return u.call(this,"Instantiation failed.","This browser is not supported."),N.failure();var t;try{t=w({},R||I,e)}catch(e){return u.call(this,"Invalid configuration.",e.message),N.failure()}try{if(!l(t.container)[0])throw new Error("Invalid container.")}catch(e){return u.call(this,e.message),N.failure()}return!(R=t).mobile&&y()||!R.desktop&&!y()?(u.call(this,"This device is disabled.","desktop: "+R.desktop,"mobile: "+R.mobile),N.failure()):(N.success(),this.store={containers:{},elements:{},history:[],sequences:{}},this.pristine=!0,T=T||C.bind(this),k=k||function(){var t=this;d(this.store.elements,function(e){e.node.setAttribute("style",e.styles.inline.generated),e.node.removeAttribute("data-sr-id")}),d(this.store.containers,function(e){e=e.node===document.documentElement?window:e.node;e.removeEventListener("scroll",t.delegate),e.removeEventListener("resize",t.delegate)}),this.store={containers:{},elements:{},history:[],sequences:{}}}.bind(this),O=O||i.bind(this),x=x||f.bind(this),A=A||function(){var t=this;d(this.store.history,function(e){i.call(t,e.target,e.options,!0)}),m.call(this)}.bind(this),Object.defineProperty(this,"delegate",{get:function(){return T}}),Object.defineProperty(this,"destroy",{get:function(){return k}}),Object.defineProperty(this,"reveal",{get:function(){return O}}),Object.defineProperty(this,"clean",{get:function(){return x}}),Object.defineProperty(this,"sync",{get:function(){return A}}),Object.defineProperty(this,"defaults",{get:function(){return R}}),Object.defineProperty(this,"version",{get:function(){return"4.0.5"}}),Object.defineProperty(this,"noop",{get:function(){return!1}}),q=q||this)}var T,k,O,x,A,R,t,q,P,e,L,M,I={delay:0,distance:"0",duration:600,easing:"cubic-bezier(0.5, 0, 0, 1)",interval:0,opacity:0,origin:"bottom",rotate:{x:0,y:0,z:0},scale:1,cleanup:!1,container:document.documentElement,desktop:!0,mobile:!0,reset:!1,useDelay:"always",viewFactor:0,viewOffset:{top:0,right:0,bottom:0,left:0},afterReset:function(){},afterReveal:function(){},beforeReset:function(){},beforeReveal:function(){}},N={success:function(){document.documentElement.classList.add("sr"),document.body?document.body.style.height="100%":document.addEventListener("DOMContentLoaded",function(){document.body.style.height="100%"})},failure:function(){return document.documentElement.classList.remove("sr"),{clean:function(){},destroy:function(){},reveal:function(){},sync:function(){},get noop(){return!0}}}},W=(L={},M=document.documentElement.style,B.clearCache=function(){return L={}},B),z=(e=0,function(){return e++}),Y=Math.sign||function(e){return(0<e)-(e<0)||+e},$=(P=Date.now(),function(e){var t=Date.now();16<t-P?e(P=t):setTimeout(function(){return $(e)},0)}),H=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||$;function B(e,t){if(void 0===t&&(t=M),e&&"string"==typeof e){if(L[e])return L[e];if("string"==typeof t[e])return L[e]=e;if("string"==typeof t["-webkit-"+e])return L[e]="-webkit-"+e;throw new RangeError('Unable to find "'+e+'" style property.')}throw new TypeError("Expected a string.")}return j.isSupported=function(){return("transform"in(e=document.documentElement.style)||"WebkitTransform"in e)&&("transition"in(e=document.documentElement.style)||"WebkitTransition"in e);var e},Object.defineProperty(j,"debug",{get:function(){return t||!1},set:function(e){return t="boolean"==typeof e?e:t}}),j(),j});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.