{"version":3,"sources":["jsdelivr-header.js","/npm/slideout@1.0.1/dist/slideout.min.js","jsdelivr-separator.js","/npm/scrollreveal@4.0.0/dist/scrollreveal.min.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,ACRA,ACAA;AACA;AACA,ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"bundle.js","sourceRoot":"","sourcesContent":["/**\n * Combined by jsDelivr.\n * Original files:\n * - /npm/slideout@1.0.1/dist/slideout.min.js\n * - /npm/scrollreveal@4.0.0/dist/scrollreveal.min.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var e;\"undefined\"!=typeof window?e=window:\"undefined\"!=typeof global?e=global:\"undefined\"!=typeof self&&(e=self),e.Slideout=t()}}(function(){var t,e,n;return function i(t,e,n){function o(r,a){if(!e[r]){if(!t[r]){var u=typeof require==\"function\"&&require;if(!a&&u)return u(r,!0);if(s)return s(r,!0);var l=new Error(\"Cannot find module '\"+r+\"'\");throw l.code=\"MODULE_NOT_FOUND\",l}var f=e[r]={exports:{}};t[r][0].call(f.exports,function(e){var n=t[r][1][e];return o(n?n:e)},f,f.exports,i,t,e,n)}return e[r].exports}var s=typeof require==\"function\"&&require;for(var r=0;r<n.length;r++)o(n[r]);return o}({1:[function(t,e,n){\"use strict\";var i=t(\"decouple\");var o=t(\"emitter\");var s;var r=false;var a=window.document;var u=a.documentElement;var l=window.navigator.msPointerEnabled;var f={start:l?\"MSPointerDown\":\"touchstart\",move:l?\"MSPointerMove\":\"touchmove\",end:l?\"MSPointerUp\":\"touchend\"};var h=function v(){var t=/^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/;var e=a.getElementsByTagName(\"script\")[0].style;for(var n in e){if(t.test(n)){return\"-\"+n.match(t)[0].toLowerCase()+\"-\"}}if(\"WebkitOpacity\"in e){return\"-webkit-\"}if(\"KhtmlOpacity\"in e){return\"-khtml-\"}return\"\"}();function c(t,e){for(var n in e){if(e[n]){t[n]=e[n]}}return t}function p(t,e){t.prototype=c(t.prototype||{},e.prototype)}function d(t){while(t.parentNode){if(t.getAttribute(\"data-slideout-ignore\")!==null){return t}t=t.parentNode}return null}function _(t){t=t||{};this._startOffsetX=0;this._currentOffsetX=0;this._opening=false;this._moved=false;this._opened=false;this._preventOpen=false;this._touch=t.touch===undefined?true:t.touch&&true;this._side=t.side||\"left\";this.panel=t.panel;this.menu=t.menu;if(!this.panel.classList.contains(\"slideout-panel\")){this.panel.classList.add(\"slideout-panel\")}if(!this.panel.classList.contains(\"slideout-panel-\"+this._side)){this.panel.classList.add(\"slideout-panel-\"+this._side)}if(!this.menu.classList.contains(\"slideout-menu\")){this.menu.classList.add(\"slideout-menu\")}if(!this.menu.classList.contains(\"slideout-menu-\"+this._side)){this.menu.classList.add(\"slideout-menu-\"+this._side)}this._fx=t.fx||\"ease\";this._duration=parseInt(t.duration,10)||300;this._tolerance=parseInt(t.tolerance,10)||70;this._padding=this._translateTo=parseInt(t.padding,10)||256;this._orientation=this._side===\"right\"?-1:1;this._translateTo*=this._orientation;if(this._touch){this._initTouchEvents()}}p(_,o);_.prototype.open=function(){var t=this;this.emit(\"beforeopen\");if(!u.classList.contains(\"slideout-open\")){u.classList.add(\"slideout-open\")}this._setTransition();this._translateXTo(this._translateTo);this._opened=true;setTimeout(function(){t.panel.style.transition=t.panel.style[\"-webkit-transition\"]=\"\";t.emit(\"open\")},this._duration+50);return this};_.prototype.close=function(){var t=this;if(!this.isOpen()&&!this._opening){return this}this.emit(\"beforeclose\");this._setTransition();this._translateXTo(0);this._opened=false;setTimeout(function(){u.classList.remove(\"slideout-open\");t.panel.style.transition=t.panel.style[\"-webkit-transition\"]=t.panel.style[h+\"transform\"]=t.panel.style.transform=\"\";t.emit(\"close\")},this._duration+50);return this};_.prototype.toggle=function(){return this.isOpen()?this.close():this.open()};_.prototype.isOpen=function(){return this._opened};_.prototype._translateXTo=function(t){this._currentOffsetX=t;this.panel.style[h+\"transform\"]=this.panel.style.transform=\"translateX(\"+t+\"px)\";return this};_.prototype._setTransition=function(){this.panel.style[h+\"transition\"]=this.panel.style.transition=h+\"transform \"+this._duration+\"ms \"+this._fx;return this};_.prototype._initTouchEvents=function(){var t=this;this._onScrollFn=i(a,\"scroll\",function(){if(!t._moved){clearTimeout(s);r=true;s=setTimeout(function(){r=false},250)}});this._preventMove=function(e){if(t._moved){e.preventDefault()}};a.addEventListener(f.move,this._preventMove);this._resetTouchFn=function(e){if(typeof e.touches===\"undefined\"){return}t._moved=false;t._opening=false;t._startOffsetX=e.touches[0].pageX;t._preventOpen=!t._touch||!t.isOpen()&&t.menu.clientWidth!==0};this.panel.addEventListener(f.start,this._resetTouchFn);this._onTouchCancelFn=function(){t._moved=false;t._opening=false};this.panel.addEventListener(\"touchcancel\",this._onTouchCancelFn);this._onTouchEndFn=function(){if(t._moved){t.emit(\"translateend\");t._opening&&Math.abs(t._currentOffsetX)>t._tolerance?t.open():t.close()}t._moved=false};this.panel.addEventListener(f.end,this._onTouchEndFn);this._onTouchMoveFn=function(e){if(r||t._preventOpen||typeof e.touches===\"undefined\"||d(e.target)){return}var n=e.touches[0].clientX-t._startOffsetX;var i=t._currentOffsetX=n;if(Math.abs(i)>t._padding){return}if(Math.abs(n)>20){t._opening=true;var o=n*t._orientation;if(t._opened&&o>0||!t._opened&&o<0){return}if(!t._moved){t.emit(\"translatestart\")}if(o<=0){i=n+t._padding*t._orientation;t._opening=false}if(!(t._moved&&u.classList.contains(\"slideout-open\"))){u.classList.add(\"slideout-open\")}t.panel.style[h+\"transform\"]=t.panel.style.transform=\"translateX(\"+i+\"px)\";t.emit(\"translate\",i);t._moved=true}};this.panel.addEventListener(f.move,this._onTouchMoveFn);return this};_.prototype.enableTouch=function(){this._touch=true;return this};_.prototype.disableTouch=function(){this._touch=false;return this};_.prototype.destroy=function(){this.close();a.removeEventListener(f.move,this._preventMove);this.panel.removeEventListener(f.start,this._resetTouchFn);this.panel.removeEventListener(\"touchcancel\",this._onTouchCancelFn);this.panel.removeEventListener(f.end,this._onTouchEndFn);this.panel.removeEventListener(f.move,this._onTouchMoveFn);a.removeEventListener(\"scroll\",this._onScrollFn);this.open=this.close=function(){};return this};e.exports=_},{decouple:2,emitter:3}],2:[function(t,e,n){\"use strict\";var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t,e,n){var o,s=false;function r(t){o=t;a()}function a(){if(!s){i(u);s=true}}function u(){n.call(t,o);s=false}t.addEventListener(e,r,false);return r}e.exports=o},{}],3:[function(t,e,n){\"use strict\";var i=function(t,e){if(!(t instanceof e)){throw new TypeError(\"Cannot call a class as a function\")}};n.__esModule=true;var o=function(){function t(){i(this,t)}t.prototype.on=function e(t,n){this._eventCollection=this._eventCollection||{};this._eventCollection[t]=this._eventCollection[t]||[];this._eventCollection[t].push(n);return this};t.prototype.once=function n(t,e){var n=this;function i(){n.off(t,i);e.apply(this,arguments)}i.listener=e;this.on(t,i);return this};t.prototype.off=function o(t,e){var n=undefined;if(!this._eventCollection||!(n=this._eventCollection[t])){return this}n.forEach(function(t,i){if(t===e||t.listener===e){n.splice(i,1)}});if(n.length===0){delete this._eventCollection[t]}return this};t.prototype.emit=function s(t){var e=this;for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++){i[o-1]=arguments[o]}var s=undefined;if(!this._eventCollection||!(s=this._eventCollection[t])){return this}s=s.slice(0);s.forEach(function(t){return t.apply(e,i)});return this};return t}();n[\"default\"]=o;e.exports=n[\"default\"]},{}]},{},[1])(1)});",";\n\n","/*! @license ScrollReveal v4.0.0\n\n\tCopyright 2018 Fisssion LLC.\n\n\tLicensed under the GNU General Public License 3.0 for\n\tcompatible open source projects and non-commercial use.\n\n\tFor commercial sites, themes, projects, and applications,\n\tkeep your source code private/proprietary by purchasing\n\ta commercial license from https://scrollrevealjs.org/\n*/\nvar ScrollReveal=function(){\"use strict\";var r={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:!0,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={clean:function(){},destroy:function(){},reveal:function(){},sync:function(){},get noop(){return!0}};function o(e){return\"object\"==typeof window.Node?e instanceof window.Node:null!==e&&\"object\"==typeof e&&\"number\"==typeof e.nodeType&&\"string\"==typeof e.nodeName}function u(e,t){if(void 0===t&&(t=document),e instanceof Array)return e.filter(o);if(o(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||o(n[0])))return Array.prototype.slice.call(e);var n,i;if(\"string\"==typeof e)try{var r=t.querySelectorAll(e);return Array.prototype.slice.call(r)}catch(e){return[]}return[]}function s(e){return null!==e&&e instanceof Object&&(e.constructor===Object||\"[object Object]\"===Object.prototype.toString.call(e))}function f(n,i){if(s(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 h(e){for(var t=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];if(this.constructor.debug&&console){var i=\"%cScrollReveal: \"+e;t.forEach(function(e){return i+=\"\\n — \"+e}),console.log(i,\"color: #ea654b;\")}}function t(){var n=this,i={active:[],stale:[]},t={active:[],stale:[]},r={active:[],stale:[]};try{f(u(\"[data-sr-id]\"),function(e){var t=parseInt(e.getAttribute(\"data-sr-id\"));i.active.push(t)})}catch(e){throw e}f(this.store.elements,function(e){-1===i.active.indexOf(e.id)&&i.stale.push(e.id)}),f(i.stale,function(e){return delete n.store.elements[e]}),f(this.store.elements,function(e){-1===r.active.indexOf(e.containerId)&&r.active.push(e.containerId),e.hasOwnProperty(\"sequence\")&&-1===t.active.indexOf(e.sequence.id)&&t.active.push(e.sequence.id)}),f(this.store.containers,function(e){-1===r.active.indexOf(e.id)&&r.stale.push(e.id)}),f(r.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]}),f(this.store.sequences,function(e){-1===t.active.indexOf(e.id)&&t.stale.push(e.id)}),f(t.stale,function(e){return delete n.store.sequences[e]})}function p(e){var i,r=this;try{f(u(e),function(e){var t=e.getAttribute(\"data-sr-id\");if(null!==t){i=!0;var n=r.store.elements[t];n.callbackTimer&&window.clearTimeout(n.callbackTimer.clock),e.setAttribute(\"style\",n.styles.inline.generated),e.removeAttribute(\"data-sr-id\"),delete r.store.elements[t]}})}catch(e){return h.call(this,\"Clean failed.\",e.message)}if(i)try{t.call(this)}catch(e){return h.call(this,\"Clean failed.\",e.message)}}function N(e){if(e.constructor!==Array)throw new TypeError(\"Expected array.\");if(16===e.length)return e;if(6===e.length){var t=z();return t[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 z(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function F(e,t){for(var n=N(e),i=N(t),r=[],o=0;o<4;o++)for(var s=[n[o],n[o+4],n[o+8],n[o+12]],a=0;a<4;a++){var c=4*a,l=[i[c],i[c+1],i[c+2],i[c+3]],d=s[0]*l[0]+s[1]*l[1]+s[2]*l[2]+s[3]*l[3];r[o+c]=d}return r}function D(e,t){var n=z();return n[0]=e,n[5]=\"number\"==typeof t?t:e,n}var S=function(){var n={},i=document.documentElement.style;function e(e,t){if(void 0===t&&(t=i),e&&\"string\"==typeof e){if(n[e])return n[e];if(\"string\"==typeof t[e])return n[e]=e;if(\"string\"==typeof t[\"-webkit-\"+e])return n[e]=\"-webkit-\"+e;throw new RangeError('Unable to find \"'+e+'\" style property.')}throw new TypeError(\"Expected a string.\")}return e.clearCache=function(){return n={}},e}();function m(e){var t=window.getComputedStyle(e.node),n=t.position,i=e.config,r={},o=(e.node.getAttribute(\"style\")||\"\").match(/[\\w-]+\\s*:\\s*[^;]+\\s*/gi)||[];r.computed=o?o.map(function(e){return e.trim()}).join(\"; \")+\";\":\"\",r.generated=o.some(function(e){return e.match(/visibility\\s?:\\s?visible/i)})?r.computed:o.concat([\"visibility: visible\"]).map(function(e){return e.trim()}).join(\"; \")+\";\";var s,a,c,l,d,u,f,h,p,m,y,v,g,b=parseFloat(t.opacity),w=isNaN(parseFloat(i.opacity))?parseFloat(t.opacity):parseFloat(i.opacity),E={computed:b!==w?\"opacity: \"+b+\";\":\"\",generated:b!==w?\"opacity: \"+w+\";\":\"\"},j=[];if(parseFloat(i.distance)){var T=\"top\"===i.origin||\"bottom\"===i.origin?\"Y\":\"X\",O=i.distance;\"top\"!==i.origin&&\"left\"!==i.origin||(O=/^-/.test(O)?O.substr(1):\"-\"+O);var k=O.match(/(^-?\\d+\\.?\\d?)|(em$|px$|%$)/g),x=k[0];switch(k[1]){case\"em\":O=parseInt(t.fontSize)*x;break;case\"px\":O=x;break;case\"%\":O=\"Y\"===T?e.node.getBoundingClientRect().height*x/100:e.node.getBoundingClientRect().width*x/100;break;default:throw new RangeError(\"Unrecognized or missing distance unit.\")}\"Y\"===T?j.push((c=O,(l=z())[13]=c,l)):j.push((s=O,(a=z())[12]=s,a))}i.rotate.x&&j.push((d=i.rotate.x,u=Math.PI/180*d,(f=z())[5]=f[10]=Math.cos(u),f[6]=f[9]=Math.sin(u),f[9]*=-1,f)),i.rotate.y&&j.push((h=i.rotate.y,p=Math.PI/180*h,(m=z())[0]=m[10]=Math.cos(p),m[2]=m[8]=Math.sin(p),m[2]*=-1,m)),i.rotate.z&&j.push((y=i.rotate.z,v=Math.PI/180*y,(g=z())[0]=g[5]=Math.cos(v),g[1]=g[4]=Math.sin(v),g[4]*=-1,g)),1!==i.scale&&(0===i.scale?j.push(D(2e-4)):j.push(D(i.scale)));var A={};if(j.length){A.property=S(\"transform\"),A.computed={raw:t[A.property],matrix:function(e){if(\"string\"==typeof e){var t=e.match(/matrix(3d)?\\(([^)]+)\\)/);if(t)return N(t[2].split(\", \").map(parseFloat))}return z()}(t[A.property])},j.unshift(A.computed.matrix);var R=j.reduce(F);A.generated={initial:A.property+\": matrix3d(\"+R.join(\", \")+\");\",final:A.property+\": matrix3d(\"+A.computed.matrix.join(\", \")+\");\"}}else A.generated={initial:\"\",final:\"\"};var q={};if(E.generated||A.generated.initial){q.property=S(\"transition\"),q.computed=t[q.property],q.fragments=[];var P=i.delay,I=i.duration,L=i.easing;E.generated&&q.fragments.push({delayed:\"opacity \"+I/1e3+\"s \"+L+\" \"+P/1e3+\"s\",instant:\"opacity \"+I/1e3+\"s \"+L+\" 0s\"}),A.generated.initial&&q.fragments.push({delayed:A.property+\" \"+I/1e3+\"s \"+L+\" \"+P/1e3+\"s\",instant:A.property+\" \"+I/1e3+\"s \"+L+\" 0s\"}),q.computed&&!q.computed.match(/all 0s/)&&q.fragments.unshift({delayed:q.computed,instant:q.computed});var M=q.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:\"\"});q.generated={delayed:q.property+\": \"+M.delayed+\";\",instant:q.property+\": \"+M.instant+\";\"}}else q.generated={delayed:\"\",instant:\"\"};return{inline:r,opacity:E,position:n,transform:A,transition:q}}function c(e,t){void 0===t&&(t={});var n=t.pristine||this.pristine,i=\"always\"===e.config.useDelay||\"onload\"===e.config.useDelay&&n||\"once\"===e.config.useDelay&&!e.seen,r=e.visible&&!e.revealed,o=!e.visible&&e.revealed&&e.config.reset;return t.reveal||r?function(e,t){var n=[e.styles.inline.generated,e.styles.opacity.computed,e.styles.transform.generated.final];t?n.push(e.styles.transition.generated.delayed):n.push(e.styles.transition.generated.instant);e.revealed=e.seen=!0,e.node.setAttribute(\"style\",n.filter(function(e){return\"\"!==e}).join(\" \")),a.call(this,e,t)}.call(this,e,i):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(\" \")),a.call(this,e)}.call(this,e):void 0}function a(e,t){var n=this,i=t?e.config.duration+e.config.delay:e.config.duration,r=e.revealed?e.config.beforeReveal:e.config.beforeReset,o=e.revealed?e.config.afterReveal:e.config.afterReset,s=0;e.callbackTimer&&(s=Date.now()-e.callbackTimer.start,window.clearTimeout(e.callbackTimer.clock)),r(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&&p.call(n,e.node)},i-s)}}var e,y=(e=0,function(){return e++});function l(e,t){if(void 0===t&&(t=this.pristine),!e.visible&&e.revealed&&e.config.reset)return c.call(this,e,{reset:!0});var n=this.store.sequences[e.sequence.id],i=e.sequence.index;if(n){var r=new d(n,\"visible\",this.store),o=new d(n,\"revealed\",this.store);if(n.models={visible:r,revealed:o},!o.body.length){var s=n.members[r.body[0]],a=this.store.elements[s];if(a)return g.call(this,n,r.body[0],-1,t),g.call(this,n,r.body[0],1,t),c.call(this,a,{reveal:!0,pristine:t})}if(!n.blocked.head&&i===[].concat(o.head).pop()&&i>=[].concat(r.body).shift())return g.call(this,n,i,-1,t),c.call(this,e,{reveal:!0,pristine:t});if(!n.blocked.foot&&i===[].concat(o.foot).shift()&&i<=[].concat(r.body).pop())return g.call(this,n,i,1,t),c.call(this,e,{reveal:!0,pristine:t})}}function v(e){var t=Math.abs(e);if(isNaN(t))throw new RangeError(\"Invalid sequence interval.\");this.id=y(),this.interval=Math.max(t,16),this.members=[],this.models={},this.blocked={head:!1,foot:!1}}function d(e,i,r){var o=this;this.head=[],this.body=[],this.foot=[],f(e.members,function(e,t){var n=r.elements[e];n&&n[i]&&o.body.push(t)}),this.body.length&&f(e.members,function(e,t){var n=r.elements[e];n&&!n[i]&&(t<o.body[0]?o.head.push(t):o.foot.push(t))})}function g(e,t,n,i){var r=this,o=[\"head\",null,\"foot\"][1+n],s=e.members[t+n],a=this.store.elements[s];e.blocked[o]=!0,setTimeout(function(){e.blocked[o]=!1,a&&l.call(r,a,i)},e.interval)}function b(){var n=this;t.call(this),f(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)):(t.push(e.styles.opacity.generated),t.push(e.styles.transform.generated.initial)),e.node.setAttribute(\"style\",t.filter(function(e){return\"\"!==e}).join(\" \"))}),f(this.store.containers,function(e){var t=e.node===document.documentElement?window:e.node;t.addEventListener(\"scroll\",n.delegate),t.addEventListener(\"resize\",n.delegate)}),this.delegate(),this.initTimeout=null}function w(e){return void 0===e&&(e=navigator.userAgent),/Android|iPhone|iPad|iPod/i.test(e)}function E(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];if(s(n))return f(e,function(e){f(e,function(e,t){s(e)?(n[t]&&s(n[t])||(n[t]={}),E(n[t],e)):n[t]=e})}),n;throw new TypeError(\"Target must be an object literal.\")}function i(e,a,t){var c=this;void 0===a&&(a={}),void 0===t&&(t=!1);var l,d=[],n=a.interval||r.interval;try{n&&(l=new v(n));var i=u(e);if(!i.length)throw new Error(\"Invalid reveal target.\");f(i.reduce(function(e,t){var n={},i=t.getAttribute(\"data-sr-id\");i?(E(n,c.store.elements[i]),n.node.setAttribute(\"style\",n.styles.inline.computed)):(n.id=y(),n.node=t,n.seen=!1,n.revealed=!1,n.visible=!1);var r=E({},n.config||c.defaults,a);if(!r.mobile&&w()||!r.desktop&&!w())return i&&p.call(c,n),e;var o,s=u(r.container)[0];if(!s)throw new Error(\"Invalid container.\");return s.contains(t)&&(null===(o=function(t){var e=[],n=arguments.length-1;for(;0<n--;)e[n]=arguments[n+1];var i=null;return f(e,function(e){f(e,function(e){null===i&&e.node===t&&(i=e.id)})}),i}(s,d,c.store.containers))&&(o=y(),d.push({id:o,node:s})),n.config=r,n.containerId=o,n.styles=m(n),l&&(n.sequence={id:l.id,index:l.members.length},l.members.push(n.id)),e.push(n)),e},[]),function(e){(c.store.elements[e.id]=e).node.setAttribute(\"data-sr-id\",e.id)})}catch(e){return h.call(this,\"Reveal failed.\",e.message)}f(d,function(e){c.store.containers[e.id]={id:e.id,node:e.node}}),l&&(this.store.sequences[l.id]=l),!0!==t&&(this.store.history.push({target:e,options:a}),this.initTimeout&&window.clearTimeout(this.initTimeout),this.initTimeout=window.setTimeout(b.bind(this),0))}var j,T=Math.sign||function(e){return(0<e)-(e<0)||+e},O=(j=Date.now(),function(e){var t=Date.now();16<t-j?e(j=t):setTimeout(function(){return O(e)},0)}),k=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||O;function x(e,t){for(var n=t?e.node.clientHeight:e.node.offsetHeight,i=t?e.node.clientWidth:e.node.offsetWidth,r=0,o=0,s=e.node;isNaN(s.offsetTop)||(r+=s.offsetTop),isNaN(s.offsetLeft)||(o+=s.offsetLeft),s=s.offsetParent;);return{bounds:{top:r,right:o+i,bottom:r+n,left:o},height:n,width:i}}function A(e,t){var i=this;void 0===e&&(e={type:\"init\"}),void 0===t&&(t=this.store.elements),k(function(){var n=\"init\"===e.type||\"resize\"===e.type;f(i.store.containers,function(e){n&&(e.geometry=x.call(i,e,!0));var t=function(e){var t,n;return e.node===document.documentElement?(t=window.pageYOffset,n=window.pageXOffset):(t=e.node.scrollTop,n=e.node.scrollLeft),{top:t,left:n}}.call(i,e);e.scroll&&(e.direction={x:T(t.left-e.scroll.left),y:T(t.top-e.scroll.top)}),e.scroll=t}),f(t,function(e){n&&(e.geometry=x.call(i,e)),e.visible=function(e){void 0===e&&(e={});var t=this.store.containers[e.containerId];if(t){var n=Math.max(0,Math.min(1,e.config.viewFactor)),i=e.config.viewOffset,r=e.geometry.bounds.top+e.geometry.height*n,o=e.geometry.bounds.right-e.geometry.width*n,s=e.geometry.bounds.bottom-e.geometry.height*n,a=e.geometry.bounds.left+e.geometry.width*n,c=t.geometry.bounds.top+t.scroll.top+i.top,l=t.geometry.bounds.right+t.scroll.left-i.right,d=t.geometry.bounds.bottom+t.scroll.top-i.bottom,u=t.geometry.bounds.left+t.scroll.left+i.left;return r<d&&u<o&&c<s&&a<l||\"fixed\"===e.styles.position}}.call(i,e)}),f(t,function(e){e.sequence?l.call(i,e):c.call(i,e)}),i.pristine=!1})}var R,q,P,I,L,M,C,W,Y=\"4.0.0\";function $(e){var t;if(void 0===e&&(e={}),void 0===this||Object.getPrototypeOf(this)!==$.prototype)return new $(e);if(!$.isSupported())return h.call(this,\"Instantiation failed.\",\"This browser is not supported.\"),n;try{t=E({},M||r,e)}catch(e){return h.call(this,\"Instantiation failed.\",\"Invalid configuration.\",e.message),n}try{if(!u(t.container)[0])throw new Error(\"Invalid container.\");if(!t.mobile&&w()||!t.desktop&&!w())throw new Error(\"This device is disabled.\")}catch(e){return h.call(this,\"Instantiation failed.\",e.message),n}return M=t,document.documentElement.classList.add(\"sr\"),document.body?document.body.style.height=\"100%\":document.addEventListener(\"DOMContentLoaded\",function(){document.body.style.height=\"100%\"}),this.store={containers:{},elements:{},history:[],sequences:{}},this.pristine=!0,R=R||A.bind(this),q=q||function(){var n=this;f(this.store.elements,function(e){e.node.setAttribute(\"style\",e.styles.inline.generated),e.node.removeAttribute(\"data-sr-id\")}),f(this.store.containers,function(e){var t=e.node===document.documentElement?window:e.node;t.removeEventListener(\"scroll\",n.delegate),t.removeEventListener(\"resize\",n.delegate)}),this.store={containers:{},elements:{},history:[],sequences:{}}}.bind(this),P=P||i.bind(this),I=I||p.bind(this),L=L||function(){var t=this;f(this.store.history,function(e){i.call(t,e.target,e.options,!0)}),b.call(this)}.bind(this),Object.defineProperty(this,\"delegate\",{get:function(){return R}}),Object.defineProperty(this,\"destroy\",{get:function(){return q}}),Object.defineProperty(this,\"reveal\",{get:function(){return P}}),Object.defineProperty(this,\"clean\",{get:function(){return I}}),Object.defineProperty(this,\"sync\",{get:function(){return L}}),Object.defineProperty(this,\"defaults\",{get:function(){return M}}),Object.defineProperty(this,\"version\",{get:function(){return Y}}),Object.defineProperty(this,\"noop\",{get:function(){return!1}}),W||(W=this)}return $.isSupported=function(){return(\"transform\"in(t=document.documentElement.style)||\"WebkitTransform\"in t)&&(\"transition\"in(e=document.documentElement.style)||\"WebkitTransition\"in e);var e,t},Object.defineProperty($,\"debug\",{get:function(){return C||!1},set:function(e){return C=\"boolean\"==typeof e?e:C}}),$(),$}();\n"]}