PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mytube.pm/wp-content/plugins/jetpack/_inc/blocks/story/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/mytube.pm/wp-content/plugins/jetpack/_inc/blocks/story/view.js |
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=516)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t){e.exports=window.wp.data},115:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},116:function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(o){r=!0,c=o}finally{try{_n||null==i.return||i.return()}finally{if(r)throw c}}return n}}},117:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},12:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},120:function(e,t,n){"use strict";function r(e,t){var n;if(Array.isArray(t))for(n=0;n<t.length;n++)r(e,t[n]);else for(n in t)e[n]=(e[n]||[]).concat(t[n])}e.exports=function(e){var t,n={};return r(n,e),(t=function(e){return function(t){return function(r){var c,a,i=n[r.type],o=t(r);if(i)for(c=0;c<i.length;c++)(a=i[c](r,e))&&e.dispatch(a);return o}}}).effects=n,t}},123:function(e,t,n){var r=n(84);e.exports=function(e){if(Array.isArray(e))return r(e)}},124:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},125:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},13:function(e,t,n){var r=n(159);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},14:function(e,t,n){var r=n(160),c=n(161),a=n(162);e.exports=function(e){var t=c();return function(){var n,c=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(c,arguments,i)}else n=c.apply(this,arguments);return a(this,n)}}},15:function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},159:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},160:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},161:function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},162:function(e,t,n){var r=n(163),c=n(7);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?c(e):t}},163:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},17:function(e,t){e.exports=window.wp.compose},18:function(e,t){e.exports=window.React},19:function(e,t,n){var r=n(123),c=n(124),a=n(75),i=n(125);e.exports=function(e){return r(e)||c(e)||a(e)||i()}},199:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,c=e.onClick,a=(e.icon,e.className),o=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-fullscreen",a,!1,!1,!1].filter(Boolean).join(" ");return i.default.createElement("svg",r({className:l,height:n,width:n,onClick:c},o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})))};var c,a=n(18),i=(c=a)&&c.__esModule?c:{default:c};e.exports=t.default},2:function(e,t){e.exports=window.wp.components},21:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},210:function(e,t,n){"use strict";n.d(t,"a",(function(){return yt}));var r={};n.r(r),n.d(r,"setMuted",(function(){return f})),n.d(r,"setPlaying",(function(){return p})),n.d(r,"showSlide",(function(){return b})),n.d(r,"slideReady",(function(){return m})),n.d(r,"setCurrentSlideProgress",(function(){return y})),n.d(r,"resetCurrentSlideProgress",(function(){return v})),n.d(r,"setCurrentSlideEnded",(function(){return g})),n.d(r,"setFullscreen",(function(){return O})),n.d(r,"setEnded",(function(){return h})),n.d(r,"init",(function(){return E})),n.d(r,"setBuffering",(function(){return j}));var c={};n.r(c),n.d(c,"isPlayerReady",(function(){return w})),n.d(c,"getCurrentSlideIndex",(function(){return S})),n.d(c,"getCurrentSlideProgress",(function(){return x})),n.d(c,"getCurrentSlideProgressPercentage",(function(){return k})),n.d(c,"isPlaying",(function(){return P})),n.d(c,"isMuted",(function(){return _})),n.d(c,"isBuffering",(function(){return N})),n.d(c,"getCurrentMediaElement",(function(){return C})),n.d(c,"getCurrentMediaDuration",(function(){return R})),n.d(c,"hasCurrentSlideEnded",(function(){return I})),n.d(c,"isCurrentSlideReady",(function(){return T})),n.d(c,"getPreviousSlideMediaElement",(function(){return M})),n.d(c,"isFullscreen",(function(){return L})),n.d(c,"hasEnded",(function(){return A})),n.d(c,"getSettings",(function(){return D})),n.d(c,"getSlideCount",(function(){return z}));var a=n(4),i=n.n(a),o=n(34),l=n.n(o),u=n(0),s=n(10),d=n(24);n(376);function f(e,t){return{type:"SET_MUTED",value:t,playerId:e}}function p(e,t){return{type:"SET_PLAYING",value:t,playerId:e}}function b(e,t){return{type:"SHOW_SLIDE",index:t,playerId:e}}function m(e,t,n){return{type:"SLIDE_READY",mediaElement:t,duration:n,playerId:e}}function y(e,t){return{type:"SET_CURRENT_SLIDE_PROGRESS",value:t,playerId:e}}function v(e){return{type:"RESET_CURRENT_SLIDE_PROGRESS",playerId:e}}function g(e){return{type:"SET_CURRENT_SLIDE_ENDED",playerId:e}}function O(e,t){return{type:"SET_FULLSCREEN",playerId:e,fullscreen:t}}function h(e){return{type:"ENDED",playerId:e}}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"INIT",playerId:e,settings:t}}function j(e,t){return{type:"SET_BUFFERING",value:t,playerId:e}}function w(e,t){return!!e[t]}function S(e,t){return e[t].currentSlide.index}function x(e,t){return e[t].currentSlide.progress}function k(e,t){var n=e[t].currentSlide.progress.currentTime,r=e[t].currentSlide.progress.duration,c=Math.round(100*n/r);return c>=100?100:c}function P(e,t){return e[t].playing}function _(e,t){return e[t].muted}function N(e,t){return e[t].buffering}function C(e,t){return e[t].currentSlide.mediaElement}function R(e,t){return e[t].currentSlide.duration}function I(e,t){return e[t].currentSlide.ended}function T(e,t){return e[t].currentSlide.ready}function M(e,t){var n;return null===(n=e[t].previousSlide)||void 0===n?void 0:n.mediaElement}function L(e,t){return e[t].fullscreen}function A(e,t){return e[t].ended}function D(e,t){return e[t].settings}function z(e,t){return e[t].settings.slideCount}var F=n(19),U=n.n(F),B=n(120),H=n.n(B),q=n(3),G=function(e){return e&&e.src&&"video"===e.tagName.toLowerCase()};function V(e,t){var n=t.getState,r=e.playerId,c=_(n(),r),a=P(n(),r),i=C(n(),r),o=M(n(),r),l=D(n(),r);G(o)&&(o.currentTime=0,o.onwaiting=null,o.onplaying=null,o.pause()),G(i)&&(c!==i.muted&&(i.muted=c,c||(i.volume=l.volume)),a?i.play():i.pause())}function W(e,t){var n=t.getState,r=t.dispatch,c=e.playerId,a=T(n(),c),o=P(n(),c),l=x(n(),c);if(clearTimeout(l.timeout),o&&a){var u=C(n(),c),s=R(n(),c),d=l.lastUpdate?Date.now()-l.lastUpdate:100,f=G(u)?u.currentTime:l.currentTime+d/1e3;if(f>=s){r(g(c));var p=z(n(),c);S(n(),c)===p-1&&r(h(c))}else r(y(c,{timeout:setTimeout((function(){return W(e,t)}),100),lastUpdate:Date.now(),duration:s,currentTime:f}))}else l.lastUpdate&&r(y(c,i()(i()({},l),{},{lastUpdate:null})))}var K={SET_PLAYING:[W,V],SLIDE_READY:[function(e,t){var n=t.getState,r=t.dispatch,c=e.playerId,a=C(n(),c);if(G(a)){var i=x(n(),c);0===a.currentTime&&i.currentTime>0&&(a.currentTime=i.currentTime),a.onwaiting=function(){return r(j(c,!0))},a.onplaying=function(){return r(j(c,!1))}}},W,V],SET_MUTED:V,SHOW_SLIDE:V};var Y=n(5),J=n.n(Y),Q={currentTime:0,duration:null,timeout:null,lastUpdate:null},$={progress:Q,index:0,mediaElement:null,duration:null,ended:!1,ready:!1},X={slideCount:0,currentSlide:$,previousSlide:null,muted:!1,playing:!1,ended:!1,buffering:!1,fullscreen:!1,settings:{imageTime:5,startMuted:!1,playInFullscreen:!0,playOnNextSlide:!0,playOnLoad:!1,exitFullscreenOnEnd:!0,loadInFullscreen:!1,blurredBackground:!0,showSlideCount:!1,showProgressBar:!0,shadowDOM:{enabled:!0,mode:"open",globalStyleElements:'#jetpack-block-story-css, link[href*="jetpack/_inc/blocks/story/view.css"]'},defaultAspectRatio:.5625,cropUpTo:.2,volume:.8,maxBullets:7,maxBulletsFullscreen:14}};function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_SLIDE":var n=e.currentSlide===t.index+1;return i()(i()({},e),{},{currentSlide:i()(i()({},$),{},{index:t.index}),previousSlide:e.currentSlide,playing:n?e.settings.playOnNextSlide:e.playing});case"SLIDE_READY":return i()(i()({},e),{},{buffering:!1,currentSlide:i()(i()({},e.currentSlide),{},{mediaElement:t.mediaElement,duration:t.duration,ready:!0}),previousSlide:null});case"SET_CURRENT_SLIDE_PROGRESS":return i()(i()({},e),{},{currentSlide:i()(i()({},e.currentSlide),{},{progress:t.value})});case"SET_CURRENT_SLIDE_ENDED":return i()(i()({},e),{},{currentSlide:i()(i()({},e.currentSlide),{},{ended:!0})});case"RESET_CURRENT_SLIDE_PROGRESS":return i()(i()({},e),{},{currentSlide:i()(i()({},e.currentSlide),{},{progress:i()({},Q)})});case"SET_MUTED":return i()(i()({},e),{},{muted:t.value});case"SET_PLAYING":var r=t.value&&e.ended;return i()(i()({},e),{},{playing:t.value,buffering:!!t.value&&e.buffering,fullscreen:!e.playing&&t.value?e.settings.playInFullscreen:e.fullscreen,ended:!r&&e.ended,currentSlide:r?i()(i()({},$),{},{index:0}):e.currentSlide,previousSlide:r?null:e.previousSlide});case"SET_BUFFERING":return i()(i()({},e),{},{buffering:t.value});case"SET_FULLSCREEN":return i()(i()({},e),{},{fullscreen:t.fullscreen,playing:!(e.fullscreen&&!t.fullscreen&&e.settings.playInFullscreen)&&e.playing});case"INIT":var c=Object(q.merge)({},e.settings,t.settings);return i()(i()({},e),{},{settings:c,playing:c.playOnLoad,fullscreen:c.loadInFullscreen});case"ENDED":return i()(i()({},e),{},{currentSlide:i()(i()({},$),{},{index:e.settings.slideCount-1,progress:i()(i()({},Q),{},{currentTime:100,duration:100})}),ended:!0,playing:!1,fullscreen:!e.settings.exitFullscreenOnEnd})}return e}var ee,te,ne,re,ce,ae=Object(s.registerStore)("jetpack/story/player",{actions:r,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.playerId?i()(i()({},e),{},J()({},t.playerId,Z(e[t.playerId],t))):e},selectors:c});ee=ae,ne=[H()(K)],re=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},ce={getState:ee.getState,dispatch:function(){return re.apply(void 0,arguments)}},te=ne.map((function(e){return e(ce)})),re=q.flowRight.apply(void 0,U()(te))(ee.dispatch),ee.dispatch=re;var ie=n(21),oe=n.n(ie),le=n(9),ue=n.n(le),se=n(8),de=n.n(se),fe=n(29),pe=n(17),be=n(1),me=n(26),ye=n.n(me);function ve(){return(ve=ye()(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("img"!==(n=t.tagName.toLowerCase())){e.next=8;break}if(!t.complete){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,new Promise((function(e){t.addEventListener("load",e,{once:!0})}));case 6:e.next=13;break;case 8:if("video"!==n&&"audio"!==n){e.next=13;break}if(t.HAVE_ENOUGH_DATA!==t.readyState){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,new Promise((function(e){t.addEventListener("canplaythrough",e,{once:!0}),t.addEventListener("load",e,{once:!0}),t.HAVE_NOTHING===t.readyState&&t.networkState!==t.NETWORK_LOADING&&t.load()}));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ge=n(2);function Oe(e){var t=e.isEllipsis,n=e.disabled,r=e.index,c=e.isSelected,a=e.progress,i=e.onClick,o=n||t,l=null;return t||(l=c?Object(be.sprintf)(Object(be.__)("Slide %d, currently selected","jetpack"),r+1):Object(be.sprintf)(Object(be.__)("Go to slide %d","jetpack"),r+1)),Object(u.createElement)(ge.Button,{role:o?"presentation":"tab",key:r,className:de()("wp-story-pagination-bullet",{"wp-story-pagination-ellipsis":t}),"aria-label":l,"aria-disabled":o||c,onClick:o||c?void 0:i,disabled:o},Object(u.createElement)("div",{className:"wp-story-pagination-bullet-bar"},Object(u.createElement)("div",{className:"wp-story-pagination-bullet-bar-progress",style:{width:"".concat(a,"%")}})))}n(377);var he=function(e){var t=e.className,n=e.size,r=e.label,c=e.isPressed,a=l()(e,["className","size","label","isPressed"]);return Object(u.createElement)("button",oe()({type:"button","aria-label":r,"aria-pressed":c,className:de()("jetpack-mdc-icon-button","circle-icon","outlined","bordered",t),style:{width:"".concat(n,"px"),height:"".concat(n,"px")}},a))},Ee=function(e){var t=e.className,n=e.size,r=void 0===n?24:n,c=e.label,a=e.isPressed,i=l()(e,["className","size","label","isPressed"]);return Object(u.createElement)("button",oe()({type:"button","aria-label":c,"aria-pressed":a,className:de()("jetpack-mdc-icon-button",t),style:{width:"".concat(r,"px"),height:"".concat(r,"px")}},i))},je=n(25),we=function(e){var t=e.children,n=e.size;return Object(je.a)(t,n,n)},Se=function(e){var t=e.size;return Object(u.createElement)(we,{size:t},Object(u.createElement)(ge.Path,{d:"M8 5v14l11-7z"}))},xe=function(e){var t=e.size;return Object(u.createElement)(we,{size:t},Object(u.createElement)(ge.Path,{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}))},ke=function(e){var t=e.size;return Object(u.createElement)(we,{size:t},Object(u.createElement)(ge.Path,{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))},Pe=function(e){var t=e.size;return Object(u.createElement)(we,{size:t},Object(u.createElement)(ge.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}))},_e=function(e){var t=e.size;return Object(u.createElement)(we,{size:t},Object(u.createElement)(ge.Path,{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"}))},Ne=function(e){var t=e.size;return Object(u.createElement)(we,{size:t},Object(u.createElement)(ge.Path,{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}))},Ce=function(e){var t=e.size;return Object(u.createElement)(we,{size:t},Object(u.createElement)(ge.Path,{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}))};function Re(e){var t=e.playing,n=e.muted,r=e.onPlayPressed,c=e.onMutePressed,a=e.showMute;return Object(u.createElement)("div",{className:"wp-story-controls"},Object(u.createElement)(Ee,{isPressed:t,label:t?Object(be.__)("pause","jetpack"):Object(be.__)("play","jetpack"),onClick:r},t?Object(u.createElement)(xe,null):Object(u.createElement)(Se,null)),a&&Object(u.createElement)(Ee,{isPressed:n,label:n?Object(be.__)("unmute","jetpack"):Object(be.__)("mute","jetpack"),onClick:c},n?Object(u.createElement)(_e,null):Object(u.createElement)(Pe,null)))}function Ie(e){var t=e.fullscreen,n=e.onExitFullscreen,r=e.siteIconUrl,c=e.storyTitle;return t?Object(u.createElement)("div",{className:"wp-story-meta"},Object(u.createElement)("div",{className:"wp-story-icon"},Object(u.createElement)("img",{alt:Object(be.__)("Site icon","jetpack"),src:r,width:"40",height:"40"})),Object(u.createElement)("div",null,Object(u.createElement)("div",{className:"wp-story-title"},c)),Object(u.createElement)(Ee,{className:"wp-story-exit-fullscreen",label:Object(be.__)("Exit Fullscreen","jetpack"),onClick:n},Object(u.createElement)(ke,null))):null}var Te=n(199),Me=n.n(Te);function Le(e){var t=e.ended,n=e.hasPrevious,r=e.onNextSlide,c=e.onPreviousSlide,a=e.icon,i=e.slideCount,o=e.showSlideCount,l=Object(u.useCallback)((function(e){t||(e.stopPropagation(),c())}),[c,t]),s=Object(u.useCallback)((function(e){t||(e.stopPropagation(),r())}),[r,t]);return Object(u.createElement)("div",{className:"wp-story-overlay"},o&&Object(u.createElement)("div",{className:"wp-story-embed-icon"},a,Object(u.createElement)("span",null,i)),!o&&Object(u.createElement)("div",{className:"wp-story-embed-icon-expand"},Object(u.createElement)(Me.a,{role:"img"})),n&&Object(u.createElement)("div",{className:"wp-story-prev-slide",onClick:l},Object(u.createElement)(he,{size:44,label:Object(be.__)("Previous Slide","jetpack"),className:"outlined-w"},Object(be.isRTL)()?Object(u.createElement)(Ce,{size:24}):Object(u.createElement)(Ne,{size:24}))),Object(u.createElement)("div",{className:"wp-story-next-slide",onClick:s},Object(u.createElement)(he,{size:44,label:Object(be.__)("Next Slide","jetpack"),className:"outlined-w"},Object(be.isRTL)()?Object(u.createElement)(Ne,{size:24}):Object(u.createElement)(Ce,{size:24}))))}function Ae(e){var t=e.currentMedia,n=t&&"image"===t.type?t.url:null;return Object(u.createElement)("div",{className:"wp-story-background"},Object(u.createElement)("div",{className:"wp-story-background-image",style:{backgroundImage:n?'url("'.concat(n,'")'):"none"}}),Object(u.createElement)("div",{className:"wp-story-background-blur"}),Object(u.createElement)(ge.SVG,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0"},Object(u.createElement)("filter",{id:"gaussian-blur-18"},Object(u.createElement)("feGaussianBlur",{stdDeviation:"18"}))))}var De=function(){return Object(u.createElement)("div",{className:"wp-story-loading-spinner"},Object(u.createElement)("div",{className:"wp-story-loading-spinner__outer"},Object(u.createElement)("div",{className:"wp-story-loading-spinner__inner"})))},ze=function(e){var t=e.title,n=e.alt,r=e.className,c=e.id,a=e.mediaRef,i=e.mime,o=e.sizes,l=e.srcset,s=e.url;return Object(u.createElement)("img",{ref:a,"data-id":c,"data-mime":i,title:t,alt:n,src:s,className:de()("wp-story-image","wp-image-".concat(c),r),srcSet:l,sizes:o})},Fe=function(e){var t=e.title,n=e.className,r=e.id,c=e.mediaRef,a=e.mime,i=e.url,o=e.poster;return Object(u.createElement)("video",{className:de()("wp-story-video","intrinsic-ignore","wp-video-".concat(r),n),ref:c,"data-id":r,title:t,type:a,src:i,poster:o,tabIndex:-1,preload:"auto",playsInline:!0})},Ue=function(e){var t=e.targetAspectRatio,n=e.cropUpTo,r=e.type,c=e.width,a=e.height,i=l()(e,["targetAspectRatio","cropUpTo","type","width","height"]),o=null;if(c&&a){var s=c/a;if(s>=t)s>t/(1-n)||(o="wp-story-crop-wide");else s<t*(1-n)||(o="wp-story-crop-narrow")}var d="video"===r||(i.mime||"").startsWith("video/");return Object(u.createElement)("figure",null,d?Object(u.createElement)(Fe,oe()({},i,{className:o})):Object(u.createElement)(ze,oe()({},i,{className:o})))},Be=function(e){var t=e.playerId,n=e.media,r=e.index,c=e.playing,a=e.uploading,i=e.settings,o=e.targetAspectRatio,l=Object(s.useSelect)((function(e){return{currentSlideIndex:e("jetpack/story/player").getCurrentSlideIndex(t),buffering:e("jetpack/story/player").isBuffering(t)}}),[]),d=l.currentSlideIndex,f=l.buffering,p=Object(s.useDispatch)("jetpack/story/player").slideReady,b=r===d,m=Object(u.useRef)(null),y=Object(u.useState)(!1),v=ue()(y,2),g=v[0],O=v[1],h=Object(u.useState)(!0),E=ue()(h,2),j=E[0],w=E[1];return Object(u.useEffect)((function(){if(b&&!j){var e=m.current&&m.current.src&&"video"===m.current.tagName.toLowerCase()?m.current:null;p(t,m.current,e?e.duration:i.imageTime)}}),[b,j]),Object(u.useEffect)((function(){r<=d+(c?1:0)&&O(!0)}),[c,d]),Object(u.useLayoutEffect)((function(){m.current&&function(_x){return ve.apply(this,arguments)}(m.current).then((function(){w(!1)}))}),[g,a]),Object(u.createElement)(u.Fragment,null,b&&(j||a||f)&&Object(u.createElement)("div",{className:de()("wp-story-slide","is-loading",{transparent:c&&f,"semi-transparent":a||!c&&f})},Object(u.createElement)(De,null)),Object(u.createElement)("div",{role:"figure",className:"wp-story-slide",style:{display:b&&!j?"block":"none"},tabIndex:b?0:-1},g&&Object(u.createElement)(Ue,oe()({},n,{targetAspectRatio:o,cropUpTo:i.cropUpTo,index:r,mediaRef:m}))))},He=n(96),qe=function(e){var t=e.key,n=e.playerId,r=e.index,c=e.disabled,a=e.isSelected,i=e.onClick,o=Object(s.useSelect)((function(e){return e("jetpack/story/player").getCurrentSlideProgressPercentage(n)}),[]);return Object(u.createElement)(Oe,{key:t,index:r,progress:o,disabled:c,isSelected:a,onClick:i})},Ge=function(e){var t,n=e.playerId,r=e.slides,c=e.disabled,a=e.onSlideSeek,i=e.maxBullets,o=Object(s.useSelect)((function(e){return{currentSlideIndex:e("jetpack/story/player").getCurrentSlideIndex(n)}}),[]).currentSlideIndex,l=Math.min(r.length,i),d=Math.floor(l/2),f=0,p=r.length-1;return r.length<=i||o<d?(t=o,p=l-1):o>=r.length-d?(t=o-r.length+l,f=r.length-l):(t=d,f=o-d,p=o+d),Object(u.createElement)("div",{className:"wp-story-pagination wp-story-pagination-bullets",role:"tablist"},f>0&&Object(u.createElement)(Oe,{key:"bullet-0",index:f-1,progress:100,isEllipsis:!0}),Object(q.range)(1,l+1).map((function(e,r){var i=r+f,l=null;if(i<o)l=100;else{if(!(i>o))return Object(u.createElement)(qe,{playerId:n,key:"bullet-".concat(r),index:i,disabled:c,isSelected:t===r,onClick:function(){return a(i)}});l=0}return Object(u.createElement)(Oe,{key:"bullet-".concat(r),index:i,progress:l,disabled:c,isSelected:t===r,onClick:function(){return a(i)}})})),p<r.length-1&&Object(u.createElement)(Oe,{key:"bullet-".concat(l+1),index:p+1,progress:0,isEllipsis:!0}))},Ve=function(e){var t=Object(u.useRef)(),n=Object(u.useRef)(),r=Object(u.useRef)(e),c=Object(u.useCallback)((function(e){e.touches&&1===e.touches.length&&e.preventDefault()}),[]);return Object(u.useEffect)((function(){r.current=e}),[e]),{onTouchStart:Object(u.useCallback)((function(e){e.target&&(e.target.addEventListener("touchend",c,{passive:!1}),n.current=e.target),t.current=setTimeout((function(){r.current&&r.current(!0),t.current=null}),200)}),[]),onTouchEnd:Object(u.useCallback)((function(e){t.current?clearTimeout(t.current):(r.current&&r.current(!1),e.stopPropagation()),n.current&&n.current.removeEventListener("touchend",c)}),[])}};function We(e){var t,n,r,c,a=e.id,i=e.slides,o=e.metadata,l=e.disabled,d=Object(s.useDispatch)("jetpack/story/player"),f=d.setFullscreen,p=d.setEnded,b=d.setPlaying,m=d.setMuted,y=d.showSlide,v=Object(s.useSelect)((function(e){var t=e("jetpack/story/player"),n=t.getCurrentSlideIndex,r=t.getSettings,c=t.hasCurrentSlideEnded,i=t.hasEnded,o=t.isFullscreen,l=t.isMuted;return{playing:(0,t.isPlaying)(a),muted:l(a),currentSlideIndex:n(a),currentSlideEnded:c(a),ended:i(a),fullscreen:o(a),settings:r(a)}}),[a]),g=v.playing,O=v.muted,h=v.currentSlideIndex,E=v.currentSlideEnded,j=v.ended,w=v.fullscreen,S=v.settings,x=Object(u.useRef)(),k=Object(u.useState)(null),P=ue()(k,2),_=P[0],N=P[1],C=Object(pe.useResizeObserver)(),R=ue()(C,2),I=R[0],T=R[1],M=T.width,L=T.height,A=Object(u.useState)(S.defaultAspectRatio),D=ue()(A,2),z=D[0],F=D[1],U=Object(q.some)(i,(function(e){return Object(fe.isBlobURL)(e.url)})),B=function(e){y(a,e)},H=Object(u.useCallback)((function(){l||w||S.playInFullscreen&&!g&&b(a,!0)}),[g,l,w]),G=Ve((function(e){b(a,!e)}),[]),V=G.onTouchStart,W=G.onTouchEnd,K=Object(u.useCallback)((function(){h>0&&B(h-1)}),[h]),Y=Object(u.useCallback)((function(){h<i.length-1?B(h+1):p(a)}),[h,i]),J=Object(u.useCallback)((function(){f(a,!1)}),[]);return Object(u.useEffect)((function(){l&&g&&b(a,!1)}),[l,g]),Object(u.useEffect)((function(){g&&E&&Y()}),[g,E]),Object(u.useLayoutEffect)((function(){if(x.current){var e=Math.round(S.defaultAspectRatio*x.current.offsetHeight);w&&(e=Math.abs(1-e/M)<S.cropUpTo?M:e),N(e)}}),[M,L,w]),Object(u.useLayoutEffect)((function(){_&&x.current&&x.current.offsetHeight>0&&F(_/x.current.offsetHeight)}),[_]),t=w?[Object(be.__)("You are currently playing a story.","jetpack"),g?Object(be.__)("Press space to pause.","jetpack"):Object(be.__)("Press space to play.","jetpack"),Object(be.__)("Press escape to exit.","jetpack")].join(" "):Object(be.__)("Play story","jetpack"),n=l?"presentation":w?"dialog":"button",Object(u.createElement)("div",{className:"wp-story-display-contents"},I,Object(u.createElement)("div",{role:n,"aria-label":t,tabIndex:w?-1:0,className:de()("wp-story-container",{"wp-story-with-controls":!l&&!w&&!S.playInFullscreen,"wp-story-fullscreen":w,"wp-story-ended":j,"wp-story-disabled":l,"wp-story-clickable":!l&&!w}),style:{maxWidth:"".concat(_,"px")},onClick:H,onTouchStart:V,onTouchEnd:W},Object(u.createElement)(Ie,oe()({},o,{fullscreen:w,onExitFullscreen:J})),Object(u.createElement)("div",{ref:x,className:"wp-story-wrapper"},i.map((function(e,t){return Object(u.createElement)(Be,{playerId:a,key:t,media:e,index:t,playing:!l&&g,uploading:U,settings:S,targetAspectRatio:z})}))),Object(u.createElement)(Le,{icon:He.a,slideCount:i.length,showSlideCount:S.showSlideCount,ended:j,hasPrevious:h>0,onPreviousSlide:K,onNextSlide:Y}),S.showProgressBar&&Object(u.createElement)(Ge,{playerId:a,slides:i,disabled:!w,onSlideSeek:B,maxBullets:w?S.maxBulletsFullscreen:S.maxBullets}),Object(u.createElement)(Re,{playing:g,muted:O,onPlayPressed:function(){return b(a,!g)},onMutePressed:function(){return m(a,!O)},showMute:(r=h,c=r<i.length?i[r]:null,!!c&&("video"===c.type||(c.mime||"").startsWith("video/")))})),w&&Object(u.createElement)(Ae,{currentMedia:S.blurredBackground&&i.length>h&&i[h]}))}var Ke=window&&window.Element&&window.Element.prototype.hasOwnProperty("attachShadow");function Ye(e){var t=e.enabled,n=e.delegatesFocus,r=void 0!==n&&n,c=e.mode,a=void 0===c?"open":c,i=e.globalStyleElements,o=void 0===i?[]:i,l=e.adoptedStyleSheets,s=void 0===l?null:l,d=e.mountOnElement,f=void 0===d?null:d,p=e.children,b=Object(u.useState)(null),m=ue()(b,2),y=m[0],v=m[1],g=f||y,O=Object(u.useState)(null),h=ue()(O,2),E=h[0],j=h[1],w="string"==typeof o?U()(document.querySelectorAll(o)):o,S=Ke&&t&&w.length>0,x=Object(u.useCallback)((function(e){null!==e&&v(e.parentNode)}),[]);if(Object(u.useEffect)((function(){if(g)if(g.shadowRoot)j(g.shadowRoot);else{var e=g.attachShadow({delegatesFocus:r,mode:a});s&&(e.adoptedStyleSheets=s),j(e)}}),[g]),S&&!E)return f?null:Object(u.createElement)("span",{ref:x});var k=Object(u.createElement)(u.Fragment,null,S&&Object(u.createElement)(Je,{globalStyleElements:w}),p);return S?Object(u.createPortal)(k,E):k}function Je(e){var t=e.globalStyleElements;return Object(u.createElement)(u.Fragment,null,t.map((function(e,t){var n=e.id,r=e.tagName,c=e.attributes,a=e.innerHTML;return"LINK"===r?Object(u.createElement)("link",{key:n||t,id:n,rel:c.rel.value,href:c.href.value}):"STYLE"===r?Object(u.createElement)("style",{key:n||t,id:n},a):void 0})))}var Qe=n(12),$e=n.n(Qe),Xe=n(15),Ze=n.n(Xe),et=n(13),tt=n.n(et),nt=n(14),rt=n.n(nt);function ct(e){var t=e.overlayClassName,n=e.children,r=e.className,c=e.focusOnMount,a=e.shouldCloseOnEsc,i=void 0===a||a,o=e.onRequestClose,l=e.onKeyDown,s=e.modalRef;var f,p,b,m,y,v=Object(pe.useFocusOnMount)(c),g=Object(pe.useConstrainedTabbing)(),O=Object(pe.useFocusReturn)();return Object(u.createElement)("div",{className:t,onKeyDown:function(e){i&&e.keyCode===d.ESCAPE&&(e.stopPropagation(),o&&o(e)),e.target&&"button"===e.target.tagName.toLowerCase()&&e.keyCode===d.SPACE||l&&l(e)}},Object(u.createElement)("div",{className:r,ref:(f=[g,O,v,s],p=Object(u.useRef)(null),b=Object(u.useRef)(!1),m=Object(u.useRef)(f),y=Object(u.useRef)(f),y.current=f,Object(u.useLayoutEffect)((function(){f.forEach((function(e,t){var n=m.current[t];"function"==typeof e&&e!==n&&!1===b.current&&(n(null),e(p.current))})),m.current=f}),f),Object(u.useLayoutEffect)((function(){b.current=!1})),Object(u.useCallback)((function(e){p.current=e,b.current=!0,(e?y.current:m.current).forEach((function(t){"function"==typeof t?t(e):t&&t.hasOwnProperty("current")&&(t.current=e)}))}),[]))},n))}var at=new Set(["alert","status","log","marquee","timer"]),it=[],ot=!1;function lt(e){if(!ot){var t=document.body.children;Object(q.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||at.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),it.push(t))})),ot=!0}}var ut,st=0,dt=function(){},ft=function(e){tt()(n,e);var t=rt()(n);function n(e){var r;return $e()(this,n),(r=t.call(this,e)).prepareDOM(),r}return Ze()(n,[{key:"componentDidMount",value:function(){1===++st&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--st&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){ut||(ut=document.createElement("div"),document.body.appendChild(ut)),this.node=document.createElement("div"),ut.appendChild(this.node),this.node.ontouchstart=dt,this.node.ontouchend=dt}},{key:"cleanDOM",value:function(){ut.removeChild(this.node)}},{key:"openFirstModal",value:function(){lt(ut)}},{key:"closeLastModal",value:function(){ot&&(Object(q.forEach)(it,(function(e){e.removeAttribute("aria-hidden")})),it=[],ot=!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isOpened,r=e.shadowDOM,c=l()(e,["children","isOpened","shadowDOM"]);return Object(u.createElement)(Ye,oe()({},r,{mountOnElement:this.node}),n&&Object(u.createElement)(ct,c,t))}}]),n}(u.Component);ft.defaultProps={shouldCloseOnEsc:!0,isOpened:!1,focusOnMount:!0};var pt=Object(pe.withInstanceId)(ft),bt=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);function mt(e){var t=e.className,n=e.fullscreenClassName,r=e.bodyFullscreenClassName,c=e.fullscreen,a=e.shadowDOM,i=e.onKeyDown,o=e.onExitFullscreen,l=e.playerQuerySelector,s=e.children,d=Object(u.useRef)(),f=Object(u.useRef)(),p=Object(u.useState)(null),b=ue()(p,2),m=b[0],y=b[1],v=bt&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled),g=c&&!v,O=c&&v;return Object(u.useLayoutEffect)((function(){var e,t;if(v)c?d.current&&(e=d.current,t=o,(e.requestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen).call(e),t&&document.addEventListener("fullscreenchange",(function e(){document.fullscreenElement||(document.removeEventListener("fullscreenchange",e),t())}))):(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullScreenElement)&&(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).call(document);else if(c){if(y([document.documentElement.scrollLeft,document.documentElement.scrollTop]),document.body.classList.add(r),document.getElementsByTagName("html")[0].classList.add(r),f.current){var n=f.current.querySelector(l);n&&n.focus()}}else if(document.body.classList.remove(r),document.getElementsByTagName("html")[0].classList.remove(r),m){var a;(a=window).scrollTo.apply(a,U()(m));var i=d.current.querySelector(l);i&&i.focus()}}),[c]),Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Ye,a,Object(u.createElement)("div",{ref:d,className:de()(t,J()({},n,O)),onKeyDown:i},!g&&s)),Object(u.createElement)(pt,{className:de()(t,J()({},n,g)),isOpened:g,onRequestClose:o,shadowDOM:a,onKeyDown:g&&i,focusOnMount:!1,modalRef:f},g&&s))}function yt(e){var t=e.id,n=e.slides,r=e.metadata,c=e.disabled,a=l()(e,["id","slides","metadata","disabled"]),o=Object(u.useMemo)((function(){return t||Math.random().toString(36)}),[t]),f=Object(s.useDispatch)("jetpack/story/player"),p=f.init,b=f.setEnded,m=f.setPlaying,y=f.setFullscreen,v=f.showSlide,g=Object(s.useSelect)((function(e){var t=e("jetpack/story/player"),n=t.getCurrentSlideIndex,r=t.getSettings,c=t.isFullscreen,a=t.isPlayerReady,i=t.isPlaying;return a(o)?{playing:i(o),currentSlideIndex:n(o),isReady:!0,fullscreen:c(o),playerSettings:r(o)}:{isReady:!1}}),[o]),O=g.playing,h=g.currentSlideIndex,E=g.fullscreen,j=g.isReady,w=g.playerSettings;Object(u.useEffect)((function(){j||p(o,i()({slideCount:n.length},a))}),[j,o]);var S=Object(u.useCallback)((function(e){switch(e.keyCode){case d.ENTER:if(E)break;case d.SPACE:m(o,!O);break;case d.LEFT:h>0&&v(o,h-1);break;case d.RIGHT:h<n.length-1?v(o,h+1):b(o)}}),[o,h,E,O]),x=Object(u.useCallback)((function(){y(o,!1)}),[o]);return j?Object(u.createElement)(mt,{shadowDOM:w.shadowDOM,className:"wp-story-app",fullscreenClassName:"wp-story-fullscreen",bodyFullscreenClassName:"wp-story-in-fullscreen",playerQuerySelector:".wp-story-container",fullscreen:E,onExitFullscreen:x,onKeyDown:S},Object(u.createElement)(We,{id:o,slides:n,metadata:r,disabled:c})):null}},214:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,c={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(c[n]=e[n]);return c}},24:function(e,t){e.exports=window.wp.keycodes},25:function(e,t,n){"use strict";var r=n(0),c=n(2);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:24,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0 0 24 24";return Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:a},Object(r.createElement)(c.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),e)}},26:function(e,t){function n(e,t,n,r,c,a,i){try{var o=e[a](i),l=o.value}catch(u){return void n(u)}o.done?t(l):Promise.resolve(l).then(r,c)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(c,a){var i=e.apply(t,r);function o(e){n(i,c,a,o,l,"next",e)}function l(e){n(i,c,a,o,l,"throw",e)}o(void 0)}))}}},29:function(e,t){e.exports=window.wp.blob},3:function(e,t){e.exports=window.lodash},34:function(e,t,n){var r=n(214);e.exports=function(e,t){if(null==e)return{};var n,c,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(c=0;c<i.length;c++)n=i[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},376:function(e,t,n){},377:function(e,t,n){},4:function(e,t,n){var r=n(5);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},48:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(n.p=window.Jetpack_Block_Assets_Base_Url.url)},5:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},516:function(e,t,n){n(52),e.exports=n(517)},517:function(e,t,n){"use strict";n.r(t);var r=n(4),c=n.n(r),a=n(19),i=n.n(a),o=n(21),l=n.n(o),u=n(0),s=n(57),d=n.n(s),f=n(210);function p(e,t){"string"==typeof e&&(e=document.querySelectorAll(e));var n=e.querySelector(".wp-story-wrapper"),r=e.querySelector(".wp-story-meta"),c=[];n&&n.children.length>0&&(c=function(e){return i()(e.querySelectorAll("li > figure > :first-child")).map((function(e){return{alt:e.getAttribute("alt")||e.getAttribute("title"),mime:e.getAttribute("data-mime")||e.getAttribute("type"),url:e.getAttribute("src"),id:e.getAttribute("data-id"),type:"img"===e.tagName.toLowerCase()?"image":"video",srcset:e.getAttribute("srcset"),sizes:e.getAttribute("sizes")}}))}(n));var a={};r&&r.children.length>0&&(a=function(e){var t=e.querySelector("div:first-child > img"),n=e.querySelector(".wp-story-title"),r=t&&t.src;return{storyTitle:n&&n.innerText,siteIconUrl:r}}(r));var o=function(e){return e.getAttribute("data-id")}(e);Object(u.render)(Object(u.createElement)(f.a,l()({id:o,slides:c,metadata:a,disabled:!1},t)),e)}if("undefined"!=typeof window){var b=Array.from(new URLSearchParams(window.location.search).entries()).filter((function(e){return e[0].startsWith("wp-story-")})).reduce((function(e,t){var n=t[0].replace(/^wp-story-/,"").replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));try{e[n]=JSON.parse(t[1])}catch(r){e[n]=JSON.parse('"'.concat(t[1],'"'))}return e}),{});d()((function(){var e=i()(document.querySelectorAll(":not(#debug-bar-wp-query) .wp-story"));e.forEach((function(t){if("true"!==t.getAttribute("data-block-initialized")){var n=null;1===e.length&&(n=c()({},b));var r=t.getAttribute("data-settings");if(r)try{n=c()(c()({},n),JSON.parse(r))}catch(a){}p(t,n)}}))}))}},52:function(e,t,n){"use strict";n.r(t);n(48)},57:function(e,t){e.exports=window.wp.domReady},7:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},75:function(e,t,n){var r=n(84);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},8:function(e,t,n){var r; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=c.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var o in r)n.call(r,o)&&r[o]&&e.push(o);else e.push(r.toString())}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},84:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},9:function(e,t,n){var r=n(115),c=n(116),a=n(75),i=n(117);e.exports=function(e,t){return r(e)||c(e,t)||a(e,t)||i()}},96:function(e,t,n){"use strict";var r=n(0),c=n(2),a=n(25),i=Object(a.a)(Object(r.createElement)(c.G,null,Object(r.createElement)(c.Path,{d:"M17 5a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2h9z"}),Object(r.createElement)(c.Path,{d:"M13 4H5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2z"}),Object(r.createElement)(c.Path,{d:"M7 16h8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"})));t.a=i}}));