pageflow 15.8.0 → 16.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -130
- data/admins/pageflow/accounts.rb +12 -16
- data/admins/pageflow/entry.rb +28 -25
- data/admins/pageflow/entry_templates.rb +5 -7
- data/admins/pageflow/sites.rb +50 -0
- data/app/assets/javascripts/pageflow/admin/entries.js +16 -7
- data/app/controllers/pageflow/entries_controller.rb +2 -2
- data/app/helpers/pageflow/admin/permalinks_helper.rb +2 -2
- data/app/helpers/pageflow/common_entry_seed_helper.rb +1 -1
- data/app/helpers/pageflow/embed_code_helper.rb +1 -1
- data/app/helpers/pageflow/entries_helper.rb +15 -15
- data/app/helpers/pageflow/sites_helper.rb +11 -0
- data/app/helpers/pageflow/social_share_helper.rb +2 -2
- data/app/models/pageflow/account.rb +7 -33
- data/app/models/pageflow/{cname_theming_request_scope.rb → cname_site_request_scope.rb} +3 -3
- data/app/models/pageflow/customized_theme.rb +1 -1
- data/app/models/pageflow/entry.rb +3 -4
- data/app/models/pageflow/entry_at_revision.rb +2 -2
- data/app/models/pageflow/entry_duplicate.rb +1 -1
- data/app/models/pageflow/entry_template.rb +4 -4
- data/app/models/pageflow/home_button.rb +7 -7
- data/app/models/pageflow/permalink.rb +3 -3
- data/app/models/pageflow/permalink_directory.rb +2 -2
- data/app/models/pageflow/published_entry.rb +2 -2
- data/app/models/pageflow/site.rb +59 -0
- data/app/models/pageflow/theme_customization.rb +1 -1
- data/app/policies/pageflow/account_policy.rb +2 -2
- data/app/policies/pageflow/entry_policy.rb +2 -2
- data/app/policies/pageflow/entry_template_policy.rb +1 -1
- data/app/policies/pageflow/{theming_policy.rb → site_policy.rb} +13 -11
- data/app/views/admin/accounts/_entry_template_details.html.arb +1 -1
- data/app/views/admin/accounts/_form.html.erb +4 -22
- data/app/views/admin/accounts/_site_defaults_inline_help.html.erb +5 -0
- data/app/views/admin/entries/_form.html.erb +4 -13
- data/app/views/admin/entries/_permalink_inputs.html.erb +2 -2
- data/app/views/admin/entries/_site_input.html.erb +15 -0
- data/app/views/admin/entries/{entry_type_name_input.html.erb → entry_site_and_type_name_input.html.erb} +3 -0
- data/app/views/admin/entry_templates/_form.html.erb +5 -5
- data/app/views/admin/sites/_attributes_table.html.arb +9 -0
- data/app/views/admin/sites/_fields.html.erb +17 -0
- data/app/views/admin/sites/_form.html.erb +5 -0
- data/app/views/components/pageflow/admin/entries_tab.rb +1 -2
- data/app/views/components/pageflow/admin/entry_templates_tab.rb +10 -11
- data/app/views/components/pageflow/admin/features_tab.rb +1 -1
- data/app/views/components/pageflow/admin/sites_tab.rb +32 -0
- data/app/views/components/pageflow/admin/users_tab.rb +1 -2
- data/app/views/pageflow/editor/entries/seed.json.erb +1 -1
- data/app/views/pageflow/editor/sites/_site.json.jbuilder +1 -0
- data/app/views/pageflow/entries/{_theming.css.erb → _site.css.erb} +0 -0
- data/app/views/pageflow/entries/stylesheet.css.erb +1 -1
- data/app/views/pageflow/social_share/_entry_meta_tags.html.erb +1 -1
- data/app/views/pageflow/social_share/_page_meta_tags.html.erb +1 -1
- data/config/initializers/admin_resource_tabs.rb +29 -12
- data/config/locales/de.yml +19 -17
- data/config/locales/en.yml +19 -17
- data/db/migrate/20221215101134_rename_theming_to_site.rb +9 -0
- data/db/migrate/20221215120856_associate_entry_templates_with_sites.rb +34 -0
- data/db/migrate/20221219203023_add_name_to_sites.rb +5 -0
- data/db/migrate/20230103155934_associate_theme_customizations_with_sites.rb +27 -0
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/editor.js +10 -10
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/frontend.js +5 -5
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/react-client.js +1 -1
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/react-server.js +1 -1
- data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_entry.json.jbuilder +5 -5
- data/entry_types/scrolled/lib/pageflow_scrolled/seeds.rb +1 -1
- data/entry_types/scrolled/package/frontend/{EditableInlineText.module-c6672f27.js → EditableInlineText.module-14c7b097.js} +2 -2
- data/entry_types/scrolled/package/frontend/{PhonePlatformContext-22e65f92.js → PhonePlatformContext-f6093cc6.js} +47 -219
- data/entry_types/scrolled/package/frontend/{Viewer-6b05522f.js → Viewer-b6becc57.js} +2 -2
- data/entry_types/scrolled/package/frontend/{arrowRight-7e3d9dd5.js → arrowRight-78a7cee4.js} +1 -1
- data/entry_types/scrolled/package/frontend/{components-487daafa.js → components-b3160dd7.js} +2 -2
- data/entry_types/scrolled/package/frontend/index.css +1 -1
- data/entry_types/scrolled/package/frontend/index.js +195 -12
- data/entry_types/scrolled/package/widgets/defaultNavigation.css +2 -2
- data/entry_types/scrolled/package/widgets/defaultNavigation.js +16 -9
- data/lib/pageflow/ability_mixin.rb +16 -8
- data/lib/pageflow/admin/attributes_table_rows.rb +1 -1
- data/lib/pageflow/admin/form_inputs.rb +1 -1
- data/lib/pageflow/admin/tabs.rb +1 -1
- data/lib/pageflow/configuration/permissions.rb +3 -3
- data/lib/pageflow/configuration.rb +17 -17
- data/lib/pageflow/entry_export_import/entry_serialization.rb +1 -1
- data/lib/pageflow/primary_domain_entry_redirect.rb +7 -7
- data/lib/pageflow/seeds.rb +10 -10
- data/lib/pageflow/theme_customizations.rb +10 -10
- data/lib/pageflow/version.rb +1 -1
- data/package/editor.js +7 -7
- data/spec/factories/accounts.rb +5 -2
- data/spec/factories/draft_entries.rb +2 -2
- data/spec/factories/entries.rb +2 -2
- data/spec/factories/entry_templates.rb +1 -1
- data/spec/factories/permalink_directory.rb +1 -1
- data/spec/factories/published_entries.rb +2 -2
- data/spec/factories/sites.rb +9 -0
- metadata +27 -18
- data/app/helpers/pageflow/themings_helper.rb +0 -11
- data/app/models/pageflow/theming.rb +0 -30
- data/app/views/admin/accounts/_theming_defaults_inline_help.html.erb +0 -5
- data/app/views/admin/accounts/_theming_details.html.arb +0 -5
- data/app/views/pageflow/editor/themings/_theming.json.jbuilder +0 -1
- data/spec/factories/themings.rb +0 -7
@@ -16,4 +16,4 @@ pageflow="object"==typeof pageflow?pageflow:{},pageflow.react=function(e){var t=
|
|
16
16
|
*
|
17
17
|
* This source code is licensed under the MIT license found in the
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
19
|
-
*/Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case y:case g:case s:return e;default:return t}}case i:return t}}}function E(e){return O(e)===p}t.typeOf=O,t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=g,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===c||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===m||e.$$typeof===b||e.$$typeof===w)},t.isAsyncMode=function(e){return E(e)||O(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===y},t.isMemo=function(e){return O(e)===g},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===u},t.isStrictMode=function(e){return O(e)===c},t.isSuspense=function(e){return O(e)===h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=(l(i),l(n(29))),c=l(n(19)),u=l(n(400)),s=l(n(401));function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.measure=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.props.useClone;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var r=n.getDimensions(n._node,e,t),o="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(r[e]!==n._lastDimensions[e])return n.props.onMeasure(r),o&&void 0!==n&&n.setState({dimensions:r}),n._lastDimensions=r,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new u.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){e.config;var t=e.whitelist,n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=c.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.useClone,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.cloneOptions;return(0,s.default)(e,r({margin:t,clone:n},o))}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);f.propTypes={whitelist:a.default.array,blacklist:a.default.array,includeMargin:a.default.bool,useClone:a.default.bool,cloneOptions:a.default.object,shouldMeasure:a.default.bool,onMeasure:a.default.func},f.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=f,e.exports=t.default},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}())}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},a=2;var c=20,u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function c(){n&&(n=!1,e()),r&&s()}function u(){i(c)}function s(){var e=Date.now();if(n){if(e-o<a)return;r=!0}else n=!0,r=!1,setTimeout(u,t);o=e}return s}(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=b(0,0,0,0);function h(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=h(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=h(r.width),u=h(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=v(r,"left","right")+i),Math.round(u+a)!==n&&(u-=v(r,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var s=Math.round(c+i)-t,l=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(u-=l)}return b(o.left,o.top,c,u)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?y(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):g(e):d}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(e,t){var n,r,o,i,a,c,u,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),f(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);f(this,{target:e,contentRect:s})},E=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new E(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var k=void 0!==o.ResizeObserver?o.ResizeObserver:x;t.default=k}.call(this,n(73))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.getBoundingClientRect(),r=void 0,a=void 0,c=void 0;if((n.width&&n.height||t.noCloneOnZeroDimension)&&!t.clone)t.margin&&(c=(0,i.default)(getComputedStyle(e)));else{var u=(0,o.default)(e,t);n=u.rect,c=u.margin}t.margin?(r=c.left+n.width+c.right,a=c.top+n.height+c.bottom):(r=n.width,a=n.height);return{width:r,height:a,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var o=r(n(402)),i=r(n(167));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,o,a=e.parentNode,c=document.createElement("div"),u=e.cloneNode(!0),s=getComputedStyle(e);c.style.height=0,c.style.overflow="hidden",u.setAttribute("id",""),u.setAttribute("name",""),(t.display||s&&"none"===s.getPropertyValue("display"))&&(u.style.display=t.display||"block");(t.width||s&&!parseInt(s.getPropertyValue("width")))&&(u.style.width=t.width||"auto");(t.height||s&&!parseInt(s.getPropertyValue("height")))&&(u.style.height=t.height||"auto");return c.appendChild(u),a.appendChild(c),n=u.getBoundingClientRect(),r=u.offsetWidth,o=u.offsetHeight,a.removeChild(c),{rect:{width:r,height:o,top:n.top,right:n.right,bottom:n.bottom,left:n.left},margin:(0,i.default)(s)}};var r,o=n(167),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=c(p);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||l||c(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"updatePageAttribute",(function(){return O})),n.d(r,"updatePageLink",(function(){return E})),n.d(r,"updateSetting",(function(){return S}));var o={};n.r(o),n.d(o,"PageWrapper",(function(){return H})),n.d(o,"PageBackground",(function(){return q})),n.d(o,"PageBackgroundImage",(function(){return Cn})),n.d(o,"PageShadow",(function(){return Nn})),n.d(o,"PageForeground",(function(){return Mn})),n.d(o,"PageContent",(function(){return Un})),n.d(o,"PageScroller",(function(){return Fn})),n.d(o,"PageHeader",(function(){return Vn})),n.d(o,"PageText",(function(){return Hn})),n.d(o,"PageLink",(function(){return Xn})),n.d(o,"PageThumbnail",(function(){return Zn})),n.d(o,"LazyLoadedPageThumbnail",(function(){return er})),n.d(o,"PlayerControls",(function(){return qr})),n.d(o,"CloseButton",(function(){return Yr})),n.d(o,"MenuBar",(function(){return Br})),n.d(o,"Icon",(function(){return fr})),n.d(o,"editorOnly",(function(){return Xr})),n.d(o,"withVisibilityWatching",(function(){return Vr})),n.d(o,"Draggable",(function(){return xr.a})),n.d(o,"Measure",(function(){return Pr.a}));var i={};n.r(i),n.d(i,"pageAttribute",(function(){return rn})),n.d(i,"pageAttributes",(function(){return on})),n.d(i,"pageIsActive",(function(){return cn})),n.d(i,"pageIsPrepared",(function(){return sn})),n.d(i,"currentParentPageAttributes",(function(){return Zr})),n.d(i,"currentParentChapterAttributes",(function(){return Jr})),n.d(i,"t",(function(){return Gr})),n.d(i,"setting",(function(){return eo})),n.d(i,"file",(function(){return Xt})),n.d(i,"prop",(function(){return Gn})),n.d(i,"widgetAttributes",(function(){return ro})),n.d(i,"editingWidget",(function(){return oo}));n(173),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(78),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(223),n(224),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(289),n(290),n(291),n(292),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(156),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(388),n(163);var a=n(4),c=(n(389),"PAGE_DID_ACTIVATE"),u="PAGE_WILL_ACTIVATE",s="PAGE_DID_DEACTIVATE",l="PAGE_WILL_DEACTIVATE",f="PAGE_DID_PRELOAD",p="PAGE_DID_PREPARE",d="PAGE_SCHEDULE_UNPREPARE",h="PAGE_DID_UNPREPARE",v="PAGE_DID_RESIZE",g="PAGE_ENHANCE",y="PAGE_CLEANUP",m="UPDATE_PAGE_ATTRIBUTE",b="UPDATE_PAGE_LINK";function w(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(h,e)}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.name,r=e.value;return _(m,t,{name:n,value:r})}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pageId,n=e.linkId,r=e.name,o=e.value;return _(b,t,{linkId:n,name:r,value:o})}function _(e,t){return{type:e,meta:{collectionName:"pages",itemId:t},payload:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}}}var x="SETTINGS_LOAD",k="SETTINGS_UPDATE";function P(e){var t=e.settings;return{type:x,payload:{settings:t}}}function S(e){var t=e.property,n=e.value;return{type:k,payload:{property:t,value:n}}}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),e}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e){return(C="function"==typeof Symbol&&"symbol"===I(Symbol.iterator)?function(e){return I(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":I(e)})(e)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?N(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}var B=n(0),F=n.n(B),U=n(5),V=n.n(U),H=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){return React.createElement("div",{className:V()("content_and_background",this.props.className)},this.props.children)}}]),t}(B.Component);function q(e){return React.createElement("div",{className:(t=e,n=t.pageHasPlayerControls,V()("page_background",{"page_background-for_page_with_player_controls":n}))},e.children);var t,n}var W=n(168),G=n.n(W);function z(e){return!!G()(e).match(/^\s*$/)}function Y(e){return e.replace(/_[a-z]/g,(function(e){return e[1].toUpperCase()}))}Y.keys=function(e){return Object.keys(e).reduce((function(t,n){return t[Y(n)]=e[n],t}),{})},Y.deep=function(e){return Array.isArray(e)?e.map(Y.deep):"object"==typeof e&&e?Object.keys(e).reduce((function(t,n){return t[Y(n)]=Y.deep(e[n]),t}),{}):e},Y.concat=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).reduce((function(e,t){return e+t[0].toUpperCase()+t.slice(1)}))};var X=Y,$=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object.keys(e).reduce((function(t,r){return"function"==typeof e[r]?t[r]=e[r].apply(e,n):t[r]=e[r],t}),{})}},K=n(59),Q=n(119),J=Symbol("selectorFactory"),Z=Symbol("createSelector");function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return re((function(e,n){var r=t.slice(0,-1).map(ne),o=t.slice(-1)[0],i=Q.createSelector.apply(void 0,Object(K.a)(r).concat([o]));if(e===Z)return i;if(e)return i(e,n);throw"Missing state argument for selector."}))}function te(e,t){return re((function(){return Object(Q.createStructuredSelector)(function(e){return Object.keys(e).reduce((function(t,n){return t[n]=ne(e[n]),t}),{})}((t=e,Object.keys(t).reduce((function(e,n){return"function"==typeof t[n]?e[n]=t[n]:e[n]=function(){return t[n]},e}),{}))));var t}))}function ne(e){return"function"==typeof e&&e[J]?e(Z):e}function re(e){return e[J]=!0,e}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pageflow.browser;return t&&t.has(e)}function ie(e){return new Promise((function(t){var n=new Image;n.onload=t,n.onerror=t,n.src=e}))}var ae=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this;return F.a.createElement("div",{className:this.cssClass(),style:this.style(),ref:function(t){return e.element=t}},this.renderStructuredData())}},{key:"componentDidUpdate",value:function(e){this.props.loaded&&!e.loaded&&function(e){var t=window.getComputedStyle(e).getPropertyValue("background-image");if(t.match(/^url/))ie(t.replace(/^url\(['"]?/,"").replace(/['"]?\)$/,""))}(this.element)}},{key:"cssClass",value:function(){return V()(this.props.className,this.props.loaded?"load_image":null,this.imageCssClass())}},{key:"imageCssClass",value:function(){return["imageFiles"==this.props.fileCollection?"image":"video_poster",this.props.fileId||"none"].join("_")}},{key:"style",value:function(){return{backgroundPosition:"".concat(this.positionCoordinate(0),"% ").concat(this.positionCoordinate(1),"%")}}},{key:"positionCoordinate",value:function(e){var t=this.props.position[e];return void 0===t?50:t}},{key:"renderStructuredData",value:function(){if(this.props.structuredDataComponent){var e=this.props.structuredDataComponent;return F.a.createElement(e,{fileCollection:this.props.fileCollection,fileId:this.props.fileId})}}}]),t}(F.a.Component);ae.defaultProps={position:[50,50],fileCollection:"imageFiles"};var ce=n(17),ue=Object(ce.c)({isPreloaded:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case f:return!0;default:return e}},isPrepared:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case p:case u:return!0;case h:return!1;default:return e}},isActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case u:return!0;case l:return!1;default:return e}},isActivated:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case c:return!0;case l:return!1;default:return e}},initialScrollerPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u:return t.payload.position||"top";case l:return null;default:return e}}});var se="COLLECTION_RESET",le="COLLECTION_ADD",fe="COLLECTION_CHANGE",pe="COLLECTION_REMOVE",de="COLLECTION_ORDER";function he(e){var t=e.collectionName,n=e.items;return{type:se,meta:{collectionName:t},payload:{collectionName:t,items:n}}}function ve(e){var t=e.collectionName,n=e.attributes,r=e.order;return{type:le,meta:{collectionName:t},payload:{attributes:n,order:r}}}function ge(e){var t=e.collectionName,n=e.attributes;return{type:fe,meta:{collectionName:t},payload:{attributes:n}}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case le:case fe:return t.payload.attributes;default:return e}}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var we=function(e){var t={};function n(n){return t[n]=t[n]||Object(ce.c)({attributes:ye,state:Object(ce.c)({custom:e[n]||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},common:ue})}),t[n]}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,o=ye(e.attributes,t);return n(o.type)(r(e,e.attributes,o),t)};function r(e,t,n){return t&&t.type!==n.type?be({},e,{state:be({},e.state,{custom:void 0})}):e}},Oe=n(2),Ee=n.n(Oe),_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;return function(t){if(n){if(!t[n])throw new Error("Cannot select from unknown namespace ".concat(n,"."));t=t[n]}return t[e].items||{}}};function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e,t,n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,Object(a.a)({},Pe(t),n))}function Pe(e){return"__".concat(e,"_connectedId")}var Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.id;return function(t,o){var i=r,a=t;if(n){if(!t[n])throw new Error("Cannot select from unknown namespace ".concat(n,"."));a=t[n]}if(!a[e])throw new Error("Cannot select from unknown collection ".concat(e,"."));return"function"==typeof r&&(i=r(t,o)),(i=i||t[Pe(e)])?a[e].items[i]:null}}};function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.itemReducer,i=void 0===o?ye:o,c={order:[],items:{}};return function(){var t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,u=arguments.length>1?arguments[1]:void 0;if(!u.meta||u.meta.collectionName!=e)return o;switch(u.type){case se:return{order:u.payload.items.map((function(e){return e[r]})),items:u.payload.items.reduce((function(e,t){return e[t[r]]=i(void 0,ve({collectioName:u.payload.collectioName,attributes:t})),e}),{})};case le:return{order:u.payload.order,items:Te({},o.items,Object(a.a)({},u.payload.attributes[r],i(void 0,u)))};case fe:return n=u.payload.attributes[r],{order:o.order,items:Te({},o.items,Object(a.a)({},n,i(o.items[n],u)))};case pe:return n=u.payload.attributes[r],delete(t=Te({},o.items))[n],{order:u.payload.order,items:t};case de:return{items:o.items,order:u.payload.order};default:if(u.meta.itemId){var s=o.items[u.meta.itemId],l=i(s,u);if(l!==s)return{order:o.order,items:Te({},o.items,Object(a.a)({},u.meta.itemId,l))}}return o}}};function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e,t,n){e.meta&&e.meta.collectionName==t&&!e.meta.itemId&&(e.meta=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.meta,{itemId:n}))}function Ne(e,t){return e.meta&&e.meta.collectionName==t}function Me(e){return e.meta&&e.meta.itemId}var De=n(3),Re=n(7);function Le(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Be=n(29),Fe=n.n(Be),Ue=Fe.a.shape({trySubscribe:Fe.a.func.isRequired,tryUnsubscribe:Fe.a.func.isRequired,notifyNestedSubs:Fe.a.func.isRequired,isSubscribed:Fe.a.func.isRequired}),Ve=Fe.a.shape({subscribe:Fe.a.func.isRequired,dispatch:Fe.a.func.isRequired,getState:Fe.a.func.isRequired});F.a.forwardRef;var He=function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",r=function(t){Le(o,t);var r=o.prototype;function o(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return r.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.render=function(){return B.Children.only(this.props.children)},o}(B.Component);return r.propTypes={store:Ve.isRequired,children:Fe.a.element.isRequired},r.childContextTypes=((t={})[e]=Ve.isRequired,t[n]=Ue,t),r}();function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function We(){return(We=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ge(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var ze=n(171),Ye=n.n(ze),Xe=n(95),$e=n.n(Xe),Ke=n(118),Qe=null,Je={notify:function(){}};var Ze=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=Je}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=Qe,e=Qe},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==Qe&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Je)},e}(),et=void 0!==F.a.forwardRef,tt=0,nt={};function rt(){}function ot(e,t){var n,r;void 0===t&&(t={});var o=t,i=o.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,c=o.methodName,u=void 0===c?"connectAdvanced":c,s=o.renderCountProp,l=void 0===s?void 0:s,f=o.shouldHandleStateChanges,p=void 0===f||f,d=o.storeKey,h=void 0===d?"store":d,v=o.withRef,g=void 0!==v&&v,y=Ge(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),m=h+"Subscription",b=tt++,w=((n={})[h]=Ve,n[m]=Ue,n),O=((r={})[m]=Ue,r);return function(t){$e()(Object(Ke.isValidElementType)(t),"You must pass a component to the function returned by "+u+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",r=a(n),o=We({},y,{getDisplayName:a,methodName:u,renderCountProp:l,shouldHandleStateChanges:p,storeKey:h,withRef:g,displayName:r,wrappedComponentName:n,WrappedComponent:t}),i=function(n){function i(e,t){var o;return(o=n.call(this,e,t)||this).version=b,o.state={},o.renderCount=0,o.store=e[h]||t[h],o.propsMode=Boolean(e[h]),o.setWrappedInstance=o.setWrappedInstance.bind(qe(qe(o))),$e()(o.store,'Could not find "'+h+'" in either the context or props of "'+r+'". Either wrap the root component in a <Provider>, or explicitly pass "'+h+'" as a prop to "'+r+'".'),o.initSelector(),o.initSubscription(),o}Le(i,n);var a=i.prototype;return a.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[m]=t||this.context[m],e},a.componentDidMount=function(){p&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.componentWillReceiveProps=function(e){this.selector.run(e)},a.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=rt,this.store=null,this.selector.run=rt,this.selector.shouldComponentUpdate=!1},a.getWrappedInstance=function(){return $e()(g,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+u+"() call."),this.wrappedInstance},a.setWrappedInstance=function(e){this.wrappedInstance=e},a.initSelector=function(){var t=e(this.store.dispatch,o);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.initSubscription=function(){if(p){var e=(this.propsMode?this.props:this.context)[m];this.subscription=new Ze(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(nt)):this.notifyNestedSubs()},a.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.addExtraProps=function(e){if(!(g||l||this.propsMode&&this.subscription))return e;var t=We({},e);return g&&(t.ref=this.setWrappedInstance),l&&(t[l]=this.renderCount++),this.propsMode&&this.subscription&&(t[m]=this.subscription),t},a.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(B.createElement)(t,this.addExtraProps(e.props))},i}(B.Component);return et&&(i.prototype.UNSAFE_componentWillReceiveProps=i.prototype.componentWillReceiveProps,delete i.prototype.componentWillReceiveProps),i.WrappedComponent=t,i.displayName=r,i.childContextTypes=O,i.contextTypes=w,i.propTypes=w,Ye()(i,t)}}var it=Object.prototype.hasOwnProperty;function at(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function ct(e,t){if(at(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!it.call(t,n[o])||!at(e[n[o]],t[n[o]]))return!1;return!0}function ut(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function st(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function lt(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=st(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=st(o),o=r(t,n)),o},r}}var ft=[function(e){return"function"==typeof e?lt(e):void 0},function(e){return e?void 0:ut((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?ut((function(t){return Object(ce.b)(e,t)})):void 0}];var pt=[function(e){return"function"==typeof e?lt(e):void 0},function(e){return e?void 0:ut((function(){return{}}))}];function dt(e,t,n){return We({},n,e,t)}var ht=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,c){var u=e(t,n,c);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return dt}}];function vt(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function gt(e,t,n,r,o){var i,a,c,u,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,g=!f(d,a),y=!l(o,i);return i=o,a=d,g&&y?(c=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),s=n(c,u,a)):g?(e.dependsOnOwnProps&&(c=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),s=n(c,u,a)):y?(h=e(i,a),v=!p(h,c),c=h,v&&(s=n(c,u,a)),s):s}return function(o,l){return d?h(o,l):(c=e(i=o,a=l),u=t(r,a),s=n(c,u,a),d=!0,s)}}function yt(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Ge(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),c=r(e,i),u=o(e,i);return(i.pure?gt:vt)(a,c,u,e,i)}function mt(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function bt(e,t){return e===t}var wt,Ot,Et,_t,xt,kt,Pt,St,jt,Tt,At,It,Ct=(Et=(Ot=void 0===wt?{}:wt).connectHOC,_t=void 0===Et?ot:Et,xt=Ot.mapStateToPropsFactories,kt=void 0===xt?pt:xt,Pt=Ot.mapDispatchToPropsFactories,St=void 0===Pt?ft:Pt,jt=Ot.mergePropsFactories,Tt=void 0===jt?ht:jt,At=Ot.selectorFactory,It=void 0===At?yt:At,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,c=o.areStatesEqual,u=void 0===c?bt:c,s=o.areOwnPropsEqual,l=void 0===s?ct:s,f=o.areStatePropsEqual,p=void 0===f?ct:f,d=o.areMergedPropsEqual,h=void 0===d?ct:d,v=Ge(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=mt(e,kt,"mapStateToProps"),y=mt(t,St,"mapDispatchToProps"),m=mt(n,Tt,"mergeProps");return _t(It,We({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:y,initMergeProps:m,pure:a,areStatesEqual:u,areOwnPropsEqual:l,areStatePropsEqual:p,areMergedPropsEqual:h},v))});function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Mt=function(e){var t=function(t){function n(){return j(this,n),M(this,D(n).apply(this,arguments))}return L(n,t),A(n,[{key:"getChildContext",value:function(){return Object(a.a)({},Pe(e),this.props.itemId)}},{key:"render",value:function(){return this.props.children}}]),n}(F.a.Component);return t.childContextTypes=Object(a.a)({},Pe(e),F.a.PropTypes.number),t};function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Rt=function(e,t,n){var r=X.deep(e.reduce((function(e,n){if("object"==typeof n){var r=Object.keys(n)[0],o=n[r];e[r]=t[o]}else e[n]=t[n];return e}),{}));return n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},X.deep(n)):r},Lt=function(e){var t=e.collection,n=e.dispatch,r=e.collectionName,o=e.idAttribute,i=void 0===o?"id":o,a=e.attributes,c=void 0===a?["id"]:a,u=e.includeConfiguration,s=void 0!==u&&u;n(he({collectionName:r,items:t.map(f)})),t.on("add",(function(e){e.isNew()||n(ve({collectionName:r,attributes:f(e)}))})),t.on("change:id",(function(e){n(ve({collectionName:r,attributes:f(e),order:t.pluck(i)}))})),t.on("change",(function(e){(function(e){return l.some((function(t){return e.hasChanged(t)}))})(e)&&n(ge({collectionName:r,attributes:f(e)}))})),s&&t.on("change:configuration",(function(e){n(ge({collectionName:r,attributes:f(e)}))})),t.on("remove",(function(e){setTimeout((function(){n(function(e){var t=e.collectionName,n=e.attributes,r=e.order;return{type:pe,meta:{collectionName:t},payload:{attributes:n,order:r}}}({collectionName:r,attributes:f(e),order:t.pluck(i)}))}),0)})),t.on("sort",(function(){n(function(e){var t=e.collectionName,n=e.order;return{type:de,meta:{collectionName:t},payload:{order:n}}}({collectionName:r,order:t.pluck(i)}))}));var l=c.map((function(e){return"object"==typeof e?function(e){return e[Object.keys(e)[0]]}(e):e}));function f(e){return Rt(c,e.attributes,s&&e.configuration.attributes)}},Bt=function(e){var t=e.collection,n=e.collectionName,r=e.dispatch,o=e.attributes,i=void 0===o?["id"]:o,a=e.includeConfiguration,c=void 0!==a&&a;r(he({collectionName:n,items:t.map((function(e){return Rt(i,e,c&&e.configuration)}))}))},Ft=n(19),Ut=n.n(Ft),Vt=function(e){var t=e.collection,n=e.collectionName,r=e.dispatch,o=e.idAttribute,i=e.attributes,a=e.includeConfiguration;(Ut.a.Collection&&t instanceof Ut.a.Collection?Lt:Bt)({collection:t,collectionName:n,dispatch:r,idAttribute:o,attributes:i,includeConfiguration:a})};function Ht(e){var t=e.candidates,n=e.page,r=e.fileExists;return t.find((function(e){if(e.condition&&!function(e,t){var n=t[X(e.attribute)];return e.negated?n!=e.value:n==e.value}(e.condition,n))return!1;var t=qt(n,e);return r(X(e.collectionName),t)}))}function qt(e,t){return"id"in t?t.id:e[X(t.attribute)]}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gt=function(e,t,n){if(!t)return null;if(!n[e])throw new Error("No file url templates found for ".concat(e));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({urls:(t.variants||Object.keys(n[e])).reduce((function(r,o){var i=function(e,t,n,r){var o=r[e][n];if(o)return o.replace(":id_partition",(i=t.id,function(e,t){return e.replace(/./g,(function(e,t,n){return t&&(n.length-t)%3==0?"/"+e:e}))}((a=i,c=9,(Array(c).fill(0).join("")+a).slice(-c))))).replace(":basename",t.basename).replace(":pageflow_hls_qualities",(function(){return function(e){return["low","medium","high","fullhd","4k"].filter((function(t){return e.variants.includes(t)})).join(",")}(t)}));var i,a,c}(e,t,o,n);return i&&(r[o]=i),r}),{})},t)};function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Yt=function(e,t,n){if(!t)return null;if(!n[e])throw new Error("Could not find model type for collection name ".concat(e));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{collectionName:e,modelType:n[e]})};function Xt(e,t){return ee(Se(e,{namespace:"files"})(t),(function(e){return e.fileUrlTemplates}),(function(e){return e.modelTypes}),(function(t,n,r){return Kt(e,t,n,r)}))}function $t(){return ee((function(e){return e.files}),(function(e){return function(t,n){return n&&!!Se(t)({id:n})(e)}}))}function Kt(e,t,n,r){return Yt(e,Gt(e,t,n),r)}function Qt(e){var t=e.page;return function(e,n){var r="function"==typeof t?t(n):t;return r?e.pageTypes[X(r.type)]:null}}function Jt(e){var t=e.page,n=e.variant,r=void 0===n?"medium":n;return ee(t,$t(),(function(e){return e}),(function(e,t,n){if(e){var o=Ht({candidates:Qt({page:e})(n).thumbnailCandidates,page:e,fileExists:t});if(o){var i=Xt(X(o.collectionName),{id:qt(e,o)});return"image_files"==o.collectionName?i(n).urls[r]:"video_files"==o.collectionName?i(n).urls["poster_".concat(r)]:void 0}}}))}var Zt=Se("pages"),en=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).namespace;return function(n){if(t){if(!n[t])throw new Error("Cannot select from unknown namespace ".concat(t,"."));n=n[t]}var r=n[e];return r.items[r.order[0]]}}("pages");function tn(){return ee(en,(function(e){return e&&e.attributes}))}function nn(e){return ee(en,(function(t){return t&&t.attributes[e]}))}function rn(e,t){return ee(Zt(t),(function(t){return t&&t.attributes[e]}))}function on(e){return ee(Zt(e),(function(e){return e&&e.attributes}))}function an(e,t){return ee(Zt(t),(function(t){return t&&t.state.custom[e]}))}function cn(e){return ln("isActive",e)}function un(e){return ln("isPreloaded",e)}function sn(e){return ln("isPrepared",e)}function ln(e,t){return ee(Zt(t),(function(t){return t&&t.state.common[e]}))}var fn=Ee.a.mark(dn),pn=Ee.a.mark(hn);function dn(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeLatest)([d,p,u],hn);case 2:case"end":return e.stop()}}),fn)}function hn(e){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.type!=d){t.next=5;break}return t.next=3,Object(De.call)(Re.delay,5e3);case 3:return t.next=5,Object(De.put)(w());case 5:case"end":return t.stop()}}),pn)}var vn=Ee.a.mark(gn);function gn(e){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Ut.a.Collection){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Object(Re.takeEvery)(m,Ee.a.mark((function t(n){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(mn,{pagesCollection:e,id:Me(n),name:n.payload.name,value:n.payload.value});case 2:case"end":return t.stop()}}),t)})));case 4:return t.next=6,Object(Re.takeEvery)(b,Ee.a.mark((function t(n){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(yn,{pagesCollection:e,pageId:Me(n),linkId:n.payload.linkId,name:n.payload.name,value:n.payload.value});case 2:case"end":return t.stop()}}),t)})));case 6:case"end":return t.stop()}}),vn)}function yn(e){var t=e.pagesCollection,n=e.pageId,r=e.linkId,o=e.name,i=e.value,a=bn(t,n).pageLinks().get(r);if(!a)throw new Error("Could not find page link with id ".concat(r," in page with perma id ").concat(n,"."));a.set(o,i)}function mn(e){var t=e.pagesCollection,n=e.id,r=e.name,o=e.value;bn(t,n).configuration.set(r,o)}function bn(e,t){var n=e.where({perma_id:t})[0];if(!n)throw new Error("Could not find page with perma id ".concat(t,"."));return n}var wn=function(e){var t=e.pages,n=e.pageTypeSagas;return(Ee.a.mark((function e(){var r;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(dn(),"t0",1);case 1:return e.delegateYield(gn(t),"t1",2);case 2:return e.next=4,Object(Re.takeEvery)(g,Ee.a.mark((function e(){var t,o;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(rn("type"));case 2:if(t=e.sent,!(o=n[t])){e.next=8;break}return e.next=7,Object(De.fork)(o);case 7:r=e.sent;case 8:case"end":return e.stop()}}),e)})));case 4:return e.next=6,Object(Re.takeEvery)(y,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=3;break}return e.next=3,Object(De.cancel)(r);case 3:case"end":return e.stop()}}),e)})));case 6:case"end":return e.stop()}}),e)})))},On=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"getChildContext",value:function(){return{mediaContext:this.props.mediaContext}}},{key:"render",value:function(){return this.props.children}}]),t}(F.a.Component);On.childContextTypes={mediaContext:F.a.PropTypes.object};var En=Mt("pages"),_n=function(e){var t=e.Component,n=e.store,r=e.selectTargetElement,o=void 0===r?function(e){return e[0]}:r;return{scroller:!1,enhance:function(e,r){Ut.a.render(F.a.createElement(He,{store:n},F.a.createElement(En,{itemId:xn(e)},F.a.createElement(On,{mediaContext:{page:e.page("instance")}},F.a.createElement(t,null)))),o(e)),n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(g,e)}({id:xn(e)}))},preload:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(f,e)}({id:xn(e)}))},prepare:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(p,e)}({id:xn(e)}))},unprepare:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(d,e)}({id:xn(e)}))},activating:function(e,t,r){n.dispatch(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.position;return _(u,t,{position:n})}({id:xn(e),position:r.position}))},activated:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(c,e)}({id:xn(e)}))},deactivating:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(l,e)}({id:xn(e)}))},deactivated:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(s,e)}({id:xn(e)}))},resize:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(v,e)}({id:xn(e)}))},update:function(e,t){pageflow.commonPageCssClasses.updateCommonPageCssClasses(e,t)},cleanup:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(y,e)}({id:xn(e)})),Ut.a.unmountComponentAtNode(e[0])}}};function xn(e){return parseInt(e.attr("id"),10)}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e,t){return Object.keys(t).reduce((function(n,r){return"function"==typeof e[r]?n[r]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e[r].apply(this,o),t[r].apply(this,o)}:n[r]=t[r],n}),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}var Sn,jn,Tn={init:function(e){var t=e.pages,n=e.dispatch;Vt({collection:t,collectionName:"pages",dispatch:n,idAttribute:"perma_id",attributes:["perma_id",{type:"template"},"chapter_id"],includeConfiguration:!0})},createReducers:function(e){var t=e.pageTypes,n=(void 0===t?[]:t).reduce((function(e,t){var n=t.name,r=t.reducer;return e[n]=r,e}),{});return{pages:Ae("pages",{idAttribute:"permaId",itemReducer:we(n)})}},createMiddleware:function(){return function e(t){var n,r=t.getState,o=t.dispatch,i=(n=[],{subscribe:function(e){return n.push(e),function(){return function(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}(n,e)}},emit:function(e){for(var t=n.slice(),r=0,o=t.length;r<o;r++)t[r](e)}});return e.getState=r,e.dispatch=o,e.subscribe=i.subscribe,function(e){return function(t){var n=e(t);return i.emit(t),n}}}},createSaga:function(e){var t=e.pages,n=e.pageTypes,r=void 0===n?[]:n,o=e.middleware,i=r.reduce((function(e,t){var n=t.name,r=t.saga;return e[n]=r,e}),{});return function(e,t){var n=Ee.a.mark(l),r=Ee.a.mark(f),o=Ee.a.mark(p),i=Ee.a.mark(d),a=Ee.a.mark(h),c=t.itemSaga,u=t.middleware,s=_e(e);return l;function l(){var e;return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={},t.next=3,Object(Re.takeEvery)([se,le,pe],f,e);case 3:case"end":return t.stop()}}),n)}function f(e){var t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(De.select)(s);case 2:return t=n.sent,n.delegateYield(p(t,e),"t0",4);case 4:return n.delegateYield(d(t,e),"t1",5);case 5:case"end":return n.stop()}}),r)}function p(e,t){return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object.keys(t).map((function(n){if(!(n in e))return Object(De.cancel)(t[n])}));case 2:case"end":return n.stop()}}),o)}function d(e,t){var n;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object.keys(e).map((function(e){if(!t[e])return Object(De.fork)(h,parseInt(e,10))}));case 2:n=r.sent,Object.keys(e).forEach((function(e,r){t[e]||(t[e]=n[r])}));case 4:case"end":return r.stop()}}),i)}function h(t){var n;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Object(Re.runSaga)(c(),{subscribe:function(n){return u.subscribe((function(r){Ne(r,e)&&Me(r)!=t||n(r)}))},dispatch:function(n){Ce(n,e,t),u.dispatch(n)},getState:function(){return ke(u.getState(),e,t)}}),r.prev=1,r.next=4,Object(De.call)((function(){return n.done}));case 4:return r.prev=4,n.cancel(),r.finish(4);case 7:case"end":return r.stop()}}),a,null,[[1,,4,7]])}}("pages",{itemSaga:wn({pages:t,pageTypeSagas:i}),middleware:o})}},An=(jn=Pe(Sn="pages"),function(e,t,n){var r=Ct(e?function(t,n){var r=e(ke(t,Sn,n[jn]),n);return"function"==typeof r?function(e,t){return r(ke(e,Sn,t[jn]),t)}:r}:null,t?function(e,n){var r=function(t){return Ce(t,Sn,n[jn]),e(t)};return"function"==typeof t?t(r,n):Object(ce.b)(t,r)}:null,n);return function(e){var t=r(e),n=function(e){function n(){return j(this,n),M(this,D(n).apply(this,arguments))}return L(n,e),A(n,[{key:"render",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props,Object(a.a)({},jn,this.context[jn]));return F.a.createElement(t,e)}}]),n}(F.a.Component);return n.contextTypes=Object(a.a)({},jn,F.a.PropTypes.number),n}});var In=An(te({loaded:un()}))(ae),Cn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this.props.page,t=X.concat(this.props.propertyNamePrefix,this.props.propertyBaseName);return F.a.createElement(In,{fileId:e["".concat(t,"Id")],fileCollection:this.props.fileCollection,position:[e["".concat(t,"X")],e["".concat(t,"Y")]],className:"background background_image",structuredDataComponent:this.props.structuredDataComponent})}}]),t}(F.a.Component);Cn.defaultProps={propertyBaseName:"backgroundImage"};var Nn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){return F.a.createElement("div",{className:"shadow_wrapper"},F.a.createElement("div",{className:V()("shadow",this.props.className),style:this.style()}))}},{key:"style",value:function(){if("gradientOpacity"in this.props.page)return{opacity:this.props.page.gradientOpacity/100}}}]),t}(F.a.Component),Mn=function(e){return F.a.createElement("div",{className:"content",onTouchStart:e.onInteraction,onMouseMove:e.onInteraction},e.children)},Dn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this;return React.createElement("div",{className:"scroller-wrapper",ref:function(t){return e.wrapperElement=t}},React.createElement("div",{ref:function(t){return e.scrollerElement=t},className:V()("scroller",this.props.className),style:this.props.style},React.createElement("div",null,this.props.children)))}},{key:"componentDidMount",value:function(){if("undefined"!=typeof jQuery){var e=jQuery(this.scrollerElement);e.scroller({eventListenerTarget:this.wrapperElement}),this.scroller=e.scroller("instance")}}},{key:"componentDidUpdate",value:function(){this.scroller.refresh()}},{key:"enable",value:function(){this.scroller.enable(),this.scroller.afterAnimationHook()}},{key:"disable",value:function(){this.scroller.disable()}},{key:"resetPosition",value:function(e){this.scroller.resetPosition(e)}}]),t}(B.Component),Rn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentWillReceiveProps",value:function(e){!this.props.enabled&&e.enabled?this.refs.scroller.enable():this.props.enabled&&!e.enabled&&this.refs.scroller.disable(),this.props.initialScrollerPosition!==e.initialScrollerPosition&&e.initialScrollerPosition&&this.refs.scroller.resetPosition({position:e.initialScrollerPosition})}},{key:"getChildContext",value:function(){var e=this;return this._pageScroller=this._pageScroller||{disable:function(){e.refs.scroller.disable()},enable:function(){e.refs.scroller.enable()}},{pageScroller:this._pageScroller}}},{key:"render",value:function(){return F.a.createElement(Dn,{ref:"scroller",className:(e=this.props,V()(e.className,{"scroller-clipped_bottom":!!e.marginBottom})),style:Ln(this.props)},F.a.createElement("div",{className:"content_wrapper"},this.props.children));var e}}]),t}(F.a.Component);function Ln(e){if(e.marginBottom)return{bottom:e.marginBottom}}Rn.childContextTypes={pageScroller:F.a.PropTypes.object};var Bn,Fn=An(te({enabled:ln("isActivated",Bn),initialScrollerPosition:function(e){return ln("initialScrollerPosition",e)}()}))(Rn),Un=function(e){return React.createElement(Mn,null,React.createElement(Fn,null,e.children))},Vn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){return F.a.createElement("h3",{className:"page_header"},F.a.createElement("span",{className:"page_header-tagline"},this.props.page.tagline),F.a.createElement("span",{className:"page_header-title"},this.props.page.title),F.a.createElement("span",{className:"page_header-subtitle"},this.props.page.subtitle))}}]),t}(F.a.Component);function Hn(e){return F.a.createElement("div",{className:qn(e)},F.a.createElement("div",{className:"paragraph",dangerouslySetInnerHTML:Wn(e)}),e.children)}function qn(e){return V()("page_text",Object(a.a)({},"page_text-margin_".concat(e.marginBottom),e.marginBottom!=Hn.defaultProps.marginBottom))}function Wn(e){return{__html:e.page.text}}function Gn(e){return function(t,n){var r=e.split(".");if(!(r[0]in n))throw new Error("Missing required prop ".concat(r[0],"."));return r.reduce((function(e,t){return e&&e[t]}),n)}}function zn(e){return function(t,n,r){return oe(e,r)}}Hn.defaultProps={marginBottom:"for_scroll_indicator_on_phone"};var Yn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){return F.a.createElement("a",{href:this._href(),className:this.props.className,onClick:this._handleClick.bind(this)},this.props.children)}},{key:"_href",value:function(){return this._targetPage()?"#"+this._targetPage().permaId:"#missing"}},{key:"_handleClick",value:function(e){this._targetPage()&&pageflow.slides.goToByPermaId(this._targetPage().permaId,{transition:this.props.pageLink.pageTransition}),e.preventDefault()}},{key:"_targetPage",value:function(){return this.props.targetPage}}]),t}(F.a.Component),Xn=Ct(te({targetPage:on({id:Gn("pageLink.targetPageId")})}))(Yn);function $n(e){return React.createElement("div",{className:Kn(e)})}function Kn(e){return V()({load_image:e.lazy&&e.loaded},e.className,(t=e.pageType)?"is_".concat(t.name):"is_dangling",function(e){var t=Ht({candidates:Qn(e),page:e.page,fileExists:e.fileExists});if(t)return function(e,t){return[e.lazy?"lazy":null,t.cssClassPrefix,e.imageStyle,qt(e.page,t)].filter(Boolean).join("_")}(e,t)}(e));var t}function Qn(e){return[Jn(e)].concat(Object(K.a)((t=e.pageType)?t.thumbnailCandidates:[]));var t}function Jn(e){return{id:e.customThumbnailId,cssClassPrefix:"pageflow_image_file",collectionName:"image_files"}}$n.defaultProps={imageStyle:"navigation_thumbnail_large"};var Zn=An(te({pageType:Qt({page:function(e){return e.page}}),fileExists:$t()}))($n),er=An(te({loaded:un(),lazy:!0}))(Zn);function tr(e){return V()("add_info_box",{empty:nr(e),title_empty:z(e.title),description_empty:z(e.description),"add_info_box-hidden_during_playback":e.hiddenDuringPlayback})}function nr(e){return z(e.title)&&z(e.description)}var rr=function(e){return React.createElement("div",{className:tr(e)},function(e){if(!z(e.title))return React.createElement("h3",null,e.title)}(e),function(e){if(!z(e.description))return React.createElement("p",{dangerouslySetInnerHTML:{__html:e.description}})}(e))};function or(e){return React.createElement("div",{className:V()("controls",e.className),"data-role":"player_controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}function ir(e){return F.a.createElement("svg",{className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height,viewBox:"".concat(e.viewBoxLeft," ").concat(e.viewBoxTop," ").concat(e.viewBoxWidth," ").concat(e.viewBoxHeight)},e.children)}ir.defaultProps={width:20,height:20,viewBoxLeft:0,viewBoxTop:0};var ar=ir,cr=function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:24,viewBoxHeight:24}),React.createElement("path",{d:"M21.312,14.056l-1.691-0.98c0,0-0.472-0.216-0.446-1.073c0,0-0.128-0.961,0.478-1.293l1.661-1.014 c0,0,0.546-0.245,0.313-0.818l-0.707-1.598c0,0-0.229-0.625-0.902-0.423l-1.93,0.615c0,0-0.666-0.009-1.078-0.458 c0,0-0.687-0.662-0.476-1.229l0.445-1.924c0,0,0.114-0.563-0.312-0.768l-1.995-0.757c0,0-0.43-0.026-0.562,0.305l-1.122,2.006 c0,0-0.524,0.437-1.248,0.292c0,0-0.752-0.072-0.928-0.253c0,0-1.135-1.916-1.19-2.015c0,0-0.21-0.437-0.65-0.262L7.144,3.176 c0,0-0.367,0.229-0.275,0.559l0.649,2.441c0,0-0.139,0.597-0.561,0.924c0,0-0.745,0.55-1.104,0.483L3.858,7.1 c0,0-0.578-0.207-0.805,0.294L2.306,9.232c0,0-0.143,0.38,0.251,0.616l1.96,1.123c0,0,0.624,0.286,0.441,1.38 c0,0,0.037,0.804-0.756,1.24c-0.793,0.437-1.476,0.875-1.476,0.875s-0.437,0.21-0.249,0.681c0.189,0.471,0.895,1.811,0.895,1.811 s0.131,0.336,0.762,0.091l1.723-0.466c0,0,0.5-0.151,1.031,0.319c0,0,0.741,0.504,0.687,0.919l-0.48,2.433 c0,0-0.157,0.411,0.312,0.676l1.929,0.733c0,0,0.538,0.052,0.68-0.389l0.84-1.532c0,0,0.278-0.669,1.177-0.625 c0,0,0.909-0.081,1.227,0.407l1.101,1.833c0,0,0.199,0.466,0.791,0.188l1.709-0.728c0,0,0.479-0.315,0.333-0.743l-0.533-1.853 c0,0-0.238-0.5,0.259-1.055c0,0,0.533-0.876,1.27-0.701l2.043,0.487c0,0,0.424,0.187,0.793-0.413l0.659-1.639 C21.685,14.901,21.886,14.313,21.312,14.056z M8.542,13.474c-0.824-1.931,0.073-4.166,2.004-4.989 c1.931-0.826,4.165,0.073,4.988,2.004c0.825,1.931-0.073,4.164-2.005,4.989C11.599,16.303,9.365,15.404,8.542,13.474z"}))},ur=function(e){return React.createElement(ar,Object.assign({},e,{viewBoxLeft:5,viewBoxTop:5,viewBoxWidth:145,viewBoxHeight:145}),React.createElement("path",{d:"m80 15c-35.88 0-65 29.12-65 65s29.12 65 65 65 65-29.12 65-65-29.12-65-65-65zm0 10c30.36 0 55 24.64 55 55s-24.64 55-55 55-55-24.64-55-55 24.64-55 55-55z"}),React.createElement("path",{d:"m57.373 18.231a9.3834 9.1153 0 1 1 -18.767 0 9.3834 9.1153 0 1 1 18.767 0z",transform:"matrix(1.1989 0 0 1.2342 21.214 28.75)"}),React.createElement("path",{d:"m90.665 110.96c-0.069 2.73 1.211 3.5 4.327 3.82l5.008 0.1v5.12h-39.073v-5.12l5.503-0.1c3.291-0.1 4.082-1.38 4.327-3.82v-30.813c0.035-4.879-6.296-4.113-10.757-3.968v-5.074l30.665-1.105"}))},sr={Checkmark:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("polygon",{points:"434.442,58.997 195.559,297.881 77.554,179.88 0,257.438 195.559,453.003 512,136.551 "}))},CircleWithNotch:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:1e3,viewBoxHeight:1e3}),React.createElement("path",{d:"M990,497.6c0,66.4-13,129.8-38.8,190.3c-25.9,60.5-60.7,112.7-104.4,156.4C803,888,750.9,922.8,690.3,948.7c-60.5,25.9-124,38.8-190.3,38.8s-129.8-12.9-190.3-38.8S197,888,153.3,844.3c-43.7-43.7-78.5-95.9-104.4-156.4C22.9,627.4,10,563.9,10,497.6c0-80.9,18.4-156.5,55.2-226.7c36.8-70.2,87.2-128,151.2-173.4s135.2-73.8,213.6-85v142.2c-80.6,16.4-147.4,56.7-200.4,120.9c-53,64.2-79.5,138.2-79.6,222c0,47.4,9.3,92.7,27.9,135.9c18.6,43.2,43.4,80.4,74.6,111.6c31.2,31.2,68.4,56.1,111.6,74.6c43.2,18.5,88.5,27.8,135.9,27.9c47.4,0,92.7-9.2,135.9-27.9C679,801,716.2,776.1,747.4,745c31.2-31.1,56-68.3,74.6-111.6c18.6-43.3,27.9-88.6,27.9-135.9c0-83.9-26.5-157.9-79.6-222C717.2,211.3,650.4,171,569.9,154.6V12.5c78.4,11.3,149.6,39.6,213.6,85c64,45.4,114.4,103.2,151.2,173.4c36.8,70.2,55.2,145.7,55.2,226.7H990z"}))},Disk:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:24,viewBoxHeight:24}),React.createElement("circle",{cx:"12",cy:"12",r:"12"}))},Gear:cr,Info:ur,Pause:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("path",{d:"M162.642 148.337h86.034v215.317h-86.034v-215.316z"}),React.createElement("path",{d:"M293.356 148.337h86.002v215.317h-86.002v-215.316z"}))},Play:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("path",{d:"M152.443 136.417l207.114 119.573-207.114 119.593z"}))},Subtitles:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:1200,viewBoxHeight:1200}),React.createElement("path",{transform:"translate(100,100)",d:"M893.4,599V500H401.1V599H893.4z M893.4,794.5v-98.9H695.5v98.9H893.4z M598.9,794.5v-98.9H106.6v98.9H598.9z M106.6,500V599h197.8V500H106.6z M893.4,106.7c26.1,0,48.7,10,67.9,29.9s28.8,42.9,28.8,69v588.9c0,26.1-9.6,49.1-28.8,69c-19.2,19.9-41.8,29.9-67.9,29.9H106.6c-26.1,0-48.7-10-67.9-29.9c-19.2-19.9-28.8-42.9-28.8-69V205.5c0-26.1,9.6-49.1,28.8-69s41.8-29.9,67.9-29.9H893.4z"}))}},lr={toggleInfoBox:sr.Info,mediaQuality:sr.Gear,textTracks:sr.Subtitles,activeMenuItem:sr.Checkmark,loadingSpinner:sr.CircleWithNotch,play:sr.Play,pause:sr.Pause};function fr(e){var t=lr[e.name];if(!t)throw new Error('No icon registered for "'.concat(e.name,'".'));return F.a.createElement(t,e)}var pr=function(e){return React.createElement("div",{className:"vjs-loading-spinner"},React.createElement(fr,{name:"loadingSpinner"}))},dr=function(e){return An(te({id:ee(cn(),(function(e){return e?"firstContent":void 0}))}))(e)};var hr=dr((function(e){return React.createElement("a",{className:vr(e),href:"#",tabIndex:"4",id:e.id,title:e.title,onClick:gr(e)},function(e){return e.iconName?React.createElement(fr,{name:e.iconName}):React.createElement("span",null)}(e))}));function vr(e){return V()("vjs-play-control",{"vjs-playing":e.isPlaying},{"player_controls-play_button-custom_icon":!!e.iconName})}function gr(e){return function(t){e.onClick&&e.onClick(t),t.preventDefault()}}function yr(e){return React.createElement("div",{className:V()(e.className)},function(e){if(isNaN(e))return mr;var t=Math.floor(e)%60,n=Math.floor(e/60)%60,r=Math.floor(e/60/60);return r>0?"".concat(r,":").concat(br(n),":").concat(br(t)):"".concat(n,":").concat(br(t))}(e.value))}var mr="-:--";function br(e){return e<10?"0"+e:e}yr.defaultProps={value:0};var wr=function(e){return React.createElement(yr,{className:"vjs-current-time",value:e.currentTime})},Or=function(e){return React.createElement("div",{className:"vjs-time-divider"},"/")},Er=function(e){return React.createElement(yr,{className:"vjs-duration",value:e.duration})},_r=n(94),xr=n.n(_r),kr=n(36),Pr=n.n(kr),Sr=37,jr=39,Tr=function(e){function t(e,n){var r;return j(this,t),(r=M(this,D(t).call(this,e,n))).state={handleWidth:null,progressHolderWidth:null},r.measureProgressHolder=function(e){var t=e.width;r.setState({progressHolderWidth:t})},r.measureHandle=function(e){var t=e.width;r.setState({handleWidth:t})},r.handleStop=function(e,t){r.props.onSeek&&r.props.onSeek(r.positionToTime(t.x))},r.handleDrag=function(e,t){r.props.onScrub&&r.props.onScrub(r.positionToTime(t.x))},r.handleKeyDown=function(e){var t;e.keyCode==Sr?t=Math.max(0,r.props.currentTime-1):e.keyCode==jr&&(t=Math.min(r.props.currentTime+1,r.props.duration||1/0)),r.prop.onSeek&&r.props.onSeek(t)},r}return L(t,e),A(t,[{key:"positionToTime",value:function(e){return this.props.duration&&this.state.progressHolderWidth?Math.max(0,Math.min(1,e/this.state.progressHolderWidth))*this.props.duration:0}},{key:"render",value:function(){return F.a.createElement("div",{className:"vjs-progress-control",tabIndex:"4",onKeyDown:this.handleKeyDown},F.a.createElement(Pr.a,{whitelist:["width"],onMeasure:this.measureProgressHolder},F.a.createElement(_r.DraggableCore,{onStart:this.handleDrag,onDrag:this.handleDrag,onStop:this.handleStop},F.a.createElement("div",{className:"vjs-progress-holder"},F.a.createElement("div",{className:"vjs-load-progress",style:{width:Ar(this.loadProgress())}}),F.a.createElement("div",{className:"vjs-play-progress",style:{width:Ar(this.playProgress())}}),F.a.createElement(Pr.a,{whitelist:["width"],onMeasure:this.measureHandle},F.a.createElement("div",{className:"vjs-seek-handle",style:{left:this.handlePosition()}}))))))}},{key:"handlePosition",value:function(){return this.state.handleWidth&&this.state.progressHolderWidth?(this.state.progressHolderWidth-this.state.handleWidth)*this.playProgress():Ar(this.playProgress())}},{key:"loadProgress",value:function(){return this.props.duration>0?this.props.bufferedEnd/this.props.duration:0}},{key:"playProgress",value:function(){return this.props.duration>0?this.props.currentTime/this.props.duration:0}}]),t}(F.a.Component);function Ar(e){return e>0?100*e+"%":0}Tr.defaultProps={currentTime:0,bufferedEnd:0};var Ir=function(e){function t(e,n){var r;return j(this,t),(r=M(this,D(t).call(this,e,n))).state={subMenuVisible:!1},r.onLinkClick=function(e){e.preventDefault(),r.props.subMenuItems.length>0&&r.setState({subMenuVisible:!0}),r.props.onClick&&r.props.onClick()},r.onMouseEnter=function(){r.props.subMenuItems.length>0&&r.setState({subMenuVisible:!0}),r.props.onMouseEnter&&r.props.onMouseEnter()},r.onMouseLeave=function(){r.closeMenu(),r.props.onMouseEnter&&r.props.onMouseLeave()},r.onFocus=function(){clearTimeout(r.closeMenuTimeout)},r.onBlur=function(){clearTimeout(r.closeMenuTimeout),r.closeMenuTimeout=setTimeout((function(){r.closeMenu()}),100)},r.closeMenu=function(){r.setState({subMenuVisible:!1})},r}return L(t,React.Component),A(t,[{key:"render",value:function(){var e=this,t=this.props;return React.createElement("div",{className:Cr(t,this.state.subMenuVisible),ref:function(t){return e.wrapper=t},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur},React.createElement("a",{className:Dr(t,"link"),href:"#",tabIndex:"4",title:t.title,onClick:this.onLinkClick},React.createElement(fr,{className:Dr(t,"icon"),name:t.iconName})),function(e,t){if(e.subMenuItems.length>0)return React.createElement("ul",{className:"player_controls-menu_bar_button_sub_menu"},function(e,t){return e.subMenuItems.map((function(n){return React.createElement("li",{className:Nr(n),key:n.value},React.createElement("a",{className:"player_controls-menu_bar_button_sub_menu_item_link",href:"#",tabIndex:"4",onClick:Mr(e,n.value,t)},function(e){if(e.active)return React.createElement(fr,{className:"player_controls-menu_bar_button_sub_menu_item_icon",name:"activeMenuItem"})}(n),n.label,function(e,t){if(t.annotation)return React.createElement("span",{className:Dr(e,"sub_menu_item_annotation")},t.annotation)}(e,n)))}))}(e,t))}(t,this.closeMenu))}}]),t}();function Cr(e,t){return V()({"player_controls-menu_bar_button-sub_menu_visible":t},Dr(e))}function Nr(e){return V()("player_controls-menu_bar_button_sub_menu_item",{"player_controls-menu_bar_button_sub_menu_item-active":e.active})}function Mr(e,t,n){return function(r){r.preventDefault(),n(),e.onSubMenuItemClick&&e.onSubMenuItemClick(t)}}function Dr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return V()(["player_controls-menu_bar_button"].concat(n).join("_"),[e.className].concat(n).join("_"))}function Rr(e){return e.items.length<2?React.createElement("noscript",null):React.createElement(Ir,{className:"player_controls-quality_menu_button",title:e.buttonTitle,iconName:"mediaQuality",subMenuItems:e.items,onSubMenuItemClick:e.onItemClick})}function Lr(e){return e.items.length<2?React.createElement("noscript",null):React.createElement(Ir,{className:"player_controls-text_tracks_menu_button",title:e.buttonTitle,iconName:"textTracks",subMenuItems:e.items,onSubMenuItemClick:e.onItemClick})}function Br(e){return React.createElement("div",{className:Fr(e)},function(e){return e.additionalButtons.map((function(t){return React.createElement(Ir,{title:t.label,iconName:t.iconName,className:t.className,key:t.name,onClick:Ur(e.onAdditionalButtonClick,t.name),onMouseEnter:Ur(e.onAdditionalButtonMouseEnter,t.name),onMouseLeave:Ur(e.onAdditionalButtonMouseLeave,t.name)})}))}(e),React.createElement(Lr,{buttonTitle:e.textTracksMenuButtonTitle,items:e.textTracksMenuItems,onItemClick:e.onTextTracksMenuItemClick}),React.createElement(Rr,{buttonTitle:e.qualityMenuButtonTitle,items:e.qualityMenuItems,onItemClick:e.onQualityMenuItemClick}))}function Fr(e){return V()(e.className,"player_controls-menu_bar",{"player_controls-menu_bar-hidden_on_phone":e.hiddenOnPhone,"player_controls-menu_bar-stand_alone":e.standAlone,"player_controls-menu_bar-inverted":e.inverted})}function Ur(e,t){if(e)return function(){return e(t)}}function Vr(e){return function(t){function n(e){var t;return j(this,n),(t=M(this,D(n).call(this,e))).checkVisibility=function(){var e=window.getComputedStyle(t.element);t.lastVisibility!=e.visibility&&("visible"==e.visibility&&"none"!=e.display?t.props.onVisible&&t.props.onVisible():t.props.onHidden&&t.props.onHidden()),t.lastVisibility=e.visibility},t}return L(n,t),A(n,[{key:"componentDidMount",value:function(){this.element=Ut.a.findDOMNode(this),this.updateInterval()}},{key:"componentDidUpdate",value:function(){this.updateInterval()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval),this.interval=null,this.element=null}},{key:"updateInterval",value:function(){this.props.watchVisibility&&!this.interval?this.interval=setInterval(this.checkVisibility,50):!this.props.watchVisibility&&this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"render",value:function(){return F.a.createElement(e,this.props)}}]),n}(F.a.Component)}function Hr(e){return V()("vjs-control-bar",{with_quality_menu_present:e.qualityMenuItems&&e.qualityMenuItems.length>=2,with_text_tracks_menu_present:e.textTracksMenuItems&&e.textTracksMenuItems.length>=2})}Ir.defaultProps={subMenuItems:[]},Rr.defaultProps={items:[]},Lr.defaultProps={items:[]},Br.defaultProps={additionalButtons:[],standAlone:!0};var qr=Vr((function(e){return F.a.createElement(or,e,F.a.createElement("span",{className:"hint"},e.hint),F.a.createElement(rr,Object.assign({},e.infoBox,{hiddenDuringPlayback:e.infoBoxHiddenDuringPlayback})),F.a.createElement("div",{className:Hr(e)},function(e){if(e.isLoading)return F.a.createElement(pr,e)}(e),F.a.createElement("div",{className:"play_button"},F.a.createElement(hr,{title:e.playButtonTitle,iconName:e.playButtonIconName,isPlaying:e.isPlaying,onClick:e.onPlayButtonClick})),function(e){if(e.hasProgress)return F.a.createElement("div",{className:"player_controls-progress"},F.a.createElement(wr,e),F.a.createElement(Or,null),F.a.createElement(Er,e),F.a.createElement(Tr,e))}(e),F.a.createElement("div",{className:"control_bar_text"},e.controlBarText)),F.a.createElement(Br,{standAlone:!1,additionalButtons:e.additionalMenuBarButtons,onAdditionalButtonClick:e.onAdditionalButtonClick,onAdditionalButtonMouseEnter:e.onAdditionalButtonMouseEnter,onAdditionalButtonMouseLeave:e.onAdditionalButtonMouseLeave,qualityMenuButtonTitle:e.qualityMenuButtonTitle,qualityMenuItems:e.qualityMenuItems,onQualityMenuItemClick:e.onQualityMenuItemClick,textTracksMenuButtonTitle:e.textTracksMenuButtonTitle,textTracksMenuItems:e.textTracksMenuItems,onTextTracksMenuItemClick:e.onTextTracksMenuItemClick}))}));function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gr=ee(zr,(function(e){return function(t,n){return I18n.t(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({locale:e},n))}}));function zr(e){return e.i18n.locale}var Yr=Ct(te({t:Gr}))((function(e){return React.createElement("div",{className:"close_button text_hidden_only",tabIndex:"4",title:e.t("pageflow.public.close"),onClick:e.onClick},React.createElement("div",{className:"label"},e.t("pageflow.public.close")))})),Xr=function(e){return PAGEFLOW_EDITOR?e:function(){return!1}},$r=Se("chapters");var Kr=$r,Qr=Se("storylines");function Jr(){return function(e,t){var n=Zr()(e,t);return n?Kr({id:n.chapterId})(e,t):null}}function Zr(){return function(e,t){return on({id:function(e,t){return ee(Qr(t),(function(t){return t&&t[e]}))}("parentPagePermaId",{id:function(e,t){return ee($r(t),(function(t){return t&&t[e]}))}("storylineId",{id:rn("chapterId",{id:e.currentPageId})(e,t)})(e,t)})(e,t)})(e,t)}}function eo(e){var t=e.property;return function(e){return e.settings[t]}}var to=Se("widgets");function no(e,t){var n=t.role;return ee(to({id:n}),(function(t){return t&&t[e]}))}function ro(e){var t=e.role;return ee(to({id:t}),(function(e){return e}))}function oo(e){var t=e.role;return ee(to({id:t}),(function(e){return!(!e||!e.editing)}))}var io=function(e){return V()({is_playing:e.shouldPlay,is_playing_delayed:e.hasBeenPlayingJustNow,is_paused:!e.shouldPlay})},ao="MEDIA_TOGGLE_PLAYING",co="MEDIA_PLAY",uo="MEDIA_PLAY_AND_FADE_IN",so="MEDIA_PAUSE",lo="MEDIA_FADE_OUT_AND_PAUSE",fo="CHANGE_VOLUME_FACTOR",po="MEDIA_PLAY_FAILED",ho="MEDIA_PLAYING_MUTED",vo="MEDIA_SCRUB_TO",go="MEDIA_SEEK_TO",yo="MEDIA_PREBUFFER",mo="MEDIA_PREBUFFERED",bo="MEDIA_ABORT_PREBUFFERING",wo="MEDIA_BUFFER_UNDERRUN",Oo="MEDIA_BUFFER_UNDERRUN_CONTINUE",Eo="MEDIA_META_DATA_LOADED",_o="MEDIA_PROGRESS",xo="MEDIA_PLAYING",ko="MEDIA_PAUSED",Po="MEDIA_TIME_UPDATE",So="MEDIA_ENDED",jo="MEDIA_SEEKING",To="MEDIA_SEEKED",Ao="MEDIA_WAITING",Io="MEDIA_HAS_NOT_BEEN_PLAYING_FOR_A_MOMENT",Co="MEDIA_USER_INTERACTION",No="MEDIA_USER_IDLE",Mo="MEDIA_CONTROLS_ENTERED",Do="MEDIA_CONTROLS_LEFT",Ro="MEDIA_FOCUS_ENTERED_CONTROLS",Lo="MEDIA_FOCUS_LEFT_CONTROLS",Bo="MEDIA_CONTROLS_HIDDEN",Fo="SHOW_INFO_BOX_DURING_PLAYBACK",Uo="HIDE_INFO_BOX_DURING_PLAYBACK",Vo="TOGGLE_INFO_BOX_DURING_PLAYBACK",Ho="MEDIA_SAVE_MEDIA_ELEMENT_ID",qo="MEDIA_DISCARD_MEDIA_ELEMENT_ID";function Wo(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope,t=void 0===e?"default":e;return{togglePlaying:function(){return n(ao)},play:function(){return n(co)},playAndFadeIn:function(e){var t=e.fadeDuration;return n(uo,{fadeDuration:t})},pause:function(){return n(so)},fadeOutAndPause:function(e){var t=e.fadeDuration;return n(lo,{fadeDuration:t})},changeVolumeFactor:function(e,t){var r=t.fadeDuration;return n(fo,{volumeFactor:e,fadeDuration:r})},playFailed:function(){return n(po)},playingMuted:function(){return n(ho)},scrubTo:function(e){return n(vo,{time:e})},seekTo:function(e){return n(go,{time:e})},prebuffer:function(){return n(yo)},prebuffered:function(){return n(mo)},abortPrebuffering:function(){return n(bo)},bufferUnderrun:function(){return n(wo)},bufferUnderrunContinue:function(){return n(Oo)},playing:function(){return n(xo)},paused:function(){return n(ko)},timeUpdate:function(e){var t=e.currentTime,r=e.duration;return n(Po,{currentTime:t,duration:r})},metaDataLoaded:function(e){var t=e.currentTime,r=e.duration;return n(Eo,{currentTime:t,duration:r})},progress:function(e){var t=e.bufferedEnd;return n(_o,{bufferedEnd:t})},ended:function(){return n(So)},seeking:function(){return n(jo)},seeked:function(){return n(To)},waiting:function(){return n(Ao)},hasNotBeenPlayingForAMoment:function(e){return n(Io)},userInteraction:function(){return n(Co)},userIdle:function(){return n(No)},controlsEntered:function(){return n(Mo)},controlsLeft:function(){return n(Do)},focusEnteredControls:function(){return n(Ro)},focusLeftControls:function(){return n(Lo)},controlsHidden:function(){return n(Bo)},showInfoBoxDuringPlayback:function(){return n(Fo)},hideInfoBoxDuringPlayback:function(){return n(Uo)},toggleInfoBoxDuringPlayback:function(){return n(Vo)},saveMediaElementId:function(e){return n(Ho,{id:e})},discardMediaElementId:function(){return n(qo)}};function n(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:e,meta:{collectionName:"pages",mediaScope:t},payload:n}}}function Go(e){return S({property:"textTrack",value:e?{srclang:e.srclang,kind:e.kind}:{}})}function zo(e){return e.backgroundMedia.muted}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xo(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope;return an("media.".concat(void 0===e?"default":e))}function $o(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope,t=void 0===e?"default":e;return function(e){return Object(ce.b)(Wo({scope:t}),e)}}function Ko(e){var t=e.file,n=e.defaultTextTrackFileId,r=void 0===n?function(){}:n;return ee(eo({property:"textTrack"}),eo({property:"volume"}),Gr,zr,function(e,t){var n=t.parent;return ee(_e(e,{namespace:"files"}),n,(function(e){return e.fileUrlTemplates}),(function(e){return e.modelTypes}),(function(t,n,r,o){return n?Object.keys(t).reduce((function(i,a){var c=t[a];return c.id&&c.parentFileId==n.id&&c.parentFileModelType==n.modelType&&i.push(Kt(e,c,r,o)),i}),[]):[]}))}("textTrackFiles",{parent:t}),r,(function(e,t,n,r,o,i){e=e||{};var c=o.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({displayLabel:Qo(e,n)},e)})),u=function(e,t,n,r){if(t){var o=e.find((function(e){return e.permaId==t}));if(o)return o}var i=e.find((function(e){return"subtitles"==e.kind&&e.srclang==n})),a=0==r&&e.find((function(e){return"captions"==e.kind}));return i||a}(c,i,r,t);return{files:c.sort((function(e,t){return(e.displayLabel||"").localeCompare(t.displayLabel||"")})),autoFile:u,activeFileId:Jo(c,u,e),mode:"off"==e.kind?"off":e.kind?"user":"auto"}}))}function Qo(e,t){return e.label||t("pageflow.public.languages."+e.srclang||!1,{defaultValue:t("pageflow.public.languages.unknown")})}function Jo(e,t,n){if("off"==n.kind)return null;var r=e.find((function(e){return e.srclang==n.srclang&&e.kind==n.kind}));return r?r.id:t&&t.id}function Zo(e){return ee(e.autoplayWhenBackgroundMediaMuted,ei({id:e.id}),zo,(function(e,t,n){return t&&(!n||e)}))}function ei(e){return ee(rn("autoplay",e),(function(e){return!1!==e}))}function ti(e){var t=e.playerActions,n=e.playerState,r=e.playerControlsComponent;return F.a.createElement(r,Object.assign({hasProgress:!0,controlBarText:e.controlBarText,isLoading:n.isLoading||n.bufferUnderrun,isPlaying:n.shouldPlay,currentTime:void 0!==n.scrubbingAt?n.scrubbingAt:n.currentTime,bufferedEnd:n.bufferedEnd,duration:n.duration,mediaElementId:n.mediaElementId,onPlayButtonClick:t.togglePlaying,onScrub:t.scrubTo,onSeek:t.seekTo,onMouseEnter:t.controlsEntered,onMouseLeave:t.controlsLeft,onFocus:t.focusEnteredControls,onBlur:t.focusLeftControls,watchVisibility:n.isPlaying,onHidden:t.controlsHidden,additionalMenuBarButtons:oi(e),infoBoxHiddenDuringPlayback:ii(e),onAdditionalButtonMouseEnter:t.showInfoBoxDuringPlayback,onAdditionalButtonMouseLeave:t.hideInfoBoxDuringPlayback,onAdditionalButtonClick:t.toggleInfoBoxDuringPlayback,qualityMenuItems:ci(e.qualities,e.file,e.activeQuality,e.t),qualityMenuButtonTitle:e.t("pageflow.public.media_quality"),onQualityMenuItemClick:e.updateVideoQualitySetting,textTracksMenuItems:ai(e.textTracks,e.t),textTracksMenuButtonTitle:e.t("pageflow.public.text_tracks"),onTextTracksMenuItemClick:function(t){"off"==t?e.updateTextTrackSettings({kind:"off"}):e.updateTextTrackSettings(e.textTracks.files.find((function(e){return e.id==t})))}},e,{className:ri(n)}))}ti.defaultProps={playerControlsComponent:qr,qualities:[],textTracks:{files:[]}};var ni=Ct(te({activeQuality:eo({property:"videoQuality"}),t:Gr}),{updateTextTrackSettings:Go,updateVideoQualitySetting:function(e){return S({property:"videoQuality",value:e})}})(ti);function ri(e){return V()(io(e))}function oi(e){var t=e.t;return nr(e.infoBox)?[]:[{name:"toggleInfoBox",className:"player_controls-toggle_info_box_menu_button",label:t("pageflow.public.toggle_info_box"),iconName:"toggleInfoBox"}]}function ii(e){var t=e.playerState;return void 0===t.infoBoxHiddenDuringPlayback?!!e.textTracks.activeFileId:t.infoBoxHiddenDuringPlayback}function ai(e,t){if(!e.files.length)return[];var n={value:"off",label:t("pageflow.public.text_track_modes.none"),active:"off"==e.mode};return[{value:"auto",label:e.autoFile?t("pageflow.public.text_track_modes.auto",{label:e.autoFile.displayLabel}):t("pageflow.public.text_track_modes.auto_off"),active:"auto"==e.mode},n].concat(e.files.map((function(t){return{value:t.id,label:t.displayLabel,active:"user"==e.mode&&t.id==e.activeFileId}})))}function ci(e,t,n,r){return n=n||"auto",function(e,t){if(!t)return[];return e.filter((function(e){return!!t.urls[e]||"auto"==e}))}(e,t).map((function(e){return{value:e,label:r("pageflow.public.video_qualities.labels.".concat(e)),annotation:r("pageflow.public.video_qualities.annotations.".concat(e),{defaultValue:""}),active:e==n}}))}function ui(e){return function(t){return t.entry[e]}}function si(e){var t=e.entrySlug,n=e.file,r="videoFiles"==n.collectionName?"videos":"audio";return"/".concat(t,"/").concat(r,"/").concat(n.id)}var li=Ct(te({t:Gr,entrySlug:ui("slug")}))((function(e){return e.file?React.createElement("p",{className:"non_js_video"},React.createElement("a",{href:si(e),target:"_blank"},(n=(t=e).file,r=t.t,o="videoFiles"==n.collectionName?"video":"audio",r("pageflow.public.open_".concat(o))))):React.createElement("noscript",null);var t,n,r,o})),fi=ee(an("media.pageScrollerMargin"),(function(e){return e&&e.bottom}));function pi(e){var t=e.page,n=e.playerState,r={title:t.additionalTitle,description:t.additionalDescription};return React.createElement(H,{className:vi(e.className,hi(e),e.textTracks,n)},React.createElement(q,{pageHasPlayerControls:!0},e.children,React.createElement(Nn,{page:t,className:io(n)})),React.createElement(Mn,{onInteraction:function(){return n.userIsIdle&&e.playerActions.userInteraction()},classNames:io(n)},React.createElement(ni,{file:e.file,textTracks:e.textTracks,playerState:n,playerActions:e.playerActions,qualities:e.qualities,controlBarText:e.controlBarText,infoBox:r,playerControlsComponent:e.playerControlsComponent}),React.createElement(Fn,{className:io(n),marginBottom:e.dynamicPageScrollerMargin&&e.pageScrollerMarginBottom},React.createElement(Vn,{page:t}),React.createElement(ea,{page:t}),React.createElement(Hn,{page:t,marginBottom:e.dynamicPageScrollerMargin?"none":"for_player_controls"},React.createElement(li,{file:e.file})))))}pi.defaultProps={playerControlsCanOverlapPageText:!0};var di=An(te({pageScrollerMarginBottom:fi,textTracks:Ko({file:Gn("file"),defaultTextTrackFileId:Gn("page.defaultTextTrackFileId")}),hasAutoplaySupport:zn("autoplay support"),shouldAutoplay:Zo({id:Gn("page.permaId"),autoplayWhenBackgroundMediaMuted:Gn("autoplayWhenBackgroundMediaMuted")})}))(pi);function hi(e){return e.shouldAutoplay&&e.hasAutoplaySupport&&!e.playerState.playFailed}function vi(e,t,n,r){return V()(e,{has_text_tracks:!!n.activeFileId,is_idle:r.isPlaying&&r.userIsIdle,is_control_bar_focused:r.focusInsideControls,is_control_bar_hovered:r.userHoveringControls,is_control_bar_hidden:r.controlsHidden,unplayed:r.unplayed&&!t,should_play:r.shouldPlay,has_played:r.hasPlayed})}var gi=An(te({pageIsPrepared:sn(),pageIsPreloaded:un(),atmoDuringPlayback:rn("atmoDuringPlayback"),defaultTextTrackFileId:rn("defaultTextTrackFileId")}))((function(e){if(e.file&&e.file.isReady){var t=e.structuredDataComponent||function(){return null};return React.createElement("div",{style:{height:"100%"}},function(e){if(e.pageIsPrepared){var t=e.playerComponent;return React.createElement(t,{file:e.file,posterImageFile:e.posterImageFile,playerState:e.playerState,playerActions:e.playerActions,atmoDuringPlayback:e.atmoDuringPlayback,fit:e.fit,position:e.position,loop:e.loop,muted:e.muted,playsInline:e.playsInline,defaultTextTrackFileId:e.defaultTextTrackFileId,textTracksEnabled:e.textTracksEnabled,textTrackPosition:e.textTrackPosition})}if(e.preloadComponent&&e.pageIsPreloaded){var n=e.preloadComponent;return React.createElement(n,{file:e.file,posterImageFile:e.posterImageFile})}return React.createElement("noscript",null)}(e),React.createElement(t,{file:e.file}))}return React.createElement("noscript",null)})),yi=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this;return F.a.createElement("div",{ref:function(t){return e.containerElement=t},dangerouslySetInnerHTML:this.mediaTagHTML()})}},{key:"shouldComponentUpdate",value:function(e){return e.tagName!==this.props.tagName||e.poster!==this.props.poster||e.loop!==this.props.loop||e.muted!==this.props.muted||e.playsInline!==this.props.playsInline||!mi(e.sources,this.props.sources)||!mi(e.tracks,this.props.tracks)}},{key:"componentDidMount",value:function(){this.triggerOnSetup()}},{key:"componentWillUpdate",value:function(){this.triggerOnDispose()}},{key:"componentDidUpdate",value:function(){this.triggerOnSetup()}},{key:"componentWillUnmount",value:function(){this.triggerOnDispose()}},{key:"triggerOnSetup",value:function(){this.props.onSetup&&this.props.onSetup(this.containerElement.firstElementChild)}},{key:"triggerOnDispose",value:function(){this.props.onDispose&&this.props.onDispose()}},{key:"mediaTagHTML",value:function(){var e=document.createElement("div"),t=document.createElement(this.props.tagName);return t.setAttribute("preload","none"),t.setAttribute("crossorigin","anonymous"),t.setAttribute("alt",this.props.alt),this.props.poster&&t.setAttribute("data-poster",this.props.poster),this.props.loop&&t.setAttribute("loop","true"),this.props.muted&&t.setAttribute("muted","true"),this.props.playsInline&&t.setAttribute("playsinline","true"),this.props.sources.forEach((function(e){var n=document.createElement("source");n.setAttribute("src",e.src),n.setAttribute("type",e.type),t.appendChild(n)})),this.props.tracks.forEach((function(e){var n=document.createElement("track");n.setAttribute("src",e.src),n.setAttribute("id",e.id),n.setAttribute("kind",e.kind),n.setAttribute("srclang",e.srclang),n.setAttribute("label",e.label),t.appendChild(n)})),e.appendChild(t),{__html:e.innerHTML.replace('preload="none"','preload="auto"')}}}]),t}(F.a.Component);function mi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(Object.keys(r).length!==Object.keys(o).length)return!1;for(var i in r)if(r[i]!==o[i])return!1}return!0}function bi(e,t){t.emulateTextTracksDisplay;var n=t.atmoSettings,r=t.mediaContext,o=t.playsInline,i="audio"==e.tagName.toLowerCase(),a=new pageflow.VideoPlayer(e,{controlBar:!1,loadingSpinner:!1,bigPlayButton:!1,errorDisplay:!1,textTrackSettings:!1,poster:e.getAttribute("data-poster"),html5:{nativeCaptions:!i&&pageflow.browser.has("iphone platform")},bufferUnderrunWaiting:!0,useSlimPlayerControlsDuringPhonePlayback:!o&&!i,fullscreenDuringPhonePlayback:!o&&!i,fallbackToMutedAutoplay:!i,volumeFading:!0,hooks:pageflow.atmo.createMediaPlayerHooks(n),mediaEvents:!0,context:r});return a.textTrackSettings={getValues:function(){return{}}},a.addClass("video-js"),a.addClass("player"),a}yi.defaultProps={tagName:"video",sources:[],tracks:[]};var wi=function(e,t){e.on("loadedmetadata",(function(){return t.metaDataLoaded({currentTime:e.currentTime(),duration:e.duration()})})),e.on("progress",(function(){return t.progress({bufferedEnd:e.bufferedEnd()})})),e.on("play",t.playing),e.on("playfailed",t.playFailed),e.on("playmuted",t.playingMuted),e.on("pause",t.paused),e.on("waiting",t.waiting),e.on("seeking",t.seeking),e.on("seeked",t.seeked),e.on("bufferunderrun",t.bufferUnderrun),e.on("bufferunderruncontinue",t.bufferUnderrunContinue),e.on("timeupdate",(function(){return t.timeUpdate({currentTime:e.currentTime(),duration:e.duration()})})),e.on("ended",t.ended)};function Oi(e,t,n){e.one("timeupdate",(function(){Ei(e,null,t(),n())}))}function Ei(e,t,n,r){t!=n&&function(e,t){[].slice.call(e.textTracks()).forEach((function(e){e.id=="text_track_file_".concat(t)?e.mode="showing":e.mode="disabled"}))}(e,n),function(e,t){e.updateCueLineSettings(t)}(e,r)}function _i(e){return function(t){return t.features.indexOf(e)>=0}}var xi,ki=function(e){var t=e.tagName,n=e.sources,r=e.poster,o=void 0===r?function(){}:r,i=e.emulateTextTracksDisplay,a=void 0!==i&&i,c=e.createPlayer,u=void 0===c?bi:c,s=function(e){function r(e,n){var o;return j(this,r),(o=M(this,D(r).call(this,e,n))).displaysTextTracksInNativePlayer=o.props.hasNativeVideoPlayer&&"video"==t,o.initiallyMuted=o.props.muted,o.updateAtmoSettings(),o.setupMediaTag=function(t){o.player=u(t,{emulateTextTracksDisplay:a,atmoSettings:o.atmoSettings,mediaContext:o.context.mediaContext,playsInline:e.playsInline}),o.player.ready((function(){var e,n,r,i,a,c;o.props.playerActions.saveMediaElementId(t.id),e=o.player,n=function(){return o.props.playerState},r=o.props.playerActions,i=o.prevFileId,a=o.props.file.id,c=n(),a===i&&c.currentTime>0&&e.currentTime(c.currentTime),c.shouldPrebuffer&&e.prebuffer().then(r.prebuffered,(function(){})),c.isPlaying&&e.play(),e.on("canplay",(function(){n().shouldPlay&&e.paused()&&e.play()})),o.displaysTextTracksInNativePlayer||function(e,t,n){e.on("pause",(function(){Oi(e,t,n)})),e.textTracks().on("addtrack",(function(){Ei(e,null,t(),n())})),Ei(e,null,t(),n()),Oi(e,t,n)}(o.player,(function(){return o.props.textTracks.activeFileId}),(function(){return o.props.textTrackPosition})),wi(o.player,o.props.playerActions),o.prevFileId=o.props.file.id}),!0)},o.disposeMediaTag=function(){o.player.dispose(),o.player=null,o.props.playerActions.discardMediaElementId()},o}return L(r,e),A(r,[{key:"componentDidUpdate",value:function(e){var t=this;this.player&&(this.player.ready((function(){var n,r,o;n=t.player,r=e.muted,o=t.props.muted,r!==o&&n.muted(o),function(e,t,n,r){t!==n&&e.changeVolumeFactor(n,r)}(t.player,e.playerState.volumeFactor,t.props.playerState.volumeFactor,t.props.playerState.volumeFactorFadeDuration),function(e,t,n,r){!t.shouldPrebuffer&&n.shouldPrebuffer&&e.prebuffer().then((function(){return setTimeout(r.prebuffered,0)})),!t.shouldPlay&&n.shouldPlay?n.fadeDuration?e.playAndFadeIn(n.fadeDuration):e.play():t.shouldPlay&&!n.shouldPlay&&n.isPlaying&&(n.fadeDuration?e.fadeOutAndPause(n.fadeDuration):e.pause()),void 0!==n.shouldSeekTo&&n.shouldSeekTo!==t.shouldSeekTo&&e.currentTime(n.shouldSeekTo)}(t.player,e.playerState,t.props.playerState,t.props.playerActions)}),!0),this.displaysTextTracksInNativePlayer||Ei(this.player,e.textTracks.activeFileId,this.props.textTracks.activeFileId,this.props.textTrackPosition),this.updateAtmoSettings())}},{key:"updateAtmoSettings",value:function(){this.atmoSettings=this.atmoSettings||{},this.atmoSettings.atmo_during_playback=this.props.atmoDuringPlayback}},{key:"render",value:function(){return F.a.createElement(yi,{tagName:t,sources:n(this.props.file,this.props.quality,{hasHighBandwidth:this.props.hasHighBandwidth,forceBestQuality:this.props.forceBestQuality,forceFullhdQuality:this.props.forceFullhdQuality}),tracks:(e=this.props.textTracks.files,r=this.props.textTracksEnabled,r?e.filter((function(e){return e.isReady})).map((function(e){return{id:"text_track_file_".concat(e.id),kind:e.kind,label:e.displayLabel,srclang:e.srclang,src:e.urls.vtt}})):[]),poster:o(this.props.file,this.props.posterImageFile),loop:this.props.loop,muted:this.initiallyMuted,playsInline:this.props.playsInline,alt:this.props.file.alt,onSetup:this.setupMediaTag,onDispose:this.disposeMediaTag});var e,r}}]),r}(F.a.Component);s.contextTypes={mediaContext:F.a.PropTypes.object},s.defaultProps={textTracksEnabled:!0,textTracks:{files:[]}};var l=Ct(te({textTracks:Ko({file:Gn("file"),defaultTextTrackFileId:Gn("defaultTextTrackFileId")}),quality:eo({property:"videoQuality"}),hasNativeVideoPlayer:zn("native video player"),hasHighBandwidth:zn("high bandwidth"),forceBestQuality:_i("force_best_video_quality"),forceFullhdQuality:_i("force_fullhd_video_quality"),textTrackPosition:Si}),{updateTextTrackSettings:Go})(s);return l.WrappedComponent=s,l},Pi=(xi="slimPlayerControls",function(e){return e.widgetPresence[xi]});function Si(e,t){var n=t.playerState,r=t.textTrackPosition;return r||(Pi(e)?n.controlsHidden?"auto.lazy":"auto.translated":n.controlsHidden?"auto.lazy":"top")}var ji=ki({tagName:"audio",sources:function(e){return[{type:"audio/ogg",src:"".concat(e.urls.ogg,"?u=1")},{type:"audio/mp4",src:"".concat(e.urls.m4a,"?u=1")},{type:"audio/mp3",src:"".concat(e.urls.mp3,"?u=1")}]},emulateTextTracksDisplay:!0});function Ti(e,t){return t&&t.match(/^\/\//)?"".concat(e,":").concat(t):t}function Ai(e){var t=Math.round(e/1e3)%60,n=Math.floor(e/1e3/60)%60,r=Math.floor(e/1e3/60/60),o="PT";return r>0&&(o+="".concat(r,"H")),n>0&&(o+="".concat(n,"M")),(t>0||0==n&&0==r)&&(o+="".concat(t,"S")),o}var Ii=Ct(te({isEnabled:_i("structured_data")}))((function(e){var t=e.data;return e.isEnabled?React.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}}):null}));var Ci=Ct(te({entryPublishedAt:ui("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt,r={"@context":"http://schema.org","@type":"AudioObject",name:t.basename,description:t.alt,url:Ti("https",t.urls.mp3),duration:Ai(t.durationInMs),datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Ii,{data:r})}));function Ni(e){return React.createElement(gi,Object.assign({},e,{playerComponent:ji,structuredDataComponent:Ci}))}var Mi=function(e,t,n,r){if(r&&r.height&&t&&"contain"!=t){var o,i,a,c=e.width/e.height;if("width"==(r.width/r.height>c?"width":"height")?(o=(i=r.height)*c,a=r.width/o):(i=(o=r.width)/c,a=r.height/i),!("smart_contain"==t&&a>1.2)){var u=o*a,s=i*a,l=void 0!==n[0]&&"cover"==t?n[0]:50,f=void 0!==n[1]&&"cover"==t?n[1]:50;return{left:(r.width-u)*l/100,top:(r.height-s)*f/100,width:u,height:s}}}};function Di(e,t){if(e&&t){var n=Math.max(0,-e.left),r=Math.max(0,e.width-t.width+e.left),o=Math.max(0,-e.top),i=Math.max(0,e.height-t.height+e.top);return["cue_offset","cue_offset_".concat(Math.ceil(i/10)),"cue_margin_left_".concat(Math.ceil(n/10)),"cue_margin_right_".concat(Math.ceil(r/10)),"cue_margin_top_".concat(Math.ceil(o/10)),"cue_margin_bottom_".concat(Math.ceil(i/10))].join(" ")}}function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Li(e){return F.a.createElement(Pr.a,{whitelist:["width","height"],cloneOptions:{noCloneOnZeroDimension:!0}},(function(t){return function(e,t){var n=Mi(e.videoFile,e.fit,e.position,t);return F.a.createElement("div",{className:"uncropped_media_wrapper"},F.a.createElement("div",{className:Di(n,t),style:Bi(n)},e.children))}(e,t)}))}function Bi(e){return e&&function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({position:"absolute"},e)}var Fi=ki({tagName:"video",sources:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.hasHighBandwidth,o=n.forceBestQuality,i=n.forceFullhdQuality;if(t=t||"auto",o)return[{type:"video/mp4",src:e.urls["4k"]||e.urls.fullhd||e.urls.high}];if(i)return[{type:"video/mp4",src:e.urls.fullhd||e.urls.high}];if("auto"==t){var a=r?"high":"medium",c=[{type:"application/x-mpegURL",src:"".concat(e.urls["hls-playlist"],"?u=1")},{type:"video/mp4",src:"".concat(e.urls[a],"?u=1")}];return e.urls["dash-playlist"]&&(c=[{type:"application/dash+xml",src:"".concat(e.urls["dash-playlist"])}].concat(c)),c}return e.urls[t]||(t="high"),[{type:"video/mp4",src:"".concat(e.urls[t],"?u=1")}]},poster:Hi});function Ui(e){return F.a.createElement(Li,{videoFile:e.file,fit:e.fit,position:e.position},F.a.createElement(Fi,{file:e.file,posterImageFile:e.posterImageFile,playerState:e.playerState,playerActions:e.playerActions,atmoDuringPlayback:e.atmoDuringPlayback,defaultTextTrackFileId:e.defaultTextTrackFileId,textTracksEnabled:e.textTracksEnabled,loop:e.loop,muted:e.muted,playsInline:e.playsInline}))}var Vi=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.file,n=e.posterImageFile,r=e.preloadImage,o=Hi(t,n);o&&r(o)}},{key:"render",value:function(){return null}}]),t}(F.a.Component);function Hi(e,t){var n=oe("mobile platform")?"medium":"large";return t?t.urls[n]:e.urls["poster_".concat(n)]}Vi.defaultProps={preloadImage:ie};var qi=Ct(te({entryPublishedAt:ui("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt,r={"@context":"http://schema.org","@type":"VideoObject",name:t.basename,description:t.alt,url:Ti("https",t.urls.high),thumbnailUrl:Ti("https",t.urls.poster_medium),width:t.width,height:t.height,duration:Ai(t.durationInMs),datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Ii,{data:r})}));var Wi=Ct(te({file:Xt("videoFiles",{id:Gn("videoFileId")}),posterImageFile:Xt("imageFiles",{id:Gn("posterImageFileId")}),muted:function(e,t){return t.muted||zo(e)}}))((function(e){return React.createElement(gi,Object.assign({},e,{playerComponent:Ui,preloadComponent:Vi,structuredDataComponent:qi}))}));function Gi(e){var t=e.page,n=X.concat(e.propertyNamePrefix,e.videoPropertyBaseName),r=X.concat(e.propertyNamePrefix,e.posterImagePropertyBaseName);return React.createElement(Wi,{videoFileId:t["".concat(n,"Id")],posterImageFileId:t["".concat(r,"Id")],playerState:e.playerState,playerActions:e.playerActions,fit:e.fit,position:[t["".concat(n,"X")],t["".concat(n,"Y")]],textTracksEnabled:e.textTracksEnabled,loop:e.loop,muted:e.muted,playsInline:e.playsInline})}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Gi.defaultProps={videoPropertyBaseName:"videoFile",posterImagePropertyBaseName:"posterImage",fit:"smart_contain"};var Xi=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"getChildContext",value:function(){return{mediaContext:Yi({},this.context.mediaContext,{playbackMode:this.props.playbackMode,playerDescription:this.props.playerDescription})}}},{key:"render",value:function(){return this.props.children}}]),t}(F.a.Component);Xi.contextTypes={mediaContext:F.a.PropTypes.object},Xi.childContextTypes={mediaContext:F.a.PropTypes.object};var $i=Ct(te({fileExists:$t()}))((function(e){var t=function(e){return(t=e.propertyNamePrefix,[{propertyBaseName:X.concat(t,"mobilePosterImage"),collection:"imageFiles"},{propertyBaseName:X.concat(t,"posterImage"),collection:"imageFiles"},{propertyBaseName:X.concat(t,"videoFile"),collection:"videoFiles"}]).find((function(t){return e.fileExists(t.collection,e.page["".concat(t.propertyBaseName,"Id")])}));var t}(e);return t?React.createElement(Cn,{page:e.page,propertyBaseName:t.propertyBaseName,fileCollection:t.collection}):React.createElement("noscript",null)}));var Ki=Ct(te({fileExists:$t(),hasMobilePlatform:zn("mobile platform"),hasAutoplaySupport:zn("autoplay support")}))((function(e){return e.hasMobilePlatform&&function(e){var t=X.concat(e.propertyNamePrefix,"mobilePosterImageId");return e.fileExists("imageFiles",e.page[t])}(e)?React.createElement($i,{page:e.page,propertyNamePrefix:e.propertyNamePrefix}):React.createElement(Xi,{playbackMode:"loop",playerDescription:"Background Video Player"},React.createElement(Gi,Object.assign({loop:!0,fit:"cover",muted:!e.hasAutoplaySupport,playsInline:!0,textTracksEnabled:!1},e)))}));var Qi=Ct(te({file:Xt("imageFiles",{id:Gn("fileId")}),entryPublishedAt:ui("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt;if(t){var r={"@context":"http://schema.org","@type":"ImageObject",name:t.basename,description:t.alt,url:Ti("https",t.urls.large),width:t.width,height:t.height,datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Ii,{data:r})}return null}));var Ji=An(te({page:on(),playerState:Xo({scope:"background"})}),$({playerActions:$o({scope:"background"})}))((function(e){var t=e.page,n=e.playerState,r=e.playerActions,o=e.propertyNamePrefix;return"video"==t[X.concat(o,"backgroundType")]?React.createElement(Ki,{page:t,playerState:n,playerActions:r,propertyNamePrefix:o}):React.createElement(Cn,{page:t,propertyNamePrefix:o,structuredDataComponent:Qi})}));function Zi(e){return React.createElement(q,null,React.createElement(Ji,{propertyNamePrefix:e.propertyNamePrefix}),React.createElement(Nn,{page:e.page}))}var ea=Ct(te({isEntryReady:function(e){return!!e.entry.isReady}}))((function(e){var t=e.page;return e.isEntryReady?"video"==t.backgroundType||"video"==t.type?React.createElement(ta,{videoId:t.videoFileId,posterImageId:t.posterImageId}):React.createElement(na,{imageId:t.backgroundImageId}):null})),ta=Ct(te({videoFile:Xt("videoFiles",{id:Gn("videoId")}),posterImageFile:Xt("imageFiles",{id:Gn("posterImageId")})}))((function(e){var t=e.videoFile,n=e.posterImageFile;return n?React.createElement(ra,{file:n}):React.createElement(ra,{file:t})})),na=An(te({file:Xt("imageFiles",{id:Gn("imageId")}),pageIsPrepared:sn()}))(ra);function ra(e){var t=e.file;return t&&t.isReady&&sn?React.createElement("img",{src:t.urls.print,alt:t.alt,className:"print_image"}):React.createElement("noscript",null)}function oa(e){return React.createElement("div",{className:"waveform_player_controls-info_box"},function(e){if(!z(e.title))return React.createElement("h3",{className:ia(e)},e.title)}(e),function(e){if(!z(e.description))return React.createElement("p",{className:"waveform_player_controls-info_box-description",dangerouslySetInnerHTML:{__html:e.description}})}(e))}function ia(e){var t=!z(e.title)&&!z(e.description);return V()("waveform_player_controls-info_box-title",{"waveform_player_controls-info_box-title-with_separator":t})}var aa="MEDIA_PAGE_SCROLLER_MARGIN_SET_BOTTOM";var ca=An(null,{setPageScrollerMarginBottom:function(e){return{type:aa,payload:{value:e},meta:{collectionName:"pages"}}}})((function(e){return React.createElement(Pr.a,{whitelist:["height"],onMeasure:function(t){var n=t.height;return e.setPageScrollerMarginBottom(n)}},React.createElement("div",{className:"waveform_player_controls-container"},e.children))}));var ua=dr((function(e){return React.createElement("a",{href:"#",className:sa(e),id:e.id,tabIndex:"4",title:e.title,onClick:la(e)},React.createElement(fr,{name:e.isPlaying?"pause":"play"}))}));function sa(e){return V()("waveform_player_controls-play_button",{"waveform_player_controls-play_button-inverted":e.inverted})}function la(e){return function(t){t.preventDefault(),e.onClick&&e.onClick()}}var fa="rgba(170, 170, 170, 1)",pa="rgba(0, 0, 0, 0.5)",da="#fff",ha="#888";var va=An(te({pageIsPrepared:sn(),waveformColor:rn("waveformColor"),mainColor:function(e){return e.theme.mainColor}}))((function(e){return e.pageIsPrepared&&e.mediaElementId?React.createElement(Pr.a,{whitelist:["height"]},(function(t){var n=t.height;return React.createElement("div",{className:"waveform_player_controls-wave"},React.createElement("div",{className:"waveform_player_controls-wave_wrapper"},React.createElement(Ut.a,{mediaElt:"#".concat(e.mediaElementId),options:{normalize:!0,removeMediaElementOnDestroy:!1,hideScrollbar:!0,progressColor:e.waveformColor||e.mainColor,waveColor:e.inverted?pa:fa,cursorColor:e.inverted?ha:da,height:n}}),React.createElement(ua,{isPlaying:e.isPlaying,title:e.playButtonTitle,inverted:e.inverted,onClick:e.onPlayButtonClick})))})):null}));function ga(e){return React.createElement("div",{className:"waveform_player_controls-times_display"},React.createElement(yr,{value:e.currentTime,className:"waveform_player_controls-times_display-current_time"}),"/",React.createElement(yr,{value:e.duration,className:"waveform_player_controls-times_display-duration"}))}var ya=An(te({inverted:rn("invert")}))((function(e){return React.createElement("div",{className:ma(e)},React.createElement(ca,null,React.createElement(va,{isPlaying:e.isPlaying,inverted:e.inverted,playButtonTitle:e.playButtonTitle,mediaElementId:e.mediaElementId,onPlayButtonClick:e.onPlayButtonClick}),React.createElement(ga,{currentTime:e.currentTime,duration:e.duration}),React.createElement(oa,e.infoBox)),React.createElement(Br,{inverted:e.inverted,qualityMenuButtonTitle:e.qualityMenuButtonTitle,qualityMenuItems:e.qualityMenuItems,onQualityMenuItemClick:e.onQualityMenuItemClick,textTracksMenuButtonTitle:e.textTracksMenuButtonTitle,textTracksMenuItems:e.textTracksMenuItems,hiddenOnPhone:!e.isPlaying,onTextTracksMenuItemClick:e.onTextTracksMenuItemClick}))}));function ma(e){return V()("waveform_player_controls",{"waveform_player_controls-inverted":e.inverted})}var ba="HOTKEY_SPACE",wa="HOTKEY_TAB";function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scope,n=void 0===t?"default":t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.meta&&t.meta.mediaScope&&t.meta.mediaScope!==n)return e;switch(t.type){case u:return Ea({},e,{hasPlayed:!1,unplayed:!0,infoBoxHiddenDuringPlayback:void 0,userIsIdle:!1});case l:return Ea({},e,{shouldPrebuffer:!1});case co:return Ea({},e,{shouldPlay:!0,playFailed:!1,hasBeenPlayingJustNow:!0,unplayed:!1,fadeDuration:null,isLoading:!0});case xo:return Ea({},e,{shouldPlay:!0,isPlaying:!0});case po:return Ea({},e,{shouldPlay:!1,playFailed:!0,hasBeenPlayingJustNow:!1,unplayed:!0,fadeDuration:null,isLoading:!1});case uo:return Ea({},e,{shouldPlay:!0,hasBeenPlayingJustNow:!0,fadeDuration:t.payload.fadeDuration,isLoading:!0});case so:return Ea({},e,{shouldPlay:!1,fadeDuration:null,isLoading:!1});case ko:return e.bufferUnderrun?Ea({},e,{isPlaying:!1,hasPlayed:!0}):Ea({},e,{shouldPlay:!1,isPlaying:!1,fadeDuration:null,isLoading:!1});case lo:return Ea({},e,{shouldPlay:!1,fadeDuration:t.payload.fadeDuration,isLoading:!1});case fo:return Ea({},e,{volumeFactor:t.payload.volumeFactor,volumeFactorFadeDuration:t.payload.fadeDuration});case yo:return Ea({},e,{shouldPrebuffer:!0});case mo:return Ea({},e,{shouldPrebuffer:!1});case Ao:return Ea({},e,{isLoading:!0});case wo:return Ea({},e,{bufferUnderrun:!0});case Oo:return Ea({},e,{bufferUnderrun:!1});case vo:return Ea({},e,{scrubbingAt:t.payload.time});case go:return Ea({},e,{shouldSeekTo:t.payload.time});case jo:return Ea({},e,{isLoading:!0});case To:return Ea({},e,{scrubbingAt:void 0,isLoading:!1});case Eo:return Ea({},e,{currentTime:t.payload.currentTime,duration:t.payload.duration});case _o:return Ea({},e,{bufferedEnd:t.payload.bufferedEnd});case Po:return Ea({},e,{currentTime:t.payload.currentTime,duration:t.payload.duration,isLoading:!1});case So:return Ea({},e,{shouldPlay:!1,isPlaying:!1});case Io:return Ea({},e,{hasBeenPlayingJustNow:!1});case wa:case Co:return Ea({},e,{userIsIdle:!1,controlsHidden:!1});case No:return Ea({},e,{userIsIdle:!0});case Mo:return Ea({},e,{userHoveringControls:!0});case Do:return Ea({},e,{userHoveringControls:!1});case Ro:return Ea({},e,{focusInsideControls:!0});case Lo:return Ea({},e,{focusInsideControls:!1});case Bo:return Ea({},e,{controlsHidden:!0,infoBoxHiddenDuringPlayback:!0});case Uo:return Ea({},e,{infoBoxHiddenDuringPlayback:!0});case Fo:return Ea({},e,{infoBoxHiddenDuringPlayback:!1});case Vo:return Ea({},e,{infoBoxHiddenDuringPlayback:!e.infoBoxHiddenDuringPlayback});case Ho:return Ea({},e,{mediaElementId:t.payload.id});case qo:return Ea({},e,{mediaElementId:null});default:return e}}};function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case aa:return ka({},e,{bottom:t.payload.value});default:return e}},Sa=Ee.a.mark(Ta),ja=Ee.a.mark(Aa);function Ta(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)([ba,ao],Aa,Wo());case 2:case"end":return e.stop()}}),Sa)}function Aa(e){var t,n;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.play,n=e.pause,r.next=3,Object(De.select)(Xo());case 3:if(!r.sent.shouldPlay){r.next=9;break}return r.next=7,Object(De.put)(n());case 7:r.next=13;break;case 9:return r.next=11,Object(De.call)((function(){return pageflow.backgroundMedia.unmute()}));case 11:return r.next=13,Object(De.put)(t());case 13:case"end":return r.stop()}}),ja)}var Ia=Ee.a.mark(Na),Ca=Ee.a.mark(Ma);function Na(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)([po,ho],Ma);case 2:case"end":return e.stop()}}),Ia)}function Ma(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return pageflow.backgroundMedia.mute()}));case 2:case"end":return e.stop()}}),Ca)}var Da="BACKGROUND_MEDIA_MUTE",Ra="BACKGROUND_MEDIA_UNMUTE";function La(){return{type:Ra}}var Ba=Ee.a.mark(za),Fa=Ee.a.mark(Ya),Ua=Ee.a.mark(Xa),Va=Ee.a.mark($a),Ha=Wo(),qa=Ha.play,Wa=Ha.prebuffer,Ga=Ha.waiting;function za(e){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(Re.takeEvery)(c,Ee.a.mark((function t(n){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,[Object(De.race)({task:Object(De.call)(Xa,e),cancel:Object(De.take)(l)}),Object(De.race)({task:Object(De.call)(Ya,e),cancel:Object(De.take)(l)})];case 2:case"end":return t.stop()}}),t)})));case 2:case"end":return t.stop()}}),Ba)}function Ya(e){var t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=e.retryOnUnmute,!n.t0){n.next=5;break}return n.next=4,Object(De.select)(ei());case 4:n.t0=n.sent;case 5:if(!n.t0){n.next=12;break}return n.next=8,Object(De.race)({unmute:Object(De.take)(Ra),cancel:Object(De.take)(l)});case 8:if(t=n.sent,!t.unmute){n.next=12;break}return n.delegateYield(Xa(e),"t1",12);case 12:case"end":return n.stop()}}),Fa)}function Xa(e){var t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.delegateYield($a(e),"t0",1);case 1:if(!(t=n.t0)){n.next=5;break}return n.next=5,Object(De.put)(Ga());case 5:return n.next=7,[Object(De.take)(mo),Object(De.put)(Wa())];case 7:if(!t){n.next=12;break}return n.next=10,Object(De.call)(Re.delay,1e3);case 10:return n.next=12,Object(De.put)(qa());case 12:case"end":return n.stop()}}),Ua)}function $a(e){var t,n,r;return Ee.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.canAutoplay,n=e.autoplayWhenBackgroundMediaMuted,o.next=3,Object(De.select)(Zo({autoplayWhenBackgroundMediaMuted:function(){return n}}));case 3:return r=o.sent,o.abrupt("return",r&&t);case 5:case"end":return o.stop()}}),Va)}var Ka=Ee.a.mark(Qa);function Qa(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(co,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(cn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(Ja);case 5:case"end":return e.stop()}}),e)})));case 2:return e.next=4,Object(Re.takeEvery)([so,So],Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(cn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(Za);case 5:case"end":return e.stop()}}),e)})));case 4:case"end":return e.stop()}}),Ka)}function Ja(){pageflow.events.trigger("scroll_indicator:disable")}function Za(){pageflow.events.trigger("scroll_indicator:enable")}var ec=Ee.a.mark(tc);function tc(){var e,t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=Wo(),t=e.hasNotBeenPlayingForAMoment,n.next=3,Object(Re.takeEvery)([so,So],Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.race)({task:Object(De.call)(Ee.a.mark((function e(n){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)(Re.delay,700);case 2:return e.next=4,Object(De.put)(t(!1));case 4:case"end":return e.stop()}}),e)}))),cancel:Object(De.take)(xo)});case 2:case"end":return e.stop()}}),e)})));case 3:case"end":return n.stop()}}),ec)}var nc=Ee.a.mark(oc),rc=Ee.a.mark(ic);function oc(){var e,t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=Wo(),t=e.userIdle,n.next=3,Object(Re.takeLatest)([co,Co,wa],ic,t);case 3:case"end":return n.stop()}}),nc)}function ic(e){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(Re.delay,3e3);case 2:return t.next=4,Object(De.put)(e());case 4:case"end":return t.stop()}}),rc)}var ac=Ee.a.mark(cc);function cc(){var e,t,n,r,o=arguments;return Ee.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=e.scope,n=Wo({scope:t}),r=n.fadeOutAndPause,i.next=4,Object(Re.takeEvery)(s,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.put)(r({fadeDuration:400}));case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return i.stop()}}),ac)}var uc=Ee.a.mark(sc);function sc(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(So,Ee.a.mark((function e(){var t,n;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(rn("autoChangePageOnEnded"));case 2:return t=e.sent,e.next=5,Object(De.select)(cn());case 5:if(n=e.sent,!t||!n){e.next=9;break}return e.next=9,Object(De.call)(lc);case 9:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),uc)}function lc(){pageflow.slides.next()}var fc=Ee.a.mark(hc);function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hc(){var e,t,n=arguments;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t=[Ta(),Na(),Qa()],e.playsInNativePlayer&&e.playsInNativePlayer()||t.push([sc(),cc(),tc()]),oe("mobile platform")||t.push([za(dc({},e,{canAutoplay:oe("autoplay support")}))]),e.hideControls&&t.push([oc()]),r.next=7,t;case 7:case"end":return r.stop()}}),fc)}var vc=Ee.a.mark(mc),gc=Ee.a.mark(bc),yc=Ee.a.mark(wc);function mc(){var e,t,n,r=arguments;return Ee.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t=e.scope,n=Wo({scope:t}),o.next=4,Object(Re.takeEvery)(u,Ee.a.mark((function e(t){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,[Object(De.race)({task:[Object(De.put)(n.prebuffer()),Object(De.call)(bc,n),Object(De.call)(wc,n)],cancel:Object(De.take)(l)})];case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return o.stop()}}),vc)}function bc(e){var t,n;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.prebuffer,t=e.changeVolumeFactor,n=e.play,r.next=3,Object(De.put)(t(0,{fadeDuration:0}));case 3:return r.next=5,Object(De.take)(mo);case 5:return r.next=7,Object(De.put)(n());case 7:case"end":return r.stop()}}),gc)}function wc(e){var t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.changeVolumeFactor,n.next=3,[Object(De.take)(mo),Object(De.take)(c)];case 3:return n.next=5,Object(De.put)(t(1,{fadeDuration:1e3}));case 5:case"end":return n.stop()}}),yc)}function Oc(e){return{reducers:{"media.default":_a({scope:"default"}),"media.pageScrollerMargin":Pa},saga:Ee.a.mark((function t(){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,hc(e);case 2:case"end":return t.stop()}}),t)}))}}var Ec={reducers:{"media.background":_a({scope:"background"})},saga:Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,[mc({scope:"background"}),cc({scope:"background"}),Na()];case 2:case"end":return e.stop()}}),e)}))};var _c=function(e){function t(e,n){var r;return j(this,t),(r=M(this,D(t).call(this,e,n))).onPlayButtonClick=function(){pageflow.hideText.activate(),r.props.onEnterBackground&&r.props.onEnterBackground()},r.onCloseButtonClick=function(){pageflow.hideText.deactivate(),r.props.onLeaveBackground&&r.props.onLeaveBackground()},r}return L(t,e),A(t,[{key:"render",value:function(){var e=this.props.page;return F.a.createElement(H,{className:V()({unplayed:!this.props.textHasBeenHidden},"hide_content_with_text")},F.a.createElement(Yr,{onClick:this.onCloseButtonClick}),F.a.createElement(Br,{additionalButtons:this.props.additionalMenuBarButtons,onAdditionalButtonClick:this.props.onAdditionalButtonClick,qualityMenuButtonTitle:this.props.qualityMenuButtonTitle,qualityMenuItems:this.props.qualityMenuItems,onQualityMenuItemClick:this.props.onQualityMenuItemClick,hiddenOnPhone:this.props.textHasBeenHidden&&!this.props.textIsHidden}),F.a.createElement(q,{pageHasPlayerControls:!0},F.a.createElement("div",{className:"uncropped_media_wrapper"},this.props.children),F.a.createElement(Nn,{page:e})),F.a.createElement(Mn,null,F.a.createElement(qr,{playButtonTitle:"Starten",playButtonIconName:this.props.playButtonIconName,controlBarText:e.controlBarText||this.props.defaultControlBarText,onPlayButtonClick:this.onPlayButtonClick,infoBox:{title:e.additionalTitle,description:e.additionalDescription}}),F.a.createElement(Fn,null,F.a.createElement(Vn,{page:e}),F.a.createElement(Hn,{page:e}))))}}]),t}(F.a.Component),xc=An(te({textIsHidden:function(e){return e.hideText.isActive},textHasBeenHidden:function(e){return e.hideText.hasBeenActive}}))(_c),kc="HIDE_TEXT_ACTIVATE",Pc="HIDE_TEXT_DEACTIVATE";var Sc=Ee.a.mark(jc);function jc(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(Pc,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(cn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(Tc);case 5:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),Sc)}function Tc(){pageflow.events.trigger("scroll_indicator:enable")}var Ac={name:"interactivePageBackground",saga:jc};function Ic(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mc=new function(){var e=[];this.register=function(t,n){var r=n.component,o=n.reduxModules,i=void 0===o?[]:o,a=Ic(n,["component","reduxModules"]);r||s("Requires component option to be present"),Array.isArray(i)||s("Expected reduxModules option to be an array.");var c=[],u=i.reduce((function(e,t){return"object"==typeof t&&3==new Set(Object.keys(t).concat(["name","reducers","saga"])).size||s("Expected redux module to be object with name, reducers and saga properties at most."),t.reducers&&"object"!=typeof t.reducers&&s("Expected reducers property of ".concat(t.name," reduxModule to be object.")),t.saga&&c.push(t.saga),Nc({},e,{},t.reducers)}),{});function s(e){throw new Error("".concat(e," Check registerPageType call of ").concat(t," page type."))}e.push(Nc({name:t,component:r,reducer:Object.keys(u).length?Object(ce.c)(u):void 0,saga:Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.map((function(e){return e()}));case 2:case"end":return e.stop()}}),e)}))},a))},this.forEach=function(){return e.forEach.apply(e,arguments)},this.reduce=function(){return e.reduce.apply(e,arguments)},this.findByName=function(t){return e.find((function(e){var n=e.name;e.component;return n==t}))}},Dc=Mc.register;function Rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bc=new function(){var e=[];this.register=function(t,n){var r=n.component;e.push({name:t,component:r})},this.findByName=function(t){var n=e.find((function(e){return e.name==t}));if(!n)throw'Widget type with name "'.concat(t,'" not found.');return n},this.forEach=function(){e.forEach.apply(e,arguments)}},Fc=Bc.register,Uc=n(172),Vc={muted:!1},Hc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Da:return{muted:!0};case Ra:return{muted:!1};default:return e}};function qc(e){var t=e.t,n=e.muted,r=e.unmute;return n?F.a.createElement("div",{className:"background_media_unmute_button"},F.a.createElement("a",{title:t("pageflow.public.mute_off"),onClick:function(){new pageflow.AudioPlayer([{src:pageflow.assetUrls.unmuteSound,type:"audio/mpeg"}],{codecs:["mp3"]}).play(),r()},href:"#"})):null}var Wc={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||(n.on("background_media:mute",(function(e){return r({type:Da})})),n.on("background_media:unmute",(function(e){return r(La())})))},createReducers:function(){return{backgroundMedia:Hc}},createSaga:function(e){var t=e.backgroundMedia;return(Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(Ra,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return t.unmute()}));case 2:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),e)})))}};function Gc(e){return e.cookieNotice.visible}function zc(e){return e.theming.privacy_link_url}var Yc="COOKIE_NOTICE_REQUEST",Xc="COOKIE_NOTICE_DISMISS";function $c(){return{type:Xc}}function Kc(e){var t=e.isCookieNoticeVisible,n=e.editing,r=e.t,o=e.dismiss;return t||n?F.a.createElement("div",{className:"cookie_notice_bar"},F.a.createElement("div",{className:"cookie_notice_bar-content"},function(e){var t=e.privacyLinkUrl,n=e.t,r=e.locale,o=n("pageflow.public.cookie_notice_html",{privacyLinkUrl:"".concat(t,"?lang=").concat(r)});return F.a.createElement("span",{className:"cookie_notice_bar-text",dangerouslySetInnerHTML:{__html:o}})}(e),F.a.createElement("a",{className:"cookie_notice_bar-dismiss",onClick:o},r("pageflow.public.dismiss_cookie_notice")))):F.a.createElement("noscript",null)}function Qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zc=function(e){var t={dismissed:e.hasBeenDismissed,visible:!1};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Yc:return e.dismissed?e:Jc({},e,{visible:!0});case Xc:return{dismissed:!0,visible:!1};default:return e}}},eu={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||n.on("cookie_notice:request",(function(){return r({type:Yc})}))},createReducers:function(e){var t=e.cookies;return{cookieNotice:Zc({hasBeenDismissed:t&&t.hasItem("cookie_notice_dismissed")})}},createSaga:function(e){var t=e.widgetsApi,n=e.cookies;return(Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(Yc,Ee.a.mark((function e(){var n;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(Gc);case 2:if(!e.sent){e.next=10;break}return e.next=5,Object(De.cps)(tu,t);case 5:return n=e.sent,e.next=8,Object(De.take)(Xc);case 8:return e.next=10,Object(De.call)(n);case 10:case"end":return e.stop()}}),e)})));case 2:return e.next=4,Object(Re.takeEvery)(Xc,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){n.setItem("cookie_notice_dismissed",!0)}));case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return e.stop()}}),e)})))}};function tu(e,t){e.use({name:"cookie_notice_bar_visible",insteadOf:"cookie_notice_bar"},(function(e){return t(null,e)}))}var nu={createReducers:function(e){var t=e.enabledFeatureNames;return{features:function(){return t}}}},ru="THEMING_INIT";var ou=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ru:return t.payload.theming;default:return e}},iu={init:function(e){var t=e.theming;(0,e.dispatch)(function(e){return{type:ru,payload:{theming:e}}}(t))},createReducers:function(){return{theming:ou}}},au={init:function(e){var t=e.storylines,n=e.dispatch;Vt({collection:t,collectionName:"storylines",dispatch:n,attributes:["id"],includeConfiguration:!0})},createReducers:function(){return{storylines:Ae("storylines")}}},cu={init:function(e){var t=e.chapters,n=e.dispatch;Vt({collection:t,collectionName:"chapters",dispatch:n,attributes:["id","title","position","storyline_id"]})},createReducers:function(){return{chapters:Ae("chapters")}}},uu="PAGE_TYPES_INIT";var su=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case uu:return t.payload.pageTypes;default:return e}},lu={createReducers:function(){return{pageTypes:su}},init:function(e){var t=e.pageTypesSeed;(0,e.dispatch)(function(e){var t=e.pageTypes;return{type:uu,payload:{pageTypes:t}}}({pageTypes:X.deep(t)}))}},fu="CURRENT_PAGE_CHANGE";var pu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case fu:return t.payload.id;default:return e}},du=function(e,t){e.on("page:change",(function(e){return t(function(e){var t=e.id;return{type:fu,payload:{id:t}}}({id:e.getPermaId()}))}))},hu={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||du(n,r)},createReducers:function(){return{currentPageId:pu}}},vu={init:function(e){var t=e.files,n=e.dispatch;Object.keys(t).forEach((function(e){Vt({collection:t[e],collectionName:X(e),dispatch:n,idAttribute:"perma_id",attributes:["id","perma_id","basename","variants","is_ready","parent_file_id","parent_file_model_type","width","height","duration_in_ms","rights","created_at"],includeConfiguration:!0})}))},createReducers:function(e){var t=e.files,n=e.fileUrlTemplates,r=void 0===n?{}:n,o=e.modelTypes,i=void 0===o?{}:o;return r=X.keys(r),i=X.keys(i),{files:Object(ce.c)(Object.keys(t).reduce((function(e,t){return e[t=X(t)]=Ae(t,{idAttribute:"permaId"}),e}),{})),fileUrlTemplates:function(e){return r},modelTypes:function(e){return i}}}},gu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x:return t.payload.settings;default:return e}},yu={init:function(e){var t=e.isServerSide,n=e.settings,r=e.dispatch;t||(r(P({settings:n.toJSON()})),n.on("change",(function(){return r(P({settings:n.toJSON()}))})))},createReducers:function(){return{settings:gu}},createSaga:function(e){var t=e.settings;return(Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(k,Ee.a.mark((function e(n){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)([t,t.set],n.payload.property,n.payload.value);case 2:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),e)})))}};var mu="I18N_INIT";var bu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case mu:return{locale:t.payload.locale};default:return e}},wu={createReducers:function(){return{i18n:bu}},init:function(e){var t=e.locale;(0,e.dispatch)(function(e){var t=e.locale;return{type:mu,payload:{locale:t}}}({locale:t}))}},Ou="ENTRY_UPDATE",Eu="ENTRY_READY";function _u(e){var t=e.entry;return{type:Ou,payload:{entry:t}}}function xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ou:return ku({},e,{},t.payload.entry);case Eu:return ku({},e,{isReady:!0});default:return e}},Su={init:function(e){var t=e.entry,n=e.dispatch,r=e.events;e.isServerSide||r.once("ready",(function(){return n({type:Eu})})),Ut.a.Model&&t instanceof Ut.a.Model?function(e){var t=e.entry,n=e.dispatch;ju({entry:t,dispatch:n}),t.metadata.on("change:title",(function(){ju({entry:t,dispatch:n})}))}({entry:t,dispatch:n}):function(e){var t=e.entry;(0,e.dispatch)(_u({entry:{slug:t.slug,title:t.title,publishedAt:t.published_at}}))}({entry:t,dispatch:n})},createReducers:function(){return{entry:Pu}}};function ju(e){var t=e.entry;(0,e.dispatch)(_u({entry:{slug:t.get("slug"),title:t.metadata.get("title")||t.get("entry_title"),publishedAt:null}}))}var Tu={init:function(e){var t=e.isServerSide,n=e.window,r=e.getState,o=e.dispatch;t||n.addEventListener("keydown",(function(e){var t=r().currentPageId;32==e.keyCode?o(function(e){var t=e.currentPageId;return _(ba,t)}({currentPageId:t})):9==e.keyCode&&o(function(e){var t=e.currentPageId;return _(wa,t)}({currentPageId:t}))}))}},Au=function(e,t){e.on("activate",(function(e){return t({type:kc})})),e.on("deactivate",(function(e){return t({type:Pc})}))};function Iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nu={isActive:!1,hasBeenActive:!1},Mu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case kc:return{isActive:!0,hasBeenActive:!0};case Pc:return Cu({},e,{isActive:!1});case fu:return Cu({},e,{hasBeenActive:!1});default:return e}},Du={init:function(e){var t=e.isServerSide,n=e.hideText,r=e.dispatch;t||Au(n,r)},createReducers:function(){return{hideText:Mu}}},Ru={init:function(e){var t=e.widgets,n=e.dispatch;Vt({collection:t,collectionName:"widgets",dispatch:n,attributes:["role","type_name","editing"],includeConfiguration:!0})},createReducers:function(){return{widgets:Ae("widgets",{idAttribute:"role"})}}};var Lu="WIDGETS_LOAD";var Bu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Lu:return t.payload.widgets;default:return e}},Fu={init:function(e){var t=e.isServerSide,n=e.events,r=e.widgetsApi,o=e.dispatch;function i(){o(function(e){var t=e.widgets;return{type:Lu,payload:{widgets:t}}}({widgets:{classicPlayerControls:r.isPresent("classic_player_controls"),slimPlayerControls:r.isPresent("slim_player_controls")}}))}t||(n.on("widgets:update",i),i())},createReducers:function(){return{widgetPresence:Bu}}},Uu="THEME_INIT";var Vu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Uu:return t.payload;default:return e}},Hu={createReducers:function(){return{theme:Vu}},init:function(e){var t,n=e.dispatch;if(!e.isServerSide){var r=document.getElementById("theme_probe-main_color");n((t={mainColor:window.getComputedStyle(r)["background-color"]},{type:Uu,payload:t}))}}};function qu(e){return e.consent.uiVisible}function Wu(e){return e.consent.requestedVendors}var Gu=function(e){return React.createElement(ar,Object.assign({},e,{viewBoxLeft:60,viewBoxTop:170,viewBoxWidth:90,viewBoxHeight:157}),React.createElement("path",{fill:"currentColor",d:"m 150.00015,296.99993 a 50,50 0 0 0 50.00004,-50.00005 50,50 0 0 0 -50.00004,-50.00004 H 50.000048 A 50,50 0 0 0 0,246.99988 50,50 0 0 0 50.000048,296.99993 Z"}),React.createElement("circle",{cx:"-150.0002",cy:"-246.99979",fill:"#fff",r:"40",transform:"scale(-1)"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"M 87,227 50,264 34,246"}))},zu=function(e){return React.createElement(ar,Object.assign({},e,{viewBoxLeft:60,viewBoxTop:170,viewBoxWidth:90,viewBoxHeight:157}),React.createElement("path",{fill:"currentColor",d:"M 188.97656 744.56641 A 188.97638 188.97638 0 0 0 0 933.54297 A 188.97638 188.97638 0 0 0 188.97656 1122.5195 L 566.92969 1122.5195 A 188.97638 188.97638 0 0 0 755.90625 933.54297 A 188.97638 188.97638 0 0 0 566.92969 744.56641 L 188.97656 744.56641 z ",transform:"scale(0.26458333)"}),React.createElement("circle",{id:"path3721-7",cx:"50",cy:"247",fill:"#ffffff",r:"40"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"m 110.10252,271.89748 49.79539,-49.79494"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"M 159.89746,271.89748 110.10252,222.10209"}))},Yu=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={checked:e.defaultChecked},n.handleClick=n.onClick.bind(N(n)),n}return L(t,e),A(t,[{key:"onClick",value:function(){var e=!this.state.checked;this.setState({checked:e}),this.props.onChange({target:{checked:e}})}},{key:"render",value:function(){var e=this.state.checked,t=e?Gu:zu;return F.a.createElement("button",{id:this.props.id,className:this.props.className,role:"switch","aria-checked":e,onClick:this.handleClick},F.a.createElement(t,{width:50,height:35}))}}]),t}(F.a.Component),Xu=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={},n.handleVendorInfoClick=n.onVendorInfoClick.bind(N(n)),n}return L(t,e),A(t,[{key:"onVendorInfoClick",value:function(e){this.setState(Object(a.a)({},e,!this.state[e]))}},{key:"render",value:function(){return F.a.createElement("div",{className:"consent_vendor_list"},this.renderVendors())}},{key:"renderVendors",value:function(){var e=this;return this.props.vendors.length?this.props.vendors.map((function(t){var n="consent_vendor_list-vendor_".concat(t.name);return F.a.createElement("div",{key:n,className:"consent_vendor_list-vendor"},F.a.createElement("label",{htmlFor:n},t.displayName),F.a.createElement(Yu,{id:n,className:"consent_vendor_list-toggle",defaultChecked:"accepted"===t.state,onChange:function(n){return e.props.onVendorInputChange(t.name,n)}}),F.a.createElement("button",{className:"consent_vendor_list-expand_vendor",title:e.props.t("pageflow.public.consent_expand_vendor"),onClick:function(){return e.handleVendorInfoClick(t.name)}},F.a.createElement(ur,{width:20,height:20})),e.renderVendorDescription(t))})):F.a.createElement("div",{className:"consent_vendor_list-blank"},this.props.t("pageflow.public.consent_no_vendors"))}},{key:"renderVendorDescription",value:function(e){return this.state[e.name]?F.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.description}}):null}}]),t}(F.a.Component),$u="CONSENT_REQUEST",Ku="CONSENT_DENY_ALL",Qu="CONSENT_ACCEPT_ALL",Ju="CONSENT_SAVE";function Zu(e){var t=e.vendors;return{type:$u,payload:{vendors:t}}}function es(){return{type:Ku}}function ts(){return{type:Qu}}function ns(e){return{type:Ju,payload:e}}function rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var is=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={checked:{}},n.handleSaveButtonClick=n.onSaveButtonClick.bind(N(n)),n.handleAcceptAllButtonClick=n.onAcceptAllButtonClick.bind(N(n)),n.handleDenyAllAllButtonClick=n.onDenyAllButtonClick.bind(N(n)),n.handleVendorInputChange=n.onVendorInputChange.bind(N(n)),n}return L(t,e),A(t,[{key:"onSaveButtonClick",value:function(){var e=this;if(!this.props.editing){var t=this.props.requestedVendors.reduce((function(t,n){var r=n.name;return os({},t,Object(a.a)({},r,e.state.checked[r]||!1))}),{});this.props.save(t)}}},{key:"onAcceptAllButtonClick",value:function(){this.props.editing||this.props.acceptAll()}},{key:"onDenyAllButtonClick",value:function(){this.props.editing||this.props.denyAll()}},{key:"onVendorInputChange",value:function(e,t){this.setState({checked:os({},this.state.checked,Object(a.a)({},e,t.target.checked))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.editing,r=t.t,o=t.requestedVendors;return t.visible||n?F.a.createElement("div",{className:V()("consent_bar",{"consent_bar-expanded":this.state.showVendorBox})},F.a.createElement("div",{className:"consent_bar-content"},function(e){var t=e.privacyLinkUrl,n=e.t,r=e.locale,o=e.requestedVendors.map((function(e){return e.name})).join(","),i=n("pageflow.public.consent_prompt_html",{privacyLinkUrl:"".concat(t,"?lang=").concat(r,"&vendors=").concat(o,"#consent")});return F.a.createElement("span",{className:"consent_bar-text",dangerouslySetInnerHTML:{__html:i}})}(this.props),F.a.createElement("div",{className:"consent_bar-vendor_box"},F.a.createElement("h3",null,r("pageflow.public.consent_settings")),F.a.createElement(Xu,{vendors:o,t:r,onVendorInputChange:this.handleVendorInputChange}),F.a.createElement("button",{className:"consent_bar-save",onClick:this.handleSaveButtonClick},r("pageflow.public.consent_save"))),F.a.createElement("div",{className:"consent_bar-buttons"},F.a.createElement("button",{className:"consent_bar-configure",onClick:function(){return e.setState({showVendorBox:!e.state.showVendorBox})}},F.a.createElement(cr,{width:10,height:10}),r("pageflow.public.consent_configure")),F.a.createElement("div",{className:"consent_bar-decision_buttons"},F.a.createElement("button",{className:"consent_bar-deny_all",onClick:this.handleDenyAllAllButtonClick},r("pageflow.public.consent_deny_all")),F.a.createElement("button",{className:"consent_bar-accept_all",onClick:this.handleAcceptAllButtonClick},r("pageflow.public.consent_accept_all")))))):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function as(e){var t=e&&e.match(/vendors=([^&]+)/);return t?t[1].split(","):[]}var cs={createReducers:function(){return{consent:(e={uiVisible:!1,requestedVendors:[]},function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case $u:return{requestedVendors:n.payload.vendors,uiVisible:!0};case Qu:case Ku:case Ju:return{uiVisible:!1};default:return t}})};var e},createSaga:function(e){e.widgetsApi;var t=e.consent;return(Ee.a.mark((function e(){var n,r,o,i,a;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return t.requested()}));case 2:return n=e.sent,r=n.acceptAll,o=n.denyAll,i=n.save,a=n.vendors,e.next=9,Object(De.put)(Zu({vendors:a}));case 9:return e.next=11,Object(Re.takeEvery)(Qu,(function(){r()}));case 11:return e.next=13,Object(Re.takeEvery)(Ku,(function(){o()}));case 13:return e.next=15,Object(Re.takeEvery)(Ju,(function(e){i(e.payload)}));case 15:case"end":return e.stop()}}),e)})))}};function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ss=function(e){var t=!!e.storylines,n=!e.settings,r=e.seed,o=t?e:r,i={isServerSide:n,locale:r.locale,entry:o.entry,enabledFeatureNames:r.enabled_feature_names,fileUrlTemplates:r.file_url_templates,modelTypes:r.file_model_types,pageTypesSeed:r.page_types,pageTypes:Mc,theming:r.theming,files:o.files||{},storylines:o.storylines,chapters:o.chapters,pages:o.pages,widgets:t?e.entry.widgets:r.widgets,cookies:e.cookies,hideText:e.hideText,events:e.events,settings:e.settings,widgetsApi:e.widgets,backgroundMedia:e.backgroundMedia,consent:e.consent,window:n?null:window},c=Object(Uc.a)([Wc,eu,nu,wu,iu,Su,hu,au,cu,Tn,vu,yu,Du,Ru,Fu,lu,Tu,Hu,cs],i);return n||(Mc.forEach((function(t){return e.pageType.register(t.name,function(e){return Pn(_n(e),e.mixin||{})}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{Component:t.component,store:c})))})),Bc.forEach((function(t){var n=t.name,r=t.component;return e.widgetTypes.register(n,function(e,t){return{enhance:function(n){Ut.a.render(React.createElement(He,{store:t},React.createElement(e,null)),n[0])}}}(r,c))}))),c},ls=Mt("pages"),fs=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentWillMount",value:function(){this.store=ss({seed:this.props.resolverSeed}),this.pageComponent=Mc.findByName(this.props.pageType).component}},{key:"render",value:function(e){var t=this.pageComponent;return F.a.createElement(He,{store:this.store},F.a.createElement(ls,{itemId:this.props.pageId},F.a.createElement(t,null)))}}]),t}(F.a.Component),ps=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentWillMount",value:function(){this.store=ss({seed:this.props.resolverSeed}),this.widgetComponent=Bc.findByName(this.props.widgetTypeName).component}},{key:"render",value:function(e){var t=this.widgetComponent;return F.a.createElement(He,{store:this.store},F.a.createElement(t,null))}}]),t}(F.a.Component),ds=Mt("pages"),hs=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentWillMount",value:function(){this.store=ss({seed:this.props.resolverSeed})}},{key:"render",value:function(e){return F.a.createElement(He,{store:this.store},F.a.createElement(ds,{itemId:this.props.pageId},F.a.createElement(Ji,null)))}}]),t}(F.a.Component);function vs(e){var t=e.page.audioPlayerControlsVariant;return React.createElement(di,{className:"audio_page supports_text_position_center",page:e.page,file:e.audioFile,playerState:e.playerState,playerActions:e.playerActions,controlBarText:e.t("pageflow.public.start_audio"),playerControlsComponent:gs(t),dynamicPageScrollerMargin:"waveform"==t,autoplayWhenBackgroundMediaMuted:!1},React.createElement(Ji,null),React.createElement(Xi,{playbackMode:!1===e.page.autoplay?"manual":"autoplay",playerDescription:"Audio Page Player"},React.createElement(Ni,{file:e.audioFile,playerState:e.playerState,playerActions:e.playerActions,textTrackPosition:ys(t)})))}function gs(e){return"waveform"==e?ya:qr}function ys(e){if("waveform"==e)return"top"}function ms(e){var t=e.page;return React.createElement(H,{className:"supports_text_position_center"},React.createElement(Zi,{page:t}),React.createElement(Mn,null,React.createElement(Fn,null,React.createElement(Vn,{page:t}),React.createElement(ea,{page:t}),React.createElement(Hn,{page:t}))))}var bs=["auto","4k","fullhd","medium"];function ws(e){return React.createElement(di,{className:"video_page supports_text_position_center",page:e.page,file:e.videoFile,qualities:bs,playerState:e.playerState,playerActions:e.playerActions,controlBarText:e.t("pageflow.public.start_video"),autoplayWhenBackgroundMediaMuted:!0},React.createElement(Xi,{playbackMode:!1===e.page.autoplay?"manual":"autoplay",playerDescription:"Video Page Player"},React.createElement(Gi,{page:e.page,playerState:e.playerState,playerActions:e.playerActions,fit:e.page.contain?"contain":"smart_contain"})),React.createElement($i,{page:e.page}))}var Os={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#3b5159"},Es=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={fading:!1,hidden:!1},n}return L(t,e),A(t,[{key:"componentDidMount",value:function(){var e=this;PAGEFLOW_EDITOR?this.setState({hidden:!0}):this.fadeTimeout=setTimeout((function(){pageflow.ready.then((function(){e.setState({fading:!0}),e.hiddenTimeout=setTimeout((function(){e.setState({hidden:!0})}),1e3)}))}),1e3)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.fadeTimeout),clearTimeout(this.hiddenTimeout)}},{key:"render",value:function(){var e=this.props.editing,t=this.state,n=t.hidden,r=t.fading;return e||!n?F.a.createElement("div",{className:V()("loading_spinner",{fade:!e&&r}),onTouchMove:_s,style:Os},F.a.createElement("div",{className:"loading_inner"},F.a.createElement("div",{className:"left_circle"}),F.a.createElement("div",{className:"right_circle"}),F.a.createElement("div",{className:"loading_spinner_inner"},F.a.createElement("div",null)))):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function _s(e){e.preventDefault()}var xs=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={hidden:!1,animating:!1},n}return L(t,e),A(t,[{key:"componentDidMount",value:function(){var e=this;PAGEFLOW_EDITOR?this.setState({hidden:!0,animating:!0}):(this.setState({animating:!0}),pageflow.delayedStart.waitFor((function(t){e.resolveDelayedStart=t})))}},{key:"hideOrLoop",value:function(e){var t=this;e.target===e.currentTarget&&(PAGEFLOW_EDITOR?(this.setState({animating:!1}),setTimeout((function(){t.setState({animating:!0})}),1e3)):(this.setState({hidden:!0}),this.resolveDelayedStart()))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hiddenTimeout)}},{key:"render",value:function(){var e=this,t=this.props.editing,n=this.state,r=n.hidden,o=n.animating,i=Ss(this.props),a=F.a.createElement("div",{className:V()("media_loading_spinner-logo",{"media_loading_spinner-logo-invert":i})});return this.props.removeLogo&&(a=""),t||!r?F.a.createElement("div",{className:V()("media_loading_spinner",{"media_loading_spinner-fade":o},{"media_loading_spinner-invert":i}),onAnimationEnd:function(t){return e.hideOrLoop(t)},onTouchMove:ks,style:js(this.props)},a,F.a.createElement("div",{className:"media_loading_spinner-image",style:Ps(this.props)}),this.props.children):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function ks(e){e.preventDefault()}function Ps(e){var t=e.firstPageBackgroundImageUrlMedium,n=e.firstPageBackgroundImageUrlLarge,r=e.backgroundImage,o=e.blurStrength,i=e.backgroundImageX,a=e.backgroundImageY,c={x:null!=i?i:50,y:null!=a?a:50},u=0===o?r?r.urls.large:n:r?r.urls.medium:t;if(u){var s={backgroundImage:'url("'.concat(u,'")'),filter:"blur("+o+"px)"};return r&&(s.backgroundPosition="".concat(c.x,"% ").concat(c.y,"%")),s}}function Ss(e){return e.backgroundImage||null!=e.invert?e.invert:e.firstPageInvert}function js(e){return{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:100,backgroundColor:Ss(e)?"#fff":"#000",animationDelay:void 0!==e.animationDuration?e.animationDuration+"s":void 0}}var Ts=Ct(te({editing:oo({role:"loading_spinner"}),firstPageInvert:nn("invert"),firstPageBackgroundImageUrlMedium:Jt({variant:"medium",page:tn()}),firstPageBackgroundImageUrlLarge:Jt({variant:"large",page:tn()}),backgroundImage:Xt("imageFiles",{id:no("customBackgroundImageId",{role:"loading_spinner"})}),backgroundImageX:no("customBackgroundImageX",{role:"loading_spinner"}),backgroundImageY:no("customBackgroundImageY",{role:"loading_spinner"}),invert:no("invert",{role:"loading_spinner"}),removeLogo:no("removeLogo",{role:"loading_spinner"}),blurStrength:no("blurStrength",{role:"loading_spinner"}),animationDuration:no("animationDuration",{role:"loading_spinner"})}))(xs);var As=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.subtitle,r=e.entryTitle,o=Ss(this.props),i=void 0!==this.props.animationDuration?this.props.animationDuration+"s":void 0;return F.a.createElement(Ts,null,F.a.createElement("div",{className:V()("media_loading_spinner-titles",{"media_loading_spinner-invert":o}),style:{animationDuration:i}},F.a.createElement("div",{className:"media_loading_spinner-title"},t||r),F.a.createElement("div",{className:"media_loading_spinner-subtitle"},n)))}}]),t}(F.a.Component);var Is=n(96),Cs=n.n(Is);function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Dc("background_image",{component:An(te({page:on()}))(ms),reduxModules:[Ec]}),Dc("video",{component:An(te({page:on(),videoFile:Xt("videoFiles",{id:rn("videoFileId")}),playerState:Xo(),t:Gr}),$({playerActions:$o()}))(ws),reduxModules:[Oc({hideControls:!0,autoplayWhenBackgroundMediaMuted:!0,playsInNativePlayer:zn("native video player")})]}),Dc("audio",{component:An(te({page:on(),audioFile:Xt("audioFiles",{id:rn("audioFileId")}),playerState:Xo(),t:Gr}),$({playerActions:$o()}))(vs),reduxModules:[Oc({retryOnUnmute:!0}),Ec]}),Fc("cookie_notice_bar",{component:Ct(te({isCookieNoticeVisible:Gc,privacyLinkUrl:zc,editing:oo({role:"cookie_notice"}),t:Gr,locale:zr}),{dismiss:$c})(Kc)}),Fc("consent_bar",{component:Ct(te({privacyLinkUrl:zc,editing:oo({role:"cookie_notice"}),t:Gr,locale:zr,requestedVendors:Wu,visible:qu}),{acceptAll:ts,denyAll:es,save:ns})(is)}),Fc("unmute_button",{component:Ct(te({t:Gr,muted:zo}),{unmute:La})(qc)}),Fc("classic_loading_spinner",{component:Ct(te({editing:oo({role:"loading_spinner"})}))(Es)}),Fc("title_loading_spinner",{component:Ct(te({firstPageInvert:nn("invert"),backgroundImage:Xt("imageFiles",{id:no("customBackgroundImageId",{role:"loading_spinner"})}),entryTitle:ui("title"),title:no("title",{role:"loading_spinner"}),subtitle:no("subtitle",{role:"loading_spinner"}),removeLogo:no("removeLogo",{role:"loading_spinner"}),invert:no("invert",{role:"loading_spinner"}),animationDuration:no("animationDuration",{role:"loading_spinner"})}))(As)}),Fc("media_loading_spinner",{component:Ts}),Cs.a.events&&Cs.a.events.on("seed:loaded",(function(){return ss(Cs.a)}));t.default={components:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ConsentSettings:function(e){var t=e.consent,n=e.t,r=e.queryString,o=t.relevantVendors({include:as(r)});return F.a.createElement("div",null,F.a.createElement(Xu,{vendors:o,t:n,onVendorInputChange:function(e,n){n.target.checked?t.accept(e):t.deny(e)}}))},MediaPageBackground:Zi,PageWithInteractiveBackground:xc},o),actions:r,selectors:i,registerPageType:Dc,registerPageTypeWithDefaultBackground:function(e,t){Dc(e,{component:Ji,selectTargetElement:function(e){return e.find(".page_background_asset")[0]},mixin:Lc({scroller:!0},t),reduxModules:[Ec]})},registerWidgetType:Fc,mediaReduxModule:Oc,mediaPageBackgroundReduxModule:Ec,pageWithInteractiveBackgroundReduxModule:Ac,iconMapping:lr,SvgIcon:ar,classNames:V.a,connect:Ct,connectInPage:An,combineReducers:ce.c,combine:$,ServerSidePage:fs,ServerSideWidget:ps,ServerSidePageBackgroundAsset:hs}}]).default;
|
19
|
+
*/Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case y:case g:case s:return e;default:return t}}case i:return t}}}function E(e){return O(e)===p}t.typeOf=O,t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=g,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===c||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===m||e.$$typeof===b||e.$$typeof===w)},t.isAsyncMode=function(e){return E(e)||O(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===y},t.isMemo=function(e){return O(e)===g},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===u},t.isStrictMode=function(e){return O(e)===c},t.isSuspense=function(e){return O(e)===h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=(l(i),l(n(29))),c=l(n(19)),u=l(n(400)),s=l(n(401));function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.measure=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.props.useClone;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var r=n.getDimensions(n._node,e,t),o="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(r[e]!==n._lastDimensions[e])return n.props.onMeasure(r),o&&void 0!==n&&n.setState({dimensions:r}),n._lastDimensions=r,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new u.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){e.config;var t=e.whitelist,n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=c.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.useClone,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.cloneOptions;return(0,s.default)(e,r({margin:t,clone:n},o))}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);f.propTypes={whitelist:a.default.array,blacklist:a.default.array,includeMargin:a.default.bool,useClone:a.default.bool,cloneOptions:a.default.object,shouldMeasure:a.default.bool,onMeasure:a.default.func},f.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=f,e.exports=t.default},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}())}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},a=2;var c=20,u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function c(){n&&(n=!1,e()),r&&s()}function u(){i(c)}function s(){var e=Date.now();if(n){if(e-o<a)return;r=!0}else n=!0,r=!1,setTimeout(u,t);o=e}return s}(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=b(0,0,0,0);function h(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=h(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=h(r.width),u=h(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=v(r,"left","right")+i),Math.round(u+a)!==n&&(u-=v(r,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var s=Math.round(c+i)-t,l=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(u-=l)}return b(o.left,o.top,c,u)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?y(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):g(e):d}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(e,t){var n,r,o,i,a,c,u,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),f(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);f(this,{target:e,contentRect:s})},E=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new E(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var k=void 0!==o.ResizeObserver?o.ResizeObserver:x;t.default=k}.call(this,n(73))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.getBoundingClientRect(),r=void 0,a=void 0,c=void 0;if((n.width&&n.height||t.noCloneOnZeroDimension)&&!t.clone)t.margin&&(c=(0,i.default)(getComputedStyle(e)));else{var u=(0,o.default)(e,t);n=u.rect,c=u.margin}t.margin?(r=c.left+n.width+c.right,a=c.top+n.height+c.bottom):(r=n.width,a=n.height);return{width:r,height:a,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var o=r(n(402)),i=r(n(167));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,o,a=e.parentNode,c=document.createElement("div"),u=e.cloneNode(!0),s=getComputedStyle(e);c.style.height=0,c.style.overflow="hidden",u.setAttribute("id",""),u.setAttribute("name",""),(t.display||s&&"none"===s.getPropertyValue("display"))&&(u.style.display=t.display||"block");(t.width||s&&!parseInt(s.getPropertyValue("width")))&&(u.style.width=t.width||"auto");(t.height||s&&!parseInt(s.getPropertyValue("height")))&&(u.style.height=t.height||"auto");return c.appendChild(u),a.appendChild(c),n=u.getBoundingClientRect(),r=u.offsetWidth,o=u.offsetHeight,a.removeChild(c),{rect:{width:r,height:o,top:n.top,right:n.right,bottom:n.bottom,left:n.left},margin:(0,i.default)(s)}};var r,o=n(167),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=c(p);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||l||c(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"updatePageAttribute",(function(){return O})),n.d(r,"updatePageLink",(function(){return E})),n.d(r,"updateSetting",(function(){return S}));var o={};n.r(o),n.d(o,"PageWrapper",(function(){return H})),n.d(o,"PageBackground",(function(){return q})),n.d(o,"PageBackgroundImage",(function(){return Cn})),n.d(o,"PageShadow",(function(){return Nn})),n.d(o,"PageForeground",(function(){return Mn})),n.d(o,"PageContent",(function(){return Un})),n.d(o,"PageScroller",(function(){return Fn})),n.d(o,"PageHeader",(function(){return Vn})),n.d(o,"PageText",(function(){return Hn})),n.d(o,"PageLink",(function(){return Xn})),n.d(o,"PageThumbnail",(function(){return Zn})),n.d(o,"LazyLoadedPageThumbnail",(function(){return er})),n.d(o,"PlayerControls",(function(){return qr})),n.d(o,"CloseButton",(function(){return Yr})),n.d(o,"MenuBar",(function(){return Br})),n.d(o,"Icon",(function(){return fr})),n.d(o,"editorOnly",(function(){return Xr})),n.d(o,"withVisibilityWatching",(function(){return Vr})),n.d(o,"Draggable",(function(){return xr.a})),n.d(o,"Measure",(function(){return Pr.a}));var i={};n.r(i),n.d(i,"pageAttribute",(function(){return rn})),n.d(i,"pageAttributes",(function(){return on})),n.d(i,"pageIsActive",(function(){return cn})),n.d(i,"pageIsPrepared",(function(){return sn})),n.d(i,"currentParentPageAttributes",(function(){return Zr})),n.d(i,"currentParentChapterAttributes",(function(){return Jr})),n.d(i,"t",(function(){return Gr})),n.d(i,"setting",(function(){return eo})),n.d(i,"file",(function(){return Xt})),n.d(i,"prop",(function(){return Gn})),n.d(i,"widgetAttributes",(function(){return ro})),n.d(i,"editingWidget",(function(){return oo}));n(173),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(78),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(223),n(224),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(289),n(290),n(291),n(292),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(156),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(388),n(163);var a=n(4),c=(n(389),"PAGE_DID_ACTIVATE"),u="PAGE_WILL_ACTIVATE",s="PAGE_DID_DEACTIVATE",l="PAGE_WILL_DEACTIVATE",f="PAGE_DID_PRELOAD",p="PAGE_DID_PREPARE",d="PAGE_SCHEDULE_UNPREPARE",h="PAGE_DID_UNPREPARE",v="PAGE_DID_RESIZE",g="PAGE_ENHANCE",y="PAGE_CLEANUP",m="UPDATE_PAGE_ATTRIBUTE",b="UPDATE_PAGE_LINK";function w(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(h,e)}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.name,r=e.value;return _(m,t,{name:n,value:r})}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pageId,n=e.linkId,r=e.name,o=e.value;return _(b,t,{linkId:n,name:r,value:o})}function _(e,t){return{type:e,meta:{collectionName:"pages",itemId:t},payload:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}}}var x="SETTINGS_LOAD",k="SETTINGS_UPDATE";function P(e){var t=e.settings;return{type:x,payload:{settings:t}}}function S(e){var t=e.property,n=e.value;return{type:k,payload:{property:t,value:n}}}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),e}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e){return(C="function"==typeof Symbol&&"symbol"===I(Symbol.iterator)?function(e){return I(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":I(e)})(e)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?N(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}var B=n(0),F=n.n(B),U=n(5),V=n.n(U),H=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){return React.createElement("div",{className:V()("content_and_background",this.props.className)},this.props.children)}}]),t}(B.Component);function q(e){return React.createElement("div",{className:(t=e,n=t.pageHasPlayerControls,V()("page_background",{"page_background-for_page_with_player_controls":n}))},e.children);var t,n}var W=n(168),G=n.n(W);function z(e){return!!G()(e).match(/^\s*$/)}function Y(e){return e.replace(/_[a-z]/g,(function(e){return e[1].toUpperCase()}))}Y.keys=function(e){return Object.keys(e).reduce((function(t,n){return t[Y(n)]=e[n],t}),{})},Y.deep=function(e){return Array.isArray(e)?e.map(Y.deep):"object"==typeof e&&e?Object.keys(e).reduce((function(t,n){return t[Y(n)]=Y.deep(e[n]),t}),{}):e},Y.concat=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).reduce((function(e,t){return e+t[0].toUpperCase()+t.slice(1)}))};var X=Y,$=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object.keys(e).reduce((function(t,r){return"function"==typeof e[r]?t[r]=e[r].apply(e,n):t[r]=e[r],t}),{})}},K=n(59),Q=n(119),J=Symbol("selectorFactory"),Z=Symbol("createSelector");function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return re((function(e,n){var r=t.slice(0,-1).map(ne),o=t.slice(-1)[0],i=Q.createSelector.apply(void 0,Object(K.a)(r).concat([o]));if(e===Z)return i;if(e)return i(e,n);throw"Missing state argument for selector."}))}function te(e,t){return re((function(){return Object(Q.createStructuredSelector)(function(e){return Object.keys(e).reduce((function(t,n){return t[n]=ne(e[n]),t}),{})}((t=e,Object.keys(t).reduce((function(e,n){return"function"==typeof t[n]?e[n]=t[n]:e[n]=function(){return t[n]},e}),{}))));var t}))}function ne(e){return"function"==typeof e&&e[J]?e(Z):e}function re(e){return e[J]=!0,e}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pageflow.browser;return t&&t.has(e)}function ie(e){return new Promise((function(t){var n=new Image;n.onload=t,n.onerror=t,n.src=e}))}var ae=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this;return F.a.createElement("div",{className:this.cssClass(),style:this.style(),ref:function(t){return e.element=t}},this.renderStructuredData())}},{key:"componentDidUpdate",value:function(e){this.props.loaded&&!e.loaded&&function(e){var t=window.getComputedStyle(e).getPropertyValue("background-image");if(t.match(/^url/))ie(t.replace(/^url\(['"]?/,"").replace(/['"]?\)$/,""))}(this.element)}},{key:"cssClass",value:function(){return V()(this.props.className,this.props.loaded?"load_image":null,this.imageCssClass())}},{key:"imageCssClass",value:function(){return["imageFiles"==this.props.fileCollection?"image":"video_poster",this.props.fileId||"none"].join("_")}},{key:"style",value:function(){return{backgroundPosition:"".concat(this.positionCoordinate(0),"% ").concat(this.positionCoordinate(1),"%")}}},{key:"positionCoordinate",value:function(e){var t=this.props.position[e];return void 0===t?50:t}},{key:"renderStructuredData",value:function(){if(this.props.structuredDataComponent){var e=this.props.structuredDataComponent;return F.a.createElement(e,{fileCollection:this.props.fileCollection,fileId:this.props.fileId})}}}]),t}(F.a.Component);ae.defaultProps={position:[50,50],fileCollection:"imageFiles"};var ce=n(17),ue=Object(ce.c)({isPreloaded:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case f:return!0;default:return e}},isPrepared:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case p:case u:return!0;case h:return!1;default:return e}},isActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case u:return!0;case l:return!1;default:return e}},isActivated:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case c:return!0;case l:return!1;default:return e}},initialScrollerPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u:return t.payload.position||"top";case l:return null;default:return e}}});var se="COLLECTION_RESET",le="COLLECTION_ADD",fe="COLLECTION_CHANGE",pe="COLLECTION_REMOVE",de="COLLECTION_ORDER";function he(e){var t=e.collectionName,n=e.items;return{type:se,meta:{collectionName:t},payload:{collectionName:t,items:n}}}function ve(e){var t=e.collectionName,n=e.attributes,r=e.order;return{type:le,meta:{collectionName:t},payload:{attributes:n,order:r}}}function ge(e){var t=e.collectionName,n=e.attributes;return{type:fe,meta:{collectionName:t},payload:{attributes:n}}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case le:case fe:return t.payload.attributes;default:return e}}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var we=function(e){var t={};function n(n){return t[n]=t[n]||Object(ce.c)({attributes:ye,state:Object(ce.c)({custom:e[n]||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},common:ue})}),t[n]}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,o=ye(e.attributes,t);return n(o.type)(r(e,e.attributes,o),t)};function r(e,t,n){return t&&t.type!==n.type?be({},e,{state:be({},e.state,{custom:void 0})}):e}},Oe=n(2),Ee=n.n(Oe),_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;return function(t){if(n){if(!t[n])throw new Error("Cannot select from unknown namespace ".concat(n,"."));t=t[n]}return t[e].items||{}}};function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e,t,n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,Object(a.a)({},Pe(t),n))}function Pe(e){return"__".concat(e,"_connectedId")}var Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.id;return function(t,o){var i=r,a=t;if(n){if(!t[n])throw new Error("Cannot select from unknown namespace ".concat(n,"."));a=t[n]}if(!a[e])throw new Error("Cannot select from unknown collection ".concat(e,"."));return"function"==typeof r&&(i=r(t,o)),(i=i||t[Pe(e)])?a[e].items[i]:null}}};function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.itemReducer,i=void 0===o?ye:o,c={order:[],items:{}};return function(){var t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,u=arguments.length>1?arguments[1]:void 0;if(!u.meta||u.meta.collectionName!=e)return o;switch(u.type){case se:return{order:u.payload.items.map((function(e){return e[r]})),items:u.payload.items.reduce((function(e,t){return e[t[r]]=i(void 0,ve({collectioName:u.payload.collectioName,attributes:t})),e}),{})};case le:return{order:u.payload.order,items:Te({},o.items,Object(a.a)({},u.payload.attributes[r],i(void 0,u)))};case fe:return n=u.payload.attributes[r],{order:o.order,items:Te({},o.items,Object(a.a)({},n,i(o.items[n],u)))};case pe:return n=u.payload.attributes[r],delete(t=Te({},o.items))[n],{order:u.payload.order,items:t};case de:return{items:o.items,order:u.payload.order};default:if(u.meta.itemId){var s=o.items[u.meta.itemId],l=i(s,u);if(l!==s)return{order:o.order,items:Te({},o.items,Object(a.a)({},u.meta.itemId,l))}}return o}}};function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e,t,n){e.meta&&e.meta.collectionName==t&&!e.meta.itemId&&(e.meta=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.meta,{itemId:n}))}function Ne(e,t){return e.meta&&e.meta.collectionName==t}function Me(e){return e.meta&&e.meta.itemId}var De=n(3),Re=n(7);function Le(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Be=n(29),Fe=n.n(Be),Ue=Fe.a.shape({trySubscribe:Fe.a.func.isRequired,tryUnsubscribe:Fe.a.func.isRequired,notifyNestedSubs:Fe.a.func.isRequired,isSubscribed:Fe.a.func.isRequired}),Ve=Fe.a.shape({subscribe:Fe.a.func.isRequired,dispatch:Fe.a.func.isRequired,getState:Fe.a.func.isRequired});F.a.forwardRef;var He=function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",r=function(t){Le(o,t);var r=o.prototype;function o(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return r.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.render=function(){return B.Children.only(this.props.children)},o}(B.Component);return r.propTypes={store:Ve.isRequired,children:Fe.a.element.isRequired},r.childContextTypes=((t={})[e]=Ve.isRequired,t[n]=Ue,t),r}();function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function We(){return(We=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ge(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var ze=n(171),Ye=n.n(ze),Xe=n(95),$e=n.n(Xe),Ke=n(118),Qe=null,Je={notify:function(){}};var Ze=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=Je}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=Qe,e=Qe},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==Qe&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Je)},e}(),et=void 0!==F.a.forwardRef,tt=0,nt={};function rt(){}function ot(e,t){var n,r;void 0===t&&(t={});var o=t,i=o.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,c=o.methodName,u=void 0===c?"connectAdvanced":c,s=o.renderCountProp,l=void 0===s?void 0:s,f=o.shouldHandleStateChanges,p=void 0===f||f,d=o.storeKey,h=void 0===d?"store":d,v=o.withRef,g=void 0!==v&&v,y=Ge(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),m=h+"Subscription",b=tt++,w=((n={})[h]=Ve,n[m]=Ue,n),O=((r={})[m]=Ue,r);return function(t){$e()(Object(Ke.isValidElementType)(t),"You must pass a component to the function returned by "+u+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",r=a(n),o=We({},y,{getDisplayName:a,methodName:u,renderCountProp:l,shouldHandleStateChanges:p,storeKey:h,withRef:g,displayName:r,wrappedComponentName:n,WrappedComponent:t}),i=function(n){function i(e,t){var o;return(o=n.call(this,e,t)||this).version=b,o.state={},o.renderCount=0,o.store=e[h]||t[h],o.propsMode=Boolean(e[h]),o.setWrappedInstance=o.setWrappedInstance.bind(qe(qe(o))),$e()(o.store,'Could not find "'+h+'" in either the context or props of "'+r+'". Either wrap the root component in a <Provider>, or explicitly pass "'+h+'" as a prop to "'+r+'".'),o.initSelector(),o.initSubscription(),o}Le(i,n);var a=i.prototype;return a.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[m]=t||this.context[m],e},a.componentDidMount=function(){p&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.componentWillReceiveProps=function(e){this.selector.run(e)},a.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=rt,this.store=null,this.selector.run=rt,this.selector.shouldComponentUpdate=!1},a.getWrappedInstance=function(){return $e()(g,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+u+"() call."),this.wrappedInstance},a.setWrappedInstance=function(e){this.wrappedInstance=e},a.initSelector=function(){var t=e(this.store.dispatch,o);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.initSubscription=function(){if(p){var e=(this.propsMode?this.props:this.context)[m];this.subscription=new Ze(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(nt)):this.notifyNestedSubs()},a.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.addExtraProps=function(e){if(!(g||l||this.propsMode&&this.subscription))return e;var t=We({},e);return g&&(t.ref=this.setWrappedInstance),l&&(t[l]=this.renderCount++),this.propsMode&&this.subscription&&(t[m]=this.subscription),t},a.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(B.createElement)(t,this.addExtraProps(e.props))},i}(B.Component);return et&&(i.prototype.UNSAFE_componentWillReceiveProps=i.prototype.componentWillReceiveProps,delete i.prototype.componentWillReceiveProps),i.WrappedComponent=t,i.displayName=r,i.childContextTypes=O,i.contextTypes=w,i.propTypes=w,Ye()(i,t)}}var it=Object.prototype.hasOwnProperty;function at(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function ct(e,t){if(at(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!it.call(t,n[o])||!at(e[n[o]],t[n[o]]))return!1;return!0}function ut(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function st(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function lt(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=st(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=st(o),o=r(t,n)),o},r}}var ft=[function(e){return"function"==typeof e?lt(e):void 0},function(e){return e?void 0:ut((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?ut((function(t){return Object(ce.b)(e,t)})):void 0}];var pt=[function(e){return"function"==typeof e?lt(e):void 0},function(e){return e?void 0:ut((function(){return{}}))}];function dt(e,t,n){return We({},n,e,t)}var ht=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,c){var u=e(t,n,c);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return dt}}];function vt(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function gt(e,t,n,r,o){var i,a,c,u,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,g=!f(d,a),y=!l(o,i);return i=o,a=d,g&&y?(c=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),s=n(c,u,a)):g?(e.dependsOnOwnProps&&(c=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),s=n(c,u,a)):y?(h=e(i,a),v=!p(h,c),c=h,v&&(s=n(c,u,a)),s):s}return function(o,l){return d?h(o,l):(c=e(i=o,a=l),u=t(r,a),s=n(c,u,a),d=!0,s)}}function yt(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Ge(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),c=r(e,i),u=o(e,i);return(i.pure?gt:vt)(a,c,u,e,i)}function mt(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function bt(e,t){return e===t}var wt,Ot,Et,_t,xt,kt,Pt,St,jt,Tt,At,It,Ct=(Et=(Ot=void 0===wt?{}:wt).connectHOC,_t=void 0===Et?ot:Et,xt=Ot.mapStateToPropsFactories,kt=void 0===xt?pt:xt,Pt=Ot.mapDispatchToPropsFactories,St=void 0===Pt?ft:Pt,jt=Ot.mergePropsFactories,Tt=void 0===jt?ht:jt,At=Ot.selectorFactory,It=void 0===At?yt:At,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,c=o.areStatesEqual,u=void 0===c?bt:c,s=o.areOwnPropsEqual,l=void 0===s?ct:s,f=o.areStatePropsEqual,p=void 0===f?ct:f,d=o.areMergedPropsEqual,h=void 0===d?ct:d,v=Ge(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=mt(e,kt,"mapStateToProps"),y=mt(t,St,"mapDispatchToProps"),m=mt(n,Tt,"mergeProps");return _t(It,We({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:y,initMergeProps:m,pure:a,areStatesEqual:u,areOwnPropsEqual:l,areStatePropsEqual:p,areMergedPropsEqual:h},v))});function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Mt=function(e){var t=function(t){function n(){return j(this,n),M(this,D(n).apply(this,arguments))}return L(n,t),A(n,[{key:"getChildContext",value:function(){return Object(a.a)({},Pe(e),this.props.itemId)}},{key:"render",value:function(){return this.props.children}}]),n}(F.a.Component);return t.childContextTypes=Object(a.a)({},Pe(e),F.a.PropTypes.number),t};function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Rt=function(e,t,n){var r=X.deep(e.reduce((function(e,n){if("object"==typeof n){var r=Object.keys(n)[0],o=n[r];e[r]=t[o]}else e[n]=t[n];return e}),{}));return n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},X.deep(n)):r},Lt=function(e){var t=e.collection,n=e.dispatch,r=e.collectionName,o=e.idAttribute,i=void 0===o?"id":o,a=e.attributes,c=void 0===a?["id"]:a,u=e.includeConfiguration,s=void 0!==u&&u;n(he({collectionName:r,items:t.map(f)})),t.on("add",(function(e){e.isNew()||n(ve({collectionName:r,attributes:f(e)}))})),t.on("change:id",(function(e){n(ve({collectionName:r,attributes:f(e),order:t.pluck(i)}))})),t.on("change",(function(e){(function(e){return l.some((function(t){return e.hasChanged(t)}))})(e)&&n(ge({collectionName:r,attributes:f(e)}))})),s&&t.on("change:configuration",(function(e){n(ge({collectionName:r,attributes:f(e)}))})),t.on("remove",(function(e){setTimeout((function(){n(function(e){var t=e.collectionName,n=e.attributes,r=e.order;return{type:pe,meta:{collectionName:t},payload:{attributes:n,order:r}}}({collectionName:r,attributes:f(e),order:t.pluck(i)}))}),0)})),t.on("sort",(function(){n(function(e){var t=e.collectionName,n=e.order;return{type:de,meta:{collectionName:t},payload:{order:n}}}({collectionName:r,order:t.pluck(i)}))}));var l=c.map((function(e){return"object"==typeof e?function(e){return e[Object.keys(e)[0]]}(e):e}));function f(e){return Rt(c,e.attributes,s&&e.configuration.attributes)}},Bt=function(e){var t=e.collection,n=e.collectionName,r=e.dispatch,o=e.attributes,i=void 0===o?["id"]:o,a=e.includeConfiguration,c=void 0!==a&&a;r(he({collectionName:n,items:t.map((function(e){return Rt(i,e,c&&e.configuration)}))}))},Ft=n(19),Ut=n.n(Ft),Vt=function(e){var t=e.collection,n=e.collectionName,r=e.dispatch,o=e.idAttribute,i=e.attributes,a=e.includeConfiguration;(Ut.a.Collection&&t instanceof Ut.a.Collection?Lt:Bt)({collection:t,collectionName:n,dispatch:r,idAttribute:o,attributes:i,includeConfiguration:a})};function Ht(e){var t=e.candidates,n=e.page,r=e.fileExists;return t.find((function(e){if(e.condition&&!function(e,t){var n=t[X(e.attribute)];return e.negated?n!=e.value:n==e.value}(e.condition,n))return!1;var t=qt(n,e);return r(X(e.collectionName),t)}))}function qt(e,t){return"id"in t?t.id:e[X(t.attribute)]}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gt=function(e,t,n){if(!t)return null;if(!n[e])throw new Error("No file url templates found for ".concat(e));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({urls:(t.variants||Object.keys(n[e])).reduce((function(r,o){var i=function(e,t,n,r){var o=r[e][n];if(o)return o.replace(":id_partition",(i=t.id,function(e,t){return e.replace(/./g,(function(e,t,n){return t&&(n.length-t)%3==0?"/"+e:e}))}((a=i,c=9,(Array(c).fill(0).join("")+a).slice(-c))))).replace(":basename",t.basename).replace(":pageflow_hls_qualities",(function(){return function(e){return["low","medium","high","fullhd","4k"].filter((function(t){return e.variants.includes(t)})).join(",")}(t)}));var i,a,c}(e,t,o,n);return i&&(r[o]=i),r}),{})},t)};function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Yt=function(e,t,n){if(!t)return null;if(!n[e])throw new Error("Could not find model type for collection name ".concat(e));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{collectionName:e,modelType:n[e]})};function Xt(e,t){return ee(Se(e,{namespace:"files"})(t),(function(e){return e.fileUrlTemplates}),(function(e){return e.modelTypes}),(function(t,n,r){return Kt(e,t,n,r)}))}function $t(){return ee((function(e){return e.files}),(function(e){return function(t,n){return n&&!!Se(t)({id:n})(e)}}))}function Kt(e,t,n,r){return Yt(e,Gt(e,t,n),r)}function Qt(e){var t=e.page;return function(e,n){var r="function"==typeof t?t(n):t;return r?e.pageTypes[X(r.type)]:null}}function Jt(e){var t=e.page,n=e.variant,r=void 0===n?"medium":n;return ee(t,$t(),(function(e){return e}),(function(e,t,n){if(e){var o=Ht({candidates:Qt({page:e})(n).thumbnailCandidates,page:e,fileExists:t});if(o){var i=Xt(X(o.collectionName),{id:qt(e,o)});return"image_files"==o.collectionName?i(n).urls[r]:"video_files"==o.collectionName?i(n).urls["poster_".concat(r)]:void 0}}}))}var Zt=Se("pages"),en=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).namespace;return function(n){if(t){if(!n[t])throw new Error("Cannot select from unknown namespace ".concat(t,"."));n=n[t]}var r=n[e];return r.items[r.order[0]]}}("pages");function tn(){return ee(en,(function(e){return e&&e.attributes}))}function nn(e){return ee(en,(function(t){return t&&t.attributes[e]}))}function rn(e,t){return ee(Zt(t),(function(t){return t&&t.attributes[e]}))}function on(e){return ee(Zt(e),(function(e){return e&&e.attributes}))}function an(e,t){return ee(Zt(t),(function(t){return t&&t.state.custom[e]}))}function cn(e){return ln("isActive",e)}function un(e){return ln("isPreloaded",e)}function sn(e){return ln("isPrepared",e)}function ln(e,t){return ee(Zt(t),(function(t){return t&&t.state.common[e]}))}var fn=Ee.a.mark(dn),pn=Ee.a.mark(hn);function dn(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeLatest)([d,p,u],hn);case 2:case"end":return e.stop()}}),fn)}function hn(e){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.type!=d){t.next=5;break}return t.next=3,Object(De.call)(Re.delay,5e3);case 3:return t.next=5,Object(De.put)(w());case 5:case"end":return t.stop()}}),pn)}var vn=Ee.a.mark(gn);function gn(e){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Ut.a.Collection){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Object(Re.takeEvery)(m,Ee.a.mark((function t(n){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(mn,{pagesCollection:e,id:Me(n),name:n.payload.name,value:n.payload.value});case 2:case"end":return t.stop()}}),t)})));case 4:return t.next=6,Object(Re.takeEvery)(b,Ee.a.mark((function t(n){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(yn,{pagesCollection:e,pageId:Me(n),linkId:n.payload.linkId,name:n.payload.name,value:n.payload.value});case 2:case"end":return t.stop()}}),t)})));case 6:case"end":return t.stop()}}),vn)}function yn(e){var t=e.pagesCollection,n=e.pageId,r=e.linkId,o=e.name,i=e.value,a=bn(t,n).pageLinks().get(r);if(!a)throw new Error("Could not find page link with id ".concat(r," in page with perma id ").concat(n,"."));a.set(o,i)}function mn(e){var t=e.pagesCollection,n=e.id,r=e.name,o=e.value;bn(t,n).configuration.set(r,o)}function bn(e,t){var n=e.where({perma_id:t})[0];if(!n)throw new Error("Could not find page with perma id ".concat(t,"."));return n}var wn=function(e){var t=e.pages,n=e.pageTypeSagas;return(Ee.a.mark((function e(){var r;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(dn(),"t0",1);case 1:return e.delegateYield(gn(t),"t1",2);case 2:return e.next=4,Object(Re.takeEvery)(g,Ee.a.mark((function e(){var t,o;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(rn("type"));case 2:if(t=e.sent,!(o=n[t])){e.next=8;break}return e.next=7,Object(De.fork)(o);case 7:r=e.sent;case 8:case"end":return e.stop()}}),e)})));case 4:return e.next=6,Object(Re.takeEvery)(y,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=3;break}return e.next=3,Object(De.cancel)(r);case 3:case"end":return e.stop()}}),e)})));case 6:case"end":return e.stop()}}),e)})))},On=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"getChildContext",value:function(){return{mediaContext:this.props.mediaContext}}},{key:"render",value:function(){return this.props.children}}]),t}(F.a.Component);On.childContextTypes={mediaContext:F.a.PropTypes.object};var En=Mt("pages"),_n=function(e){var t=e.Component,n=e.store,r=e.selectTargetElement,o=void 0===r?function(e){return e[0]}:r;return{scroller:!1,enhance:function(e,r){Ut.a.render(F.a.createElement(He,{store:n},F.a.createElement(En,{itemId:xn(e)},F.a.createElement(On,{mediaContext:{page:e.page("instance")}},F.a.createElement(t,null)))),o(e)),n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(g,e)}({id:xn(e)}))},preload:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(f,e)}({id:xn(e)}))},prepare:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(p,e)}({id:xn(e)}))},unprepare:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(d,e)}({id:xn(e)}))},activating:function(e,t,r){n.dispatch(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.position;return _(u,t,{position:n})}({id:xn(e),position:r.position}))},activated:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(c,e)}({id:xn(e)}))},deactivating:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(l,e)}({id:xn(e)}))},deactivated:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(s,e)}({id:xn(e)}))},resize:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(v,e)}({id:xn(e)}))},update:function(e,t){pageflow.commonPageCssClasses.updateCommonPageCssClasses(e,t)},cleanup:function(e){n.dispatch(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return _(y,e)}({id:xn(e)})),Ut.a.unmountComponentAtNode(e[0])}}};function xn(e){return parseInt(e.attr("id"),10)}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e,t){return Object.keys(t).reduce((function(n,r){return"function"==typeof e[r]?n[r]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e[r].apply(this,o),t[r].apply(this,o)}:n[r]=t[r],n}),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}var Sn,jn,Tn={init:function(e){var t=e.pages,n=e.dispatch;Vt({collection:t,collectionName:"pages",dispatch:n,idAttribute:"perma_id",attributes:["perma_id",{type:"template"},"chapter_id"],includeConfiguration:!0})},createReducers:function(e){var t=e.pageTypes,n=(void 0===t?[]:t).reduce((function(e,t){var n=t.name,r=t.reducer;return e[n]=r,e}),{});return{pages:Ae("pages",{idAttribute:"permaId",itemReducer:we(n)})}},createMiddleware:function(){return function e(t){var n,r=t.getState,o=t.dispatch,i=(n=[],{subscribe:function(e){return n.push(e),function(){return function(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}(n,e)}},emit:function(e){for(var t=n.slice(),r=0,o=t.length;r<o;r++)t[r](e)}});return e.getState=r,e.dispatch=o,e.subscribe=i.subscribe,function(e){return function(t){var n=e(t);return i.emit(t),n}}}},createSaga:function(e){var t=e.pages,n=e.pageTypes,r=void 0===n?[]:n,o=e.middleware,i=r.reduce((function(e,t){var n=t.name,r=t.saga;return e[n]=r,e}),{});return function(e,t){var n=Ee.a.mark(l),r=Ee.a.mark(f),o=Ee.a.mark(p),i=Ee.a.mark(d),a=Ee.a.mark(h),c=t.itemSaga,u=t.middleware,s=_e(e);return l;function l(){var e;return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={},t.next=3,Object(Re.takeEvery)([se,le,pe],f,e);case 3:case"end":return t.stop()}}),n)}function f(e){var t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(De.select)(s);case 2:return t=n.sent,n.delegateYield(p(t,e),"t0",4);case 4:return n.delegateYield(d(t,e),"t1",5);case 5:case"end":return n.stop()}}),r)}function p(e,t){return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object.keys(t).map((function(n){if(!(n in e))return Object(De.cancel)(t[n])}));case 2:case"end":return n.stop()}}),o)}function d(e,t){var n;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object.keys(e).map((function(e){if(!t[e])return Object(De.fork)(h,parseInt(e,10))}));case 2:n=r.sent,Object.keys(e).forEach((function(e,r){t[e]||(t[e]=n[r])}));case 4:case"end":return r.stop()}}),i)}function h(t){var n;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Object(Re.runSaga)(c(),{subscribe:function(n){return u.subscribe((function(r){Ne(r,e)&&Me(r)!=t||n(r)}))},dispatch:function(n){Ce(n,e,t),u.dispatch(n)},getState:function(){return ke(u.getState(),e,t)}}),r.prev=1,r.next=4,Object(De.call)((function(){return n.done}));case 4:return r.prev=4,n.cancel(),r.finish(4);case 7:case"end":return r.stop()}}),a,null,[[1,,4,7]])}}("pages",{itemSaga:wn({pages:t,pageTypeSagas:i}),middleware:o})}},An=(jn=Pe(Sn="pages"),function(e,t,n){var r=Ct(e?function(t,n){var r=e(ke(t,Sn,n[jn]),n);return"function"==typeof r?function(e,t){return r(ke(e,Sn,t[jn]),t)}:r}:null,t?function(e,n){var r=function(t){return Ce(t,Sn,n[jn]),e(t)};return"function"==typeof t?t(r,n):Object(ce.b)(t,r)}:null,n);return function(e){var t=r(e),n=function(e){function n(){return j(this,n),M(this,D(n).apply(this,arguments))}return L(n,e),A(n,[{key:"render",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props,Object(a.a)({},jn,this.context[jn]));return F.a.createElement(t,e)}}]),n}(F.a.Component);return n.contextTypes=Object(a.a)({},jn,F.a.PropTypes.number),n}});var In=An(te({loaded:un()}))(ae),Cn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this.props.page,t=X.concat(this.props.propertyNamePrefix,this.props.propertyBaseName);return F.a.createElement(In,{fileId:e["".concat(t,"Id")],fileCollection:this.props.fileCollection,position:[e["".concat(t,"X")],e["".concat(t,"Y")]],className:"background background_image",structuredDataComponent:this.props.structuredDataComponent})}}]),t}(F.a.Component);Cn.defaultProps={propertyBaseName:"backgroundImage"};var Nn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){return F.a.createElement("div",{className:"shadow_wrapper"},F.a.createElement("div",{className:V()("shadow",this.props.className),style:this.style()}))}},{key:"style",value:function(){if("gradientOpacity"in this.props.page)return{opacity:this.props.page.gradientOpacity/100}}}]),t}(F.a.Component),Mn=function(e){return F.a.createElement("div",{className:"content",onTouchStart:e.onInteraction,onMouseMove:e.onInteraction},e.children)},Dn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this;return React.createElement("div",{className:"scroller-wrapper",ref:function(t){return e.wrapperElement=t}},React.createElement("div",{ref:function(t){return e.scrollerElement=t},className:V()("scroller",this.props.className),style:this.props.style},React.createElement("div",null,this.props.children)))}},{key:"componentDidMount",value:function(){if("undefined"!=typeof jQuery){var e=jQuery(this.scrollerElement);e.scroller({eventListenerTarget:this.wrapperElement}),this.scroller=e.scroller("instance")}}},{key:"componentDidUpdate",value:function(){this.scroller.refresh()}},{key:"enable",value:function(){this.scroller.enable(),this.scroller.afterAnimationHook()}},{key:"disable",value:function(){this.scroller.disable()}},{key:"resetPosition",value:function(e){this.scroller.resetPosition(e)}}]),t}(B.Component),Rn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentWillReceiveProps",value:function(e){!this.props.enabled&&e.enabled?this.refs.scroller.enable():this.props.enabled&&!e.enabled&&this.refs.scroller.disable(),this.props.initialScrollerPosition!==e.initialScrollerPosition&&e.initialScrollerPosition&&this.refs.scroller.resetPosition({position:e.initialScrollerPosition})}},{key:"getChildContext",value:function(){var e=this;return this._pageScroller=this._pageScroller||{disable:function(){e.refs.scroller.disable()},enable:function(){e.refs.scroller.enable()}},{pageScroller:this._pageScroller}}},{key:"render",value:function(){return F.a.createElement(Dn,{ref:"scroller",className:(e=this.props,V()(e.className,{"scroller-clipped_bottom":!!e.marginBottom})),style:Ln(this.props)},F.a.createElement("div",{className:"content_wrapper"},this.props.children));var e}}]),t}(F.a.Component);function Ln(e){if(e.marginBottom)return{bottom:e.marginBottom}}Rn.childContextTypes={pageScroller:F.a.PropTypes.object};var Bn,Fn=An(te({enabled:ln("isActivated",Bn),initialScrollerPosition:function(e){return ln("initialScrollerPosition",e)}()}))(Rn),Un=function(e){return React.createElement(Mn,null,React.createElement(Fn,null,e.children))},Vn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){return F.a.createElement("h3",{className:"page_header"},F.a.createElement("span",{className:"page_header-tagline"},this.props.page.tagline),F.a.createElement("span",{className:"page_header-title"},this.props.page.title),F.a.createElement("span",{className:"page_header-subtitle"},this.props.page.subtitle))}}]),t}(F.a.Component);function Hn(e){return F.a.createElement("div",{className:qn(e)},F.a.createElement("div",{className:"paragraph",dangerouslySetInnerHTML:Wn(e)}),e.children)}function qn(e){return V()("page_text",Object(a.a)({},"page_text-margin_".concat(e.marginBottom),e.marginBottom!=Hn.defaultProps.marginBottom))}function Wn(e){return{__html:e.page.text}}function Gn(e){return function(t,n){var r=e.split(".");if(!(r[0]in n))throw new Error("Missing required prop ".concat(r[0],"."));return r.reduce((function(e,t){return e&&e[t]}),n)}}function zn(e){return function(t,n,r){return oe(e,r)}}Hn.defaultProps={marginBottom:"for_scroll_indicator_on_phone"};var Yn=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){return F.a.createElement("a",{href:this._href(),className:this.props.className,onClick:this._handleClick.bind(this)},this.props.children)}},{key:"_href",value:function(){return this._targetPage()?"#"+this._targetPage().permaId:"#missing"}},{key:"_handleClick",value:function(e){this._targetPage()&&pageflow.slides.goToByPermaId(this._targetPage().permaId,{transition:this.props.pageLink.pageTransition}),e.preventDefault()}},{key:"_targetPage",value:function(){return this.props.targetPage}}]),t}(F.a.Component),Xn=Ct(te({targetPage:on({id:Gn("pageLink.targetPageId")})}))(Yn);function $n(e){return React.createElement("div",{className:Kn(e)})}function Kn(e){return V()({load_image:e.lazy&&e.loaded},e.className,(t=e.pageType)?"is_".concat(t.name):"is_dangling",function(e){var t=Ht({candidates:Qn(e),page:e.page,fileExists:e.fileExists});if(t)return function(e,t){return[e.lazy?"lazy":null,t.cssClassPrefix,e.imageStyle,qt(e.page,t)].filter(Boolean).join("_")}(e,t)}(e));var t}function Qn(e){return[Jn(e)].concat(Object(K.a)((t=e.pageType)?t.thumbnailCandidates:[]));var t}function Jn(e){return{id:e.customThumbnailId,cssClassPrefix:"pageflow_image_file",collectionName:"image_files"}}$n.defaultProps={imageStyle:"navigation_thumbnail_large"};var Zn=An(te({pageType:Qt({page:function(e){return e.page}}),fileExists:$t()}))($n),er=An(te({loaded:un(),lazy:!0}))(Zn);function tr(e){return V()("add_info_box",{empty:nr(e),title_empty:z(e.title),description_empty:z(e.description),"add_info_box-hidden_during_playback":e.hiddenDuringPlayback})}function nr(e){return z(e.title)&&z(e.description)}var rr=function(e){return React.createElement("div",{className:tr(e)},function(e){if(!z(e.title))return React.createElement("h3",null,e.title)}(e),function(e){if(!z(e.description))return React.createElement("p",{dangerouslySetInnerHTML:{__html:e.description}})}(e))};function or(e){return React.createElement("div",{className:V()("controls",e.className),"data-role":"player_controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}function ir(e){return F.a.createElement("svg",{className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height,viewBox:"".concat(e.viewBoxLeft," ").concat(e.viewBoxTop," ").concat(e.viewBoxWidth," ").concat(e.viewBoxHeight)},e.children)}ir.defaultProps={width:20,height:20,viewBoxLeft:0,viewBoxTop:0};var ar=ir,cr=function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:24,viewBoxHeight:24}),React.createElement("path",{d:"M21.312,14.056l-1.691-0.98c0,0-0.472-0.216-0.446-1.073c0,0-0.128-0.961,0.478-1.293l1.661-1.014 c0,0,0.546-0.245,0.313-0.818l-0.707-1.598c0,0-0.229-0.625-0.902-0.423l-1.93,0.615c0,0-0.666-0.009-1.078-0.458 c0,0-0.687-0.662-0.476-1.229l0.445-1.924c0,0,0.114-0.563-0.312-0.768l-1.995-0.757c0,0-0.43-0.026-0.562,0.305l-1.122,2.006 c0,0-0.524,0.437-1.248,0.292c0,0-0.752-0.072-0.928-0.253c0,0-1.135-1.916-1.19-2.015c0,0-0.21-0.437-0.65-0.262L7.144,3.176 c0,0-0.367,0.229-0.275,0.559l0.649,2.441c0,0-0.139,0.597-0.561,0.924c0,0-0.745,0.55-1.104,0.483L3.858,7.1 c0,0-0.578-0.207-0.805,0.294L2.306,9.232c0,0-0.143,0.38,0.251,0.616l1.96,1.123c0,0,0.624,0.286,0.441,1.38 c0,0,0.037,0.804-0.756,1.24c-0.793,0.437-1.476,0.875-1.476,0.875s-0.437,0.21-0.249,0.681c0.189,0.471,0.895,1.811,0.895,1.811 s0.131,0.336,0.762,0.091l1.723-0.466c0,0,0.5-0.151,1.031,0.319c0,0,0.741,0.504,0.687,0.919l-0.48,2.433 c0,0-0.157,0.411,0.312,0.676l1.929,0.733c0,0,0.538,0.052,0.68-0.389l0.84-1.532c0,0,0.278-0.669,1.177-0.625 c0,0,0.909-0.081,1.227,0.407l1.101,1.833c0,0,0.199,0.466,0.791,0.188l1.709-0.728c0,0,0.479-0.315,0.333-0.743l-0.533-1.853 c0,0-0.238-0.5,0.259-1.055c0,0,0.533-0.876,1.27-0.701l2.043,0.487c0,0,0.424,0.187,0.793-0.413l0.659-1.639 C21.685,14.901,21.886,14.313,21.312,14.056z M8.542,13.474c-0.824-1.931,0.073-4.166,2.004-4.989 c1.931-0.826,4.165,0.073,4.988,2.004c0.825,1.931-0.073,4.164-2.005,4.989C11.599,16.303,9.365,15.404,8.542,13.474z"}))},ur=function(e){return React.createElement(ar,Object.assign({},e,{viewBoxLeft:5,viewBoxTop:5,viewBoxWidth:145,viewBoxHeight:145}),React.createElement("path",{d:"m80 15c-35.88 0-65 29.12-65 65s29.12 65 65 65 65-29.12 65-65-29.12-65-65-65zm0 10c30.36 0 55 24.64 55 55s-24.64 55-55 55-55-24.64-55-55 24.64-55 55-55z"}),React.createElement("path",{d:"m57.373 18.231a9.3834 9.1153 0 1 1 -18.767 0 9.3834 9.1153 0 1 1 18.767 0z",transform:"matrix(1.1989 0 0 1.2342 21.214 28.75)"}),React.createElement("path",{d:"m90.665 110.96c-0.069 2.73 1.211 3.5 4.327 3.82l5.008 0.1v5.12h-39.073v-5.12l5.503-0.1c3.291-0.1 4.082-1.38 4.327-3.82v-30.813c0.035-4.879-6.296-4.113-10.757-3.968v-5.074l30.665-1.105"}))},sr={Checkmark:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("polygon",{points:"434.442,58.997 195.559,297.881 77.554,179.88 0,257.438 195.559,453.003 512,136.551 "}))},CircleWithNotch:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:1e3,viewBoxHeight:1e3}),React.createElement("path",{d:"M990,497.6c0,66.4-13,129.8-38.8,190.3c-25.9,60.5-60.7,112.7-104.4,156.4C803,888,750.9,922.8,690.3,948.7c-60.5,25.9-124,38.8-190.3,38.8s-129.8-12.9-190.3-38.8S197,888,153.3,844.3c-43.7-43.7-78.5-95.9-104.4-156.4C22.9,627.4,10,563.9,10,497.6c0-80.9,18.4-156.5,55.2-226.7c36.8-70.2,87.2-128,151.2-173.4s135.2-73.8,213.6-85v142.2c-80.6,16.4-147.4,56.7-200.4,120.9c-53,64.2-79.5,138.2-79.6,222c0,47.4,9.3,92.7,27.9,135.9c18.6,43.2,43.4,80.4,74.6,111.6c31.2,31.2,68.4,56.1,111.6,74.6c43.2,18.5,88.5,27.8,135.9,27.9c47.4,0,92.7-9.2,135.9-27.9C679,801,716.2,776.1,747.4,745c31.2-31.1,56-68.3,74.6-111.6c18.6-43.3,27.9-88.6,27.9-135.9c0-83.9-26.5-157.9-79.6-222C717.2,211.3,650.4,171,569.9,154.6V12.5c78.4,11.3,149.6,39.6,213.6,85c64,45.4,114.4,103.2,151.2,173.4c36.8,70.2,55.2,145.7,55.2,226.7H990z"}))},Disk:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:24,viewBoxHeight:24}),React.createElement("circle",{cx:"12",cy:"12",r:"12"}))},Gear:cr,Info:ur,Pause:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("path",{d:"M162.642 148.337h86.034v215.317h-86.034v-215.316z"}),React.createElement("path",{d:"M293.356 148.337h86.002v215.317h-86.002v-215.316z"}))},Play:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:512,viewBoxHeight:512}),React.createElement("path",{d:"M152.443 136.417l207.114 119.573-207.114 119.593z"}))},Subtitles:function(e){return React.createElement(ar,Object.assign({},e,{viewBoxWidth:1200,viewBoxHeight:1200}),React.createElement("path",{transform:"translate(100,100)",d:"M893.4,599V500H401.1V599H893.4z M893.4,794.5v-98.9H695.5v98.9H893.4z M598.9,794.5v-98.9H106.6v98.9H598.9z M106.6,500V599h197.8V500H106.6z M893.4,106.7c26.1,0,48.7,10,67.9,29.9s28.8,42.9,28.8,69v588.9c0,26.1-9.6,49.1-28.8,69c-19.2,19.9-41.8,29.9-67.9,29.9H106.6c-26.1,0-48.7-10-67.9-29.9c-19.2-19.9-28.8-42.9-28.8-69V205.5c0-26.1,9.6-49.1,28.8-69s41.8-29.9,67.9-29.9H893.4z"}))}},lr={toggleInfoBox:sr.Info,mediaQuality:sr.Gear,textTracks:sr.Subtitles,activeMenuItem:sr.Checkmark,loadingSpinner:sr.CircleWithNotch,play:sr.Play,pause:sr.Pause};function fr(e){var t=lr[e.name];if(!t)throw new Error('No icon registered for "'.concat(e.name,'".'));return F.a.createElement(t,e)}var pr=function(e){return React.createElement("div",{className:"vjs-loading-spinner"},React.createElement(fr,{name:"loadingSpinner"}))},dr=function(e){return An(te({id:ee(cn(),(function(e){return e?"firstContent":void 0}))}))(e)};var hr=dr((function(e){return React.createElement("a",{className:vr(e),href:"#",tabIndex:"4",id:e.id,title:e.title,onClick:gr(e)},function(e){return e.iconName?React.createElement(fr,{name:e.iconName}):React.createElement("span",null)}(e))}));function vr(e){return V()("vjs-play-control",{"vjs-playing":e.isPlaying},{"player_controls-play_button-custom_icon":!!e.iconName})}function gr(e){return function(t){e.onClick&&e.onClick(t),t.preventDefault()}}function yr(e){return React.createElement("div",{className:V()(e.className)},function(e){if(isNaN(e))return mr;var t=Math.floor(e)%60,n=Math.floor(e/60)%60,r=Math.floor(e/60/60);return r>0?"".concat(r,":").concat(br(n),":").concat(br(t)):"".concat(n,":").concat(br(t))}(e.value))}var mr="-:--";function br(e){return e<10?"0"+e:e}yr.defaultProps={value:0};var wr=function(e){return React.createElement(yr,{className:"vjs-current-time",value:e.currentTime})},Or=function(e){return React.createElement("div",{className:"vjs-time-divider"},"/")},Er=function(e){return React.createElement(yr,{className:"vjs-duration",value:e.duration})},_r=n(94),xr=n.n(_r),kr=n(36),Pr=n.n(kr),Sr=37,jr=39,Tr=function(e){function t(e,n){var r;return j(this,t),(r=M(this,D(t).call(this,e,n))).state={handleWidth:null,progressHolderWidth:null},r.measureProgressHolder=function(e){var t=e.width;r.setState({progressHolderWidth:t})},r.measureHandle=function(e){var t=e.width;r.setState({handleWidth:t})},r.handleStop=function(e,t){r.props.onSeek&&r.props.onSeek(r.positionToTime(t.x))},r.handleDrag=function(e,t){r.props.onScrub&&r.props.onScrub(r.positionToTime(t.x))},r.handleKeyDown=function(e){var t;e.keyCode==Sr?t=Math.max(0,r.props.currentTime-1):e.keyCode==jr&&(t=Math.min(r.props.currentTime+1,r.props.duration||1/0)),r.prop.onSeek&&r.props.onSeek(t)},r}return L(t,e),A(t,[{key:"positionToTime",value:function(e){return this.props.duration&&this.state.progressHolderWidth?Math.max(0,Math.min(1,e/this.state.progressHolderWidth))*this.props.duration:0}},{key:"render",value:function(){return F.a.createElement("div",{className:"vjs-progress-control",tabIndex:"4",onKeyDown:this.handleKeyDown},F.a.createElement(Pr.a,{whitelist:["width"],onMeasure:this.measureProgressHolder},F.a.createElement(_r.DraggableCore,{onStart:this.handleDrag,onDrag:this.handleDrag,onStop:this.handleStop},F.a.createElement("div",{className:"vjs-progress-holder"},F.a.createElement("div",{className:"vjs-load-progress",style:{width:Ar(this.loadProgress())}}),F.a.createElement("div",{className:"vjs-play-progress",style:{width:Ar(this.playProgress())}}),F.a.createElement(Pr.a,{whitelist:["width"],onMeasure:this.measureHandle},F.a.createElement("div",{className:"vjs-seek-handle",style:{left:this.handlePosition()}}))))))}},{key:"handlePosition",value:function(){return this.state.handleWidth&&this.state.progressHolderWidth?(this.state.progressHolderWidth-this.state.handleWidth)*this.playProgress():Ar(this.playProgress())}},{key:"loadProgress",value:function(){return this.props.duration>0?this.props.bufferedEnd/this.props.duration:0}},{key:"playProgress",value:function(){return this.props.duration>0?this.props.currentTime/this.props.duration:0}}]),t}(F.a.Component);function Ar(e){return e>0?100*e+"%":0}Tr.defaultProps={currentTime:0,bufferedEnd:0};var Ir=function(e){function t(e,n){var r;return j(this,t),(r=M(this,D(t).call(this,e,n))).state={subMenuVisible:!1},r.onLinkClick=function(e){e.preventDefault(),r.props.subMenuItems.length>0&&r.setState({subMenuVisible:!0}),r.props.onClick&&r.props.onClick()},r.onMouseEnter=function(){r.props.subMenuItems.length>0&&r.setState({subMenuVisible:!0}),r.props.onMouseEnter&&r.props.onMouseEnter()},r.onMouseLeave=function(){r.closeMenu(),r.props.onMouseEnter&&r.props.onMouseLeave()},r.onFocus=function(){clearTimeout(r.closeMenuTimeout)},r.onBlur=function(){clearTimeout(r.closeMenuTimeout),r.closeMenuTimeout=setTimeout((function(){r.closeMenu()}),100)},r.closeMenu=function(){r.setState({subMenuVisible:!1})},r}return L(t,React.Component),A(t,[{key:"render",value:function(){var e=this,t=this.props;return React.createElement("div",{className:Cr(t,this.state.subMenuVisible),ref:function(t){return e.wrapper=t},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur},React.createElement("a",{className:Dr(t,"link"),href:"#",tabIndex:"4",title:t.title,onClick:this.onLinkClick},React.createElement(fr,{className:Dr(t,"icon"),name:t.iconName})),function(e,t){if(e.subMenuItems.length>0)return React.createElement("ul",{className:"player_controls-menu_bar_button_sub_menu"},function(e,t){return e.subMenuItems.map((function(n){return React.createElement("li",{className:Nr(n),key:n.value},React.createElement("a",{className:"player_controls-menu_bar_button_sub_menu_item_link",href:"#",tabIndex:"4",onClick:Mr(e,n.value,t)},function(e){if(e.active)return React.createElement(fr,{className:"player_controls-menu_bar_button_sub_menu_item_icon",name:"activeMenuItem"})}(n),n.label,function(e,t){if(t.annotation)return React.createElement("span",{className:Dr(e,"sub_menu_item_annotation")},t.annotation)}(e,n)))}))}(e,t))}(t,this.closeMenu))}}]),t}();function Cr(e,t){return V()({"player_controls-menu_bar_button-sub_menu_visible":t},Dr(e))}function Nr(e){return V()("player_controls-menu_bar_button_sub_menu_item",{"player_controls-menu_bar_button_sub_menu_item-active":e.active})}function Mr(e,t,n){return function(r){r.preventDefault(),n(),e.onSubMenuItemClick&&e.onSubMenuItemClick(t)}}function Dr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return V()(["player_controls-menu_bar_button"].concat(n).join("_"),[e.className].concat(n).join("_"))}function Rr(e){return e.items.length<2?React.createElement("noscript",null):React.createElement(Ir,{className:"player_controls-quality_menu_button",title:e.buttonTitle,iconName:"mediaQuality",subMenuItems:e.items,onSubMenuItemClick:e.onItemClick})}function Lr(e){return e.items.length<2?React.createElement("noscript",null):React.createElement(Ir,{className:"player_controls-text_tracks_menu_button",title:e.buttonTitle,iconName:"textTracks",subMenuItems:e.items,onSubMenuItemClick:e.onItemClick})}function Br(e){return React.createElement("div",{className:Fr(e)},function(e){return e.additionalButtons.map((function(t){return React.createElement(Ir,{title:t.label,iconName:t.iconName,className:t.className,key:t.name,onClick:Ur(e.onAdditionalButtonClick,t.name),onMouseEnter:Ur(e.onAdditionalButtonMouseEnter,t.name),onMouseLeave:Ur(e.onAdditionalButtonMouseLeave,t.name)})}))}(e),React.createElement(Lr,{buttonTitle:e.textTracksMenuButtonTitle,items:e.textTracksMenuItems,onItemClick:e.onTextTracksMenuItemClick}),React.createElement(Rr,{buttonTitle:e.qualityMenuButtonTitle,items:e.qualityMenuItems,onItemClick:e.onQualityMenuItemClick}))}function Fr(e){return V()(e.className,"player_controls-menu_bar",{"player_controls-menu_bar-hidden_on_phone":e.hiddenOnPhone,"player_controls-menu_bar-stand_alone":e.standAlone,"player_controls-menu_bar-inverted":e.inverted})}function Ur(e,t){if(e)return function(){return e(t)}}function Vr(e){return function(t){function n(e){var t;return j(this,n),(t=M(this,D(n).call(this,e))).checkVisibility=function(){var e=window.getComputedStyle(t.element);t.lastVisibility!=e.visibility&&("visible"==e.visibility&&"none"!=e.display?t.props.onVisible&&t.props.onVisible():t.props.onHidden&&t.props.onHidden()),t.lastVisibility=e.visibility},t}return L(n,t),A(n,[{key:"componentDidMount",value:function(){this.element=Ut.a.findDOMNode(this),this.updateInterval()}},{key:"componentDidUpdate",value:function(){this.updateInterval()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval),this.interval=null,this.element=null}},{key:"updateInterval",value:function(){this.props.watchVisibility&&!this.interval?this.interval=setInterval(this.checkVisibility,50):!this.props.watchVisibility&&this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"render",value:function(){return F.a.createElement(e,this.props)}}]),n}(F.a.Component)}function Hr(e){return V()("vjs-control-bar",{with_quality_menu_present:e.qualityMenuItems&&e.qualityMenuItems.length>=2,with_text_tracks_menu_present:e.textTracksMenuItems&&e.textTracksMenuItems.length>=2})}Ir.defaultProps={subMenuItems:[]},Rr.defaultProps={items:[]},Lr.defaultProps={items:[]},Br.defaultProps={additionalButtons:[],standAlone:!0};var qr=Vr((function(e){return F.a.createElement(or,e,F.a.createElement("span",{className:"hint"},e.hint),F.a.createElement(rr,Object.assign({},e.infoBox,{hiddenDuringPlayback:e.infoBoxHiddenDuringPlayback})),F.a.createElement("div",{className:Hr(e)},function(e){if(e.isLoading)return F.a.createElement(pr,e)}(e),F.a.createElement("div",{className:"play_button"},F.a.createElement(hr,{title:e.playButtonTitle,iconName:e.playButtonIconName,isPlaying:e.isPlaying,onClick:e.onPlayButtonClick})),function(e){if(e.hasProgress)return F.a.createElement("div",{className:"player_controls-progress"},F.a.createElement(wr,e),F.a.createElement(Or,null),F.a.createElement(Er,e),F.a.createElement(Tr,e))}(e),F.a.createElement("div",{className:"control_bar_text"},e.controlBarText)),F.a.createElement(Br,{standAlone:!1,additionalButtons:e.additionalMenuBarButtons,onAdditionalButtonClick:e.onAdditionalButtonClick,onAdditionalButtonMouseEnter:e.onAdditionalButtonMouseEnter,onAdditionalButtonMouseLeave:e.onAdditionalButtonMouseLeave,qualityMenuButtonTitle:e.qualityMenuButtonTitle,qualityMenuItems:e.qualityMenuItems,onQualityMenuItemClick:e.onQualityMenuItemClick,textTracksMenuButtonTitle:e.textTracksMenuButtonTitle,textTracksMenuItems:e.textTracksMenuItems,onTextTracksMenuItemClick:e.onTextTracksMenuItemClick}))}));function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gr=ee(zr,(function(e){return function(t,n){return I18n.t(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({locale:e},n))}}));function zr(e){return e.i18n.locale}var Yr=Ct(te({t:Gr}))((function(e){return React.createElement("div",{className:"close_button text_hidden_only",tabIndex:"4",title:e.t("pageflow.public.close"),onClick:e.onClick},React.createElement("div",{className:"label"},e.t("pageflow.public.close")))})),Xr=function(e){return PAGEFLOW_EDITOR?e:function(){return!1}},$r=Se("chapters");var Kr=$r,Qr=Se("storylines");function Jr(){return function(e,t){var n=Zr()(e,t);return n?Kr({id:n.chapterId})(e,t):null}}function Zr(){return function(e,t){return on({id:function(e,t){return ee(Qr(t),(function(t){return t&&t[e]}))}("parentPagePermaId",{id:function(e,t){return ee($r(t),(function(t){return t&&t[e]}))}("storylineId",{id:rn("chapterId",{id:e.currentPageId})(e,t)})(e,t)})(e,t)})(e,t)}}function eo(e){var t=e.property;return function(e){return e.settings[t]}}var to=Se("widgets");function no(e,t){var n=t.role;return ee(to({id:n}),(function(t){return t&&t[e]}))}function ro(e){var t=e.role;return ee(to({id:t}),(function(e){return e}))}function oo(e){var t=e.role;return ee(to({id:t}),(function(e){return!(!e||!e.editing)}))}var io=function(e){return V()({is_playing:e.shouldPlay,is_playing_delayed:e.hasBeenPlayingJustNow,is_paused:!e.shouldPlay})},ao="MEDIA_TOGGLE_PLAYING",co="MEDIA_PLAY",uo="MEDIA_PLAY_AND_FADE_IN",so="MEDIA_PAUSE",lo="MEDIA_FADE_OUT_AND_PAUSE",fo="CHANGE_VOLUME_FACTOR",po="MEDIA_PLAY_FAILED",ho="MEDIA_PLAYING_MUTED",vo="MEDIA_SCRUB_TO",go="MEDIA_SEEK_TO",yo="MEDIA_PREBUFFER",mo="MEDIA_PREBUFFERED",bo="MEDIA_ABORT_PREBUFFERING",wo="MEDIA_BUFFER_UNDERRUN",Oo="MEDIA_BUFFER_UNDERRUN_CONTINUE",Eo="MEDIA_META_DATA_LOADED",_o="MEDIA_PROGRESS",xo="MEDIA_PLAYING",ko="MEDIA_PAUSED",Po="MEDIA_TIME_UPDATE",So="MEDIA_ENDED",jo="MEDIA_SEEKING",To="MEDIA_SEEKED",Ao="MEDIA_WAITING",Io="MEDIA_HAS_NOT_BEEN_PLAYING_FOR_A_MOMENT",Co="MEDIA_USER_INTERACTION",No="MEDIA_USER_IDLE",Mo="MEDIA_CONTROLS_ENTERED",Do="MEDIA_CONTROLS_LEFT",Ro="MEDIA_FOCUS_ENTERED_CONTROLS",Lo="MEDIA_FOCUS_LEFT_CONTROLS",Bo="MEDIA_CONTROLS_HIDDEN",Fo="SHOW_INFO_BOX_DURING_PLAYBACK",Uo="HIDE_INFO_BOX_DURING_PLAYBACK",Vo="TOGGLE_INFO_BOX_DURING_PLAYBACK",Ho="MEDIA_SAVE_MEDIA_ELEMENT_ID",qo="MEDIA_DISCARD_MEDIA_ELEMENT_ID";function Wo(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope,t=void 0===e?"default":e;return{togglePlaying:function(){return n(ao)},play:function(){return n(co)},playAndFadeIn:function(e){var t=e.fadeDuration;return n(uo,{fadeDuration:t})},pause:function(){return n(so)},fadeOutAndPause:function(e){var t=e.fadeDuration;return n(lo,{fadeDuration:t})},changeVolumeFactor:function(e,t){var r=t.fadeDuration;return n(fo,{volumeFactor:e,fadeDuration:r})},playFailed:function(){return n(po)},playingMuted:function(){return n(ho)},scrubTo:function(e){return n(vo,{time:e})},seekTo:function(e){return n(go,{time:e})},prebuffer:function(){return n(yo)},prebuffered:function(){return n(mo)},abortPrebuffering:function(){return n(bo)},bufferUnderrun:function(){return n(wo)},bufferUnderrunContinue:function(){return n(Oo)},playing:function(){return n(xo)},paused:function(){return n(ko)},timeUpdate:function(e){var t=e.currentTime,r=e.duration;return n(Po,{currentTime:t,duration:r})},metaDataLoaded:function(e){var t=e.currentTime,r=e.duration;return n(Eo,{currentTime:t,duration:r})},progress:function(e){var t=e.bufferedEnd;return n(_o,{bufferedEnd:t})},ended:function(){return n(So)},seeking:function(){return n(jo)},seeked:function(){return n(To)},waiting:function(){return n(Ao)},hasNotBeenPlayingForAMoment:function(e){return n(Io)},userInteraction:function(){return n(Co)},userIdle:function(){return n(No)},controlsEntered:function(){return n(Mo)},controlsLeft:function(){return n(Do)},focusEnteredControls:function(){return n(Ro)},focusLeftControls:function(){return n(Lo)},controlsHidden:function(){return n(Bo)},showInfoBoxDuringPlayback:function(){return n(Fo)},hideInfoBoxDuringPlayback:function(){return n(Uo)},toggleInfoBoxDuringPlayback:function(){return n(Vo)},saveMediaElementId:function(e){return n(Ho,{id:e})},discardMediaElementId:function(){return n(qo)}};function n(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:e,meta:{collectionName:"pages",mediaScope:t},payload:n}}}function Go(e){return S({property:"textTrack",value:e?{srclang:e.srclang,kind:e.kind}:{}})}function zo(e){return e.backgroundMedia.muted}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xo(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope;return an("media.".concat(void 0===e?"default":e))}function $o(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scope,t=void 0===e?"default":e;return function(e){return Object(ce.b)(Wo({scope:t}),e)}}function Ko(e){var t=e.file,n=e.defaultTextTrackFileId,r=void 0===n?function(){}:n;return ee(eo({property:"textTrack"}),eo({property:"volume"}),Gr,zr,function(e,t){var n=t.parent;return ee(_e(e,{namespace:"files"}),n,(function(e){return e.fileUrlTemplates}),(function(e){return e.modelTypes}),(function(t,n,r,o){return n?Object.keys(t).reduce((function(i,a){var c=t[a];return c.id&&c.parentFileId==n.id&&c.parentFileModelType==n.modelType&&i.push(Kt(e,c,r,o)),i}),[]):[]}))}("textTrackFiles",{parent:t}),r,(function(e,t,n,r,o,i){e=e||{};var c=o.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({displayLabel:Qo(e,n)},e)})),u=function(e,t,n,r){if(t){var o=e.find((function(e){return e.permaId==t}));if(o)return o}var i=e.find((function(e){return"subtitles"==e.kind&&e.srclang==n})),a=0==r&&e.find((function(e){return"captions"==e.kind}));return i||a}(c,i,r,t);return{files:c.sort((function(e,t){return(e.displayLabel||"").localeCompare(t.displayLabel||"")})),autoFile:u,activeFileId:Jo(c,u,e),mode:"off"==e.kind?"off":e.kind?"user":"auto"}}))}function Qo(e,t){return e.label||t("pageflow.public.languages."+e.srclang||!1,{defaultValue:t("pageflow.public.languages.unknown")})}function Jo(e,t,n){if("off"==n.kind)return null;var r=e.find((function(e){return e.srclang==n.srclang&&e.kind==n.kind}));return r?r.id:t&&t.id}function Zo(e){return ee(e.autoplayWhenBackgroundMediaMuted,ei({id:e.id}),zo,(function(e,t,n){return t&&(!n||e)}))}function ei(e){return ee(rn("autoplay",e),(function(e){return!1!==e}))}function ti(e){var t=e.playerActions,n=e.playerState,r=e.playerControlsComponent;return F.a.createElement(r,Object.assign({hasProgress:!0,controlBarText:e.controlBarText,isLoading:n.isLoading||n.bufferUnderrun,isPlaying:n.shouldPlay,currentTime:void 0!==n.scrubbingAt?n.scrubbingAt:n.currentTime,bufferedEnd:n.bufferedEnd,duration:n.duration,mediaElementId:n.mediaElementId,onPlayButtonClick:t.togglePlaying,onScrub:t.scrubTo,onSeek:t.seekTo,onMouseEnter:t.controlsEntered,onMouseLeave:t.controlsLeft,onFocus:t.focusEnteredControls,onBlur:t.focusLeftControls,watchVisibility:n.isPlaying,onHidden:t.controlsHidden,additionalMenuBarButtons:oi(e),infoBoxHiddenDuringPlayback:ii(e),onAdditionalButtonMouseEnter:t.showInfoBoxDuringPlayback,onAdditionalButtonMouseLeave:t.hideInfoBoxDuringPlayback,onAdditionalButtonClick:t.toggleInfoBoxDuringPlayback,qualityMenuItems:ci(e.qualities,e.file,e.activeQuality,e.t),qualityMenuButtonTitle:e.t("pageflow.public.media_quality"),onQualityMenuItemClick:e.updateVideoQualitySetting,textTracksMenuItems:ai(e.textTracks,e.t),textTracksMenuButtonTitle:e.t("pageflow.public.text_tracks"),onTextTracksMenuItemClick:function(t){"off"==t?e.updateTextTrackSettings({kind:"off"}):e.updateTextTrackSettings(e.textTracks.files.find((function(e){return e.id==t})))}},e,{className:ri(n)}))}ti.defaultProps={playerControlsComponent:qr,qualities:[],textTracks:{files:[]}};var ni=Ct(te({activeQuality:eo({property:"videoQuality"}),t:Gr}),{updateTextTrackSettings:Go,updateVideoQualitySetting:function(e){return S({property:"videoQuality",value:e})}})(ti);function ri(e){return V()(io(e))}function oi(e){var t=e.t;return nr(e.infoBox)?[]:[{name:"toggleInfoBox",className:"player_controls-toggle_info_box_menu_button",label:t("pageflow.public.toggle_info_box"),iconName:"toggleInfoBox"}]}function ii(e){var t=e.playerState;return void 0===t.infoBoxHiddenDuringPlayback?!!e.textTracks.activeFileId:t.infoBoxHiddenDuringPlayback}function ai(e,t){if(!e.files.length)return[];var n={value:"off",label:t("pageflow.public.text_track_modes.none"),active:"off"==e.mode};return[{value:"auto",label:e.autoFile?t("pageflow.public.text_track_modes.auto",{label:e.autoFile.displayLabel}):t("pageflow.public.text_track_modes.auto_off"),active:"auto"==e.mode},n].concat(e.files.map((function(t){return{value:t.id,label:t.displayLabel,active:"user"==e.mode&&t.id==e.activeFileId}})))}function ci(e,t,n,r){return n=n||"auto",function(e,t){if(!t)return[];return e.filter((function(e){return!!t.urls[e]||"auto"==e}))}(e,t).map((function(e){return{value:e,label:r("pageflow.public.video_qualities.labels.".concat(e)),annotation:r("pageflow.public.video_qualities.annotations.".concat(e),{defaultValue:""}),active:e==n}}))}function ui(e){return function(t){return t.entry[e]}}function si(e){var t=e.entrySlug,n=e.file,r="videoFiles"==n.collectionName?"videos":"audio";return"/".concat(t,"/").concat(r,"/").concat(n.id)}var li=Ct(te({t:Gr,entrySlug:ui("slug")}))((function(e){return e.file?React.createElement("p",{className:"non_js_video"},React.createElement("a",{href:si(e),target:"_blank"},(n=(t=e).file,r=t.t,o="videoFiles"==n.collectionName?"video":"audio",r("pageflow.public.open_".concat(o))))):React.createElement("noscript",null);var t,n,r,o})),fi=ee(an("media.pageScrollerMargin"),(function(e){return e&&e.bottom}));function pi(e){var t=e.page,n=e.playerState,r={title:t.additionalTitle,description:t.additionalDescription};return React.createElement(H,{className:vi(e.className,hi(e),e.textTracks,n)},React.createElement(q,{pageHasPlayerControls:!0},e.children,React.createElement(Nn,{page:t,className:io(n)})),React.createElement(Mn,{onInteraction:function(){return n.userIsIdle&&e.playerActions.userInteraction()},classNames:io(n)},React.createElement(ni,{file:e.file,textTracks:e.textTracks,playerState:n,playerActions:e.playerActions,qualities:e.qualities,controlBarText:e.controlBarText,infoBox:r,playerControlsComponent:e.playerControlsComponent}),React.createElement(Fn,{className:io(n),marginBottom:e.dynamicPageScrollerMargin&&e.pageScrollerMarginBottom},React.createElement(Vn,{page:t}),React.createElement(ea,{page:t}),React.createElement(Hn,{page:t,marginBottom:e.dynamicPageScrollerMargin?"none":"for_player_controls"},React.createElement(li,{file:e.file})))))}pi.defaultProps={playerControlsCanOverlapPageText:!0};var di=An(te({pageScrollerMarginBottom:fi,textTracks:Ko({file:Gn("file"),defaultTextTrackFileId:Gn("page.defaultTextTrackFileId")}),hasAutoplaySupport:zn("autoplay support"),shouldAutoplay:Zo({id:Gn("page.permaId"),autoplayWhenBackgroundMediaMuted:Gn("autoplayWhenBackgroundMediaMuted")})}))(pi);function hi(e){return e.shouldAutoplay&&e.hasAutoplaySupport&&!e.playerState.playFailed}function vi(e,t,n,r){return V()(e,{has_text_tracks:!!n.activeFileId,is_idle:r.isPlaying&&r.userIsIdle,is_control_bar_focused:r.focusInsideControls,is_control_bar_hovered:r.userHoveringControls,is_control_bar_hidden:r.controlsHidden,unplayed:r.unplayed&&!t,should_play:r.shouldPlay,has_played:r.hasPlayed})}var gi=An(te({pageIsPrepared:sn(),pageIsPreloaded:un(),atmoDuringPlayback:rn("atmoDuringPlayback"),defaultTextTrackFileId:rn("defaultTextTrackFileId")}))((function(e){if(e.file&&e.file.isReady){var t=e.structuredDataComponent||function(){return null};return React.createElement("div",{style:{height:"100%"}},function(e){if(e.pageIsPrepared){var t=e.playerComponent;return React.createElement(t,{file:e.file,posterImageFile:e.posterImageFile,playerState:e.playerState,playerActions:e.playerActions,atmoDuringPlayback:e.atmoDuringPlayback,fit:e.fit,position:e.position,loop:e.loop,muted:e.muted,playsInline:e.playsInline,defaultTextTrackFileId:e.defaultTextTrackFileId,textTracksEnabled:e.textTracksEnabled,textTrackPosition:e.textTrackPosition})}if(e.preloadComponent&&e.pageIsPreloaded){var n=e.preloadComponent;return React.createElement(n,{file:e.file,posterImageFile:e.posterImageFile})}return React.createElement("noscript",null)}(e),React.createElement(t,{file:e.file}))}return React.createElement("noscript",null)})),yi=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this;return F.a.createElement("div",{ref:function(t){return e.containerElement=t},dangerouslySetInnerHTML:this.mediaTagHTML()})}},{key:"shouldComponentUpdate",value:function(e){return e.tagName!==this.props.tagName||e.poster!==this.props.poster||e.loop!==this.props.loop||e.muted!==this.props.muted||e.playsInline!==this.props.playsInline||!mi(e.sources,this.props.sources)||!mi(e.tracks,this.props.tracks)}},{key:"componentDidMount",value:function(){this.triggerOnSetup()}},{key:"componentWillUpdate",value:function(){this.triggerOnDispose()}},{key:"componentDidUpdate",value:function(){this.triggerOnSetup()}},{key:"componentWillUnmount",value:function(){this.triggerOnDispose()}},{key:"triggerOnSetup",value:function(){this.props.onSetup&&this.props.onSetup(this.containerElement.firstElementChild)}},{key:"triggerOnDispose",value:function(){this.props.onDispose&&this.props.onDispose()}},{key:"mediaTagHTML",value:function(){var e=document.createElement("div"),t=document.createElement(this.props.tagName);return t.setAttribute("preload","none"),t.setAttribute("crossorigin","anonymous"),t.setAttribute("alt",this.props.alt),this.props.poster&&t.setAttribute("data-poster",this.props.poster),this.props.loop&&t.setAttribute("loop","true"),this.props.muted&&t.setAttribute("muted","true"),this.props.playsInline&&t.setAttribute("playsinline","true"),this.props.sources.forEach((function(e){var n=document.createElement("source");n.setAttribute("src",e.src),n.setAttribute("type",e.type),t.appendChild(n)})),this.props.tracks.forEach((function(e){var n=document.createElement("track");n.setAttribute("src",e.src),n.setAttribute("id",e.id),n.setAttribute("kind",e.kind),n.setAttribute("srclang",e.srclang),n.setAttribute("label",e.label),t.appendChild(n)})),e.appendChild(t),{__html:e.innerHTML.replace('preload="none"','preload="auto"')}}}]),t}(F.a.Component);function mi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(Object.keys(r).length!==Object.keys(o).length)return!1;for(var i in r)if(r[i]!==o[i])return!1}return!0}function bi(e,t){t.emulateTextTracksDisplay;var n=t.atmoSettings,r=t.mediaContext,o=t.playsInline,i="audio"==e.tagName.toLowerCase(),a=new pageflow.VideoPlayer(e,{controlBar:!1,loadingSpinner:!1,bigPlayButton:!1,errorDisplay:!1,textTrackSettings:!1,poster:e.getAttribute("data-poster"),html5:{nativeCaptions:!i&&pageflow.browser.has("iphone platform")},bufferUnderrunWaiting:!0,useSlimPlayerControlsDuringPhonePlayback:!o&&!i,fullscreenDuringPhonePlayback:!o&&!i,fallbackToMutedAutoplay:!i,volumeFading:!0,hooks:pageflow.atmo.createMediaPlayerHooks(n),mediaEvents:!0,context:r});return a.textTrackSettings={getValues:function(){return{}}},a.addClass("video-js"),a.addClass("player"),a}yi.defaultProps={tagName:"video",sources:[],tracks:[]};var wi=function(e,t){e.on("loadedmetadata",(function(){return t.metaDataLoaded({currentTime:e.currentTime(),duration:e.duration()})})),e.on("progress",(function(){return t.progress({bufferedEnd:e.bufferedEnd()})})),e.on("play",t.playing),e.on("playfailed",t.playFailed),e.on("playmuted",t.playingMuted),e.on("pause",t.paused),e.on("waiting",t.waiting),e.on("seeking",t.seeking),e.on("seeked",t.seeked),e.on("bufferunderrun",t.bufferUnderrun),e.on("bufferunderruncontinue",t.bufferUnderrunContinue),e.on("timeupdate",(function(){return t.timeUpdate({currentTime:e.currentTime(),duration:e.duration()})})),e.on("ended",t.ended)};function Oi(e,t,n){e.one("timeupdate",(function(){Ei(e,null,t(),n())}))}function Ei(e,t,n,r){t!=n&&function(e,t){[].slice.call(e.textTracks()).forEach((function(e){e.id=="text_track_file_".concat(t)?e.mode="showing":e.mode="disabled"}))}(e,n),function(e,t){e.updateCueLineSettings(t)}(e,r)}function _i(e){return function(t){return t.features.indexOf(e)>=0}}var xi,ki=function(e){var t=e.tagName,n=e.sources,r=e.poster,o=void 0===r?function(){}:r,i=e.emulateTextTracksDisplay,a=void 0!==i&&i,c=e.createPlayer,u=void 0===c?bi:c,s=function(e){function r(e,n){var o;return j(this,r),(o=M(this,D(r).call(this,e,n))).displaysTextTracksInNativePlayer=o.props.hasNativeVideoPlayer&&"video"==t,o.initiallyMuted=o.props.muted,o.updateAtmoSettings(),o.setupMediaTag=function(t){o.player=u(t,{emulateTextTracksDisplay:a,atmoSettings:o.atmoSettings,mediaContext:o.context.mediaContext,playsInline:e.playsInline}),o.player.ready((function(){var e,n,r,i,a,c;o.props.playerActions.saveMediaElementId(t.id),e=o.player,n=function(){return o.props.playerState},r=o.props.playerActions,i=o.prevFileId,a=o.props.file.id,c=n(),a===i&&c.currentTime>0&&e.currentTime(c.currentTime),c.shouldPrebuffer&&e.prebuffer().then(r.prebuffered,(function(){})),c.isPlaying&&e.play(),e.on("canplay",(function(){n().shouldPlay&&e.paused()&&e.play()})),o.displaysTextTracksInNativePlayer||function(e,t,n){e.on("pause",(function(){Oi(e,t,n)})),e.textTracks().on("addtrack",(function(){Ei(e,null,t(),n())})),Ei(e,null,t(),n()),Oi(e,t,n)}(o.player,(function(){return o.props.textTracks.activeFileId}),(function(){return o.props.textTrackPosition})),wi(o.player,o.props.playerActions),o.prevFileId=o.props.file.id}),!0)},o.disposeMediaTag=function(){o.player.dispose(),o.player=null,o.props.playerActions.discardMediaElementId()},o}return L(r,e),A(r,[{key:"componentDidUpdate",value:function(e){var t=this;this.player&&(this.player.ready((function(){var n,r,o;n=t.player,r=e.muted,o=t.props.muted,r!==o&&n.muted(o),function(e,t,n,r){t!==n&&e.changeVolumeFactor(n,r)}(t.player,e.playerState.volumeFactor,t.props.playerState.volumeFactor,t.props.playerState.volumeFactorFadeDuration),function(e,t,n,r){!t.shouldPrebuffer&&n.shouldPrebuffer&&e.prebuffer().then((function(){return setTimeout(r.prebuffered,0)})),!t.shouldPlay&&n.shouldPlay?n.fadeDuration?e.playAndFadeIn(n.fadeDuration):e.play():t.shouldPlay&&!n.shouldPlay&&n.isPlaying&&(n.fadeDuration?e.fadeOutAndPause(n.fadeDuration):e.pause()),void 0!==n.shouldSeekTo&&n.shouldSeekTo!==t.shouldSeekTo&&e.currentTime(n.shouldSeekTo)}(t.player,e.playerState,t.props.playerState,t.props.playerActions)}),!0),this.displaysTextTracksInNativePlayer||Ei(this.player,e.textTracks.activeFileId,this.props.textTracks.activeFileId,this.props.textTrackPosition),this.updateAtmoSettings())}},{key:"updateAtmoSettings",value:function(){this.atmoSettings=this.atmoSettings||{},this.atmoSettings.atmo_during_playback=this.props.atmoDuringPlayback}},{key:"render",value:function(){return F.a.createElement(yi,{tagName:t,sources:n(this.props.file,this.props.quality,{hasHighBandwidth:this.props.hasHighBandwidth,forceBestQuality:this.props.forceBestQuality,forceFullhdQuality:this.props.forceFullhdQuality}),tracks:(e=this.props.textTracks.files,r=this.props.textTracksEnabled,r?e.filter((function(e){return e.isReady})).map((function(e){return{id:"text_track_file_".concat(e.id),kind:e.kind,label:e.displayLabel,srclang:e.srclang,src:e.urls.vtt}})):[]),poster:o(this.props.file,this.props.posterImageFile),loop:this.props.loop,muted:this.initiallyMuted,playsInline:this.props.playsInline,alt:this.props.file.alt,onSetup:this.setupMediaTag,onDispose:this.disposeMediaTag});var e,r}}]),r}(F.a.Component);s.contextTypes={mediaContext:F.a.PropTypes.object},s.defaultProps={textTracksEnabled:!0,textTracks:{files:[]}};var l=Ct(te({textTracks:Ko({file:Gn("file"),defaultTextTrackFileId:Gn("defaultTextTrackFileId")}),quality:eo({property:"videoQuality"}),hasNativeVideoPlayer:zn("native video player"),hasHighBandwidth:zn("high bandwidth"),forceBestQuality:_i("force_best_video_quality"),forceFullhdQuality:_i("force_fullhd_video_quality"),textTrackPosition:Si}),{updateTextTrackSettings:Go})(s);return l.WrappedComponent=s,l},Pi=(xi="slimPlayerControls",function(e){return e.widgetPresence[xi]});function Si(e,t){var n=t.playerState,r=t.textTrackPosition;return r||(Pi(e)?n.controlsHidden?"auto.lazy":"auto.translated":n.controlsHidden?"auto.lazy":"top")}var ji=ki({tagName:"audio",sources:function(e){return[{type:"audio/ogg",src:"".concat(e.urls.ogg,"?u=1")},{type:"audio/mp4",src:"".concat(e.urls.m4a,"?u=1")},{type:"audio/mp3",src:"".concat(e.urls.mp3,"?u=1")}]},emulateTextTracksDisplay:!0});function Ti(e,t){return t&&t.match(/^\/\//)?"".concat(e,":").concat(t):t}function Ai(e){var t=Math.round(e/1e3)%60,n=Math.floor(e/1e3/60)%60,r=Math.floor(e/1e3/60/60),o="PT";return r>0&&(o+="".concat(r,"H")),n>0&&(o+="".concat(n,"M")),(t>0||0==n&&0==r)&&(o+="".concat(t,"S")),o}var Ii=Ct(te({isEnabled:_i("structured_data")}))((function(e){var t=e.data;return e.isEnabled?React.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}}):null}));var Ci=Ct(te({entryPublishedAt:ui("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt,r={"@context":"http://schema.org","@type":"AudioObject",name:t.basename,description:t.alt,url:Ti("https",t.urls.mp3),duration:Ai(t.durationInMs),datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Ii,{data:r})}));function Ni(e){return React.createElement(gi,Object.assign({},e,{playerComponent:ji,structuredDataComponent:Ci}))}var Mi=function(e,t,n,r){if(r&&r.height&&t&&"contain"!=t){var o,i,a,c=e.width/e.height;if("width"==(r.width/r.height>c?"width":"height")?(o=(i=r.height)*c,a=r.width/o):(i=(o=r.width)/c,a=r.height/i),!("smart_contain"==t&&a>1.2)){var u=o*a,s=i*a,l=void 0!==n[0]&&"cover"==t?n[0]:50,f=void 0!==n[1]&&"cover"==t?n[1]:50;return{left:(r.width-u)*l/100,top:(r.height-s)*f/100,width:u,height:s}}}};function Di(e,t){if(e&&t){var n=Math.max(0,-e.left),r=Math.max(0,e.width-t.width+e.left),o=Math.max(0,-e.top),i=Math.max(0,e.height-t.height+e.top);return["cue_offset","cue_offset_".concat(Math.ceil(i/10)),"cue_margin_left_".concat(Math.ceil(n/10)),"cue_margin_right_".concat(Math.ceil(r/10)),"cue_margin_top_".concat(Math.ceil(o/10)),"cue_margin_bottom_".concat(Math.ceil(i/10))].join(" ")}}function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Li(e){return F.a.createElement(Pr.a,{whitelist:["width","height"],cloneOptions:{noCloneOnZeroDimension:!0}},(function(t){return function(e,t){var n=Mi(e.videoFile,e.fit,e.position,t);return F.a.createElement("div",{className:"uncropped_media_wrapper"},F.a.createElement("div",{className:Di(n,t),style:Bi(n)},e.children))}(e,t)}))}function Bi(e){return e&&function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({position:"absolute"},e)}var Fi=ki({tagName:"video",sources:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.hasHighBandwidth,o=n.forceBestQuality,i=n.forceFullhdQuality;if(t=t||"auto",o)return[{type:"video/mp4",src:e.urls["4k"]||e.urls.fullhd||e.urls.high}];if(i)return[{type:"video/mp4",src:e.urls.fullhd||e.urls.high}];if("auto"==t){var a=r?"high":"medium",c=[{type:"application/x-mpegURL",src:"".concat(e.urls["hls-playlist"],"?u=1")},{type:"video/mp4",src:"".concat(e.urls[a],"?u=1")}];return e.urls["dash-playlist"]&&(c=[{type:"application/dash+xml",src:"".concat(e.urls["dash-playlist"])}].concat(c)),c}return e.urls[t]||(t="high"),[{type:"video/mp4",src:"".concat(e.urls[t],"?u=1")}]},poster:Hi});function Ui(e){return F.a.createElement(Li,{videoFile:e.file,fit:e.fit,position:e.position},F.a.createElement(Fi,{file:e.file,posterImageFile:e.posterImageFile,playerState:e.playerState,playerActions:e.playerActions,atmoDuringPlayback:e.atmoDuringPlayback,defaultTextTrackFileId:e.defaultTextTrackFileId,textTracksEnabled:e.textTracksEnabled,loop:e.loop,muted:e.muted,playsInline:e.playsInline}))}var Vi=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.file,n=e.posterImageFile,r=e.preloadImage,o=Hi(t,n);o&&r(o)}},{key:"render",value:function(){return null}}]),t}(F.a.Component);function Hi(e,t){var n=oe("mobile platform")?"medium":"large";return t?t.urls[n]:e.urls["poster_".concat(n)]}Vi.defaultProps={preloadImage:ie};var qi=Ct(te({entryPublishedAt:ui("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt,r={"@context":"http://schema.org","@type":"VideoObject",name:t.basename,description:t.alt,url:Ti("https",t.urls.high),thumbnailUrl:Ti("https",t.urls.poster_medium),width:t.width,height:t.height,duration:Ai(t.durationInMs),datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Ii,{data:r})}));var Wi=Ct(te({file:Xt("videoFiles",{id:Gn("videoFileId")}),posterImageFile:Xt("imageFiles",{id:Gn("posterImageFileId")}),muted:function(e,t){return t.muted||zo(e)}}))((function(e){return React.createElement(gi,Object.assign({},e,{playerComponent:Ui,preloadComponent:Vi,structuredDataComponent:qi}))}));function Gi(e){var t=e.page,n=X.concat(e.propertyNamePrefix,e.videoPropertyBaseName),r=X.concat(e.propertyNamePrefix,e.posterImagePropertyBaseName);return React.createElement(Wi,{videoFileId:t["".concat(n,"Id")],posterImageFileId:t["".concat(r,"Id")],playerState:e.playerState,playerActions:e.playerActions,fit:e.fit,position:[t["".concat(n,"X")],t["".concat(n,"Y")]],textTracksEnabled:e.textTracksEnabled,loop:e.loop,muted:e.muted,playsInline:e.playsInline})}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Gi.defaultProps={videoPropertyBaseName:"videoFile",posterImagePropertyBaseName:"posterImage",fit:"smart_contain"};var Xi=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"getChildContext",value:function(){return{mediaContext:Yi({},this.context.mediaContext,{playbackMode:this.props.playbackMode,playerDescription:this.props.playerDescription})}}},{key:"render",value:function(){return this.props.children}}]),t}(F.a.Component);Xi.contextTypes={mediaContext:F.a.PropTypes.object},Xi.childContextTypes={mediaContext:F.a.PropTypes.object};var $i=Ct(te({fileExists:$t()}))((function(e){var t=function(e){return(t=e.propertyNamePrefix,[{propertyBaseName:X.concat(t,"mobilePosterImage"),collection:"imageFiles"},{propertyBaseName:X.concat(t,"posterImage"),collection:"imageFiles"},{propertyBaseName:X.concat(t,"videoFile"),collection:"videoFiles"}]).find((function(t){return e.fileExists(t.collection,e.page["".concat(t.propertyBaseName,"Id")])}));var t}(e);return t?React.createElement(Cn,{page:e.page,propertyBaseName:t.propertyBaseName,fileCollection:t.collection}):React.createElement("noscript",null)}));var Ki=Ct(te({fileExists:$t(),hasMobilePlatform:zn("mobile platform"),hasAutoplaySupport:zn("autoplay support")}))((function(e){return e.hasMobilePlatform&&function(e){var t=X.concat(e.propertyNamePrefix,"mobilePosterImageId");return e.fileExists("imageFiles",e.page[t])}(e)?React.createElement($i,{page:e.page,propertyNamePrefix:e.propertyNamePrefix}):React.createElement(Xi,{playbackMode:"loop",playerDescription:"Background Video Player"},React.createElement(Gi,Object.assign({loop:!0,fit:"cover",muted:!e.hasAutoplaySupport,playsInline:!0,textTracksEnabled:!1},e)))}));var Qi=Ct(te({file:Xt("imageFiles",{id:Gn("fileId")}),entryPublishedAt:ui("publishedAt")}))((function(e){var t=e.file,n=e.entryPublishedAt;if(t){var r={"@context":"http://schema.org","@type":"ImageObject",name:t.basename,description:t.alt,url:Ti("https",t.urls.large),width:t.width,height:t.height,datePublished:n,uploadDate:t.createdAt,copyrightHolder:{"@type":"Organization",name:t.rights}};return React.createElement(Ii,{data:r})}return null}));var Ji=An(te({page:on(),playerState:Xo({scope:"background"})}),$({playerActions:$o({scope:"background"})}))((function(e){var t=e.page,n=e.playerState,r=e.playerActions,o=e.propertyNamePrefix;return"video"==t[X.concat(o,"backgroundType")]?React.createElement(Ki,{page:t,playerState:n,playerActions:r,propertyNamePrefix:o}):React.createElement(Cn,{page:t,propertyNamePrefix:o,structuredDataComponent:Qi})}));function Zi(e){return React.createElement(q,null,React.createElement(Ji,{propertyNamePrefix:e.propertyNamePrefix}),React.createElement(Nn,{page:e.page}))}var ea=Ct(te({isEntryReady:function(e){return!!e.entry.isReady}}))((function(e){var t=e.page;return e.isEntryReady?"video"==t.backgroundType||"video"==t.type?React.createElement(ta,{videoId:t.videoFileId,posterImageId:t.posterImageId}):React.createElement(na,{imageId:t.backgroundImageId}):null})),ta=Ct(te({videoFile:Xt("videoFiles",{id:Gn("videoId")}),posterImageFile:Xt("imageFiles",{id:Gn("posterImageId")})}))((function(e){var t=e.videoFile,n=e.posterImageFile;return n?React.createElement(ra,{file:n}):React.createElement(ra,{file:t})})),na=An(te({file:Xt("imageFiles",{id:Gn("imageId")}),pageIsPrepared:sn()}))(ra);function ra(e){var t=e.file;return t&&t.isReady&&sn?React.createElement("img",{src:t.urls.print,alt:t.alt,className:"print_image"}):React.createElement("noscript",null)}function oa(e){return React.createElement("div",{className:"waveform_player_controls-info_box"},function(e){if(!z(e.title))return React.createElement("h3",{className:ia(e)},e.title)}(e),function(e){if(!z(e.description))return React.createElement("p",{className:"waveform_player_controls-info_box-description",dangerouslySetInnerHTML:{__html:e.description}})}(e))}function ia(e){var t=!z(e.title)&&!z(e.description);return V()("waveform_player_controls-info_box-title",{"waveform_player_controls-info_box-title-with_separator":t})}var aa="MEDIA_PAGE_SCROLLER_MARGIN_SET_BOTTOM";var ca=An(null,{setPageScrollerMarginBottom:function(e){return{type:aa,payload:{value:e},meta:{collectionName:"pages"}}}})((function(e){return React.createElement(Pr.a,{whitelist:["height"],onMeasure:function(t){var n=t.height;return e.setPageScrollerMarginBottom(n)}},React.createElement("div",{className:"waveform_player_controls-container"},e.children))}));var ua=dr((function(e){return React.createElement("a",{href:"#",className:sa(e),id:e.id,tabIndex:"4",title:e.title,onClick:la(e)},React.createElement(fr,{name:e.isPlaying?"pause":"play"}))}));function sa(e){return V()("waveform_player_controls-play_button",{"waveform_player_controls-play_button-inverted":e.inverted})}function la(e){return function(t){t.preventDefault(),e.onClick&&e.onClick()}}var fa="rgba(170, 170, 170, 1)",pa="rgba(0, 0, 0, 0.5)",da="#fff",ha="#888";var va=An(te({pageIsPrepared:sn(),waveformColor:rn("waveformColor"),mainColor:function(e){return e.theme.mainColor}}))((function(e){return e.pageIsPrepared&&e.mediaElementId?React.createElement(Pr.a,{whitelist:["height"]},(function(t){var n=t.height;return React.createElement("div",{className:"waveform_player_controls-wave"},React.createElement("div",{className:"waveform_player_controls-wave_wrapper"},React.createElement(Ut.a,{mediaElt:"#".concat(e.mediaElementId),options:{normalize:!0,removeMediaElementOnDestroy:!1,hideScrollbar:!0,progressColor:e.waveformColor||e.mainColor,waveColor:e.inverted?pa:fa,cursorColor:e.inverted?ha:da,height:n}}),React.createElement(ua,{isPlaying:e.isPlaying,title:e.playButtonTitle,inverted:e.inverted,onClick:e.onPlayButtonClick})))})):null}));function ga(e){return React.createElement("div",{className:"waveform_player_controls-times_display"},React.createElement(yr,{value:e.currentTime,className:"waveform_player_controls-times_display-current_time"}),"/",React.createElement(yr,{value:e.duration,className:"waveform_player_controls-times_display-duration"}))}var ya=An(te({inverted:rn("invert")}))((function(e){return React.createElement("div",{className:ma(e)},React.createElement(ca,null,React.createElement(va,{isPlaying:e.isPlaying,inverted:e.inverted,playButtonTitle:e.playButtonTitle,mediaElementId:e.mediaElementId,onPlayButtonClick:e.onPlayButtonClick}),React.createElement(ga,{currentTime:e.currentTime,duration:e.duration}),React.createElement(oa,e.infoBox)),React.createElement(Br,{inverted:e.inverted,qualityMenuButtonTitle:e.qualityMenuButtonTitle,qualityMenuItems:e.qualityMenuItems,onQualityMenuItemClick:e.onQualityMenuItemClick,textTracksMenuButtonTitle:e.textTracksMenuButtonTitle,textTracksMenuItems:e.textTracksMenuItems,hiddenOnPhone:!e.isPlaying,onTextTracksMenuItemClick:e.onTextTracksMenuItemClick}))}));function ma(e){return V()("waveform_player_controls",{"waveform_player_controls-inverted":e.inverted})}var ba="HOTKEY_SPACE",wa="HOTKEY_TAB";function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scope,n=void 0===t?"default":t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.meta&&t.meta.mediaScope&&t.meta.mediaScope!==n)return e;switch(t.type){case u:return Ea({},e,{hasPlayed:!1,unplayed:!0,infoBoxHiddenDuringPlayback:void 0,userIsIdle:!1});case l:return Ea({},e,{shouldPrebuffer:!1});case co:return Ea({},e,{shouldPlay:!0,playFailed:!1,hasBeenPlayingJustNow:!0,unplayed:!1,fadeDuration:null,isLoading:!0});case xo:return Ea({},e,{shouldPlay:!0,isPlaying:!0});case po:return Ea({},e,{shouldPlay:!1,playFailed:!0,hasBeenPlayingJustNow:!1,unplayed:!0,fadeDuration:null,isLoading:!1});case uo:return Ea({},e,{shouldPlay:!0,hasBeenPlayingJustNow:!0,fadeDuration:t.payload.fadeDuration,isLoading:!0});case so:return Ea({},e,{shouldPlay:!1,fadeDuration:null,isLoading:!1});case ko:return e.bufferUnderrun?Ea({},e,{isPlaying:!1,hasPlayed:!0}):Ea({},e,{shouldPlay:!1,isPlaying:!1,fadeDuration:null,isLoading:!1});case lo:return Ea({},e,{shouldPlay:!1,fadeDuration:t.payload.fadeDuration,isLoading:!1});case fo:return Ea({},e,{volumeFactor:t.payload.volumeFactor,volumeFactorFadeDuration:t.payload.fadeDuration});case yo:return Ea({},e,{shouldPrebuffer:!0});case mo:return Ea({},e,{shouldPrebuffer:!1});case Ao:return Ea({},e,{isLoading:!0});case wo:return Ea({},e,{bufferUnderrun:!0});case Oo:return Ea({},e,{bufferUnderrun:!1});case vo:return Ea({},e,{scrubbingAt:t.payload.time});case go:return Ea({},e,{shouldSeekTo:t.payload.time});case jo:return Ea({},e,{isLoading:!0});case To:return Ea({},e,{scrubbingAt:void 0,isLoading:!1});case Eo:return Ea({},e,{currentTime:t.payload.currentTime,duration:t.payload.duration});case _o:return Ea({},e,{bufferedEnd:t.payload.bufferedEnd});case Po:return Ea({},e,{currentTime:t.payload.currentTime,duration:t.payload.duration,isLoading:!1});case So:return Ea({},e,{shouldPlay:!1,isPlaying:!1});case Io:return Ea({},e,{hasBeenPlayingJustNow:!1});case wa:case Co:return Ea({},e,{userIsIdle:!1,controlsHidden:!1});case No:return Ea({},e,{userIsIdle:!0});case Mo:return Ea({},e,{userHoveringControls:!0});case Do:return Ea({},e,{userHoveringControls:!1});case Ro:return Ea({},e,{focusInsideControls:!0});case Lo:return Ea({},e,{focusInsideControls:!1});case Bo:return Ea({},e,{controlsHidden:!0,infoBoxHiddenDuringPlayback:!0});case Uo:return Ea({},e,{infoBoxHiddenDuringPlayback:!0});case Fo:return Ea({},e,{infoBoxHiddenDuringPlayback:!1});case Vo:return Ea({},e,{infoBoxHiddenDuringPlayback:!e.infoBoxHiddenDuringPlayback});case Ho:return Ea({},e,{mediaElementId:t.payload.id});case qo:return Ea({},e,{mediaElementId:null});default:return e}}};function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case aa:return ka({},e,{bottom:t.payload.value});default:return e}},Sa=Ee.a.mark(Ta),ja=Ee.a.mark(Aa);function Ta(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)([ba,ao],Aa,Wo());case 2:case"end":return e.stop()}}),Sa)}function Aa(e){var t,n;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.play,n=e.pause,r.next=3,Object(De.select)(Xo());case 3:if(!r.sent.shouldPlay){r.next=9;break}return r.next=7,Object(De.put)(n());case 7:r.next=13;break;case 9:return r.next=11,Object(De.call)((function(){return pageflow.backgroundMedia.unmute()}));case 11:return r.next=13,Object(De.put)(t());case 13:case"end":return r.stop()}}),ja)}var Ia=Ee.a.mark(Na),Ca=Ee.a.mark(Ma);function Na(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)([po,ho],Ma);case 2:case"end":return e.stop()}}),Ia)}function Ma(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return pageflow.backgroundMedia.mute()}));case 2:case"end":return e.stop()}}),Ca)}var Da="BACKGROUND_MEDIA_MUTE",Ra="BACKGROUND_MEDIA_UNMUTE";function La(){return{type:Ra}}var Ba=Ee.a.mark(za),Fa=Ee.a.mark(Ya),Ua=Ee.a.mark(Xa),Va=Ee.a.mark($a),Ha=Wo(),qa=Ha.play,Wa=Ha.prebuffer,Ga=Ha.waiting;function za(e){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(Re.takeEvery)(c,Ee.a.mark((function t(n){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,[Object(De.race)({task:Object(De.call)(Xa,e),cancel:Object(De.take)(l)}),Object(De.race)({task:Object(De.call)(Ya,e),cancel:Object(De.take)(l)})];case 2:case"end":return t.stop()}}),t)})));case 2:case"end":return t.stop()}}),Ba)}function Ya(e){var t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=e.retryOnUnmute,!n.t0){n.next=5;break}return n.next=4,Object(De.select)(ei());case 4:n.t0=n.sent;case 5:if(!n.t0){n.next=12;break}return n.next=8,Object(De.race)({unmute:Object(De.take)(Ra),cancel:Object(De.take)(l)});case 8:if(t=n.sent,!t.unmute){n.next=12;break}return n.delegateYield(Xa(e),"t1",12);case 12:case"end":return n.stop()}}),Fa)}function Xa(e){var t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.delegateYield($a(e),"t0",1);case 1:if(!(t=n.t0)){n.next=5;break}return n.next=5,Object(De.put)(Ga());case 5:return n.next=7,[Object(De.take)(mo),Object(De.put)(Wa())];case 7:if(!t){n.next=12;break}return n.next=10,Object(De.call)(Re.delay,1e3);case 10:return n.next=12,Object(De.put)(qa());case 12:case"end":return n.stop()}}),Ua)}function $a(e){var t,n,r;return Ee.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.canAutoplay,n=e.autoplayWhenBackgroundMediaMuted,o.next=3,Object(De.select)(Zo({autoplayWhenBackgroundMediaMuted:function(){return n}}));case 3:return r=o.sent,o.abrupt("return",r&&t);case 5:case"end":return o.stop()}}),Va)}var Ka=Ee.a.mark(Qa);function Qa(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(co,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(cn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(Ja);case 5:case"end":return e.stop()}}),e)})));case 2:return e.next=4,Object(Re.takeEvery)([so,So],Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(cn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(Za);case 5:case"end":return e.stop()}}),e)})));case 4:case"end":return e.stop()}}),Ka)}function Ja(){pageflow.events.trigger("scroll_indicator:disable")}function Za(){pageflow.events.trigger("scroll_indicator:enable")}var ec=Ee.a.mark(tc);function tc(){var e,t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=Wo(),t=e.hasNotBeenPlayingForAMoment,n.next=3,Object(Re.takeEvery)([so,So],Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.race)({task:Object(De.call)(Ee.a.mark((function e(n){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)(Re.delay,700);case 2:return e.next=4,Object(De.put)(t(!1));case 4:case"end":return e.stop()}}),e)}))),cancel:Object(De.take)(xo)});case 2:case"end":return e.stop()}}),e)})));case 3:case"end":return n.stop()}}),ec)}var nc=Ee.a.mark(oc),rc=Ee.a.mark(ic);function oc(){var e,t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=Wo(),t=e.userIdle,n.next=3,Object(Re.takeLatest)([co,Co,wa],ic,t);case 3:case"end":return n.stop()}}),nc)}function ic(e){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(De.call)(Re.delay,3e3);case 2:return t.next=4,Object(De.put)(e());case 4:case"end":return t.stop()}}),rc)}var ac=Ee.a.mark(cc);function cc(){var e,t,n,r,o=arguments;return Ee.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},t=e.scope,n=Wo({scope:t}),r=n.fadeOutAndPause,i.next=4,Object(Re.takeEvery)(s,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.put)(r({fadeDuration:400}));case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return i.stop()}}),ac)}var uc=Ee.a.mark(sc);function sc(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(So,Ee.a.mark((function e(){var t,n;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(rn("autoChangePageOnEnded"));case 2:return t=e.sent,e.next=5,Object(De.select)(cn());case 5:if(n=e.sent,!t||!n){e.next=9;break}return e.next=9,Object(De.call)(lc);case 9:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),uc)}function lc(){pageflow.slides.next()}var fc=Ee.a.mark(hc);function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hc(){var e,t,n=arguments;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t=[Ta(),Na(),Qa()],e.playsInNativePlayer&&e.playsInNativePlayer()||t.push([sc(),cc(),tc()]),oe("mobile platform")||t.push([za(dc({},e,{canAutoplay:oe("autoplay support")}))]),e.hideControls&&t.push([oc()]),r.next=7,t;case 7:case"end":return r.stop()}}),fc)}var vc=Ee.a.mark(mc),gc=Ee.a.mark(bc),yc=Ee.a.mark(wc);function mc(){var e,t,n,r=arguments;return Ee.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t=e.scope,n=Wo({scope:t}),o.next=4,Object(Re.takeEvery)(u,Ee.a.mark((function e(t){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,[Object(De.race)({task:[Object(De.put)(n.prebuffer()),Object(De.call)(bc,n),Object(De.call)(wc,n)],cancel:Object(De.take)(l)})];case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return o.stop()}}),vc)}function bc(e){var t,n;return Ee.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.prebuffer,t=e.changeVolumeFactor,n=e.play,r.next=3,Object(De.put)(t(0,{fadeDuration:0}));case 3:return r.next=5,Object(De.take)(mo);case 5:return r.next=7,Object(De.put)(n());case 7:case"end":return r.stop()}}),gc)}function wc(e){var t;return Ee.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.changeVolumeFactor,n.next=3,[Object(De.take)(mo),Object(De.take)(c)];case 3:return n.next=5,Object(De.put)(t(1,{fadeDuration:1e3}));case 5:case"end":return n.stop()}}),yc)}function Oc(e){return{reducers:{"media.default":_a({scope:"default"}),"media.pageScrollerMargin":Pa},saga:Ee.a.mark((function t(){return Ee.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,hc(e);case 2:case"end":return t.stop()}}),t)}))}}var Ec={reducers:{"media.background":_a({scope:"background"})},saga:Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,[mc({scope:"background"}),cc({scope:"background"}),Na()];case 2:case"end":return e.stop()}}),e)}))};var _c=function(e){function t(e,n){var r;return j(this,t),(r=M(this,D(t).call(this,e,n))).onPlayButtonClick=function(){pageflow.hideText.activate(),r.props.onEnterBackground&&r.props.onEnterBackground()},r.onCloseButtonClick=function(){pageflow.hideText.deactivate(),r.props.onLeaveBackground&&r.props.onLeaveBackground()},r}return L(t,e),A(t,[{key:"render",value:function(){var e=this.props.page;return F.a.createElement(H,{className:V()({unplayed:!this.props.textHasBeenHidden},"hide_content_with_text")},F.a.createElement(Yr,{onClick:this.onCloseButtonClick}),F.a.createElement(Br,{additionalButtons:this.props.additionalMenuBarButtons,onAdditionalButtonClick:this.props.onAdditionalButtonClick,qualityMenuButtonTitle:this.props.qualityMenuButtonTitle,qualityMenuItems:this.props.qualityMenuItems,onQualityMenuItemClick:this.props.onQualityMenuItemClick,hiddenOnPhone:this.props.textHasBeenHidden&&!this.props.textIsHidden}),F.a.createElement(q,{pageHasPlayerControls:!0},F.a.createElement("div",{className:"uncropped_media_wrapper"},this.props.children),F.a.createElement(Nn,{page:e})),F.a.createElement(Mn,null,F.a.createElement(qr,{playButtonTitle:"Starten",playButtonIconName:this.props.playButtonIconName,controlBarText:e.controlBarText||this.props.defaultControlBarText,onPlayButtonClick:this.onPlayButtonClick,infoBox:{title:e.additionalTitle,description:e.additionalDescription}}),F.a.createElement(Fn,null,F.a.createElement(Vn,{page:e}),F.a.createElement(Hn,{page:e}))))}}]),t}(F.a.Component),xc=An(te({textIsHidden:function(e){return e.hideText.isActive},textHasBeenHidden:function(e){return e.hideText.hasBeenActive}}))(_c),kc="HIDE_TEXT_ACTIVATE",Pc="HIDE_TEXT_DEACTIVATE";var Sc=Ee.a.mark(jc);function jc(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(Pc,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(cn());case 2:if(!e.sent){e.next=5;break}return e.next=5,Object(De.call)(Tc);case 5:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),Sc)}function Tc(){pageflow.events.trigger("scroll_indicator:enable")}var Ac={name:"interactivePageBackground",saga:jc};function Ic(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mc=new function(){var e=[];this.register=function(t,n){var r=n.component,o=n.reduxModules,i=void 0===o?[]:o,a=Ic(n,["component","reduxModules"]);r||s("Requires component option to be present"),Array.isArray(i)||s("Expected reduxModules option to be an array.");var c=[],u=i.reduce((function(e,t){return"object"==typeof t&&3==new Set(Object.keys(t).concat(["name","reducers","saga"])).size||s("Expected redux module to be object with name, reducers and saga properties at most."),t.reducers&&"object"!=typeof t.reducers&&s("Expected reducers property of ".concat(t.name," reduxModule to be object.")),t.saga&&c.push(t.saga),Nc({},e,{},t.reducers)}),{});function s(e){throw new Error("".concat(e," Check registerPageType call of ").concat(t," page type."))}e.push(Nc({name:t,component:r,reducer:Object.keys(u).length?Object(ce.c)(u):void 0,saga:Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.map((function(e){return e()}));case 2:case"end":return e.stop()}}),e)}))},a))},this.forEach=function(){return e.forEach.apply(e,arguments)},this.reduce=function(){return e.reduce.apply(e,arguments)},this.findByName=function(t){return e.find((function(e){var n=e.name;e.component;return n==t}))}},Dc=Mc.register;function Rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bc=new function(){var e=[];this.register=function(t,n){var r=n.component;e.push({name:t,component:r})},this.findByName=function(t){var n=e.find((function(e){return e.name==t}));if(!n)throw'Widget type with name "'.concat(t,'" not found.');return n},this.forEach=function(){e.forEach.apply(e,arguments)}},Fc=Bc.register,Uc=n(172),Vc={muted:!1},Hc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Da:return{muted:!0};case Ra:return{muted:!1};default:return e}};function qc(e){var t=e.t,n=e.muted,r=e.unmute;return n?F.a.createElement("div",{className:"background_media_unmute_button"},F.a.createElement("a",{title:t("pageflow.public.mute_off"),onClick:function(){new pageflow.AudioPlayer([{src:pageflow.assetUrls.unmuteSound,type:"audio/mpeg"}],{codecs:["mp3"]}).play(),r()},href:"#"})):null}var Wc={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||(n.on("background_media:mute",(function(e){return r({type:Da})})),n.on("background_media:unmute",(function(e){return r(La())})))},createReducers:function(){return{backgroundMedia:Hc}},createSaga:function(e){var t=e.backgroundMedia;return(Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(Ra,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return t.unmute()}));case 2:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),e)})))}};function Gc(e){return e.cookieNotice.visible}function zc(e){return e.site.privacy_link_url}var Yc="COOKIE_NOTICE_REQUEST",Xc="COOKIE_NOTICE_DISMISS";function $c(){return{type:Xc}}function Kc(e){var t=e.isCookieNoticeVisible,n=e.editing,r=e.t,o=e.dismiss;return t||n?F.a.createElement("div",{className:"cookie_notice_bar"},F.a.createElement("div",{className:"cookie_notice_bar-content"},function(e){var t=e.privacyLinkUrl,n=e.t,r=e.locale,o=n("pageflow.public.cookie_notice_html",{privacyLinkUrl:"".concat(t,"?lang=").concat(r)});return F.a.createElement("span",{className:"cookie_notice_bar-text",dangerouslySetInnerHTML:{__html:o}})}(e),F.a.createElement("a",{className:"cookie_notice_bar-dismiss",onClick:o},r("pageflow.public.dismiss_cookie_notice")))):F.a.createElement("noscript",null)}function Qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zc=function(e){var t={dismissed:e.hasBeenDismissed,visible:!1};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Yc:return e.dismissed?e:Jc({},e,{visible:!0});case Xc:return{dismissed:!0,visible:!1};default:return e}}},eu={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||n.on("cookie_notice:request",(function(){return r({type:Yc})}))},createReducers:function(e){var t=e.cookies;return{cookieNotice:Zc({hasBeenDismissed:t&&t.hasItem("cookie_notice_dismissed")})}},createSaga:function(e){var t=e.widgetsApi,n=e.cookies;return(Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(Yc,Ee.a.mark((function e(){var n;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.select)(Gc);case 2:if(!e.sent){e.next=10;break}return e.next=5,Object(De.cps)(tu,t);case 5:return n=e.sent,e.next=8,Object(De.take)(Xc);case 8:return e.next=10,Object(De.call)(n);case 10:case"end":return e.stop()}}),e)})));case 2:return e.next=4,Object(Re.takeEvery)(Xc,Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){n.setItem("cookie_notice_dismissed",!0)}));case 2:case"end":return e.stop()}}),e)})));case 4:case"end":return e.stop()}}),e)})))}};function tu(e,t){e.use({name:"cookie_notice_bar_visible",insteadOf:"cookie_notice_bar"},(function(e){return t(null,e)}))}var nu={createReducers:function(e){var t=e.enabledFeatureNames;return{features:function(){return t}}}},ru="SITE_INIT";var ou=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ru:return t.payload.site;default:return e}},iu={init:function(e){var t=e.site;(0,e.dispatch)(function(e){return{type:ru,payload:{site:e}}}(t))},createReducers:function(){return{site:ou}}},au={init:function(e){var t=e.storylines,n=e.dispatch;Vt({collection:t,collectionName:"storylines",dispatch:n,attributes:["id"],includeConfiguration:!0})},createReducers:function(){return{storylines:Ae("storylines")}}},cu={init:function(e){var t=e.chapters,n=e.dispatch;Vt({collection:t,collectionName:"chapters",dispatch:n,attributes:["id","title","position","storyline_id"]})},createReducers:function(){return{chapters:Ae("chapters")}}},uu="PAGE_TYPES_INIT";var su=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case uu:return t.payload.pageTypes;default:return e}},lu={createReducers:function(){return{pageTypes:su}},init:function(e){var t=e.pageTypesSeed;(0,e.dispatch)(function(e){var t=e.pageTypes;return{type:uu,payload:{pageTypes:t}}}({pageTypes:X.deep(t)}))}},fu="CURRENT_PAGE_CHANGE";var pu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case fu:return t.payload.id;default:return e}},du=function(e,t){e.on("page:change",(function(e){return t(function(e){var t=e.id;return{type:fu,payload:{id:t}}}({id:e.getPermaId()}))}))},hu={init:function(e){var t=e.isServerSide,n=e.events,r=e.dispatch;t||du(n,r)},createReducers:function(){return{currentPageId:pu}}},vu={init:function(e){var t=e.files,n=e.dispatch;Object.keys(t).forEach((function(e){Vt({collection:t[e],collectionName:X(e),dispatch:n,idAttribute:"perma_id",attributes:["id","perma_id","basename","variants","is_ready","parent_file_id","parent_file_model_type","width","height","duration_in_ms","rights","created_at"],includeConfiguration:!0})}))},createReducers:function(e){var t=e.files,n=e.fileUrlTemplates,r=void 0===n?{}:n,o=e.modelTypes,i=void 0===o?{}:o;return r=X.keys(r),i=X.keys(i),{files:Object(ce.c)(Object.keys(t).reduce((function(e,t){return e[t=X(t)]=Ae(t,{idAttribute:"permaId"}),e}),{})),fileUrlTemplates:function(e){return r},modelTypes:function(e){return i}}}},gu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x:return t.payload.settings;default:return e}},yu={init:function(e){var t=e.isServerSide,n=e.settings,r=e.dispatch;t||(r(P({settings:n.toJSON()})),n.on("change",(function(){return r(P({settings:n.toJSON()}))})))},createReducers:function(){return{settings:gu}},createSaga:function(e){var t=e.settings;return(Ee.a.mark((function e(){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Re.takeEvery)(k,Ee.a.mark((function e(n){return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)([t,t.set],n.payload.property,n.payload.value);case 2:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),e)})))}};var mu="I18N_INIT";var bu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case mu:return{locale:t.payload.locale};default:return e}},wu={createReducers:function(){return{i18n:bu}},init:function(e){var t=e.locale;(0,e.dispatch)(function(e){var t=e.locale;return{type:mu,payload:{locale:t}}}({locale:t}))}},Ou="ENTRY_UPDATE",Eu="ENTRY_READY";function _u(e){var t=e.entry;return{type:Ou,payload:{entry:t}}}function xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ou:return ku({},e,{},t.payload.entry);case Eu:return ku({},e,{isReady:!0});default:return e}},Su={init:function(e){var t=e.entry,n=e.dispatch,r=e.events;e.isServerSide||r.once("ready",(function(){return n({type:Eu})})),Ut.a.Model&&t instanceof Ut.a.Model?function(e){var t=e.entry,n=e.dispatch;ju({entry:t,dispatch:n}),t.metadata.on("change:title",(function(){ju({entry:t,dispatch:n})}))}({entry:t,dispatch:n}):function(e){var t=e.entry;(0,e.dispatch)(_u({entry:{slug:t.slug,title:t.title,publishedAt:t.published_at}}))}({entry:t,dispatch:n})},createReducers:function(){return{entry:Pu}}};function ju(e){var t=e.entry;(0,e.dispatch)(_u({entry:{slug:t.get("slug"),title:t.metadata.get("title")||t.get("entry_title"),publishedAt:null}}))}var Tu={init:function(e){var t=e.isServerSide,n=e.window,r=e.getState,o=e.dispatch;t||n.addEventListener("keydown",(function(e){var t=r().currentPageId;32==e.keyCode?o(function(e){var t=e.currentPageId;return _(ba,t)}({currentPageId:t})):9==e.keyCode&&o(function(e){var t=e.currentPageId;return _(wa,t)}({currentPageId:t}))}))}},Au=function(e,t){e.on("activate",(function(e){return t({type:kc})})),e.on("deactivate",(function(e){return t({type:Pc})}))};function Iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iu(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nu={isActive:!1,hasBeenActive:!1},Mu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case kc:return{isActive:!0,hasBeenActive:!0};case Pc:return Cu({},e,{isActive:!1});case fu:return Cu({},e,{hasBeenActive:!1});default:return e}},Du={init:function(e){var t=e.isServerSide,n=e.hideText,r=e.dispatch;t||Au(n,r)},createReducers:function(){return{hideText:Mu}}},Ru={init:function(e){var t=e.widgets,n=e.dispatch;Vt({collection:t,collectionName:"widgets",dispatch:n,attributes:["role","type_name","editing"],includeConfiguration:!0})},createReducers:function(){return{widgets:Ae("widgets",{idAttribute:"role"})}}};var Lu="WIDGETS_LOAD";var Bu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Lu:return t.payload.widgets;default:return e}},Fu={init:function(e){var t=e.isServerSide,n=e.events,r=e.widgetsApi,o=e.dispatch;function i(){o(function(e){var t=e.widgets;return{type:Lu,payload:{widgets:t}}}({widgets:{classicPlayerControls:r.isPresent("classic_player_controls"),slimPlayerControls:r.isPresent("slim_player_controls")}}))}t||(n.on("widgets:update",i),i())},createReducers:function(){return{widgetPresence:Bu}}},Uu="THEME_INIT";var Vu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Uu:return t.payload;default:return e}},Hu={createReducers:function(){return{theme:Vu}},init:function(e){var t,n=e.dispatch;if(!e.isServerSide){var r=document.getElementById("theme_probe-main_color");n((t={mainColor:window.getComputedStyle(r)["background-color"]},{type:Uu,payload:t}))}}};function qu(e){return e.consent.uiVisible}function Wu(e){return e.consent.requestedVendors}var Gu=function(e){return React.createElement(ar,Object.assign({},e,{viewBoxLeft:60,viewBoxTop:170,viewBoxWidth:90,viewBoxHeight:157}),React.createElement("path",{fill:"currentColor",d:"m 150.00015,296.99993 a 50,50 0 0 0 50.00004,-50.00005 50,50 0 0 0 -50.00004,-50.00004 H 50.000048 A 50,50 0 0 0 0,246.99988 50,50 0 0 0 50.000048,296.99993 Z"}),React.createElement("circle",{cx:"-150.0002",cy:"-246.99979",fill:"#fff",r:"40",transform:"scale(-1)"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"M 87,227 50,264 34,246"}))},zu=function(e){return React.createElement(ar,Object.assign({},e,{viewBoxLeft:60,viewBoxTop:170,viewBoxWidth:90,viewBoxHeight:157}),React.createElement("path",{fill:"currentColor",d:"M 188.97656 744.56641 A 188.97638 188.97638 0 0 0 0 933.54297 A 188.97638 188.97638 0 0 0 188.97656 1122.5195 L 566.92969 1122.5195 A 188.97638 188.97638 0 0 0 755.90625 933.54297 A 188.97638 188.97638 0 0 0 566.92969 744.56641 L 188.97656 744.56641 z ",transform:"scale(0.26458333)"}),React.createElement("circle",{id:"path3721-7",cx:"50",cy:"247",fill:"#ffffff",r:"40"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"m 110.10252,271.89748 49.79539,-49.79494"}),React.createElement("path",{fillOpacity:"0",stroke:"#fff",strokeWidth:"6",d:"M 159.89746,271.89748 110.10252,222.10209"}))},Yu=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={checked:e.defaultChecked},n.handleClick=n.onClick.bind(N(n)),n}return L(t,e),A(t,[{key:"onClick",value:function(){var e=!this.state.checked;this.setState({checked:e}),this.props.onChange({target:{checked:e}})}},{key:"render",value:function(){var e=this.state.checked,t=e?Gu:zu;return F.a.createElement("button",{id:this.props.id,className:this.props.className,role:"switch","aria-checked":e,onClick:this.handleClick},F.a.createElement(t,{width:50,height:35}))}}]),t}(F.a.Component),Xu=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={},n.handleVendorInfoClick=n.onVendorInfoClick.bind(N(n)),n}return L(t,e),A(t,[{key:"onVendorInfoClick",value:function(e){this.setState(Object(a.a)({},e,!this.state[e]))}},{key:"render",value:function(){return F.a.createElement("div",{className:"consent_vendor_list"},this.renderVendors())}},{key:"renderVendors",value:function(){var e=this;return this.props.vendors.length?this.props.vendors.map((function(t){var n="consent_vendor_list-vendor_".concat(t.name);return F.a.createElement("div",{key:n,className:"consent_vendor_list-vendor"},F.a.createElement("label",{htmlFor:n},t.displayName),F.a.createElement(Yu,{id:n,className:"consent_vendor_list-toggle",defaultChecked:"accepted"===t.state,onChange:function(n){return e.props.onVendorInputChange(t.name,n)}}),F.a.createElement("button",{className:"consent_vendor_list-expand_vendor",title:e.props.t("pageflow.public.consent_expand_vendor"),onClick:function(){return e.handleVendorInfoClick(t.name)}},F.a.createElement(ur,{width:20,height:20})),e.renderVendorDescription(t))})):F.a.createElement("div",{className:"consent_vendor_list-blank"},this.props.t("pageflow.public.consent_no_vendors"))}},{key:"renderVendorDescription",value:function(e){return this.state[e.name]?F.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.description}}):null}}]),t}(F.a.Component),$u="CONSENT_REQUEST",Ku="CONSENT_DENY_ALL",Qu="CONSENT_ACCEPT_ALL",Ju="CONSENT_SAVE";function Zu(e){var t=e.vendors;return{type:$u,payload:{vendors:t}}}function es(){return{type:Ku}}function ts(){return{type:Qu}}function ns(e){return{type:Ju,payload:e}}function rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var is=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={checked:{}},n.handleSaveButtonClick=n.onSaveButtonClick.bind(N(n)),n.handleAcceptAllButtonClick=n.onAcceptAllButtonClick.bind(N(n)),n.handleDenyAllAllButtonClick=n.onDenyAllButtonClick.bind(N(n)),n.handleVendorInputChange=n.onVendorInputChange.bind(N(n)),n}return L(t,e),A(t,[{key:"onSaveButtonClick",value:function(){var e=this;if(!this.props.editing){var t=this.props.requestedVendors.reduce((function(t,n){var r=n.name;return os({},t,Object(a.a)({},r,e.state.checked[r]||!1))}),{});this.props.save(t)}}},{key:"onAcceptAllButtonClick",value:function(){this.props.editing||this.props.acceptAll()}},{key:"onDenyAllButtonClick",value:function(){this.props.editing||this.props.denyAll()}},{key:"onVendorInputChange",value:function(e,t){this.setState({checked:os({},this.state.checked,Object(a.a)({},e,t.target.checked))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.editing,r=t.t,o=t.requestedVendors;return t.visible||n?F.a.createElement("div",{className:V()("consent_bar",{"consent_bar-expanded":this.state.showVendorBox})},F.a.createElement("div",{className:"consent_bar-content"},function(e){var t=e.privacyLinkUrl,n=e.t,r=e.locale,o=e.requestedVendors.map((function(e){return e.name})).join(","),i=n("pageflow.public.consent_prompt_html",{privacyLinkUrl:"".concat(t,"?lang=").concat(r,"&vendors=").concat(o,"#consent")});return F.a.createElement("span",{className:"consent_bar-text",dangerouslySetInnerHTML:{__html:i}})}(this.props),F.a.createElement("div",{className:"consent_bar-vendor_box"},F.a.createElement("h3",null,r("pageflow.public.consent_settings")),F.a.createElement(Xu,{vendors:o,t:r,onVendorInputChange:this.handleVendorInputChange}),F.a.createElement("button",{className:"consent_bar-save",onClick:this.handleSaveButtonClick},r("pageflow.public.consent_save"))),F.a.createElement("div",{className:"consent_bar-buttons"},F.a.createElement("button",{className:"consent_bar-configure",onClick:function(){return e.setState({showVendorBox:!e.state.showVendorBox})}},F.a.createElement(cr,{width:10,height:10}),r("pageflow.public.consent_configure")),F.a.createElement("div",{className:"consent_bar-decision_buttons"},F.a.createElement("button",{className:"consent_bar-deny_all",onClick:this.handleDenyAllAllButtonClick},r("pageflow.public.consent_deny_all")),F.a.createElement("button",{className:"consent_bar-accept_all",onClick:this.handleAcceptAllButtonClick},r("pageflow.public.consent_accept_all")))))):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function as(e){var t=e&&e.match(/vendors=([^&]+)/);return t?t[1].split(","):[]}var cs={createReducers:function(){return{consent:(e={uiVisible:!1,requestedVendors:[]},function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case $u:return{requestedVendors:n.payload.vendors,uiVisible:!0};case Qu:case Ku:case Ju:return{uiVisible:!1};default:return t}})};var e},createSaga:function(e){e.widgetsApi;var t=e.consent;return(Ee.a.mark((function e(){var n,r,o,i,a;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(De.call)((function(){return t.requested()}));case 2:return n=e.sent,r=n.acceptAll,o=n.denyAll,i=n.save,a=n.vendors,e.next=9,Object(De.put)(Zu({vendors:a}));case 9:return e.next=11,Object(Re.takeEvery)(Qu,(function(){r()}));case 11:return e.next=13,Object(Re.takeEvery)(Ku,(function(){o()}));case 13:return e.next=15,Object(Re.takeEvery)(Ju,(function(e){i(e.payload)}));case 15:case"end":return e.stop()}}),e)})))}};function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ss=function(e){var t=!!e.storylines,n=!e.settings,r=e.seed,o=t?e:r,i={isServerSide:n,locale:r.locale,entry:o.entry,enabledFeatureNames:r.enabled_feature_names,fileUrlTemplates:r.file_url_templates,modelTypes:r.file_model_types,pageTypesSeed:r.page_types,pageTypes:Mc,site:r.site,files:o.files||{},storylines:o.storylines,chapters:o.chapters,pages:o.pages,widgets:t?e.entry.widgets:r.widgets,cookies:e.cookies,hideText:e.hideText,events:e.events,settings:e.settings,widgetsApi:e.widgets,backgroundMedia:e.backgroundMedia,consent:e.consent,window:n?null:window},c=Object(Uc.a)([Wc,eu,nu,wu,iu,Su,hu,au,cu,Tn,vu,yu,Du,Ru,Fu,lu,Tu,Hu,cs],i);return n||(Mc.forEach((function(t){return e.pageType.register(t.name,function(e){return Pn(_n(e),e.mixin||{})}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{Component:t.component,store:c})))})),Bc.forEach((function(t){var n=t.name,r=t.component;return e.widgetTypes.register(n,function(e,t){return{enhance:function(n){Ut.a.render(React.createElement(He,{store:t},React.createElement(e,null)),n[0])}}}(r,c))}))),c},ls=Mt("pages"),fs=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentWillMount",value:function(){this.store=ss({seed:this.props.resolverSeed}),this.pageComponent=Mc.findByName(this.props.pageType).component}},{key:"render",value:function(e){var t=this.pageComponent;return F.a.createElement(He,{store:this.store},F.a.createElement(ls,{itemId:this.props.pageId},F.a.createElement(t,null)))}}]),t}(F.a.Component),ps=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentWillMount",value:function(){this.store=ss({seed:this.props.resolverSeed}),this.widgetComponent=Bc.findByName(this.props.widgetTypeName).component}},{key:"render",value:function(e){var t=this.widgetComponent;return F.a.createElement(He,{store:this.store},F.a.createElement(t,null))}}]),t}(F.a.Component),ds=Mt("pages"),hs=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"componentWillMount",value:function(){this.store=ss({seed:this.props.resolverSeed})}},{key:"render",value:function(e){return F.a.createElement(He,{store:this.store},F.a.createElement(ds,{itemId:this.props.pageId},F.a.createElement(Ji,null)))}}]),t}(F.a.Component);function vs(e){var t=e.page.audioPlayerControlsVariant;return React.createElement(di,{className:"audio_page supports_text_position_center",page:e.page,file:e.audioFile,playerState:e.playerState,playerActions:e.playerActions,controlBarText:e.t("pageflow.public.start_audio"),playerControlsComponent:gs(t),dynamicPageScrollerMargin:"waveform"==t,autoplayWhenBackgroundMediaMuted:!1},React.createElement(Ji,null),React.createElement(Xi,{playbackMode:!1===e.page.autoplay?"manual":"autoplay",playerDescription:"Audio Page Player"},React.createElement(Ni,{file:e.audioFile,playerState:e.playerState,playerActions:e.playerActions,textTrackPosition:ys(t)})))}function gs(e){return"waveform"==e?ya:qr}function ys(e){if("waveform"==e)return"top"}function ms(e){var t=e.page;return React.createElement(H,{className:"supports_text_position_center"},React.createElement(Zi,{page:t}),React.createElement(Mn,null,React.createElement(Fn,null,React.createElement(Vn,{page:t}),React.createElement(ea,{page:t}),React.createElement(Hn,{page:t}))))}var bs=["auto","4k","fullhd","medium"];function ws(e){return React.createElement(di,{className:"video_page supports_text_position_center",page:e.page,file:e.videoFile,qualities:bs,playerState:e.playerState,playerActions:e.playerActions,controlBarText:e.t("pageflow.public.start_video"),autoplayWhenBackgroundMediaMuted:!0},React.createElement(Xi,{playbackMode:!1===e.page.autoplay?"manual":"autoplay",playerDescription:"Video Page Player"},React.createElement(Gi,{page:e.page,playerState:e.playerState,playerActions:e.playerActions,fit:e.page.contain?"contain":"smart_contain"})),React.createElement($i,{page:e.page}))}var Os={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#3b5159"},Es=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={fading:!1,hidden:!1},n}return L(t,e),A(t,[{key:"componentDidMount",value:function(){var e=this;PAGEFLOW_EDITOR?this.setState({hidden:!0}):this.fadeTimeout=setTimeout((function(){pageflow.ready.then((function(){e.setState({fading:!0}),e.hiddenTimeout=setTimeout((function(){e.setState({hidden:!0})}),1e3)}))}),1e3)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.fadeTimeout),clearTimeout(this.hiddenTimeout)}},{key:"render",value:function(){var e=this.props.editing,t=this.state,n=t.hidden,r=t.fading;return e||!n?F.a.createElement("div",{className:V()("loading_spinner",{fade:!e&&r}),onTouchMove:_s,style:Os},F.a.createElement("div",{className:"loading_inner"},F.a.createElement("div",{className:"left_circle"}),F.a.createElement("div",{className:"right_circle"}),F.a.createElement("div",{className:"loading_spinner_inner"},F.a.createElement("div",null)))):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function _s(e){e.preventDefault()}var xs=function(e){function t(e){var n;return j(this,t),(n=M(this,D(t).call(this,e))).state={hidden:!1,animating:!1},n}return L(t,e),A(t,[{key:"componentDidMount",value:function(){var e=this;PAGEFLOW_EDITOR?this.setState({hidden:!0,animating:!0}):(this.setState({animating:!0}),pageflow.delayedStart.waitFor((function(t){e.resolveDelayedStart=t})))}},{key:"hideOrLoop",value:function(e){var t=this;e.target===e.currentTarget&&(PAGEFLOW_EDITOR?(this.setState({animating:!1}),setTimeout((function(){t.setState({animating:!0})}),1e3)):(this.setState({hidden:!0}),this.resolveDelayedStart()))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hiddenTimeout)}},{key:"render",value:function(){var e=this,t=this.props.editing,n=this.state,r=n.hidden,o=n.animating,i=Ss(this.props),a=F.a.createElement("div",{className:V()("media_loading_spinner-logo",{"media_loading_spinner-logo-invert":i})});return this.props.removeLogo&&(a=""),t||!r?F.a.createElement("div",{className:V()("media_loading_spinner",{"media_loading_spinner-fade":o},{"media_loading_spinner-invert":i}),onAnimationEnd:function(t){return e.hideOrLoop(t)},onTouchMove:ks,style:js(this.props)},a,F.a.createElement("div",{className:"media_loading_spinner-image",style:Ps(this.props)}),this.props.children):F.a.createElement("noscript",null)}}]),t}(F.a.Component);function ks(e){e.preventDefault()}function Ps(e){var t=e.firstPageBackgroundImageUrlMedium,n=e.firstPageBackgroundImageUrlLarge,r=e.backgroundImage,o=e.blurStrength,i=e.backgroundImageX,a=e.backgroundImageY,c={x:null!=i?i:50,y:null!=a?a:50},u=0===o?r?r.urls.large:n:r?r.urls.medium:t;if(u){var s={backgroundImage:'url("'.concat(u,'")'),filter:"blur("+o+"px)"};return r&&(s.backgroundPosition="".concat(c.x,"% ").concat(c.y,"%")),s}}function Ss(e){return e.backgroundImage||null!=e.invert?e.invert:e.firstPageInvert}function js(e){return{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:100,backgroundColor:Ss(e)?"#fff":"#000",animationDelay:void 0!==e.animationDuration?e.animationDuration+"s":void 0}}var Ts=Ct(te({editing:oo({role:"loading_spinner"}),firstPageInvert:nn("invert"),firstPageBackgroundImageUrlMedium:Jt({variant:"medium",page:tn()}),firstPageBackgroundImageUrlLarge:Jt({variant:"large",page:tn()}),backgroundImage:Xt("imageFiles",{id:no("customBackgroundImageId",{role:"loading_spinner"})}),backgroundImageX:no("customBackgroundImageX",{role:"loading_spinner"}),backgroundImageY:no("customBackgroundImageY",{role:"loading_spinner"}),invert:no("invert",{role:"loading_spinner"}),removeLogo:no("removeLogo",{role:"loading_spinner"}),blurStrength:no("blurStrength",{role:"loading_spinner"}),animationDuration:no("animationDuration",{role:"loading_spinner"})}))(xs);var As=function(e){function t(){return j(this,t),M(this,D(t).apply(this,arguments))}return L(t,e),A(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.subtitle,r=e.entryTitle,o=Ss(this.props),i=void 0!==this.props.animationDuration?this.props.animationDuration+"s":void 0;return F.a.createElement(Ts,null,F.a.createElement("div",{className:V()("media_loading_spinner-titles",{"media_loading_spinner-invert":o}),style:{animationDuration:i}},F.a.createElement("div",{className:"media_loading_spinner-title"},t||r),F.a.createElement("div",{className:"media_loading_spinner-subtitle"},n)))}}]),t}(F.a.Component);var Is=n(96),Cs=n.n(Is);function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Dc("background_image",{component:An(te({page:on()}))(ms),reduxModules:[Ec]}),Dc("video",{component:An(te({page:on(),videoFile:Xt("videoFiles",{id:rn("videoFileId")}),playerState:Xo(),t:Gr}),$({playerActions:$o()}))(ws),reduxModules:[Oc({hideControls:!0,autoplayWhenBackgroundMediaMuted:!0,playsInNativePlayer:zn("native video player")})]}),Dc("audio",{component:An(te({page:on(),audioFile:Xt("audioFiles",{id:rn("audioFileId")}),playerState:Xo(),t:Gr}),$({playerActions:$o()}))(vs),reduxModules:[Oc({retryOnUnmute:!0}),Ec]}),Fc("cookie_notice_bar",{component:Ct(te({isCookieNoticeVisible:Gc,privacyLinkUrl:zc,editing:oo({role:"cookie_notice"}),t:Gr,locale:zr}),{dismiss:$c})(Kc)}),Fc("consent_bar",{component:Ct(te({privacyLinkUrl:zc,editing:oo({role:"cookie_notice"}),t:Gr,locale:zr,requestedVendors:Wu,visible:qu}),{acceptAll:ts,denyAll:es,save:ns})(is)}),Fc("unmute_button",{component:Ct(te({t:Gr,muted:zo}),{unmute:La})(qc)}),Fc("classic_loading_spinner",{component:Ct(te({editing:oo({role:"loading_spinner"})}))(Es)}),Fc("title_loading_spinner",{component:Ct(te({firstPageInvert:nn("invert"),backgroundImage:Xt("imageFiles",{id:no("customBackgroundImageId",{role:"loading_spinner"})}),entryTitle:ui("title"),title:no("title",{role:"loading_spinner"}),subtitle:no("subtitle",{role:"loading_spinner"}),removeLogo:no("removeLogo",{role:"loading_spinner"}),invert:no("invert",{role:"loading_spinner"}),animationDuration:no("animationDuration",{role:"loading_spinner"})}))(As)}),Fc("media_loading_spinner",{component:Ts}),Cs.a.events&&Cs.a.events.on("seed:loaded",(function(){return ss(Cs.a)}));t.default={components:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ConsentSettings:function(e){var t=e.consent,n=e.t,r=e.queryString,o=t.relevantVendors({include:as(r)});return F.a.createElement("div",null,F.a.createElement(Xu,{vendors:o,t:n,onVendorInputChange:function(e,n){n.target.checked?t.accept(e):t.deny(e)}}))},MediaPageBackground:Zi,PageWithInteractiveBackground:xc},o),actions:r,selectors:i,registerPageType:Dc,registerPageTypeWithDefaultBackground:function(e,t){Dc(e,{component:Ji,selectTargetElement:function(e){return e.find(".page_background_asset")[0]},mixin:Lc({scroller:!0},t),reduxModules:[Ec]})},registerWidgetType:Fc,mediaReduxModule:Oc,mediaPageBackgroundReduxModule:Ec,pageWithInteractiveBackgroundReduxModule:Ac,iconMapping:lr,SvgIcon:ar,classNames:V.a,connect:Ct,connectInPage:An,combineReducers:ce.c,combine:$,ServerSidePage:fs,ServerSideWidget:ps,ServerSidePageBackgroundAsset:hs}}]).default;
|