PageSourceSearch

https://www.bmn.nl/vendors~RootCmp_PRODUCT__default.b65240b3bf99fb783cfa.js

js bmn.nl collected 2026-10-07 01:08:02 UTC 206,257 bytes, 1,157 lines download raw bytes

1/*!
2 * @version 3ea9a483c
3 * 
4 */
5(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"/6c9":function(e,t,n){"use strict"
6function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
7var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
8if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
9var t=_getRequireWildcardCache()
10if(t&&t.has(e))return t.get(e)
11var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
12for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
13o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
14return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
15function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
16var e=new WeakMap
17return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var n=Object.keys(e)
18if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
19t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
20t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return
21var n=[],r=!0,i=!1,o=void 0
22try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function _unsupportedIterableToArray(e,t){if(!e)return
23if("string"==typeof e)return _arrayLikeToArray(e,t)
24var n=Object.prototype.toString.call(e).slice(8,-1)
25"Object"===n&&e.constructor&&(n=e.constructor.name)
26if("Map"===n||"Set"===n)return Array.from(e)
27if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length)
28for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
29return r}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
30r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
31if(Reflect.construct.sham)return!1
32if("function"==typeof Proxy)return!0
33try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
34return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
35if(t){var i=_getPrototypeOf(this).constructor
36n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
37return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
38return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
39return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="YT",a=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,l=/user\/([a-zA-Z0-9_-]+)\/?/,c=/youtube-nocookie\.com/,u=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
40e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(YouTube,r.Component)
41var t=_createSuper(YouTube)
42function YouTube(){var e
43!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,YouTube)
44for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
45return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"parsePlaylist",function(t){return t instanceof Array?{listType:"playlist",playlist:t.map(e.getID).join(",")}:a.test(t)?{listType:"playlist",list:_slicedToArray(t.match(a),2)[1].replace(/^UC/,"UU")}:l.test(t)?{listType:"user_uploads",list:_slicedToArray(t.match(l),2)[1]}:{}}),_defineProperty(_assertThisInitialized(e),"onStateChange",function(t){var n=t.data,r=e.props,i=r.onPlay,o=r.onPause,a=r.onBuffer,l=r.onBufferEnd,c=r.onEnded,u=r.onReady,p=r.loop,d=r.config,h=d.playerVars,f=d.onUnstarted,y=window[s].PlayerState,m=y.UNSTARTED,_=y.PLAYING,v=y.PAUSED,g=y.BUFFERING,b
45=y.ENDED,P=y.CUED
46if(n===m&&f(),n===_&&(i(),l()),n===v&&o(),n===g&&a(),n===b){var w=!!e.callPlayer("getPlaylist")
47p&&!w&&(h.start?e.seekTo(h.start):e.play()),c()}n===P&&u()}),_defineProperty(_assertThisInitialized(e),"mute",function(){e.callPlayer("mute")}),_defineProperty(_assertThisInitialized(e),"unmute",function(){e.callPlayer("unMute")}),_defineProperty(_assertThisInitialized(e),"ref",function(t){e.container=t}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(YouTube,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function getID(e){return!e||e instanceof Array||a.test(e)?null:e.match(o.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function load(e,t){var n=this,r=this.props,o=r.playing,u=r.muted,p=r.playsinline,d=r.controls,h=r.loop,f=r.config,y=r.onError,m=f.playerVars,_=f.embedOptions,v=this.getID(e)
48if(t)return a.test(e)||l.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:v,startSeconds:(0,i.parseStartTime)(e)||m.start,endSeconds:(0,i.parseEndTime)(e)||m.end});(0,i.getSDK)("https://www.youtube.com/iframe_api",s,"onYouTubeIframeAPIReady",function(e){return e.loaded}).then(function(t){n.container&&(n.player=new t.Player(n.container,_objectSpread({width:"100%",height:"100%",videoId:v,playerVars:_objectSpread(_objectSpread({autoplay:o?1:0,mute:u?1:0,controls:d?1:0,start:(0,i.parseStartTime)(e),end:(0,i.parseEndTime)(e),origin:window.location.origin,playsinline:p?1:0},n.parsePlaylist(e)),m),events:{onReady:function onReady(){h&&n.player.setLoop(!0),n.props.onReady()},onPlaybackRateChange:function onPlaybackRateChange(e){return n.props.onPlaybackRateChange(e.data)},onStateChange:n.onStateChange,onError:function onError(e){return y(e.data)}},host:c.test(e)?"https://www.youtube-nocookie.com":void 0},_)))},y),_.events}},{key:"play",value:function play(){this.callPlayer("playVideo")}},{key:"pause",value:function pause(){this.callPlayer("pauseVideo")}},{key:"stop",value:function stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function seekTo(e){this.callPlayer("seekTo",e),this.props.playing||this.pause()}},{key:"setVolume",value:function setVolume(e){this.callPlayer("setVolume",100*e)}},{key:"setPlaybackRate",value:function setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}},{key:"setLoop",value:function setLoop(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function getDuration(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function getCurrentTime(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function render(){var e={width:"100%",height:"100%",display:this.props.display}
49return r.default.createElement("div",{style:e},r.default.createElement("div",{ref:this.ref}))}}]),YouTube}()
50t.default=u,_defineProperty(u,"displayName","YouTube"),_defineProperty(u,"canPlay",o.canPlay.youtube)},"1LW3":function(e,t,n){"use strict"
51n.r(t)
52var r=Number.isNaN||function ponyfill(e){return"number"==typeof e&&e!=e}
53function areInputsEqual(e,t){if(e.length!==t.length)return!1
54for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||r(i)&&r(o)))return!1
55var i,o
56return!0}t.default=function memoizeOne(e,t){var n
57void 0===t&&(t=areInputsEqual)
58var r,i=[],o=!1
59return function memoized(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a]
60return o&&n===this&&t(s,i)?r:(r=e.apply(this,s),o=!0,n=this,i=s,r)}}},"5Cgt":function(e,t,n){"use strict"
61function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
62var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
63if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
64var t=_getRequireWildcardCache()
65if(t&&t.has(e))return t.get(e)
66var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
67for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
68o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
69return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
70function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
71var e=new WeakMap
72return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var n=Object.keys(e)
73if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
74t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
75t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
76r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
77if(Reflect.construct.sham)return!1
78if("function"==typeof Proxy)return!0
79try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
80return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
81if(t){var i=_getPrototypeOf(this).constructor
82n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
83return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
84return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
85return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
86e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Mixcloud,r.Component)
87var t=_createSuper(Mixcloud)
88function Mixcloud(){var e
89!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Mixcloud)
90for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
91return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"duration",null),_defineProperty(_assertThisInitialized(e),"currentTime",null),_defineProperty(_assertThisInitialized(e),"secondsLoaded",null),_defineProperty(_assertThisInitialized(e),"mute",function(){}),_defineProperty(_assertThisInitialized(e),"unmute",function(){}),_defineProperty(_assertThisInitialized(e),"ref",function(t){e.iframe=t}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Mixcloud,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e){var t=this;(0,i.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then(function(e){t.player=e.PlayerWidget(t.iframe),t.player.ready.then(function(){t.player.events.play.on(t.props.onPlay),t.player.events.pause.on(t.props.onPause),t.player.events.ended.on(t.props.onEnded),t.player.events.error.on(t.props.error),t.player.events.progress.on(function(e,n){t.currentTime=e,t.duration=n}),t.props.onReady()})},this.props.onError)}},{key:"play",value:function play(){this.callPlayer("play")}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){}},{key:"seekTo",value:function seekTo(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function setVolume(e){}},{key:"getDuration",value:function getDuration(){return this.duration}},{key:"getCurrentTime",value:function getCurrentTime(){return this.currentTime}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return null}},{key:"render",value:function render(){var e=this.props,t=e.url,n=e.config,s=t.match(o.MATCH_URL_MIXCLOUD)[1],a=(0,i.queryString)(_objectSpread(_objectSpread({},n.options),{},{feed:"/".concat(s,"/")}))
92return r.default.createElement("iframe",{key:s,ref:this.ref,style:{width:"100%",height:"100%"},src:"https://www.mixcloud.com/widget/iframe/?".concat(a),frameBorder:"0",allow:"autoplay"})}}]),Mixcloud}()
93t.default=s,_defineProperty(s,"displayName","Mixcloud"),_defineProperty(s,"canPlay",o.canPlay.mixcloud),_defineProperty(s,"loopOnEnded",!0)},"6tYh":function(e,t,n){"use strict";
93(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createReactPlayer=void 0
94var r=_interopRequireWildcard(n("q1tI")),i=_interopRequireDefault(n("PE4B")),o=_interopRequireDefault(n("1LW3")),s=_interopRequireDefault(n("bmMU")),a=n("QXAm"),l=n("tbWI"),c=_interopRequireDefault(n("q+qS"))
95function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(e,t){var n=Object.keys(e)
96if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
97t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
98t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
99for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return
100if("string"==typeof e)return _arrayLikeToArray(e,t)
101var n=Object.prototype.toString.call(e).slice(8,-1)
102"Object"===n&&e.constructor&&(n=e.constructor.name)
103if("Map"===n||"Set"===n)return Array.from(e)
104if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length)
105for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
106return r}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
107r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
108if(Reflect.construct.sham)return!1
109if("function"==typeof Proxy)return!0
110try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
111return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
112if(t){var i=_getPrototypeOf(this).constructor
113n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
114return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
115return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
116return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
117var e=new WeakMap
118return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e
119if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
120var t=_getRequireWildcardCache()
121if(t&&t.has(e))return t.get(e)
122var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
123for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
124o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var u=(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("fflM"))})}),p="undefined"!=typeof window&&window.document,d=void 0!==e&&e.window&&e.window.document,h=Object.keys(a.propTypes),f=p||d?r.Suspense:function(){return null},y=[]
125t.createReactPlayer=function createReactPlayer(e,t){var n,p
126return p=n=function(n){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
127e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(ReactPlayer,r.Component)
128var p=_createSuper(ReactPlayer)
129function ReactPlayer(){var n
130!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,ReactPlayer)
131for(var s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d]
132return _defineProperty(_assertThisInitialized(n=p.call.apply(p,[this].concat(u))),"state",{showPreview:!!n.props.light}),_defineProperty(_assertThisInitialized(n),"references",{wrapper:function wrapper(e){n.wrapper=e},player:function player(e){n.player=e}}),_defineProperty(_assertThisInitialized(n),"handleClickPreview",function(e){n.setState({showPreview:!1}),n.props.onClickPreview(e)}),_defineProperty(_assertThisInitialized(n),"showPreview",function(){n.setState({showPreview:!0})}),_defineProperty(_assertThisInitialized(n),"getDuration",function(){return n.player?n.player.getDuration():null}),_defineProperty(_assertThisInitialized(n),"getCurrentTime",function(){return n.player?n.player.getCurrentTime():null}),_defineProperty(_assertThisInitialized(n),"getSecondsLoaded",function(){return n.player?n.player.getSecondsLoaded():null}),_defineProperty(_assertThisInitialized(n),"getInternalPlayer",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player"
133return n.player?n.player.getInternalPlayer(e):null}),_defineProperty(_assertThisInitialized(n),"seekTo",function(e,t){if(!n.player)return null
134n.player.seekTo(e,t)}),_defineProperty(_assertThisInitialized(n),"handleReady",function(){n.props.onReady(_assertThisInitialized(n))}),_defineProperty(_assertThisInitialized(n),"getActivePlayer",(0,o.default)(function(n){for(var r=0,i=[].concat(y,_toConsumableArray(e));r<i.length;r++){var o=i[r]
135if(o.canPlay(n))return o}return t||null})),_defineProperty(_assertThisInitialized(n),"getConfig",(0,o.default)(function(e,t){var r=n.props.config
136return i.default.all([a.defaultProps.config,a.defaultProps.config[t]||{},r,r[t]||{}])})),_defineProperty(_assertThisInitialized(n),"getAttributes",(0,o.default)(function(e){return(0,l.omit)(n.props,h)})),_defineProperty(_assertThisInitialized(n),"renderActivePlayer",function(e){if(!e)return null
137var t=n.getActivePlayer(e)
138if(!t)return null
139var i=n.getConfig(e,t.key)
140return r.default.createElement(c.default,_extends({},n.props,{key:t.key,ref:n.references.player,config:i,activePlayer:t.lazyPlayer||t,onReady:n.handleReady}))}),n}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(ReactPlayer,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(e,t){return!(0,s.default)(this.props,e)||!(0,s.default)(this.state,t)}},{key:"componentDidUpdate",value:function componentDidUpdate(e){var t=this.props.light
141!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function renderPreview(e){if(!e)return null
142var t=this.props,n=t.light,i=t.playIcon,o=t.previewTabIndex,s=t.oEmbedUrl
143return r.default.createElement(u,{url:e,light:n,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}},{key:"render",value:function render(){var e=this.props,t=e.url,n=e.style,i=e.width,o=e.height,s=e.fallback,a=e.wrapper,l=this.state.showPreview,c=this.getAttributes(t),u="string"==typeof a?this.references.wrapper:void 0
144return r.default.createElement(a,_extends({ref:u,style:_objectSpread(_objectSpread({},n),{},{width:i,height:o})},c),r.default.createElement(f,{fallback:s},l?this.renderPreview(t):this.renderActivePlayer(t)))}}]),ReactPlayer}(),_defineProperty(n,"displayName","ReactPlayer"),_defineProperty(n,"propT
144ypes",a.propTypes),_defineProperty(n,"defaultProps",a.defaultProps),_defineProperty(n,"addCustomPlayer",function(e){y.push(e)}),_defineProperty(n,"removeCustomPlayers",function(){y.length=0}),_defineProperty(n,"canPlay",function(t){for(var n=0,r=[].concat(y,_toConsumableArray(e));n<r.length;n++)if(r[n].canPlay(t))return!0
145return!1}),_defineProperty(n,"canEnablePIP",function(t){for(var n=0,r=[].concat(y,_toConsumableArray(e));n<r.length;n++){var i=r[n]
146if(i.canEnablePIP&&i.canEnablePIP(t))return!0}return!1}),p}}).call(this,n("yLpj"))},"7l9Y":function(e,t,n){"use strict"
147Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
148var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("zuFh")),i=n("6tYh")
149var o=r.default[r.default.length-1],s=(0,i.createReactPlayer)(r.default,o)
150t.default=s},BgVF:function(e,t,n){"use strict"
151function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
152var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
153if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
154var t=_getRequireWildcardCache()
155if(t&&t.has(e))return t.get(e)
156var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
157for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
158o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
159return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
160function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
161var e=new WeakMap
162return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
163r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
164if(Reflect.construct.sham)return!1
165if("function"==typeof Proxy)return!0
166try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
167return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
168if(t){var i=_getPrototypeOf(this).constructor
169n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
170return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
171return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
172return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
173e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Kaltura,r.Component)
174var t=_createSuper(Kaltura)
175function Kaltura(){var e
176!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Kaltura)
177for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
178return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"duration",null),_defineProperty(_assertThisInitialized(e),"currentTime",null),_defineProperty(_assertThisInitialized(e),"secondsLoaded",null),_defineProperty(_assertThisInitialized(e),"mute",function(){e.callPlayer("mute")}),_defineProperty(_assertThisInitialized(e),"unmute",function(){e.callPlayer("unmute")}
178),_defineProperty(_assertThisInitialized(e),"ref",function(t){e.iframe=t}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Kaltura,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e){var t=this;(0,i.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then(function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.on("ready",function(){setTimeout(function(){t.player.isReady=!0,t.player.setLoop(t.props.loop),t.props.muted&&t.player.mute(),t.addListeners(t.player,t.props),t.props.onReady()},500)}))},this.props.onError)}},{key:"addListeners",value:function addListeners(e,t){var n=this
179e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",function(e){var t=e.duration,r=e.seconds
180n.duration=t,n.currentTime=r})}},{key:"play",value:function play(){this.callPlayer("play")}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){}},{key:"seekTo",value:function seekTo(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function setVolume(e){this.callPlayer("setVolume",e)}},{key:"setLoop",value:function setLoop(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function getDuration(){return this.duration}},{key:"getCurrentTime",value:function getCurrentTime(){return this.currentTime}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return this.secondsLoaded}},{key:"render",value:function render(){return r.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}]),Kaltura}()
181t.default=s,_defineProperty(s,"displayName","Kaltura"),_defineProperty(s,"canPlay",o.canPlay.kaltura)},GdC5:function(e,t,n){"use strict"
182function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
183var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
184if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
185var t=_getRequireWildcardCache()
186if(t&&t.has(e))return t.get(e)
187var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
188for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
189o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
190return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
191function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
192var e=new WeakMap
193return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
194r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
195if(Reflect.construct.sham)return!1
196if("function"==typeof Proxy)return!0
197try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
198return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
199if(t){var i=_getPrototypeOf(this).constructor
200n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
201return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
202return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
203return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
204e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Streamable,r.Component)
205var t=_createSuper(Streamable)
206function Streamable(){var e
207!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Streamable)
208for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
209return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"duration",null),_defineProperty(_assertThisInitialized(e),"currentTime",null),_defineProperty(_assertThisInitialized(e),"secondsLoaded",null),_defineProperty(_assertThisInitialized(e),"mute",function(){e.callPlayer("mute")}),_defineProperty(_assertThisInitialized(e),"unmute",function(){e.callPlayer("unmute")}
209),_defineProperty(_assertThisInitialized(e),"ref",function(t){e.iframe=t}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Streamable,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e){var t=this;(0,i.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then(function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.setLoop(t.props.loop),t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seeked",t.props.onSeek),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(e){var n=e.duration,r=e.seconds
210t.duration=n,t.currentTime=r}),t.player.on("buffered",function(e){var n=e.percent
211t.duration&&(t.secondsLoaded=t.duration*n)}),t.props.muted&&t.player.mute())},this.props.onError)}},{key:"play",value:function play(){this.callPlayer("play")}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){}},{key:"seekTo",value:function seekTo(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function setVolume(e){this.callPlayer("setVolume",100*e)}},{key:"setLoop",value:function setLoop(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function getDuration(){return this.duration}},{key:"getCurrentTime",value:function getCurrentTime(){return this.currentTime}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return this.secondsLoaded}},{key:"render",value:function render(){var e=this.props.url.match(o.MATCH_URL_STREAMABLE)[1]
212return r.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(e),frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}]),Streamable}()
213t.default=s,_defineProperty(s,"displayName","Streamable"),_defineProperty(s,"canPlay",o.canPlay.streamable)},LLoX:function(e,t,n){"use strict"
214function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
215var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
216if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
217var t=_getRequireWildcardCache()
218if(t&&t.has(e))return t.get(e)
219var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
220for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
221o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
222return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
223function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
224var e=new WeakMap
225return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var n=Object.keys(e)
226if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
227t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
228r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
229if(Reflect.construct.sham)return!1
230if("function"==typeof Proxy)return!0
231try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
232return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
233if(t){var i=_getPrototypeOf(this).constructor
234n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
235return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
236return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
237return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
238e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Vimeo,r.Component)
239var t=_createSuper(Vimeo)
240function Vimeo(){var e
241!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Vimeo)
242for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
243return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"duration",null),_defineProperty(_assertThisInitialized(e),"currentTime",null),_defineProperty(_assertThisInitialized(e),"secondsLoaded",null),_defineProperty(_assertThisInitialized(e),"mute",function(){e.setMuted(!0)}),_defineProperty(_assertThisInitialized(e),"unmute",function(){e.setMuted(!1)}),_defineProperty(_assertThisInitialized(e),"ref",function(t){e.container=t}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}
243(Vimeo,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e){var t=this
244this.duration=null,(0,i.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then(function(n){if(t.container){var r=t.props.config,i=r.playerOptions,o=r.title
245t.player=new n.Player(t.container,function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
246t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({url:e,autoplay:t.props.playing,muted:t.props.muted,loop:t.props.loop,playsinline:t.props.playsinline,controls:t.props.controls},i)),t.player.ready().then(function(){var e=t.container.querySelector("iframe")
247e.style.width="100%",e.style.height="100%",o&&(e.title=o)}).catch(t.props.onError),t.player.on("loaded",function(){t.props.onReady(),t.refreshDuration()}),t.player.on("play",function(){t.props.onPlay(),t.refreshDuration()}),t.player.on("pause",t.props.onPause),t.player.on("seeked",function(e){return t.props.onSeek(e.seconds)}),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(e){var n=e.seconds
248t.currentTime=n}),t.player.on("progress",function(e){var n=e.seconds
249t.secondsLoaded=n}),t.player.on("bufferstart",t.props.onBuffer),t.player.on("bufferend",t.props.onBufferEnd),t.player.on("playbackratechange",function(e){return t.props.onPlaybackRateChange(e.playbackRate)})}},this.props.onError)}},{key:"refreshDuration",value:function refreshDuration(){var e=this
250this.player.getDuration().then(function(t){e.duration=t})}},{key:"play",value:function play(){var e=this.callPlayer("play")
251e&&e.catch(this.props.onError)}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){this.callPlayer("unload")}},{key:"seekTo",value:function seekTo(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function setVolume(e){this.callPlayer("setVolume",e)}},{key:"setMuted",value:function setMuted(e){this.callPlayer("setMuted",e)}},{key:"setLoop",value:function setLoop(e){this.callPlayer("setLoop",e)}},{key:"setPlaybackRate",value:function setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}},{key:"getDuration",value:function getDuration(){return this.duration}},{key:"getCurrentTime",value:function getCurrentTime(){return this.currentTime}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return this.secondsLoaded}},{key:"render",value:function render(){var e={width:"100%",height:"100%",overflow:"hidden",display:this.props.display}
252return r.default.createElement("div",{key:this.props.url,ref:this.ref,style:e})}}]),Vimeo}()
253t.default=s,_defineProperty(s,"displayName","Vimeo"),_defineProperty(s,"canPlay",o.canPlay.vimeo),_defineProperty(s,"forceLoad",!0)},MuZe:function(e,t){function stdOnEnd(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function load(e,t,n){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script")
254"function"==typeof t&&(n=t,t={}),t=t||{},n=n||function(){},i.type=t.type||"text/javascript",i.charset=t.charset||"utf8",i.async=!("async"in t)||!!t.async,i.src=e,t.attrs&&function setAttributes(e,t){for(var n in t)e.setAttribute(n,t[n])}(i,t.attrs),t.text&&(i.text=""+t.text),("onload"in i?stdOnEnd:ieOnEnd)(i,n),i.onload||stdOnEnd(i,n),r.appendChild(i)}},NDqF:function(e,t,n){"use strict"
255var r=n("LboF"),i=n.n(r),o=n("spZ0"),s={injectType:"singletonStyleTag",insert:"head",singleton:!0}
256i()(o.a,s),o.a.locals},Nph3:function(e,t,n){e.exports=n("us/w")()},PE4B:function(e,t,n){"use strict"
257var r=function isMergeableObject(e){return function isNonNullObject(e){return!!e&&"object"==typeof e}(e)&&!function isSpecial(e){var t=Object.prototype.toString.call(e)
258return"[object RegExp]"===t||"[object Date]"===t||function isReactElement(e){return e.$$typeof===i}(e)}(e)}
259var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103
260function cloneUnlessOtherwiseSpecified(e,t){return!1!==t.clone&&t.isMergeableObject(e)?deepmerge(function emptyTarget(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function defaultArrayMerge(e,t,n){return e.concat(t).map(function(e){return cloneUnlessOtherwiseSpecified(e,n)})}function getKeys(e){return Object.keys(e).concat(function getEnumerableOwnPropertySymbols(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function propertyIsOnObject(e,t){try{return t in e}catch(e){return!1}}function mergeObject(e,t,n){var r={}
261return n.isMergeableObject(e)&&getKeys(e).forEach(function(t){r[t]=cloneUnlessOtherwiseSpecified(e[t],n)}),getKeys(t).forEach(function(i){(function propertyIsUnsafe(e,t){return propertyIsOnObject(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(propertyIsOnObject(e,i)&&n.isMergeableObject(t[i])?r[i]=function getMergeFunction(e,t){if(!t.customMerge)return deepmerge
262var n=t.customMerge(e)
263return"function"==typeof n?n:deepmerge}(i,n)(e[i],t[i],n):r[i]=cloneUnlessOtherwiseSpecified(t[i],n))}),r}function deepmerge(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||defaultArrayMerge,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified
264var i=Array.isArray(t)
265return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):mergeObject(e,t,n):cloneUnlessOtherwiseSpecified(t,n)}deepmerge.all=function deepmergeAll(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array")
266return e.reduce(function(e,n){return deepmerge(e,n,t)},{})}
267var o=deepmerge
268e.exports=o},QXAm:function(e,t,n){"use strict"
269Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.propTypes=void 0
270var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("Nph3"))
271var i=r.default.string,o=r.default.bool,s=r.default.number,a=r.default.array,l=r.default.oneOfType,c=r.default.shape,u=r.default.object,p=r.default.func,d=r.default.node,h={url:l([i,a,u]),playing:o,loop:o,controls:o,volume:s,muted:o,playbackRate:s,width:l([i,s]),height:l([i,s]),style:u,progressInterval:s,playsinline:o,pip:o,stopOnUnmount:o,light:l([o,i,u]),playIcon:d,previewTabIndex:s,fallback:d,oEmbedUrl:i,wrapper:l([i,p,c({render:p.isRequired})]),config:c({soundcloud:c({options:u}),youtube:c({playerVars:u,embedOptions:u,onUnstarted:p}),facebook:c({appId:i,version:i,playerId:i,attributes:u}),dailymotion:c({params:u}),vimeo:c({playerOptions:u,title:i}),file:c({attributes:u,tracks:a,forceVideo:o,forceAudio:o,forceHLS:o,forceSafariHLS:o,forceDASH:o,forceFLV:o,hlsOptions:u,hlsVersion:i,dashVersion:i,flvVersion:i}),wistia:c({options:u,playerId:i,customControls:a}),mixcloud:c({options:u}),twitch:c({options:u,playerId:i}),vidyard:c({options:u})}),onReady:p,onStart:p,onPlay:p,onPause:p,onBuffer:p,onBufferEnd:p,onEnded:p,onError:p,onDuration:p,onSeek:p,onPlaybackRateChange:p,onProgress:p,onClickPreview:p,onEnablePIP:p,onDisablePIP:p}
272t.propTypes=h
273var f=function noop(){},y={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:f},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:f,onStart:f,onPlay:f,onPause:f,onBuffer:f,onBufferEnd:f,onEnded:f,onError:f,onDuration:f,onSeek:f,onPlaybackRateChange:f,onProgress:f,onClickPreview:f,onEnablePIP:f,onDisablePIP:f}
274t.defaultProps=y},Rom6:function(e,t,n){"use strict"
275function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
275Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
276var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
277if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
278var t=_getRequireWildcardCache()
279if(t&&t.has(e))return t.get(e)
280var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
281for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
282o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
283return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
284function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
285var e=new WeakMap
286return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var n=Object.keys(e)
287if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
288t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
289t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return
290var n=[],r=!0,i=!1,o=void 0
291try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function _unsupportedIterableToArray(e,t){if(!e)return
292if("string"==typeof e)return _arrayLikeToArray(e,t)
293var n=Object.prototype.toString.call(e).slice(8,-1)
294"Object"===n&&e.constructor&&(n=e.constructor.name)
295if("Map"===n||"Set"===n)return Array.from(e)
296if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length)
297for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
298return r}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
299r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
300if(Reflect.construct.sham)return!1
301if("function"==typeof Proxy)return!0
302try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
303return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
304if(t){var i=_getPrototypeOf(this).constructor
305n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
306return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
307return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
308return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
309e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(DailyMotion,r.Component)
310var t=_createSuper(DailyMotion)
311function DailyMotion(){var e
312!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,DailyMotion)
313for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
314return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"onDurationChange",function(){var t=e.getDuration()
315e.props.onDuration(t)}),_defineProperty(_assertThisInitialized(e),"mute",function(){e.callPlayer("setMuted",!0)}),_defineProperty(_assertThisInitialized(e),"unmute",function(){e.callPlayer("setMuted",!1)}),_defineProperty(_assertThisInitialized(e),"ref",function(t){e.container=t}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}
315(DailyMotion,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e){var t=this,n=this.props,r=n.controls,s=n.config,a=n.onError,l=n.playing,c=_slicedToArray(e.match(o.MATCH_URL_DAILYMOTION),2)[1]
316this.player?this.player.load(c,{start:(0,i.parseStartTime)(e),autoplay:l}):(0,i.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",function(e){return e.player}).then(function(n){if(t.container){var o=n.player
317t.player=new o(t.container,{width:"100%",height:"100%",video:c,params:_objectSpread({controls:r,autoplay:t.props.playing,mute:t.props.muted,start:(0,i.parseStartTime)(e),origin:window.location.origin},s.params),events:{apiready:t.props.onReady,seeked:function seeked(){return t.props.onSeek(t.player.currentTime)},video_end:t.props.onEnded,durationchange:t.onDurationChange,pause:t.props.onPause,playing:t.props.onPlay,waiting:t.props.onBuffer,error:function error(e){return a(e)}}})}},a)}},{key:"play",value:function play(){this.callPlayer("play")}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){}},{key:"seekTo",value:function seekTo(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function setVolume(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function getDuration(){return this.player.duration||null}},{key:"getCurrentTime",value:function getCurrentTime(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return this.player.bufferedTime}},{key:"render",value:function render(){var e={width:"100%",height:"100%",display:this.props.display}
318return r.default.createElement("div",{style:e},r.default.createElement("div",{ref:this.ref}))}}]),DailyMotion}()
319t.default=s,_defineProperty(s,"displayName","DailyMotion"),_defineProperty(s,"canPlay",o.canPlay.dailymotion),_defineProperty(s,"loopOnEnded",!0)},"W4/P":function(e,t,n){"use strict"
320function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
321var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
322if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
323var t=_getRequireWildcardCache()
324if(t&&t.has(e))return t.get(e)
325var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
326for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
327o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
328return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
329function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
330var e=new WeakMap
331return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var n=Object.keys(e)
332if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
333t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
334t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
335r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
336if(Reflect.construct.sham)return!1
337if("function"==typeof Proxy)return!0
338try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
339return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
340if(t){var i=_getPrototypeOf(this).constructor
341n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
342return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
343return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
344return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="wistia-player-",a=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
345e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Wistia,r.Component)
346var t=_createSuper(Wistia)
347function Wistia(){var e
348!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Wistia)
349for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
350return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"playerID",e.props.config.playerId||"".concat(s).concat((0,i.randomString)())),_defineProperty(_assertThisInitialized(e),"onPlay",function(){var t
351return(t=e.props).onPlay.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onPause",function(){var t
352return(t=e.props).onPause.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onSeek",function(){var t
353return(t=e.props).onSeek.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onEnded",function(){var t
354return(t=e.props).onEnded.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onPlaybackRateChange",function(){var t
355return(t=e.props).onPlaybackRateChange.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"mute",function(){e.callPlayer("mute")}),_defineProperty(_assertThisInitialized(e),"unmute",function(){e.callPlayer("unmute")}
355),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Wistia,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e){var t=this,n=this.props,r=n.playing,o=n.muted,s=n.controls,a=n.onReady,l=n.config,c=n.onError;(0,i.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then(function(e){l.customControls&&l.customControls.forEach(function(t){return e.defineControl(t)}),window._wq=window._wq||[],window._wq.push({id:t.playerID,options:_objectSpread({autoPlay:r,silentAutoPlay:"allow",muted:o,controlsVisibleOnLoad:s,fullscreenButton:s,playbar:s,playbackRateControl:s,qualityControl:s,volumeControl:s,settingsControl:s,smallPlayButton:s},l.options),onReady:function onReady(e){t.player=e,t.unbind(),t.player.bind("play",t.onPlay),t.player.bind("pause",t.onPause),t.player.bind("seek",t.onSeek),t.player.bind("end",t.onEnded),t.player.bind("playbackratechange",t.onPlaybackRateChange),a()}})},c)}},{key:"unbind",value:function unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}},{key:"play",value:function play(){this.callPlayer("play")}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function seekTo(e){this.callPlayer("time",e)}},{key:"setVolume",value:function setVolume(e){this.callPlayer("volume",e)}},{key:"setPlaybackRate",value:function setPlaybackRate(e){this.callPlayer("playbackRate",e)}},{key:"getDuration",value:function getDuration(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function getCurrentTime(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return null}},{key:"render",value:function render(){var e=this.props.url,t=e&&e.match(o.MATCH_URL_WISTIA)[1],n="wistia_embed wistia_async_".concat(t)
356return r.default.createElement("div",{id:this.playerID,key:t,className:n,style:{width:"100%",height:"100%"}})}}]),Wistia}()
357t.default=a,_defineProperty(a,"displayName","Wistia"),_defineProperty(a,"canPlay",o.canPlay.wistia),_defineProperty(a,"loopOnEnded",!0)},bA2t:function(e,t,n){"use strict"
358function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
359var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
360if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
361var t=_getRequireWildcardCache()
362if(t&&t.has(e))return t.get(e)
363var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
364for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
365o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
366return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
367function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
368var e=new WeakMap
369return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var n=Object.keys(e)
370if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
371t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
372r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
373if(Reflect.construct.sham)return!1
374if("function"==typeof Proxy)return!0
375try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
376return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
377if(t){var i=_getPrototypeOf(this).constructor
378n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
379return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
380return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
381return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="twitch-player-",a=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
382e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Twitch,r.Component)
383var t=_createSuper(Twitch)
384function Twitch(){var e
385!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Twitch)
386for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
387return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"playerID",e.props.config.playerId||"".concat(s).concat((0,i.randomString)())),_defineProperty(_assertThisInitialized(e),"mute",function(){e.callPlayer("setMuted",!0)}),_defineProperty(_assertThisInitialized(e),"unmute",function(){e.callPlayer("setMuted",!1)}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}
387(Twitch,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e,t){var n=this,r=this.props,s=r.playsinline,a=r.onError,l=r.config,c=r.controls,u=o.MATCH_URL_TWITCH_CHANNEL.test(e),p=u?e.match(o.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(o.MATCH_URL_TWITCH_VIDEO)[1]
388t?u?this.player.setChannel(p):this.player.setVideo("v"+p):(0,i.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(function(t){n.player=new t.Player(n.playerID,function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
389t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({video:u?"":p,channel:u?p:"",height:"100%",width:"100%",playsinline:s,autoplay:n.props.playing,muted:n.props.muted,controls:!!u||c,time:(0,i.parseStartTime)(e)},l.options))
390var r=t.Player,o=r.READY,a=r.PLAYING,d=r.PAUSE,h=r.ENDED,f=r.ONLINE,y=r.OFFLINE,m=r.SEEK
391n.player.addEventListener(o,n.props.onReady),n.player.addEventListener(a,n.props.onPlay),n.player.addEventListener(d,n.props.onPause),n.player.addEventListener(h,n.props.onEnded),n.player.addEventListener(m,n.props.onSeek),n.player.addEventListener(f,n.props.onLoaded),n.player.addEventListener(y,n.props.onLoaded)},a)}},{key:"play",value:function play(){this.callPlayer("play")}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){this.callPlayer("pause")}},{key:"seekTo",value:function seekTo(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function setVolume(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function getDuration(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function getCurrentTime(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return null}},{key:"render",value:function render(){return r.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}]),Twitch}()
392t.default=a,_defineProperty(a,"displayName","Twitch"),_defineProperty(a,"canPlay",o.canPlay.twitch),_defineProperty(a,"loopOnEnded",!0)},"bq/u":function(e,t,n){"use strict"
393function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
394var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
395if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
396var t=_getRequireWildcardCache()
397if(t&&t.has(e))return t.get(e)
398var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
399for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
400o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
401return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
402function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
403var e=new WeakMap
404return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
405for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
406r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
407if(Reflect.construct.sham)return!1
408if("function"==typeof Proxy)return!0
409try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
410return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
411if(t){var i=_getPrototypeOf(this).constructor
412n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
413return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
414return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
415return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="undefined"!=typeof navigator,a=s&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,l=s&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||a)&&!window.MSStream,c=s&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,u=/www\.dropbox\.com\/.+/,p=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,d=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
416e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(FilePlayer,r.Component)
417var t=_createSuper(FilePlayer)
418function FilePlayer(){var e
419!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,FilePlayer)
420for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s]
421return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(o))),"onReady",function(){var t
422return(t=e.props).onReady.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onPlay",function(){var t
423return(t=e.props).onPlay.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onBuffer",function(){var t
424return(t=e.props).onBuffer.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onBufferEnd",function(){var t
425return(t=e.props).onBufferEnd.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onPause",function(){var t
426return(t=e.props).onPause.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onEnded",function(){var t
427return(t=e.props).onEnded.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onError",function(){var t
428return(t=e.props).onError.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onPlayBackRateChange",function(t){return e.props.onPlaybackRateChange(t.target.playbackRate)}),_defineProperty(_assertThisInitialized(e),"onEnablePIP",function(){var t
429return(t=e.props).onEnablePIP.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"onDisablePIP",function(t){var n=e.props,r=n.onDisablePIP,i=n.playing
430r(t),i&&e.play()}),_defineProperty(_assertThisInitialized(e),"onPresentationModeChange",function(t){if(e.player&&(0,i.supportsWebKitPresentationMode)(e.player)){var n=e.player.webkitPresentationMode
431"picture-in-picture"===n?e.onEnablePIP(t):"inline"===n&&e.onDisablePIP(t)}}),_defineProperty(_assertThisInitialized(e),"onSeek",function(t){e.props.onSeek(t.target.currentTime)}),_defineProperty(_assertThisInitialized(e),"mute",function(){e.player.muted=!0}
431),_defineProperty(_assertThisInitialized(e),"unmute",function(){e.player.muted=!1}),_defineProperty(_assertThisInitialized(e),"renderSourceElement",function(e,t){return"string"==typeof e?r.default.createElement("source",{key:t,src:e}):r.default.createElement("source",_extends({key:t},e))}),_defineProperty(_assertThisInitialized(e),"renderTrack",function(e,t){return r.default.createElement("track",_extends({key:t},e))}),_defineProperty(_assertThisInitialized(e),"ref",function(t){e.player&&(e.prevPlayer=e.player),e.player=t}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(FilePlayer,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player),this.player.src=this.getSource(this.props.url),l&&this.player.load()}},{key:"componentDidUpdate",value:function componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url===e.url||(0,i.isMediaStream)(this.props.url)||(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.player.src="",this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function addListeners(e){var t=this.props,n=t.url,r=t.playsinline
432e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(n)||e.addEventListener("canplay",this.onReady),r&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function shouldUseAudio(e){return!e.config.forceVideo&&(!e.config.attributes.poster&&(o.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio))}},{key:"shouldUseHLS",value:function shouldUseHLS(e){return!!this.props.config.forceHLS||(!(!c||!this.props.config.forceSafariHLS)||!l&&(o.HLS_EXTENSIONS.test(e)||p.test(e)))}},{key:"shouldUseDASH",value:function shouldUseDASH(e){return o.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function shouldUseFLV(e){return o.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}},{key:"load",value:function load(e){var t=this,n=this.props.config,r=n.hlsVersion,o=n.hlsOptions,s=n.dashVersion,a=n.flvVersion
433if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,i.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",r),"Hls").then(function(n){if(t.hls=new n(o),t.hls.on(n.Events.MANIFEST_PARSED,function(){t.props.onReady()}),t.hls.on(n.Events.ERROR,function(e,r){t.props.onError(e,r,t.hls,n)}),p.test(e)){var r=e.match(p)[1]
434t.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",r))}else t.hls.loadSource(e)
435t.hls.attachMedia(t.player),t.props.onLoaded()}),this.shouldUseDASH(e)&&(0,i.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",s),"dashjs").then(function(n){t.dash=n.MediaPlayer().create(),t.dash.initialize(t.player,e,t.props.playing),t.dash.on("error",t.props.onError),parseInt(s)<3?t.dash.getDebug().set
435LogToBrowserConsole(!1):t.dash.updateSettings({debug:{logLevel:n.Debug.LOG_LEVEL_NONE}}),t.props.onLoaded()}),this.shouldUseFLV(e)&&(0,i.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",a),"flvjs").then(function(n){t.flv=n.createPlayer({type:"flv",url:e}),t.flv.attachMediaElement(t.player),t.flv.on(n.Events.ERROR,function(e,r){t.props.onError(e,r,t.flv,n)}),t.flv.load(),t.props.onLoaded()}),e instanceof Array)this.player.load()
436else if((0,i.isMediaStream)(e))try{this.player.srcObject=e}catch(t){this.player.src=window.URL.createObjectURL(e)}}},{key:"play",value:function play(){var e=this.player.play()
437e&&e.catch(this.props.onError)}},{key:"pause",value:function pause(){this.player.pause()}},{key:"stop",value:function stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function seekTo(e){this.player.currentTime=e}},{key:"setVolume",value:function setVolume(e){this.player.volume=e}},{key:"enablePIP",value:function enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,i.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,i.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function setPlaybackRate(e){try{this.player.playbackRate=e}catch(e){this.props.onError(e)}}},{key:"getDuration",value:function getDuration(){if(!this.player)return null
438var e=this.player,t=e.duration,n=e.seekable
439return t===1/0&&n.length>0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function getCurrentTime(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){if(!this.player)return null
440var e=this.player.buffered
441if(0===e.length)return 0
442var t=e.end(e.length-1),n=this.getDuration()
443return t>n?n:t}},{key:"getSource",value:function getSource(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e),r=this.shouldUseFLV(e)
444if(!(e instanceof Array||(0,i.isMediaStream)(e)||t||n||r))return u.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function render(){var e=this.props,t=e.url,n=e.playing,i=e.loop,o=e.controls,s=e.muted,a=e.config,l=e.width,c=e.height,u=this.shouldUseAudio(this.props)?"audio":"video",p={width:"auto"===l?l:"100%",height:"auto"===c?c:"100%"}
445return r.default.createElement(u,_extends({ref:this.ref,src:this.getSource(t),style:p,preload:"auto",autoPlay:n||void 0,controls:o,muted:s,loop:i},a.attributes),t instanceof Array&&t.map(this.renderSourceElement),a.tracks.map(this.renderTrack))}}]),FilePlayer}()
446t.default=d,_defineProperty(d,"displayName","FilePlayer"),_defineProperty(d,"canPlay",o.canPlay.file)},f77o:function(e,t,n){"use strict"
447function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
448var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
449if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
450var t=_getRequireWildcardCache()
451if(t&&t.has(e))return t.get(e)
452var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
453for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
454o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
455return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
456function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
457var e=new WeakMap
458return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
459for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
460r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
461if(Reflect.construct.sham)return!1
462if("function"==typeof Proxy)return!0
463try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
464return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
465if(t){var i=_getPrototypeOf(this).constructor
466n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
467return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
468return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
469return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="https://connect.facebook.net/en_US/sdk.js",a="facebook-player-",l=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
470e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Facebook,r.Component)
471var t=_createSuper(Facebook)
472function Facebook(){var e
473!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Facebook)
474for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
475return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"playerID",e.props.config.playerId||"".concat(a).concat((0,i.randomString)())),_defineProperty(_assertThisInitialized(e),"mute",function(){e.callPlayer("mute")}),_defineProperty(_assertThisInitialized(e),"unmute",function(){e.callPlayer("unmute")}
475),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Facebook,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e,t){var n=this
476t?(0,i.getSDK)(s,"FB","fbAsyncInit").then(function(e){return e.XFBML.parse()}):(0,i.getSDK)(s,"FB","fbAsyncInit").then(function(e){e.init({appId:n.props.config.appId,xfbml:!0,version:n.props.config.version}),e.Event.subscribe("xfbml.render",function(e){n.props.onLoaded()}),e.Event.subscribe("xfbml.ready",function(e){"video"===e.type&&e.id===n.playerID&&(n.player=e.instance,n.player.subscribe("startedPlaying",n.props.onPlay),n.player.subscribe("paused",n.props.onPause),n.player.subscribe("finishedPlaying",n.props.onEnded),n.player.subscribe("startedBuffering",n.props.onBuffer),n.player.subscribe("finishedBuffering",n.props.onBufferEnd),n.player.subscribe("error",n.props.onError),n.props.muted?n.callPlayer("mute"):n.callPlayer("unmute"),n.props.onReady(),document.getElementById(n.playerID).querySelector("iframe").style.visibility="visible")})})}},{key:"play",value:function play(){this.callPlayer("play")}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){}},{key:"seekTo",value:function seekTo(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function setVolume(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function getDuration(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function getCurrentTime(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return null}},{key:"render",value:function render(){var e=this.props.config.attributes
477return r.default.createElement("div",_extends({style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"},e))}}]),Facebook}()
478t.default=l,_defineProperty(l,"displayName","Facebook"),_defineProperty(l,"canPlay",o.canPlay.facebook),_defineProperty(l,"loopOnEnded",!0)},fPw2:function(e,t,n){"use strict"
479function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
480var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
481if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
482var t=_getRequireWildcardCache()
483if(t&&t.has(e))return t.get(e)
484var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
485for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
486o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
487return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
488function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
489var e=new WeakMap
490return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var n=Object.keys(e)
491if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
492t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
493r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
494if(Reflect.construct.sham)return!1
495if("function"==typeof Proxy)return!0
496try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
497return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
498if(t){var i=_getPrototypeOf(this).constructor
499n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
500return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
501return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
502return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
503e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Vidyard,r.Component)
504var t=_createSuper(Vidyard)
505function Vidyard(){var e
506!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Vidyard)
507for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
508return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"mute",function(){e.setVolume(0)}),_defineProperty(_assertThisInitialized(e),"unmute",function(){null!==e.props.volume&&e.setVolume(e.props.volume)}),_defineProperty(_assertThisInitialized(e),"ref",function(t){e.container=t}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}
508(Vidyard,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e){var t=this,n=this.props,r=n.playing,s=n.config,a=n.onError,l=n.onDuration,c=e&&e.match(o.MATCH_URL_VIDYARD)[1]
509this.player&&this.stop(),(0,i.getSDK)("https://play.vidyard.com/embed/v4.js","VidyardV4","onVidyardAPI").then(function(e){t.container&&(e.api.addReadyListener(function(e,n){t.player||(t.player=n,t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seek",t.props.onSeek),t.player.on("playerComplete",t.props.onEnded))},c),e.api.renderPlayer(function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
510t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({uuid:c,container:t.container,autoplay:r?1:0},s.options)),e.api.getPlayerMetadata(c).then(function(e){t.duration=e.length_in_seconds,l(e.length_in_seconds)}))},a)}},{key:"play",value:function play(){this.callPlayer("play")}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){window.VidyardV4.api.destroyPlayer(this.player)}},{key:"seekTo",value:function seekTo(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function setVolume(e){this.callPlayer("setVolume",e)}},{key:"setPlaybackRate",value:function setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}},{key:"getDuration",value:function getDuration(){return this.duration}},{key:"getCurrentTime",value:function getCurrentTime(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return null}},{key:"render",value:function render(){var e={width:"100%",height:"100%",display:this.props.display}
511return r.default.createElement("div",{style:e},r.default.createElement("div",{ref:this.ref}))}}]),Vidyard}()
512t.default=s,_defineProperty(s,"displayName","Vidyard"),_defineProperty(s,"canPlay",o.canPlay.vidyard)},fflM:function(e,t,n){"use strict"
513function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
514var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
515if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
516var t=_getRequireWildcardCache()
517if(t&&t.has(e))return t.get(e)
518var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
519for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
520o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
521return n}(n("q1tI"))
522function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
523var e=new WeakMap
524return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var n=Object.keys(e)
525if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
526t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
527t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
528r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
529if(Reflect.construct.sham)return!1
530if("function"==typeof Proxy)return!0
531try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
532return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
533if(t){var i=_getPrototypeOf(this).constructor
534n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
535return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
536return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
537return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i={},o=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
538e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Preview,r.Component)
539var t=_createSuper(Preview)
540function Preview(){var e
541!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Preview)
542for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i]
543return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"mounted",!1),_defineProperty(_assertThisInitialized(e),"state",{image:null}),_defineProperty(_assertThisInitialized(e),"handleKeyPress",function(t){"Enter"!==t.key&&" "!==t.key||e.props.onClick()}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}
543(Preview,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function componentDidUpdate(e){var t=this.props,n=t.url,r=t.light
544e.url===n&&e.light===r||this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.mounted=!1}},{key:"fetchImage",value:function fetchImage(e){var t=this,n=e.url,o=e.light,s=e.oEmbedUrl
545if(!r.default.isValidElement(o))if("string"!=typeof o){if(!i[n])return this.setState({image:null}),window.fetch(s.replace("{url}",n)).then(function(e){return e.json()}).then(function(e){if(e.thumbnail_url&&t.mounted){var r=e.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640")
546t.setState({image:r}),i[n]=r}})
547this.setState({image:i[n]})}else this.setState({image:o})}},{key:"render",value:function render(){var e=this.props,t=e.light,n=e.onClick,i=e.playIcon,o=e.previewTabIndex,s=this.state.image,a=r.default.isValidElement(t),l={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:_objectSpread({width:"100%",height:"100%",backgroundImage:s&&!a?"url(".concat(s,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},l),shadow:_objectSpread({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:"64px",width:"64px",height:"64px",position:a?"absolute":void 0},l),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},u=r.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},r.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}))
548return r.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:n,tabIndex:o,onKeyPress:this.handleKeyPress},a?t:null,i||u)}}]),Preview}()
549t.default=o},l0bQ:function(e,t,n){"use strict"
550function createElement(e,t,n){const r=document.createElement(t)
551return e&&(r.className=e),n&&n.appendChild(r),r}function equalizePoints(e,t){return e.x=t.x,e.y=t.y,void 0!==t.id&&(e.id=t.id),e}function roundPoint(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function getDistanceBetween(e,t){const n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y)
552return Math.sqrt(n*n+r*r)}function pointsEqual(e,t){return e.x===t.x&&e.y===t.y}function clamp(e,t,n){return Math.min(Math.max(e,t),n)}function toTransformString(e,t,n){let r=`translate3d(${e}px,${t||0}px,0)`
553return void 0!==n&&(r+=` scale3d(${n},${n},1)`),r}function setTransform(e,t,n,r){e.style.transform=toTransformString(t,n,r)}n.d(t,"a",function(){return Q}),n.d(t,"b",function(){return te})
554const r="cubic-bezier(.4,0,.22,1)"
555function setTransitionStyle(e,t,n,i){e.style.transition=t?`${t} ${n}ms ${i||r}`:"none"}function setWidthHeight(e,t,n){e.style.width="number"==typeof t?`${t}px`:t,e.style.height="number"==typeof n?`${n}px`:n}const i={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"}
556function isSafari(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}let o=!1
557try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{o=!0}}))}catch(e){}class DOMEvents{constructor(){this._pool=[]}add(e,t,n,r){this._toggleListener(e,t,n,r)}remove(e,t,n,r){this._toggleListener(e,t,n,r,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,t,n,r,i,s){if(!e)return
558const a=i?"removeEventListener":"addEventListener"
559t.split(" ").forEach(t=>{if(t){s||(i?this._pool=this._pool.filter(r=>r.type!==t||r.listener!==n||r.target!==e):this._pool.push({target:e,type:t,listener:n,passive:r}))
560const l=!!o&&{passive:r||!1}
561e[a](t,n,l)}})}}function getViewportSize(e,t){if(e.getViewportSizeFn){const n=e.getViewportSizeFn(e,t)
562if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function parsePaddingOption(e,t,n,r,i){let o=0
563if(t.paddingFn)o=t.paddingFn(n,r,i)[e]
564else if(t.padding)o=t.padding[e]
565else{const n="padding"+e[0].toUpperCase()+e.slice(1)
566t[n]&&(o=t[n])}return Number(o)||0}function getPanAreaSize(e,t,n,r){return{x:t.x-parsePaddingOption("left",e,t,n,r)-parsePaddingOption("right",e,t,n,r),y:t.y-parsePaddingOption("top",e,t,n,r)-parsePaddingOption("bottom",e,t,n,r)}}class PanBounds{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:t}=this.slide,n=this.slide["x"===e?"width":"height"]*this.currZoomLevel,r=parsePaddingOption("x"===e?"left"
566:"top",t.options,t.viewportSize,this.slide.data,this.slide.index),i=this.slide.panAreaSize[e]
567this.center[e]=Math.round((i-n)/2)+r,this.max[e]=n>i?Math.round(i-n)+r:this.center[e],this.min[e]=n>i?r:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,t){return clamp(t,this.max[e],this.min[e])}}const s=4e3
568class ZoomLevel{constructor(e,t,n,r){this.pswp=r,this.options=e,this.itemData=t,this.index=n,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,n){const r={x:e,y:t}
569this.elementSize=r,this.panAreaSize=n
570const i=n.x/r.x,o=n.y/r.y
571this.fit=Math.min(1,i<o?i:o),this.fill=Math.min(1,i>o?i:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",n=this.options[t]
572if(n)return"function"==typeof n?n(this):"fill"===n?this.fill:"fit"===n?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary")
573return e||(e=Math.min(1,3*this.fit),this.elementSize&&e*this.elementSize.x>s&&(e=s/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}class Slide{constructor(e,t,n){this.data=e,this.index=t,this.pswp=n,this.isActive=t===n.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!n.opener.isOpen,this.zoomLevels=new ZoomLevel(n.options,e,t,n),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:t}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=createElement("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new PanBounds(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this
574!this.heavyAppended&&e.opener.isOpen&&!e.mainScroll.isShifted()&&(this.isActive,1)&&(this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this})))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(e){const t=this.currentResolution||this.zoomLevels.initial
575if(!t)return
576const n=Math.round(this.width*t)||this.pswp.viewportSize.x,r=Math.round(this.height*t)||this.pswp.viewportSize.y;(this.sizeChanged(n,r)||e)&&this.content.setDisplayedSize(n,r)}sizeChanged(e,t){return(e!==this.prevDisplayedWidth||t!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=e,this.prevDisplayedHeight=t,!0)}getPlaceholderElement(){var e
577return null===(e=this.content.placeholder)||void 0===e?void 0:e.element}zoomTo(e,t,n,r){const{pswp:i}=this
578if(!this.isZoomable()||i.mainScroll.isShifted())return
579i.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:t,transitionDuration:n}),i.animations.stopAllPan()
580const o=this.currZoomLevel
581r||(e=clamp(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",t,o),this.pan.y=this.calculateZoomToPanOffset("y",t,o),roundPoint(this.pan)
582const s=()=>{this._setResolution(e),this.applyCurrentZoomPan()}
583n?i.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:s,duration:n,easing:i.options.easing}):s()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,t,n){if(0===this.bounds.max[e]-this.bounds.min[e])return this.bounds.center[e]
584t||(t=this.pswp.getViewportCenterPoint()),n||(n=this.zoomLevels.initial)
585const r=this.currZoomLevel/n
586return this.bounds.correctPan(e,(this.pan[e]-t[e])*r+t[e])}panTo(e,t){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",t),this.applyCurrentZoomPan()}isPannable(){return Boolean(this.width)&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return Boolean(this.width)&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),equalizePoints(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,t,n){n/=this.currentResolution||this.zoomLevels.initial,setTransform(this.container,e,t,n)}calculateSize(){const{pswp:e}=this
587equalizePoints(this.panAreaSize,getPanAreaSize(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial)
588return toTransformString(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}const a=.35,l=.6,c=.4,u=.5
589class DragHandler{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&equalizePoints(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:t,dragAxis:n}=this.gestures,{currSlide:r}=this.pswp
590if("y"===n&&this.pswp.options.closeOnVerticalDrag&&r&&r.currZoomLevel<=r.zoomLevels.fit&&!this.gestures.isMultitouch){const n=r.pan.y+(e.y-t.y)
591if(!this.pswp.dispatch("verticalDrag",{panY:n}).defaultPrevented){this._setPanWithFriction("y",n,l)
592const e=1-Math.abs(this._getVerticalDragRatio(r.pan.y))
593this.pswp.applyBgOpacity(e),r.applyCurrentZoomPan()}}else{this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),r&&(roundPoint(r.pan),r.applyCurrentZoomPan()))}}end(){const{velocity:e}=this.gestures,{mainScroll:t,currSlide:n}=this.pswp
594let r=0
595if(this.pswp.animations.stopAll(),t.isShifted()){const n=(t.x-t.getCurrSlideX())/this.pswp.viewportSize.x
596e.x<-u&&n<0||e.x<.1&&n<-.5?(r=1,e.x=Math.min(e.x,0)):(e.x>u&&n>0||e.x>-.1&&n>.5)&&(r=-1,e.x=Math.max(e.x,0)),t.moveIndexBy(r,!0,e.x)}n&&n.currZoomLevel>n.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:t}=this.gestures,{currSlide:n}=this.pswp
597if(!n)return
598const{pan:r,bounds:i}=n,o=r[e],s=this.pswp.bgOpacity<1&&"y"===e,a=o+function project(e,t){return e*t/(1-t)}(t[e],.995)
599if(s){const e=this._getVerticalDragRatio(o),t=this._getVerticalDragRatio(a)
600if(e<0&&t<-c||e>0&&t>c)return void this.pswp.close()}const l=i.correctPan(e,a)
601if(o===l)return
602const u=l===a?1:.82,p=this.pswp.bgOpacity,d=l-o
603this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:o,end:l,velocity:t[e],dampingRatio:u,onUpdate:t=>{if(s&&this.pswp.bgOpacity<1){const e=1-(l-t)/d
604this.pswp.applyBgOpacity(clamp(p+(1-p)*e,0,1))}r[e]=Math.floor(t),n.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:t,dragAxis:n,prevP1:r,isMultitouch:i}=this.gestures,{currSlide:o,mainScroll:s}=this.pswp,a=t[e]-r[e],l=s.x+a
605if(!a||!o)return!1
606if("x"===e&&!o.isPannable()&&!i)return s.moveTo(l,!0),!0
607const{bounds:c}=o,u=o.pan[e]+a
608if(this.pswp.options.allowPanToNext&&"x"===n&&"x"===e&&!i){const t=s.getCurrSlideX(),n=s.x-t,r=a>0,i=!r
609if(u>c.min[e]&&r){if(c.min[e]<=this.startPan[e])return s.moveTo(l,!0),!0
610this._setPanWithFriction(e,u)}else if(u<c.max[e]&&i){if(this.startPan[e]<=c.max[e])return s.moveTo(l,!0),!0
611this._setPanWithFriction(e,u)}else if(0!==n){if(n>0)return s.moveTo(Math.max(l,t),!0),!0
612if(n<0)return s.moveTo(Math.min(l,t),!0),!0}else this._setPanWithFriction(e,u)}else"y"===e&&(s.isShifted()||c.min.y===c.max.y)||this._setPanWithFriction(e,u)
613return!1}_getVerticalDragRatio(e){var t,n
614return(e-(null!==(t=null===(n=this.pswp.currSlide)||void 0===n?void 0:n.bounds.center.y)&&void 0!==t?t:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,t,n){const{currSlide:r}=this.pswp
615if(!r)return
616const{pan:i,bounds:o}=r
617if(o.correctPan(e,t)!==t||n){const r=Math.round(t-i[e])
618i[e]+=r*(n||a)}else i[e]=t}}const p=.05,d=.15
619function getZoomPointsCenter(e,t,n){return e.x=(t.x+n.x)/2,e.y=(t.y+n.y)/2,e}class ZoomHandler{constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:e}=this.gestures.pswp
620e&&(this._startZoomLevel=e.currZoomLevel,equalizePoints(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:t,p2:n,startP2:r,pswp:i}=this.gestures,{currSlide:o}=i
621if(!o)return
622const s=o.zoomLevels.min,a=o.zoomLevels.max
623if(!o.isZoomable()||i.mainScroll.isShifted())return
624getZoomPointsCenter(this._startZoomPoint,t,r),getZoomPointsCenter(this._zoomPoint,e,n)
625let l=1/getDistanceBetween(t,r)*getDistanceBetween(e,n)*this._startZoomLevel
626if(l>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),l<s)if(i.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=o.zoomLevels.initial){const e=1-(s-l)/(s/1.2)
627i.dispatch("pinchClose",{bgOpacity:e}).defaultPrevented||i.applyBgOpacity(e)}else l=s-(s-l)*d
628else l>a&&(l=a+(l-a)*p)
629o.pan.x=this._calculatePanForZoomLevel("x",l),o.pan.y=this._calculatePanForZoomLevel("y",l),o.setZoomLevel(l),o.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:t}=e;(!t||t.currZoomLevel<t.zoomLevels.initial)&&!this._wasOverFitZoomLevel&&e.options.pinchToClose?e.close():this.correctZoomPan()}_calculatePanForZoomLevel(e,t){const n=t/this._startZoomLevel
630return this._zoomPoint[e]-(this._startZoomPoint[e]-this._startPan[e])*n}
630correctZoomPan(e){const{pswp:t}=this.gestures,{currSlide:n}=t
631if(null==n||!n.isZoomable())return
6320===this._zoomPoint.x&&(e=!0)
633const r=n.currZoomLevel
634let i,o=!0
635r<n.zoomLevels.initial?i=n.zoomLevels.initial:r>n.zoomLevels.max?i=n.zoomLevels.max:(o=!1,i=r)
636const s=t.bgOpacity,a=t.bgOpacity<1,l=equalizePoints({x:0,y:0},n.pan)
637let c=equalizePoints({x:0,y:0},l)
638e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=r,equalizePoints(this._startPan,l)),o&&(c={x:this._calculatePanForZoomLevel("x",i),y:this._calculatePanForZoomLevel("y",i)}),n.setZoomLevel(i),c={x:n.bounds.correctPan("x",c.x),y:n.bounds.correctPan("y",c.y)},n.setZoomLevel(r)
639const u=!pointsEqual(c,l)
640if(!u&&!o&&!a)return n._setResolution(i),void n.applyCurrentZoomPan()
641t.animations.stopAllPan(),t.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:e=>{if(e/=1e3,u||o){if(u&&(n.pan.x=l.x+(c.x-l.x)*e,n.pan.y=l.y+(c.y-l.y)*e),o){const t=r+(i-r)*e
642n.setZoomLevel(t)}n.applyCurrentZoomPan()}a&&t.bgOpacity<1&&t.applyBgOpacity(clamp(s+(1-s)*e,0,1))},onComplete:()=>{n._setResolution(i),n.applyCurrentZoomPan()}})}}function didTapOnMainContent(e){return!!e.target.closest(".pswp__container")}class TapHandler{constructor(e){this.gestures=e}click(e,t){const n=t.target.classList,r=n.contains("pswp__img"),i=n.contains("pswp__item")||n.contains("pswp__zoom-wrap")
643r?this._doClickOrTapAction("imageClick",e,t):i&&this._doClickOrTapAction("bgClick",e,t)}tap(e,t){didTapOnMainContent(t)&&this._doClickOrTapAction("tap",e,t)}doubleTap(e,t){didTapOnMainContent(t)&&this._doClickOrTapAction("doubleTap",e,t)}_doClickOrTapAction(e,t,n){var r
644const{pswp:i}=this.gestures,{currSlide:o}=i,s=e+"Action",a=i.options[s]
645if(!i.dispatch(s,{point:t,originalEvent:n}).defaultPrevented)if("function"!=typeof a)switch(a){case"close":case"next":i[a]()
646break
647case"zoom":null==o||o.toggleZoom(t)
648break
649case"zoom-or-close":null!=o&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(t):i.options.clickToCloseNonZoomable&&i.close()
650break
651case"toggle-controls":null===(r=this.gestures.pswp.element)||void 0===r||r.classList.toggle("pswp--ui-visible")}else a.call(i,t,n)}}const h=10,f=300,y=25
652class Gestures{constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new DragHandler(this),this.zoomLevels=new ZoomHandler(this),this.tapHandler=new TapHandler(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=(()=>{}),e.scrollWrap.ontouchend=(()=>{}))):this._bindEvents("mouse","down","up")})}_bindEvents(e,t,n,r){const{pswp:i}=this,{events:o}=i,s=r?e+r:""
653o.add(i.scrollWrap,e+t,this.onPointerDown.bind(this)),o.add(window,e+"move",this.onPointerMove.bind(this)),o.add(window,e+n,this.onPointerUp.bind(this)),s&&o.add(i.scrollWrap,s,this.onPointerUp.bind(this))}onPointerDown(e){const t="mousedown"===e.type||"mouse"===e.pointerType
654if(t&&e.button>0)return
655const{pswp:n}=this
656n.opener.isOpen?n.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(t&&(n.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),n.animations.stopAll(),this._updatePoints(e,"down"),1===this._numActivePoints&&(this.dragAxis=null,equalizePoints(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):e.preventDefault()}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented||(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,equalizePoints(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented||(0===this._numActivePoints&&(this._rafStopLoop(),this.isDragging?this._finishDrag():this.isZooming||this.isMultitouch||this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?pointsEqual(this.p1,this.prevP1)||this.drag.change():pointsEqual(this.p1,this.prevP1)&&pointsEqual(this.p2,this.prevP2)||this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const t=Date.now(),n=t-this._intervalTime
657n<50&&!e||(this.velocity.x=this._getVelocity("x",n),this.velocity.y=this._getVelocity("y",n),this._intervalTime=t,equalizePoints(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:t}=this.pswp
658if(t.isShifted())return void t.moveIndexBy(0,!0)
659if(e.type.indexOf("cancel")>0)return
660if("mouseup"===e.type||"mouse"===e.pointerType)return void this.tapHandler.click(this.startP1,e)
661const n=this.pswp.options.doubleTapAction?f:0
662this._tapTimer?(this._clearTapTimer(),getDistanceBetween(this._lastStartP1,this.startP1)<y&&this.tapHandler.doubleTap(this.startP1,e)):(equalizePoints(this._lastStartP1,this.startP1),this._tapTimer=setTimeout(()=>{this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},n))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,t){const n=this.p1[e]-this._intervalP1[e]
663return Math.abs(n)>1&&t>5?n/t:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,t){this.pswp.applyFilters("preventPointerEvent",!0,e,t)&&e.preventDefault()}_updatePoints(e,t){if(this._pointerEventEnabled){const n=e,r=this._ongoingPointers.findIndex(e=>e.id===n.pointerId)
664"up"===t&&r>-1?this._ongoingPointers.splice(r,1):"down"===t&&-1===r?this._ongoingPointers.push(this._convertEventPosToPoint(n,{x:0,y:0})):r>-1&&this._convertEventPosToPoint(n,this._ongoingPointers[r]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&equalizePoints(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&equalizePoints(this.p2,this._ongoingPointers[1])}else{const n=e
665this._numActivePoints=0,n.type.indexOf("touch")>-1?n.touches&&n.touches.length>0&&(this._convertEventPosToPoint(n.touches[0],this.p1),this._numActivePoints++,n.touches.length>1&&(this._convertEventPosToPoint(n.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),"up"===t?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){equalizePoints(this.prevP1,this.p1),equalizePoints(this.prevP2,this.p2)}_updateStartPoints(){equalizePoints(this.startP1,this.p1),equalizePoints(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x"
666else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y)
667if(0!==e){const t=e>0?"x":"y"
668Math.abs(this.p1[t]-this.startP1[t])>=h&&(this.dragAxis=t)}}}_convertEventPosToPoint(e,t){return t.x=e.pageX-this.pswp.offset.x,t.y=e.pageY-this.pswp.offset.y,"pointerId"in e?t.id=e.pointerId:void 0!==e.identifier&&(t.id=e.identifier),t}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}const m=.35
669class MainScroll{constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){const{pswp:t}=this,n=Math.round(t.viewportSize.x+t.viewportSize.x*t.options.spacing),r=n!==this.slideWidth
670r&&(this.slideWidth=n,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEac
670h((t,n)=>{r&&setTransform(t.el,(n+this._containerShiftIndex)*this.slideWidth),e&&t.slide&&t.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[]
671for(let e=0;e<3;e++){const t=createElement("pswp__item","div",this.pswp.container)
672t.setAttribute("role","group"),t.setAttribute("aria-roledescription","slide"),t.setAttribute("aria-hidden","true"),t.style.display=1===e?"block":"none",this.itemHolders.push({el:t})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,t,n){const{pswp:r}=this
673let i=r.potentialIndex+e
674const o=r.getNumItems()
675if(r.canLoop()){i=r.getLoopedIndex(i)
676const t=(e+o)%o
677e=t<=o/2?t:t-o}else i<0?i=0:i>=o&&(i=o-1),e=i-r.potentialIndex
678r.potentialIndex=i,this._currPositionIndex-=e,r.animations.stopMainScroll()
679const s=this.getCurrSlideX()
680if(t){r.animations.startSpring({isMainScroll:!0,start:this.x,end:s,velocity:n||0,naturalFrequency:30,dampingRatio:1,onUpdate:e=>{this.moveTo(e)},onComplete:()=>{this.updateCurrItem(),r.appendHeavy()}})
681let e=r.potentialIndex-r.currIndex
682if(r.canLoop()){const t=(e+o)%o
683e=t<=o/2?t:t-o}Math.abs(e)>1&&this.updateCurrItem()}else this.moveTo(s),this.updateCurrItem()
684return Boolean(e)}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e
685const{pswp:t}=this,n=this._prevPositionIndex-this._currPositionIndex
686if(!n)return
687this._prevPositionIndex=this._currPositionIndex,t.currIndex=t.potentialIndex
688let r,i=Math.abs(n)
689i>=3&&(this._containerShiftIndex+=n+(n>0?-3:3),i=3,this.itemHolders.forEach(e=>{var t
690null===(t=e.slide)||void 0===t||t.destroy(),e.slide=void 0}))
691for(let e=0;e<i;e++)n>0?(r=this.itemHolders.shift())&&(this.itemHolders[2]=r,this._containerShiftIndex++,setTransform(r.el,(this._containerShiftIndex+2)*this.slideWidth),t.setContent(r,t.currIndex-i+e+2)):(r=this.itemHolders.pop())&&(this.itemHolders.unshift(r),this._containerShiftIndex--,setTransform(r.el,this._containerShiftIndex*this.slideWidth),t.setContent(r,t.currIndex+i-e-2))
692Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),t.animations.stopAllPan(),this.itemHolders.forEach((e,t)=>{e.slide&&e.slide.setIsActive(1===t)}),t.currSlide=null===(e=this.itemHolders[1])||void 0===e?void 0:e.slide,t.contentLoader.updateLazy(n),t.currSlide&&t.currSlide.applyCurrentZoomPan(),t.dispatch("change")}moveTo(e,t){if(!this.pswp.canLoop()&&t){let t=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth
693t+=this.pswp.currIndex
694const n=Math.round(e-this.x);(t<0&&n>0||t>=this.pswp.getNumItems()-1&&n<0)&&(e=this.x+n*m)}this.x=e,this.pswp.container&&setTransform(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:null!=t&&t})}}const _={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},v=(e,t)=>t?e:_[e]
695class Keyboard{constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))})
696const t=document.activeElement
697e.on("destroy",()=>
697{e.options.returnFocus&&t&&this._wasFocused&&t.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:t}=this
698if(t.dispatch("keydown",{originalEvent:e}).defaultPrevented)return
699if(function specialKeyUsed(e){return"button"in e&&1===e.button||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey}(e))return
700let n,r,i=!1
701const o="key"in e
702switch(o?e.key:e.keyCode){case v("Escape",o):t.options.escKey&&(n="close")
703break
704case v("z",o):n="toggleZoom"
705break
706case v("ArrowLeft",o):r="x"
707break
708case v("ArrowUp",o):r="y"
709break
710case v("ArrowRight",o):r="x",i=!0
711break
712case v("ArrowDown",o):i=!0,r="y"
713break
714case v("Tab",o):this._focusRoot()}if(r){e.preventDefault()
715const{currSlide:o}=t
716t.options.arrowKeys&&"x"===r&&t.getNumItems()>1?n=i?"next":"prev":o&&o.currZoomLevel>o.zoomLevels.fit&&(o.pan[r]+=i?-80:80,o.panTo(o.pan.x,o.pan.y))}n&&(e.preventDefault(),t[n]())}_onFocusIn(e){const{template:t}=this.pswp
717t&&document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}}const g="cubic-bezier(.4,0,.22,1)"
718class CSSAnimation{constructor(e){var t
719this.props=e
720const{target:n,onComplete:r,transform:i,onFinish:o=(()=>{}),duration:s=333,easing:a=g}=e
721this.onFinish=o
722const l=i?"transform":"opacity",c=null!==(t=e[l])&&void 0!==t?t:""
723this._target=n,this._onComplete=r,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{setTransitionStyle(n,l,s,a),this._helperTimeout=setTimeout(()=>{n.addEventListener("transitionend",this._onTransitionEnd,!1),n.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},s+500),n.style[l]=c},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),function removeTransitionStyle(e){setTransitionStyle(e)}(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}const b=12,P=.75
724class SpringEaser{constructor(e,t,n){this.velocity=1e3*e,this._dampingRatio=t||P,this._naturalFrequency=n||b,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,t){let n,r=0
725t/=1e3
726const i=Math.E**(-this._dampingRatio*this._naturalFrequency*t)
727if(1===this._dampingRatio)r=(e+(n=this.velocity+this._naturalFrequency*e)*t)*i,this.velocity=r*-this._naturalFrequency+n*i
728else if(this._dampingRatio<1){n=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity)
729const o=Math.cos(this._dampedFrequency*t),s=Math.sin(this._dampedFrequency*t)
730r=i*(e*o+n*s),this.velocity=r*-this._naturalFrequency*this._dampingRatio+i*(-this._dampedFrequency*e*s+this._dampedFrequency*n*o)}return r}}class SpringAnimation{constructor(e){this.props=e,this._raf=0
731const{start:t,end:n,velocity:r,onUpdate:i,onComplete:o,onFinish:s=(()=>{}),dampingRatio:a,naturalFrequency:l}=e
732this.onFinish=s
733const c=new SpringEaser(r,a,l)
734let u=Date.now(),p=t-n
735const d=()=>{this._raf&&(p=c.easeFrame(p,Date.now()-u),Math.abs(p)<1&&Math.abs(c.velocity)<50?(i(n),o&&o(),this.onFinish()):(u=Date.now(),i(p+n),this._raf=requestAnimationFrame(d)))}
736this._raf=requestAnimationFrame(d)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class Animations{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,t){const n=t?new SpringAnimation(e):new CSSAnimation(e)
737return this.activeAnimations.push(n),n.onFinish=(()=>this.stop(n)),n}stop(e){e.destroy()
738const t=this.activeAnimations.indexOf(e)
739t>-1&&this.activeAnimations.splice(t,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>!e.props.isPan||(e.destroy(),!1))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>!e.props.isMainScroll||(e.destroy(),!1))}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}}class ScrollWheel{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault()
740const{currSlide:t}=this.pswp
741let{deltaX:n,deltaY:r}=e
742if(t&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(t.isZoomable()){let n=-r
7431===e.deltaMode?n*=.05:n*=e.deltaMode?1:.002,n=2**n
744const i=t.currZoomLevel*n
745t.zoomTo(i,{x:e.clientX,y:e.clientY})}}else t.isPannable()&&(1===e.deltaMode&&(n*=18,r*=18),t.panTo(t.pan.x-n,t.pan.y-r))}}class UIElement{constructor(e,t){var n
746const r=t.name||t.className
747let i=t.html
748if(!1===e.options[r])return
749"string"==typeof e.options[r+"SVG"]&&(i=e.options[r+"SVG"]),e.dispatch("uiElementCreate",{data:t})
750let o=""
751t.isButton?(o+="pswp__button ",o+=t.className||`pswp__button--${t.name}`):o+=t.className||`pswp__${t.name}`
752let s=t.isButton?t.tagName||"button":t.tagName||"div"
753const a=createElement(o,s=s.toLowerCase())
754if(t.isButton){"button"===s&&(a.type="button")
755let{title:n}=t
756const{ariaLabel:i}=t
757"string"==typeof e.options[r+"Title"]&&(n=e.options[r+"Title"]),n&&(a.title=n)
758const o=i||n
759o&&a.setAttribute("aria-label",o)}a.innerHTML=function addElementHTML(e){if("string"==typeof e)return e
760if(!e||!e.isCustomSVG)return""
761const t=e
762let n='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">'
763return n=n.split("%d").join(t.size||32),t.outlineID&&(n+='<use class="pswp__icn-shadow" xlink:href="#'+t.outlineID+'"/>'),n+=t.inner,n+="</svg>"}(i),t.onInit&&t.onInit(a,e),t.onClick&&(a.onclick=(n=>{"string"==typeof t.onClick?e[t.onClick]():"function"==typeof t.onClick&&t.onClick(n,a,e)}))
764const l=t.appendTo||"bar"
765let c=e.element
766"bar"===l?(e.topBar||(e.topBar=createElement("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),c=e.topBar):(a.classList.add("pswp__hide-on-close"),"wrapper"===l&&(c=e.scrollWrap)),null===(n=c)||void 0===n||n.appendChild(e.applyFilters("uiElement",a,t))}}function initArrowButton(e,t,n){e.classList.add("pswp__button--arrow"),e.setAttribute("aria-controls","pswp__items"),t.on("change",()=>{t.options.loop||(e.disabled=n?!(t.currIndex<t.getNumItems()-1):!(t.currIndex>0))})}const w={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:initArrowButton},O={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(e,t)=>{initArrowButton(e,t,!0)}},S={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},T={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},I={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(e,t)=>{let n,r=null
767const i=t=>{n!==t&&(n=t,((t,n)=>{e.classList.toggle("pswp__preloader--"+t,n)})("active",t))},o=()=>{var e
768if(null===(e=t.currSlide)||void 0===e||!e.content.isLoading())return i(!1),void(r&&(clearTimeout(r),r=null))
769r||(r=setTimeout(()=>{var e
770i(Boolean(null===(e=t.currSlide)||void 0===e?void 0:e.content.isLoading())),r=null},t.options.preloaderDelay))}
771t.on("change",o),t.on("loadComplete",e=>{t.currSlide===e.slide&&o()}),t.ui&&(t.ui.updatePreloaderVisibility=o)}},k={name:"counter",order:5,onInit:(e,t)=>{t.on("change",()=>{e.innerText=t.currIndex+1+t.options.indexIndicatorSep+t.getNumItems()})}}
772function setZoomedIn(e,t){e.classList.toggle("pswp--zoomed-in",t)}class UI{constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=(()=>{}),this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this
773this.isRegistered=!1,this.uiElementsData=[S,w,O,T,I,k],e.dispatch("uiRegister"),this.uiElementsData.sort((e,t)=>
773(e.order||0)-(t.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(e=>{this.registerElement(e)}),e.on("change",()=>{var t
774null===(t=e.element)||void 0===t||t.classList.toggle("pswp--one-slide",1===e.getNumItems())}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new UIElement(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:t,options:n}=this.pswp
775if(this.pswp.opener.isClosing||!e||!t)return
776let{currZoomLevel:r}=t
777if(this.pswp.opener.isOpen||(r=t.zoomLevels.initial),r===this._lastUpdatedZoomLevel)return
778this._lastUpdatedZoomLevel=r
779const i=t.zoomLevels.initial-t.zoomLevels.secondary
780if(Math.abs(i)<.01||!t.isZoomable())return setZoomedIn(e,!1),void e.classList.remove("pswp--zoom-allowed")
781e.classList.add("pswp--zoom-allowed"),setZoomedIn(e,(r===t.zoomLevels.initial?t.zoomLevels.secondary:t.zoomLevels.initial)<=r),"zoom"!==n.imageClickAction&&"zoom-or-close"!==n.imageClickAction||e.classList.add("pswp--click-to-zoom")}}class PhotoSwipeEvent{constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class Eventable{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,n=100){var r,i,o
782this._filters[e]||(this._filters[e]=[]),null===(r=this._filters[e])||void 0===r||r.push({fn:t,priority:n}),null===(i=this._filters[e])||void 0===i||i.sort((e,t)=>e.priority-t.priority),null===(o=this.pswp)||void 0===o||o.addFilter(e,t,n)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(e=>e.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var n
783return null===(n=this._filters[e])||void 0===n||n.forEach(e=>{t[0]=e.fn.apply(this,t)}),t[0]}on(e,t){var n,r
784this._listeners[e]||(this._listeners[e]=[]),null===(n=this._listeners[e])||void 0===n||n.push(t),null===(r=this.pswp)||void 0===r||r.on(e,t)}off(e,t){var n
785this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(e=>t!==e)),null===(n=this.pswp)||void 0===n||n.off(e,t)}dispatch(e,t){var n
786if(this.pswp)return this.pswp.dispatch(e,t)
787const r=new PhotoSwipeEvent(e,t)
788return null===(n=this._listeners[e])||void 0===n||n.forEach(e=>{e.call(this,r)}),r}}class Placeholder{constructor(e,t){if(this.element=createElement("pswp__img pswp__img--placeholder",e?"img":"div",t),e){const t=this.element
789t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(setWidthHeight(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=toTransformString(0,0,e/250)):setWidthHeight(this.element,e,t))}destroy(){var e
790null!==(e=this.element)&&void 0!==e&&e.parentNode&&this.element.remove(),this.element=null}}class Content{constructor(e,t,n){this.instance=t,this.data=e,this.index=n,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=i.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,t){if(this.slide&&this.usePlaceholder())if(this.placeholder){const e=this.placeholder.element
791e&&!e.parentElement&&this.slide.container.prepend(e)}else{const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this)
792this.placeholder=new Placeholder(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=createElement("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=createElement("pswp__content","div"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,n
793if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return
794const r=this.element
795this.updateSrcsetSizes(),this.data.srcset&&(r.srcset=this.data.srcset),r.src=null!==(t=this.data.src)&&void 0!==t?t:"",r.alt=null!==(n=this.data.alt)&&void 0!==n?n:"",this.state=i.LOADING,r.complete?this.onLoaded():(r.onload=(()=>{this.onLoaded()}),r.onerror=(()=>{this.onError()}))}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=i.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==i.LOADED&&this.state!==i.ERROR||this.removePlaceholder())}onError(){this.state=i.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,
795content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===i.LOADING,this)}isError(){return this.state===i.ERROR}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(setWidthHeight(this.element,e,t),this.isImageContent()&&!this.isError()))){const n=!this.displayedImageWidth&&e
796this.displayedImageWidth=e,this.displayedImageHeight=t,n?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==i.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return
797const e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,t
798let n=createElement("pswp__error-msg","div")
799n.innerText=null!==(e=null===(t=this.instance.options)||void 0===t?void 0:t.errorMsg)&&void 0!==e?e:"",n=this.instance.applyFilters("contentErrorElement",n,this),this.element=createElement("pswp__content pswp__error-msg-container","div"),this.element.appendChild(n),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return
800if(this.isAttached=!0,this.state===i.ERROR)return void this.displayError()
801if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return
802const e="decode"in this.element
803this.isImageContent()?e&&this.slide&&(!this.slide.isActive||isSafari())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!isSafari()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==i.LOADED&&this.state!==i.ERROR||this.removePlaceholder()))}}const C=5
804function lazyLoadData(e,t,n){const r=t.createContentFromData(e,n)
805let i
806const{options:o}=t
807if(o){let s
808i=new ZoomLevel(o,e,-1)
809const a=getPanAreaSize(o,s=t.pswp?t.pswp.viewportSize:getViewportSize(o,t),e,n)
810i.update(r.width,r.height,a)}return r.lazyLoad(),i&&r.setDisplayedSize(Math.ceil(r.width*i.initial),Math.ceil(r.height*i.initial)),r}class ContentLoader{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,C),this._cachedItems=[]}updateLazy(e){const{pswp:t}=this
811if(t.dispatch("lazyLoad").defaultPrevented)return
812const{preload:n}=t.options,r=void 0===e||e>=0
813let i
814for(i=0;i<=n[1];i++)this.loadSlideByIndex(t.currIndex+(r?i:-i))
815for(i=1;i<=n[0];i++)this.loadSlideByIndex(t.currIndex+(r?-i:i))}loadSlideByIndex(e){const t=this.pswp.getLoopedIndex(e)
816let n=this.getContentByIndex(t)
817n||(n=function lazyLoadSlide(e,t){const n=t.getItemData(e)
818if(!t.dispatch("lazyLoadSlide",{index:e,itemData:n}).defaultPrevented)return lazyLoadData(n,t,e)}(t,this.pswp))&&this.addToCache(n)}getContentBySlide(e){let t=this.getContentByIndex(e.index)
819return t||(t=this.pswp.createContentFromData(e.data,e.index),this.addToCache(t)),t.setSlide(e),t}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const e=this._cachedItems.findIndex(e=>!e.isAttached&&!e.hasSlide)
820if(-1!==e){this._cachedItems.splice(e,1)[0].destroy()}}}removeByIndex(e){const t=this._cachedItems.findIndex(t=>t.index===e);-1!==t&&this._cachedItems.splice(t,1)}getContentByIndex(e){return this._cachedItems.find(t=>t.index===e)}
820destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}}class PhotoSwipeBase extends Eventable{getNumItems(){var e
821let t=0
822const n=null===(e=this.options)||void 0===e?void 0:e.dataSource
823n&&"length"in n?t=n.length:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),n.items&&(t=n.items.length))
824const r=this.dispatch("numItems",{dataSource:n,numItems:t})
825return this.applyFilters("numItems",r.numItems,n)}createContentFromData(e,t){return new Content(e,this,t)}getItemData(e){var t
826const n=null===(t=this.options)||void 0===t?void 0:t.dataSource
827let r={}
828Array.isArray(n)?r=n[e]:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),r=n.items[e])
829let i=r
830i instanceof Element&&(i=this._domElementToItemData(i))
831const o=this.dispatch("itemData",{itemData:i||{},index:e})
832return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var t,n
833return null!==(t=this.options)&&void 0!==t&&t.children||null!==(n=this.options)&&void 0!==n&&n.childSelector?function getElementsFromOption(e,t,n=document){let r=[]
834if(e instanceof Element)r=[e]
835else if(e instanceof NodeList||Array.isArray(e))r=Array.from(e)
836else{const i="string"==typeof e?e:t
837i&&(r=Array.from(n.querySelectorAll(i)))}return r}(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},n="A"===e.tagName?e:e.querySelector("a")
838if(n){t.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(t.srcset=n.dataset.pswpSrcset),t.width=n.dataset.pswpWidth?parseInt(n.dataset.pswpWidth,10):0,t.height=n.dataset.pswpHeight?parseInt(n.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,n.dataset.pswpType&&(t.type=n.dataset.pswpType)
839const i=e.querySelector("img")
840var r
841if(i)t.msrc=i.currentSrc||i.src,t.alt=null!==(r=i.getAttribute("alt"))&&void 0!==r?r:"";(n.dataset.pswpCropped||n.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,n)}lazyLoadData(e,t){return lazyLoadData(e,this,t)}}const E=.003
842class Opener{constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return
843const e=this.pswp.currSlide
844this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide
845this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,t=this.pswp.currSlide,{options:n}=e
846var r,i;("fade"===n.showHideAnimationType?(n.showHideOpacity=!0,this._thumbBounds=void 0):"none"===n.showHideAnimationType?(n.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=null==t?void 0:t.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=Boolean(this._duration&&this._duration>50),this._animateZoom=Boolean(this._thumbBounds)&&(null==t?void 0:t.content.usePlaceholder())&&(!this.isClosing||!e.mainScroll.isShifted()),this._animateZoom)?this._animateRootOpacity=null!==(r=n.showHideOpacity)&&void 0!==r&&r:(this._animateRootOpacity=!0,this.isOpening&&t&&(t.zoomAndPanToInitial(),t.applyCurrentZoomPan()))
847if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>E,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(e.element&&(e.element.style.opacity=String(E)),e.applyBgOpacity(1)))
848this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=null===(i=this.pswp.currSlide)||void 0===i?void 0:i.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")):this._croppedZoom=!1
849this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(E)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(E)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(E)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&0!==e.mainScroll.x&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise(e=>{let t=!1,n=!0;(function decodeImage(e){return"decode"in e?e.decode().catch(()=>{}):e.complete?Promise.resolve(e):new Promise((t,n)=>{e.onload=(()=>t(e)),e.onerror=n})})(this._placeholder).finally(()=>{t=!0,n||e(!0)}),setTimeout(()=>{n=!1,t&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,t
850null===(e=this.pswp.element)||void 0===e||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),null===(t=this.pswp.element)||void 0===t||t.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this
851if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy()
852else if(this.isOpen){var t
853this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),null===(t=e.currSlide)||void 0===t||t.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:e}=this
854this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,
vendor: 4,457 bytes, lines 854-866
8540,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this
855this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return
856const{pswp:t}=this,{innerRect:n}=this._thumbBounds,{currSlide:r,viewportSize:i}=t
857if(this._croppedZoom&&n&&this._cropContainer1&&this._cropContainer2){const t=-i.x+(this._thumbBounds.x-n.x)+n.w,r=-i.y+(this._thumbBounds.y-n.y)+n.h,o=i.x-n.w,s=i.y-n.h
858e?(this._animateTo(this._cropContainer1,"transform",toTransformString(t,r)),this._animateTo(this._cropContainer2,"transform",toTransformString(o,s))):(setTransform(this._cropContainer1,t,r),setTransform(this._cropContainer2,o,s))}r&&(equalizePoints(r.pan,n||this._thumbBounds),r.currZoomLevel=this._thumbBounds.w/r.width,e?this._animateTo(r.container,"transform",r.getCurrentTransform()):r.applyCurrentZoomPan())}_animateTo(e,t,n){if(!this._duration)return void(e.style[t]=n)
859const{animations:r}=this.pswp,i={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{r.activeAnimations.length||this._onAnimationComplete()},target:e}
860i[t]=n,r.startTransition(i)}}const j={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"}
861class PhotoSwipe extends PhotoSwipeBase{constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new DOMEvents,this.animations=new Animations,this.mainScroll=new MainScroll(this),this.gestures=new Gestures(this),this.opener=new Opener(this),this.keyboard=new Keyboard(this),this.contentLoader=new ContentLoader(this)}init(){if(this.isOpen||this.isDestroying)return!1
862this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure()
863let e="pswp--open"
864return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new ScrollWheel(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:e}=this.mainScroll
865e[0]&&(e[0].el.style.display="block",this.setContent(e[0],this.currIndex-1)),e[2]&&(e[2].el.style.display="block",this.setContent(e[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const t=this.getNumItems()
866return this.options.loop&&(e>t-1&&(e-=t),e<0&&(e+=t)),clamp(e,0,t-1)}
866appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var t
867null===(t=e.slide)||void 0===t||t.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var t
868null===(t=this.currSlide)||void 0===t||t.zoomTo(...e)}toggleZoom(){var e
869null===(e=this.currSlide)||void 0===e||e.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e
870if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close()
871this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),null===(e=this.element)||void 0===e||e.remove(),this.mainScroll.itemHolders.forEach(e=>{var t
872null===(t=e.slide)||void 0===t||t.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((t,n)=>{var r,i
873let o=(null!==(r=null===(i=this.currSlide)||void 0===i?void 0:i.index)&&void 0!==r?r:0)-1+n
874var s;(this.canLoop()&&(o=this.getLoopedIndex(o)),o===e)&&(this.setContent(t,e,!0),1===n&&(this.currSlide=t.slide,null===(s=t.slide)||void 0===s||s.setIsActive(!0)))}),this.dispatch("change")}setContent(e,t,n){if(this.canLoop()&&(t=this.getLoopedIndex(t)),e.slide){if(e.slide.index===t&&!n)return
875e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(t<0||t>=this.getNumItems()))return
876const r=this.getItemData(t)
877e.slide=new Slide(r,t,this),t===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return
878const t=getViewportSize(this.options,this)
879!e&&pointsEqual(t,this._prevViewportSize)||(equalizePoints(this._prevViewportSize,t),this.dispatch("beforeResize"),equalizePoints(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){var e
880this.hasMouse||(this.hasMouse=!0,null===(e=this.element)||void 0===e||e.classList.add("pswp--has_mouse"))}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,t){this.offset.x=e,this.offset.y=t,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=createElement("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=createElement("pswp__bg","div",this.element),this.scrollWrap=createElement("pswp__scroll-wrap","section",this.element),this.container=createElement("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new UI(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function getThumbBounds(e,t,n){const r=n.dispatch("thumbBounds",{index:e,itemData:t,instance:n})
881if(r.thumbBounds)return r.thumbBounds
882const{element:i}=t
883let o,s
884if(i&&!1!==n.options.thumbSelector){const e=n.options.thumbSelector||"img"
885s=i.matches(e)?i:i.querySelector(e)}return(s=n.applyFilters("thumbEl",s,t,e))&&(o=t.thumbCropped?function getCroppedBoundsByElement(e,t,n){const r=e.getBoundingClientRect(),i=r.width/t,o=r.height/n,s=i>o?i:o,a=(r.width-t*s)/2,l=(r.height-n*s)/2,c={x:r.left+a,y:r.top+l,w:t*s}
886return c.innerRect={w:r.width,h:r.height,x:a,y:l},c}(s,t.width||t.w||0,t.height||t.h||0):function getBoundsByElement(e){const t=e.getBoundingClientRect()
887return{x:t.left,y:t.top,w:t.width}}(s)),n.applyFilters("thumbBounds",o,t,e)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...j,...e}}}var R=n("q1tI"),x=n.n(R),z=n("i8i4"),L=n("17x9"),D=n.n(L)
888var A=function objectToHash(e){return Object.entries(e).map(([e,t])=>t?`${e}=${t}`:e).join("&")}
889var M=function hashToObject(e){return e.split("&").reduce((e,t)=>
889{const[n,r]=t.split("=")
890return n&&(e[n]=r),e},{})}
891var W=function getHashWithoutGidAndPid(e){const t=M(e)
892return delete t.gid,delete t.pid,A(t)}
893var q=function getHashValue(){return window.location.hash.substring(1)}
894var Z=function getBaseUrl(){return`${window.location.pathname}${window.location.search}`}
895var N=e=>{const t=M(e)
896return Boolean(t.gid)&&Boolean(t.pid)}
897var U=function getInitialActiveSlideIndex(e,t){return null!==e?e:t?parseInt(t,10)-1:0}
898const B=Object(R.createContext)({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{},close:()=>{},isRefRegistered:()=>!1})
899class PhotoSwipeLightboxStub{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var V=function(e,t){var n={}
900for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r])
901if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0
902for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}
903var F=(e,t)=>{var n
904const{width:r,height:i,original:o,originalSrcset:s,thumbnail:a,cropped:l,content:c,id:u}=e,p=V(e,["width","height","original","originalSrcset","thumbnail","cropped","content","id"])
905return Object.assign(Object.assign(Object.assign({w:r?Number(r):void 0,h:i?Number(i):void 0,src:o,srcset:s,msrc:a,element:null!==(n=null==t?void 0:t.current)&&void 0!==n?n:void 0,thumbCropped:l,content:c},void 0!==c?{type:"html"}:{}),void 0!==u?{pid:u}:{}),p)}
906class NoSourceIdError extends Error{constructor(e=""){super(),this.message=`\n    ${e}\n\n    No \`sourceId\` provided.\n    You should add \`sourceId\` prop to Item component during using \`dataSource\` prop at Gallery component.\n    Also you should add \`sourceId\` property to each item of \`dataSource\` array at Gallery component.\n    Example:\n    <Gallery dataSource={[{sourceId: 1, src: 'a.jpg'}]}>\n        <Item sourceId={1}>{({ ref }) => <div ref={ref}></div>}</Item>\n    </Gallery>\n`}}var H=function(e,t){var n={}
907for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r])
908if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0
909for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}
910var K=(e,t,n,r,i)=>{const o=Array.from(t.current).reduce((e,[t,{sourceId:n}])=>{if(void 0===n)throw new NoSourceIdError("sourceId is missed on Item component")
911return e.set(n,t),e},new Map),{slides:s,index:a}=e.reduce((e,t,i)=>{const{sourceId:s}=t,a=H(t,["sourceId"])
912if(void 0===s)throw new NoSourceIdError("sourceId is missed in dataSource item")
913const l=o.has(s)?o.get(s):void 0
914return(n===l||void 0!==a.id&&String(a.id)===r)&&(e.index=i),e.slides.push(F(a,l)),e},{slides:[],index:i||null})
915return{slides:s,index:a}}
916var $=function sortNodes(e,t){return e===t?0:2&e.compareDocumentPosition(t)?1:-1}
917class NoRefError extends Error{constructor(e=""){super(),this.message=`\n    ${e}\n    No valid \`ref\` provided.\n    You should use \`ref\` from render prop of Item component.\n    Example:\n    <Item>{({ ref }) => <div ref={ref}></div>}</Item>\n`}}var G=e=>e[0].current instanceof Element
918var Y=e=>{if(G(e))return e
919throw new NoRefError}
920var X=(e,t,n,r)=>{const i=Array.from(e.current)
921if("number"==typeof r&&(void 0===i[r]||!G(i[r])))throw new NoRefError(`Failed to open at index ${r}`)
922const{slides:o,index:s}=i.map(Y).sort(([{current:e}],[{current:t}])=>$(e,t)).reduce((e,r,i)=>{const[o,s]=r
923return(t===o||void 0!==s.id&&String(s.id)===n)&&(e.index=i),e.slides.push(F(s,o)),e},{slides:[],index:r||null})
924return{slides:o,index:s}}
925let J=null
926const Q=({children:e,dataSource:t,options:n,plugins:r,uiElements:i,id:o,onBeforeOpen:s,onOpen:a,withCaption:l,withDownloadButton:c})=>{const[u,p]=Object(R.useState)(null),d=Object(R.useRef)(new Map),h=Object(R.useRef)(null),f=Object(R.useCallback)((e,u,h,f)=>{if(J)return
927const{slides:y,index:m}=t?K(t,d,e,u,h):X(d,e,u,h),_=f&&void 0!==f.clientX&&void 0!==f.clientY?{x:f.clientX,y:f.clientY}:null,v=new PhotoSwipe(Object.assign({dataSource:y,index:U(m,u),initialPointerPos:_},n||{}))
928J=v,v.on("contentActivate",({content:e})=>{e.data.content?p(Object(z.createPortal)(e.data.content,e.element)):p(null)}),v.on("close",()=>{p(null)}),c&&v.on("uiRegister",()=>{var e
929null===(e=v.ui)||void 0===e||e.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'<path d="M20.5 14.3 17.1 18V10h-2.2v7.9l-3.4
929-3.6L10 16l6 6.1 6-6.1ZM23 23H9v2h14Z" id="pswp__icn-download"/>',outlineID:"pswp__icn-download"},onInit:(e,t)=>{e.setAttribute("download",""),e.setAttribute("target","_blank"),e.setAttribute("rel","noopener"),v.on("change",()=>{var n
930if(!(null===(n=t.currSlide)||void 0===n?void 0:n.data.src))return
931e.href=t.currSlide.data.src})}})}),l&&v.on("uiRegister",()=>{var e
932null===(e=v.ui)||void 0===e||e.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(e,t)=>{e.style.position="absolute",e.style.bottom="15px",e.style.left="0",e.style.right="0",e.style.padding="0 20px",e.style.color="var(--pswp-icon-color)",e.style.textAlign="center",e.style.fontSize="14px",e.style.lineHeight="1.5",e.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",v.on("change",()=>{if(!t.currSlide)return
933const{caption:n,alt:r}=t.currSlide.data
934e.textContent=n||r||""})}})}),Array.isArray(i)&&i.forEach(e=>{v.on("uiRegister",()=>{var t
935null===(t=v.ui)||void 0===t||t.registerElement(e)})}),"function"==typeof r&&r(new PhotoSwipeLightboxStub(v)),"function"==typeof s&&s(v)
936const g=()=>({gallery:{galleryUID:o}})
937v.on("beforeOpen",()=>{var e
938if(void 0===o)return
939if(!N(q()))return void window.history.pushState(g(),document.title)
940if(Boolean(null===(e=window.history.state)||void 0===e?void 0:e.gallery))return
941const t=Z(),n=q(),r=W(n),i=`${t}${r?`#${r}`:""}`,s=`${t}#${n}`
942window.history.replaceState(window.history.state,document.title,i),window.history.pushState(g(),document.title,s)}),v.on("change",()=>{var e
943if(void 0===o)return
944const t=(null===(e=v.currSlide)||void 0===e?void 0:e.data.pid)||v.currIndex+1,n=`${Z()}#${W(q())}&${A({gid:o,pid:t})}`
945window.history.replaceState(g(),document.title,n)})
946const b=()=>{void 0!==o&&null!==J&&J.close()}
947window.addEventListener("popstate",b),v.on("destroy",()=>{void 0!==o&&(window.removeEventListener("popstate",b),N(q())&&window.history.back()),J=null}),v.init(),"function"==typeof a&&a(v)},[n,r,i,o,s,a,l,c])
948Object(R.useEffect)(()=>()=>{J&&J.close()},[])
949const y=Object(R.useCallback)(()=>{if(void 0===o)return
950if(null!==J)return
951const e=q()
952if(e.length<5)return
953const t=M(e),{pid:n,gid:r}=t
954n&&r&&(0!==d.current.size?n&&r===String(o)&&f(null,n):h.current=n)},[f,o])
955Object(R.useEffect)(()=>(y(),window.addEventListener("popstate",y),()=>{window.removeEventListener("popstate",y)}),[y])
956const m=Object(R.useCallback)(e=>{d.current.delete(e)},[]),_=Object(R.useCallback)((e,t)=>{if(d.current.set(e,t),null===h.current)return
957const{id:n}=t
958if(n===h.current)return f(e),void(h.current=null)
959if(!n){const e=parseInt(h.current,10)-1,t=Array.from(d.current.keys())[e]
960t&&(f(t),h.current=null)}},[f]),v=Object(R.useCallback)(e=>d.current.has(e),[]),g=Object(R.useCallback)(e=>{f(null,null,e)},[f]),b=Object(R.useCallback)(()=>{J&&J.close()},[]),P=Object(R.useMemo)(()=>({remove:m,set:_,handleClick:f,open:g,close:b,isRefRegistered:v}),[m,_,f,g,b,v])
961return x.a.createElement(B.Provider,{value:P},e,u)}
962Q.propTypes={children:D.a.any,options:D.a.object,plugins:D.a.func,uiElements:D.a.array,id:D.a.oneOfType([D.a.string,D.a.number]),onBeforeOpen:D.a.func,onOpen:D.a.func,withCaption:D.a.bool,withDownloadButton:D.a.bool,dataSource:D.a.array}
963var ee=function(e,t){var n={}
964for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r])
965if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0
966for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}
967const te=e=>{var{children:t}=e,n=ee(e,["children"])
968const r=Object(R.useRef)(null),{remove:i,set:o,handleClick:s,close:a,isRefRegistered:l}=(()=>Object(R.useContext)(B))(),c=Object(R.useCallback)(e=>{r.current=e,o(r,n)},[o,...Object.values(n)]),u=Object(R.useCallback)(e=>{if(!l(r))throw new NoRefError
969s(r,null,null,e)},[s,l]),p=Object(R.useMemo)(()=>({ref:c,open:u,close:a}),[c,u,a])
970return Object(R.useEffect)(()=>()=>{null===r.current&&i(r)},[i]),t(p)}
971te.propTypes={children:D.a.func.isRequired,original:D.a.string,originalSrcset:D.a.string,thumbnail:D.a.string,width:D.a.oneOfType([D.a.number,D.a.string]),height:D.a.oneOfType([D.a.number,D.a.string]),alt:D.a.string,caption:D.a.string,content:D.a.element,html:D.a.string,id:D.a.oneOfType([D.a.number,D.a.string]),cropped:D.a.bool,sourceId:D.a.oneOfType([D.a.number,D.a.string])}},mzdp:function(e,t,n){"use strict"
972Object.defineProperty(t,"__esModule",{value:!0}),t.canPlay=t.FLV_EXTENSIONS=t.DASH_EXTENSIONS=t.HLS_EXTENSIONS=t.VIDEO_EXTENSIONS=t.AUDIO_EXTENSIONS=t.MATCH_URL_KALTURA=t.MATCH_URL_VIDYARD=t.MATCH_URL_MIXCLOUD=t.MATCH_URL_DAILYMOTION=t.MATCH_URL_TWITCH_CHANNEL=t.MATCH_URL_TWITCH_VIDEO=t.MATCH_URL_WISTIA=t.MATCH_URL_STREAMABLE=t.MATCH_URL_FACEBOOK_WATCH=t.MATCH_URL_FACEBOOK=t.MATCH_URL_VIMEO=t.MATCH_URL_SOUNDCLOUD=t.MATCH_URL_YOUTUBE=void 0
973var r=n("tbWI")
974function _createForOfIteratorHelper(t,r){var i
975if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=function _unsupportedIterableToArray(e,t){if(!e)return
976if("string"==typeof e)return _arrayLikeToArray(e,t)
977var n=Object.prototype.toString.call(e).slice(8,-1)
978"Object"===n&&e.constructor&&(n=e.constructor.name)
979if("Map"===n||"Set"===n)return Array.from(e)
980if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(t))||r&&t&&"number"==typeof t.length){i&&(t=i)
981var o=0,a=function F(){}
982return{s:a,n:function n(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,u=!1
983return{s:function s(){i=t[Symbol.iterator]()},n:function n(){var e=i.next()
984return c=e.done,e},e:function e(t){u=!0,l=t},f:function f(){try{c||null==i.return||i.return()}finally{if(u)throw l}}}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length)
985for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
986return r}var i=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//
987t.MATCH_URL_YOUTUBE=i
988var o=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/
989t.MATCH_URL_SOUNDCLOUD=o
990var s=/vimeo\.com\/(?!progressive_redirect).+/
991t.MATCH_URL_VIMEO=s
992var a=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/
993t.MATCH_URL_FACEBOOK=a
994var l=/^https?:\/\/fb\.watch\/.+$/
995t.MATCH_URL_FACEBOOK_WATCH=l
996var c=/streamable\.com\/([a-z0-9]+)$/
997t.MATCH_URL_STREAMABLE=c
998var u=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/
999t.MATCH_URL_WISTIA=u
1000var p=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/
1001t.MATCH_URL_TWITCH_VIDEO=p
1002var d=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/
1003t.MATCH_URL_TWITCH_CHANNEL=d
1004var h=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/
1005t.MATCH_URL_DAILYMOTION=h
1006var f=/mixcloud\.com\/([^/]+\/[^/]+)/
1007t.MATCH_URL_MIXCLOUD=f
1008var y=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/
1009t.MATCH_URL_VIDYARD=y
1010var m=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/
1011t.MATCH_URL_KALTURA=m
1012var _=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i
1013t.AUDIO_EXTENSIONS=_
1014var v=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i
1015t.VIDEO_EXTENSIONS=v
1016var g=/\.(m3u8)($|\?)/i
1017t.HLS_EXTENSIONS=g
1018var b=/\.(mpd)($|\?)/i
1019t.DASH_EXTENSIONS=b
1020var P=/\.(flv)($|\?)/i
1021t.FLV_EXTENSIONS=P
1022var w={youtube:function youtube(e){return e instanceof Array?e.every(function(e){return i.test(e)}):i.test(e)},soundcloud:function soundcloud(e){return o.test(e)&&!_.test(e)},vimeo:function vimeo(e){return s.test(e)&&!v.test(e)&&!g.test(e)},facebook:function facebook(e){return a.test(e)||l.test(e)},streamable:function streamable(e){return c.test(e)},wistia:function wistia(e){return u.test(e)},twitch:function twitch(e){return p.test(e)||d.test(e)},dailymotion:function dailymotion(e){return h.test(e)},mixcloud:function mixcloud(e){return f.test(e)},vidyard:function vidyard(e){return y.test(e)},kaltura:function kaltura(e){return m.test(e)},file:function canPlayFile(e){if(e instanceof Array){var t,n=_createForOfIteratorHelper(e)
1023try{for(n.s();!(t=n.n()).done;){var i=t.value
1024if("string"==typeof i&&canPlayFile(i))return!0
1025if(canPlayFile(i.src))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}return!(!(0,r.isMediaStream)(e)&&!(0,r.isBlobUrl)(e))||_.test(e)||v.test(e)||g.test(e)||b.test(e)||P.test(e)}}
1026t.canPlay=w},"q+qS":function(e,t,n){"use strict"
1027function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1027Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
1028var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
1029if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
1030var t=_getRequireWildcardCache()
1031if(t&&t.has(e))return t.get(e)
1032var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
1033for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
1034o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
1035return n}(n("q1tI")),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("bmMU")),o=n("QXAm"),s=n("tbWI")
1036function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
1037var e=new WeakMap
1038return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
1039for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
1040r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
1041if(Reflect.construct.sham)return!1
1042if("function"==typeof Proxy)return!0
1043try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
1044return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
1045if(t){var i=_getPrototypeOf(this).constructor
1046n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
1047return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
1048return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
1049return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
1050e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Player,r.Component)
1051var t=_createSuper(Player)
1052function Player(){var e
1053!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Player)
1054for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i]
1055return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"mounted",!1),_defineProperty(_assertThisInitialized(e),"isReady",!1),_defineProperty(_assertThisInitialized(e),"isPlaying",!1),_defineProperty(_assertThisInitialized(e),"isLoading",!0),_defineProperty(_assertThisInitialized(e),"loadOnReady",null),_defineProperty(_assertThisInitialized(e),"startOnPlay",!0),_defineProperty(_assertThisInitialized(e),"seekOnPlay",null),_defineProperty(_assertThisInitialized(e),"onDurationCalled",!1),_defineProperty(_assertThisInitialized(e),"handlePlayerMount",function(t){e.player?e.progress():(e.player=t,e.player.load(e.props.url),e.progress())}),_defineProperty(_assertThisInitialized(e),"getInternalPlayer",function(t){return e.player?e.player[t]:null}),_defineProperty(_assertThisInitialized(e),"progress",function(){if(e.props.url&&e.player&&e.isReady){var t=e.getCurrentTime()||0,n=e.getSecondsLoaded(),r=e.getDuration()
1056if(r){var i={playedSeconds:t,played:t/r}
1057null!==n&&(i.loadedSeconds=n,i.loaded=n/r),i.playedSeconds===e.prevPlayed&&i.loadedSeconds===e.prevLoaded||e.props.onProgress(i),e.prevPlayed=i.playedSeconds,e.prevLoaded=i.loadedSeconds}}e.progressTimeout=setTimeout(e.progress,e.props.progressFrequency||e.props.progressInterval)}),_defineProperty(_assertThisInitialized(e),"handleReady",function(){if(e.mounted){e.isReady=!0,e.isLoading=!1
1058var t=e.props,n=t.onReady,r=t.playing,i=t.volume,o=t.muted
1059n(),o||null===i||e.player.setVolume(i),e.loadOnReady?(e.player.load(e.loadOnReady,!0),e.loadOnReady=null):r&&e.player.play(),e.handleDurationCheck()}}),_defineProperty(_assertThisInitialized(e),"handlePlay",function(){e.isPlaying=!0,e.isLoading=!1
1060var t=e.props,n=t.onStart,r=t.onPlay,i=t.playbackRate
1061e.startOnPlay&&(e.player.setPlaybackRate&&1!==i&&e.player.setPlaybackRate(i),n(),e.startOnPlay=!1),r(),e.seekOnPlay&&(e.seekTo(e.seekOnPlay),e.seekOnPlay=null),e.handleDurationCheck()}),_defineProperty(_assertThisInitialized(e),"handlePause",function(t){e.isPlaying=!1,e.isLoading||e.props.onPause(t)}),_defineProperty(_assertThisInitialized(e),"handleEnded",function(){var t=e.props,n=t.activePlayer,r=t.loop,i=t.onEnded
1062n.loopOnEnded&&r&&e.seekTo(0),r||(e.isPlaying=!1,i())}),_defineProperty(_assertThisInitialized(e),"handleError",function(){var t
1063e.isLoading=!1,(t=e.props).onError.apply(t,arguments)}),_defineProperty(_assertThisInitialized(e),"handleDurationCheck",function(){clearTimeout(e.durationCheckTimeout)
1064var t=e.getDuration()
1065t?e.onDurationCalled||(e.props.onDuration(t),e.onDurationCalled=!0):e.durationCheckTimeout=setTimeout(e.handleDurationCheck,100)}),_defineProperty(_assertThisInitialized(e),"handleLoaded",function(){e.isLoading=!1}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}
1065(Player,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0}},{key:"componentWillUnmount",value:function componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}},{key:"componentDidUpdate",value:function componentDidUpdate(e){var t=this
1066if(this.player){var n=this.props,r=n.url,o=n.playing,a=n.volume,l=n.muted,c=n.playbackRate,u=n.pip,p=n.loop,d=n.activePlayer,h=n.disableDeferredLoading
1067if(!(0,i.default)(e.url,r)){if(this.isLoading&&!d.forceLoad&&!h&&!(0,s.isMediaStream)(r))return void(this.loadOnReady=r)
1068this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}e.playing||!o||this.isPlaying||this.player.play(),e.playing&&!o&&this.isPlaying&&this.player.pause(),!e.pip&&u&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!u&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==a&&null!==a&&this.player.setVolume(a),e.muted!==l&&(l?this.player.mute():(this.player.unmute(),null!==a&&setTimeout(function(){return t.player.setVolume(a)}))),e.playbackRate!==c&&this.player.setPlaybackRate&&this.player.setPlaybackRate(c),e.loop!==p&&this.player.setLoop&&this.player.setLoop(p)}}},{key:"getDuration",value:function getDuration(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function seekTo(e,t){var n=this
1069if(this.isReady)if(t?"fraction"===t:e>0&&e<1){var r=this.player.getDuration()
1070if(!r)return
1071this.player.seekTo(r*e)}else this.player.seekTo(e)
1072else 0!==e&&(this.seekOnPlay=e,setTimeout(function(){n.seekOnPlay=null},5e3))}},{key:"render",value:function render(){var e=this.props.activePlayer
1073return e?r.default.createElement(e,_extends({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),Player}()
1074t.default=a,_defineProperty(a,"displayName","Player"),_defineProperty(a,"propTypes",o.propTypes),_defineProperty(a,"defaultProps",o.defaultProps)},qwi7:function(e,t,n){"use strict"
1075e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},spZ0:function(e,t,n){"use strict"
1076var r=n("JPst"),i=n.n(r)()(function(e){return e[1]})
1077i.push([e.i,'/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */\r\n\r\n.pswp {\r\n  --pswp-bg: #000;\r\n  --pswp-placeholder-bg: #222;\r\n  \r\n\r\n  --pswp-root-z-index: 100000;\r\n  \r\n  --pswp-preloader-color: rgba(79, 79, 79, 0.4);\r\n  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);\r\n  \r\n  /* defined via js:\r\n  --pswp-transition-duration: 333ms; */\r\n  \r\n  --pswp-icon-color: #fff;\r\n  --pswp-icon-color-secondary: #4f4f4f;\r\n  --pswp-icon-stroke-color: #4f4f4f;\r\n  --pswp-icon-stroke-width: 2px;\r\n\r\n  --pswp-error-text-color: var(--pswp-icon-color);\r\n}\r\n\r\n\r\n/*\r\n\tStyles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)\r\n*/\r\n\r\n.pswp {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tz-index: var(--pswp-root-z-index);\r\n\tdisplay: none;\r\n\ttouch-action: none;\r\n\toutline: 0;\r\n\topacity: 0.003;\r\n\tcontain: layout style size;\r\n\t-webkit-tap-highlight-color: rgba(0, 0, 0, 0);\r\n}\r\n\r\n/* Prevents focus outline on the root element,\r\n  (it may be focused initially) */\r\n.pswp:focus {\r\n  outline: 0;\r\n}\r\n\r\n.pswp * {\r\n  box-sizing: border-box;\r\n}\r\n\r\n.pswp img {\r\n  max-width: none;\r\n}\r\n\r\n.pswp--open {\r\n\tdisplay: block;\r\n}\r\n\r\n.pswp,\r\n.pswp__bg {\r\n\ttransform: translateZ(0);\r\n\twill-change: opacity;\r\n}\r\n\r\n.pswp__bg {\r\n  opacity: 0.005;\r\n\tbackground: var(--pswp-bg);\r\n}\r\n\r\n.pswp,\r\n.pswp__scroll-wrap {\r\n\toverflow: hidden;\r\n}\r\n\r\n.pswp__scroll-wrap,\r\n.pswp__bg,\r\n.pswp__container,\r\n.pswp__item,\r\n.pswp__content,\r\n.pswp__img,\r\n.pswp__zoom-wrap {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n\r\n.pswp__img,\r\n.pswp__zoom-wrap {\r\n\twidth: auto;\r\n\theight: auto;\r\n}
1077\r\n\r\n.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {\r\n\tcursor: zoom-in;\r\n}\r\n\r\n.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {\r\n\tcursor: move;\r\n\tcursor: grab;\r\n}\r\n\r\n.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {\r\n  cursor: grabbing;\r\n}\r\n\r\n/* :active to override grabbing cursor */\r\n.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,\r\n.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,\r\n.pswp__img {\r\n\tcursor: zoom-out;\r\n}\r\n\r\n\r\n/* Prevent selection and tap highlights */\r\n.pswp__container,\r\n.pswp__img,\r\n.pswp__button,\r\n.pswp__counter {\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n.pswp__item {\r\n\t/* z-index for fade transition */\r\n\tz-index: 1;\r\n\toverflow: hidden;\r\n}\r\n\r\n.pswp__hidden {\r\n\tdisplay: none !important;\r\n}\r\n\r\n/* Allow to click through pswp__content element, but not its children */\r\n.pswp__content {\r\n  pointer-events: none;\r\n}\r\n.pswp__content > * {\r\n  pointer-events: auto;\r\n}\r\n\r\n\r\n/*\r\n\r\n  PhotoSwipe UI\r\n\r\n*/\r\n\r\n/*\r\n\tError message appears when image is not loaded\r\n\t(JS option errorMsg controls markup)\r\n*/\r\n.pswp__error-msg-container {\r\n  display: grid;\r\n}\r\n.pswp__error-msg {\r\n\tmargin: auto;\r\n\tfont-size: 1em;\r\n\tline-height: 1;\r\n\tcolor: var(--pswp-error-text-color);\r\n}\r\n\r\n/*\r\nclass pswp__hide-on-close is applied to elements that\r\nshould hide (for example fade out) when PhotoSwipe is closed\r\nand show (for example fade in) when PhotoSwipe is opened\r\n */\r\n.pswp .pswp__hide-on-close {\r\n\topacity: 0.005;\r\n\twill-change: opacity;\r\n\ttransition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);\r\n\tz-index: 10; /* always overlap slide content */\r\n\tpointer-events: none; /* hidden elements should not be clickable */\r\n}\r\n\r\n/* class pswp--ui-visible is added when opening or closing transition starts */\r\n.pswp--ui-visible .pswp__hide-on-close {\r\n\topacity: 1;\r\n\tpointer-events: auto;\r\n}\r\n\r\n/* <button> styles, including css reset */\r\n.pswp__button {\r\n\tposition: relative;\r\n\tdisplay: block;\r\n\twidth: 50px;\r\n\theight: 60px;\r\n\tpadding: 0;\r\n\tmargin: 0;\r\n\toverflow: hidden;\r\n\tcursor: pointer;\r\n\tbackground: none;\r\n\tborder: 0;\r\n\tbox-shadow: none;\r\n\topacity: 0.85;\r\n\t-webkit-appearance: none;\r\n\t-webkit-touch-callout: none;\r\n}\r\n\r\n.pswp__button:hover,\r\n.pswp__button:active,\r\n.pswp__button:focus {\r\n  transition: none;\r\n  padding: 0;\r\n  background: none;\r\n  border: 0;\r\n  box-shadow: none;\r\n  opacity: 1;\r\n}\r\n\r\n.pswp__button:disabled {\r\n  opacity: 0.3;\r\n  cursor: auto;\r\n}\r\n\r\n.pswp__icn {\r\n  fill: var(--pswp-icon-color);\r\n  color: var(--pswp-icon-color-secondary);\r\n  position: absolute;\r\n  top: 14px;\r\n  left: 9px;\r\n  width: 32px;\r\n  height: 32px;\r\n  overflow: hidden;\r\n  pointer-events: none;\r\n}\r\n\r\n.pswp__icn-shadow {\r\n  stroke: var(--pswp-icon-stroke-color);\r\n  stroke-width: var(--pswp-icon-stroke-width);\r\n  fill: none;\r\n}\r\n\r\n.pswp__icn:focus {\r\n\toutline: 0;\r\n}\r\n\r\n/*\r\n\tdiv element that matches size of large image,\r\n\tlarge image loads on top of it,\r\n\tused when msrc is not provided\r\n*/\r\ndiv.pswp__img--placeholder,\r\n.pswp__img--with-bg {\r\n\tbackground: var(--pswp-placeholder-bg);\r\n}\r\n\r\n.pswp__top-bar {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\twidth: 100%;\r\n\theight: 60px;\r\n\tdisplay: flex;\r\n  flex-direction: row;\r\n  justify-content: flex-end;\r\n\tz-index: 10;\r\n\r\n\t/* allow events to pass through top bar itself */\r\n\tpointer-events: none !important;\r\n}\r\n.pswp__top-bar > * {\r\n  pointer-events: auto;\r\n  /* this makes transition significantly more smooth,\r\n     even though inner elements are not animated */\r\n  will-change: opacity;\r\n}\r\n\r\n\r\n/*\r\n\r\n  Close button\r\n\r\n*/\r\n.pswp__button--close {\r\n  margin-right: 6px;\r\n}\r\n\r\n\r\n/*\r\n\r\n  Arrow buttons\r\n\r\n*/\r\n.pswp__button--arrow {\r\n  position: absolute;\r\n  top: 0;\r\n  width: 75px;\r\n  height: 100px;\r\n  top: 50%;\r\n  margin-top: -50px;\r\n}\r\n\r\n.pswp__button--arrow:disabled {\r\n  display: none;\r\n  cursor: default;\r\n}
1077\r\n\r\n.pswp__button--arrow .pswp__icn {\r\n  top: 50%;\r\n  margin-top: -30px;\r\n  width: 60px;\r\n  height: 60px;\r\n  background: none;\r\n  border-radius: 0;\r\n}\r\n\r\n.pswp--one-slide .pswp__button--arrow {\r\n  display: none;\r\n}\r\n\r\n/* hide arrows on touch screens */\r\n.pswp--touch .pswp__button--arrow {\r\n  visibility: hidden;\r\n}\r\n\r\n/* show arrows only after mouse was used */\r\n.pswp--has_mouse .pswp__button--arrow {\r\n  visibility: visible;\r\n}\r\n\r\n.pswp__button--arrow--prev {\r\n  right: auto;\r\n  left: 0px;\r\n}\r\n\r\n.pswp__button--arrow--next {\r\n  right: 0px;\r\n}\r\n.pswp__button--arrow--next .pswp__icn {\r\n  left: auto;\r\n  right: 14px;\r\n  /* flip horizontally */\r\n  transform: scale(-1, 1);\r\n}\r\n\r\n/*\r\n\r\n  Zoom button\r\n\r\n*/\r\n.pswp__button--zoom {\r\n  display: none;\r\n}\r\n\r\n.pswp--zoom-allowed .pswp__button--zoom {\r\n  display: block;\r\n}\r\n\r\n/* "+" => "-" */\r\n.pswp--zoomed-in .pswp__zoom-icn-bar-v {\r\n  display: none;\r\n}\r\n\r\n\r\n/*\r\n\r\n  Loading indicator\r\n\r\n*/\r\n.pswp__preloader {\r\n  position: relative;\r\n  overflow: hidden;\r\n  width: 50px;\r\n  height: 60px;\r\n  margin-right: auto;\r\n}\r\n\r\n.pswp__preloader .pswp__icn {\r\n  opacity: 0;\r\n  transition: opacity 0.2s linear;\r\n  animation: pswp-clockwise 600ms linear infinite;\r\n}\r\n\r\n.pswp__preloader--active .pswp__icn {\r\n  opacity: 0.85;\r\n}\r\n\r\n@keyframes pswp-clockwise {\r\n  0% { transform: rotate(0deg); }\r\n  100% { transform: rotate(360deg); }\r\n}\r\n\r\n\r\n/*\r\n\r\n  "1 of 10" counter\r\n\r\n*/\r\n.pswp__counter {\r\n  height: 30px;\r\n  margin-top: 15px;\r\n  -webkit-margin-start: 20px;\r\n          margin-inline-start: 20px;\r\n  font-size: 14px;\r\n  line-height: 30px;\r\n  color: var(--pswp-icon-color);\r\n  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);\r\n  opacity: 0.85;\r\n}\r\n\r\n.pswp--one-slide .pswp__counter {\r\n  display: none;\r\n}\r\n',""]),t.a=i},tbWI:function(e,t,n){"use strict"
1078Object.defineProperty(t,"__esModule",{value:!0}),t.parseStartTime=function parseStartTime(e){return parseTimeParam(e,o)},t.parseEndTime=function parseEndTime(e){return parseTimeParam(e,s)},t.randomString=function randomString(){return Math.random().toString(36).substr(2,5)},t.queryString=function queryString(e){return Object.keys(e).map(function(t){return"".concat(t,"=").concat(e[t])}).join("&")},t.getSDK=function getSDK(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.default,s=getGlobal(t)
1079if(s&&i(s))return Promise.resolve(s)
1080return new Promise(function(r,i){if(c[e])c[e].push({resolve:r,reject:i})
1081else{c[e]=[{resolve:r,reject:i}]
1082var s=function onLoaded(t){c[e].forEach(function(e){return e.resolve(t)})}
1083if(n){var a=window[n]
1084window[n]=function(){a&&a(),s(getGlobal(t))}}o(e,function(r){r?(c[e].forEach(function(e){return e.reject(r)}),c[e]=null):n||s(getGlobal(t))})}})},t.getConfig=function getConfig(e,t){return(0,i.default)(t.config,e.config)},t.omit=function omit(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i]
1085for(var o=(t=[]).concat.apply(t,r),s={},a=Object.keys(e),l=0,c=a;l<c.length;l++){var u=c[l];-1===o.indexOf(u)&&(s[u]=e[u])}return s},t.callPlayer=function callPlayer(e){var t
1086if(!this.player||!this.player[e]){"ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(e,"%c – ")
1087return this.player?this.player[e]||"The method was not available":"The player was not available",null}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i]
1088return(t=this.player)[e].apply(t,r)},t.isMediaStream=function isMediaStream(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream},t.isBlobUrl=function isBlobUrl(e){return/^blob:/.test(e)},t.supportsWebKitPresentationMode=function supportsWebKitPresentationMode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("video"),t=!1===/iPhone|iPod/.test(navigator.userAgent)
1089return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}
1090var r=_interopRequireDefault(n("MuZe")),i=_interopRequireDefault(n("PE4B"))
1091function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return
1092var n=[],r=!0,i=!1,o=void 0
1093try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function _unsupportedIterableToArray(e,t){if(!e)return
1094if("string"==typeof e)return _arrayLikeToArray(e,t)
1095var n=Object.prototype.toString.call(e).slice(8,-1)
1096"Object"===n&&e.constructor&&(n=e.constructor.name)
1097if("Map"===n||"Set"===n)return Array.from(e)
1098if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length)
1099for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
1100return r}var o=/[?&#](?:start|t)=([0-9hms]+)/,s=/[?&#]end=([0-9hms]+)/,a=/(\d+)(h|m|s)/g,l=/^\d+$/
1101function parseTimeParam(e,t){if(!(e instanceof Array)){var n=e.match(t)
1102if(n){var r=n[1]
1103if(r.match(a))return function parseTimeString(e){var t=0,n=a.exec(e)
1104for(;null!==n;){var r=n,i=_slicedToArray(r,3),o=i[1],s=i[2]
1105"h"===s&&(t+=60*parseInt(o,10)*60),"m"===s&&(t+=60*parseInt(o,10)),"s"===s&&(t+=parseInt(o,10)),n=a.exec(e)}return t}(r)
1106if(l.test(r))return parseInt(r)}}}function getGlobal(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}var c={}},"us/w":function(e,t,n){"use strict"
1107var r=n("qwi7")
1108function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")
1109throw a.name="Invariant Violation",a}}function getShim(){return shim}shim.isRequired=shim
1110var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction}
1111return e.PropTypes=e,e}},xkkJ:function(e,t,n){"use strict"
1112function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
1113var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e
1114if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
1115var t=_getRequireWildcardCache()
1116if(t&&t.has(e))return t.get(e)
1117var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
1118for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
1119o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n)
1120return n}(n("q1tI")),i=n("tbWI"),o=n("mzdp")
1121function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
1122var e=new WeakMap
1123return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var n=Object.keys(e)
1124if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
1125t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
1126t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
1127r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
1128if(Reflect.construct.sham)return!1
1129if("function"==typeof Proxy)return!0
1130try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()
1131return function _createSuperInternal(){var n,r=_getPrototypeOf(e)
1132if(t){var i=_getPrototypeOf(this).constructor
1133n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments)
1134return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t
1135return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
1136return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
1137e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(SoundCloud,r.Component)
1138var t=_createSuper(SoundCloud)
1139function SoundCloud(){var e
1140!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,SoundCloud)
1141for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
1142return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(r))),"callPlayer",i.callPlayer),_defineProperty(_assertThisInitialized(e),"duration",null),_defineProperty(_assertThisInitialized(e),"currentTime",null),_defineProperty(_assertThisInitialized(e),"fractionLoaded",null),_defineProperty(_assertThisInitialized(e),"mute",function(){e.setVolume(0)}),_defineProperty(_assertThisInitialized(e),"unmute",function(){null!==e.props.volume&&e.setVolume(e.props.volume)}),_defineProperty(_assertThisInitialized(e),"ref",function(t){e.iframe=t}),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(SoundCloud,[{key:"componentDidMount",value:function componentDidMount(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function load(e,t){var n=this;(0,i.getSDK)("https://w.soundcloud.com/player/api.js","SC").then(function(r){if(n.iframe){var i=r.Widget.Events,o=i.PLAY,s=i.PLAY_PROGRESS,a=i.PAUSE,l=i.FINISH,c=i.ERROR
1143t||(n.player=r.Widget(n.iframe),n.player.bind(o,n.props.onPlay),n.player.bind(a,function(){n.duration-n.currentTime<.05||n.props.onPause()}),n.player.bind(s,function(e){n.currentTime=e.currentPosition/1e3,n.fractionLoaded=e.loadedProgress}),n.player.bind(l,function(){return n.props.onEnded()}),n.player.bind(c,function(e){return n.props.onError(e)})),n.player.load(e,_objectSpread(_objectSpread({},n.props.config.options),{},{callback:function callback(){n.player.getDuration(function(e){n.duration=e/1e3,n.props.onReady()})}}))}})}},{key:"play",value:function play(){this.callPlayer("play")}},{key:"pause",value:function pause(){this.callPlayer("pause")}},{key:"stop",value:function stop(){}},{key:"seekTo",value:function seekTo(e){this.callPlayer("seekTo",1e3*e)}},{key:"setVolume",value:function setVolume(e){this.callPlayer("setVolume",100*e)}},{key:"getDuration",value:function getDuration(){return this.duration}},{key:"getCurrentTime",value:function getCurrentTime(){return this.currentTime}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){return this.fractionLoaded*this.duration}}
1143,{key:"render",value:function render(){var e={width:"100%",height:"100%",display:this.props.display}
1144return r.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:e,frameBorder:0,allow:"autoplay"})}}]),SoundCloud}()
1145t.default=s,_defineProperty(s,"displayName","SoundCloud"),_defineProperty(s,"canPlay",o.canPlay.soundcloud),_defineProperty(s,"loopOnEnded",!0)},zuFh:function(e,t,n){"use strict"
1146Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
1147var r=n("q1tI"),i=n("tbWI"),o=n("mzdp")
1148function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null
1149var e=new WeakMap
1150return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e
1151if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e}
1152var t=_getRequireWildcardCache()
1153if(t&&t.has(e))return t.get(e)
1154var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor
1155for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null
1156o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var s=[{key:"youtube",name:"YouTube",canPlay:o.canPlay.youtube,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("/6c9"))})})},{key:"soundcloud",name:"SoundCloud",canPlay:o.canPlay.soundcloud,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("xkkJ"))})})},{key:"vimeo",name:"Vimeo",canPlay:o.canPlay.vimeo,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("LLoX"))})})},{key:"facebook",name:"Facebook",canPlay:o.canPlay.facebook,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("f77o"))})})},{key:"streamable",name:"Streamable",canPlay:o.canPlay.streamable,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("GdC5"))})})},{key:"wistia",name:"Wistia",canPlay:o.canPlay.wistia,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("W4/P"))})})},{key:"twitch",name:"Twitch",canPlay:o.canPlay.twitch,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("bA2t"))})})},{key:"dailymotion",name:"DailyMotion",canPlay:o.canPlay.dailymotion,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("Rom6"))})})},{key:"mixcloud",name:"Mixcloud",canPlay:o.canPlay.mixcloud,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("5Cgt"))})})},{key:"vidyard",name:"Vidyard",canPlay:o.canPlay.vidyard,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("fPw2"))})})},{key:"kaltura",name:"Kaltura",canPlay:o.canPlay.kaltura,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("BgVF"))})})},{key:"file",name:"FilePlayer",canPlay:o.canPlay.file,canEnablePIP:function canEnablePIP(e){return o.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,i.supportsWebKitPresentationMode)())&&!o.AUDIO_EXTENSIONS.test(e)},lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(n("bq/u"))})})}]
1157t.default=s}}])

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.