@arcblock/www-wallet
Version:
Start experiencing your digital world with ABT Wallet
1 lines • 50.2 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{"+c4W":function(e,t,n){var r=n("711d"),o=n("4/ic"),a=n("9ggG"),i=n("9Nap");e.exports=function(e){return a(e)?r(i(e)):o(e)}},"1LK5":function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},"1hJj":function(e,t,n){var r=n("e4Nc"),o=n("ftKO"),a=n("3A9y");function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},"3A9y":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"4/ic":function(e,t,n){var r=n("ZWtO");e.exports=function(e){return function(t){return r(t,e)}}},"4sDh":function(e,t,n){var r=n("4uTw"),o=n("03A+"),a=n("Z0cm"),i=n("wJg7"),l=n("shjB"),u=n("9Nap");e.exports=function(e,t,n){for(var s=-1,c=(t=r(t,e)).length,d=!1;++s<c;){var h=u(t[s]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++s!=c?d:!!(c=null==e?0:e.length)&&l(c)&&i(h,c)&&(a(e)||o(e))}},"7fqy":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},"88Gu":function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},"8jAD":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InlineIcon=t.Icon=void 0;var r,o=(r=n("q1tI"))&&r.__esModule?r:{default:r};function a(e){return(a="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})(e)}function i(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)}}var l=0,u=/(-?[0-9.]*[0-9]+[0-9.]*)/g,s=/^-?[0-9.]*[0-9]+[0-9.]*$/g,c=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],d={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=t}var t,n,r;return t=e,r=[{key:"splitAttributes",value:function(e){var t={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(n){t[-1===c.indexOf(n)?"node":"icon"][n]=e[n]})),t}},{key:"calculateDimension",value:function(e,t,n){if(1===t)return e;if(n=void 0===n?100:n,"number"==typeof e)return Math.ceil(e*t*n)/n;var r=e.split(u);if(null===r||!r.length)return null;for(var o,a=[],i=r.shift(),l=s.test(i);;){if(l?(o=parseFloat(i),isNaN(o)?a.push(i):a.push(Math.ceil(o*t*n)/n)):a.push(i),void 0===(i=r.shift()))return a.join("");l=!l}}},{key:"replaceIDs",value:function(e){var t,n,r=/\sid="(\S+)"/g,o=[];function a(e,t,n){for(var r=0;-1!==(r=n.indexOf(e,r));)n=n.slice(0,r)+t+n.slice(r+e.length),r+=t.length;return n}for(;t=r.exec(e);)o.push(t[1]);return o.length?(n="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(t){var r=n+l;l++,e=a('="'+t+'"','="'+r+'"',e),e=a('="#'+t+'"','="#'+r+'"',e),e=a("(#"+t+")","(#"+r+")",e)})),e):e}}],(n=[{key:"getAttributes",value:function(t){var n=this._item;"object"!==a(t)&&(t=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:n.rotate,hFlip:n.hFlip,vFlip:n.vFlip},i=Object.create(null),l=Object.create(null),u=!0===t.inline||"true"===t.inline||"1"===t.inline,s={left:n.left,top:u?n.inlineTop:n.top,width:n.width,height:u?n.inlineHeight:n.height};if(["hFlip","vFlip"].forEach((function(e){void 0===t[e]||!0!==t[e]&&"true"!==t[e]&&"1"!==t[e]||(o[e]=!o[e])})),void 0!==t.flip&&t.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==t.rotate){var c=t.rotate;if("number"==typeof c)o.rotate+=c;else if("string"==typeof c){var d=c.replace(/^-?[0-9.]*/,"");if(""===d)c=parseInt(c),isNaN(c)||(o.rotate+=c);else if(d!==c){var h=!1;switch(d){case"%":h=25;break;case"deg":h=90}h&&(c=parseInt(c.slice(0,c.length-d.length)),isNaN(c)||(o.rotate+=Math.round(c/h)))}}}var f,p=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(p.push("translate("+(s.width+s.left)+" "+(0-s.top)+")"),p.push("scale(-1 1)"),s.top=s.left=0):o.vFlip&&(p.push("translate("+(0-s.left)+" "+(s.height+s.top)+")"),p.push("scale(1 -1)"),s.top=s.left=0),o.rotate%4){case 1:f=s.height/2+s.top,p.unshift("rotate(90 "+f+" "+f+")"),0===s.left&&0===s.top||(f=s.left,s.left=s.top,s.top=f),s.width!==s.height&&(f=s.width,s.width=s.height,s.height=f);break;case 2:p.unshift("rotate(180 "+(s.width/2+s.left)+" "+(s.height/2+s.top)+")");break;case 3:f=s.width/2+s.left,p.unshift("rotate(-90 "+f+" "+f+")"),0===s.left&&0===s.top||(f=s.left,s.left=s.top,s.top=f),s.width!==s.height&&(f=s.width,s.width=s.height,s.height=f)}var v,m,g=t.width?t.width:null,w=t.height?t.height:null;null===g&&null===w&&(w="1em"),null!==g&&null!==w?(v=g,m=w):null!==g?(v=g,m=e.calculateDimension(v,s.height/s.width)):(m=w,v=e.calculateDimension(m,s.width/s.height)),!1!==v&&(l.width="auto"===v?s.width:v),!1!==m&&(l.height="auto"===m?s.height:m),u&&0!==n.verticalAlign&&(i["vertical-align"]=n.verticalAlign+"em"),void 0!==t.align&&t.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),l.preserveAspectRatio=function(e){var t;switch(e.horizontal){case"left":t="xMin";break;case"right":t="xMax";break;default:t="xMid"}switch(e.vertical){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet"}(r),l.viewBox=s.left+" "+s.top+" "+s.width+" "+s.height;var b=e.replaceIDs(n.body);return void 0!==t.color&&(b=b.replace(/currentColor/g,t.color)),p.length&&(b='<g transform="'+p.join(" ")+'">'+b+"</g>"),!0!==t.box&&"true"!==t.box&&"1"!==t.box||(b+='<rect x="'+s.left+'" y="'+s.top+'" width="'+s.width+'" height="'+s.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:l,body:b,style:i}}},{key:"getSVG",value:function(t,n){var r=e.splitAttributes(t),o=this.getAttributes(r.icon),a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return n&&Object.keys(r.node).forEach((function(e){a+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){a+=" "+e+'="'+o.attributes[e]+'"'})),a+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){a+=" "+e+": "+o.style[e]+";"})),t&&void 0!==t.style&&(a+=t.style),a+='">',a+=o.body+"</svg>"}}])&&i(t.prototype,n),r&&i(t,r),e}();function f(e,t){if("object"!==a(e.icon))return null;var n=h.splitAttributes(e),r=n.icon,i=n.node;delete i.icon,void 0===r.inline&&(r.inline=t);var l=new h(function(e){var t,n=Object.create(null);for(t in d)n[t]=d[t];for(t in e)n[t]=e[t];return void 0===n.inlineTop&&(n.inlineTop=n.top),void 0===n.inlineHeight&&(n.inlineHeight=n.height),void 0===n.verticalAlign&&(n.verticalAlign=n.height%7==0&&n.height%8!=0?-.143:-.125),n}(e.icon)).getAttributes(r),u={transform:"rotate(360deg)"};if(void 0!==l.style["vertical-align"]&&(u.verticalAlign=l.style["vertical-align"]),void 0!==e.style)for(var s in e.style)u[s]=e.style[s];var c,f={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:u};for(c in i)f[c]=i[c];for(c in l.attributes)f[c]=l.attributes[c];return f.dangerouslySetInnerHTML={__html:l.body},o.default.createElement("svg",f,null)}var p=function(e){return f(e,!1)};t.Icon=p;t.InlineIcon=function(e){return f(e,!0)};var v=p;t.default=v},"9mE6":function(e,t){t.__esModule=!0,t.default={body:'<path d="M10 16.5v-9l6 4.5M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2z" fill="currentColor"/>',width:24,height:24}},BiGR:function(e,t,n){var r=n("nmnc"),o=n("03A+"),a=n("Z0cm"),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},CMye:function(e,t,n){var r=n("GoyQ");e.exports=function(e){return e==e&&!r(e)}},E3hX:function(e,t,n){"use strict";var r=n("5NKs");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("q1tI")),a=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z"}),"ArrowForwardIos");t.default=a},EA7m:function(e,t,n){var r=n("zZ0H"),o=n("Ioao"),a=n("wclG");e.exports=function(e,t){return a(o(e,t,r),e+"")}},EBAg:function(e,t,n){},GDhZ:function(e,t,n){var r=n("wF/u"),o=n("mwIZ"),a=n("hgQt"),i=n("9ggG"),l=n("CMye"),u=n("IOzZ"),s=n("9Nap");e.exports=function(e,t){return i(e)&&l(t)?u(s(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},GtMS:function(e,t){t.__esModule=!0,t.default={body:'<path d="M11.5 12l8.5 6V6m-9 12V6l-8.5 6l8.5 6z" fill="currentColor"/>',width:24,height:24}},HDyB:function(e,t,n){var r=n("nmnc"),o=n("JHRd"),a=n("ljhN"),i=n("or5M"),l=n("7fqy"),u=n("rEGp"),s=r?r.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=l;case"[object Set]":var p=1&r;if(f||(f=u),e.size!=t.size&&!p)return!1;var v=h.get(e);if(v)return v==t;r|=2,h.set(e,t);var m=i(f(e),f(t),r,s,d,h);return h.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},IOzZ:function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},IWTy:function(e,t,n){var r=n("yue5");e.exports=function(e,t,n){for(var o=-1,a=e.criteria,i=t.criteria,l=a.length,u=n.length;++o<l;){var s=r(a[o],i[o]);if(s)return o>=u?s:s*("desc"==n[o]?-1:1)}return e.index-t.index}},Ioao:function(e,t,n){var r=n("heNW"),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),u=Array(l);++i<l;)u[i]=a[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=a[i];return s[t]=n(u),r(e,this,s)}}},JC6p:function(e,t,n){var r=n("cq/+"),o=n("7GkX");e.exports=function(e,t){return e&&r(e,t,o)}},JlcV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("i0/C"),o=n("q1tI"),a=r.__importDefault(n("bdgK"));t.default=function(){var e=o.useState({x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0}),t=e[0],n=e[1],r=o.useState((function(){return new a.default((function(e){var t=e[0];t&&n(t.contentRect)}))}))[0];return[o.useCallback((function(e){r.disconnect(),e&&r.observe(e)}),[r]),t]}},Juji:function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},O7RO:function(e,t,n){var r=n("CMye"),o=n("7GkX");e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},OHh6:function(e,t){t.__esModule=!0,t.default={body:'<path d="M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.84-5 6.7v2.07c4-.91 7-4.49 7-8.77c0-4.28-3-7.86-7-8.77M16.5 12c0-1.77-1-3.29-2.5-4.03V16c1.5-.71 2.5-2.24 2.5-4M3 9v6h4l5 5V4L7 9H3z" fill="currentColor"/>',width:24,height:24}},QoRX:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},SKAX:function(e,t,n){var r=n("JC6p"),o=n("lQqw")(r);e.exports=o},WEVi:function(e,t){t.__esModule=!0,t.default={body:'<path d="M3 9h4l5-5v16l-5-5H3V9m13.59 3L14 9.41L15.41 8L18 10.59L20.59 8L22 9.41L19.41 12L22 14.59L20.59 16L18 13.41L15.41 16L14 14.59L16.59 12z" fill="currentColor"/>',width:24,height:24}},XGnz:function(e,t,n){var r=n("CH3K"),o=n("BiGR");e.exports=function e(t,n,a,i,l){var u=-1,s=t.length;for(a||(a=o),l||(l=[]);++u<s;){var c=t[u];n>0&&a(c)?n>1?e(c,n-1,a,i,l):r(l,c):i||(l[l.length]=c)}return l}},Ynen:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},o=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],a=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],i=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],l="undefined"!=typeof window&&void 0!==window.document?window.document:{},u="fullscreenEnabled"in l&&Object.keys(r)||o[0]in l&&o||a[0]in l&&a||i[0]in l&&i||[];t.default={requestFullscreen:function(e){return e[u[r.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[u[r.requestFullscreen]]},get exitFullscreen(){return l[u[r.exitFullscreen]].bind(l)},get fullscreenPseudoClass(){return":"+u[r.fullscreen]},addEventListener:function(e,t,n){return l.addEventListener(u[r[e]],t,n)},removeEventListener:function(e,t,n){return l.removeEventListener(u[r[e]],t,n)},get fullscreenEnabled(){return Boolean(l[u[r.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return l[u[r.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return l[("on"+u[r.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return l[("on"+u[r.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return l[("on"+u[r.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return l[("on"+u[r.fullscreenerror]).toLowerCase()]=e}}},ZCpW:function(e,t,n){var r=n("lm/5"),o=n("O7RO"),a=n("IOzZ");e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},alwl:function(e,t,n){var r=n("eUgh"),o=n("ZWtO"),a=n("ut/Y"),i=n("l9OW"),l=n("1LK5"),u=n("sEf8"),s=n("IWTy"),c=n("zZ0H"),d=n("Z0cm");e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var h=-1;t=r(t,u(a));var f=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++h,value:e}}));return l(f,(function(e,t){return s(e,t,n)}))}},anHE:function(e,t,n){"use strict";var r=n("5NKs");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("q1tI")),a=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExit");t.default=a},"cq/+":function(e,t,n){var r=n("mc0g")();e.exports=r},cvCv:function(e,t){e.exports=function(e){return function(){return e}}},e5cp:function(e,t,n){var r=n("fmRc"),o=n("or5M"),a=n("HDyB"),i=n("seXi"),l=n("QqLw"),u=n("Z0cm"),s=n("DSRE"),c=n("c6wG"),d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,p,v){var m=u(e),g=u(t),w=m?"[object Array]":l(e),b=g?"[object Array]":l(t),E=(w="[object Arguments]"==w?d:w)==d,y=(b="[object Arguments]"==b?d:b)==d,x=w==b;if(x&&s(e)){if(!s(t))return!1;m=!0,E=!1}if(x&&!E)return v||(v=new r),m||c(e)?o(e,t,n,f,p,v):a(e,t,w,n,f,p,v);if(!(1&n)){var M=E&&h.call(e,"__wrapped__"),C=y&&h.call(t,"__wrapped__");if(M||C){var L=M?e.value():e,_=C?t.value():t;return v||(v=new r),p(L,_,n,f,v)}}return!!x&&(v||(v=new r),i(e,t,n,f,p,v))}},ftKO:function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},g4R6:function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},gLOz:function(e,t,n){"use strict";var r=n("5NKs");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("q1tI")),a=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");t.default=a},gb7j:function(e,t,n){var r=n("g4R6"),o=n("zoYe"),a=n("Sxd8"),i=n("dt0z");e.exports=function(e,t,n){e=i(e),t=o(t);var l=e.length,u=n=void 0===n?l:r(a(n),0,l);return(n-=t.length)>=0&&e.slice(n,u)==t}},gfl7:function(e,t){t.__esModule=!0,t.default={body:'<path d="M2 5.27L3.28 4L20 20.72L18.73 22l-3-3H7v3l-4-4l4-4v3h6.73L7 10.27V11H5V8.27l-3-3M17 13h2v4.18l-2-2V13m0-8V2l4 4l-4 4V7H8.82l-2-2H17z" fill="currentColor"/>',width:24,height:24}},hVMy:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Me}));var r=n("q1tI"),o=n.n(r),a=n("Wbzz"),i=n("gb7j"),l=n.n(i),u=n("vOnD"),s=n("JlcV"),c=n.n(s),d=n("vlII"),h=n.n(d),f=n("pW3x"),p=n.n(f),v=n("668i"),m=n("PsDL"),g=n("E3hX"),w=n.n(g),b=n("gLOz"),E=n.n(b),y=n("jOUs"),x=n.n(y),M=n("anHE"),C=n.n(M),L=n("tE8B"),_=n.n(L),k=n("Ntlj"),P=n("xweI"),A=n.n(P),O=function(e){return e.properties&&Array.isArray(e.properties.className)&&e.properties.className.indexOf("slide")>-1},T=[37,38,33,72,75],S=[39,40,34,74,76];function j(e){var t=e.hast,n=e.controlled,a=e.selected,i=e.onPlay,l=e.changeLocationHash,u=t.children.filter(O),s=u.length,d=p()(),f=d.width,g=d.height,b=c()(),y=b[0],M=b[1].width,L=Object(r.useState)(0),P=L[0],A=L[1],j=h()(!1),V=j[0],D=j[1],N=h()(!1),I=N[0],z=N[1],W=Object(r.useState)()[1];Object(r.useEffect)((function(){if(u[P]&&l&&(window.location.hash=u[P].properties.id),!n){var e=function(e){I&&(T.indexOf(e.which)>=0&&(e.preventDefault(),A(P-1>=0?P-1:0)),S.indexOf(e.which)>=0&&(e.preventDefault(),A(P+1<s?P+1:0)))};return document.addEventListener("keydown",e),window.addEventListener("resize",W),function(){document.removeEventListener("keydown",e),window.removeEventListener("resize",W)}}})),Object(r.useEffect)((function(){"function"==typeof i&&i({current:P,total:s})}),[P]),Object(r.useEffect)((function(){a>=0&&a<s&&a!==P&&A(a)}),[a]);var H=P/(s-1)*100,U=Object(k.a)(function(e,t){return e.children.filter(O).forEach((function(e,n){if(e.properties||(e.properties={}),e.properties.className||(e.properties.className=[]),n===t)-1===e.properties.className.indexOf("active")&&e.properties.className.push("active");else{var r=e.properties.className.indexOf("active");r>-1&&e.properties.className.splice(r,1)}})),e}(t,P)),B=f/g,R=V?f:M,q=R>1280?1280:R,J=0;J=q<=1280?q/(16/9):q/(B>1?Math.min(16/9,B):Math.max(16/9,B));var G=1,Z=0;V&&(Z=(g-J)/2,G=B>16/9?g/J:f/q);var X=".shower { --slide-width: "+q+"px; }";return o.a.createElement(_.a,{enabled:V,onChange:function(e){return D(e)}},o.a.createElement(v.a,{onClickAway:function(){return z(!1)}},o.a.createElement(F,{ref:y,fullscreen:V,controlled:n,height:J,onClick:function(){return z(!0)},style:{marginTop:Z,transform:"scale("+G+")"}},o.a.createElement("div",{className:"presentation-wrapper"},o.a.createElement("div",{className:"shower full"},U.props.children,o.a.createElement("style",{scoped:!0,dangerouslySetInnerHTML:{__html:X}}),!n&&o.a.createElement("div",{className:"progress",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":H,"aria-valuetext":"Slideshow Progress: "+H,style:{width:H+"%"}})),!n&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"controls",style:{width:q}},o.a.createElement("div",{className:"controls-group"},o.a.createElement(m.a,{className:"control-button",onClick:function(){return A(P-1)},disabled:0===P},o.a.createElement(E.a,{className:"control-icon control-prev",fontSize:"small"})),o.a.createElement(m.a,{className:"control-button",onClick:function(){return A(P+1)},disabled:P===s-1},o.a.createElement(w.a,{className:"control-icon control-prev",fontSize:"small"}))),o.a.createElement("div",{className:"controls-group"},o.a.createElement(m.a,{className:"control-button",onClick:function(){return D()},disabled:P===s-1},V?o.a.createElement(C.a,{className:"control-icon control-exit",fontSize:"medium"}):o.a.createElement(x.a,{className:"control-icon control-full",fontSize:"medium"})))))))))}j.defaultProps={changeLocationHash:!1,controlled:!1,selected:-1,onPlay:function(){}};var F=u.default.div.withConfig({displayName:"deck__Div",componentId:"sc-1anoifs-0"})(["width:100%;height:","px;margin-bottom:","px;.presentation-wrapper{position:relative;height:","px;.shower{"," box-shadow:0 0 3px 0 rgba(0,0,0,0.2);.slide.shout h2{padding:0;margin:0;position:absolute;border:none;top:50%;left:0;width:100%;text-align:center;line-height:1;font-size:60px;-webkit-transform:translateY(-50%);transform:translateY(-50%);}.slide.shout.small h2{font-size:36px;}.slide .highlight pre,.slide pre{background-color:#222;font-size:14px;}.slide{.gatsby-resp-image-background-image{display:none !important;}.gatsby-resp-image-image{width:auto !important;height:auto !important;max-height:calc(var(--slide-height) * 0.8) !important;max-width:calc(var(--slide-width) - 128px) !important;}}}.controls{background:#fff;position:absolute;right:0;bottom:-60px;left:0;z-index:4;display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 10px;height:60px;width:100%;"," box-shadow:0 0 3px 0 rgba(0,0,0,0.2);.control-icon{}.control-group{height:60px;}}}"],(function(e){return e.height}),(function(e){return e.controlled?0:84}),(function(e){return e.height}),(function(e){return e.fullscreen?"":"border-radius: 6px 6px 0 0;"}),(function(e){return e.fullscreen?"":"border-radius: 0 0 6px 6px;"})),V=n("8o2o"),D=n("v06X"),N=n.n(D),I=n("XEEL"),z=n.n(I),W=n("0jh0"),H=n.n(W),U=n("8jAD"),B=n("9mE6"),R=n.n(B),q=n("zqQw"),J=n.n(q),G=n("sCTh"),Z=n.n(G),X=n("qJpP"),K=n.n(X),Y=n("oJqr"),Q=n.n(Y),$=n("GtMS"),ee=n.n($),te=n("OHh6"),ne=n.n(te),re=n("WEVi"),oe=n.n(re),ae=n("sRb4"),ie=n.n(ae),le=n("gfl7"),ue=n.n(le),se=function(e){return e instanceof MouseEvent?e.pageX||e.clientX:e.touches[0].pageX||e.touches[0].clientX},ce=function(e){return e>9?e.toString():"0"+e},de=function(e){return isFinite(e)?ce(Math.floor(e/60))+":"+ce(Math.floor(e%60)):"00:00"};function he(e,t){var n=!1;return function(r){n||(e(r),n=!0,setTimeout((function(){return n=!1}),t))}}var fe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,H()(N()(t),"audio",void 0),H()(N()(t),"timeOnMouseMove",0),H()(N()(t),"hasAddedAudioEventListener",!1),H()(N()(t),"downloadProgressAnimationTimer",void 0),H()(N()(t),"progressBarEl",void 0),H()(N()(t),"state",{isDraggingProgress:!1,currentTimePos:"0%",hasDownloadProgressAnimation:!1,downloadProgressArr:[]}),H()(N()(t),"getCurrentProgress",(function(e){var n=t.props.audio;if(!n.src||!isFinite(n.currentTime)||!t.progressBarEl)return{currentTime:0,currentTimePos:"0%"};var r=t.progressBarEl.getBoundingClientRect(),o=r.width,a=se(e)-r.left;return a<0?a=0:a>o&&(a=o),{currentTime:t.props.audio.duration*a/o,currentTimePos:(a/o*100).toFixed(2)+"%"}})),H()(N()(t),"handleMouseDownProgressBar",(function(e){e.stopPropagation();var n=t.getCurrentProgress(e.nativeEvent),r=n.currentTime,o=n.currentTimePos;isFinite(r)&&(t.timeOnMouseMove=r,t.setState({isDraggingProgress:!0,currentTimePos:o}),e.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",t.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",t.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",t.handleWindowMouseOrTouchMove),window.addEventListener("touchend",t.handleWindowMouseOrTouchUp)))})),H()(N()(t),"handleWindowMouseOrTouchMove",(function(e){e.preventDefault(),e.stopPropagation();var n=window.getSelection();if(n&&"Range"===n.type&&n.empty(),t.state.isDraggingProgress){var r=t.getCurrentProgress(e),o=r.currentTime,a=r.currentTimePos;t.timeOnMouseMove=o,t.setState({currentTimePos:a})}})),H()(N()(t),"handleWindowMouseOrTouchUp",(function(e){e.stopPropagation(),t.setState((function(e){return e.isDraggingProgress&&isFinite(t.timeOnMouseMove)&&(t.props.audio.currentTime=t.timeOnMouseMove),{isDraggingProgress:!1}})),e instanceof MouseEvent?(window.removeEventListener("mousemove",t.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",t.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",t.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",t.handleWindowMouseOrTouchUp))})),H()(N()(t),"handleAudioTimeUpdate",he((function(e){var n=t.state.isDraggingProgress,r=e.target;if(!n){var o=r.duration,a=r.currentTime;t.setState({currentTimePos:(a/o*100||0).toFixed(2)+"%"})}}),t.props.progressUpdateInterval)),H()(N()(t),"handleAudioDownloadProgressUpdate",(function(e){for(var n=e.target,r=[],o=0;o<n.buffered.length;o++){var a=n.buffered.start(o),i=n.buffered.end(o);r.push({left:(Math.round(100/n.duration*a)||0)+"%",width:(Math.round(100/n.duration*(i-a))||0)+"%"})}clearTimeout(t.downloadProgressAnimationTimer),t.setState({downloadProgressArr:r,hasDownloadProgressAnimation:!0}),t.downloadProgressAnimationTimer=setTimeout((function(){t.setState({hasDownloadProgressAnimation:!1})}),200)})),t}z()(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",this.handleAudioTimeUpdate),e.addEventListener("progress",this.handleAudioDownloadProgressUpdate))},n.componentWillUnmount=function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioTimeUpdate),this.audio.removeEventListener("progress",this.handleAudioDownloadProgressUpdate)),clearTimeout(this.downloadProgressAnimationTimer)},n.render=function(){var e=this,t=this.props,n=t.showDownloadProgress,r=t.ShowFilledProgress,a=this.state,i=a.currentTimePos,l=a.downloadProgressArr,u=a.hasDownloadProgressAnimation;return o.a.createElement("div",{className:"rhap_progress-container",ref:function(t){e.progressBarEl=t},"aria-label":"Audio Progress Control","aria-describedby":"rhap_current-time",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number(i.split("%")[0]),tabIndex:0,onMouseDown:this.handleMouseDownProgressBar,onTouchStart:this.handleMouseDownProgressBar},o.a.createElement("div",{className:"rhap_progress-bar "+(n?"rhap_progress-bar-show-download":"")},o.a.createElement("div",{className:"rhap_progress-indicator",style:{left:i}}),r&&o.a.createElement("div",{className:"rhap_progress-filled",style:{width:i}}),n&&l.map((function(e,t){var n=e.left,r=e.width;return o.a.createElement("div",{key:t,className:"rhap_download-progress",style:{left:n,width:r,transitionDuration:u?".2s":"0s"}})}))))},t}(r.Component),pe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,H()(N()(t),"audio",void 0),H()(N()(t),"hasAddedAudioEventListener",!1),H()(N()(t),"state",{currentTime:t.props.defaultCurrentTime}),H()(N()(t),"handleAudioCurrentTimeChange",(function(e){var n=e.target;t.setState({currentTime:de(n.currentTime)})})),t}z()(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",this.handleAudioCurrentTimeChange),e.addEventListener("loadedmetadata",this.handleAudioCurrentTimeChange))},n.componentWillUnmount=function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioCurrentTimeChange),this.audio.removeEventListener("loadedmetadata",this.handleAudioCurrentTimeChange))},n.render=function(){return this.state.currentTime},t}(r.PureComponent),ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,H()(N()(t),"audio",void 0),H()(N()(t),"hasAddedAudioEventListener",!1),H()(N()(t),"state",{duration:t.props.defaultDuration}),H()(N()(t),"handleAudioDurationChange",(function(e){var n=e.target;t.setState({duration:de(n.duration)})})),t}z()(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("durationchange",this.handleAudioDurationChange))},n.componentWillUnmount=function(){this.audio&&this.hasAddedAudioEventListener&&this.audio.removeEventListener("durationchange",this.handleAudioDurationChange)},n.render=function(){return this.state.duration},t}(r.PureComponent),me=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,H()(N()(t),"audio",void 0),H()(N()(t),"hasAddedAudioEventListener",!1),H()(N()(t),"volumeBarEl",void 0),H()(N()(t),"volumeAnimationTimer",0),H()(N()(t),"lastVolume",t.props.volume),H()(N()(t),"state",{currentVolumePos:(t.lastVolume/1*100||0).toFixed(2)+"%",hasVolumeAnimation:!1,isDraggingVolume:!1}),H()(N()(t),"getCurrentVolume",(function(e){var n=t.props.audio;if(!t.volumeBarEl)return{currentVolume:n.volume,currentVolumePos:t.state.currentVolumePos};var r,o,a=t.volumeBarEl.getBoundingClientRect(),i=a.width,l=se(e)-a.left;return l<0?(r=0,o="0%"):l>a.width?(r=1,o="100%"):(r=l/i,o=l/i*100+"%"),{currentVolume:r,currentVolumePos:o}})),H()(N()(t),"handleClickVolumeButton",(function(){var e=t.props.audio;e.volume>0?(t.lastVolume=e.volume,e.volume=0):e.volume=t.lastVolume})),H()(N()(t),"handleVolumnControlMouseDown",(function(e){e.stopPropagation();var n=t.props.audio,r=t.getCurrentVolume(e.nativeEvent),o=r.currentVolume,a=r.currentVolumePos;n.volume=o,t.setState({isDraggingVolume:!0,currentVolumePos:a}),e.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",t.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",t.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",t.handleWindowMouseOrTouchMove),window.addEventListener("touchend",t.handleWindowMouseOrTouchUp))})),H()(N()(t),"handleWindowMouseOrTouchMove",(function(e){e.preventDefault(),e.stopPropagation();var n=t.props.audio,r=window.getSelection();if(r&&"Range"===r.type&&r.empty(),t.state.isDraggingVolume){var o=t.getCurrentVolume(e),a=o.currentVolume,i=o.currentVolumePos;n.volume=a,t.setState({currentVolumePos:i})}})),H()(N()(t),"handleWindowMouseOrTouchUp",(function(e){e.stopPropagation(),t.setState({isDraggingVolume:!1}),e instanceof MouseEvent?(window.removeEventListener("mousemove",t.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",t.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",t.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",t.handleWindowMouseOrTouchUp))})),H()(N()(t),"handleAudioVolumeChange",(function(e){var n=t.state.isDraggingVolume,r=e.target.volume;(t.lastVolume>0&&0===r||0===t.lastVolume&&r>0)&&t.props.onMuteChange(),t.lastVolume=r,n||(t.setState({hasVolumeAnimation:!0,currentVolumePos:(r/1*100||0).toFixed(2)+"%"}),clearTimeout(t.volumeAnimationTimer),t.volumeAnimationTimer=setTimeout((function(){t.setState({hasVolumeAnimation:!1})}),100))})),t}z()(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("volumechange",this.handleAudioVolumeChange))},n.componentWillUnmount=function(){this.audio&&this.hasAddedAudioEventListener&&this.audio.removeEventListener("volumechange",this.handleAudioVolumeChange),clearTimeout(this.volumeAnimationTimer)},n.render=function(){var e=this,t=this.props.audio,n=this.state,r=n.currentVolumePos,a=n.hasVolumeAnimation,i=(t||{}).volume;return o.a.createElement("div",{ref:function(t){e.volumeBarEl=t},onMouseDown:this.handleVolumnControlMouseDown,onTouchStart:this.handleVolumnControlMouseDown,role:"progressbar","aria-label":"volume Control","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number((100*i).toFixed(0)),tabIndex:0,className:"rhap_volume-bar-area"},o.a.createElement("div",{className:"rhap_volume-bar"},o.a.createElement("div",{className:"rhap_volume-indicator",style:{left:r,transitionDuration:a?".1s":"0s"}})))},t}(r.Component),ge=function(e){function t(t){var n;n=e.call(this,t)||this,H()(N()(n),"state",void 0),H()(N()(n),"audio",void 0),H()(N()(n),"volumeControl",void 0),H()(N()(n),"progressBarInstance",void 0),H()(N()(n),"container",void 0),H()(N()(n),"lastVolume",void 0),H()(N()(n),"listenTracker",void 0),H()(N()(n),"volumeAnimationTimer",void 0),H()(N()(n),"downloadProgressAnimationTimer",void 0),H()(N()(n),"togglePlay",(function(e){(e.stopPropagation(),n.audio.paused&&n.audio.src)?n.audio.play().then(null).catch((function(e){var t=n.props.onPlayError;t&&t(new Error(e))})):n.audio.paused||n.audio.pause()})),H()(N()(n),"handleClickVolumeButton",(function(){n.audio.volume>0?(n.lastVolume=n.audio.volume,n.audio.volume=0):n.audio.volume=n.lastVolume})),H()(N()(n),"handleMuteChange",(function(){n.forceUpdate()})),H()(N()(n),"handleClickLoopButton",(function(){n.setState((function(e){return{isLoopEnabled:!e.isLoopEnabled}}))})),H()(N()(n),"handleClickRewind",(function(){n.setJumpTime(-n.props.progressJumpStep)})),H()(N()(n),"handleClickForward",(function(){n.setJumpTime(n.props.progressJumpStep)})),H()(N()(n),"setJumpTime",(function(e){var t=n.audio,r=t.duration,o=t.currentTime;if(isFinite(r)&&isFinite(o)){var a=o+e/1e3;a<0?(n.audio.currentTime=0,a=0):a>r?(n.audio.currentTime=r,a=r):n.audio.currentTime=a}})),H()(N()(n),"setJumpVolume",(function(e){var t=n.audio.volume+e;t<0?t=0:t>1&&(t=1),n.audio.volume=t})),H()(N()(n),"setListenTrack",(function(){if(!n.listenTracker){var e=n.props.listenInterval;n.listenTracker=setInterval((function(){n.props.onListen&&n.props.onListen(n.audio.currentTime)}),e)}})),H()(N()(n),"clearListenTrack",(function(){n.listenTracker&&(clearInterval(n.listenTracker),delete n.listenTracker)})),H()(N()(n),"handleKeyDown",(function(e){switch(e.keyCode){case 32:e.target!==n.container&&e.target!==n.progressBarInstance.progressBarEl||n.togglePlay(e);break;case 37:n.handleClickRewind();break;case 39:n.handleClickForward();break;case 38:n.setJumpVolume(n.props.volumeJumpStep);break;case 40:n.setJumpVolume(-n.props.volumeJumpStep);break;case 76:n.handleClickLoopButton();break;case 77:n.handleClickVolumeButton()}}));var r=t.volume;return n.state={isPlaying:!1,isLoopEnabled:n.props.loop},n.lastVolume=r,n}z()(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.forceUpdate();var t=this.audio;this.props.muted?t.volume=0:t.volume=this.lastVolume,t.addEventListener("error",(function(t){e.props.onError&&e.props.onError(t)})),t.addEventListener("canplay",(function(t){e.props.onCanPlay&&e.props.onCanPlay(t)})),t.addEventListener("canplaythrough",(function(t){e.props.onCanPlayThrough&&e.props.onCanPlayThrough(t)})),t.addEventListener("play",(function(t){e.setState({isPlaying:!0}),e.setListenTrack(),e.props.onPlay&&e.props.onPlay(t)})),t.addEventListener("abort",(function(t){e.clearListenTrack(),e.props.autoPlayAfterSrcChange?e.audio.play():e.setState({isPlaying:!1}),e.props.onAbort&&e.props.onAbort(t)})),t.addEventListener("ended",(function(t){e.clearListenTrack(),e.props.onEnded&&e.props.onEnded(t)})),t.addEventListener("pause",(function(t){e.clearListenTrack(),e.audio&&(e.setState({isPlaying:!1}),e.props.onPause&&e.props.onPause(t))}))},n.render=function(){var e,t,n,r=this,a=this.props,i=a.className,l=a.src,u=a.preload,s=a.autoPlay,c=a.crossOrigin,d=a.mediaGroup,h=a.showLoopControl,f=a.showSkipControls,p=a.showJumpControls,v=a.showVolumeControl,m=a.onClickPrevious,g=a.onClickNext,w=a.showDownloadProgress,b=a.ShowFilledProgress,E=a.volume,y=a.defaultCurrentTime,x=a.defaultDuration,M=a.muted,C=a.progressUpdateInterval,L=a.header,_=a.footer,k=a.customIcons,P=a.children,A=a.style,O=this.state,T=O.isPlaying,S=O.isLoopEnabled,j=(this.audio||{}).volume,F=void 0===j?M?0:E:j;return e=S?k.loop?k.loop:o.a.createElement(U.Icon,{icon:ie.a}):k.loopOff?k.loopOff:o.a.createElement(U.Icon,{icon:ue.a}),t=T?k.pause?k.pause:o.a.createElement(U.Icon,{icon:J.a}):k.play?k.play:o.a.createElement(U.Icon,{icon:R.a}),n=F?k.volume?k.volume:o.a.createElement(U.Icon,{icon:ne.a}):k.volume?k.volumeMute:o.a.createElement(U.Icon,{icon:oe.a}),o.a.createElement("div",{role:"group",tabIndex:0,"aria-label":"Audio Player",className:"rhap_container "+i,onKeyDown:this.handleKeyDown,ref:function(e){r.container=e},style:A},o.a.createElement("audio",{src:l,controls:!1,loop:S,autoPlay:s,preload:u,crossOrigin:c,mediaGroup:d,ref:function(e){r.audio=e}},P),L&&o.a.createElement("div",{className:"rhap_header"},L),o.a.createElement("div",{className:"rhap_progress-section"},o.a.createElement("div",{id:"rhap_current-time",className:"rhap_time rhap_current-time"},o.a.createElement(pe,{audio:this.audio,defaultCurrentTime:y})),o.a.createElement(fe,{ref:function(e){r.progressBarInstance=e},audio:this.audio,progressUpdateInterval:C,showDownloadProgress:w,ShowFilledProgress:b}),o.a.createElement("div",{className:"rhap_time rhap_total-time"},o.a.createElement(ve,{audio:this.audio,defaultDuration:x}))),o.a.createElement("div",{className:"rhap_controls-section"},o.a.createElement("div",{className:"rhap_additional-controls"},h&&o.a.createElement("button",{"aria-label":S?"Enable Loop":"Disable Loop",className:"rhap_button-clear rhap_repeat-button",onClick:this.handleClickLoopButton},e)),o.a.createElement("div",{className:"rhap_main-controls"},f&&o.a.createElement("button",{"aria-label":"Previous",className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",onClick:m},k.previous?k.previous:o.a.createElement(U.Icon,{icon:Z.a})),p&&o.a.createElement("button",{"aria-label":"Rewind",className:"rhap_button-clear rhap_main-controls-button rhap_rewind-button",onClick:this.handleClickRewind},k.rewind?k.rewind:o.a.createElement(U.Icon,{icon:ee.a})),o.a.createElement("button",{"aria-label":T?"Pause":"Play",className:"rhap_button-clear rhap_main-controls-button rhap_play-pause-button",onClick:this.togglePlay},t),p&&o.a.createElement("button",{"aria-label":"Forward",className:"rhap_button-clear rhap_main-controls-button rhap_forward-button",onClick:this.handleClickForward},k.forward?k.forward:o.a.createElement(U.Icon,{icon:Q.a})),f&&o.a.createElement("button",{"aria-label":"Skip",className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",onClick:g},k.next?k.next:o.a.createElement(U.Icon,{icon:K.a}))),o.a.createElement("div",{className:"rhap_volume-controls"},v&&o.a.createElement("div",{className:"rhap_volume-container"},o.a.createElement("button",{"aria-label":F?"Mute":"Unmute",onClick:this.handleClickVolumeButton,className:"rhap_button-clear rhap_volume-button"},n),o.a.createElement(me,{audio:this.audio,volume:F,onMuteChange:this.handleMuteChange})))),_&&o.a.createElement("div",{className:"rhap_footer"},_))},t}(r.Component);H()(ge,"defaultProps",{autoPlay:!1,autoPlayAfterSrcChange:!0,listenInterval:1e3,progressJumpStep:5e3,volumeJumpStep:.1,loop:!1,muted:!1,preload:"auto",progressUpdateInterval:20,defaultCurrentTime:"--:--",defaultDuration:"--:--",volume:1,className:"",showLoopControl:!0,showVolumeControl:!0,showJumpControls:!0,showSkipControls:!1,showDownloadProgress:!0,ShowFilledProgress:!0,customIcons:{}});var we=ge;n("EBAg");function be(e){var t=e.audioSrc,n=e.breakpoints,a=Object(V.a)(e,["audioSrc","breakpoints"]),i=Object(r.useRef)(null),l=Object(r.useState)(0),u=l[0],s=l[1],c=Object(r.useState)(!1),d=c[0],h=c[1],f=Object(r.useState)(!1),p=(f[0],f[1]);Object(r.useEffect)((function(){if(i.current&&i.current.audio){var e=n.find((function(e){return e.slide===u}));e&&d&&(i.current.audio.currentTime=e.start+.25,h(!1))}}),[u]);var v=function(e){for(var t=0;t<n.length;t++){var r=n[t];if(e>=r.start&&e<r.end){r.slide!==u&&s(r.slide);break}}};return o.a.createElement(Ee,null,o.a.createElement("div",{className:"presentation-deck"},o.a.createElement(j,Object.assign({},a,{controlled:!0,selected:u}))),o.a.createElement("div",{className:"presentation-audio"},o.a.createElement(we,{ref:i,autoPlay:!1,showLoopControl:!1,showJumpControls:!1,showSkipControls:!0,listenInterval:200,src:t,onPlay:function(){return p(!0)},onPause:function(){return p(!1)},onCanPlay:function(){i.current&&i.current.audio&&v(i.current.audio.currentTime)},onListen:v,onClickNext:function(){var e=n.findIndex((function(e){return e.slide===u}));if(n[e+1])return s(n[e+1].slide),void h(!0);s(n[0].slide),h(!0)},onClickPrevious:function(){var e=n.findIndex((function(e){return e.slide===u}));if(n[e-1])return s(n[e-1].slide),void h(!0);s(n[n.length-1].slide),h(!0)}})))}var Ee=u.default.div.withConfig({displayName:"player__Div",componentId:"sc-1r25do3-0"})([".rhap_container{flex-direction:row-reverse;align-items:center;min-height:30px;border-radius:0 0 6px 6px;&:focus,&:active,*:focus,*:active{outline:none;}.rhap_progress-section{flex:2;margin-right:60px;}.rhap_controls-section{justify-content:flex-start;flex-shrink:0;margin-top:0;.rhap_additional-controls{display:none;}.rhap_volume-controls{flex-grow:0;flex-shrink:0;width:120px;}}}"]);function ye(e){return o.a.createElement(a.a,{query:"1358860651",render:function(t){var n,r,a=t.tracks.edges.map((function(e){return e.node})),i=e.meta,u=i.audioFile,s=i.audioURL,c=i.trackFile,d=i.trackURL,h=void 0===d?"":d,f=u?u.publicURL:s,p=c?c.relativePath:h;if(f&&p){var v=p.replace(/^\.\//,"/"),m=a.find((function(e){return l()(e.relativePath,v)}));if(m){if(e.hast.children.filter(O).length===m.slides.length){var g=(n=m.slides,r=0,A()(n,(function(e){return e.slide})).map((function(e){var t={slide:e.slide,start:r,end:r+e.duration};return r+=e.duration,t})));return o.a.createElement(be,Object.assign({},e,{audioSrc:f,breakpoints:g}))}console.warn("Incorrect presentation audio track config yaml: breakpoints count does not match slide count")}}return o.a.createElement(j,e)}})}function xe(e){return o.a.createElement(a.a,{query:"2194038815",render:function(t){var n=t.presentations.edges.map((function(e){return e.node})).find((function(t){return t.fileAbsolutePath===e.src}));if(!n)return o.a.createElement("p",null,"Presentation not found ",e.src);var r=n.pageHtmlAst,a=n.frontmatter;return o.a.createElement(ye,{hast:r,meta:a,changeLocationHash:!1})}})}function Me(e){var t=e.src,n=e.type,r=e.width,a=e.height;return"presentation"===n?o.a.createElement(xe,{src:t,type:n,width:r,height:a}):o.a.createElement("embed",{src:t,type:n,width:r,height:a})}},heNW:function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},hgQt:function(e,t,n){var r=n("Juji"),o=n("4sDh");e.exports=function(e,t){return null!=e&&o(e,t,r)}},jOUs:function(e,t,n){"use strict";var r=n("5NKs");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("q1tI")),a=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");t.default=a},l9OW:function(e,t,n){var r=n("SKAX"),o=n("MMmD");e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},lQqw:function(e,t,n){var r=n("MMmD");e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i<a)&&!1!==o(l[i],i,l););return n}}},"lm/5":function(e,t,n){var r=n("fmRc"),o=n("wF/u");e.exports=function(e,t,n,a){var i=n.length,l=i,u=!a;if(null==e)return!l;for(e=Object(e);i--;){var s=n[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<l;){var c=(s=n[i])[0],d=e[c],h=s[1];if(u&&s[2]){if(void 0===d&&!(c in e))return!1}else{var f=new r;if(a)var p=a(d,h,c,e,t,f);if(!(void 0===p?o(h,d,3,a,f):p))return!1}}return!0}},mc0g:function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var u=i[e?l:++o];if(!1===n(a[u],u,a))break}return t}}},"mv/X":function(e,t,n){var r=n("ljhN"),o=n("MMmD"),a=n("wJg7"),i=n("GoyQ");e.exports=function(e,t,n){if(!i(n))return!1;var l=typeof t;return!!("number"==l?o(n)&&a(t,n.length):"string"==l&&t in n)&&r(n[t],e)}},oJqr:function(e,t){t.__esModule=!0,t.default={body:'<path d="M13 6v12l8.5-6M4 18l8.5-6L4 6v12z" fill="currentColor"/>',width:24,height:24}},or5M:function(e,t,n){var r=n("1hJj"),o=n("QoRX"),a=n("xYSL");e.exports=function(e,t,n,i,l,u){var s=1&n,c=e.length,d=t.length;if(c!=d&&!(s&&d>c))return!1;var h=u.get(e),f=u.get(t);if(h&&f)return h==t&&f==e;var p=-1,v=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p<c;){var g=e[p],w=t[p];if(i)var b=s?i(w,g,p,t,e,u):i(g,w,p,e,t,u);if(void 0!==b){if(b)continue;v=!1;break}if(m){if(!o(t,(function(e,t){if(!a(m,t)&&(g===e||l(g,e,n,i,u)))return m.push(t)}))){v=!1;break}}else if(g!==w&&!l(g,w,n,i,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},pFRH:function(e,t,n){var r=n("cvCv"),o=n("O0oS"),a=n("zZ0H"),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},qJpP:function(e,t){t.__esModule=!0,t.default={body:'<path d="M16 18h2V6h-2M6 18l8.5-6L6 6v12z" fill="currentColor"/>',width:24,height:24}},rEGp:function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},sCTh:function(e,t){t.__esModule=!0,t.default={body:'<path d="M6 18V6h2v12H6m3.5-6L18 6v12l-8.5-6z" fill="currentColor"/>',width:24,height:24}},sRb4:function(e,t){t.__esModule=!0,t.default={body:'<path d="M17 17H7v-3l-4 4l4 4v-3h12v-6h-2M7 7h10v3l4-4l-4-4v3H5v6h2V7z" fill="currentColor"/>',width:24,height:24}},seXi:function(e,t,n){var r=n("qZTm"),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,l){var u=1&n,s=r(e),c=s.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var h=s[d];if(!(u?h in t:o.call(t,h)))return!1}var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var v=!0;l.set(e,t),l.set(t,e);for(var m=u;++d<c;){var g=e[h=s[d]],w=t[h];if(a)var b=u?a(w,g,h,t,e,l):a(g,w,h,e,t,l);if(!(void 0===b?g===w||i(g,w,n,a,l):b)){v=!1;break}m||(m="constructor"==h)}if(v&&!m){var E=e.constructor,y=t.constructor;E==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof y&&y instanceof y||(v=!1)}return l.delete(e),l.delete(t),v}},tE8B:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=n("q1tI"),a=u(o),i=u(n("17x9")),l=u(n("Ynen"));function u(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.fullScreenElement=null,n.detectFullScreen=n.detectFullScreen.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){l.default.addEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentWillUnmount",value:function(){l.default.removeEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentDidUpdate",value:function(){this.handleProps(this.props)}},{key:"handleProps",value:function(e){var t=l.default.fullscreenElement===this.node;t&&!e.enabled?this.leaveFullScreen():!t&&e.enabled&&this.enterFullScreen()}},{key:"detectFullScreen",value:function(){l.default.fullscreenElement===this.node?(this.fullScreenElement=l.default.fullscreenElement,this.props.onChange(!0)):!l.default.fullscreenElement&&this.fullScreenElement&&(this.fullScreenElement=null,this.props.onChange(!1))}},{key:"enterFullScreen",value:function(){l.default.fullscreenEnabled&&l.default.requestFullscreen(this.node)}},{key:"leaveFullScreen",value:function(){l.default.fullscreenEnabled&&l.default.exitFullscreen()}},{key:"render",value:function(){var e=this,t=["fullscreen"];return this.props.enabled&&t.push("fullscreen-enabled"),a.default.createElement("div",{className:t.join(" "),ref:function(t){return e.node=t},style:this.props.enabled?{height:"100%",width:"100%"}:void 0},this.props.children)}}]),t}(o.Component);s.propTypes={children:i.default.node.isRequired,enabled:i.default.bool.isRequired,onChange:i.default.func},s.defaultProps={enabled:!1,onChange:function(){}},t.default=s},"ut/Y":function(e,t,n){var r=n("ZCpW"),o=n("GDhZ"),a=n("zZ0H"),i=n("Z0cm"),l=n("+c4W");e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):l(e)}},"wF/u":function(e,t,n){var r=n("e5cp"),o=n("ExA7");e.exports=function e(t,n,a,i,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,l))}},wclG:function(e,t,n){var r=n("pFRH"),o=n("88Gu")(r);e.exports=o},xYSL:function(e,t){e.exports=function(e,t){return e.has(t)}},xweI:function(e,t,n){var r=n("XGnz"),o=n("alwl"),a=n("EA7m"),i=n("mv/X"),l=a((function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=l},yue5:function(e,t,n){var r=n("/9aa");e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e==e,i=r(e),l=void 0!==t,u=null===t,s=t==t,c=r(t);if(!u&&!c&&!i&&e>t||i&&l&&s&&!u&&!c||o&&l&&s||!n&&s||!a)return 1;if(!o&&!i&&!c&&e<t||c&&n&&a&&!o&&!i||u&&n&&a||!l&&a||!s)return-1}return 0}},zZ0H:function(e,t){e.exports=function(e){return e}},zqQw:function(e,t){t.__esModule=!0,t.default={body:'<path d="M15 16h-2V8h2m-4 8H9V8h2m1-6A10 10 0 0 0 2