/** vim: et:ts=4:sw=4:sts=4
 * @license RequireJS 2.1.22 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */

/*!
 * jQuery JavaScript Library v2.1.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-04-28T16:01Z
 */

/*!
 * Sizzle CSS Selector Engine v2.2.0-pre
 * http://sizzlejs.com/
 *
 * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-12-16
 */

/*!
 * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2013 Klaus Hartl
 * Released under the MIT license
 */

/*!
 * Modernizr v2.8.3
 * www.modernizr.com
 *
 * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
 * Available under the BSD and MIT licenses: www.modernizr.com/license/
 */

/*!    SWFObject v2.3.20130521 <http://github.com/swfobject/swfobject>
    is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/

/**
 * @license
 * lodash 3.10.1 (Custom Build) <https://lodash.com/>
 * Build: `lodash modern -d -o ./index.js`
 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 * Available under MIT license <https://lodash.com/license>
 */

/*!

 handlebars v1.3.0

Copyright (C) 2011 by Yehuda Katz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

@license
*/

//     Underscore.js 1.3.3
//     (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
//     Underscore is freely distributable under the MIT license.
//     Portions of Underscore are inspired or borrowed from Prototype,
//     Oliver Steele's Functional, and John Resig's Micro-Templating.
//     For all details and documentation:
//     http://documentcloud.github.com/underscore

/**
 * @license Handlebars hbs 0.4.0 - Alex Sexton, but Handlebars has it's own licensing junk
 *
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/require-cs for details on the plugin this was based off of
 */

//! moment.js
//! version : 2.14.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com

/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl
 * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT
 *  */

/*
 *	jQuery dotdotdot 1.7.4
 *
 *	Copyright (c) Fred Heusschen
 *	www.frebsite.nl
 *
 *	Plugin website:
 *	dotdotdot.frebsite.nl
 *
 *	Licensed under the MIT license.
 *	http://en.wikipedia.org/wiki/MIT_License
 */

// Device.js
// (c) 2014 Matthew Hudson
// Device.js is freely distributable under the MIT license.
// For all details and documentation:
// http://matthewhudson.me/projects/device.js/

/*! Copyright Twitter Inc. and other contributors. Licensed under MIT */

/*
 * Copyright 2012 The Polymer Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style
 * license that can be found in the LICENSE file.
 */

/**
	 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
	 *
	 * @codingstandard ftlabs-jsv2
	 * @copyright The Financial Times Limited [All Rights Reserved]
	 * @license MIT License (see LICENSE.txt)
	 */

/*! Hammer.JS - v2.0.7 - 2016-04-22
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */

/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
 * @version   3.0.2
 */

/*!
 * iScroll v4.1.9 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org
 * Released under MIT license, http://cubiq.org/license
 */

/*
         ============== DO NOT ALTER ANYTHING BELOW THIS LINE ! ============

         Adobe Visitor API for JavaScript version: 1.7.0
         Copyright 1996-2015 Adobe, Inc. All Rights Reserved
         More info available at http://www.omniture.com
        */

/*
         ============== DO NOT ALTER ANYTHING BELOW THIS LINE ! ===============

        AppMeasurement for JavaScript version: 1.6.4
        Copyright 1996-2016 Adobe, Inc. All Rights Reserved
        More info available at http://www.adobe.com/marketing-cloud.html
        */

/*!**********************************!*\
  !*** ./src/scripts/index.coffee ***!
  \**********************************/

/*! ./mixin */

/*! ./dependency-injector */

/*!**********************************!*\
  !*** ./src/scripts/mixin.coffee ***!
  \**********************************/

/*!************************************************!*\
  !*** ./src/scripts/dependency-injector.coffee ***!
  \************************************************/

/*! ./event-target */

/*!*****************************************!*\
  !*** ./src/scripts/event-target.coffee ***!
  \*****************************************/

/*! mi9-module-common */

/*! WeakMap */

/*! ./request-animation-frame */

/*!************************************!*\
  !*** external "mi9-module-common" ***!
  \************************************/

/*!**************************!*\
  !*** external "WeakMap" ***!
  \**************************/

/*!****************************************************!*\
  !*** ./src/scripts/request-animation-frame.coffee ***!
  \****************************************************/

/*! ./decorator */

/*! ./factory */

/*! ./registry */

/*! ./data-decorator */

/*! ./manager-decorator */

/*!**************************************!*\
  !*** ./src/scripts/decorator.coffee ***!
  \**************************************/

/*! jquery */

/*! mi9-event-target */

/*!*************************!*\
  !*** external "jquery" ***!
  \*************************/

/*!***********************************!*\
  !*** external "mi9-event-target" ***!
  \***********************************/

/*!************************************!*\
  !*** ./src/scripts/factory.coffee ***!
  \************************************/

/*!*************************************!*\
  !*** ./src/scripts/registry.coffee ***!
  \*************************************/

/*! implements */

/*!*****************************!*\
  !*** external "implements" ***!
  \*****************************/

/*!*******************************************!*\
  !*** ./src/scripts/data-decorator.coffee ***!
  \*******************************************/

/*!**********************************************!*\
  !*** ./src/scripts/manager-decorator.coffee ***!
  \**********************************************/

/*! lodash */

/*! devicejs */

/*! modernizr */

/*!*************************!*\
  !*** external "lodash" ***!
  \*************************/

/*!***************************!*\
  !*** external "devicejs" ***!
  \***************************/

/*!*************************************************!*\
  !*** ./bower_components/modernizr/modernizr.js ***!
  \*************************************************/

/*!
	 * Modernizr v2.8.3
	 * www.modernizr.com
	 *
	 * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
	 * Available under the BSD and MIT licenses: www.modernizr.com/license/
	 */

/*! ../styles/index */

/*! ./video-decorator */

/*!*******************************!*\
  !*** ./src/styles/index.styl ***!
  \*******************************/

/*!********************************************!*\
  !*** ./src/scripts/video-decorator.coffee ***!
  \********************************************/

/*! fastclick */

/*! ninemsn/portal/common/video */

/*! mi9-utils */

/*! mi9-decorator */

/*!****************************!*\
  !*** external "fastclick" ***!
  \****************************/

/*!**********************************************!*\
  !*** external "ninemsn/portal/common/video" ***!
  \**********************************************/

/*!****************************!*\
  !*** external "mi9-utils" ***!
  \****************************/

/*!********************************!*\
  !*** external "mi9-decorator" ***!
  \********************************/

/*! ../templates/ad */

/*!*******************************!*\
  !*** ./src/templates/ad.jade ***!
  \*******************************/

/*! ./~/jade/lib/runtime.js */

/*!*******************************!*\
  !*** ./~/jade/lib/runtime.js ***!
  \*******************************/

/*! fs */

/*!********************!*\
  !*** fs (ignored) ***!
  \********************/

/*! ./directional-link */

/*! ../templates/headline */

/*! ../templates/magnify-lens */

/*! ../templates/magnify */

/*! ../templates/module */

/*! ../templates/next-gallery */

/*! ../templates/page */

/*! ../templates/share */

/*! ../templates/slide-ad */

/*! ../templates/tags */

/*! ../templates/breadcrumbs */

/*! ../templates/slide-image */

/*! ../templates/slide-video */

/*! ../templates/thumbnails */

/*! ../templates/utilities */

/*!*********************************************!*\
  !*** ./src/scripts/directional-link.coffee ***!
  \*********************************************/

/*!*************************************!*\
  !*** ./src/templates/headline.jade ***!
  \*************************************/

/*!*****************************************!*\
  !*** ./src/templates/magnify-lens.jade ***!
  \*****************************************/

/*!************************************!*\
  !*** ./src/templates/magnify.jade ***!
  \************************************/

/*!***********************************!*\
  !*** ./src/templates/module.jade ***!
  \***********************************/

/*!*****************************************!*\
  !*** ./src/templates/next-gallery.jade ***!
  \*****************************************/

/*!*********************************!*\
  !*** ./src/templates/page.jade ***!
  \*********************************/

/*!**********************************!*\
  !*** ./src/templates/share.jade ***!
  \**********************************/

/*!*************************************!*\
  !*** ./src/templates/slide-ad.jade ***!
  \*************************************/

/*!*********************************!*\
  !*** ./src/templates/tags.jade ***!
  \*********************************/

/*!****************************************!*\
  !*** ./src/templates/breadcrumbs.jade ***!
  \****************************************/

/*!****************************************!*\
  !*** ./src/templates/slide-image.jade ***!
  \****************************************/

/*!****************************************!*\
  !*** ./src/templates/slide-video.jade ***!
  \****************************************/

/*!***************************************!*\
  !*** ./src/templates/thumbnails.jade ***!
  \***************************************/

/*!**************************************!*\
  !*** ./src/templates/utilities.jade ***!
  \**************************************/

/*! ./image-resizer */

/*!******************************************!*\
  !*** ./src/scripts/image-resizer.coffee ***!
  \******************************************/

/*! ./ad-decorator */

/*! ./google-ad-decorator */

/*! mi9-core-ads */

/*!*****************************************!*\
  !*** ./src/scripts/ad-decorator.coffee ***!
  \*****************************************/

/*!*****************************************************!*\
  !*** ./bower_components/mi9-core-ads/dist/index.js ***!
  \*****************************************************/

/*! version: 68ee864 - 26/4/2016 */

/*!************************************************!*\
  !*** ./src/scripts/google-ad-decorator.coffee ***!
  \************************************************/

/*! ../styles/index.styl */

/*! ./share-decorator */

/*!********************************************!*\
  !*** ./src/scripts/share-decorator.coffee ***!
  \********************************************/

/*! ./providers */

/*! ./providers/more-button */

/*!********************************************!*\
  !*** ./src/scripts/providers/index.coffee ***!
  \********************************************/

/*! ./email-provider */

/*! ./google-plus-provider */

/*! ./linkedin-provider */

/*! ./pinterest-provider */

/*! ./tumblr-provider */

/*! ./whats-app-provider */

/*! ./twitter-provider */

/*! ./facebook-provider */

/*! ./sms-provider */

/*!*****************************************************!*\
  !*** ./src/scripts/providers/email-provider.coffee ***!
  \*****************************************************/

/*! ./base-provider */

/*!****************************************************!*\
  !*** ./src/scripts/providers/base-provider.coffee ***!
  \****************************************************/

/*!***********************************************************!*\
  !*** ./src/scripts/providers/google-plus-provider.coffee ***!
  \***********************************************************/

/*!********************************************************!*\
  !*** ./src/scripts/providers/linkedin-provider.coffee ***!
  \********************************************************/

/*!*********************************************************!*\
  !*** ./src/scripts/providers/pinterest-provider.coffee ***!
  \*********************************************************/

/*!******************************************************!*\
  !*** ./src/scripts/providers/tumblr-provider.coffee ***!
  \******************************************************/

/*!*********************************************************!*\
  !*** ./src/scripts/providers/whats-app-provider.coffee ***!
  \*********************************************************/

/*!*******************************************************!*\
  !*** ./src/scripts/providers/twitter-provider.coffee ***!
  \*******************************************************/

/*!********************************************************!*\
  !*** ./src/scripts/providers/facebook-provider.coffee ***!
  \********************************************************/

/*!***************************************************!*\
  !*** ./src/scripts/providers/sms-provider.coffee ***!
  \***************************************************/

/*!**************************************************!*\
  !*** ./src/scripts/providers/more-button.coffee ***!
  \**************************************************/

/*! ./history */

/*!************************************!*\
  !*** ./src/scripts/history.coffee ***!
  \************************************/

/*! ./slides-decorator */

/*! ./headline-decorator */

/*! ./thumbnails-decorator */

/*! ./arrows-decorator */

/*! ./utilities-decorator */

/*! ./page-decorator */

/*! ./next-gallery-decorator */

/*! ./gallery-manager */

/*! ./data */

/*! ./layout-decorator */

/*! ./ads-injector */

/*! ./tracking-meta */

/*!*********************************************!*\
  !*** ./src/scripts/slides-decorator.coffee ***!
  \*********************************************/

/*! mi9-ads-common */

/*! mi9-gallery-common */

/*! ./slider */

/*! mi9-image-resizer */

/*! hammerjs */

/*! mi9-video-decorator */

/*!**************************************!*\
  !*** external "mi9-video-decorator" ***!
  \**************************************/

/*!*********************************!*\
  !*** external "mi9-ads-common" ***!
  \*********************************/

/*!*************************************!*\
  !*** external "mi9-gallery-common" ***!
  \*************************************/

/*!***********************************!*\
  !*** ./src/scripts/slider.coffee ***!
  \***********************************/

/*!***************************!*\
  !*** external "hammerjs" ***!
  \***************************/

/*!************************************!*\
  !*** external "mi9-image-resizer" ***!
  \************************************/

/*! mi9-ads */

/*!**************************!*\
  !*** external "mi9-ads" ***!
  \**************************/

/*!***********************************************!*\
  !*** ./src/scripts/headline-decorator.coffee ***!
  \***********************************************/

/*!*************************************************!*\
  !*** ./src/scripts/thumbnails-decorator.coffee ***!
  \*************************************************/

/*! ./magnify */

/*!************************************!*\
  !*** ./src/scripts/magnify.coffee ***!
  \************************************/

/*!*********************************************!*\
  !*** ./src/scripts/arrows-decorator.coffee ***!
  \*********************************************/

/*!************************************************!*\
  !*** ./src/scripts/utilities-decorator.coffee ***!
  \************************************************/

/*! twemoji */

/*!**************************!*\
  !*** external "twemoji" ***!
  \**************************/

/*!*******************************************!*\
  !*** ./src/scripts/page-decorator.coffee ***!
  \*******************************************/

/*! mi9-social-sharing */

/*!*************************************!*\
  !*** external "mi9-social-sharing" ***!
  \*************************************/

/*!***************************************************!*\
  !*** ./src/scripts/next-gallery-decorator.coffee ***!
  \***************************************************/

/*!********************************************!*\
  !*** ./src/scripts/gallery-manager.coffee ***!
  \********************************************/

/*!*********************************!*\
  !*** ./src/scripts/data.coffee ***!
  \*********************************/

/*! ./array-iterator */

/*! ./hooks */

/*!*******************************************!*\
  !*** ./src/scripts/array-iterator.coffee ***!
  \*******************************************/

/*!**********************************!*\
  !*** ./src/scripts/hooks.coffee ***!
  \**********************************/

/*! mi9-history */

/*!******************************!*\
  !*** external "mi9-history" ***!
  \******************************/

/*!******************************************!*\
  !*** ./src/scripts/tracking-meta.coffee ***!
  \******************************************/

/*!*****************************************!*\
  !*** ./src/scripts/ads-injector.coffee ***!
  \*****************************************/

/*!*********************************************!*\
  !*** ./src/scripts/layout-decorator.coffee ***!
  \*********************************************/

/*!**************************!*\
  !*** ./src/index.coffee ***!
  \**************************/

/*! ./templates/partials/gallery-slide-massrelevance */

/*! ./templates/partials/massrelevance-gallery-thumbnails */

/*! ./templates/partials/massrelevance-gallery-utility-top */

/*! ./templates/massrelevance-gallery */

/*!*****************************************************************!*\
  !*** ./src/templates/partials/gallery-slide-massrelevance.jade ***!
  \*****************************************************************/

/*!**********************************************************************!*\
  !*** ./src/templates/partials/massrelevance-gallery-thumbnails.jade ***!
  \**********************************************************************/

/*!***********************************************************************!*\
  !*** ./src/templates/partials/massrelevance-gallery-utility-top.jade ***!
  \***********************************************************************/

/*!**************************************************!*\
  !*** ./src/templates/massrelevance-gallery.jade ***!
  \**************************************************/

/*! ./massrelevance-slides-decorator */

/*! ./massrelevance-thumbnails-decorator */

/*! ./massrelevance-utility-top-decorator */

/*! ./massrelevance-data */

/*!***************************!*\
  !*** ./styles/index.styl ***!
  \***************************/

/*!***************************************************!*\
  !*** ./src/massrelevance-slides-decorator.coffee ***!
  \***************************************************/

/*! mi9-gallery */

/*! mi9-lifestyle-massrelevance-common */

/*!******************************!*\
  !*** external "mi9-gallery" ***!
  \******************************/

/*!*****************************************************!*\
  !*** external "mi9-lifestyle-massrelevance-common" ***!
  \*****************************************************/

/*!*******************************************************!*\
  !*** ./src/massrelevance-thumbnails-decorator.coffee ***!
  \*******************************************************/

/*!********************************************************!*\
  !*** ./src/massrelevance-utility-top-decorator.coffee ***!
  \********************************************************/

/*!***************************************!*\
  !*** ./src/massrelevance-data.coffee ***!
  \***************************************/

/*! ./tracking */

/*!*************************************!*\
  !*** ./src/scripts/tracking.coffee ***!
  \*************************************/

/*! ninemsn/portal/common/tracking/config */

/*! ninemsn/portal/common/tracking */

/*! ninemsn/portal/common/eventBroker */

/*!********************************************************!*\
  !*** external "ninemsn/portal/common/tracking/config" ***!
  \********************************************************/

/*!*************************************************!*\
  !*** external "ninemsn/portal/common/tracking" ***!
  \*************************************************/

/*!****************************************************!*\
  !*** external "ninemsn/portal/common/eventBroker" ***!
  \****************************************************/

var requirejs,require,define;(function(global){function isFunction(e){return ostring.call(e)==="[object Function]"}function isArray(e){return ostring.call(e)==="[object Array]"}function each(e,t){if(e){var n;for(n=0;n<e.length;n+=1)if(e[n]&&t(e[n],n,e))break}}function eachReverse(e,t){if(e){var n;for(n=e.length-1;n>-1;n-=1)if(e[n]&&t(e[n],n,e))break}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,r){return t&&eachProp(t,function(t,i){if(n||!hasProp(e,i))r&&typeof t=="object"&&t&&!isArray(t)&&!isFunction(t)&&!(t instanceof RegExp)?(e[i]||(e[i]={}),mixin(e[i],t,n,r)):e[i]=t}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,r){var i=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return i.requireType=e,i.requireModules=r,n&&(i.originalError=n),i}function newContext(e){function m(e){var t,n;for(t=0;t<e.length;t++){n=e[t];if(n===".")e.splice(t,1),t-=1;else if(n===".."){if(t===0||t===1&&e[2]===".."||e[t-1]==="..")continue;t>0&&(e.splice(t-1,2),t-=2)}}}function g(e,t,n){var r,i,s,u,a,f,l,c,h,p,d,v,g=t&&t.split("/"),y=o.map,b=y&&y["*"];e&&(e=e.split("/"),l=e.length-1,o.nodeIdCompat&&jsSuffixRegExp.test(e[l])&&(e[l]=e[l].replace(jsSuffixRegExp,"")),e[0].charAt(0)==="."&&g&&(v=g.slice(0,g.length-1),e=v.concat(e)),m(e),e=e.join("/"));if(n&&y&&(g||b)){s=e.split("/");e:for(u=s.length;u>0;u-=1){f=s.slice(0,u).join("/");if(g)for(a=g.length;a>0;a-=1){i=getOwn(y,g.slice(0,a).join("/"));if(i){i=getOwn(i,f);if(i){c=i,h=u;break e}}}!p&&b&&getOwn(b,f)&&(p=getOwn(b,f),d=u)}!c&&p&&(c=p,h=d),c&&(s.splice(0,h,c),e=s.join("/"))}return r=getOwn(o.pkgs,e),r?r:e}function y(e){isBrowser&&each(scripts(),function(t){if(t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===r.contextName)return t.parentNode.removeChild(t),!0})}function b(e){var t=getOwn(o.paths,e);if(t&&isArray(t)&&t.length>1)return t.shift(),r.require.undef(e),r.makeRequire(null,{skipMap:!0})([e]),!0}function w(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function E(e,t,n,i){var s,o,u,a,f=null,l=t?t.name:null,h=e,p=!0,m="";return e||(p=!1,e="_@r"+(d+=1)),a=w(e),f=a[0],e=a[1],f&&(f=g(f,l,i),o=getOwn(c,f)),e&&(f?o&&o.normalize?m=o.normalize(e,function(e){return g(e,l,i)}):m=e.indexOf("!")===-1?g(e,l,i):e:(m=g(e,l,i),a=w(m),f=a[0],m=a[1],n=!0,s=r.nameToUrl(m))),u=f&&!o&&!n?"_unnormalized"+(v+=1):"",{prefix:f,name:m,parentMap:t,unnormalized:!!u,url:s,originalName:h,isDefine:p,id:(f?f+"!"+m:m)+u}}function S(e){var t=e.id,n=getOwn(u,t);return n||(n=u[t]=new r.Module(e)),n}function x(e,t,n){var r=e.id,i=getOwn(u,r);hasProp(c,r)&&(!i||i.defineEmitComplete)?t==="defined"&&n(c[r]):(i=S(e),i.error&&t==="error"?n(i.error):i.on(t,n))}function T(e,t){var n=e.requireModules,r=!1;t?t(e):(each(n,function(t){var n=getOwn(u,t);n&&(n.error=e,n.events.error&&(r=!0,n.emit("error",e)))}),r||req.onError(e))}function N(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];typeof t=="string"&&(r.defQueueMap[t]=!0),l.push(e)}),globalDefQueue=[])}function C(e){delete u[e],delete a[e]}function k(e,t,n){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,each(e.depMaps,function(r,i){var s=r.id,o=getOwn(u,s);o&&!e.depMatched[i]&&!n[s]&&(getOwn(t,s)?(e.defineDep(i,c[s]),e.check()):k(o,t,n))}),n[r]=!0)}function L(){var e,n,i=o.waitSeconds*1e3,u=i&&r.startTime+i<(new Date).getTime(),f=[],l=[],c=!1,h=!0;if(t)return;t=!0,eachProp(a,function(e){var t=e.map,r=t.id;if(!e.enabled)return;t.isDefine||l.push(e);if(!e.error)if(!e.inited&&u)b(r)?(n=!0,c=!0):(f.push(r),y(r));else if(!e.inited&&e.fetched&&t.isDefine){c=!0;if(!t.prefix)return h=!1}});if(u&&f.length)return e=makeError("timeout","Load timeout for modules: "+f,null,f),e.contextName=r.contextName,T(e);h&&each(l,function(e){k(e,{},{})}),(!u||n)&&c&&(isBrowser||isWebWorker)&&!s&&(s=setTimeout(function(){s=0,L()},50)),t=!1}function A(e){hasProp(c,e[0])||S(E(e[0],null,!0)).init(e[1],e[2])}function O(e,t,n,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(n,t,!1)}function M(e){var t=e.currentTarget||e.srcElement;return O(t,r.onScriptLoad,"load","onreadystatechange"),O(t,r.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function _(){var e;N();while(l.length){e=l.shift();if(e[0]===null)return T(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));A(e)}r.defQueueMap={}}var t,n,r,i,s,o={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},u={},a={},f={},l=[],c={},h={},p={},d=1,v=1;return i={require:function(e){return e.require?e.require:e.require=r.makeRequire(e.map)},exports:function(e){e.usingExports=!0;if(e.map.isDefine)return e.exports?c[e.map.id]=e.exports:e.exports=c[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(o.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},n=function(e){this.events=getOwn(f,e.id)||{},this.map=e,this.shim=getOwn(o.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},n.prototype={init:function(e,t,n,r){r=r||{};if(this.inited)return;this.factory=t,n?this.on("error",n):this.events.error&&(n=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check()},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(this.fetched)return;this.fetched=!0,r.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();r.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()}))},load:function(){var e=this.map.url;h[e]||(h[e]=!0,r.load(this.map.id,e))},check:function(){if(!this.enabled||this.enabling)return;var e,t,n=this.map.id,i=this.depExports,s=this.exports,o=this.factory;if(!this.inited)hasProp(r.defQueueMap,n)||this.fetch();else if(this.error)this.emit("error",this.error);else if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(isFunction(o)){try{s=r.execCb(n,o,i,s)}catch(u){e=u}this.map.isDefine&&s===undefined&&(t=this.module,t?s=t.exports:this.usingExports&&(s=this.exports));if(e){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",T(this.error=e);typeof console!="undefined"&&console.error?console.error(e):req.onError(e)}}else s=o;this.exports=s;if(this.map.isDefine&&!this.ignore){c[n]=s;if(req.onResourceLoad){var a=[];each(this.depMaps,function(e){a.push(e.normalizedMap||e)}),req.onResourceLoad(r,this.map,a)}}C(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}},callPlugin:function(){var e=this.map,t=e.id,n=E(e.prefix);this.depMaps.push(n),x(n,"defined",bind(this,function(n){var i,s,a,f=getOwn(p,this.map.id),l=this.map.name,c=this.map.parentMap?this.map.parentMap.name:null,h=r.makeRequire(e.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){n.normalize&&(l=n.normalize(l,function(e){return g(e,c,!0)})||""),s=E(e.prefix+"!"+l,this.map.parentMap),x(s,"defined",bind(this,function(e){this.map.normalizedMap=s,this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),a=getOwn(u,s.id),a&&(this.depMaps.push(s),this.events.error&&a.on("error",bind(this,function(e){this.emit("error",e)})),a.enable());return}if(f){this.map.url=r.nameToUrl(f),this.load();return}i=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),i.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(u,function(e){e.map.id.indexOf(t+"_unnormalized")===0&&C(e.map.id)}),T(e)}),i.fromText=bind(this,function(n,s){var u=e.name,a=E(u),f=useInteractive;s&&(n=s),f&&(useInteractive=!1),S(a),hasProp(o.config,t)&&(o.config[u]=o.config[t]);try{req.exec(n)}catch(l){return T(makeError("fromtexteval","fromText eval for "+t+" failed: "+l,l,[t]))}f&&(useInteractive=!0),this.depMaps.push(a),r.completeLoad(u),h([u],i)}),n.load(e.name,h,i,o)})),r.enable(n,this),this.pluginMaps[n.id]=n},enable:function(){a[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var n,s,o;if(typeof e=="string"){e=E(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,o=getOwn(i,e.id);if(o){this.depExports[t]=o(this);return}this.depCount+=1,x(e,"defined",bind(this,function(e){if(this.undefed)return;this.defineDep(t,e),this.check()})),this.errback?x(e,"error",bind(this,this.errback)):this.events.error&&x(e,"error",bind(this,function(e){this.emit("error",e)}))}n=e.id,s=u[n],!hasProp(i,n)&&s&&!s.enabled&&r.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(u,e.id);t&&!t.enabled&&r.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),e==="error"&&delete this.events[e]}},r={config:o,contextName:e,registry:u,defined:c,urlFetched:h,defQueue:l,defQueueMap:{},Module:n,makeModuleMap:E,nextTick:req.nextTick,onError:T,configure:function(e){e.baseUrl&&e.baseUrl.charAt(e.baseUrl.length-1)!=="/"&&(e.baseUrl+="/");var t=o.shim,n={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){n[t]?(o[t]||(o[t]={}),mixin(o[t],e,!0,!0)):o[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(p[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,n){isArray(e)&&(e={deps:e}),(e.exports||e.init)&&!e.exportsFn&&(e.exportsFn=r.makeShimExports(e)),t[n]=e}),o.shim=t),e.packages&&each(e.packages,function(e){var t,n;e=typeof e=="string"?{name:e}:e,n=e.name,t=e.location,t&&(o.paths[n]=e.location),o.pkgs[n]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(u,function(e,t){!e.inited&&!e.map.unnormalized&&(e.map=E(t,null,!0))}),(e.deps||e.callback)&&r.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,n){function s(o,a,f){var l,h,p;return n.enableBuildCallback&&a&&isFunction(a)&&(a.__requireJsBuild=!0),typeof o=="string"?isFunction(a)?T(makeError("requireargs","Invalid require call"),f):t&&hasProp(i,o)?i[o](u[t.id]):req.get?req.get(r,o,t,s):(h=E(o,t,!1,!0),l=h.id,hasProp(c,l)?c[l]:T(makeError("notloaded",'Module name "'+l+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(_(),r.nextTick(function(){_(),p=S(E(null,t)),p.skipMap=n.skipMap,p.init(o,a,f,{enabled:!0}),L()}),s)}return n=n||{},mixin(s,{isBrowser:isBrowser,toUrl:function(e){var n,i=e.lastIndexOf("."),s=e.split("/")[0],o=s==="."||s==="..";return i!==-1&&(!o||i>1)&&(n=e.substring(i,e.length),e=e.substring(0,i)),r.nameToUrl(g(e,t&&t.id,!0),n,!0)},defined:function(e){return hasProp(c,E(e,t,!1,!0).id)},specified:function(e){return e=E(e,t,!1,!0).id,hasProp(c,e)||hasProp(u,e)}}),t||(s.undef=function(e){N();var n=E(e,t,!0),i=getOwn(u,e);i.undefed=!0,y(e),delete c[e],delete h[n.url],delete f[e],eachReverse(l,function(t,n){t[0]===e&&l.splice(n,1)}),delete r.defQueueMap[e],i&&(i.events.defined&&(f[e]=i.events),C(e))}),s},enable:function(e){var t=getOwn(u,e.id);t&&S(e).enable()},completeLoad:function(e){var t,n,i,s=getOwn(o.shim,e)||{},a=s.exports;N();while(l.length){n=l.shift();if(n[0]===null){n[0]=e;if(t)break;t=!0}else n[0]===e&&(t=!0);A(n)}r.defQueueMap={},i=getOwn(u,e);if(!t&&!hasProp(c,e)&&i&&!i.inited){if(o.enforceDefine&&(!a||!getGlobal(a))){if(b(e))return;return T(makeError("nodefine","No define call for "+e,null,[e]))}A([e,s.deps||[],s.exportsFn])}L()},nameToUrl:function(e,t,n){var i,s,u,a,f,l,c,h=getOwn(o.pkgs,e);h&&(e=h),c=getOwn(p,e);if(c)return r.nameToUrl(c,t,n);if(req.jsExtRegExp.test(e))f=e+(t||"");else{i=o.paths,s=e.split("/");for(u=s.length;u>0;u-=1){a=s.slice(0,u).join("/"),l=getOwn(i,a);if(l){isArray(l)&&(l=l[0]),s.splice(0,u,l);break}}f=s.join("/"),f+=t||(/^data\:|\?/.test(f)||n?"":".js"),f=(f.charAt(0)==="/"||f.match(/^[\w\+\.\-]+:/)?"":o.baseUrl)+f}return o.urlArgs?f+((f.indexOf("?")===-1?"?":"&")+o.urlArgs):f},load:function(e,t){req.load(r,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if(e.type==="load"||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=M(e);r.completeLoad(t.id)}},onScriptError:function(e){var t=M(e);if(!b(t.id)){var n=[];return eachProp(u,function(e,r){r.indexOf("_@r")!==0&&each(e.depMaps,function(e){return e.id===t.id&&n.push(r),!0})}),T(makeError("scripterror",'Script error for "'+t.id+(n.length?'", needed by: '+n.join(", "):'"'),e,[t.id]))}}},r.require=r.makeRequire(),r}function getInteractiveScript(){return interactiveScript&&interactiveScript.readyState==="interactive"?interactiveScript:(eachReverse(scripts(),function(e){if(e.readyState==="interactive")return interactiveScript=e}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.1.22",commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,ap=Array.prototype,isBrowser=typeof window!="undefined"&&typeof navigator!="undefined"&&!!window.document,isWebWorker=!isBrowser&&typeof importScripts!="undefined",readyRegExp=isBrowser&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera=typeof opera!="undefined"&&opera.toString()==="[object Opera]",contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if(typeof define!="undefined")return;if(typeof requirejs!="undefined"){if(isFunction(requirejs))return;cfg=requirejs,requirejs=undefined}typeof require!="undefined"&&!isFunction(require)&&(cfg=require,require=undefined),req=requirejs=function(e,t,n,r){var i,s,o=defContextName;return!isArray(e)&&typeof e!="string"&&(s=e,isArray(t)?(e=t,t=n,n=r):e=[]),s&&s.context&&(o=s.context),i=getOwn(contexts,o),i||(i=contexts[o]=req.s.newContext(o)),s&&i.configure(s),i.require(e,t,n)},req.config=function(e){return req(e)},req.nextTick=typeof setTimeout!="undefined"?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,n){var r=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return r.type=e.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r},req.load=function(e,t,n){var r=e&&e.config||{},i;if(isBrowser)return i=req.createNode(r,t,n),r.onNodeCreated&&r.onNodeCreated(i,r,t,n),i.setAttribute("data-requirecontext",e.contextName),i.setAttribute("data-requiremodule",t),i.attachEvent&&!(i.attachEvent.toString&&i.attachEvent.toString().indexOf("[native code")<0)&&!isOpera?(useInteractive=!0,i.attachEvent("onreadystatechange",e.onScriptLoad)):(i.addEventListener("load",e.onScriptLoad,!1),i.addEventListener("error",e.onScriptError,!1)),i.src=n,currentlyAddingScript=i,baseElement?head.insertBefore(i,baseElement):head.appendChild(i),currentlyAddingScript=null,i;if(isWebWorker)try{importScripts(n),e.completeLoad(t)}catch(s){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+n,s,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){head||(head=e.parentNode),dataMain=e.getAttribute("data-main");if(dataMain)return mainScript=dataMain,cfg.baseUrl||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(e,t,n){var r,i;typeof e!="string"&&(n=t,t=e,e=null),isArray(t)||(n=t,t=null),!t&&isFunction(n)&&(t=[],n.length&&(n.toString().replace(commentRegExp,"").replace(cjsRequireRegExp,function(e,n){t.push(n)}),t=(n.length===1?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript(),r&&(e||(e=r.getAttribute("data-requiremodule")),i=contexts[r.getAttribute("data-requirecontext")])),i?(i.defQueue.push([e,t,n]),i.defQueueMap[e]=!0):globalDefQueue.push([e,t,n])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)})(this),define("requireLib",function(){}),function(e,t){typeof module=="object"&&typeof module.exports=="object"?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}(typeof window!="undefined"?window:this,function(window,noGlobal){function isArraylike(e){var t="length"in e&&e.length,n=jQuery.type(e);return n==="function"||jQuery.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function winnow(e,t,n){if(jQuery.isFunction(t))return jQuery.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return jQuery.grep(e,function(e){return e===t!==n});if(typeof t=="string"){if(risSimple.test(t))return jQuery.filter(t,e,n);t=jQuery.filter(t,e)}return jQuery.grep(e,function(e){return indexOf.call(t,e)>=0!==n})}function sibling(e,t){while((e=e[t])&&e.nodeType!==1);return e}function createOptions(e){var t=optionsCache[e]={};return jQuery.each(e.match(rnotwhite)||[],function(e,n){t[n]=!0}),t}function completed(){document.removeEventListener("DOMContentLoaded",completed,!1),window.removeEventListener("load",completed,!1),jQuery.ready()}function Data(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=jQuery.expando+Data.uid++}function dataAttr(e,t,n){var r;if(n===undefined&&e.nodeType===1){r="data-"+t.replace(rmultiDash,"-$1").toLowerCase(),n=e.getAttribute(r);if(typeof n=="string"){try{n=n==="true"?!0:n==="false"?!1:n==="null"?null:+n+""===n?+n:rbrace.test(n)?jQuery.parseJSON(n):n}catch(i){}data_user.set(e,t,n)}else n=undefined}return n}function returnTrue(){return!0}function returnFalse(){return!1}function safeActiveElement(){try{return document.activeElement}catch(e){}}function manipulationTarget(e,t){return jQuery.nodeName(e,"table")&&jQuery.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function disableScript(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function restoreScript(e){var t=rscriptTypeMasked.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function setGlobalEval(e,t){var n=0,r=e.length;for(;n<r;n++)data_priv.set(e[n],"globalEval",!t||data_priv.get(t[n],"globalEval"))}function cloneCopyEvent(e,t){var n,r,i,s,o,u,a,f;if(t.nodeType!==1)return;if(data_priv.hasData(e)){s=data_priv.access(e),o=data_priv.set(t,s),f=s.events;if(f){delete o.handle,o.events={};for(i in f)for(n=0,r=f[i].length;n<r;n++)jQuery.event.add(t,i,f[i][n])}}data_user.hasData(e)&&(u=data_user.access(e),a=jQuery.extend({},u),data_user.set(t,a))}function getAll(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&jQuery.nodeName(e,t)?jQuery.merge([e],n):n}function fixInput(e,t){var n=t.nodeName.toLowerCase();if(n==="input"&&rcheckableType.test(e.type))t.checked=e.checked;else if(n==="input"||n==="textarea")t.defaultValue=e.defaultValue}function actualDisplay(e,t){var n,r=jQuery(t.createElement(e)).appendTo(t.body),i=window.getDefaultComputedStyle&&(n=window.getDefaultComputedStyle(r[0]))?n.display:jQuery.css(r[0],"display");return r.detach(),i}function defaultDisplay(e){var t=document,n=elemdisplay[e];if(!n){n=actualDisplay(e,t);if(n==="none"||!n)iframe=(iframe||jQuery("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=iframe[0].contentDocument,t.write(),t.close(),n=actualDisplay(e,t),iframe.detach();elemdisplay[e]=n}return n}function curCSS(e,t,n){var r,i,s,o,u=e.style;return n=n||getStyles(e),n&&(o=n.getPropertyValue(t)||n[t]),n&&(o===""&&!jQuery.contains(e.ownerDocument,e)&&(o=jQuery.style(e,t)),rnumnonpx.test(o)&&rmargin.test(t)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),o!==undefined?o+"":o}function addGetHookIf(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function vendorPropName(e,t){if(t in e)return t;var n=t[0].toUpperCase()+t.slice(1),r=t,i=cssPrefixes.length;while(i--){t=cssPrefixes[i]+n;if(t in e)return t}return r}function setPositiveNumber(e,t,n){var r=rnumsplit.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function augmentWidthOrHeight(e,t,n,r,i){var s=n===(r?"border":"content")?4:t==="width"?1:0,o=0;for(;s<4;s+=2)n==="margin"&&(o+=jQuery.css(e,n+cssExpand[s],!0,i)),r?(n==="content"&&(o-=jQuery.css(e,"padding"+cssExpand[s],!0,i)),n!=="margin"&&(o-=jQuery.css(e,"border"+cssExpand[s]+"Width",!0,i))):(o+=jQuery.css(e,"padding"+cssExpand[s],!0,i),n!=="padding"&&(o+=jQuery.css(e,"border"+cssExpand[s]+"Width",!0,i)));return o}function getWidthOrHeight(e,t,n){var r=!0,i=t==="width"?e.offsetWidth:e.offsetHeight,s=getStyles(e),o=jQuery.css(e,"boxSizing",!1,s)==="border-box";if(i<=0||i==null){i=curCSS(e,t,s);if(i<0||i==null)i=e.style[t];if(rnumnonpx.test(i))return i;r=o&&(support.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+augmentWidthOrHeight(e,t,n||(o?"border":"content"),r,s)+"px"}function showHide(e,t){var n,r,i,s=[],o=0,u=e.length;for(;o<u;o++){r=e[o];if(!r.style)continue;s[o]=data_priv.get(r,"olddisplay"),n=r.style.display,t?(!s[o]&&n==="none"&&(r.style.display=""),r.style.display===""&&isHidden(r)&&(s[o]=data_priv.access(r,"olddisplay",defaultDisplay(r.nodeName)))):(i=isHidden(r),(n!=="none"||!i)&&data_priv.set(r,"olddisplay",i?n:jQuery.css(r,"display")))}for(o=0;o<u;o++){r=e[o];if(!r.style)continue;if(!t||r.style.display==="none"||r.style.display==="")r.style.display=t?s[o]||"":"none"}return e}function Tween(e,t,n,r,i){return new Tween.prototype.init(e,t,n,r,i)}function createFxNow(){return setTimeout(function(){fxNow=undefined}),fxNow=jQuery.now()}function genFx(e,t){var n,r=0,i={height:e};t=t?1:0;for(;r<4;r+=2-t)n=cssExpand[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function createTween(e,t,n){var r,i=(tweeners[t]||[]).concat(tweeners["*"]),s=0,o=i.length;for(;s<o;s++)if(r=i[s].call(n,t,e))return r}function defaultPrefilter(e,t,n){var r,i,s,o,u,a,f,l,c=this,h={},p=e.style,d=e.nodeType&&isHidden(e),v=data_priv.get(e,"fxshow");n.queue||(u=jQuery._queueHooks(e,"fx"),u.unqueued==null&&(u.unqueued=0,a=u.empty.fire,u.empty.fire=function(){u.unqueued||a()}),u.unqueued++,c.always(function(){c.always(function(){u.unqueued--,jQuery.queue(e,"fx").length||u.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],f=jQuery.css(e,"display"),l=f==="none"?data_priv.get(e,"olddisplay")||defaultDisplay(e.nodeName):f,l==="inline"&&jQuery.css(e,"float")==="none"&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){i=t[r];if(rfxtypes.exec(i)){delete t[r],s=s||i==="toggle";if(i===(d?"hide":"show")){if(i!=="show"||!v||v[r]===undefined)continue;d=!0}h[r]=v&&v[r]||jQuery.style(e,r)}else f=undefined}if(!jQuery.isEmptyObject(h)){v?"hidden"in v&&(d=v.hidden):v=data_priv.access(e,"fxshow",{}),s&&(v.hidden=!d),d?jQuery(e).show():c.done(function(){jQuery(e).hide()}),c.done(function(){var t;data_priv.remove(e,"fxshow");for(t in h)jQuery.style(e,t,h[t])});for(r in h)o=createTween(d?v[r]:0,r,c),r in v||(v[r]=o.start,d&&(o.end=o.start,o.start=r==="width"||r==="height"?1:0))}else(f==="none"?defaultDisplay(e.nodeName):f)==="inline"&&(p.display=f)}function propFilter(e,t){var n,r,i,s,o;for(n in e){r=jQuery.camelCase(n),i=t[r],s=e[n],jQuery.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=jQuery.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function Animation(e,t,n){var r,i,s=0,o=animationPrefilters.length,u=jQuery.Deferred().always(function(){delete a.elem}),a=function(){if(i)return!1;var t=fxNow||createFxNow(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,s=1-r,o=0,a=f.tweens.length;for(;o<a;o++)f.tweens[o].run(s);return u.notifyWith(e,[f,s,n]),s<1&&a?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:jQuery.extend({},t),opts:jQuery.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:fxNow||createFxNow(),duration:n.duration,tweens:[],createTween:function(t,n){var r=jQuery.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(r),r},stop:function(t){var n=0,r=t?f.tweens.length:0;if(i)return this;i=!0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;propFilter(l,f.opts.specialEasing);for(;s<o;s++){r=animationPrefilters[s].call(f,e,l,f.opts);if(r)return r}return jQuery.map(l,createTween,f),jQuery.isFunction(f.opts.start)&&f.opts.start.call(e,f),jQuery.fx.timer(jQuery.extend(a,{elem:e,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function addToPrefiltersOrTransports(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(rnotwhite)||[];if(jQuery.isFunction(n))while(r=s[i++])r[0]==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function inspectPrefiltersOrTransports(e,t,n,r){function o(u){var a;return i[u]=!0,jQuery.each(e[u]||[],function(e,u){var f=u(t,n,r);if(typeof f=="string"&&!s&&!i[f])return t.dataTypes.unshift(f),o(f),!1;if(s)return!(a=f)}),a}var i={},s=e===transports;return o(t.dataTypes[0])||!i["*"]&&o("*")}function ajaxExtend(e,t){var n,r,i=jQuery.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&jQuery.extend(!0,e,r),e}function ajaxHandleResponses(e,t,n){var r,i,s,o,u=e.contents,a=e.dataTypes;while(a[0]==="*")a.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){a.unshift(i);break}if(a[0]in n)s=a[0];else{for(i in n){if(!a[0]||e.converters[i+" "+a[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==a[0]&&a.unshift(s),n[s]}function ajaxConvert(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s){e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift();if(s)if(s==="*")s=a;else if(a!=="*"&&a!==s){o=f[a+" "+s]||f["* "+s];if(!o)for(i in f){u=i.split(" ");if(u[1]===s){o=f[a+" "+u[0]]||f["* "+u[0]];if(o){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}}}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}}return{state:"success",data:t}}function buildParams(e,t,n,r){var i;if(jQuery.isArray(t))jQuery.each(t,function(t,i){n||rbracket.test(e)?r(e,i):buildParams(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&jQuery.type(t)==="object")for(i in t)buildParams(e+"["+i+"]",t[i],n,r);else r(e,t)}function getWindow(e){return jQuery.isWindow(e)?e:e.nodeType===9&&e.defaultView}var arr=[],slice=arr.slice,concat=arr.concat,push=arr.push,indexOf=arr.indexOf,class2type={},toString=class2type.toString,hasOwn=class2type.hasOwnProperty,support={},document=window.document,version="2.1.4",jQuery=function(e,t){return new jQuery.fn.init(e,t)},rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,fcamelCase=function(e,t){return t.toUpperCase()};jQuery.fn=jQuery.prototype={jquery:version,constructor:jQuery,selector:"",length:0,toArray:function(){return slice.call(this)},get:function(e){return e!=null?e<0?this[e+this.length]:this[e]:slice.call(this)},pushStack:function(e){var t=jQuery.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return jQuery.each(this,e,t)},map:function(e){return this.pushStack(jQuery.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:push,sort:arr.sort,splice:arr.splice},jQuery.extend=jQuery.fn.extend=function(){var e,t,n,r,i,s,o=arguments[0]||{},u=1,a=arguments.length,f=!1;typeof o=="boolean"&&(f=o,o=arguments[u]||{},u++),typeof o!="object"&&!jQuery.isFunction(o)&&(o={}),u===a&&(o=this,u--);for(;u<a;u++)if((e=arguments[u])!=null)for(t in e){n=o[t],r=e[t];if(o===r)continue;f&&r&&(jQuery.isPlainObject(r)||(i=jQuery.isArray(r)))?(i?(i=!1,s=n&&jQuery.isArray(n)?n:[]):s=n&&jQuery.isPlainObject(n)?n:{},o[t]=jQuery.extend(f,s,r)):r!==undefined&&(o[t]=r)}return o},jQuery.extend({expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return jQuery.type(e)==="function"},isArray:Array.isArray,isWindow:function(e){return e!=null&&e===e.window},isNumeric:function(e){return!jQuery.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return jQuery.type(e)!=="object"||e.nodeType||jQuery.isWindow(e)?!1:e.constructor&&!hasOwn.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?class2type[toString.call(e)]||"object":typeof e},globalEval:function(code){var script,indirect=eval;code=jQuery.trim(code),code&&(code.indexOf("use strict")===1?(script=document.createElement("script"),script.text=code,document.head.appendChild(script).parentNode.removeChild(script)):indirect(code))},camelCase:function(e){return e.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,s=e.length,o=isArraylike(e);if(n)if(o)for(;i<s;i++){r=t.apply(e[i],n);if(r===!1)break}else for(i in e){r=t.apply(e[i],n);if(r===!1)break}else if(o)for(;i<s;i++){r=t.call(e[i],i,e[i]);if(r===!1)break}else for(i in e){r=t.call(e[i],i,e[i]);if(r===!1)break}return e},trim:function(e){return e==null?"":(e+"").replace(rtrim,"")},makeArray:function(e,t){var n=t||[];return e!=null&&(isArraylike(Object(e))?jQuery.merge(n,typeof e=="string"?[e]:e):push.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:indexOf.call(t,e,n)},merge:function(e,t){var n=+t.length,r=0,i=e.length;for(;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length,u=!n;for(;s<o;s++)r=!t(e[s],s),r!==u&&i.push(e[s]);return i},map:function(e,t,n){var r,i=0,s=e.length,o=isArraylike(e),u=[];if(o)for(;i<s;i++)r=t(e[i],i,n),r!=null&&u.push(r);else for(i in e)r=t(e[i],i,n),r!=null&&u.push(r);return concat.apply([],u)},guid:1,proxy:function(e,t){var n,r,i;return typeof t=="string"&&(n=e[t],t=e,e=n),jQuery.isFunction(e)?(r=slice.call(arguments,2),i=function(){return e.apply(t||this,r.concat(slice.call(arguments)))},i.guid=e.guid=e.guid||jQuery.guid++,i):undefined},now:Date.now,support:support}),jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){class2type["[object "+t+"]"]=t.toLowerCase()});var Sizzle=function(e){function ot(e,t,r,i){var s,u,f,l,c,d,g,y,S,x;(t?t.ownerDocument||t:E)!==p&&h(t),t=t||p,r=r||[],l=t.nodeType;if(typeof e!="string"||!e||l!==1&&l!==9&&l!==11)return r;if(!i&&v){if(l!==11&&(s=Z.exec(e)))if(f=s[1]){if(l===9){u=t.getElementById(f);if(!u||!u.parentNode)return r;if(u.id===f)return r.push(u),r}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&b(t,u)&&u.id===f)return r.push(u),r}else{if(s[2])return D.apply(r,t.getElementsByTagName(e)),r;if((f=s[3])&&n.getElementsByClassName)return D.apply(r,t.getElementsByClassName(f)),r}if(n.qsa&&(!m||!m.test(e))){y=g=w,S=t,x=l!==1&&e;if(l===1&&t.nodeName.toLowerCase()!=="object"){d=o(e),(g=t.getAttribute("id"))?y=g.replace(tt,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",c=d.length;while(c--)d[c]=y+gt(d[c]);S=et.test(e)&&vt(t.parentNode)||t,x=d.join(",")}if(x)try{return D.apply(r,S.querySelectorAll(x)),r}catch(T){}finally{g||t.removeAttribute("id")}}}return a(e.replace(z,"$1"),t,r,i)}function ut(){function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function at(e){return e[w]=!0,e}function ft(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),i=e.length;while(i--)r.attrHandle[n[i]]=t}function ct(e,t){var n=t&&e,r=n&&e.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||L)-(~e.sourceIndex||L);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function dt(e){return at(function(t){return t=+t,at(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function vt(e){return e&&typeof e.getElementsByTagName!="undefined"&&e}function mt(){}function gt(e){var t=0,n=e.length,r="";for(;t<n;t++)r+=e[t].value;return r}function yt(e,t,n){var r=t.dir,i=n&&r==="parentNode",s=x++;return t.first?function(t,n,s){while(t=t[r])if(t.nodeType===1||i)return e(t,n,s)}:function(t,n,o){var u,a,f=[S,s];if(o){while(t=t[r])if(t.nodeType===1||i)if(e(t,n,o))return!0}else while(t=t[r])if(t.nodeType===1||i){a=t[w]||(t[w]={});if((u=a[r])&&u[0]===S&&u[1]===s)return f[2]=u[2];a[r]=f;if(f[2]=e(t,n,o))return!0}}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function wt(e,t,n){var r=0,i=t.length;for(;r<i;r++)ot(e,t[r],n);return n}function Et(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function St(e,t,n,r,i,s){return r&&!r[w]&&(r=St(r)),i&&!i[w]&&(i=St(i,s)),at(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||wt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?Et(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=Et(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?H(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=Et(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):D.apply(o,g)})}function xt(e){var t,n,i,s=e.length,o=r.relative[e[0].type],u=o||r.relative[" "],a=o?1:0,l=yt(function(e){return e===t},u,!0),c=yt(function(e){return H(t,e)>-1},u,!0),h=[function(e,n,r){var i=!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r));return t=null,i}];for(;a<s;a++)if(n=r.relative[e[a].type])h=[yt(bt(h),n)];else{n=r.filter[e[a].type].apply(null,e[a].matches);if(n[w]){i=++a;for(;i<s;i++)if(r.relative[e[i].type])break;return St(a>1&&bt(h),a>1&&gt(e.slice(0,a-1).concat({value:e[a-2].type===" "?"*":""})).replace(z,"$1"),n,a<i&&xt(e.slice(a,i)),i<s&&xt(e=e.slice(i)),i<s&&gt(e))}h.push(n)}return bt(h)}function Tt(e,t){var n=t.length>0,i=e.length>0,s=function(s,o,u,a,l){var c,h,d,v=0,m="0",g=s&&[],y=[],b=f,w=s||i&&r.find.TAG("*",l),E=S+=b==null?1:Math.random()||.1,x=w.length;l&&(f=o!==p&&o);for(;m!==x&&(c=w[m])!=null;m++){if(i&&c){h=0;while(d=e[h++])if(d(c,o,u)){a.push(c);break}l&&(S=E)}n&&((c=!d&&c)&&v--,s&&g.push(c))}v+=m;if(n&&m!==v){h=0;while(d=t[h++])d(g,y,o,u);if(s){if(v>0)while(m--)!g[m]&&!y[m]&&(y[m]=M.call(a));y=Et(y)}D.apply(a,y),l&&!s&&y.length>0&&v+t.length>1&&ot.uniqueSort(a)}return l&&(S=E,f=b),g};return n?at(s):s}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w="sizzle"+1*new Date,E=e.document,S=0,x=0,T=ut(),N=ut(),C=ut(),k=function(e,t){return e===t&&(c=!0),0},L=1<<31,A={}.hasOwnProperty,O=[],M=O.pop,_=O.push,D=O.push,P=O.slice,H=function(e,t){var n=0,r=e.length;for(;n<r;n++)if(e[n]===t)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",I=F.replace("w","w#"),q="\\["+j+"*("+F+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+j+"*\\]",R=":("+F+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|"+".*"+")\\)|)",U=new RegExp(j+"+","g"),z=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),W=new RegExp("^"+j+"*,"+j+"*"),X=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),V=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),$=new RegExp(R),J=new RegExp("^"+I+"$"),K={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/[+~]/,tt=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),rt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},it=function(){h()};try{D.apply(O=P.call(E.childNodes),E.childNodes),O[E.childNodes.length].nodeType}catch(st){D={apply:O.length?function(e,t){_.apply(e,P.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}n=ot.support={},s=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},h=ot.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:E;if(o===p||o.nodeType!==9||!o.documentElement)return p;p=o,d=o.documentElement,i=o.defaultView,i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",it,!1):i.attachEvent&&i.attachEvent("onunload",it)),v=!s(o),n.attributes=ft(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ft(function(e){return e.appendChild(o.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Y.test(o.getElementsByClassName),n.getById=ft(function(e){return d.appendChild(e).id=w,!o.getElementsByName||!o.getElementsByName(w).length}),n.getById?(r.find.ID=function(e,t){if(typeof t.getElementById!="undefined"&&v){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){var n=typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!="undefined")return t.getElementsByTagName(e);if(n.qsa)return t.querySelectorAll(e)}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if(e==="*"){while(n=s[i++])n.nodeType===1&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(v)return t.getElementsByClassName(e)},g=[],m=[];if(n.qsa=Y.test(o.querySelectorAll))ft(function(e){d.appendChild(e).innerHTML="<a id='"+w+"'></a>"+"<select id='"+w+"-\f]' msallowcapture=''>"+"<option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+j+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")}),ft(function(e){var t=o.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+j+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")});return(n.matchesSelector=Y.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ft(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),g.push("!=",R)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=Y.test(d.compareDocumentPosition),b=t||Y.test(d.contains)?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&r.nodeType===1&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16)}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,r&1||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===o||e.ownerDocument===E&&b(E,e)?-1:t===o||t.ownerDocument===E&&b(E,t)?1:l?H(l,e)-H(l,t):0:r&4?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,u=[e],a=[t];if(!i||!s)return e===o?-1:t===o?1:i?-1:s?1:l?H(l,e)-H(l,t):0;if(i===s)return ct(e,t);n=e;while(n=n.parentNode)u.unshift(n);n=t;while(n=n.parentNode)a.unshift(n);while(u[r]===a[r])r++;return r?ct(u[r],a[r]):u[r]===E?-1:a[r]===E?1:0},o},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){(e.ownerDocument||e)!==p&&h(e),t=t.replace(V,"='$1']");if(n.matchesSelector&&v&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&e.document.nodeType!==11)return r}catch(i){}return ot(t,p,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},ot.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var i=r.attrHandle[t.toLowerCase()],s=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):undefined;return s!==undefined?s:n.attributes||!v?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},ot.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,r=[],i=0,s=0;c=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(k);if(c){while(t=e[s++])t===e[s]&&(i=r.push(s));while(i--)e.splice(r[i],1)}return l=null,e},i=ot.getText=function(e){var t,n="",r=0,s=e.nodeType;if(!s)while(t=e[r++])n+=i(t);else if(s===1||s===9||s===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(s===3||s===4)return e.nodeValue;return n},r=ot.selectors={cacheLength:50,createPseudo:at,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(nt,rt),e[3]=(e[3]||e[4]||e[5]||"").replace(nt,rt),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(nt,rt).toLowerCase();return e==="*"?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&T(e,function(e){return t.test(typeof e.className=="string"&&e.className||typeof e.getAttribute!="undefined"&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return i==null?t==="!=":t?(i+="",t==="="?i===n:t==="!="?i!==n:t==="^="?n&&i.indexOf(n)===0:t==="*="?n&&i.indexOf(n)>-1:t==="$="?n&&i.slice(-n.length)===n:t==="~="?(" "+i.replace(U," ")+" ").indexOf(n)>-1:t==="|="?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",u=t==="of-type";return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;d=v=e==="only"&&!d&&"nextSibling"}return!0}d=[o?m.firstChild:m.lastChild];if(o&&y){l=m[w]||(m[w]={}),f=l[e]||[],p=f[0]===S&&f[1],h=f[0]===S&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(c.nodeType===1&&++h&&c===t){l[e]=[S,p,h];break}}else if(y&&(f=(t[w]||(t[w]={}))[e])&&f[0]===S)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++h){y&&((c[w]||(c[w]={}))[e]=[S,h]);if(c===t)break}return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var r,s=i(e,t),o=s.length;while(o--)r=H(e,s[o]),e[r]=!(n[r]=s[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:at(function(e){var t=[],n=[],r=u(e.replace(z,"$1"));return r[w]?at(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),t[0]=null,!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return e=e.replace(nt,rt),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:at(function(e){return J.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(nt,rt).toLowerCase(),function(t){var n;do if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},text:function(e){var t;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()==="text")},first:dt(function(){return[0]}),last:dt(function(e,t){return[t-1]}),eq:dt(function(e,t,n){return[n<0?n+t:n]}),even:dt(function(e,t){var n=0;for(;n<t;n+=2)e.push(n);return e}),odd:dt(function(e,t){var n=1;for(;n<t;n+=2)e.push(n);return e}),lt:dt(function(e,t,n){var r=n<0?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:dt(function(e,t,n){var r=n<0?n+t:n;for(;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ht(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pt(t);return mt.prototype=r.filters=r.pseudos,r.setFilters=new mt,o=ot.tokenize=function(e,t){var n,i,s,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=r.preFilter;while(u){if(!n||(i=W.exec(u)))i&&(u=u.slice(i[0].length)||u),a.push(s=[]);n=!1;if(i=X.exec(u))n=i.shift(),s.push({value:n,type:i[0].replace(z," ")}),u=u.slice(n.length);for(o in r.filter)(i=K[o].exec(u))&&(!f[o]||(i=f[o](i)))&&(n=i.shift(),s.push({value:n,type:o,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?ot.error(e):N(e,a).slice(0)},u=ot.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=o(e)),n=t.length;while(n--)s=xt(t[n]),s[w]?r.push(s):i.push(s);s=C(e,Tt(i,r)),s.selector=e}return s},a=ot.select=function(e,t,i,s){var a,f,l,c,h,p=typeof e=="function"&&e,d=!s&&o(e=p.selector||e);i=i||[];if(d.length===1){f=d[0]=d[0].slice(0);if(f.length>2&&(l=f[0]).type==="ID"&&n.getById&&t.nodeType===9&&v&&r.relative[f[1].type]){t=(r.find.ID(l.matches[0].replace(nt,rt),t)||[])[0];if(!t)return i;p&&(t=t.parentNode),e=e.slice(f.shift().value.length)}a=K.needsContext.test(e)?0:f.length;while(a--){l=f[a];if(r.relative[c=l.type])break;if(h=r.find[c])if(s=h(l.matches[0].replace(nt,rt),et.test(f[0].type)&&vt(t.parentNode)||t)){f.splice(a,1),e=s.length&&gt(f);if(!e)return D.apply(i,s),i;break}}}return(p||u(e,d))(s,t,!v,i,et.test(e)&&vt(t.parentNode)||t),i},n.sortStable=w.split("").sort(k).join("")===w,n.detectDuplicates=!!c,h(),n.sortDetached=ft(function(e){return e.compareDocumentPosition(p.createElement("div"))&1}),ft(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild.getAttribute("href")==="#"})||lt("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,t.toLowerCase()==="type"?1:2)}),(!n.attributes||!ft(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),e.firstChild.getAttribute("value")===""}))&&lt("value",function(e,t,n){if(!n&&e.nodeName.toLowerCase()==="input")return e.defaultValue}),ft(function(e){return e.getAttribute("disabled")==null})||lt(B,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ot}(window);jQuery.find=Sizzle,jQuery.expr=Sizzle.selectors,jQuery.expr[":"]=jQuery.expr.pseudos,jQuery.unique=Sizzle.uniqueSort,jQuery.text=Sizzle.getText,jQuery.isXMLDoc=Sizzle.isXML,jQuery.contains=Sizzle.contains;var rneedsContext=jQuery.expr.match.needsContext,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,risSimple=/^.[^:#\[\.,]*$/;jQuery.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?jQuery.find.matchesSelector(r,e)?[r]:[]:jQuery.find.matches(e,jQuery.grep(t,function(e){return e.nodeType===1}))},jQuery.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if(typeof e!="string")return this.pushStack(jQuery(e).filter(function(){for(t=0;t<n;t++)if(jQuery.contains(i[t],this))return!0}));for(t=0;t<n;t++)jQuery.find(e,i[t],r);return r=this.pushStack(n>1?jQuery.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(winnow(this,e||[],!1))},not:function(e){return this.pushStack(winnow(this,e||[],!0))},is:function(e){return!!winnow(this,typeof e=="string"&&rneedsContext.test(e)?jQuery(e):e||[],!1).length}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,init=jQuery.fn.init=function(e,t){var n,r;if(!e)return this;if(typeof e=="string"){e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?n=[null,e,null]:n=rquickExpr.exec(e);if(n&&(n[1]||!t)){if(n[1]){t=t instanceof jQuery?t[0]:t,jQuery.merge(this,jQuery.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:document,!0));if(rsingleTag.test(n[1])&&jQuery.isPlainObject(t))for(n in t)jQuery.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return r=document.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=document,this.selector=e,this}return!t||t.jquery?(t||rootjQuery).find(e):this.constructor(t).find(e)}return e.nodeType?(this.context=this[0]=e,this.length=1,this):jQuery.isFunction(e)?typeof rootjQuery.ready!="undefined"?rootjQuery.ready(e):e(jQuery):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),jQuery.makeArray(e,this))};init.prototype=jQuery.fn,rootjQuery=jQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:!0,contents:!0,next:!0,prev:!0};jQuery.extend({dir:function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&e.nodeType!==9)if(e.nodeType===1){if(i&&jQuery(e).is(n))break;r.push(e)}return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}}),jQuery.fn.extend({has:function(e){var t=jQuery(e,this),n=t.length;return this.filter(function(){var e=0;for(;e<n;e++)if(jQuery.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,s=[],o=rneedsContext.test(e)||typeof e!="string"?jQuery(e,t||this.context):0;for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&jQuery.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?jQuery.unique(s):s)},index:function(e){return e?typeof e=="string"?indexOf.call(jQuery(e),this[0]):indexOf.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),jQuery(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),jQuery.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return jQuery.dir(e,"parentNode")},parentsUntil:function(e,t,n){return jQuery.dir(e,"parentNode",n)},next:function(e){return sibling(e,"nextSibling")},prev:function(e){return sibling(e,"previousSibling")},nextAll:function(e){return jQuery.dir(e,"nextSibling")},prevAll:function(e){return jQuery.dir(e,"previousSibling")},nextUntil:function(e,t,n){return jQuery.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return jQuery.dir(e,"previousSibling",n)},siblings:function(e){return jQuery.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return jQuery.sibling(e.firstChild)},contents:function(e){return e.contentDocument||jQuery.merge([],e.childNodes)}},function(e,t){jQuery.fn[e]=function(n,r){var i=jQuery.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(i=jQuery.filter(r,i)),this.length>1&&(guaranteedUnique[e]||jQuery.unique(i),rparentsprev.test(e)&&i.reverse()),this.pushStack(i)}});var rnotwhite=/\S+/g,optionsCache={};jQuery.Callbacks=function(e){e=typeof e=="string"?optionsCache[e]||createOptions(e):jQuery.extend({},e);var t,n,r,i,s,o,u=[],a=!e.once&&[],f=function(c){t=e.memory&&c,n=!0,o=i||0,i=0,s=u.length,r=!0;for(;u&&o<s;o++)if(u[o].apply(c[0],c[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,u&&(a?a.length&&f(a.shift()):t?u=[]:l.disable())},l={add:function(){if(u){var n=u.length;(function o(t){jQuery.each(t,function(t,n){var r=jQuery.type(n);r==="function"?(!e.unique||!l.has(n))&&u.push(n):n&&n.length&&r!=="string"&&o(n)})})(arguments),r?s=u.length:t&&(i=n,f(t))}return this},remove:function(){return u&&jQuery.each(arguments,function(e,t){var n;while((n=jQuery.inArray(t,u,n))>-1)u.splice(n,1),r&&(n<=s&&s--,n<=o&&o--)}),this},has:function(e){return e?jQuery.inArray(e,u)>-1:!!u&&!!u.length},empty:function(){return u=[],s=0,this},disable:function(){return u=a=t=undefined,this},disabled:function(){return!u},lock:function(){return a=undefined,t||l.disable(),this},locked:function(){return!a},fireWith:function(e,t){return u&&(!n||a)&&(t=t||[],t=[e,t.slice?t.slice():t],r?a.push(t):f(t)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},jQuery.extend({Deferred:function(e){var t=[["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return jQuery.Deferred(function(n){jQuery.each(t,function(t,s){var o=jQuery.isFunction(e[t])&&e[t];i[s[1]](function(){var e=o&&o.apply(this,arguments);e&&jQuery.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+"With"](this===r?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return e!=null?jQuery.extend(e,r):r}},i={};return r.pipe=r.then,jQuery.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=function(){return i[s[0]+"With"](this===i?r:this,arguments),this},i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=slice.call(arguments),r=n.length,i=r!==1||e&&jQuery.isFunction(e.promise)?r:0,s=i===1?e:jQuery.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?slice.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&jQuery.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}});var readyList;jQuery.fn.ready=function(e){return jQuery.ready.promise().done(e),this},jQuery.extend({isReady:!1,readyWait:1,holdReady:function(e){e?jQuery.readyWait++:jQuery.ready(!0)},ready:function(e){if(e===!0?--jQuery.readyWait:jQuery.isReady)return;jQuery.isReady=!0;if(e!==!0&&--jQuery.readyWait>0)return;readyList.resolveWith(document,[jQuery]),jQuery.fn.triggerHandler&&(jQuery(document).triggerHandler("ready"),jQuery(document).off("ready"))}}),jQuery.ready.promise=function(e){return readyList||(readyList=jQuery.Deferred(),document.readyState==="complete"?setTimeout(jQuery.ready):(document.addEventListener("DOMContentLoaded",completed,!1),window.addEventListener("load",completed,!1))),readyList.promise(e)},jQuery.ready.promise();var access=jQuery.access=function(e,t,n,r,i,s,o){var u=0,a=e.length,f=n==null;if(jQuery.type(n)==="object"){i=!0;for(u in n)jQuery.access(e,t,u,n[u],!0,s,o)}else if(r!==undefined){i=!0,jQuery.isFunction(r)||(o=!0),f&&(o?(t.call(e,r),t=null):(f=t,t=function(e,t,n){return f.call(jQuery(e),n)}));if(t)for(;u<a;u++)t(e[u],n,o?r:r.call(e[u],u,t(e[u],n)))}return i?e:f?t.call(e):a?t(e[0],n):s};jQuery.acceptData=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType},Data.uid=1,Data.accepts=jQuery.acceptData,Data.prototype={key:function(e){if(!Data.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=Data.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,jQuery.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),s=this.cache[i];if(typeof t=="string")s[t]=n;else if(jQuery.isEmptyObject(s))jQuery.extend(this.cache[i],t);else for(r in t)s[r]=t[r];return s},get:function(e,t){var n=this.cache[this.key(e)];return t===undefined?n:n[t]},access:function(e,t,n){var r;return t===undefined||t&&typeof t=="string"&&n===undefined?(r=this.get(e,t),r!==undefined?r:this.get(e,jQuery.camelCase(t))):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r,i,s=this.key(e),o=this.cache[s];if(t===undefined)this.cache[s]={};else{jQuery.isArray(t)?r=t.concat(t.map(jQuery.camelCase)):(i=jQuery.camelCase(t),t in o?r=[t,i]:(r=i,r=r in o?[r]:r.match(rnotwhite)||[])),n=r.length;while(n--)delete o[r[n]]}},hasData:function(e){return!jQuery.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var data_priv=new Data,data_user=new Data,rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/([A-Z])/g;jQuery.extend({hasData:function(e){return data_user.hasData(e)||data_priv.hasData(e)},data:function(e,t,n){return data_user.access(e,t,n)},removeData:function(e,t){data_user.remove(e,t)},_data:function(e,t,n){return data_priv.access(e,t,n)},_removeData:function(e,t){data_priv.remove(e,t)}}),jQuery.fn.extend({data:function(e,t){var n,r,i,s=this[0],o=s&&s.attributes;if(e===undefined){if(this.length){i=data_user.get(s);if(s.nodeType===1&&!data_priv.get(s,"hasDataAttrs")){n=o.length;while(n--)o[n]&&(r=o[n].name,r.indexOf("data-")===0&&(r=jQuery.camelCase(r.slice(5)),dataAttr(s,r,i[r])));data_priv.set(s,"hasDataAttrs",!0)}}return i}return typeof e=="object"?this.each(function(){data_user.set(this,e)}):access(this,function(t){var n,r=jQuery.camelCase(e);if(s&&t===undefined){n=data_user.get(s,e);if(n!==undefined)return n;n=data_user.get(s,r);if(n!==undefined)return n;n=dataAttr(s,r,undefined);if(n!==undefined)return n;return}this.each(function(){var n=data_user.get(this,r);data_user.set(this,r,t),e.indexOf("-")!==-1&&n!==undefined&&data_user.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){data_user.remove(this,e)})}}),jQuery.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=data_priv.get(e,t),n&&(!r||jQuery.isArray(n)?r=data_priv.access(e,t,jQuery.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=jQuery.queue(e,t),r=n.length,i=n.shift(),s=jQuery._queueHooks(e,t),o=function(){jQuery.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return data_priv.get(e,n)||data_priv.access(e,n,{empty:jQuery.Callbacks("once memory").add(function(){data_priv.remove(e,[t+"queue",n])})})}}),jQuery.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?jQuery.queue(this[0],e):t===undefined?this:this.each(function(){var n=jQuery.queue(this,e,t);jQuery._queueHooks(this,e),e==="fx"&&n[0]!=="inprogress"&&jQuery.dequeue(this,e)})},dequeue:function(e){return this.each(function(){jQuery.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=jQuery.Deferred(),s=this,o=this.length,u=function(){--r||i.resolveWith(s,[s])};typeof e!="string"&&(t=e,e=undefined),e=e||"fx";while(o--)n=data_priv.get(s[o],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(t)}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,cssExpand=["Top","Right","Bottom","Left"],isHidden=function(e,t){return e=t||e,jQuery.css(e,"display")==="none"||!jQuery.contains(e.ownerDocument,e)},rcheckableType=/^(?:checkbox|radio)$/i;(function(){var e=document.createDocumentFragment(),t=e.appendChild(document.createElement("div")),n=document.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),support.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",support.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue})();var strundefined=typeof undefined;support.focusinBubbles="onfocusin"in window;var rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,rtypenamespace=/^([^.]*)(?:\.(.+)|)$/;jQuery.event={global:{},add:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,v,m=data_priv.get(e);if(!m)return;n.handler&&(s=n,n=s.handler,i=s.selector),n.guid||(n.guid=jQuery.guid++),(a=m.events)||(a=m.events={}),(o=m.handle)||(o=m.handle=function(t){return typeof jQuery!==strundefined&&jQuery.event.triggered!==t.type?jQuery.event.dispatch.apply(e,arguments):undefined}),t=(t||"").match(rnotwhite)||[""],f=t.length;while(f--){u=rtypenamespace.exec(t[f])||[],p=v=u[1],d=(u[2]||"").split(".").sort();if(!p)continue;c=jQuery.event.special[p]||{},p=(i?c.delegateType:c.bindType)||p,c=jQuery.event.special[p]||{},l=jQuery.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&jQuery.expr.match.needsContext.test(i),namespace:d.join(".")},s),(h=a[p])||(h=a[p]=[],h.delegateCount=0,(!c.setup||c.setup.call(e,r,d,o)===!1)&&e.addEventListener&&e.addEventListener(p,o,!1)),c.add&&(c.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),jQuery.event.global[p]=!0}},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,v,m=data_priv.hasData(e)&&data_priv.get(e);if(!m||!(a=m.events))return;t=(t||"").match(rnotwhite)||[""],f=t.length;while(f--){u=rtypenamespace.exec(t[f])||[],p=v=u[1],d=(u[2]||"").split(".").sort();if(!p){for(p in a)jQuery.event.remove(e,p+t[f],n,r,!0);continue}c=jQuery.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,h=a[p]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;while(s--)l=h[s],(i||v===l.origType)&&(!n||n.guid===l.guid)&&(!u||u.test(l.namespace))&&(!r||r===l.selector||r==="**"&&l.selector)&&(h.splice(s,1),l.selector&&h.delegateCount--,c.remove&&c.remove.call(e,l));o&&!h.length&&((!c.teardown||c.teardown.call(e,d,m.handle)===!1)&&jQuery.removeEvent(e,p,m.handle),delete a[p])}jQuery.isEmptyObject(a)&&(delete m.handle,data_priv.remove(e,"events"))},trigger:function(e,t,n,r){var i,s,o,u,a,f,l,c=[n||document],h=hasOwn.call(e,"type")?e.type:e,p=hasOwn.call(e,"namespace")?e.namespace.split("."):[];s=o=n=n||document;if(n.nodeType===3||n.nodeType===8)return;if(rfocusMorph.test(h+jQuery.event.triggered))return;h.indexOf(".")>=0&&(p=h.split("."),h=p.shift(),p.sort()),a=h.indexOf(":")<0&&"on"+h,e=e[jQuery.expando]?e:new jQuery.Event(h,typeof e=="object"&&e),e.isTrigger=r?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=t==null?[e]:jQuery.makeArray(t,[e]),l=jQuery.event.special[h]||{};if(!r&&l.trigger&&l.trigger.apply(n,t)===!1)return;if(!r&&!l.noBubble&&!jQuery.isWindow(n)){u=l.delegateType||h,rfocusMorph.test(u+h)||(s=s.parentNode);for(;s;s=s.parentNode)c.push(s),o=s;o===(n.ownerDocument||document)&&c.push(o.defaultView||o.parentWindow||window)}i=0;while((s=c[i++])&&!e.isPropagationStopped())e.type=i>1?u:l.bindType||h,f=(data_priv.get(s,"events")||{})[e.type]&&data_priv.get(s,"handle"),f&&f.apply(s,t),f=a&&s[a],f&&f.apply&&jQuery.acceptData(s)&&(e.result=f.apply(s,t),e.result===!1&&e.preventDefault());return e.type=h,!r&&!e.isDefaultPrevented()&&(!l._default||l._default.apply(c.pop(),t)===!1)&&jQuery.acceptData(n)&&a&&jQuery.isFunction(n[h])&&!jQuery.isWindow(n)&&(o=n[a],o&&(n[a]=null),jQuery.event.triggered=h,n[h](),jQuery.event.triggered=undefined,o&&(n[a]=o)),e.result},dispatch:function(e){e=jQuery.event.fix(e);var t,n,r,i,s,o=[],u=slice.call(arguments),a=(data_priv.get(this,"events")||{})[e.type]||[],f=jQuery.event.special[e.type]||{};u[0]=e,e.delegateTarget=this;if(f.preDispatch&&f.preDispatch.call(this,e)===!1)return;o=jQuery.event.handlers.call(this,e,a),t=0;while((i=o[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,n=0;while((s=i.handlers[n++])&&!e.isImmediatePropagationStopped())if(!e.namespace_re||e.namespace_re.test(s.namespace))e.handleObj=s,e.data=s.data,r=((jQuery.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,u),r!==undefined&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation())}return f.postDispatch&&f.postDispatch.call(this,e),e.result},handlers:function(e,t){var n,r,i,s,o=[],u=t.delegateCount,a=e.target;if(u&&a.nodeType&&(!e.button||e.type!=="click"))for(;a!==this;a=a.parentNode||this)if(a.disabled!==!0||e.type!=="click"){r=[];for(n=0;n<u;n++)s=t[n],i=s.selector+" ",r[i]===undefined&&(r[i]=s.needsContext?jQuery(i,this).index(a)>=0:jQuery.find(i,this,null,[a]).length),r[i]&&r.push(s);r.length&&o.push({elem:a,handlers:r})}return u<t.length&&o.push({elem:this,handlers:t.slice(u)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return e.pageX==null&&t.clientX!=null&&(n=e.target.ownerDocument||document,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!e.which&&s!==undefined&&(e.which=s&1?1:s&2?3:s&4?2:0),e}},fix:function(e){if(e[jQuery.expando])return e;var t,n,r,i=e.type,s=e,o=this.fixHooks[i];o||(this.fixHooks[i]=o=rmouseEvent.test(i)?this.mouseHooks:rkeyEvent.test(i)?this.keyHooks:{}),r=o.props?this.props.concat(o.props):this.props,e=new jQuery.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=document),e.target.nodeType===3&&(e.target=e.target.parentNode),o.filter?o.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==safeActiveElement()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&jQuery.nodeName(this,"input"))return this.click(),!1},_default:function(e){return jQuery.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=jQuery.extend(new jQuery.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?jQuery.event.trigger(i,null,t):jQuery.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},jQuery.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},jQuery.Event=function(e,t){if(!(this instanceof jQuery.Event))return new jQuery.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&e.returnValue===!1?returnTrue:returnFalse):this.type=e,t&&jQuery.extend(this,t),this.timeStamp=e&&e.timeStamp||jQuery.now(),this[jQuery.expando]=!0},jQuery.Event.prototype={isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){jQuery.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;if(!i||i!==r&&!jQuery.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),support.focusinBubbles||jQuery.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){jQuery.event.simulate(t,e.target,jQuery.event.fix(e),!0)};jQuery.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=data_priv.access(r,t);i||r.addEventListener(e,n,!0),data_priv.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=data_priv.access(r,t)-1;i?data_priv.access(r,t,i):(r.removeEventListener(e,n,!0),data_priv.remove(r,t))}}}),jQuery.fn.extend({on:function(e,t,n,r,i){var s,o;if(typeof e=="object"){typeof t!="string"&&(n=n||t,t=undefined);for(o in e)this.on(o,t,n,e[o],i);return this}n==null&&r==null?(r=t,n=t=undefined):r==null&&(typeof t=="string"?(r=n,n=undefined):(r=n,n=t,t=undefined));if(r===!1)r=returnFalse;else if(!r)return this;return i===1&&(s=r,r=function(e){return jQuery().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=jQuery.guid++)),this.each(function(){jQuery.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,jQuery(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e=="object"){for(i in e)this.off(i,t,e[i]);return this}if(t===!1||typeof t=="function")n=t,t=undefined;return n===!1&&(n=returnFalse),this.each(function(){jQuery.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){jQuery.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return jQuery.event.trigger(e,t,n,!0)}});var rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rtagName=/<([\w:]+)/,rhtml=/<|&#?\w+;/,rnoInnerhtml=/<(?:script|style|link)/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/^$|\/(?:java|ecma)script/i,rscriptTypeMasked=/^true\/(.*)/,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,wrapMap={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option,wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead,wrapMap.th=wrapMap.td,jQuery.extend({clone:function(e,t,n){var r,i,s,o,u=e.cloneNode(!0),a=jQuery.contains(e.ownerDocument,e);if(!support.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!jQuery.isXMLDoc(e)){o=getAll(u),s=getAll(e);for(r=0,i=s.length;r<i;r++)fixInput(s[r],o[r])}if(t)if(n){s=s||getAll(e),o=o||getAll(u);for(r=0,i=s.length;r<i;r++)cloneCopyEvent(s[r],o[r])}else cloneCopyEvent(e,u);return o=getAll(u,"script"),o.length>0&&setGlobalEval(o,!a&&getAll(e,"script")),u},buildFragment:function(e,t,n,r){var i,s,o,u,a,f,l=t.createDocumentFragment(),c=[],h=0,p=e.length;for(;h<p;h++){i=e[h];if(i||i===0)if(jQuery.type(i)==="object")jQuery.merge(c,i.nodeType?[i]:i);else if(!rhtml.test(i))c.push(t.createTextNode(i));else{s=s||l.appendChild(t.createElement("div")),o=(rtagName.exec(i)||["",""])[1].toLowerCase(),u=wrapMap[o]||wrapMap._default,s.innerHTML=u[1]+i.replace(rxhtmlTag,"<$1></$2>")+u[2],f=u[0];while(f--)s=s.lastChild;jQuery.merge(c,s.childNodes),s=l.firstChild,s.textContent=""}}l.textContent="",h=0;while(i=c[h++]){if(r&&jQuery.inArray(i,r)!==-1)continue;a=jQuery.contains(i.ownerDocument,i),s=getAll(l.appendChild(i),"script"),a&&setGlobalEval(s);if(n){f=0;while(i=s[f++])rscriptType.test(i.type||"")&&n.push(i)}}return l},cleanData:function(e){var t,n,r,i,s=jQuery.event.special,o=0;for(;(n=e[o])!==undefined;o++){if(jQuery.acceptData(n)){i=n[data_priv.expando];if(i&&(t=data_priv.cache[i])){if(t.events)for(r in t.events)s[r]?jQuery.event.remove(n,r):jQuery.removeEvent(n,r,t.handle);data_priv.cache[i]&&delete data_priv.cache[i]}}delete data_user.cache[n[data_user.expando]]}}}),jQuery.fn.extend({text:function(e){return access(this,function(e){return e===undefined?jQuery.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9)this.textContent=e})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=manipulationTarget(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=manipulationTarget(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?jQuery.filter(e,this):this,i=0;for(;(n=r[i])!=null;i++)!t&&n.nodeType===1&&jQuery.cleanData(getAll(n)),n.parentNode&&(t&&jQuery.contains(n.ownerDocument,n)&&setGlobalEval(getAll(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++)e.nodeType===1&&(jQuery.cleanData(getAll(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return jQuery.clone(this,e,t)})},html:function(e){return access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&t.nodeType===1)return t.innerHTML;if(typeof e=="string"&&!rnoInnerhtml.test(e)&&!wrapMap[(rtagName.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(rxhtmlTag,"<$1></$2>");try{for(;n<r;n++)t=this[n]||{},t.nodeType===1&&(jQuery.cleanData(getAll(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,jQuery.cleanData(getAll(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=concat.apply([],e);var n,r,i,s,o,u,a=0,f=this.length,l=this,c=f-1,h=e[0],p=jQuery.isFunction(h);if(p||f>1&&typeof h=="string"&&!support.checkClone&&rchecked.test(h))return this.each(function(n){var r=l.eq(n);p&&(e[0]=h.call(this,n,r.html())),r.domManip(e,t)});if(f){n=jQuery.buildFragment(e,this[0].ownerDocument,!1,this),r=n.firstChild,n.childNodes.length===1&&(n=r);if(r){i=jQuery.map(getAll(n,"script"),disableScript),s=i.length;for(;a<f;a++)o=n,a!==c&&(o=jQuery.clone(o,!0,!0),s&&jQuery.merge(i,getAll(o,"script"))),t.call(this[a],o,a);if(s){u=i[i.length-1].ownerDocument,jQuery.map(i,restoreScript);for(a=0;a<s;a++)o=i[a],rscriptType.test(o.type||"")&&!data_priv.access(o,"globalEval")&&jQuery.contains(u,o)&&(o.src?jQuery._evalUrl&&jQuery._evalUrl(o.src):jQuery.globalEval(o.textContent.replace(rcleanScript,"")))}}}return this}}),jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){jQuery.fn[e]=function(e){var n,r=[],i=jQuery(e),s=i.length-1,o=0;for(;o<=s;o++)n=o===s?this:this.clone(!0),jQuery(i[o])[t](n),push.apply(r,n.get());return this.pushStack(r)}});var iframe,elemdisplay={},rmargin=/^margin/,rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"),getStyles=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)};(function(){function s(){i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",i.innerHTML="",n.appendChild(r);var s=window.getComputedStyle(i,null);e=s.top!=="1%",t=s.width==="4px",n.removeChild(r)}var e,t,n=document.documentElement,r=document.createElement("div"),i=document.createElement("div");if(!i.style)return;i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",support.clearCloneStyle=i.style.backgroundClip==="content-box",r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",r.appendChild(i),window.getComputedStyle&&jQuery.extend(support,{pixelPosition:function(){return s(),e},boxSizingReliable:function(){return t==null&&s(),t},reliableMarginRight:function(){var e,t=i.appendChild(document.createElement("div"));return t.style.cssText=i.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",i.style.width="1px",n.appendChild(r),e=!parseFloat(window.getComputedStyle(t,null).marginRight),n.removeChild(r),i.removeChild(t),e}})})(),jQuery.swap=function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i};var rdisplayswap=/^(none|table(?!-c[ea]).+)/,rnumsplit=new RegExp("^("+pnum+")(.*)$","i"),rrelNum=new RegExp("^([+-])=("+pnum+")","i"),cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"},cssPrefixes=["Webkit","O","Moz","ms"];jQuery.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=curCSS(e,"opacity");return n===""?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var i,s,o,u=jQuery.camelCase(t),a=e.style;t=jQuery.cssProps[u]||(jQuery.cssProps[u]=vendorPropName(a,u)),o=jQuery.cssHooks[t]||jQuery.cssHooks[u];if(n===undefined)return o&&"get"in o&&(i=o.get(e,!1,r))!==undefined?i:a[t];s=typeof n,s==="string"&&(i=rrelNum.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(jQuery.css(e,t)),s="number");if(n==null||n!==n)return;s==="number"&&!jQuery.cssNumber[u]&&(n+="px"),!support.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(a[t]="inherit");if(!o||!("set"in o)||(n=o.set(e,n,r))!==undefined)a[t]=n},css:function(e,t,n,r){var i,s,o,u=jQuery.camelCase(t);return t=jQuery.cssProps[u]||(jQuery.cssProps[u]=vendorPropName(e.style,u)),o=jQuery.cssHooks[t]||jQuery.cssHooks[u],o&&"get"in o&&(i=o.get(e,!0,n)),i===undefined&&(i=curCSS(e,t,r)),i==="normal"&&t in cssNormalTransform&&(i=cssNormalTransform[t]),n===""||n?(s=parseFloat(i),n===!0||jQuery.isNumeric(s)?s||0:i):i}}),jQuery.each(["height","width"],function(e,t){jQuery.cssHooks[t]={get:function(e,n,r){if(n)return rdisplayswap.test(jQuery.css(e,"display"))&&e.offsetWidth===0?jQuery.swap(e,cssShow,function(){return getWidthOrHeight(e,t,r)}):getWidthOrHeight(e,t,r)},set:function(e,n,r){var i=r&&getStyles(e);return setPositiveNumber(e,n,r?augmentWidthOrHeight(e,t,r,jQuery.css(e,"boxSizing",!1,i)==="border-box",i):0)}}}),jQuery.cssHooks.marginRight=addGetHookIf(support.reliableMarginRight,function(e,t){if(t)return jQuery.swap(e,{display:"inline-block"},curCSS,[e,"marginRight"])}),jQuery.each({margin:"",padding:"",border:"Width"},function(e,t){jQuery.cssHooks[e+t]={expand:function(n){var r=0,i={},s=typeof n=="string"?n.split(" "):[n];for(;r<4;r++)i[e+cssExpand[r]+t]=s[r]||s[r-2]||s[0];return i}},rmargin.test(e)||(jQuery.cssHooks[e+t].set=setPositiveNumber)}),jQuery.fn.extend({css:function(e,t){return access(this,function(e,t,n){var r,i,s={},o=0;if(jQuery.isArray(t)){r=getStyles(e),i=t.length;for(;o<i;o++)s[t[o]]=jQuery.css(e,t[o],!1,r);return s}return n!==undefined?jQuery.style(e,t,n):jQuery.css(e,t)},e,t,arguments.length>1)},show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){isHidden(this)?jQuery(this).show():jQuery(this).hide()})}}),jQuery.Tween=Tween,Tween.prototype={constructor:Tween,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(jQuery.cssNumber[n]?"":"px")},cur:function(){var e=Tween.propHooks[this.prop];return e&&e.get?e.get(this):Tween.propHooks._default.get(this)},run:function(e){var t,n=Tween.propHooks[this.prop];return this.options.duration?this.pos=t=jQuery.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=jQuery.css(e.elem,e.prop,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){jQuery.fx.step[e.prop]?jQuery.fx.step[e.prop](e):e.elem.style&&(e.elem.style[jQuery.cssProps[e.prop]]!=null||jQuery.cssHooks[e.prop])?jQuery.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},jQuery.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},jQuery.fx=Tween.prototype.init,jQuery.fx.step={};var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaultPrefilter],tweeners={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=rfxnum.exec(t),s=i&&i[3]||(jQuery.cssNumber[e]?"":"px"),o=(jQuery.cssNumber[e]||s!=="px"&&+r)&&rfxnum.exec(jQuery.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3],i=i||[],o=+r||1;do u=u||".5",o/=u,jQuery.style(n.elem,e,o+s);while(u!==(u=n.cur()/r)&&u!==1&&--a)}return i&&(o=n.start=+o||+r||0,n.unit=s,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};jQuery.Animation=jQuery.extend(Animation,{tweener:function(e,t){jQuery.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],tweeners[n]=tweeners[n]||[],tweeners[n].unshift(t)},prefilter:function(e,t){t?animationPrefilters.unshift(e):animationPrefilters.push(e)}}),jQuery.speed=function(e,t,n){var r=e&&typeof e=="object"?jQuery.extend({},e):{complete:n||!n&&t||jQuery.isFunction(e)&&e,duration:e,easing:n&&t||t&&!jQuery.isFunction(t)&&t};r.duration=jQuery.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in jQuery.fx.speeds?jQuery.fx.speeds[r.duration]:jQuery.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){jQuery.isFunction(r.old)&&r.old.call(this),r.queue&&jQuery.dequeue(this,r.queue)},r},jQuery.fn.extend({fadeTo:function(e,t,n,r){return this.filter(isHidden).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=jQuery.isEmptyObject(e),s=jQuery.speed(t,n,r),o=function(){var t=Animation(this,jQuery.extend({},e),s);(i||data_priv.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return typeof e!="string"&&(n=t,t=e,e=undefined),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=e!=null&&e+"queueHooks",s=jQuery.timers,o=data_priv.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&rrun.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem===this&&(e==null||s[i].queue===e)&&(s[i].anim.stop(n),t=!1,s.splice(i,1));(t||!n)&&jQuery.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=data_priv.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=jQuery.timers,o=r?r.length:0;n.finish=!0,jQuery.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0);for(t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),jQuery.each(["toggle","show","hide"],function(e,t){var n=jQuery.fn[t];jQuery.fn[t]=function(e,r,i){return e==null||typeof e=="boolean"?n.apply(this,arguments):this.animate(genFx(t,!0),e,r,i)}}),jQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){jQuery.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),jQuery.timers=[],jQuery.fx.tick=function(){var e,t=0,n=jQuery.timers;fxNow=jQuery.now();for(;t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||jQuery.fx.stop(),fxNow=undefined},jQuery.fx.timer=function(e){jQuery.timers.push(e),e()?jQuery.fx.start():jQuery.timers.pop()},jQuery.fx.interval=13,jQuery.fx.start=function(){timerId||(timerId=setInterval(jQuery.fx.tick,jQuery.fx.interval))},jQuery.fx.stop=function(){clearInterval(timerId),timerId=null},jQuery.fx.speeds={slow:600,fast:200,_default:400},jQuery.fn.delay=function(e,t){return e=jQuery.fx?jQuery.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e=document.createElement("input"),t=document.createElement("select"),n=t.appendChild(document.createElement("option"));e.type="checkbox",support.checkOn=e.value!=="",support.optSelected=n.selected,t.disabled=!0,support.optDisabled=!n.disabled,e=document.createElement("input"),e.value="t",e.type="radio",support.radioValue=e.value==="t"}();var nodeHook,boolHook,attrHandle=jQuery.expr.attrHandle;jQuery.fn.extend({attr:function(e,t){return access(this,jQuery.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){jQuery.removeAttr(this,e)})}}),jQuery.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(!e||s===3||s===8||s===2)return;if(typeof e.getAttribute===strundefined)return jQuery.prop(e,t,n);if(s!==1||!jQuery.isXMLDoc(e))t=t.toLowerCase(),r=jQuery.attrHooks[t]||(jQuery.expr.match.bool.test(t)?boolHook:nodeHook);if(n===undefined)return r&&"get"in r&&(i=r.get(e,t))!==null?i:(i=jQuery.find.attr(e,t),i==null?undefined:i);if(n!==null)return r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:(e.setAttribute(t,n+""),n);jQuery.removeAttr(e,t)},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(rnotwhite);if(s&&e.nodeType===1)while(n=s[i++])r=jQuery.propFix[n]||n,jQuery.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!support.radioValue&&t==="radio"&&jQuery.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),boolHook={set:function(e,t,n){return t===!1?jQuery.removeAttr(e,n):e.setAttribute(n,n),n}},jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(e,t){var n=attrHandle[t]||jQuery.find.attr;attrHandle[t]=function(e,t,r){var i,s;return r||(s=attrHandle[t],attrHandle[t]=i,i=n(e,t,r)!=null?t.toLowerCase():null,attrHandle[t]=s),i}});var rfocusable=/^(?:input|select|textarea|button)$/i;jQuery.fn.extend({prop:function(e,t){return access(this,jQuery.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[jQuery.propFix[e]||e]})}}),jQuery.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,s,o=e.nodeType;if(!e||o===3||o===8||o===2)return;return s=o!==1||!jQuery.isXMLDoc(e),s&&(t=jQuery.propFix[t]||t,i=jQuery.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&(r=i.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||rfocusable.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),support.optSelected||(jQuery.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery.propFix[this.toLowerCase()]=this});var rclass=/[\t\r\n\f]/g;jQuery.fn.extend({addClass:function(e){var t,n,r,i,s,o,u=typeof e=="string"&&e,a=0,f=this.length;if(jQuery.isFunction(e))return this.each(function(t){jQuery(this).addClass(e.call(this,t,this.className))});if(u){t=(e||"").match(rnotwhite)||[];for(;a<f;a++){n=this[a],r=n.nodeType===1&&(n.className?(" "+n.className+" ").replace(rclass," "):" ");if(r){s=0;while(i=t[s++])r.indexOf(" "+i+" ")<0&&(r+=i+" ");o=jQuery.trim(r),n.className!==o&&(n.className=o)}}}return this},removeClass:function(e){var t,n,r,i,s,o,u=arguments.length===0||typeof e=="string"&&e,a=0,f=this.length;if(jQuery.isFunction(e))return this.each(function(t){jQuery(this).removeClass(e.call(this,t,this.className))});if(u){t=(e||"").match(rnotwhite)||[];for(;a<f;a++){n=this[a],r=n.nodeType===1&&(n.className?(" "+n.className+" ").replace(rclass," "):"");if(r){s=0;while(i=t[s++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");o=e?jQuery.trim(r):"",n.className!==o&&(n.className=o)}}}return this},toggleClass:function(e,t){var n=typeof e;return typeof t=="boolean"&&n==="string"?t?this.addClass(e):this.removeClass(e):jQuery.isFunction(e)?this.each(function(n){jQuery(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var t,r=0,i=jQuery(this),s=e.match(rnotwhite)||[];while(t=s[r++])i.hasClass(t)?i.removeClass(t):i.addClass(t)}else if(n===strundefined||n==="boolean")this.className&&data_priv.set(this,"__className__",this.className),this.className=this.className||e===!1?"":data_priv.get(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(rclass," ").indexOf(t)>=0)return!0;return!1}});var rreturn=/\r/g;jQuery.fn.extend({val:function(e){var t,n,r,i=this[0];if(!arguments.length){if(i)return t=jQuery.valHooks[i.type]||jQuery.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,typeof n=="string"?n.replace(rreturn,""):n==null?"":n);return}return r=jQuery.isFunction(e),this.each(function(n){var i;if(this.nodeType!==1)return;r?i=e.call(this,n,jQuery(this).val()):i=e,i==null?i="":typeof i=="number"?i+="":jQuery.isArray(i)&&(i=jQuery.map(i,function(e){return e==null?"":e+""})),t=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||t.set(this,i,"value")===undefined)this.value=i})}}),jQuery.extend({valHooks:{option:{get:function(e){var t=jQuery.find.attr(e,"value");return t!=null?t:jQuery.trim(jQuery.text(e))}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!jQuery.nodeName(n.parentNode,"optgroup"))){t=jQuery(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n,r,i=e.options,s=jQuery.makeArray(t),o=i.length;while(o--){r=i[o];if(r.selected=jQuery.inArray(r.value,s)>=0)n=!0}return n||(e.selectedIndex=-1),s}}}}),jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={set:function(e,t){if(jQuery.isArray(t))return e.checked=jQuery.inArray(jQuery(e).val(),t)>=0}},support.checkOn||(jQuery.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})}),jQuery.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){jQuery.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),jQuery.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}});var nonce=jQuery.now(),rquery=/\?/;jQuery.parseJSON=function(e){return JSON.parse(e+"")},jQuery.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&jQuery.error("Invalid XML: "+e),t};var rhash=/#.*$/,rts=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg,rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rurl=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,prefilters={},transports={},allTypes="*/".concat("*"),ajaxLocation=window.location.href,ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ajaxLocation,type:"GET",isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ajaxExtend(ajaxExtend(e,jQuery.ajaxSettings),t):ajaxExtend(jQuery.ajaxSettings,e)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(e,t){function S(e,t,s,u){var f,m,g,b,E,S=t;if(y===2)return;y=2,o&&clearTimeout(o),n=undefined,i=u||"",w.readyState=e>0?4:0,f=e>=200&&e<300||e===304,s&&(b=ajaxHandleResponses(l,w,s)),b=ajaxConvert(l,b,w,f);if(f)l.ifModified&&(E=w.getResponseHeader("Last-Modified"),E&&(jQuery.lastModified[r]=E),E=w.getResponseHeader("etag"),E&&(jQuery.etag[r]=E)),e===204||l.type==="HEAD"?S="nocontent":e===304?S="notmodified":(S=b.state,m=b.data,g=b.error,f=!g);else{g=S;if(e||!S)S="error",e<0&&(e=0)}w.status=e,w.statusText=(t||S)+"",f?p.resolveWith(c,[m,S,w]):p.rejectWith(c,[w,S,g]),w.statusCode(v),v=undefined,a&&h.trigger(f?"ajaxSuccess":"ajaxError",[w,l,f?m:g]),d.fireWith(c,[w,S]),a&&(h.trigger("ajaxComplete",[w,l]),--jQuery.active||jQuery.event.trigger("ajaxStop"))}typeof e=="object"&&(t=e,e=undefined),t=t||{};var n,r,i,s,o,u,a,f,l=jQuery.ajaxSetup({},t),c=l.context||l,h=l.context&&(c.nodeType||c.jquery)?jQuery(c):jQuery.event,p=jQuery.Deferred(),d=jQuery.Callbacks("once memory"),v=l.statusCode||{},m={},g={},y=0,b="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(y===2){if(!s){s={};while(t=rheaders.exec(i))s[t[1].toLowerCase()]=t[2]}t=s[e.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return y===2?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return y||(e=g[n]=g[n]||e,m[e]=t),this},overrideMimeType:function(e){return y||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(y<2)for(t in e)v[t]=[v[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||b;return n&&n.abort(t),S(0,t),this}};p.promise(w).complete=d.add,w.success=w.done,w.error=w.fail,l.url=((e||l.url||ajaxLocation)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=jQuery.trim(l.dataType||"*").toLowerCase().match(rnotwhite)||[""],l.crossDomain==null&&(u=rurl.exec(l.url.toLowerCase()),l.crossDomain=!(!u||u[1]===ajaxLocParts[1]&&u[2]===ajaxLocParts[2]&&(u[3]||(u[1]==="http:"?"80":"443"))===(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?"80":"443")))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=jQuery.param(l.data,l.traditional)),inspectPrefiltersOrTransports(prefilters,l,t,w);if(y===2)return w;a=jQuery.event&&l.global,a&&jQuery.active++===0&&jQuery.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!rnoContent.test(l.type),r=l.url,l.hasContent||(l.data&&(r=l.url+=(rquery.test(r)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=rts.test(r)?r.replace(rts,"$1_="+nonce++):r+(rquery.test(r)?"&":"?")+"_="+nonce++)),l.ifModified&&(jQuery.lastModified[r]&&w.setRequestHeader("If-Modified-Since",jQuery.lastModified[r]),jQuery.etag[r]&&w.setRequestHeader("If-None-Match",jQuery.etag[r])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):l.accepts["*"]);for(f in l.headers)w.setRequestHeader(f,l.headers[f]);if(!l.beforeSend||l.beforeSend.call(c,w,l)!==!1&&y!==2){b="abort";for(f in{success:1,error:1,complete:1})w[f](l[f]);n=inspectPrefiltersOrTransports(transports,l,t,w);if(!n)S(-1,"No Transport");else{w.readyState=1,a&&h.trigger("ajaxSend",[w,l]),l.async&&l.timeout>0&&(o=setTimeout(function(){w.abort("timeout")},l.timeout));try{y=1,n.send(m,S)}catch(E){if(!(y<2))throw E;S(-1,E)}}return w}return w.abort()},getJSON:function(e,t,n){return jQuery.get(e,t,n,"json")},getScript:function(e,t){return jQuery.get(e,undefined,t,"script")}}),jQuery.each(["get","post"],function(e,t){jQuery[t]=function(e,n,r,i){return jQuery.isFunction(n)&&(i=i||r,r=n,n=undefined),jQuery.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),jQuery._evalUrl=function(e){return jQuery.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},jQuery.fn.extend({wrapAll:function(e){var t;return jQuery.isFunction(e)?this.each(function(t){jQuery(this).wrapAll(e.call(this,t))}):(this[0]&&(t=jQuery(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return jQuery.isFunction(e)?this.each(function(t){jQuery(this).wrapInner(e.call(this,t))}):this.each(function(){var t=jQuery(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=jQuery.isFunction(e);return this.each(function(n){jQuery(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){jQuery.nodeName(this,"body")||jQuery(this).replaceWith(this.childNodes)}).end()}}),jQuery.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},jQuery.expr.filters.visible=function(e){return!jQuery.expr.filters.hidden(e)};var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;jQuery.param=function(e,t){var n,r=[],i=function(e,t){t=jQuery.isFunction(t)?t():t==null?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};t===undefined&&(t=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional);if(jQuery.isArray(e)||e.jquery&&!jQuery.isPlainObject(e))jQuery.each(e,function(){i(this.name,this.value)});else for(n in e)buildParams(n,e[n],t,i);return r.join("&").replace(r20,"+")},jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=jQuery.prop(this,"elements");return e?jQuery.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(e)&&(this.checked||!rcheckableType.test(e))}).map(function(e,t){var n=jQuery(this).val();return n==null?null:jQuery.isArray(n)?jQuery.map(n,function(e){return{name:t.name,value:e.replace(rCRLF,"\r\n")}}):{name:t.name,value:n.replace(rCRLF,"\r\n")}}).get()}}),jQuery.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var xhrId=0,xhrCallbacks={},xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery.ajaxSettings.xhr();window.attachEvent&&window.attachEvent("onunload",function(){for(var e in xhrCallbacks)xhrCallbacks[e]()}),support.cors=!!xhrSupported&&"withCredentials"in xhrSupported,support.ajax=xhrSupported=!!xhrSupported,jQuery.ajaxTransport(function(e){var t;if(support.cors||xhrSupported&&!e.crossDomain)return{send:function(n,r){var i,s=e.xhr(),o=++xhrId;s.open(e.type,e.url,e.async,e.username,e.password);if(e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");for(i in n)s.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(delete xhrCallbacks[o],t=s.onload=s.onerror=null,e==="abort"?s.abort():e==="error"?r(s.status,s.statusText):r(xhrSuccessStatus[s.status]||s.status,s.statusText,typeof s.responseText=="string"?{text:s.responseText}:undefined,s.getAllResponseHeaders()))}},s.onload=t(),s.onerror=t("error"),t=xhrCallbacks[o]=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}}),jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return jQuery.globalEval(e),e}}}),jQuery.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),jQuery.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=jQuery("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i(e.type==="error"?404:200,e.type)}),document.head.appendChild(t[0])},abort:function(){n&&n()}}}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=oldCallbacks.pop()||jQuery.expando+"_"+nonce++;return this[e]=!0,e}}),jQuery.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,s,o=e.jsonp!==!1&&(rjsonp.test(e.url)?"url":typeof e.data=="string"&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(e.data)&&"data");if(o||e.dataTypes[0]==="jsonp")return r=e.jsonpCallback=jQuery.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(rjsonp,"$1"+r):e.jsonp!==!1&&(e.url+=(rquery.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||jQuery.error(r+" was not called"),s[0]},e.dataTypes[0]="json",i=window[r],window[r]=function(){s=arguments},n.always(function(){window[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,oldCallbacks.push(r)),s&&jQuery.isFunction(i)&&i(s[0]),s=i=undefined}),"script"}),jQuery.parseHTML=function(e,t,n){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t,t=!1),t=t||document;var r=rsingleTag.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=jQuery.buildFragment([e],t,i),i&&i.length&&jQuery(i).remove(),jQuery.merge([],r.childNodes))};var _load=jQuery.fn.load;jQuery.fn.load=function(e,t,n){if(typeof e!="string"&&_load)return _load.apply(this,arguments);var r,i,s,o=this,u=e.indexOf(" ");return u>=0&&(r=jQuery.trim(e.slice(u)),e=e.slice(0,u)),jQuery.isFunction(t)?(n=t,t=undefined):t&&typeof t=="object"&&(i="POST"),o.length>0&&jQuery.ajax({url:e,type:i,dataType:"html",data:t}).done(function(e){s=arguments,o.html(r?jQuery("<div>").append(jQuery.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){o.each(n,s||[e.responseText,t,e])}),this},jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){jQuery.fn[t]=function(e){return this.on(t,e)}}),jQuery.expr.filters.animated=function(e){return jQuery.grep(jQuery.timers,function(t){return e===t.elem}).length};var docElem=window.document.documentElement;jQuery.offset={setOffset:function(e,t,n){var r,i,s,o,u,a,f,l=jQuery.css(e,"position"),c=jQuery(e),h={};l==="static"&&(e.style.position="relative"),u=c.offset(),s=jQuery.css(e,"top"),a=jQuery.css(e,"left"),f=(l==="absolute"||l==="fixed")&&(s+a).indexOf("auto")>-1,f?(r=c.position(),o=r.top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(a)||0),jQuery.isFunction(t)&&(t=t.call(e,n,u)),t.top!=null&&(h.top=t.top-u.top+o),t.left!=null&&(h.left=t.left-u.left+i),"using"in t?t.using.call(e,h):c.css(h)}},jQuery.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){jQuery.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},s=r&&r.ownerDocument;if(!s)return;return t=s.documentElement,jQuery.contains(t,r)?(typeof r.getBoundingClientRect!==strundefined&&(i=r.getBoundingClientRect()),n=getWindow(s),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i},position:function(){if(!this[0])return;var e,t,n=this[0],r={top:0,left:0};return jQuery.css(n,"position")==="fixed"?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),jQuery.nodeName(e[0],"html")||(r=e.offset()),r.top+=jQuery.css(e[0],"borderTopWidth",!0),r.left+=jQuery.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-jQuery.css(n,"marginTop",!0),left:t.left-r.left-jQuery.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||docElem;while(e&&!jQuery.nodeName(e,"html")&&jQuery.css(e,"position")==="static")e=e.offsetParent;return e||docElem})}}),jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;jQuery.fn[e]=function(r){return access(this,function(e,r,i){var s=getWindow(e);if(i===undefined)return s?s[t]:e[r];s?s.scrollTo(n?window.pageXOffset:i,n?i:window.pageYOffset):e[r]=i},e,r,arguments.length,null)}}),jQuery.each(["top","left"],function(e,t){jQuery.cssHooks[t]=addGetHookIf(support.pixelPosition,function(e,n){if(n)return n=curCSS(e,t),rnumnonpx.test(n)?jQuery(e).position()[t]+"px":n})}),jQuery.each({Height:"height",Width:"width"},function(e,t){jQuery.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){jQuery.fn[r]=function(r,i){var s=arguments.length&&(n||typeof r!="boolean"),o=n||(r===!0||i===!0?"margin":"border");return access(this,function(t,n,r){var i;return jQuery.isWindow(t)?t.document.documentElement["client"+e]:t.nodeType===9?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):r===undefined?jQuery.css(t,n,o):jQuery.style(t,n,r,o)},t,s?r:undefined,s,null)}})}),jQuery.fn.size=function(){return this.length},jQuery.fn.andSelf=jQuery.fn.addBack,typeof define=="function"&&define.amd&&define("jquery",[],function(){return jQuery});var _jQuery=window.jQuery,_$=window.$;return jQuery.noConflict=function(e){return window.$===jQuery&&(window.$=_$),e&&window.jQuery===jQuery&&(window.jQuery=_jQuery),jQuery},typeof noGlobal===strundefined&&(window.jQuery=window.$=jQuery),jQuery}),function(e){typeof define=="function"&&define.amd?define("jquery/cookie",["jquery"],e):typeof exports=="object"?e(require("jquery")):e(jQuery)}(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function r(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function s(e){e.indexOf('"')===0&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),u.json?JSON.parse(e):e}catch(n){}}function o(t,n){var r=u.raw?t:s(t);return e.isFunction(n)?n(r):r}var t=/\+/g,u=e.cookie=function(t,s,a){if(s!==undefined&&!e.isFunction(s)){a=e.extend({},u.defaults,a);if(typeof a.expires=="number"){var f=a.expires,l=a.expires=new Date;l.setTime(+l+f*864e5)}return document.cookie=[n(t),"=",i(s),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}var c=t?undefined:{},h=document.cookie?document.cookie.split("; "):[];for(var p=0,d=h.length;p<d;p++){var v=h[p].split("="),m=r(v.shift()),g=v.join("=");if(t&&t===m){c=o(g,s);break}!t&&(g=o(g))!==undefined&&(c[m]=g)}return c};u.defaults={},e.removeCookie=function(t,n){return e.cookie(t)===undefined?!1:(e.cookie(t,"",e.extend({},n,{expires:-1})),!e.cookie(t))}}),window.Modernizr=function(e,t,n){function A(e){f.cssText=e}function O(e,t){return A(p.join(e+";")+(t||""))}function M(e,t){return typeof e===t}function _(e,t){return!!~(""+e).indexOf(t)}function D(e,t){for(var r in e){var i=e[r];if(!_(i,"-")&&f[i]!==n)return t=="pfx"?i:!0}return!1}function P(e,t,r){for(var i in e){var s=t[e[i]];if(s!==n)return r===!1?e[i]:M(s,"function")?s.bind(r||t):s}return!1}function H(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+v.join(r+" ")+r).split(" ");return M(t,"string")||M(t,"undefined")?D(i,t):(i=(e+" "+m.join(r+" ")+r).split(" "),P(i,t,n))}function B(){i.input=function(n){for(var r=0,i=n.length;r<i;r++)w[n[r]]=n[r]in l;return w.list&&(w.list=!!t.createElement("datalist")&&!!e.HTMLDataListElement),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),i.inputtypes=function(e){for(var r=0,i,s,u,a=e.length;r<a;r++)l.setAttribute("type",s=e[r]),i=l.type!=="text",i&&(l.value=c,l.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(s)&&l.style.WebkitAppearance!==n?(o.appendChild(l),u=t.defaultView,i=u.getComputedStyle&&u.getComputedStyle(l,null).WebkitAppearance!=="textfield"&&l.offsetHeight!==0,o.removeChild(l)):/^(search|tel)$/.test(s)||(/^(url|email)$/.test(s)?i=l.checkValidity&&l.checkValidity()===!1:i=l.value!=c)),b[e[r]]=!!i;return b}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var r="2.8.3",i={},s=!0,o=t.documentElement,u="modernizr",a=t.createElement(u),f=a.style,l=t.createElement("input"),c=":)",h={}.toString,p=" -webkit- -moz- -o- -ms- ".split(" "),d="Webkit Moz O ms",v=d.split(" "),m=d.toLowerCase().split(" "),g={svg:"http://www.w3.org/2000/svg"},y={},b={},w={},E=[],S=E.slice,x,T=function(e,n,r,i){var s,a,f,l,c=t.createElement("div"),h=t.body,p=h||t.createElement("body");if(parseInt(r,10))while(r--)f=t.createElement("div"),f.id=i?i[r]:u+(r+1),c.appendChild(f);return s=["&#173;",'<style id="s',u,'">',e,"</style>"].join(""),c.id=u,(h?c:p).innerHTML+=s,p.appendChild(c),h||(p.style.background="",p.style.overflow="hidden",l=o.style.overflow,o.style.overflow="hidden",o.appendChild(p)),a=n(c,e),h?c.parentNode.removeChild(c):(p.parentNode.removeChild(p),o.style.overflow=l),!!a},N=function(t){var n=e.matchMedia||e.msMatchMedia;if(n)return n(t)&&n(t).matches||!1;var r;return T("@media "+t+" { #"+u+" { position: absolute; } }",function(t){r=(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle)["position"]=="absolute"}),r},C=function(){function r(r,i){i=i||t.createElement(e[r]||"div"),r="on"+r;var s=r in i;return s||(i.setAttribute||(i=t.createElement("div")),i.setAttribute&&i.removeAttribute&&(i.setAttribute(r,""),s=M(i[r],"function"),M(i[r],"undefined")||(i[r]=n),i.removeAttribute(r))),i=null,s}var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),k={}.hasOwnProperty,L;!M(k,"undefined")&&!M(k.call,"undefined")?L=function(e,t){return k.call(e,t)}:L=function(e,t){return t in e&&M(e.constructor.prototype[t],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!="function")throw new TypeError;var r=S.call(arguments,1),i=function(){if(this instanceof i){var e=function(){};e.prototype=n.prototype;var s=new e,o=n.apply(s,r.concat(S.call(arguments)));return Object(o)===o?o:s}return n.apply(t,r.concat(S.call(arguments)))};return i}),y.flexbox=function(){return H("flexWrap")},y.flexboxlegacy=function(){return H("boxDirection")},y.canvas=function(){var e=t.createElement("canvas");return!!e.getContext&&!!e.getContext("2d")},y.canvastext=function(){return!!i.canvas&&!!M(t.createElement("canvas").getContext("2d").fillText,"function")},y.webgl=function(){return!!e.WebGLRenderingContext},y.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:T(["@media (",p.join("touch-enabled),("),u,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=e.offsetTop===9}),n},y.geolocation=function(){return"geolocation"in navigator},y.postmessage=function(){return!!e.postMessage},y.websqldatabase=function(){return!!e.openDatabase},y.indexedDB=function(){return!!H("indexedDB",e)},y.hashchange=function(){return C("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},y.history=function(){return!!e.history&&!!history.pushState},y.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},y.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},y.rgba=function(){return A("background-color:rgba(150,255,150,.5)"),_(f.backgroundColor,"rgba")},y.hsla=function(){return A("background-color:hsla(120,40%,100%,.5)"),_(f.backgroundColor,"rgba")||_(f.backgroundColor,"hsla")},y.multiplebgs=function(){return A("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(f.background)},y.backgroundsize=function(){return H("backgroundSize")},y.borderimage=function(){return H("borderImage")},y.borderradius=function(){return H("borderRadius")},y.boxshadow=function(){return H("boxShadow")},y.textshadow=function(){return t.createElement("div").style.textShadow===""},y.opacity=function(){return O("opacity:.55"),/^0.55$/.test(f.opacity)},y.cssanimations=function(){return H("animationName")},y.csscolumns=function(){return H("columnCount")},y.cssgradients=function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return A((e+"-webkit- ".split(" ").join(t+e)+p.join(n+e)).slice(0,-e.length)),_(f.backgroundImage,"gradient")},y.cssreflections=function(){return H("boxReflect")},y.csstransforms=function(){return!!H("transform")},y.csstransforms3d=function(){var e=!!H("perspective");return e&&"webkitPerspective"in o.style&&T("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t,n){e=t.offsetLeft===9&&t.offsetHeight===3}),e},y.csstransitions=function(){return H("transition")},y.fontface=function(){var e;return T('@font-face {font-family:"font";src:url("https://")}',function(n,r){var i=t.getElementById("smodernizr"),s=i.sheet||i.styleSheet,o=s?s.cssRules&&s.cssRules[0]?s.cssRules[0].cssText:s.cssText||"":"";e=/src/i.test(o)&&o.indexOf(r.split(" ")[0])===0}),e},y.generatedcontent=function(){var e;return T(["#",u,"{font:0/0 a}#",u,':after{content:"',c,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){e=t.offsetHeight>=3}),e},y.video=function(){var e=t.createElement("video"),n=!1;try{if(n=!!e.canPlayType)n=new Boolean(n),n.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(r){}return n},y.audio=function(){var e=t.createElement("audio"),n=!1;try{if(n=!!e.canPlayType)n=new Boolean(n),n.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(r){}return n},y.localstorage=function(){try{return localStorage.setItem(u,u),localStorage.removeItem(u),!0}catch(e){return!1}},y.sessionstorage=function(){try{return sessionStorage.setItem(u,u),sessionStorage.removeItem(u),!0}catch(e){return!1}},y.webworkers=function(){return!!e.Worker},y.applicationcache=function(){return!!e.applicationCache},y.svg=function(){return!!t.createElementNS&&!!t.createElementNS(g.svg,"svg").createSVGRect},y.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==g.svg},y.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(h.call(t.createElementNS(g.svg,"animate")))},y.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(h.call(t.createElementNS(g.svg,"clipPath")))};for(var j in y)L(y,j)&&(x=j.toLowerCase(),i[x]=y[j](),E.push((i[x]?"":"no-")+x));return i.input||B(),i.addTest=function(e,t){if(typeof e=="object")for(var r in e)L(e,r)&&i.addTest(r,e[r]);else{e=e.toLowerCase();if(i[e]!==n)return i;t=typeof t=="function"?t():t,typeof s!="undefined"&&s&&(o.className+=" "+(t?"":"no-")+e),i[e]=t}return i},A(""),a=l=null,function(e,t){function c(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function h(){var e=y.elements;return typeof e=="string"?e.split(" "):e}function p(e){var t=f[e[u]];return t||(t={},a++,e[u]=a,f[a]=t),t}function d(e,n,r){n||(n=t);if(l)return n.createElement(e);r||(r=p(n));var o;return r.cache[e]?o=r.cache[e].cloneNode():s.test(e)?o=(r.cache[e]=r.createElem(e)).cloneNode():o=r.createElem(e),o.canHaveChildren&&!i.test(e)&&!o.tagUrn?r.frag.appendChild(o):o}function v(e,n){e||(e=t);if(l)return e.createDocumentFragment();n=n||p(e);var r=n.frag.cloneNode(),i=0,s=h(),o=s.length;for(;i<o;i++)r.createElement(s[i]);return r}function m(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return y.shivMethods?d(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(y,t.frag)}function g(e){e||(e=t);var n=p(e);return y.shivCSS&&!o&&!n.hasCSS&&(n.hasCSS=!!c(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||m(e,n),e}var n="3.7.0",r=e.html5||{},i=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,s=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,o,u="_html5shiv",a=0,f={},l;(function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",o="hidden"in e,l=e.childNodes.length==1||function(){t.createElement("a");var e=t.createDocumentFragment();return typeof e.cloneNode=="undefined"||typeof e.createDocumentFragment=="undefined"||typeof e.createElement=="undefined"}()}catch(n){o=!0,l=!0}})();var y={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:n,shivCSS:r.shivCSS!==!1,supportsUnknownElements:l,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:g,createElement:d,createDocumentFragment:v};e.html5=y,g(t)}(this,t),i._version=r,i._prefixes=p,i._domPrefixes=m,i._cssomPrefixes=v,i.mq=N,i.hasEvent=C,i.testProp=function(e){return D([e])},i.testAllProps=H,i.testStyles=T,i.prefixed=function(e,t,n){return t?H(e,t,n):H(e,"pfx")},o.className=o.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(s?" js "+E.join(" "):""),i}(this,this.document),define("modernizr",function(){});var swfobject=function(){function k(){if(b||!document.getElementsByTagName("body")[0])return;try{var e,t=W("span");t.style.display="none",e=a.getElementsByTagName("body")[0].appendChild(t),e.parentNode.removeChild(e),e=null,t=null}catch(n){return}b=!0;var r=c.length;for(var i=0;i<r;i++)c[i]()}function L(e){b?e():c[c.length]=e}function A(t){if(typeof u.addEventListener!=e)u.addEventListener("load",t,!1);else if(typeof a.addEventListener!=e)a.addEventListener("load",t,!1);else if(typeof u.attachEvent!=e)V(u,"onload",t);else if(typeof u.onload=="function"){var n=u.onload;u.onload=function(){n(),t()}}else u.onload=t}function O(){var n=a.getElementsByTagName("body")[0],r=W(t);r.setAttribute("style","visibility: hidden;"),r.setAttribute("type",i);var s=n.appendChild(r);if(s){var o=0;(function u(){if(typeof s.GetVariable!=e)try{var t=s.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),N.pv=[X(t[0]),X(t[1]),X(t[2])])}catch(i){N.pv=[8,0,0]}else if(o<10){o++,setTimeout(u,10);return}n.removeChild(r),s=null,M()})()}else M()}function M(){var t=h.length;if(t>0)for(var n=0;n<t;n++){var r=h[n].id,i=h[n].callbackFn,s={success:!1,id:r};if(N.pv[0]>0){var o=z(r);if(o)if($(h[n].swfVersion)&&!(N.wk&&N.wk<312))K(r,!0),i&&(s.success=!0,s.ref=_(r),s.id=r,i(s));else if(h[n].expressInstall&&D()){var u={};u.data=h[n].expressInstall,u.width=o.getAttribute("width")||"0",u.height=o.getAttribute("height")||"0",o.getAttribute("class")&&(u.styleclass=o.getAttribute("class")),o.getAttribute("align")&&(u.align=o.getAttribute("align"));var a={},f=o.getElementsByTagName("param"),l=f.length;for(var c=0;c<l;c++)f[c].getAttribute("name").toLowerCase()!="movie"&&(a[f[c].getAttribute("name")]=f[c].getAttribute("value"));P(u,a,r,i)}else H(o),i&&i(s)}else{K(r,!0);if(i){var p=_(r);p&&typeof p.SetVariable!=e&&(s.success=!0,s.ref=p,s.id=p.id),i(s)}}}}function _(n){var r=null,i=z(n);return i&&i.nodeName.toUpperCase()==="OBJECT"&&(typeof i.SetVariable!==e?r=i:r=i.getElementsByTagName(t)[0]||i),r}function D(){return!w&&$("6.0.65")&&(N.win||N.mac)&&!(N.wk&&N.wk<312)}function P(t,n,r,i){var o=z(r);r=U(r),w=!0,g=i||null,y={success:!1,id:r};if(o){o.nodeName.toUpperCase()=="OBJECT"?(v=B(o),m=null):(v=o,m=r),t.id=s;if(typeof t.width==e||!/%$/.test(t.width)&&X(t.width)<310)t.width="310";if(typeof t.height==e||!/%$/.test(t.height)&&X(t.height)<137)t.height="137";var f=N.ie?"ActiveX":"PlugIn",l="MMredirectURL="+encodeURIComponent(u.location.toString().replace(/&/g,"%26"))+"&MMplayerType="+f+"&MMdoctitle="+encodeURIComponent(a.title.slice(0,47)+" - Flash Player Installation");typeof n.flashvars!=e?n.flashvars+="&"+l:n.flashvars=l;if(N.ie&&o.readyState!=4){var c=W("div");r+="SWFObjectNew",c.setAttribute("id",r),o.parentNode.insertBefore(c,o),o.style.display="none",q(o)}F(t,n,r)}}function H(e){if(N.ie&&e.readyState!=4){e.style.display="none";var t=W("div");e.parentNode.insertBefore(t,e),t.parentNode.replaceChild(B(e),t),q(e)}else e.parentNode.replaceChild(B(e),e)}function B(e){var n=W("div");if(N.win&&N.ie)n.innerHTML=e.innerHTML;else{var r=e.getElementsByTagName(t)[0];if(r){var i=r.childNodes;if(i){var s=i.length;for(var o=0;o<s;o++)(i[o].nodeType!=1||i[o].nodeName!="PARAM")&&i[o].nodeType!=8&&n.appendChild(i[o].cloneNode(!0))}}}return n}function j(e,t){var n=W("div");return n.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='"+e+"'>"+t+"</object>",n.firstChild}function F(n,r,s){var o,u=z(s);s=U(s);if(N.wk&&N.wk<312)return o;if(u){var a=N.ie?W("div"):W(t),f,l,c;typeof n.id==e&&(n.id=s);for(c in r)r.hasOwnProperty(c)&&c.toLowerCase()!=="movie"&&I(a,c,r[c]);N.ie&&(a=j(n.data,a.innerHTML));for(f in n)n.hasOwnProperty(f)&&(l=f.toLowerCase(),l==="styleclass"?a.setAttribute("class",n[f]):l!=="classid"&&l!=="data"&&a.setAttribute(f,n[f]));N.ie?p[p.length]=n.id:(a.setAttribute("type",i),a.setAttribute("data",n.data)),u.parentNode.replaceChild(a,u),o=a}return o}function I(e,t,n){var r=W("param");r.setAttribute("name",t),r.setAttribute("value",n),e.appendChild(r)}function q(e){var t=z(e);t&&t.nodeName.toUpperCase()=="OBJECT"&&(N.ie?(t.style.display="none",function n(){if(t.readyState==4){for(var e in t)typeof t[e]=="function"&&(t[e]=null);t.parentNode.removeChild(t)}else setTimeout(n,10)}()):t.parentNode.removeChild(t))}function R(e){return e&&e.nodeType&&e.nodeType===1}function U(e){return R(e)?e.id:e}function z(e){if(R(e))return e;var t=null;try{t=a.getElementById(e)}catch(n){}return t}function W(e){return a.createElement(e)}function X(e){return parseInt(e,10)}function V(e,t,n){e.attachEvent(t,n),d[d.length]=[e,t,n]}function $(e){e+="";var t=N.pv,n=e.split(".");return n[0]=X(n[0]),n[1]=X(n[1])||0,n[2]=X(n[2])||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]?!0:!1}function J(t,n,r,i){var s=a.getElementsByTagName("head")[0];if(!s)return;var o=typeof r=="string"?r:"screen";i&&(E=null,S=null);if(!E||S!=o){var u=W("style");u.setAttribute("type","text/css"),u.setAttribute("media",o),E=s.appendChild(u),N.ie&&typeof a.styleSheets!=e&&a.styleSheets.length>0&&(E=a.styleSheets[a.styleSheets.length-1]),S=o}E&&(typeof E.addRule!=e?E.addRule(t,n):typeof a.createTextNode!=e&&E.appendChild(a.createTextNode(t+" {"+n+"}")))}function K(e,t){if(!x)return;var n=t?"visible":"hidden",r=z(e);b&&r?r.style.visibility=n:typeof e=="string"&&J("#"+e,"visibility:"+n)}function Q(t){var n=/[\\\"<>\.;]/,r=n.exec(t)!=null;return r&&typeof encodeURIComponent!=e?encodeURIComponent(t):t}var e="undefined",t="object",n="Shockwave Flash",r="ShockwaveFlash.ShockwaveFlash",i="application/x-shockwave-flash",s="SWFObjectExprInst",o="onreadystatechange",u=window,a=document,f=navigator,l=!1,c=[],h=[],p=[],d=[],v,m,g,y,b=!1,w=!1,E,S,x=!0,T=!1,N=function(){var s=typeof a.getElementById!=e&&typeof a.getElementsByTagName!=e&&typeof a.createElement!=e,o=f.userAgent.toLowerCase(),c=f.platform.toLowerCase(),h=c?/win/.test(c):/win/.test(o),p=c?/mac/.test(c):/mac/.test(o),d=/webkit/.test(o)?parseFloat(o.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,v=f.appName==="Microsoft Internet Explorer",m=[0,0,0],g=null;if(typeof f.plugins!=e&&typeof f.plugins[n]==t)g=f.plugins[n].description,g&&typeof f.mimeTypes!=e&&f.mimeTypes[i]&&f.mimeTypes[i].enabledPlugin&&(l=!0,v=!1,g=g.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),m[0]=X(g.replace(/^(.*)\..*$/,"$1")),m[1]=X(g.replace(/^.*\.(.*)\s.*$/,"$1")),m[2]=/[a-zA-Z]/.test(g)?X(g.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0);else if(typeof u.ActiveXObject!=e)try{var y=new ActiveXObject(r);y&&(g=y.GetVariable("$version"),g&&(v=!0,g=g.split(" ")[1].split(","),m=[X(g[0]),X(g[1]),X(g[2])]))}catch(b){}return{w3:s,pv:m,wk:d,ie:v,win:h,mac:p}}(),C=function(){if(!N.w3)return;(typeof a.readyState!=e&&(a.readyState==="complete"||a.readyState==="interactive")||typeof a.readyState==e&&(a.getElementsByTagName("body")[0]||a.body))&&k(),b||(typeof a.addEventListener!=e&&a.addEventListener("DOMContentLoaded",k,!1),N.ie&&(a.attachEvent(o,function t(){a.readyState=="complete"&&(a.detachEvent(o,t),k())}),u==top&&function n(){if(b)return;try{a.documentElement.doScroll("left")}catch(e){setTimeout(n,0);return}k()}()),N.wk&&function r(){if(b)return;if(!/loaded|complete/.test(a.readyState)){setTimeout(r,0);return}k()}())}();c[0]=function(){l?O():M()};var G=function(){N.ie&&window.attachEvent("onunload",function(){var e=d.length;for(var t=0;t<e;t++)d[t][0].detachEvent(d[t][1],d[t][2]);var n=p.length;for(var r=0;r<n;r++)q(p[r]);for(var i in N)N[i]=null;N=null;for(var s in swfobject)swfobject[s]=null;swfobject=null})}();return{registerObject:function(e,t,n,r){if(N.w3&&e&&t){var i={};i.id=e,i.swfVersion=t,i.expressInstall=n,i.callbackFn=r,h[h.length]=i,K(e,!1)}else r&&r({success:!1,id:e})},getObjectById:function(e){if(N.w3)return _(e)},embedSWF:function(n,r,i,s,o,u,a,f,l,c){var h=U(r),p={success:!1,id:h};N.w3&&!(N.wk&&N.wk<312)&&n&&r&&i&&s&&o?(K(h,!1),L(function(){i+="",s+="";var d={};if(l&&typeof l===t)for(var v in l)d[v]=l[v];d.data=n,d.width=i,d.height=s;var m={};if(f&&typeof f===t)for(var g in f)m[g]=f[g];if(a&&typeof a===t)for(var y in a)if(a.hasOwnProperty(y)){var b=T?encodeURIComponent(y):y,w=T?encodeURIComponent(a[y]):a[y];typeof m.flashvars!=e?m.flashvars+="&"+b+"="+w:m.flashvars=b+"="+w}if($(o)){var E=F(d,m,r);d.id==h&&K(h,!0),p.success=!0,p.ref=E,p.id=E.id}else{if(u&&D()){d.data=u,P(d,m,r,c);return}K(h,!0)}c&&c(p)})):c&&c(p)},switchOffAutoHideShow:function(){x=!1},enableUriEncoding:function(t){T=typeof t===e?!0:t},ua:N,getFlashPlayerVersion:function(){return{major:N.pv[0],minor:N.pv[1],release:N.pv[2]}},hasFlashPlayerVersion:$,createSWF:function(e,t,n){return N.w3?F(e,t,n):undefined},showExpressInstall:function(e,t,n,r){N.w3&&D()&&P(e,t,n,r)},removeSWF:function(e){N.w3&&q(e)},createCSS:function(e,t,n,r){N.w3&&J(e,t,n,r)},addDomLoadEvent:L,addLoadEvent:A,getQueryParamValue:function(e){var t=a.location.search||a.location.hash;if(t){/\?/.test(t)&&(t=t.split("?")[1]);if(e==null)return Q(t);var n=t.split("&");for(var r=0;r<n.length;r++)if(n[r].substring(0,n[r].indexOf("="))==e)return Q(n[r].substring(n[r].indexOf("=")+1))}return""},expressInstallCallback:function(){if(w){var e=z(s);e&&v&&(e.parentNode.replaceChild(v,e),m&&(K(m,!0),N.ie&&(v.style.display="block")),g&&g(y)),w=!1}},version:"2.3"}}();define("swfobject",function(e){return function(){var t,n;return t||e.swfobject}}(this)),function(){function _t(t,n){if(t!==n){var r=t===null,i=t===e,s=t===t,o=n===null,u=n===e,a=n===n;if(t>n&&!o||!s||r&&!u&&a||i&&a)return 1;if(t<n&&!r||!a||o&&!i&&s||u&&s)return-1}return 0}function Dt(e,t,n){var r=e.length,i=n?r:-1;while(n?i--:++i<r)if(t(e[i],i,e))return i;return-1}function Pt(e,t,n){if(t!==t)return Xt(e,n);var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function Ht(e){return typeof e=="function"||!1}function Bt(e){return e==null?"":e+""}function jt(e,t){var n=-1,r=e.length;while(++n<r&&t.indexOf(e.charAt(n))>-1);return n}function Ft(e,t){var n=e.length;while(n--&&t.indexOf(e.charAt(n))>-1);return n}function It(e,t){return _t(e.criteria,t.criteria)||e.index-t.index}function qt(e,t,n){var r=-1,i=e.criteria,s=t.criteria,o=i.length,u=n.length;while(++r<o){var a=_t(i[r],s[r]);if(a){if(r>=u)return a;var f=n[r];return a*(f==="asc"||f===!0?1:-1)}}return e.index-t.index}function Rt(e){return bt[e]}function Ut(e){return wt[e]}function zt(e,t,n){return t?e=xt[e]:n&&(e=Tt[e]),"\\"+e}function Wt(e){return"\\"+Tt[e]}function Xt(e,t,n){var r=e.length,i=t+(n?0:-1);while(n?i--:++i<r){var s=e[i];if(s!==s)return i}return-1}function Vt(e){return!!e&&typeof e=="object"}function $t(e){return e<=160&&e>=9&&e<=13||e==32||e==160||e==5760||e==6158||e>=8192&&(e<=8202||e==8232||e==8233||e==8239||e==8287||e==12288||e==65279)}function Jt(e,t){var n=-1,r=e.length,i=-1,s=[];while(++n<r)e[n]===t&&(e[n]=b,s[++i]=n);return s}function Kt(e,t){var n,r=-1,i=e.length,s=-1,o=[];while(++r<i){var u=e[r],a=t?t(u,r,e):u;if(!r||n!==a)n=a,o[++s]=u}return o}function Qt(e){var t=-1,n=e.length;while(++t<n&&$t(e.charCodeAt(t)));return t}function Gt(e){var t=e.length;while(t--&&$t(e.charCodeAt(t)));return t}function Yt(e){return Et[e]}function Zt(C){function Hn(e){if(Vt(e)&&!mu(e)&&!(e instanceof In)){if(e instanceof jn)return e;if($t.call(e,"__chain__")&&$t.call(e,"__wrapped__"))return gs(e)}return new jn(e)}function Bn(){}function jn(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function In(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ln,this.__views__=[]}function qn(){var e=new In(this.__wrapped__);return e.__actions__=Yn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Yn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Yn(this.__views__),e}function Rn(){if(this.__filtered__){var e=new In(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Un(){var e=this.__wrapped__.value(),t=this.__dir__,n=mu(e),r=t<0,i=n?e.length:0,s=Ki(0,i,this.__views__),o=s.start,u=s.end,a=u-o,f=r?u:o-1,l=this.__iteratees__,c=l.length,h=0,p=xn(a,this.__takeCount__);if(!n||i<v||i==a&&p==a)return ii(r&&n?e.reverse():e,this.__actions__);var d=[];e:while(a--&&h<p){f+=t;var y=-1,b=e[f];while(++y<c){var w=l[y],E=w.iteratee,S=w.type,x=E(b);if(S==g)b=x;else if(!x){if(S==m)continue e;break e}}d[h++]=b}return d}function zn(){this.__data__={}}function Wn(e){return this.has(e)&&delete this.__data__[e]}function Xn(t){return t=="__proto__"?e:this.__data__[t]}function Vn(e){return e!="__proto__"&&$t.call(this.__data__,e)}function $n(e,t){return e!="__proto__"&&(this.__data__[e]=t),this}function Jn(e){var t=e?e.length:0;this.data={hash:gn(null),set:new cn};while(t--)this.push(e[t])}function Kn(e,t){var n=e.data,r=typeof t=="string"||Nu(t)?n.set.has(t):n.hash[t];return r?0:-1}function Qn(e){var t=this.data;typeof e=="string"||Nu(e)?t.set.add(e):t.hash[e]=!0}function Gn(e,t){var n=-1,r=e.length,i=-1,s=t.length,o=O(r+s);while(++n<r)o[n]=e[n];while(++i<s)o[n++]=t[i];return o}function Yn(e,t){var n=-1,r=e.length;t||(t=O(r));while(++n<r)t[n]=e[n];return t}function Zn(e,t){var n=-1,r=e.length;while(++n<r)if(t(e[n],n,e)===!1)break;return e}function er(e,t){var n=e.length;while(n--)if(t(e[n],n,e)===!1)break;return e}function tr(e,t){var n=-1,r=e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function nr(e,t,n,r){var i=-1,s=e.length,o=r,u=o;while(++i<s){var a=e[i],f=+t(a);n(f,o)&&(o=f,u=a)}return u}function rr(e,t){var n=-1,r=e.length,i=-1,s=[];while(++n<r){var o=e[n];t(o,n,e)&&(s[++i]=o)}return s}function ir(e,t){var n=-1,r=e.length,i=O(r);while(++n<r)i[n]=t(e[n],n,e);return i}function sr(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function or(e,t,n,r){var i=-1,s=e.length;r&&s&&(n=e[++i]);while(++i<s)n=t(n,e[i],i,e);return n}function ur(e,t,n,r){var i=e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function ar(e,t){var n=-1,r=e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}function fr(e,t){var n=e.length,r=0;while(n--)r+=+t(e[n])||0;return r}function lr(t,n){return t===e?n:t}function cr(t,n,r,i){return t===e||!$t.call(i,r)?n:t}function hr(t,n,r){var i=-1,s=ta(n),o=s.length;while(++i<o){var u=s[i],a=t[u],f=r(a,n[u],u,t,n);if((f===f?f!==a:a===a)||a===e&&!(u in t))t[u]=f}return t}function pr(e,t){return t==null?e:vr(t,ta(t),e)}function dr(t,n){var r=-1,i=t==null,s=!i&&es(t),o=s?t.length:0,u=n.length,a=O(u);while(++r<u){var f=n[r];s?a[r]=ts(f,o)?t[f]:e:a[r]=i?e:t[f]}return a}function vr(e,t,n){n||(n={});var r=-1,i=t.length;while(++r<i){var s=t[r];n[s]=e[s]}return n}function mr(t,n,r){var i=typeof t;return i=="function"?n===e?t:ui(t,n,r):t==null?qa:i=="object"?qr(t):n===e?Ja(t):Rr(t,n)}function gr(t,n,r,i,s,o,u){var a;r&&(a=s?r(t,i,s):r(t));if(a!==e)return a;if(!Nu(t))return t;var f=mu(t);if(f){a=Qi(t);if(!n)return Yn(t,a)}else{var l=nn.call(t),c=l==N;if(!(l==L||l==w||c&&!s))return yt[l]?Yi(t,l,n):s?t:{};a=Gi(c?{}:t);if(!n)return pr(a,t)}o||(o=[]),u||(u=[]);var h=o.length;while(h--)if(o[h]==t)return u[h];return o.push(t),u.push(a),(f?Zn:_r)(t,function(e,i){a[i]=gr(e,n,r,i,t,o,u)}),a}function br(t,n,r){if(typeof t!="function")throw new Ct(y);return hn(function(){t.apply(e,r)},n)}function wr(e,t){var n=e?e.length:0,r=[];if(!n)return r;var i=-1,s=Xi(),o=s==Pt,u=o&&t.length>=v?mi(t):null,a=t.length;u&&(s=Kn,o=!1,t=u);e:while(++i<n){var f=e[i];if(o&&f===f){var l=a;while(l--)if(t[l]===f)continue e;r.push(f)}else s(t,f,0)<0&&r.push(f)}return r}function xr(e,t){var n=!0;return Er(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Tr(e,t,n,r){var i=r,s=i;return Er(e,function(e,o,u){var a=+t(e,o,u);if(n(a,i)||a===r&&a===s)i=a,s=e}),s}function Nr(t,n,r,i){var s=t.length;r=r==null?0:+r||0,r<0&&(r=-r>s?0:s+r),i=i===e||i>s?s:+i||0,i<0&&(i+=s),s=r>i?0:i>>>0,r>>>=0;while(r<s)t[r++]=n;return t}function Cr(e,t){var n=[];return Er(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function kr(e,t,n,r){var i;return n(e,function(e,n,s){if(t(e,n,s))return i=r?n:e,!1}),i}function Lr(e,t,n,r){r||(r=[]);var i=-1,s=e.length;while(++i<s){var o=e[i];Vt(o)&&es(o)&&(n||mu(o)||vu(o))?t?Lr(o,t,n,r):sr(r,o):n||(r[r.length]=o)}return r}function Mr(e,t){return Ar(e,t,na)}function _r(e,t){return Ar(e,t,ta)}function Dr(e,t){return Or(e,t,ta)}function Pr(e,t){var n=-1,r=t.length,i=-1,s=[];while(++n<r){var o=t[n];Tu(e[o])&&(s[++i]=o)}return s}function Hr(t,n,r){if(t==null)return;r!==e&&r in vs(t)&&(n=[r]);var i=0,s=n.length;while(t!=null&&i<s)t=t[n[i++]];return i&&i==s?t:e}function Br(e,t,n,r,i,s){return e===t?!0:e==null||t==null||!Nu(e)&&!Vt(t)?e!==e&&t!==t:jr(e,t,Br,n,r,i,s)}function jr(e,t,n,r,i,s,o){var u=mu(e),a=mu(t),f=E,l=E;u||(f=nn.call(e),f==w?f=L:f!=L&&(u=Pu(e))),a||(l=nn.call(t),l==w?l=L:l!=L&&(a=Pu(t)));var c=f==L,h=l==L,p=f==l;if(p&&!u&&!c)return qi(e,t,f);if(!i){var d=c&&$t.call(e,"__wrapped__"),v=h&&$t.call(t,"__wrapped__");if(d||v)return n(d?e.value():e,v?t.value():t,r,i,s,o)}if(!p)return!1;s||(s=[]),o||(o=[]);var m=s.length;while(m--)if(s[m]==e)return o[m]==t;s.push(e),o.push(t);var g=(u?Ii:Ri)(e,t,n,r,i,s,o);return s.pop(),o.pop(),g}function Fr(t,n,r){var i=n.length,s=i,o=!r;if(t==null)return!s;t=vs(t);while(i--){var u=n[i];if(o&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}while(++i<s){u=n[i];var a=u[0],f=t[a],l=u[1];if(o&&u[2]){if(f===e&&!(a in t))return!1}else{var c=r?r(f,l,a):e;if(c===e?!Br(l,f,r,!0):!c)return!1}}return!0}function Ir(e,t){var n=-1,r=es(e)?O(e.length):[];return Er(e,function(e,i,s){r[++n]=t(e,i,s)}),r}function qr(t){var n=$i(t);if(n.length==1&&n[0][2]){var r=n[0][0],i=n[0][1];return function(t){return t==null?!1:t[r]===i&&(i!==e||r in vs(t))}}return function(e){return Fr(e,n)}}function Rr(t,n){var r=mu(t),i=rs(t)&&os(n),s=t+"";return t=ms(t),function(o){if(o==null)return!1;var u=s;o=vs(o);if((r||!i)&&!(u in o)){o=t.length==1?o:Hr(o,Qr(t,0,-1));if(o==null)return!1;u=Ps(t),o=vs(o)}return o[u]===n?n!==e||u in o:Br(n,o[u],e,!0)}}function Ur(t,n,r,i,s){if(!Nu(t))return t;var o=es(n)&&(mu(n)||Pu(n)),u=o?e:ta(n);return Zn(u||n,function(a,f){u&&(f=a,a=n[f]);if(Vt(a))i||(i=[]),s||(s=[]),zr(t,n,f,Ur,r,i,s);else{var l=t[f],c=r?r(l,a,f,t,n):e,h=c===e;h&&(c=a),(c!==e||o&&!(f in t))&&(h||(c===c?c!==l:l===l))&&(t[f]=c)}}),t}function zr(t,n,r,i,s,o,u){var a=o.length,f=n[r];while(a--)if(o[a]==f){t[r]=u[a];return}var l=t[r],c=s?s(l,f,r,t,n):e,h=c===e;h&&(c=f,es(f)&&(mu(f)||Pu(f))?c=mu(l)?l:es(l)?Yn(l):[]:Mu(f)||vu(f)?c=vu(l)?Iu(l):Mu(l)?l:{}:h=!1),o.push(f),u.push(c);if(h)t[r]=i(c,f,s,o,u);else if(c===c?c!==l:l===l)t[r]=c}function Wr(t){return function(n){return n==null?e:n[t]}}function Xr(e){var t=e+"";return e=ms(e),function(n){return Hr(n,e,t)}}function Vr(e,t){var n=e?t.length:0;while(n--){var r=t[n];if(r!=i&&ts(r)){var i=r;pn.call(e,r,1)}}return e}function $r(e,t){return e+yn(Cn()*(t-e+1))}function Jr(e,t,n,r,i){return i(e,function(e,i,s){n=r?(r=!1,e):t(n,e,i,s)}),n}function Qr(t,n,r){var i=-1,s=t.length;n=n==null?0:+n||0,n<0&&(n=-n>s?0:s+n),r=r===e||r>s?s:+r||0,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;var o=O(s);while(++i<s)o[i]=t[i+n];return o}function Gr(e,t){var n;return Er(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Yr(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Zr(e,t,n){var r=Ui(),i=-1;t=ir(t,function(e){return r(e)});var s=Ir(e,function(e){var n=ir(t,function(t){return t(e)});return{criteria:n,index:++i,value:e}});return Yr(s,function(e,t){return qt(e,t,n)})}function ei(e,t){var n=0;return Er(e,function(e,r,i){n+=+t(e,r,i)||0}),n}function ti(e,t){var n=-1,r=Xi(),i=e.length,s=r==Pt,o=s&&i>=v,u=o?mi():null,a=[];u?(r=Kn,s=!1):(o=!1,u=t?[]:a);e:while(++n<i){var f=e[n],l=t?t(f,n,e):f;if(s&&f===f){var c=u.length;while(c--)if(u[c]===l)continue e;t&&u.push(l),a.push(f)}else r(u,l,0)<0&&((t||o)&&u.push(l),a.push(f))}return a}function ni(e,t){var n=-1,r=t.length,i=O(r);while(++n<r)i[n]=e[t[n]];return i}function ri(e,t,n,r){var i=e.length,s=r?i:-1;while((r?s--:++s<i)&&t(e[s],s,e));return n?Qr(e,r?0:s,r?s+1:i):Qr(e,r?s+1:0,r?i:s)}function ii(e,t){var n=e;n instanceof In&&(n=n.value());var r=-1,i=t.length;while(++r<i){var s=t[r];n=s.func.apply(s.thisArg,sr([n],s.args))}return n}function si(e,t,n){var r=0,i=e?e.length:r;if(typeof t=="number"&&t===t&&i<=Mn){while(r<i){var s=r+i>>>1,o=e[s];(n?o<=t:o<t)&&o!==null?r=s+1:i=s}return i}return oi(e,t,qa,n)}function oi(t,n,r,i){n=r(n);var s=0,o=t?t.length:0,u=n!==n,a=n===null,f=n===e;while(s<o){var l=yn((s+o)/2),c=r(t[l]),h=c!==e,p=c===c;if(u)var d=p||i;else a?d=p&&h&&(i||c!=null):f?d=p&&(i||h):c==null?d=!1:d=i?c<=n:c<n;d?s=l+1:o=l}return xn(o,On)}function ui(t,n,r){if(typeof t!="function")return qa;if(n===e)return t;switch(r){case 1:return function(e){return t.call(n,e)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,s){return t.call(n,e,r,i,s)};case 5:return function(e,r,i,s,o){return t.call(n,e,r,i,s,o)}}return function(){return t.apply(n,arguments)}}function ai(e){var t=new on(e.byteLength),n=new dn(t);return n.set(new dn(e)),t}function fi(e,t,n){var r=n.length,i=-1,s=Sn(e.length-r,0),o=-1,u=t.length,a=O(u+s);while(++o<u)a[o]=t[o];while(++i<r)a[n[i]]=e[i];while(s--)a[o++]=e[i++];return a}function li(e,t,n){var r=-1,i=n.length,s=-1,o=Sn(e.length-i,0),u=-1,a=t.length,f=O(o+a);while(++s<o)f[s]=e[s];var l=s;while(++u<a)f[l+u]=t[u];while(++r<i)f[l+n[r]]=e[s++];return f}function ci(e,t){return function(n,r,i){var s=t?t():{};r=Ui(r,i,3);if(mu(n)){var o=-1,u=n.length;while(++o<u){var a=n[o];e(s,a,r(a,o,n),n)}}else Er(n,function(t,n,i){e(s,t,r(t,n,i),i)});return s}}function hi(t){return uu(function(n,r){var i=-1,s=n==null?0:r.length,o=s>2?r[s-2]:e,u=s>2?r[2]:e,a=s>1?r[s-1]:e;typeof o=="function"?(o=ui(o,a,5),s-=2):(o=typeof a=="function"?a:e,s-=o?1:0),u&&ns(r[0],r[1],u)&&(o=s<3?e:o,s=1);while(++i<s){var f=r[i];f&&t(n,f,o)}return n})}function pi(e,t){return function(n,r){var i=n?Vi(n):0;if(!ss(i))return e(n,r);var s=t?i:-1,o=vs(n);while(t?s--:++s<i)if(r(o[s],s,o)===!1)break;return n}}function di(e){return function(t,n,r){var i=vs(t),s=r(t),o=s.length,u=e?o:-1;while(e?u--:++u<o){var a=s[u];if(n(i[a],a,i)===!1)break}return t}}function vi(e,t){function r(){var i=this&&this!==Mt&&this instanceof r?n:e;return i.apply(t,arguments)}var n=yi(e);return r}function mi(e){return gn&&cn?new Jn(e):null}function gi(e){return function(t){var n=-1,r=Ba(ga(t)),i=r.length,s="";while(++n<i)s=e(s,r[n],n);return s}}function yi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=yr(e.prototype),r=e.apply(n,t);return Nu(r)?r:n}}function bi(t){function n(r,i,s){s&&ns(r,i,s)&&(i=e);var o=Fi(r,t,e,e,e,e,e,i);return o.placeholder=n.placeholder,o}return n}function wi(t,n){return uu(function(r){var i=r[0];return i==null?i:(r.push(n),t.apply(e,r))})}function Ei(t,n){return function(r,i,s){s&&ns(r,i,s)&&(i=e),i=Ui(i,s,3);if(i.length==1){r=mu(r)?r:ds(r);var o=nr(r,i,t,n);if(!r.length||o!==n)return o}return Tr(r,i,t,n)}}function Si(t,n){return function(r,i,s){i=Ui(i,s,3);if(mu(r)){var o=Dt(r,i,n);return o>-1?r[o]:e}return kr(r,i,t)}}function xi(e){return function(t,n,r){return!t||!t.length?-1:(n=Ui(n,r,3),Dt(t,n,e))}}function Ti(e){return function(t,n,r){return n=Ui(n,r,3),kr(t,n,e,!0)}}function Ni(t){return function(){var n,r=arguments.length,i=t?r:-1,o=0,a=O(r);while(t?i--:++i<r){var c=a[o++]=arguments[i];if(typeof c!="function")throw new Ct(y);!n&&jn.prototype.thru&&Wi(c)=="wrapper"&&(n=new jn([],!0))}i=n?-1:r;while(++i<r){c=a[i];var h=Wi(c),p=h=="wrapper"?zi(c):e;p&&is(p[0])&&p[1]==(f|s|u|l)&&!p[4].length&&p[9]==1?n=n[Wi(p[0])].apply(n,p[3]):n=c.length==1&&is(c)?n[h]():n.thru(c)}return function(){var e=arguments,t=e[0];if(n&&e.length==1&&mu(t)&&t.length>=v)return n.plant(t).value();var i=0,s=r?a[i].apply(this,e):t;while(++i<r)s=a[i].call(this,s);return s}}}function Ci(t,n){return function(r,i,s){return typeof i=="function"&&s===e&&mu(r)?t(r,i):n(r,ui(i,s,3))}}function ki(t){return function(n,r,i){if(typeof r!="function"||i!==e)r=ui(r,i,3);return t(n,r,na)}}function Li(t){return function(n,r,i){if(typeof r!="function"||i!==e)r=ui(r,i,3);return t(n,r)}}function Ai(e){return function(t,n,r){var i={};return n=Ui(n,r,3),_r(t,function(t,r,s){var o=n(t,r,s);r=e?o:r,t=e?t:o,i[r]=t}),i}}function Oi(e){return function(t,n,r){return t=Bt(t),(e?t:"")+Pi(t,n,r)+(e?"":t)}}function Mi(t){var n=uu(function(r,i){var s=Jt(i,n.placeholder);return Fi(r,t,e,i,s)});return n}function _i(t,n){return function(r,i,s,o){var u=arguments.length<3;return typeof i=="function"&&o===e&&mu(r)?t(r,i,s,u):Jr(r,Ui(i,o,4),s,u,n)}}function Di(t,l,c,h,p,d,v,m,g,y){function C(){var i=arguments.length,s=i,o=O(i);while(s--)o[s]=arguments[s];h&&(o=fi(o,h,p)),d&&(o=li(o,d,v));if(S||T){var f=C.placeholder,k=Jt(o,f);i-=k.length;if(i<y){var L=m?Yn(m):e,A=Sn(y-i,0),M=S?k:e,_=S?e:k,D=S?o:e,P=S?e:o;l|=S?u:a,l&=~(S?a:u),x||(l&=~(n|r));var H=[t,l,c,D,M,P,_,L,g,A],B=Di.apply(e,H);return is(t)&&hs(B,H),B.placeholder=f,B}}var j=w?c:this,F=E?j[t]:t;return m&&(o=cs(o,m)),b&&g<o.length&&(o.length=g),this&&this!==Mt&&this instanceof C&&(F=N||yi(t)),F.apply(j,o)}var b=l&f,w=l&n,E=l&r,S=l&s,x=l&i,T=l&o,N=E?e:yi(t);return C}function Pi(e,t,n){var r=e.length;t=+t;if(r>=t||!wn(t))return"";var i=t-r;return n=n==null?" ":n+"",Ca(n,mn(i/n.length)).slice(0,i)}function Hi(e,t,r,i){function u(){var t=-1,n=arguments.length,a=-1,f=i.length,l=O(f+n);while(++a<f)l[a]=i[a];while(n--)l[a++]=arguments[++t];var c=this&&this!==Mt&&this instanceof u?o:e;return c.apply(s?r:this,l)}var s=t&n,o=yi(e);return u}function Bi(t){var n=Et[t];return function(t,r){return r=r===e?0:+r||0,r?(r=fn(10,r),n(t*r)/r):n(t)}}function ji(e){return function(t,n,r,i){var s=Ui(r);return r==null&&s===mr?si(t,n,e):oi(t,n,s(r,i,1),e)}}function Fi(t,i,s,o,f,l,c,h){var p=i&r;if(!p&&typeof t!="function")throw new Ct(y);var d=o?o.length:0;d||(i&=~(u|a),o=f=e),d-=f?f.length:0;if(i&a){var v=o,m=f;o=f=e}var g=p?e:zi(t),b=[t,i,s,o,f,v,m,l,c,h];g&&(us(b,g),i=b[1],h=b[9]),b[9]=h==null?p?0:t.length:Sn(h-d,0)||0;if(i==n)var w=vi(b[0],b[2]);else i!=u&&i!=(n|u)||!!b[4].length?w=Di.apply(e,b):w=Hi.apply(e,b);var E=g?Kr:hs;return E(w,b)}function Ii(t,n,r,i,s,o,u){var a=-1,f=t.length,l=n.length;if(f!=l&&!(s&&l>f))return!1;while(++a<f){var c=t[a],h=n[a],p=i?i(s?h:c,s?c:h,a):e;if(p!==e){if(p)continue;return!1}if(s){if(!ar(n,function(e){return c===e||r(c,e,i,s,o,u)}))return!1}else if(c!==h&&!r(c,h,i,s,o,u))return!1}return!0}function qi(e,t,n){switch(n){case S:case x:return+e==+t;case T:return e.name==t.name&&e.message==t.message;case k:return e!=+e?t!=+t:e==+t;case A:case M:return e==t+""}return!1}function Ri(t,n,r,i,s,o,u){var a=ta(t),f=a.length,l=ta(n),c=l.length;if(f!=c&&!s)return!1;var h=f;while(h--){var p=a[h];if(!(s?p in n:$t.call(n,p)))return!1}var d=s;while(++h<f){p=a[h];var v=t[p],m=n[p],g=i?i(s?m:v,s?v:m,p):e;if(g===e?!r(v,m,i,s,o,u):!g)return!1;d||(d=p=="constructor")}if(!d){var y=t.constructor,b=n.constructor;if(y!=b&&"constructor"in t&&"constructor"in n&&!(typeof y=="function"&&y instanceof y&&typeof b=="function"&&b instanceof b))return!1}return!0}function Ui(e,t,n){var r=Hn.callback||Fa;return r=r===Fa?mr:r,n?r(e,t,n):r}function Wi(e){var t=e.name,n=Pn[t],r=n?n.length:0;while(r--){var i=n[r],s=i.func;if(s==null||s==e)return i.name}return t}function Xi(e,t,n){var r=Hn.indexOf||Ms;return r=r===Ms?Pt:r,e?r(e,t,n):r}function $i(e){var t=oa(e),n=t.length;while(n--)t[n][2]=os(t[n][1]);return t}function Ji(t,n){var r=t==null?e:t[n];return Lu(r)?r:e}function Ki(e,t,n){var r=-1,i=n.length;while(++r<i){var s=n[r],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=xn(t,e+o);break;case"takeRight":e=Sn(e,t-o)}}return{start:e,end:t}}function Qi(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&$t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Gi(e){var t=e.constructor;return typeof t=="function"&&t instanceof t||(t=xt),new t}function Yi(e,t,n){var r=e.constructor;switch(t){case D:return ai(e);case S:case x:return new r(+e);case P:case H:case B:case j:case F:case I:case q:case R:case U:var i=e.buffer;return new r(n?ai(i):i,e.byteOffset,e.length);case k:case M:return new r(e);case A:var s=new r(e.source,ut.exec(e));s.lastIndex=e.lastIndex}return s}function Zi(t,n,r){t!=null&&!rs(n,t)&&(n=ms(n),t=n.length==1?t:Hr(t,Qr(n,0,-1)),n=Ps(n));var i=t==null?t:t[n];return i==null?e:i.apply(t,r)}function es(e){return e!=null&&ss(Vi(e))}function ts(e,t){return e=typeof e=="number"||lt.test(e)?+e:-1,t=t==null?_n:t,e>-1&&e%1==0&&e<t}function ns(e,t,n){if(!Nu(n))return!1;var r=typeof t;if(r=="number"?es(n)&&ts(t,n.length):r=="string"&&t in n){var i=n[t];return e===e?e===i:i!==i}return!1}function rs(e,t){var n=typeof e;if(n=="string"&&et.test(e)||n=="number")return!0;if(mu(e))return!1;var r=!Z.test(e);return r||t!=null&&e in vs(t)}function is(e){var t=Wi(e);if(t in In.prototype){var n=Hn[t];if(e===n)return!0;var r=zi(n);return!!r&&e===r[0]}return!1}function ss(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_n}function os(e){return e===e&&!Nu(e)}function us(e,t){var r=e[1],o=t[1],u=r|o,a=u<f,c=o==f&&r==s||o==f&&r==l&&e[7].length<=t[8]||o==(f|l)&&r==s;if(!a&&!c)return e;o&n&&(e[2]=t[2],u|=r&n?0:i);var h=t[3];if(h){var p=e[3];e[3]=p?fi(p,h,t[4]):Yn(h),e[4]=p?Jt(e[3],b):Yn(t[4])}return h=t[5],h&&(p=e[5],e[5]=p?li(p,h,t[6]):Yn(h),e[6]=p?Jt(e[5],b):Yn(t[6])),h=t[7],h&&(e[7]=Yn(h)),o&f&&(e[8]=e[8]==null?t[8]:xn(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}function as(t,n){return t===e?n:qu(t,n,as)}function fs(e,t){e=vs(e);var n=-1,r=t.length,i={};while(++n<r){var s=t[n];s in e&&(i[s]=e[s])}return i}function ls(e,t){var n={};return Mr(e,function(e,r,i){t(e,r,i)&&(n[r]=e)}),n}function cs(t,n){var r=t.length,i=xn(n.length,r),s=Yn(t);while(i--){var o=n[i];t[i]=ts(o,r)?s[o]:e}return t}function ps(e){var t=na(e),n=t.length,r=n&&e.length,i=!!r&&ss(r)&&(mu(e)||vu(e)),s=-1,o=[];while(++s<n){var u=t[s];(i&&ts(u,r)||$t.call(e,u))&&o.push(u)}return o}function ds(e){return e==null?[]:es(e)?Nu(e)?e:xt(e):ca(e)}function vs(e){return Nu(e)?e:xt(e)}function ms(e){if(mu(e))return e;var t=[];return Bt(e).replace(tt,function(e,n,r,i){t.push(r?i.replace(st,"$1"):n||e)}),t}function gs(e){return e instanceof In?e.clone():new jn(e.__wrapped__,e.__chain__,Yn(e.__actions__))}function ys(e,t,n){(n?ns(e,t,n):t==null)?t=1:t=Sn(yn(t)||1,1);var r=0,i=e?e.length:0,s=-1,o=O(mn(i/t));while(r<i)o[++s]=Qr(e,r,r+=t);return o}function bs(e){var t=-1,n=e?e.length:0,r=-1,i=[];while(++t<n){var s=e[t];s&&(i[++r]=s)}return i}function Es(e,t,n){var r=e?e.length:0;if(!r)return[];if(n?ns(e,t,n):t==null)t=1;return Qr(e,t<0?0:t)}function Ss(e,t,n){var r=e?e.length:0;if(!r)return[];if(n?ns(e,t,n):t==null)t=1;return t=r-(+t||0),Qr(e,0,t<0?0:t)}function xs(e,t,n){return e&&e.length?ri(e,Ui(t,n,3),!0,!0):[]}function Ts(e,t,n){return e&&e.length?ri(e,Ui(t,n,3),!0):[]}function Ns(e,t,n,r){var i=e?e.length:0;return i?(n&&typeof n!="number"&&ns(e,t,n)&&(n=0,r=i),Nr(e,t,n,r)):[]}function Ls(t){return t?t[0]:e}function As(e,t,n){var r=e?e.length:0;return n&&ns(e,t,n)&&(t=!1),r?Lr(e,t):[]}function Os(e){var t=e?e.length:0;return t?Lr(e,!0):[]}function Ms(e,t,n){var r=e?e.length:0;if(!r)return-1;if(typeof n=="number")n=n<0?Sn(r+n,0):n;else if(n){var i=si(e,t);return i<r&&(t===t?t===e[i]:e[i]!==e[i])?i:-1}return Pt(e,t,n||0)}function _s(e){return Ss(e,1)}function Ps(t){var n=t?t.length:0;return n?t[n-1]:e}function Hs(e,t,n){var r=e?e.length:0;if(!r)return-1;var i=r;if(typeof n=="number")i=(n<0?Sn(r+n,0):xn(n||0,r-1))+1;else if(n){i=si(e,t,!0)-1;var s=e[i];return(t===t?t===s:s!==s)?i:-1}if(t!==t)return Xt(e,i,!0);while(i--)if(e[i]===t)return i;return-1}function Bs(){var e=arguments,t=e[0];if(!t||!t.length)return t;var n=0,r=Xi(),i=e.length;while(++n<i){var s=0,o=e[n];while((s=r(t,o,s))>-1)pn.call(t,s,1)}return t}function Fs(e,t,n){var r=[];if(!e||!e.length)return r;var i=-1,s=[],o=e.length;t=Ui(t,n,3);while(++i<o){var u=e[i];t(u,i,e)&&(r.push(u),s.push(i))}return Vr(e,s),r}function Is(e){return Es(e,1)}function qs(e,t,n){var r=e?e.length:0;return r?(n&&typeof n!="number"&&ns(e,t,n)&&(t=0,n=r),Qr(e,t,n)):[]}function zs(e,t,n){var r=e?e.length:0;if(!r)return[];if(n?ns(e,t,n):t==null)t=1;return Qr(e,0,t<0?0:t)}function Ws(e,t,n){var r=e?e.length:0;if(!r)return[];if(n?ns(e,t,n):t==null)t=1;return t=r-(+t||0),Qr(e,t<0?0:t)}function Xs(e,t,n){return e&&e.length?ri(e,Ui(t,n,3),!1,!0):[]}function Vs(e,t,n){return e&&e.length?ri(e,Ui(t,n,3)):[]}function Js(t,n,r,i){var s=t?t.length:0;if(!s)return[];n!=null&&typeof n!="boolean"&&(i=r,r=ns(t,n,i)?e:n,n=!1);var o=Ui();if(r!=null||o!==mr)r=o(r,i,3);return n&&Xi()==Pt?Kt(t,r):ti(t,r)}function Ks(e){if(!e||!e.length)return[];var t=-1,n=0;e=rr(e,function(e){if(es(e))return n=Sn(e.length,n),!0});var r=O(n);while(++t<n)r[t]=ir(e,Wr(t));return r}function Qs(t,n,r){var i=t?t.length:0;if(!i)return[];var s=Ks(t);return n==null?s:(n=ui(n,r,4),ir(s,function(t){return or(t,n,e,!0)}))}function Ys(){var e=-1,t=arguments.length;while(++e<t){var n=arguments[e];if(es(n))var r=r?sr(wr(r,n),wr(n,r)):n}return r?ti(r):[]}function eo(e,t){var n=-1,r=e?e.length:0,i={};r&&!t&&!mu(e[0])&&(t=[]);while(++n<r){var s=e[n];t?i[s]=t[n]:s&&(i[s[0]]=s[1])}return i}function no(e){var t=Hn(e);return t.__chain__=!0,t}function ro(e,t,n){return t.call(n,e),e}function io(e,t,n){return t.call(n,e)}function so(){return no(this)}function oo(){return new jn(this.value(),this.__chain__)}function ao(e){var t,n=this;while(n instanceof Bn){var r=gs(n);t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function fo(){var t=this.__wrapped__,n=function(e){return r&&r.__dir__<0?e:e.reverse()};if(t instanceof In){var r=t;return this.__actions__.length&&(r=new In(this)),r=r.reverse(),r.__actions__.push({func:io,args:[n],thisArg:e}),new jn(r,this.__chain__)}return this.thru(n)}function lo(){return this.value()+""}function co(){return ii(this.__wrapped__,this.__actions__)}function vo(t,n,r){var i=mu(t)?tr:xr;r&&ns(t,n,r)&&(n=e);if(typeof n!="function"||r!==e)n=Ui(n,r,3);return i(t,n)}function mo(e,t,n){var r=mu(e)?rr:Cr;return t=Ui(t,n,3),r(e,t)}function bo(e,t){return go(e,qr(t))}function xo(e,t,n,r){var i=e?Vi(e):0;return ss(i)||(e=ca(e),i=e.length),typeof n!="number"||r&&ns(t,n,r)?n=0:n=n<0?Sn(i+n,0):n||0,typeof e=="string"||!mu(e)&&Du(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Xi(e,t,n)>-1}function Co(e,t,n){var r=mu(e)?ir:Ir;return t=Ui(t,n,3),r(e,t)}function Lo(e,t){return Co(e,Ja(t))}function Mo(e,t,n){var r=mu(e)?rr:Cr;return t=Ui(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function _o(t,n,r){if(r?ns(t,n,r):n==null){t=ds(t);var i=t.length;return i>0?t[$r(0,i-1)]:e}var s=-1,o=Fu(t),i=o.length,u=i-1;n=xn(n<0?0:+n||0,i);while(++s<n){var a=$r(s,u),f=o[a];o[a]=o[s],o[s]=f}return o.length=n,o}function Do(e){return _o(e,Ln)}function Po(e){var t=e?Vi(e):0;return ss(t)?t:ta(e).length}function Ho(t,n,r){var i=mu(t)?ar:Gr;r&&ns(t,n,r)&&(n=e);if(typeof n!="function"||r!==e)n=Ui(n,r,3);return i(t,n)}function Bo(t,n,r){if(t==null)return[];r&&ns(t,n,r)&&(n=e);var i=-1;n=Ui(n,r,3);var s=Ir(t,function(e,t,r){return{criteria:n(e,t,r),index:++i,value:e}});return Yr(s,It)}function Fo(t,n,r,i){return t==null?[]:(i&&ns(n,r,i)&&(r=e),mu(n)||(n=n==null?[]:[n]),mu(r)||(r=r==null?[]:[r]),Zr(t,n,r))}function Io(e,t){return mo(e,qr(t))}function Ro(e,t){if(typeof t!="function"){if(typeof e!="function")throw new Ct(y);var n=e;e=t,t=n}return e=wn(e=+e)?e:0,function(){if(--e<1)return t.apply(this,arguments)}}function Uo(t,n,r){return r&&ns(t,n,r)&&(n=e),n=t&&n==null?t.length:Sn(+n||0,0),Fi(t,f,e,e,e,e,n)}function zo(t,n){var r;if(typeof n!="function"){if(typeof t!="function")throw new Ct(y);var i=t;t=n,n=i}return function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=e),r}}function Ko(t,n,r){function v(){f&&un(f),s&&un(s),c=0,s=f=l=e}function m(n,r){r&&un(r),s=f=l=e,n&&(c=qo(),o=t.apply(a,i),!f&&!s&&(i=a=e))}function g(){var e=n-(qo()-u);e<=0||e>n?m(l,s):f=hn(g,e)}function b(){m(p,f)}function w(){i=arguments,u=qo(),a=this,l=p&&(f||!d);if(h===!1)var r=d&&!f;else{!s&&!d&&(c=u);var v=h-(u-c),m=v<=0||v>h;m?(s&&(s=un(s)),c=u,o=t.apply(a,i)):s||(s=hn(b,v))}return m&&f?f=un(f):!f&&n!==h&&(f=hn(g,n)),r&&(m=!0,o=t.apply(a,i)),m&&!f&&!s&&(i=a=e),o}var i,s,o,u,a,f,l,c=0,h=!1,p=!0;if(typeof t!="function")throw new Ct(y);n=n<0?0:+n||0;if(r===!0){var d=!0;p=!1}else Nu(r)&&(d=!!r.leading,h="maxWait"in r&&Sn(+r.maxWait||0,n),p="trailing"in r?!!r.trailing:p);return w.cancel=v,w}function eu(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new Ct(y);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o),o};return n.cache=new eu.Cache,n}function nu(e){if(typeof e!="function")throw new Ct(y);return function(){return!e.apply(this,arguments)}}function ru(e){return zo(2,e)}function uu(t,n){if(typeof t!="function")throw new Ct(y);return n=Sn(n===e?t.length-1:+n||0,0),function(){var e=arguments,r=-1,i=Sn(e.length-n,0),s=O(i);while(++r<i)s[r]=e[n+r];switch(n){case 0:return t.call(this,s);case 1:return t.call(this,e[0],s);case 2:return t.call(this,e[0],e[1],s)}var o=O(n+1);r=-1;while(++r<n)o[r]=e[r];return o[n]=s,t.apply(this,o)}}function au(e){if(typeof e!="function")throw new Ct(y);return function(t){return e.apply(this,t)}}function fu(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new Ct(y);return n===!1?r=!1:Nu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ko(e,t,{leading:r,maxWait:+t,trailing:i})}function lu(t,n){return n=n==null?qa:n,Fi(n,u,e,[t],[])}function cu(e,t,n,r){return t&&typeof t!="boolean"&&ns(e,t,n)?t=!1:typeof t=="function"&&(r=n,n=t,t=!1),typeof n=="function"?gr(e,t,ui(n,r,1)):gr(e,t)}function hu(e,t,n){return typeof t=="function"?gr(e,!0,ui(t,n,1)):gr(e,!0)}function pu(e,t){return e>t}function du(e,t){return e>=t}function vu(e){return Vt(e)&&es(e)&&$t.call(e,"callee")&&!ln.call(e,"callee")}function gu(e){return e===!0||e===!1||Vt(e)&&nn.call(e)==S}function yu(e){return Vt(e)&&nn.call(e)==x}function bu(e){return!!e&&e.nodeType===1&&Vt(e)&&!Mu(e)}function wu(e){return e==null?!0:es(e)&&(mu(e)||Du(e)||vu(e)||Vt(e)&&Tu(e.splice))?!e.length:!ta(e).length}function Eu(t,n,r,i){r=typeof r=="function"?ui(r,i,3):e;var s=r?r(t,n):e;return s===e?Br(t,n,r):!!s}function Su(e){return Vt(e)&&typeof e.message=="string"&&nn.call(e)==T}function xu(e){return typeof e=="number"&&wn(e)}function Tu(e){return Nu(e)&&nn.call(e)==N}function Nu(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Cu(t,n,r,i){return r=typeof r=="function"?ui(r,i,3):e,Fr(t,$i(n),r)}function ku(e){return Ou(e)&&e!=+e}function Lu(e){return e==null?!1:Tu(e)?sn.test(Ot.call(e)):Vt(e)&&ft.test(e)}function Au(e){return e===null}function Ou(e){return typeof e=="number"||Vt(e)&&nn.call(e)==k}function Mu(t){var n;if(!Vt(t)||nn.call(t)!=L||!!vu(t)||!$t.call(t,"constructor")&&(n=t.constructor,typeof n=="function"&&!(n instanceof n)))return!1;var r;return Mr(t,function(e,t){r=t}),r===e||$t.call(t,r)}function _u(e){return Nu(e)&&nn.call(e)==A}function Du(e){return typeof e=="string"||Vt(e)&&nn.call(e)==M}function Pu(e){return Vt(e)&&ss(e.length)&&!!gt[nn.call(e)]}function Hu(t){return t===e}function Bu(e,t){return e<t}function ju(e,t){return e<=t}function Fu(e){var t=e?Vi(e):0;return ss(t)?t?Yn(e):[]:ca(e)}function Iu(e){return vr(e,na(e))}function Uu(t,n,r){var i=yr(t);return r&&ns(t,n,r)&&(n=e),n?pr(i,n):i}function Gu(e){return Pr(e,na(e))}function Yu(t,n,r){var i=t==null?e:Hr(t,ms(n),n+"");return i===e?r:i}function Zu(e,t){if(e==null)return!1;var n=$t.call(e,t);if(!n&&!rs(t)){t=ms(t),e=t.length==1?e:Hr(e,Qr(t,0,-1));if(e==null)return!1;t=Ps(t),n=$t.call(e,t)}return n||ss(e.length)&&ts(t,e.length)&&(mu(e)||vu(e))}function ea(t,n,r){r&&ns(t,n,r)&&(n=e);var i=-1,s=ta(t),o=s.length,u={};while(++i<o){var a=s[i],f=t[a];n?$t.call(u,f)?u[f].push(a):u[f]=[a]:u[f]=a}return u}function na(e){if(e==null)return[];Nu(e)||(e=xt(e));var t=e.length;t=t&&ss(t)&&(mu(e)||vu(e))&&t||0;var n=e.constructor,r=-1,i=typeof n=="function"&&n.prototype===e,s=O(t),o=t>0;while(++r<t)s[r]=r+"";for(var u in e)(!o||!ts(u,t))&&(u!="constructor"||!i&&!!$t.call(e,u))&&s.push(u);return s}function oa(e){e=vs(e);var t=-1,n=ta(e),r=n.length,i=O(r);while(++t<r){var s=n[t];i[t]=[s,e[s]]}return i}function aa(t,n,r){var i=t==null?e:t[n];return i===e&&(t!=null&&!rs(n,t)&&(n=ms(n),t=n.length==1?t:Hr(t,Qr(n,0,-1)),i=t==null?e:t[Ps(n)]),i=i===e?r:i),Tu(i)?i.call(t):i}function fa(e,t,n){if(e==null)return e;var r=t+"";t=e[r]!=null||rs(t,e)?[r]:ms(t);var i=-1,s=t.length,o=s-1,u=e;while(u!=null&&++i<s){var a=t[i];Nu(u)&&(i==o?u[a]=n:u[a]==null&&(u[a]=ts(t[i+1])?[]:{})),u=u[a]}return e}function la(t,n,r,i){var s=mu(t)||Pu(t);n=Ui(n,i,4);if(r==null)if(s||Nu(t)){var o=t.constructor;s?r=mu(t)?new o:[]:r=yr(Tu(o)?o.prototype:e)}else r={};return(s?Zn:_r)(t,function(e,t,i){return n(r,e,t,i)}),r}function ca(e){return ni(e,ta(e))}function ha(e){return ni(e,na(e))}function pa(t,n,r){return n=+n||0,r===e?(r=n,n=0):r=+r||0,t>=xn(n,r)&&t<Sn(n,r)}function da(t,n,r){r&&ns(t,n,r)&&(n=r=e);var i=t==null,s=n==null;r==null&&(s&&typeof t=="boolean"?(r=t,t=1):typeof n=="boolean"&&(r=n,s=!0)),i&&s&&(n=1,s=!1),t=+t||0,s?(n=t,t=0):n=+n||0;if(r||t%1||n%1){var o=Cn();return xn(t+o*(n-t+an("1e-"+((o+"").length-1))),n)}return $r(t,n)}function ma(e){return e=Bt(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function ga(e){return e=Bt(e),e&&e.replace(ct,Rt).replace(it,"")}function ya(t,n,r){t=Bt(t),n+="";var i=t.length;return r=r===e?i:xn(r<0?0:+r||0,i),r-=n.length,r>=0&&t.indexOf(n,r)==r}function ba(e){return e=Bt(e),e&&K.test(e)?e.replace($,Ut):e}function wa(e){return e=Bt(e),e&&rt.test(e)?e.replace(nt,zt):e||"(?:)"}function Sa(e,t,n){e=Bt(e),t=+t;var r=e.length;if(r>=t||!wn(t))return e;var i=(t-r)/2,s=yn(i),o=mn(i);return n=Pi("",o,n),n.slice(0,s)+e+n}function Na(e,t,n){return(n?ns(e,t,n):t==null)?t=0:t&&(t=+t),e=Ma(e),Nn(e,t||(at.test(e)?16:10))}function Ca(e,t){var n="";e=Bt(e),t=+t;if(t<1||!e||!wn(t))return n;do t%2&&(n+=e),t=yn(t/2),e+=e;while(t);return n}function Aa(e,t,n){return e=Bt(e),n=n==null?0:xn(n<0?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function Oa(t,n,r){var i=Hn.templateSettings;r&&ns(t,n,r)&&(n=r=e),t=Bt(t),n=hr(pr({},r||n),i,cr);var s=hr(pr({},n.imports),i.imports,cr),o=ta(s),u=ni(s,o),a,f,l=0,c=n.interpolate||ht,h="__p += '",p=Tt((n.escape||ht).source+"|"+c.source+"|"+(c===Y?ot:ht).source+"|"+(n.evaluate||ht).source+"|$","g"),d="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++mt+"]")+"\n";t.replace(p,function(e,n,r,i,s,o){return r||(r=i),h+=t.slice(l,o).replace(pt,Wt),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),s&&(f=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=o+e.length,e}),h+="';\n";var v=n.variable;v||(h="with (obj) {\n"+h+"\n}\n"),h=(f?h.replace(z,""):h).replace(W,"$1").replace(X,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(f?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=ja(function(){return wt(o,d+"return "+h).apply(e,u)});m.source=h;if(Su(m))throw m;return m}function Ma(e,t,n){var r=e;return e=Bt(e),e?(n?ns(r,t,n):t==null)?e.slice(Qt(e),Gt(e)+1):(t+="",e.slice(jt(e,t),Ft(e,t)+1)):e}function _a(e,t,n){var r=e;return e=Bt(e),e?(n?ns(r,t,n):t==null)?e.slice(Qt(e)):e.slice(jt(e,t+"")):e}function Da(e,t,n){var r=e;return e=Bt(e),e?(n?ns(r,t,n):t==null)?e.slice(0,Gt(e)+1):e.slice(0,Ft(e,t+"")+1):e}function Pa(t,n,r){r&&ns(t,n,r)&&(n=e);var i=c,s=h;if(n!=null)if(Nu(n)){var o="separator"in n?n.separator:o;i="length"in n?+n.length||0:i,s="omission"in n?Bt(n.omission):s}else i=+n||0;t=Bt(t);if(i>=t.length)return t;var u=i-s.length;if(u<1)return s;var a=t.slice(0,u);if(o==null)return a+s;if(_u(o)){if(t.slice(u).search(o)){var f,l,p=t.slice(0,u);o.global||(o=Tt(o.source,(ut.exec(o)||"")+"g")),o.lastIndex=0;while(f=o.exec(p))l=f.index;a=a.slice(0,l==null?u:l)}}else if(t.indexOf(o,u)!=u){var d=a.lastIndexOf(o);d>-1&&(a=a.slice(0,d))}return a+s}function Ha(e){return e=Bt(e),e&&J.test(e)?e.replace(V,Yt):e}function Ba(t,n,r){return r&&ns(t,n,r)&&(n=e),t=Bt(t),t.match(n||dt)||[]}function Fa(t,n,r){return r&&ns(t,n,r)&&(n=e),Vt(t)?Ra(t):mr(t,n)}function Ia(e){return function(){return e}}function qa(e){return e}function Ra(e){return qr(gr(e,!0))}function Ua(e,t){return Rr(e,gr(t,!0))}function Xa(t,n,r){if(r==null){var i=Nu(n),s=i?ta(n):e,o=s&&s.length?Pr(n,s):e;if(o?!o.length:!i)o=!1,r=n,n=t,t=this}o||(o=Pr(n,ta(n)));var u=!0,a=-1,f=Tu(t),l=o.length;r===!1?u=!1:Nu(r)&&"chain"in r&&(u=r.chain);while(++a<l){var c=o[a],h=n[c];t[c]=h,f&&(t.prototype[c]=function(e){return function(){var n=this.__chain__;if(u||n){var r=t(this.__wrapped__),i=r.__actions__=Yn(this.__actions__);return i.push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,sr([this.value()],arguments))}}(h))}return t}function Va(){return Mt._=rn,this}function $a(){}function Ja(e){return rs(e)?Wr(e):Xr(e)}function Ka(e){return function(t){return Hr(e,ms(t),t+"")}}function Qa(t,n,r){r&&ns(t,n,r)&&(n=r=e),t=+t||0,r=r==null?1:+r||0,n==null?(n=t,t=0):n=+n||0;var i=-1,s=Sn(mn((n-t)/(r||1)),0),o=O(s);while(++i<s)o[i]=t,t+=r;return o}function Ga(e,t,n){e=yn(e);if(e<1||!wn(e))return[];var r=-1,i=O(xn(e,An));t=ui(t,n,1);while(++r<e)r<An?i[r]=t(r):t(r);return i}function Ya(e){var t=++tn;return Bt(e)+t}function Za(e,t){return(+e||0)+(+t||0)}function of(t,n,r){return r&&ns(t,n,r)&&(n=e),n=Ui(n,r,3),n.length==1?fr(mu(t)?t:ds(t),n):ei(t,n)}C=C?en.defaults(Mt.Object(),C,en.pick(Mt,vt)):Mt;var O=C.Array,_=C.Date,bt=C.Error,wt=C.Function,Et=C.Math,St=C.Number,xt=C.Object,Tt=C.RegExp,Nt=C.String,Ct=C.TypeError,kt=O.prototype,Lt=xt.prototype,At=Nt.prototype,Ot=wt.prototype.toString,$t=Lt.hasOwnProperty,tn=0,nn=Lt.toString,rn=Mt._,sn=Tt("^"+Ot.call($t).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=C.ArrayBuffer,un=C.clearTimeout,an=C.parseFloat,fn=Et.pow,ln=Lt.propertyIsEnumerable,cn=Ji(C,"Set"),hn=C.setTimeout,pn=kt.splice,dn=C.Uint8Array,vn=Ji(C,"WeakMap"),mn=Et.ceil,gn=Ji(xt,"create"),yn=Et.floor,bn=Ji(O,"isArray"),wn=C.isFinite,En=Ji(xt,"keys"),Sn=Et.max,xn=Et.min,Tn=Ji(_,"now"),Nn=C.parseInt,Cn=Et.random,kn=St.NEGATIVE_INFINITY,Ln=St.POSITIVE_INFINITY,An=4294967295,On=An-1,Mn=An>>>1,_n=9007199254740991,Dn=vn&&new vn,Pn={},Fn=Hn.support={};Hn.templateSettings={escape:Q,evaluate:G,interpolate:Y,variable:"",imports:{_:Hn}};var yr=function(){function t(){}return function(n){if(Nu(n)){t.prototype=n;var r=new t;t.prototype=e}return r||{}}}(),Er=pi(_r),Sr=pi(Dr,!0),Ar=di(),Or=di(!0),Kr=Dn?function(e,t){return Dn.set(e,t),e}:qa,zi=Dn?function(e){return Dn.get(e)}:$a,Vi=Wr("length"),hs=function(){var e=0,t=0;return function(n,r){var i=qo(),s=d-(i-t);t=i;if(s>0){if(++e>=p)return n}else e=0;return Kr(n,r)}}(),ws=uu(function(e,t){return Vt(e)&&es(e)?wr(e,Lr(t,!1,!0)):[]}),Cs=xi(),ks=xi(!0),Ds=uu(function(e){var t=e.length,n=t,r=O(l),i=Xi(),s=i==Pt,o=[];while(n--){var u=e[n]=es(u=e[n])?u:[];r[n]=s&&u.length>=120?mi(n&&u):null}var a=e[0],f=-1,l=a?a.length:0,c=r[0];e:while(++f<l){u=a[f];if((c?Kn(c,u):i(o,u,0))<0){var n=t;while(--n){var h=r[n];if((h?Kn(h,u):i(e[n],u,0))<0)continue e}c&&c.push(u),o.push(u)}}return o}),js=uu(function(e,t){t=Lr(t);var n=dr(e,t);return Vr(e,t.sort(_t)),n}),Rs=ji(),Us=ji(!0),$s=uu(function(e){return ti(Lr(e,!1,!0))}),Gs=uu(function(e,t){return es(e)?wr(e,t):[]}),Zs=uu(Ks),to=uu(function(t){var n=t.length,r=n>2?t[n-2]:e,i=n>1?t[n-1]:e;return n>2&&typeof r=="function"?n-=2:(r=n>1&&typeof i=="function"?(--n,i):e,i=e),t.length=n,Qs(t,r,i)}),uo=uu(function(e){return e=Lr(e),this.thru(function(t){return Gn(mu(t)?t:[vs(t)],e)})}),ho=uu(function(e,t){return dr(e,Lr(t))}),po=ci(function(e,t,n){$t.call(e,n)?++e[n]:e[n]=1}),go=Si(Er),yo=Si(Sr,!0),wo=Ci(Zn,Er),Eo=Ci(er,Sr),So=ci(function(e,t,n){$t.call(e,n)?e[n].push(t):e[n]=[t]}),To=ci(function(e,t,n){e[n]=t}),No=uu(function(t,n,r){var i=-1,s=typeof n=="function",o=rs(n),u=es(t)?O(t.length):[];return Er(t,function(t){var a=s?n:o&&t!=null?t[n]:e;u[++i]=a?a.apply(t,r):Zi(t,n,r)}),u}),ko=ci(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ao=_i(or,Er),Oo=_i(ur,Sr),jo=uu(function(e,t){if(e==null)return[];var n=t[2];return n&&ns(t[0],t[1],n)&&(t.length=1),Zr(e,Lr(t),[])}),qo=Tn||function(){return(new _).getTime()},Wo=uu(function(e,t,r){var i=n;if(r.length){var s=Jt(r,Wo.placeholder);i|=u}return Fi(e,i,t,r,s)}),Xo=uu(function(e,t){t=t.length?Lr(t):Gu(e);var r=-1,i=t.length;while(++r<i){var s=t[r];e[s]=Fi(e[s],n,e)}return e}),Vo=uu(function(e,t,i){var s=n|r;if(i.length){var o=Jt(i,Vo.placeholder);s|=u}return Fi(t,s,e,i,o)}),$o=bi(s),Jo=bi(o),Qo=uu(function(e,t){return br(e,1,t)}),Go=uu(function(e,t,n){return br(e,t,n)}),Yo=Ni(),Zo=Ni(!0),tu=uu(function(e,t){t=Lr(t);if(typeof e!="function"||!tr(t,Ht))throw new Ct(y);var n=t.length;return uu(function(r){var i=xn(r.length,n);while(i--)r[i]=t[i](r[i]);return e.apply(this,r)})}),iu=Mi(u),su=Mi(a),ou=uu(function(t,n){return Fi(t,l,e,e,e,Lr(n))}),mu=bn||function(e){return Vt(e)&&ss(e.length)&&nn.call(e)==E},qu=hi(Ur),Ru=hi(function(e,t,n){return n?hr(e,t,n):pr(e,t)}),zu=wi(Ru,lr),Wu=wi(qu,as),Xu=Ti(_r),Vu=Ti(Dr),$u=ki(Ar),Ju=ki(Or),Ku=Li(_r),Qu=Li(Dr),ta=En?function(t){var n=t==null?e:t.constructor;return typeof n=="function"&&n.prototype===t||typeof t!="function"&&es(t)?ps(t):Nu(t)?En(t):[]}:ps,ra=Ai(!0),ia=Ai(),sa=uu(function(e,t){if(e==null)return{};if(typeof t[0]!="function"){var t=ir(Lr(t),Nt);return fs(e,wr(na(e),t))}var n=ui(t[0],t[1],3);return ls(e,function(e,t,r){return!n(e,t,r)})}),ua=uu(function(e,t){return e==null?{}:typeof t[0]=="function"?ls(e,ui(t[0],t[1],3)):fs(e,Lr(t))}),va=gi(function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}),Ea=gi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),xa=Oi(),Ta=Oi(!0),ka=gi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),La=gi(function(e,t,n){return e+(n?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),ja=uu(function(t,n){try{return t.apply(e,n)}catch(r){return Su(r)?r:new bt(r)}}),za=uu(function(e,t){return function(n){return Zi(n,e,t)}}),Wa=uu(function(e,t){return function(n){return Zi(e,n,t)}}),ef=Bi("ceil"),tf=Bi("floor"),nf=Ei(pu,kn),rf=Ei(Bu,Ln),sf=Bi("round");return Hn.prototype=Bn.prototype,jn.prototype=yr(Bn.prototype),jn.prototype.constructor=jn,In.prototype=yr(Bn.prototype),In.prototype.constructor=In,zn.prototype["delete"]=Wn,zn.prototype.get=Xn,zn.prototype.has=Vn,zn.prototype.set=$n,Jn.prototype.push=Qn,eu.Cache=zn,Hn.after=Ro,Hn.ary=Uo,Hn.assign=Ru,Hn.at=ho,Hn.before=zo,Hn.bind=Wo,Hn.bindAll=Xo,Hn.bindKey=Vo,Hn.callback=Fa,Hn.chain=no,Hn.chunk=ys,Hn.compact=bs,Hn.constant=Ia,Hn.countBy=po,Hn.create=Uu,Hn.curry=$o,Hn.curryRight=Jo,Hn.debounce=Ko,Hn.defaults=zu,Hn.defaultsDeep=Wu,Hn.defer=Qo,Hn.delay=Go,Hn.difference=ws,Hn.drop=Es,Hn.dropRight=Ss,Hn.dropRightWhile=xs,Hn.dropWhile=Ts,Hn.fill=Ns,Hn.filter=mo,Hn.flatten=As,Hn.flattenDeep=Os,Hn.flow=Yo,Hn.flowRight=Zo,Hn.forEach=wo,Hn.forEachRight=Eo,Hn.forIn=$u,Hn.forInRight=Ju,Hn.forOwn=Ku,Hn.forOwnRight=Qu,Hn.functions=Gu,Hn.groupBy=So,Hn.indexBy=To,Hn.initial=_s,Hn.intersection=Ds,Hn.invert=ea,Hn.invoke=No,Hn.keys=ta,Hn.keysIn=na,Hn.map=Co,Hn.mapKeys=ra,Hn.mapValues=ia,Hn.matches=Ra,Hn.matchesProperty=Ua,Hn.memoize=eu,Hn.merge=qu,Hn.method=za,Hn.methodOf=Wa,Hn.mixin=Xa,Hn.modArgs=tu,Hn.negate=nu,Hn.omit=sa,Hn.once=ru,Hn.pairs=oa,Hn.partial=iu,Hn.partialRight=su,Hn.partition=ko,Hn.pick=ua,Hn.pluck=Lo,Hn.property=Ja,Hn.propertyOf=Ka,Hn.pull=Bs,Hn.pullAt=js,Hn.range=Qa,Hn.rearg=ou,Hn.reject=Mo,Hn.remove=Fs,Hn.rest=Is,Hn.restParam=uu,Hn.set=fa,Hn.shuffle=Do,Hn.slice=qs,Hn.sortBy=Bo,Hn.sortByAll=jo,Hn.sortByOrder=Fo,Hn.spread=au,Hn.take=zs,Hn.takeRight=Ws,Hn.takeRightWhile=Xs,Hn.takeWhile=Vs,Hn.tap=ro,Hn.throttle=fu,Hn.thru=io,Hn.times=Ga,Hn.toArray=Fu,Hn.toPlainObject=Iu,Hn.transform=la,Hn.union=$s,Hn.uniq=Js,Hn.unzip=Ks,Hn.unzipWith=Qs,Hn.values=ca,Hn.valuesIn=ha,Hn.where=Io,Hn.without=Gs,Hn.wrap=lu,Hn.xor=Ys,Hn.zip=Zs,Hn.zipObject=eo,Hn.zipWith=to,Hn.backflow=Zo,Hn.collect=Co,Hn.compose=Zo,Hn.each=wo,Hn.eachRight=Eo,Hn.extend=Ru,Hn.iteratee=Fa,Hn.methods=Gu,Hn.object=eo,Hn.select=mo,Hn.tail=Is,Hn.unique=Js,Xa(Hn,Hn),Hn.add=Za,Hn.attempt=ja,Hn.camelCase=va,Hn.capitalize=ma,Hn.ceil=ef,Hn.clone=cu,Hn.cloneDeep=hu,Hn.deburr=ga,Hn.endsWith=ya,Hn.escape=ba,Hn.escapeRegExp=wa,Hn.every=vo,Hn.find=go,Hn.findIndex=Cs,Hn.findKey=Xu,Hn.findLast=yo,Hn.findLastIndex=ks,Hn.findLastKey=Vu,Hn.findWhere=bo,Hn.first=Ls,Hn.floor=tf,Hn.get=Yu,Hn.gt=pu,Hn.gte=du,Hn.has=Zu,Hn.identity=qa,Hn.includes=xo,Hn.indexOf=Ms,Hn.inRange=pa,Hn.isArguments=vu,Hn.isArray=mu,Hn.isBoolean=gu,Hn.isDate=yu,Hn.isElement=bu,Hn.isEmpty=wu,Hn.isEqual=Eu,Hn.isError=Su,Hn.isFinite=xu,Hn.isFunction=Tu,Hn.isMatch=Cu,Hn.isNaN=ku,Hn.isNative=Lu,Hn.isNull=Au,Hn.isNumber=Ou,Hn.isObject=Nu,Hn.isPlainObject=Mu,Hn.isRegExp=_u,Hn.isString=Du,Hn.isTypedArray=Pu,Hn.isUndefined=Hu,Hn.kebabCase=Ea,Hn.last=Ps,Hn.lastIndexOf=Hs,Hn.lt=Bu,Hn.lte=ju,Hn.max=nf,Hn.min=rf,Hn.noConflict=Va,Hn.noop=$a,Hn.now=qo,Hn.pad=Sa,Hn.padLeft=xa,Hn.padRight=Ta,Hn.parseInt=Na,Hn.random=da,Hn.reduce=Ao,Hn.reduceRight=Oo,Hn.repeat=Ca,Hn.result=aa,Hn.round=sf,Hn.runInContext=Zt,Hn.size=Po,Hn.snakeCase=ka,Hn.some=Ho,Hn.sortedIndex=Rs,Hn.sortedLastIndex=Us,Hn.startCase=La,Hn.startsWith=Aa,Hn.sum=of,Hn.template=Oa,Hn.trim=Ma,Hn.trimLeft=_a,Hn.trimRight=Da,Hn.trunc=Pa,Hn.unescape=Ha,Hn.uniqueId=Ya,Hn.words=Ba,Hn.all=vo,Hn.any=Ho,Hn.contains=xo,Hn.eq=Eu,Hn.detect=go,Hn.foldl=Ao,Hn.foldr=Oo,Hn.head=Ls,Hn.include=xo,Hn.inject=Ao,Xa(Hn,function(){var e={};return _r(Hn,function(t,n){Hn.prototype[n]||(e[n]=t)}),e}(),!1),Hn.sample=_o,Hn.prototype.sample=function(e){return!this.__chain__&&e==null?_o(this.value()):this.thru(function(t){return _o(t,e)})},Hn.VERSION=t,Zn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Hn[e].placeholder=Hn}),Zn(["drop","take"],function(e,t){In.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new In(this);n=n==null?1:Sn(yn(n)||0,0);var i=this.clone();return r?i.__takeCount__=xn(i.__takeCount__,n):i.__views__.push({size:n,type:e+(i.__dir__<0?"Right":"")}),i},In.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Zn(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n!=g;In.prototype[e]=function(e,t){var i=this.clone();return i.__iteratees__.push({iteratee:Ui(e,t,1),type:n}),i.__filtered__=i.__filtered__||r,i}}),Zn(["first","last"],function(e,t){var n="take"+(t?"Right":"");In.prototype[e]=function(){return this[n](1).value()[0]}}),Zn(["initial","rest"],function(e,t){var n="drop"+(t?"":"Right");In.prototype[e]=function(){return this.__filtered__?new In(this):this[n](1)}}),Zn(["pluck","where"],function(e,t){var n=t?"filter":"map",r=t?qr:Ja;In.prototype[e]=function(e){return this[n](r(e))}}),In.prototype.compact=function(){return this.filter(qa)},In.prototype.reject=function(e,t){return e=Ui(e,t,1),this.filter(function(t){return!e(t)})},In.prototype.slice=function(t,n){t=t==null?0:+t||0;var r=this;return r.__filtered__&&(t>0||n<0)?new In(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(n=+n||0,r=n<0?r.dropRight(-n):r.take(n-t)),r)},In.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},In.prototype.toArray=function(){return this.take(Ln)},_r(In.prototype,function(t,n){var r=/^(?:filter|map|reject)|While$/.test(n),i=/^(?:first|last)$/.test(n),s=Hn[i?"take"+(n=="last"?"Right":""):n];if(!s)return;Hn.prototype[n]=function(){var n=i?[1]:arguments,o=this.__chain__,u=this.__wrapped__,a=!!this.__actions__.length,f=u instanceof In,l=n[0],c=f||mu(u);c&&r&&typeof l=="function"&&l.length!=1&&(f=c=!1);var h=function(t){return i&&o?s(t,1)[0]:s.apply(e,sr([t],n))},p={func:io,args:[h],thisArg:e},d=f&&!a;if(i&&!o)return d?(u=u.clone(),u.__actions__.push(p),t.call(u)):s.call(e,this.value())[0];if(!i&&c){u=d?u:new In(this);var v=t.apply(u,n);return v.__actions__.push(p),new jn(v,o)}return this.thru(h)}}),Zn(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var t=(/^(?:replace|split)$/.test(e)?At:kt)[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:join|pop|replace|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;return r&&!this.__chain__?t.apply(this.value(),e):this[n](function(n){return t.apply(n,e)})}}),_r(In.prototype,function(e,t){var n=Hn[t];if(n){var r=n.name,i=Pn[r]||(Pn[r]=[]);i.push({name:t,func:n})}}),Pn[Di(e,r).name]=[{name:"wrapper",func:e}],In.prototype.clone=qn,In.prototype.reverse=Rn,In.prototype.value=Un,Hn.prototype.chain=so,Hn.prototype.commit=oo,Hn.prototype.concat=uo,Hn.prototype.plant=ao,Hn.prototype.reverse=fo,Hn.prototype.toString=lo,Hn.prototype.run=Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=co,Hn.prototype.collect=Hn.prototype.map,Hn.prototype.head=Hn.prototype.first,Hn.prototype.select=Hn.prototype.filter,Hn.prototype.tail=Hn.prototype.rest,Hn}var e,t="3.10.1",n=1,r=2,i=4,s=8,o=16,u=32,a=64,f=128,l=256,c=30,h="...",p=150,d=16,v=200,m=1,g=2,y="Expected a function",b="__lodash_placeholder__",w="[object Arguments]",E="[object Array]",S="[object Boolean]",x="[object Date]",T="[object Error]",N="[object Function]",C="[object Map]",k="[object Number]",L="[object Object]",A="[object RegExp]",O="[object Set]",M="[object String]",_="[object WeakMap]",D="[object ArrayBuffer]",P="[object Float32Array]",H="[object Float64Array]",B="[object Int8Array]",j="[object Int16Array]",F="[object Int32Array]",I="[object Uint8Array]",q="[object Uint8ClampedArray]",R="[object Uint16Array]",U="[object Uint32Array]",z=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39|#96);/g,$=/[&<>"'`]/g,J=RegExp(V.source),K=RegExp($.source),Q=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,et=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,nt=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,rt=RegExp(nt.source),it=/[\u0300-\u036f\ufe20-\ufe23]/g,st=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,at=/^0[xX]/,ft=/^\[object .+?Constructor\]$/,lt=/^\d+$/,ct=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,ht=/($^)/,pt=/['\n\r\u2028\u2029\\]/g,dt=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),vt=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],mt=-1,gt={};gt[P]=gt[H]=gt[B]=gt[j]=gt[F]=gt[I]=gt[q]=gt[R]=gt[U]=!0,gt[w]=gt[E]=gt[D]=gt[S]=gt[x]=gt[T]=gt[N]=gt[C]=gt[k]=gt[L]=gt[A]=gt[O]=gt[M]=gt[_]=!1;var yt={};yt[w]=yt[E]=yt[D]=yt[S]=yt[x]=yt[P]=yt[H]=yt[B]=yt[j]=yt[F]=yt[k]=yt[L]=yt[A]=yt[M]=yt[I]=yt[q]=yt[R]=yt[U]=!0,yt[T]=yt[N]=yt[C]=yt[O]=yt[_]=!1;var bt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},wt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Et={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},St={"function":!0,object:!0},xt={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Tt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nt=St[typeof exports]&&exports&&!exports.nodeType&&exports,Ct=St[typeof module]&&module&&!module.nodeType&&module,kt=Nt&&Ct&&typeof global=="object"&&global&&global.Object&&global,Lt=St[typeof self]&&self&&self.Object&&self,At=St[typeof window]&&window&&window.Object&&window,Ot=Ct&&Ct.exports===Nt&&Nt,Mt=kt||At!==(this&&this.window)&&At||Lt||this,en=Zt();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Mt._=en,define("lodash",[],function(){return en})):Nt&&Ct?Ot?(Ct.exports=en)._=en:Nt._=en:Mt._=en}.call(this),define("hbs/handlebars",[],function(){var e=function(){var e=function(){"use strict";function t(e){this.string=e}var e;return t.prototype.toString=function(){return""+this.string},e=t,e}(),t=function(e){"use strict";function o(e){return r[e]||"&amp;"}function u(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function c(e){return e instanceof n?e.toString():!e&&e!==0?"":(e=""+e,s.test(e)?e.replace(i,o):e)}function h(e){return!e&&e!==0?!0:l(e)&&e.length===0?!0:!1}var t={},n=e,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=/[&<>"'`]/g,s=/[&<>"'`]/;t.extend=u;var a=Object.prototype.toString;t.toString=a;var f=function(e){return typeof e=="function"};f(/x/)&&(f=function(e){return typeof e=="function"&&a.call(e)==="[object Function]"});var f;t.isFunction=f;var l=Array.isArray||function(e){return e&&typeof e=="object"?a.call(e)==="[object Array]":!1};return t.isArray=l,t.escapeExpression=c,t.isEmpty=h,t}(e),n=function(){"use strict";function n(e,n){var r;n&&n.firstLine&&(r=n.firstLine,e+=" - "+r+":"+n.firstColumn);var i=Error.prototype.constructor.call(this,e);for(var s=0;s<t.length;s++)this[t[s]]=i[t[s]];r&&(this.lineNumber=r,this.column=n.firstColumn)}var e,t=["description","fileName","lineNumber","message","name","number","stack"];return n.prototype=new Error,e=n,e}(),r=function(e,t){"use strict";function h(e,t){this.helpers=e||{},this.partials=t||{},p(this)}function p(e){e.registerHelper("helperMissing",function(e){if(arguments.length===2)return undefined;throw new i("Missing helper: '"+e+"'")}),e.registerHelper("blockHelperMissing",function(t,n){var r=n.inverse||function(){},i=n.fn;return f(t)&&(t=t.call(this)),t===!0?i(this):t===!1||t==null?r(this):a(t)?t.length>0?e.helpers.each(t,n):r(this):i(t)}),e.registerHelper("each",function(e,t){var n=t.fn,r=t.inverse,i=0,s="",o;f(e)&&(e=e.call(this)),t.data&&(o=m(t.data));if(e&&typeof e=="object")if(a(e))for(var u=e.length;i<u;i++)o&&(o.index=i,o.first=i===0,o.last=i===e.length-1),s+=n(e[i],{data:o});else for(var l in e)e.hasOwnProperty(l)&&(o&&(o.key=l,o.index=i,o.first=i===0),s+=n(e[l],{data:o}),i++);return i===0&&(s=r(this)),s}),e.registerHelper("if",function(e,t){return f(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,n){return e.helpers["if"].call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}),e.registerHelper("with",function(e,t){f(e)&&(e=e.call(this));if(!r.isEmpty(e))return t.fn(e)}),e.registerHelper("log",function(t,n){var r=n.data&&n.data.level!=null?parseInt(n.data.level,10):1;e.log(r,t)})}function v(e,t){d.log(e,t)}var n={},r=e,i=t,s="1.3.0";n.VERSION=s;var o=4;n.COMPILER_REVISION=o;var u={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"};n.REVISION_CHANGES=u;var a=r.isArray,f=r.isFunction,l=r.toString,c="[object Object]";n.HandlebarsEnvironment=h,h.prototype={constructor:h,logger:d,log:v,registerHelper:function(e,t,n){if(l.call(e)===c){if(n||t)throw new i("Arg not supported with multiple helpers");r.extend(this.helpers,e)}else n&&(t.not=n),this.helpers[e]=t},registerPartial:function(e,t){l.call(e)===c?r.extend(this.partials,e):this.partials[e]=t}};var d={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){if(d.level<=e){var n=d.methodMap[e];typeof console!="undefined"&&console[n]&&console[n].call(console,t)}}};n.logger=d,n.log=v;var m=function(e){var t={};return r.extend(t,e),t};return n.createFrame=m,n}(t,n),i=function(e,t,n){"use strict";function a(e){var t=e&&e[0]||1,n=o;if(t!==n){if(t<n){var r=u[n],i=u[t];throw new s("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new s("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}}function f(e,t){if(!t)throw new s("No environment passed to template");var n=function(e,n,r,i,o,u){var a=t.VM.invokePartial.apply(this,arguments);if(a!=null)return a;if(t.compile){var f={helpers:i,partials:o,data:u};return o[n]=t.compile(e,{data:u!==undefined},t),o[n](r,f)}throw new s("The partial "+n+" could not be compiled when running in runtime-only mode")},r={escapeExpression:i.escapeExpression,invokePartial:n,programs:[],program:function(e,t,n){var r=this.programs[e];return n?r=c(e,t,n):r||(r=this.programs[e]=c(e,t)),r},merge:function(e,t){var n=e||t;return e&&t&&e!==t&&(n={},i.extend(n,t),i.extend(n,e)),n},programWithDepth:t.VM.programWithDepth,noop:t.VM.noop,compilerInfo:null};return function(n,i){i=i||{};var s=i.partial?i:t,o,u;i.partial||(o=i.helpers,u=i.partials);var a=e.call(r,s,n,o,u,i.data);return i.partial||t.VM.checkRevision(r.compilerInfo),a}}function l(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=function(e,i){return i=i||{},t.apply(this,[e,i.data||n].concat(r))};return i.program=e,i.depth=r.length,i}function c(e,t,n){var r=function(e,r){return r=r||{},t(e,r.data||n)};return r.program=e,r.depth=0,r}function h(e,t,n,r,i,o){var u={partial:!0,helpers:r,partials:i,data:o};if(e===undefined)throw new s("The partial "+t+" could not be found");if(e instanceof Function)return e(n,u)}function p(){return""}var r={},i=e,s=t,o=n.COMPILER_REVISION,u=n.REVISION_CHANGES;return r.checkRevision=a,r.template=f,r.programWithDepth=l,r.program=c,r.invokePartial=h,r.noop=p,r}(t,n,r),s=function(e,t,n,r,i){"use strict";var s,o=e,u=t,a=n,f=r,l=i,c=function(){var e=new o.HandlebarsEnvironment;return f.extend(e,o),e.SafeString=u,e.Exception=a,e.Utils=f,e.VM=l,e.template=function(t){return l.template(t,e)},e},h=c();return h.create=c,s=h,s}(r,e,n,t,i),o=function(e){"use strict";function r(e){e=e||{},this.firstLine=e.first_line,this.firstColumn=e.first_column,this.lastColumn=e.last_column,this.lastLine=e.last_line}var t,n=e,i={ProgramNode:function(e,t,n,s){var o,u;arguments.length===3?(s=n,n=null):arguments.length===2&&(s=t,t=null),r.call(this,s),this.type="program",this.statements=e,this.strip={},n?(u=n[0],u?(o={first_line:u.firstLine,last_line:u.lastLine,last_column:u.lastColumn,first_column:u.firstColumn},this.inverse=new i.ProgramNode(n,t,o)):this.inverse=new i.ProgramNode(n,t),this.strip.right=t.left):t&&(this.strip.left=t.right)},MustacheNode:function(e,t,n,s,o){r.call(this,o),this.type="mustache",this.strip=s;if(n!=null&&n.charAt){var u=n.charAt(3)||n.charAt(2);this.escaped=u!=="{"&&u!=="&"}else this.escaped=!!n;e instanceof i.SexprNode?this.sexpr=e:this.sexpr=new i.SexprNode(e,t),this.sexpr.isRoot=!0,this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(e,t,n){r.call(this,n),this.type="sexpr",this.hash=t;var i=this.id=e[0],s=this.params=e.slice(1),o=this.eligibleHelper=i.isSimple;this.isHelper=o&&(s.length||t)},PartialNode:function(e,t,n,i){r.call(this,i),this.type="partial",this.partialName=e,this.context=t,this.strip=n},BlockNode:function(e,t,i,s,o){r.call(this,o);if(e.sexpr.id.original!==s.path.original)throw new n(e.sexpr.id.original+" doesn't match "+s.path.original,this);this.type="block",this.mustache=e,this.program=t,this.inverse=i,this.strip={left:e.strip.left,right:s.strip.right},(t||i).strip.left=e.strip.right,(i||t).strip.right=s.strip.left,i&&!t&&(this.isInverse=!0)},ContentNode:function(e,t){r.call(this,t),this.type="content",this.string=e},HashNode:function(e,t){r.call(this,t),this.type="hash",this.pairs=e},IdNode:function(e,t){r.call(this,t),this.type="ID";var i="",s=[],o=0;for(var u=0,a=e.length;u<a;u++){var f=e[u].part;i+=(e[u].separator||"")+f;if(f===".."||f==="."||f==="this"){if(s.length>0)throw new n("Invalid path: "+i,this);f===".."?o++:this.isScoped=!0}else s.push(f)}this.original=i,this.parts=s,this.string=s.join("."),this.depth=o,this.isSimple=e.length===1&&!this.isScoped&&o===0,this.stringModeValue=this.string},PartialNameNode:function(e,t){r.call(this,t),this.type="PARTIAL_NAME",this.name=e.original},DataNode:function(e,t){r.call(this,t),this.type="DATA",this.id=e},StringNode:function(e,t){r.call(this,t),this.type="STRING",this.original=this.string=this.stringModeValue=e},IntegerNode:function(e,t){r.call(this,t),this.type="INTEGER",this.original=this.integer=e,this.stringModeValue=Number(e)},BooleanNode:function(e,t){r.call(this,t),this.type="BOOLEAN",this.bool=e,this.stringModeValue=e==="true"},CommentNode:function(e,t){r.call(this,t),this.type="comment",this.comment=e}};return t=i,t}(n),u=function(){"use strict";var e,t=function(){function t(e,t){return{left:e.charAt(2)==="~",right:t.charAt(0)==="~"||t.charAt(1)==="~"}}function r(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,statements:4,EOF:5,program:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,sexpr:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,CLOSE_UNESCAPED:24,OPEN_PARTIAL:25,partialName:26,partial_option0:27,sexpr_repetition0:28,sexpr_option0:29,dataName:30,param:31,STRING:32,INTEGER:33,BOOLEAN:34,OPEN_SEXPR:35,CLOSE_SEXPR:36,hash:37,hash_repetition_plus0:38,hashSegment:39,ID:40,EQUALS:41,DATA:42,pathSegments:43,SEP:44,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",32:"STRING",33:"INTEGER",34:"BOOLEAN",35:"OPEN_SEXPR",36:"CLOSE_SEXPR",40:"ID",41:"EQUALS",42:"DATA",44:"SEP"},productions_:[0,[3,2],[3,1],[6,2],[6,3],[6,2],[6,1],[6,1],[6,0],[4,1],[4,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,4],[7,2],[17,3],[17,1],[31,1],[31,1],[31,1],[31,1],[31,1],[31,3],[37,1],[39,3],[26,1],[26,1],[26,1],[30,2],[21,1],[43,3],[43,1],[27,0],[27,1],[28,0],[28,2],[29,0],[29,1],[38,1],[38,2]],performAction:function(n,r,i,s,o,u,a){var f=u.length-1;switch(o){case 1:return new s.ProgramNode(u[f-1],this._$);case 2:return new s.ProgramNode([],this._$);case 3:this.$=new s.ProgramNode([],u[f-1],u[f],this._$);break;case 4:this.$=new s.ProgramNode(u[f-2],u[f-1],u[f],this._$);break;case 5:this.$=new s.ProgramNode(u[f-1],u[f],[],this._$);break;case 6:this.$=new s.ProgramNode(u[f],this._$);break;case 7:this.$=new s.ProgramNode([],this._$);break;case 8:this.$=new s.ProgramNode([],this._$);break;case 9:this.$=[u[f]];break;case 10:u[f-1].push(u[f]),this.$=u[f-1];break;case 11:this.$=new s.BlockNode(u[f-2],u[f-1].inverse,u[f-1],u[f],this._$);break;case 12:this.$=new s.BlockNode(u[f-2],u[f-1],u[f-1].inverse,u[f],this._$);break;case 13:this.$=u[f];break;case 14:this.$=u[f];break;case 15:this.$=new s.ContentNode(u[f],this._$);break;case 16:this.$=new s.CommentNode(u[f],this._$);break;case 17:this.$=new s.MustacheNode(u[f-1],null,u[f-2],t(u[f-2],u[f]),this._$);break;case 18:this.$=new s.MustacheNode(u[f-1],null,u[f-2],t(u[f-2],u[f]),this._$);break;case 19:this.$={path:u[f-1],strip:t(u[f-2],u[f])};break;case 20:this.$=new s.MustacheNode(u[f-1],null,u[f-2],t(u[f-2],u[f]),this._$);break;case 21:this.$=new s.MustacheNode(u[f-1],null,u[f-2],t(u[f-2],u[f]),this._$);break;case 22:this.$=new s.PartialNode(u[f-2],u[f-1],t(u[f-3],u[f]),this._$);break;case 23:this.$=t(u[f-1],u[f]);break;case 24:this.$=new s.SexprNode([u[f-2]].concat(u[f-1]),u[f],this._$);break;case 25:this.$=new s.SexprNode([u[f]],null,this._$);break;case 26:this.$=u[f];break;case 27:this.$=new s.StringNode(u[f],this._$);break;case 28:this.$=new s.IntegerNode(u[f],this._$);break;case 29:this.$=new s.BooleanNode(u[f],this._$);break;case 30:this.$=u[f];break;case 31:u[f-1].isHelper=!0,this.$=u[f-1];break;case 32:this.$=new s.HashNode(u[f],this._$);break;case 33:this.$=[u[f-2],u[f]];break;case 34:this.$=new s.PartialNameNode(u[f],this._$);break;case 35:this.$=new s.PartialNameNode(new s.StringNode(u[f],this._$),this._$);break;case 36:this.$=new s.PartialNameNode(new s.IntegerNode(u[f],this._$));break;case 37:this.$=new s.DataNode(u[f],this._$);break;case 38:this.$=new s.IdNode(u[f],this._$);break;case 39:u[f-2].push({part:u[f],separator:u[f-1]}),this.$=u[f-2];break;case 40:this.$=[{part:u[f]}];break;case 43:this.$=[];break;case 44:u[f-1].push(u[f]);break;case 47:this.$=[u[f]];break;case 48:u[f-1].push(u[f])}},table:[{3:1,4:2,5:[1,3],8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[3]},{5:[1,16],8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[2,2]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],25:[2,9]},{4:20,6:18,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{4:20,6:22,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],25:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],25:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],25:[2,15]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],25:[2,16]},{17:23,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:29,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:30,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:31,21:24,30:25,40:[1,28],42:[1,27],43:26},{21:33,26:32,32:[1,34],33:[1,35],40:[1,28],43:26},{1:[2,1]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],25:[2,10]},{10:36,20:[1,37]},{4:38,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,7],22:[1,13],23:[1,14],25:[1,15]},{7:39,8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,6],22:[1,13],23:[1,14],25:[1,15]},{17:23,18:[1,40],21:24,30:25,40:[1,28],42:[1,27],43:26},{10:41,20:[1,37]},{18:[1,42]},{18:[2,43],24:[2,43],28:43,32:[2,43],33:[2,43],34:[2,43],35:[2,43],36:[2,43],40:[2,43],42:[2,43]},{18:[2,25],24:[2,25],36:[2,25]},{18:[2,38],24:[2,38],32:[2,38],33:[2,38],34:[2,38],35:[2,38],36:[2,38],40:[2,38],42:[2,38],44:[1,44]},{21:45,40:[1,28],43:26},{18:[2,40],24:[2,40],32:[2,40],33:[2,40],34:[2,40],35:[2,40],36:[2,40],40:[2,40],42:[2,40],44:[2,40]},{18:[1,46]},{18:[1,47]},{24:[1,48]},{18:[2,41],21:50,27:49,40:[1,28],43:26},{18:[2,34],40:[2,34]},{18:[2,35],40:[2,35]},{18:[2,36],40:[2,36]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],25:[2,11]},{21:51,40:[1,28],43:26},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,3],22:[1,13],23:[1,14],25:[1,15]},{4:52,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,5],22:[1,13],23:[1,14],25:[1,15]},{14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],25:[2,23]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],25:[2,12]},{14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],25:[2,18]},{18:[2,45],21:56,24:[2,45],29:53,30:60,31:54,32:[1,57],33:[1,58],34:[1,59],35:[1,61],36:[2,45],37:55,38:62,39:63,40:[1,64],42:[1,27],43:26},{40:[1,65]},{18:[2,37],24:[2,37],32:[2,37],33:[2,37],34:[2,37],35:[2,37],36:[2,37],40:[2,37],42:[2,37]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],25:[2,17]},{5:[2,20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],25:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],25:[2,21]},{18:[1,66]},{18:[2,42]},{18:[1,67]},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],25:[1,15]},{18:[2,24],24:[2,24],36:[2,24]},{18:[2,44],24:[2,44],32:[2,44],33:[2,44],34:[2,44],35:[2,44],36:[2,44],40:[2,44],42:[2,44]},{18:[2,46],24:[2,46],36:[2,46]},{18:[2,26],24:[2,26],32:[2,26],33:[2,26],34:[2,26],35:[2,26],36:[2,26],40:[2,26],42:[2,26]},{18:[2,27],24:[2,27],32:[2,27],33:[2,27],34:[2,27],35:[2,27],36:[2,27],40:[2,27],42:[2,27]},{18:[2,28],24:[2,28],32:[2,28],33:[2,28],34:[2,28],35:[2,28],36:[2,28],40:[2,28],42:[2,28]},{18:[2,29],24:[2,29],32:[2,29],33:[2,29],34:[2,29],35:[2,29],36:[2,29],40:[2,29],42:[2,29]},{18:[2,30],24:[2,30],32:[2,30],33:[2,30],34:[2,30],35:[2,30],36:[2,30],40:[2,30],42:[2,30]},{17:68,21:24,30:25,40:[1,28],42:[1,27],43:26},{18:[2,32],24:[2,32],36:[2,32],39:69,40:[1,70]},{18:[2,47],24:[2,47],36:[2,47],40:[2,47]},{18:[2,40],24:[2,40],32:[2,40],33:[2,40],34:[2,40],35:[2,40],36:[2,40],40:[2,40],41:[1,71],42:[2,40],44:[2,40]},{18:[2,39],24:[2,39],32:[2,39],33:[2,39],34:[2,39],35:[2,39],36:[2,39],40:[2,39],42:[2,39],44:[2,39]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],22:[2,22],23:[2,22],25:[2,22]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],25:[2,19]},{36:[1,72]},{18:[2,48],24:[2,48],36:[2,48],40:[2,48]},{41:[1,71]},{21:56,30:60,31:73,32:[1,57],33:[1,58],34:[1,59],35:[1,61],40:[1,28],42:[1,27],43:26},{18:[2,31],24:[2,31],32:[2,31],33:[2,31],34:[2,31],35:[2,31],36:[2,31],40:[2,31],42:[2,31]},{18:[2,33],24:[2,33],36:[2,33],40:[2,33]}],defaultActions:{3:[2,2],16:[2,1],50:[2,42]},parseError:function(t,n){throw new Error(t)},parse:function(t){function v(e){r.length=r.length-2*e,i.length=i.length-e,s.length=s.length-e}function m(){var e;return e=n.lexer.lex()||1,typeof e!="number"&&(e=n.symbols_[e]||e),e}var n=this,r=[0],i=[null],s=[],o=this.table,u="",a=0,f=0,l=0,c=2,h=1;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var p=this.lexer.yylloc;s.push(p);var d=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);var g,y,b,w,E,S,x={},T,N,C,k;for(;;){b=r[r.length-1];if(this.defaultActions[b])w=this.defaultActions[b];else{if(g===null||typeof g=="undefined")g=m();w=o[b]&&o[b][g]}if(typeof w=="undefined"||!w.length||!w[0]){var L="";if(!l){k=[];for(T in o[b])this.terminals_[T]&&T>2&&k.push("'"+this.terminals_[T]+"'");this.lexer.showPosition?L="Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[g]||g)+"'":L="Parse error on line "+(a+1)+": Unexpected "+(g==1?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(L,{text:this.lexer.match,token:this.terminals_[g]||g,line:this.lexer.yylineno,loc:p,expected:k})}}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(w[0]){case 1:r.push(g),i.push(this.lexer.yytext),s.push(this.lexer.yylloc),r.push(w[1]),g=null,y?(g=y,y=null):(f=this.lexer.yyleng,u=this.lexer.yytext,a=this.lexer.yylineno,p=this.lexer.yylloc,l>0&&l--);break;case 2:N=this.productions_[w[1]][1],x.$=i[i.length-N],x._$={first_line:s[s.length-(N||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(N||1)].first_column,last_column:s[s.length-1].last_column},d&&(x._$.range=[s[s.length-(N||1)].range[0],s[s.length-1].range[1]]),S=this.performAction.call(x,u,f,a,this.yy,w[1],i,s);if(typeof S!="undefined")return S;N&&(r=r.slice(0,-1*N*2),i=i.slice(0,-1*N),s=s.slice(0,-1*N)),r.push(this.productions_[w[1]][0]),i.push(x.$),s.push(x._$),C=o[r[r.length-2]][r[r.length-1]],r.push(C);break;case 3:return!0}}return!0}},n=function(){var e={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=(new Array(e.length+1)).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r,i,s;this._more||(this.yytext="",this.match="");var o=this._currentRules();for(var u=0;u<o.length;u++){n=this._input.match(this.rules[o[u]]);if(n&&(!t||n[0].length>t[0].length)){t=n,r=u;if(!this.options.flex)break}}if(t){s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,o[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1);if(e)return e;return}return this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return typeof t!="undefined"?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)}};return e.options={},e.performAction=function(t,n,r,i){function s(e,t){return n.yytext=n.yytext.substr(e,n.yyleng-t)}var o=i;switch(r){case 0:n.yytext.slice(-2)==="\\\\"?(s(0,1),this.begin("mu")):n.yytext.slice(-1)==="\\"?(s(0,1),this.begin("emu")):this.begin("mu");if(n.yytext)return 14;break;case 1:return 14;case 2:return this.popState(),14;case 3:return s(0,4),this.popState(),15;case 4:return 35;case 5:return 36;case 6:return 25;case 7:return 16;case 8:return 20;case 9:return 19;case 10:return 19;case 11:return 23;case 12:return 22;case 13:this.popState(),this.begin("com");break;case 14:return s(3,5),this.popState(),15;case 15:return 22;case 16:return 41;case 17:return 40;case 18:return 40;case 19:return 44;case 20:break;case 21:return this.popState(),24;case 22:return this.popState(),18;case 23:return n.yytext=s(1,2).replace(/\\"/g,'"'),32;case 24:return n.yytext=s(1,2).replace(/\\'/g,"'"),32;case 25:return 42;case 26:return 34;case 27:return 34;case 28:return 33;case 29:return 40;case 30:return n.yytext=s(1,2),40;case 31:return"INVALID";case 32:return 5}},e.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?=([~}\s)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],e.conditions={mu:{rules:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[3],inclusive:!1},INITIAL:{rules:[0,1,32],inclusive:!0}},e}();return e.lexer=n,r.prototype=e,e.Parser=r,new r}();return e=t,e}(),a=function(e,t){"use strict";function s(e){return e.constructor===i.ProgramNode?e:(r.yy=i,r.parse(e))}var n={},r=e,i=t;return n.parser=r,n.parse=s,n}(u,o),f=function(e){"use strict";function r(){}function i(e,t,r){if(e==null||typeof e!="string"&&e.constructor!==r.AST.ProgramNode)throw new n("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0);var i=r.parse(e),s=(new r.Compiler).compile(i,t);return(new r.JavaScriptCompiler).compile(s,t)}function s(e,t,r){function s(){var n=r.parse(e),i=(new r.Compiler).compile(n,t),s=(new r.JavaScriptCompiler).compile(i,t,undefined,!0);return r.template(s)}if(e==null||typeof e!="string"&&e.constructor!==r.AST.ProgramNode)throw new n("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=t||{},"data"in t||(t.data=!0);var i;return function(e,t){return i||(i=s()),i.call(this,e,t)}}var t={},n=e;return t.Compiler=r,r.prototype={compiler:r,disassemble:function(){var e=this.opcodes,t,n=[],r,i;for(var s=0,o=e.length;s<o;s++){t=e[s];if(t.opcode==="DECLARE")n.push("DECLARE "+t.name+"="+t.value);else{r=[];for(var u=0;u<t.args.length;u++)i=t.args[u],typeof i=="string"&&(i='"'+i.replace("\n","\\n")+'"'),r.push(i);n.push(t.opcode+" "+r.join(" "))}}return n.join("\n")},equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var n=0;n<t;n++){var r=this.opcodes[n],i=e.opcodes[n];if(r.opcode!==i.opcode||r.args.length!==i.args.length)return!1;for(var s=0;s<r.args.length;s++)if(r.args[s]!==i.args[s])return!1}t=this.children.length;if(e.children.length!==t)return!1;for(n=0;n<t;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,t){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=t;var n=this.options.knownHelpers;this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0};if(n)for(var r in n)this.options.knownHelpers[r]=n[r];return this.accept(e)},accept:function(e){var t=e.strip||{},n;return t.left&&this.opcode("strip"),n=this[e.type](e),t.right&&this.opcode("strip"),n},program:function(e){var t=e.statements;for(var n=0,r=t.length;n<r;n++)this.accept(t[n]);return this.isSimple=r===1,this.depths.list=this.depths.list.sort(function(e,t){return e-t}),this},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),n=this.guid++,r;this.usePartial=this.usePartial||t.usePartial,this.children[n]=t;for(var i=0,s=t.depths.list.length;i<s;i++){r=t.depths.list[i];if(r<2)continue;this.addDepth(r-1)}return n},block:function(e){var t=e.mustache,n=e.program,r=e.inverse;n&&(n=this.compileProgram(n)),r&&(r=this.compileProgram(r));var i=t.sexpr,s=this.classifySexpr(i);s==="helper"?this.helperSexpr(i,n,r):s==="simple"?(this.simpleSexpr(i),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue")):(this.ambiguousSexpr(i,n,r),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},hash:function(e){var t=e.pairs,n,r;this.opcode("pushHash");for(var i=0,s=t.length;i<s;i++)n=t[i],r=n[1],this.options.stringParams?(r.depth&&this.addDepth(r.depth),this.opcode("getContext",r.depth||0),this.opcode("pushStringParam",r.stringModeValue,r.type),r.type==="sexpr"&&this.sexpr(r)):this.accept(r),this.opcode("assignToHash",n[0]);this.opcode("popHash")},partial:function(e){var t=e.partialName;this.usePartial=!0,e.context?this.ID(e.context):this.opcode("push","depth0"),this.opcode("invokePartial",t.name),this.opcode("append")},content:function(e){this.opcode("appendContent",e.string)},mustache:function(e){this.sexpr(e.sexpr),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousSexpr:function(e,t,n){var r=e.id,i=r.parts[0],s=t!=null||n!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("invokeAmbiguous",i,s)},simpleSexpr:function(e){var t=e.id;t.type==="DATA"?this.DATA(t):t.parts.length?this.ID(t):(this.addDepth(t.depth),this.opcode("getContext",t.depth),this.opcode("pushContext")),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,r){var i=this.setupFullMustacheParams(e,t,r),s=e.id.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",i.length,s);else{if(this.options.knownHelpersOnly)throw new n("You specified knownHelpersOnly, but used the unknown helper "+s,e);this.opcode("invokeHelper",i.length,s,e.isRoot)}},sexpr:function(e){var t=this.classifySexpr(e);t==="simple"?this.simpleSexpr(e):t==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},ID:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0];t?this.opcode("lookupOnContext",e.parts[0]):this.opcode("pushContext");for(var n=1,r=e.parts.length;n<r;n++)this.opcode("lookup",e.parts[n])},DATA:function(e){this.options.data=!0;if(e.id.isScoped||e.id.depth)throw new n("Scoped data references are not supported: "+e.original,e);this.opcode("lookupData");var t=e.id.parts;for(var r=0,i=t.length;r<i;r++)this.opcode("lookup",t[r])},STRING:function(e){this.opcode("pushString",e.string)},INTEGER:function(e){this.opcode("pushLiteral",e.integer)},BOOLEAN:function(e){this.opcode("pushLiteral",e.bool)},comment:function(){},opcode:function(e){this.opcodes.push({opcode:e,args:[].slice.call(arguments,1)})},declare:function(e,t){this.opcodes.push({opcode:"DECLARE",name:e,value:t})},addDepth:function(e){if(e===0)return;this.depths[e]||(this.depths[e]=!0,this.depths.list.push(e))},classifySexpr:function(e){var t=e.isHelper,n=e.eligibleHelper,r=this.options;if(n&&!t){var i=e.id.parts[0];r.knownHelpers[i]?t=!0:r.knownHelpersOnly&&(n=!1)}return t?"helper":n?"ambiguous":"simple"},pushParams:function(e){var t=e.length,n;while(t--)n=e[t],this.options.stringParams?(n.depth&&this.addDepth(n.depth),this.opcode("getContext",n.depth||0),this.opcode("pushStringParam",n.stringModeValue,n.type),n.type==="sexpr"&&this.sexpr(n)):this[n.type](n)},setupFullMustacheParams:function(e,t,n){var r=e.params;return this.pushParams(r),this.opcode("pushProgram",t),this.opcode("pushProgram",n),e.hash?this.hash(e.hash):this.opcode("emptyHash"),r}},t.precompile=i,t.compile=s,t}(n),l=function(e,t){"use strict";function u(e){this.value=e}function a(){}var n,r=e.COMPILER_REVISION,i=e.REVISION_CHANGES,s=e.log,o=t;a.prototype={nameLookup:function(e,t){var n,r;return e.indexOf("depth")===0&&(n=!0),/^[0-9]+$/.test(t)?r=e+"["+t+"]":a.isValidJavaScriptVariableName(t)?r=e+"."+t:r=e+"['"+t+"']",n?"("+e+" && "+r+")":r},compilerInfo:function(){var e=r,t=i[e];return"this.compilerInfo = ["+e+",'"+t+"'];\n"},appendToBuffer:function(e){return this.environment.isSimple?"return "+e+";":{appendToBuffer:!0,content:e,toString:function(){return"buffer += "+e+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(e,t,n,r){this.environment=e,this.options=t||{},s("debug",this.environment.disassemble()+"\n\n"),this.name=this.environment.name,this.isChild=!!n,this.context=n||{programs:[],environments:[],aliases:{}},this.preamble(),this.stackSlot=0,this.stackVars=[],this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(e,t);var i=e.opcodes,u;this.i=0;for(var a=i.length;this.i<a;this.i++)u=i[this.i],u.opcode==="DECLARE"?this[u.name]=u.value:this[u.opcode].apply(this,u.args),u.opcode!==this.stripNext&&(this.stripNext=!1);this.pushSource("");if(this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o("Compile completed with content left on stack");return this.createFunctionContext(r)},preamble:function(){var e=[];if(!this.isChild){var t=this.namespace,n="helpers = this.merge(helpers, "+t+".helpers);";this.environment.usePartial&&(n=n+" partials = this.merge(partials, "+t+".partials);"),this.options.data&&(n+=" data = data || {};"),e.push(n)}else e.push("");this.environment.isSimple?e.push(""):e.push(", buffer = "+this.initializeBuffer()),this.lastContext=0,this.source=e},createFunctionContext:function(e){var t=this.stackVars.concat(this.registers.list);t.length>0&&(this.source[1]=this.source[1]+", "+t.join(", "));if(!this.isChild)for(var n in this.context.aliases)this.context.aliases.hasOwnProperty(n)&&(this.source[1]=this.source[1]+", "+n+"="+this.context.aliases[n]);this.source[1]&&(this.source[1]="var "+this.source[1].substring(2)+";"),this.isChild||(this.source[1]+="\n"+this.context.programs.join("\n")+"\n"),this.environment.isSimple||this.pushSource("return buffer;");var r=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"];for(var i=0,o=this.environment.depths.list.length;i<o;i++)r.push("depth"+this.environment.depths.list[i]);var u=this.mergeSource();this.isChild||(u=this.compilerInfo()+u);if(e)return r.push(u),Function.apply(this,r);var a="function "+(this.name||"")+"("+r.join(",")+") {\n  "+u+"}";return s("debug",a+"\n\n"),a},mergeSource:function(){var e="",t;for(var n=0,r=this.source.length;n<r;n++){var i=this.source[n];i.appendToBuffer?t?t=t+"\n    + "+i.content:t=i.content:(t&&(e+="buffer += "+t+";\n  ",t=undefined),e+=i+"\n  ")}return e},blockValue:function(){this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var e=["depth0"];this.setupParams(0,e),this.replaceStack(function(t){return e.splice(1,0,t),"blockHelperMissing.call("+e.join(", ")+")"})},ambiguousBlockValue:function(){this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var e=["depth0"];this.setupParams(0,e);var t=this.topStack();e.splice(1,0,t),this.pushSource("if (!"+this.lastHelper+") { "+t+" = blockHelperMissing.call("+e.join(", ")+"); }")},appendContent:function(e){this.pendingContent&&(e=this.pendingContent+e),this.stripNext&&(e=e.replace(/^\s+/,"")),this.pendingContent=e},strip:function(){this.pendingContent&&(this.pendingContent=this.pendingContent.replace(/\s+$/,"")),this.stripNext="strip"},append:function(){this.flushInline();var e=this.popStack();this.pushSource("if("+e+" || "+e+" === 0) { "+this.appendToBuffer(e)+" }"),this.environment.isSimple&&this.pushSource("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.context.aliases.escapeExpression="this.escapeExpression",this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(e){this.lastContext!==e&&(this.lastContext=e)},lookupOnContext:function(e){this.push(this.nameLookup("depth"+this.lastContext,e,"context"))},pushContext:function(){this.pushStackLiteral("depth"+this.lastContext)},resolvePossibleLambda:function(){this.context.aliases.functionType='"function"',this.replaceStack(function(e){return"typeof "+e+" === functionType ? "+e+".apply(depth0) : "+e})},lookup:function(e){this.replaceStack(function(t){return t+" == null || "+t+" === false ? "+t+" : "+this.nameLookup(t,e,"context")})},lookupData:function(){this.pushStackLiteral("data")},pushStringParam:function(e,t){this.pushStackLiteral("depth"+this.lastContext),this.pushString(t),t!=="sexpr"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(){this.pushStackLiteral("{}"),this.options.stringParams&&(this.push("{}"),this.push("{}"))},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.options.stringParams&&(this.push("{"+e.contexts.join(",")+"}"),this.push("{"+e.types.join(",")+"}")),this.push("{\n    "+e.values.join(",\n    ")+"\n  }")},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},push:function(e){return this.inlineStack.push(e),e},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},invokeHelper:function(e,t,n){this.context.aliases.helperMissing="helpers.helperMissing",this.useRegister("helper");var r=this.lastHelper=this.setupHelper(e,t,!0),i=this.nameLookup("depth"+this.lastContext,t,"context"),s="helper = "+r.name+" || "+i;r.paramsInit&&(s+=","+r.paramsInit),this.push("("+s+",helper "+"? helper.call("+r.callParams+") "+": helperMissing.call("+r.helperMissingParams+"))"),n||this.flushInline()},invokeKnownHelper:function(e,t){var n=this.setupHelper(e,t);this.push(n.name+".call("+n.callParams+")")},invokeAmbiguous:function(e,t){this.context.aliases.functionType='"function"',this.useRegister("helper"),this.emptyHash();var n=this.setupHelper(0,e,t),r=this.lastHelper=this.nameLookup("helpers",e,"helper"),i=this.nameLookup("depth"+this.lastContext,e,"context"),s=this.nextStack();n.paramsInit&&this.pushSource(n.paramsInit),this.pushSource("if (helper = "+r+") { "+s+" = helper.call("+n.callParams+"); }"),this.pushSource("else { helper = "+i+"; "+s+" = typeof helper === functionType ? helper.call("+n.callParams+") : helper; }")},invokePartial:function(e){var t=[this.nameLookup("partials",e,"partial"),"'"+e+"'",this.popStack(),"helpers","partials"];this.options.data&&t.push("data"),this.context.aliases.self="this",this.push("self.invokePartial("+t.join(", ")+")")},assignToHash:function(e){var t=this.popStack(),n,r;this.options.stringParams&&(r=this.popStack(),n=this.popStack());var i=this.hash;n&&i.contexts.push("'"+e+"': "+n),r&&i.types.push("'"+e+"': "+r),i.values.push("'"+e+"': ("+t+")")},compiler:a,compileChildren:function(e,t){var n=e.children,r,i;for(var s=0,o=n.length;s<o;s++){r=n[s],i=new this.compiler;var u=this.matchExistingProgram(r);u==null?(this.context.programs.push(""),u=this.context.programs.length,r.index=u,r.name="program"+u,this.context.programs[u]=i.compile(r,t,this.context),this.context.environments[u]=r):(r.index=u,r.name="program"+u)}},matchExistingProgram:function(e){for(var t=0,n=this.context.environments.length;t<n;t++){var r=this.context.environments[t];if(r&&r.equals(e))return t}},programExpression:function(e){this.context.aliases.self="this";if(e==null)return"self.noop";var t=this.environment.children[e],n=t.depths.list,r,i=[t.index,t.name,"data"];for(var s=0,o=n.length;s<o;s++)r=n[s],r===1?i.push("depth0"):i.push("depth"+(r-1));return(n.length===0?"self.program(":"self.programWithDepth(")+i.join(", ")+")"},register:function(e,t){this.useRegister(e),this.pushSource(e+" = "+t+";")},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},pushStackLiteral:function(e){return this.push(new u(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=undefined),e&&this.source.push(e)},pushStack:function(e){this.flushInline();var t=this.incrStack();return e&&this.pushSource(t+" = "+e+";"),this.compileStack.push(t),t},replaceStack:function(e){var t="",n=this.isInline(),r,i,s;if(n){var o=this.popStack(!0);if(o instanceof u)r=o.value,s=!0;else{i=!this.stackSlot;var a=i?this.incrStack():this.topStackName();t="("+this.push(a)+" = "+o+"),",r=this.topStack()}}else r=this.topStack();var f=e.call(this,r);return n?(s||this.popStack(),i&&this.stackSlot--,this.push("("+t+f+")")):(/^stack/.test(r)||(r=this.nextStack()),this.pushSource(r+" = ("+t+f+");")),r},nextStack:function(){return this.pushStack()},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;if(e.length){this.inlineStack=[];for(var t=0,n=e.length;t<n;t++){var r=e[t];r instanceof u?this.compileStack.push(r):this.pushStack(r)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),n=(t?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof u)return n.value;if(!t){if(!this.stackSlot)throw new o("Invalid stack pop");this.stackSlot--}return n},topStack:function(e){var t=this.isInline()?this.inlineStack:this.compileStack,n=t[t.length-1];return!e&&n instanceof u?n.value:n},quotedString:function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},setupHelper:function(e,t,n){var r=[],i=this.setupParams(e,r,n),s=this.nameLookup("helpers",t,"helper");return{params:r,paramsInit:i,name:s,callParams:["depth0"].concat(r).join(", "),helperMissingParams:n&&["depth0",this.quotedString(t)].concat(r).join(", ")}},setupOptions:function(e,t){var n=[],r=[],i=[],s,o,u;n.push("hash:"+this.popStack()),this.options.stringParams&&(n.push("hashTypes:"+this.popStack()),n.push("hashContexts:"+this.popStack())),o=this.popStack(),u=this.popStack();if(u||o)u||(this.context.aliases.self="this",u="self.noop"),o||(this.context.aliases.self="this",o="self.noop"),n.push("inverse:"+o),n.push("fn:"+u);for(var a=0;a<e;a++)s=this.popStack(),t.push(s),this.options.stringParams&&(i.push(this.popStack()),r.push(this.popStack()));return this.options.stringParams&&(n.push("contexts:["+r.join(",")+"]"),n.push("types:["+i.join(",")+"]")),this.options.data&&n.push("data:data"),n},setupParams:function(e,t,n){var r="{"+this.setupOptions(e,t).join(",")+"}";return n?(this.useRegister("options"),t.push("options"),"options="+r):(t.push(r),"")}};var f="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),l=a.RESERVED_WORDS={};for(var c=0,h=f.length;c<h;c++)l[f[c]]=!0;return a.isValidJavaScriptVariableName=function(e){return!a.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)?!0:!1},n=a,n}(r,n),c=function(e,t,n,r,i){"use strict";var s,o=e,u=t,a=n.parser,f=n.parse,l=r.Compiler,c=r.compile,h=r.precompile,p=i,d=o.create,v=function(){var e=d();return e.compile=function(t,n){return c(t,n,e)},e.precompile=function(t,n){return h(t,n,e)},e.AST=u,e.Compiler=l,e.JavaScriptCompiler=p,e.Parser=a,e.parse=f,e};return o=v(),o.create=v,s=o,s}(s,o,a,f,l);return c}();return e}),define("hbs/underscore",[],function(){function T(e,t,n){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return e===t;e._chain&&(e=e._wrapped),t._chain&&(t=t._wrapped);if(e.isEqual&&w.isFunction(e.isEqual))return e.isEqual(t);if(t.isEqual&&w.isFunction(t.isEqual))return t.isEqual(e);var r=o.call(e);if(r!=o.call(t))return!1;switch(r){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:e==0?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if(typeof e!="object"||typeof t!="object")return!1;var i=n.length;while(i--)if(n[i]==e)return!0;n.push(e);var s=0,u=!0;if(r=="[object Array]"){s=e.length,u=s==t.length;if(u)while(s--)if(!(u=s in e==s in t&&T(e[s],t[s],n)))break}else{if("constructor"in e!="constructor"in t||e.constructor!=t.constructor)return!1;for(var a in e)if(w.has(e,a)){s++;if(!(u=w.has(t,a)&&T(e[a],t[a],n)))break}if(u){for(a in t)if(w.has(t,a)&&!(s--))break;u=!s}}return n.pop(),u}var e={},t=Array.prototype,n=Object.prototype,r=Function.prototype,i=t.slice,s=t.unshift,o=n.toString,u=n.hasOwnProperty,a=t.forEach,f=t.map,l=t.reduce,c=t.reduceRight,h=t.filter,p=t.every,d=t.some,v=t.indexOf,m=t.lastIndexOf,g=Array.isArray,y=Object.keys,b=r.bind,w=function(e){return new _(e)};w.VERSION="1.3.3";var E=w.each=w.forEach=function(t,n,r){if(t==null)return;if(a&&t.forEach===a)t.forEach(n,r);else if(t.length===+t.length){for(var i=0,s=t.length;i<s;i++)if(i in t&&n.call(r,t[i],i,t)===e)return}else for(var o in t)if(w.has(t,o)&&n.call(r,t[o],o,t)===e)return};w.map=w.collect=function(e,t,n){var r=[];return e==null?r:f&&e.map===f?e.map(t,n):(E(e,function(e,i,s){r[r.length]=t.call(n,e,i,s)}),e.length===+e.length&&(r.length=e.length),r)},w.reduce=w.foldl=w.inject=function(e,t,n,r){var i=arguments.length>2;e==null&&(e=[]);if(l&&e.reduce===l)return r&&(t=w.bind(t,r)),i?e.reduce(t,n):e.reduce(t);E(e,function(e,s,o){i?n=t.call(r,n,e,s,o):(n=e,i=!0)});if(!i)throw new TypeError("Reduce of empty array with no initial value");return n},w.reduceRight=w.foldr=function(e,t,n,r){var i=arguments.length>2;e==null&&(e=[]);if(c&&e.reduceRight===c)return r&&(t=w.bind(t,r)),i?e.reduceRight(t,n):e.reduceRight(t);var s=w.toArray(e).reverse();return r&&!i&&(t=w.bind(t,r)),i?w.reduce(s,t,n,r):w.reduce(s,t)},w.find=w.detect=function(e,t,n){var r;return S(e,function(e,i,s){if(t.call(n,e,i,s))return r=e,!0}),r},w.filter=w.select=function(e,t,n){var r=[];return e==null?r:h&&e.filter===h?e.filter(t,n):(E(e,function(e,i,s){t.call(n,e,i,s)&&(r[r.length]=e)}),r)},w.reject=function(e,t,n){var r=[];return e==null?r:(E(e,function(e,i,s){t.call(n,e,i,s)||(r[r.length]=e)}),r)},w.every=w.all=function(t,n,r){var i=!0;return t==null?i:p&&t.every===p?t.every(n,r):(E(t,function(t,s,o){if(!(i=i&&n.call(r,t,s,o)))return e}),!!i)};var S=w.some=w.any=function(t,n,r){n||(n=w.identity);var i=!1;return t==null?i:d&&t.some===d?t.some(n,r):(E(t,function(t,s,o){if(i||(i=n.call(r,t,s,o)))return e}),!!i)};w.include=w.contains=function(e,t){var n=!1;return e==null?n:v&&e.indexOf===v?e.indexOf(t)!=-1:(n=S(e,function(e){return e===t}),n)},w.invoke=function(e,t){var n=i.call(arguments,2);return w.map(e,function(e){return(w.isFunction(t)?t||e:e[t]).apply(e,n)})},w.pluck=function(e,t){return w.map(e,function(e){return e[t]})},w.max=function(e,t,n){if(!t&&w.isArray(e)&&e[0]===+e[0])return Math.max.apply(Math,e);if(!t&&w.isEmpty(e))return-Infinity;var r={computed:-Infinity};return E(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o>=r.computed&&(r={value:e,computed:o})}),r.value},w.min=function(e,t,n){if(!t&&w.isArray(e)&&e[0]===+e[0])return Math.min.apply(Math,e);if(!t&&w.isEmpty(e))return Infinity;var r={computed:Infinity};return E(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o<r.computed&&(r={value:e,computed:o})}),r.value},w.shuffle=function(e){var t=[],n;return E(e,function(e,r,i){n=Math.floor(Math.random()*(r+1)),t[r]=t[n],t[n]=e}),t},w.sortBy=function(e,t,n){var r=w.isFunction(t)?t:function(e){return e[t]};return w.pluck(w.map(e,function(e,t,i){return{value:e,criteria:r.call(n,e,t,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;return n===void 0?1:r===void 0?-1:n<r?-1:n>r?1:0}),"value")},w.groupBy=function(e,t){var n={},r=w.isFunction(t)?t:function(e){return e[t]};return E(e,function(e,t){var i=r(e,t);(n[i]||(n[i]=[])).push(e)}),n},w.sortedIndex=function(e,t,n){n||(n=w.identity);var r=0,i=e.length;while(r<i){var s=r+i>>1;n(e[s])<n(t)?r=s+1:i=s}return r},w.toArray=function(e){return e?w.isArray(e)?i.call(e):w.isArguments(e)?i.call(e):e.toArray&&w.isFunction(e.toArray)?e.toArray():w.values(e):[]},w.size=function(e){return w.isArray(e)?e.length:w.keys(e).length},w.first=w.head=w.take=function(e,t,n){return t!=null&&!n?i.call(e,0,t):e[0]},w.initial=function(e,t,n){return i.call(e,0,e.length-(t==null||n?1:t))},w.last=function(e,t,n){return t!=null&&!n?i.call(e,Math.max(e.length-t,0)):e[e.length-1]},w.rest=w.tail=function(e,t,n){return i.call(e,t==null||n?1:t)},w.compact=function(e){return w.filter(e,function(e){return!!e})},w.flatten=function(e,t){return w.reduce(e,function(e,n){return w.isArray(n)?e.concat(t?n:w.flatten(n)):(e[e.length]=n,e)},[])},w.without=function(e){return w.difference(e,i.call(arguments,1))},w.uniq=w.unique=function(e,t,n){var r=n?w.map(e,n):e,i=[];return e.length<3&&(t=!0),w.reduce(r,function(n,r,s){if(t?w.last(n)!==r||!n.length:!w.include(n,r))n.push(r),i.push(e[s]);return n},[]),i},w.union=function(){return w.uniq(w.flatten(arguments,!0))},w.intersection=w.intersect=function(e){var t=i.call(arguments,1);return w.filter(w.uniq(e),function(e){return w.every(t,function(t){return w.indexOf(t,e)>=0})})},w.difference=function(e){var t=w.flatten(i.call(arguments,1),!0);return w.filter(e,function(e){return!w.include(t,e)})},w.zip=function(){var e=i.call(arguments),t=w.max(w.pluck(e,"length")),n=new Array(t);for(var r=0;r<t;r++)n[r]=w.pluck(e,""+r);return n},w.indexOf=function(e,t,n){if(e==null)return-1;var r,i;if(n)return r=w.sortedIndex(e,t),e[r]===t?r:-1;if(v&&e.indexOf===v)return e.indexOf(t);for(r=0,i=e.length;r<i;r++)if(r in e&&e[r]===t)return r;return-1},w.lastIndexOf=function(e,t){if(e==null)return-1;if(m&&e.lastIndexOf===m)return e.lastIndexOf(t);var n=e.length;while(n--)if(n in e&&e[n]===t)return n;return-1},w.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=arguments[2]||1;var r=Math.max(Math.ceil((t-e)/n),0),i=0,s=new Array(r);while(i<r)s[i++]=e,e+=n;return s};var x=function(){};w.bind=function(t,n){var r,s;if(t.bind===b&&b)return b.apply(t,i.call(arguments,1));if(!w.isFunction(t))throw new TypeError;return s=i.call(arguments,2),r=function(){if(this instanceof r){x.prototype=t.prototype;var e=new x,o=t.apply(e,s.concat(i.call(arguments)));return Object(o)===o?o:e}return t.apply(n,s.concat(i.call(arguments)))}},w.bindAll=function(e){var t=i.call(arguments,1);return t.length==0&&(t=w.functions(e)),E(t,function(t){e[t]=w.bind(e[t],e)}),e},w.memoize=function(e,t){var n={};return t||(t=w.identity),function(){var r=t.apply(this,arguments);return w.has(n,r)?n[r]:n[r]=e.apply(this,arguments)}},w.delay=function(e,t){var n=i.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},w.defer=function(e){return w.delay.apply(w,[e,1].concat(i.call(arguments,1)))},w.throttle=function(e,t){var n,r,i,s,o,u,a=w.debounce(function(){o=s=!1},t);return function(){n=this,r=arguments;var f=function(){i=null,o&&e.apply(n,r),a()};return i||(i=setTimeout(f,t)),s?o=!0:u=e.apply(n,r),a(),s=!0,u}},w.debounce=function(e,t,n){var r;return function(){var i=this,s=arguments,o=function(){r=null,n||e.apply(i,s)};n&&!r&&e.apply(i,s),clearTimeout(r),r=setTimeout(o,t)}},w.once=function(e){var t=!1,n;return function(){return t?n:(t=!0,n=e.apply(this,arguments))}},w.wrap=function(e,t){return function(){var n=[e].concat(i.call(arguments,0));return t.apply(this,n)}},w.compose=function(){var e=arguments;return function(){var t=arguments;for(var n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},w.after=function(e,t){return e<=0?t():function(){if(--e<1)return t.apply(this,arguments)}},w.keys=y||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)w.has(e,n)&&(t[t.length]=n);return t},w.values=function(e){return w.map(e,w.identity)},w.functions=w.methods=function(e){var t=[];for(var n in e)w.isFunction(e[n])&&t.push(n);return t.sort()},w.extend=function(e){return E(i.call(arguments,1),function(t){for(var n in t)e[n]=t[n]}),e},w.pick=function(e){var t={};return E(w.flatten(i.call(arguments,1)),function(n){n in e&&(t[n]=e[n])}),t},w.defaults=function(e){return E(i.call(arguments,1),function(t){for(var n in t)e[n]==null&&(e[n]=t[n])}),e},w.clone=function(e){return w.isObject(e)?w.isArray(e)?e.slice():w.extend({},e):e},w.tap=function(e,t){return t(e),e},w.isEqual=function(e,t){return T(e,t,[])},w.isEmpty=function(e){if(e==null)return!0;if(w.isArray(e)||w.isString(e))return e.length===0;for(var t in e)if(w.has(e,t))return!1;return!0},w.isElement=function(e){return!!e&&e.nodeType==1},w.isArray=g||function(e){return o.call(e)=="[object Array]"},w.isObject=function(e){return e===Object(e)},w.isArguments=function(e){return o.call(e)=="[object Arguments]"},w.isArguments(arguments)||(w.isArguments=function(e){return!!e&&!!w.has(e,"callee")}),w.isFunction=function(e){return o.call(e)=="[object Function]"},w.isString=function(e){return o.call(e)=="[object String]"},w.isNumber=function(e){return o.call(e)=="[object Number]"},w.isFinite=function(e){return w.isNumber(e)&&isFinite(e)},w.isNaN=function(e){return e!==e},w.isBoolean=function(e){return e===!0||e===!1||o.call(e)=="[object Boolean]"},w.isDate=function(e){return o.call(e)=="[object Date]"},w.isRegExp=function(e){return o.call(e)=="[object RegExp]"},w.isNull=function(e){return e===null},w.isUndefined=function(e){return e===void 0},w.has=function(e,t){return u.call(e,t)},w.noConflict=function(){return root._=previousUnderscore,this},w.identity=function(e){return e},w.times=function(e,t,n){for(var r=0;r<e;r++)t.call(n,r)},w.escape=function(e){return(""+e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},w.result=function(e,t){if(e==null)return null;var n=e[t];return w.isFunction(n)?n.call(e):n},w.mixin=function(e){E(w.functions(e),function(t){P(t,w[t]=e[t])})};var N=0;w.uniqueId=function(e){var t=N++;return e?e+t:t},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var C=/.^/,k={"\\":"\\","'":"'",r:"\r",n:"\n",t:"	",u2028:"\u2028",u2029:"\u2029"};for(var L in k)k[k[L]]=L;var A=/\\|'|\r|\n|\t|\u2028|\u2029/g,O=/\\(\\|'|r|n|t|u2028|u2029)/g,M=function(e){return e.replace(O,function(e,t){return k[t]})};w.template=function(e,t,n){n=w.defaults(n||{},w.templateSettings);var r="__p+='"+e.replace(A,function(e){return"\\"+k[e]}).replace(n.escape||C,function(e,t){return"'+\n_.escape("+M(t)+")+\n'"}).replace(n.interpolate||C,function(e,t){return"'+\n("+M(t)+")+\n'"}).replace(n.evaluate||C,function(e,t){return"';\n"+M(t)+"\n;__p+='"})+"';\n";n.variable||(r="with(obj||{}){\n"+r+"}\n"),r="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n"+r+"return __p;\n";var i=new Function(n.variable||"obj","_",r);if(t)return i(t,w);var s=function(e){return i.call(this,e,w)};return s.source="function("+(n.variable||"obj")+"){\n"+r+"}",s},w.chain=function(e){return w(e).chain()};var _=function(e){this._wrapped=e};w.prototype=_.prototype;var D=function(e,t){return t?w(e).chain():e},P=function(e,t){_.prototype[e]=function(){var e=i.call(arguments);return s.call(e,this._wrapped),D(t.apply(w,e),this._chain)}};return w.mixin(w),E(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=t[e];_.prototype[e]=function(){var t=this._wrapped;n.apply(t,arguments);var r=t.length;return(e=="shift"||e=="splice")&&r===0&&delete t[0],D(t,this._chain)}}),E(["concat","join","slice"],function(e){var n=t[e];_.prototype[e]=function(){return D(n.apply(this._wrapped,arguments),this._chain)}}),_.prototype.chain=function(){return this._chain=!0,this},_.prototype.value=function(){return this._wrapped},w}),define("hbs/i18nprecompile",["hbs/handlebars","hbs/underscore"],function(e,t){function n(r,i,s){return s=s||{},i=i||{},r&&r.type==="program"&&r.statements&&(t(r.statements).forEach(function(t,o){var u="<!-- i18n error -->";if(t.type==="mustache"&&t.id&&t.id.original==="$"){if(t.params.length&&t.params[0].string){var a=t.params[0].string;u=i[a]||(s.originalKeyFallback?a:u)}r.statements[o]=new e.AST.ContentNode(u)}else t.program&&(t.program=n(t.program,i,s))}),r.inverse&&n(r.inverse,i,s)),r}return function(t,r,i){i=i||{};var s,o;return s=e.parse(t),r!==!1&&(s=n(s,r,i)),o=(new e.Compiler).compile(s,i),(new e.JavaScriptCompiler).compile(o,i)}}),function(window){var JSON=window.JSON||{};(function(){"use strict";function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return typeof t=="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(e)),typeof rep=="function"&&(a=rep.call(t,e,a));switch(typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";gap+=indent,u=[];if(Object.prototype.toString.apply(a)==="[object Array]"){s=a.length;for(n=0;n<s;n+=1)u[n]=str(n,a)||"null";return i=u.length===0?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+o+"]":"["+u.join(",")+"]",gap=o,i}if(rep&&typeof rep=="object"){s=rep.length;for(n=0;n<s;n+=1)typeof rep[n]=="string"&&(r=rep[n],i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i))}else for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i));return i=u.length===0?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}",gap=o,i}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(e,t,n){var r;gap="",indent="";if(typeof n=="number")for(r=0;r<n;r+=1)indent+=" ";else typeof n=="string"&&(indent=n);rep=t;if(!t||typeof t=="function"||typeof t=="object"&&typeof t.length=="number")return str("",{"":e});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i=="object")for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r=walk(i,n),r!==undefined?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})(),define("hbs/json2",[],function(){return JSON})}.call(this,this),define("hbs",["hbs/handlebars","hbs/underscore","hbs/i18nprecompile","hbs/json2"],function(e,t,n,r){var i,s,o=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],u=function(){throw new Error("Environment unsupported.")},a=[],f="w+",l="hbs",c="@hbs",h="/styles/",p="/demo-build/styles/",d="templates/helpers/",v="templates/i18n/",m="screen.build.css",g="onHbsRead";e.registerHelper("$",function(){}),typeof window!="undefined"&&window.navigator&&window.document&&!window.navigator.userAgent.match(/Node.js/)?(s=function(){var e,t,n;if(typeof XMLHttpRequest!="undefined")return arguments[0]===!0?new XDomainRequest:new XMLHttpRequest;for(t=0;t<3;t++){n=o[t];try{e=new ActiveXObject(n)}catch(r){}if(e){o=[n];break}}if(!e)throw new Error("getXhr(): XMLHttpRequest not available");return e},getIEVersion=function(){var e=-1;if(navigator.appName=="Microsoft Internet Explorer"){var t=navigator.userAgent,n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");n.exec(t)!=null&&(e=parseFloat(RegExp.$1))}return e},u=function(e,t){var n=!1;if(e.indexOf("http")!=0)n=!1;else{var r=e.substr(0,5)==="https"?8:7,i=window.location.href.substr(0,5)==="https"?8:7,o=e.substr(r).split("/").shift(),u=getIEVersion();n=o!=window.location.href.substr(i).split("/").shift()&&u>=7}if(n){var a=s(!0);a.open("GET",e),a.onload=function(){t(a.responseText,e)},a.onprogress=function(){},a.ontimeout=function(){},a.onerror=function(){},setTimeout(function(){a.send()},0)}else{var f=s();f.open("GET",e,!0),f.onreadystatechange=function(n){f.readyState===4&&t(f.responseText,e)},f.send(null)}}):typeof process!="undefined"&&process.versions&&!!process.versions.node?(i=require.nodeRequire("fs"),u=function(e,t){var n=i.readFileSync(e,"utf8")||"";n=n.replace(/^\uFEFF/,""),t(n,e)}):typeof java!="undefined"&&typeof java.io!="undefined"&&(u=function(e,t){var n=new java.io.FileInputStream(e),r=new java.io.InputStreamReader(n,"UTF-8"),i=new java.io.BufferedReader(r),s,o="";while((s=i.readLine())!==null)o+=new String(s)+"\n";i.close(),t(o,e)});var y={},b=function(e,t){y[e]?t(y[e]):u(e,function(e,n){y[n]=e,t.call(this,e)})},w=[],E={};return{get:function(){return e},write:function(e,t,n){if(t+c in a){var r=a[t+c];n.asModule(e+"!"+t,r)}},version:"0.5.0",load:function(s,o,y,S){function L(e,n){return t(e).forEach(function(e){e&&e.type&&e.type==="partial"&&n.push(e.partialName.name),e&&e.program&&e.program.statements&&L(e.program.statements,n),e&&e.program&&e.program.inverse&&e.program.inverse.statements&&L(e.program.inverse.statements,n)}),n}function A(e){var n=[];return e&&e.statements&&(n=L(e.statements,[])),t(n).unique()}function O(e){var t,n,i;if(e&&e.statements){t=e.statements[0];if(t&&t.type==="comment")try{return n=t.comment.replace(new RegExp("^[\\s]+|[\\s]+$","g"),""),i=r.parse(n),n}catch(s){return r.stringify({description:n})}}return"{}"}function M(e){if(!e)return[];var t=[e[0]],n=e[0],r;for(r=1;r<e.length;++r)e.hasOwnProperty(r)&&(n+="."+e[r],t.push(n));return t}function D(n,r,i,s){i=i?i+".":"";var o="",u=!1;return t(n).forEach(function(n){var u,a,f;if(n&&n.type&&n.type==="mustache"){if(!n.params||!n.params.length){u=M(n.id.parts);for(a in u)u[a]&&(o=u[a]||o,r.push(i+u[a]));r.push(i+n.id.string)}var l=["this",".","..","./..","../..","../../.."];n.params&&typeof e.helpers[n.id.string]=="undefined"&&t(n.params).forEach(function(a){(t(l).contains(a.original)||a instanceof e.AST.StringNode||a instanceof e.AST.IntegerNode||a instanceof e.AST.BooleanNode)&&s.push(n.id.string),u=M(a.parts);for(var f in u)u[f]&&(o=u[f]||o,s.push(n.id.string),r.push(i+u[f]))})}n&&n.mustache&&D([n.mustache],r,i+o,s),n&&n.program&&n.program.statements&&(f=D([n.mustache],[],"",s)[0]||"",n.program.inverse&&n.program.inverse.statements&&D(n.program.inverse.statements,r,i+o+(f?i+o?"."+f:f:""),s),D(n.program.statements,r,i+o+(f?i+o?"."+f:f:""),s))}),r}function P(e){var n=[],r=[];e&&e.statements&&(n=D(e.statements,[],undefined,r));var i=["helperMissing","blockHelperMissing","each","if","unless","with"];return{vars:t(n).chain().unique().map(function(e){return e===""?".":e.length&&e[e.length-1]==="."?e.substr(0,e.length-1)+"[]":e}).value(),helpers:t(r).chain().unique().map(function(e){return t(i).contains(e)?undefined:e}).compact().value()}}function H(e){var t=e.split("/");for(var n=0;n<t.length;n++)t[n]==".."&&(delete t[n-1],delete t[n]);return t.join("/").replace(/\/\/+/g,"/")}function B(l){u(j,function(u,c){var v=S.isBuild&&S[g]?S[g]:function(e,t,n){return n},b=e.parse(v(s,c,u)),k=A(b),L=O(b),M=P(b),D=M.vars,B=M.helpers||[],j="",F="",I="",q=[],R,U,z,W,X,V=s.substr(0,s.lastIndexOf("/")+1);require.config.hbs=require.config.hbs||{},require.config.hbs._partials=require.config.hbs._partials||{};if(L!=="{}")try{z=r.parse(L)}catch($){console.log("couldn't parse meta for %s",c)}for(var J in k)if(k.hasOwnProperty(J)&&typeof k[J]=="string"){var K=k[J],c;K.match(/^(\.|\/)+/)?c=H(V+K):c=H(C+K),require.config.hbs._partials[c]=require.config.hbs._partials[c]||[],require.config.hbs._partials[c].references=require.config.hbs._partials[c].references||[],require.config.hbs._partials[c].references.push(K),require.config.hbs._loadedDeps=require.config.hbs._loadedDeps||{},q[J]="hbs!"+c}R=q.join("', '"),B=B.concat(z&&z.helpers?z.helpers:[]),U=N?"":function(){var e,t=[],n=S.hbs&&S.hbs.helperPathCallback?S.hbs.helperPathCallback:function(e){return(S.hbs&&S.hbs.helperDirectory?S.hbs.helperDirectory:d)+e};for(e=0;e<B.length;e++)t[e]="'"+n(B[e],c)+"'";return t}().join(","),U&&(U=","+U);if(z)try{z.styles&&(w=t.union(w,z.styles),require.isBrowser&&!S.isBuild?(W=document.head||document.getElementsByTagName("head")[0],t(z.styles).forEach(function(e){E[e]||(X=document.createElement("link"),X.href=S.baseUrl+h+e+".css",X.media="all",X.rel="stylesheet",X.type="text/css",W.appendChild(X),E[e]=X)})):S.isBuild&&function(){var e=require.nodeRequire("fs"),n=t(z.styles).map(function(e){return E[e]?"":(E[e]=!0,"@import url("+e+".css);\n")}).join("\n");e.open(__dirname+p+m,f,"0666",function(t,r){e.writeSync(r,n,null,encoding="utf8"),e.close(r)}),f="a"}())}catch($){console.log("error injecting styles")}!S.isBuild&&!S.serverRender&&(j="<!-- START - "+s+" -->",F="<!-- END - "+s+" -->",I="t.meta = "+L+";\n"+"t.helpers = "+r.stringify(B)+";\n"+"t.deps = "+r.stringify(q)+";\n"+"t.vars = "+r.stringify(D)+";\n");var Q=T?!1:t.extend(l,S.localeMapping),G=S.hbs||{},Y=t.extend(G.compileOptions||{},{originalKeyFallback:G.originalKeyFallback}),Z=n(u,Q,Y),et=S.isBuild?"":"'"+s+"',";R&&(R=", '"+R+"'");var tt=[];require.config.hbs._partials[s]&&(tt=require.config.hbs._partials[s].references),u="/* START_TEMPLATE */\ndefine("+et+"['hbs','hbs/handlebars'"+R+U+"], function( hbs, Handlebars ){ \n"+"var t = Handlebars.template("+Z+");\n"+"Handlebars.registerPartial('"+s+"', t);\n";for(var J=0;J<tt.length;J++)u+="Handlebars.registerPartial('"+tt[J]+"', t);\n";u+=I+"return t;\n"+"});\n"+"/* END_TEMPLATE */\n",S.isBuild&&(a[x]=u),S.isBuild||(u+="\r\n//@ sourceURL="+c),S.isBuild?(y.fromText(s,u),o([s],function(e){y(e)})):require(q,function(){y.fromText(u),o([s],function(e){y(e)})}),S.removeCombined&&c&&i.unlinkSync(c)})}var x=s+c;S.hbs=S.hbs||{};var T=S.hbs.i18n!=1,N=S.hbs.helpers==0,C="";S.hbs.partialsUrl&&(C=S.hbs.partialsUrl,C.match(/\/$/)||(C+="/"));var k=[],j,F=S.hbs&&S.hbs.templateExtension===!1;F?j=o.toUrl(s):j=o.toUrl(s+"."+(S.hbs&&S.hbs.templateExtension?S.hbs.templateExtension:l));if(T)B(!1);else{var I=(S.hbs&&S.hbs.i18nDirectory?S.hbs.i18nDirectory:v)+(S.locale||"en_us")+".json";try{b(o.toUrl(I),function(e){B(r.parse(e))})}catch(q){if(!!S.hbs)throw q;console.warn("hbs: Error reading "+I+", disabling i18n. Ignore this if you're using jam, otherwise check your i18n configuration.\n"),S.hbs={i18n:!1,helpers:!0},B(!1)}}}}}),function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define("moment",t):e.moment=t()}(this,function(){"use strict";function t(){return e.apply(null,arguments)}function n(t){e=t}function r(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function i(e){return Object.prototype.toString.call(e)==="[object Object]"}function s(e){var t;for(t in e)return!1;return!0}function o(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function u(e,t){var n=[],r;for(r=0;r<e.length;++r)n.push(t(e[r],r));return n}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,r){return Pr(e,t,n,r,!0).utc()}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function h(e){return e._pf==null&&(e._pf=c()),e._pf}function d(e){if(e._isValid==null){var t=h(e),n=p.call(t.parsedDateParts,function(e){return e!=null});e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(e._isValid=e._isValid&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined)}return e._isValid}function v(e){var t=l(NaN);return e!=null?f(h(t),e):h(t).userInvalidated=!0,t}function m(e){return e===void 0}function y(e,t){var n,r,i;m(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),m(t._i)||(e._i=t._i),m(t._f)||(e._f=t._f),m(t._l)||(e._l=t._l),m(t._strict)||(e._strict=t._strict),m(t._tzm)||(e._tzm=t._tzm),m(t._isUTC)||(e._isUTC=t._isUTC),m(t._offset)||(e._offset=t._offset),m(t._pf)||(e._pf=h(t)),m(t._locale)||(e._locale=t._locale);if(g.length>0)for(n in g)r=g[n],i=t[r],m(i)||(e[r]=i);return e}function w(e){y(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),b===!1&&(b=!0,t.updateOffset(this),b=!1)}function E(e){return e instanceof w||e!=null&&e._isAMomentObject!=null}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=S(t)),n}function T(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,o;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&x(e[o])!==x(t[o]))&&s++;return s+i}function N(e){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,n){var r=!0;return f(function(){return t.deprecationHandler!=null&&t.deprecationHandler(null,e),r&&(N(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),r=!1),n.apply(this,arguments)},n)}function L(e,n){t.deprecationHandler!=null&&t.deprecationHandler(e,n),k[e]||(N(n),k[e]=!0)}function A(e){return e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function O(e){var t,n;for(n in e)t=e[n],A(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function M(e,t){var n=f({},e),r;for(r in t)a(t,r)&&(i(e[r])&&i(t[r])?(n[r]={},f(n[r],e[r]),f(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)a(e,r)&&!a(t,r)&&i(e[r])&&(n[r]=f({},n[r]));return n}function _(e){e!=null&&this.set(e)}function H(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return A(r)?r.call(t,n):r}function j(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function I(){return this._invalidDate}function U(e){return this._ordinal.replace("%d",e)}function W(e,t,n,r){var i=this._relativeTime[n];return A(i)?i(e,t,n,r):i.replace(/%d/i,e)}function X(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)}function $(e,t){var n=e.toLowerCase();V[n]=V[n+"s"]=V[t]=e}function J(e){return typeof e=="string"?V[e]||V[e.toLowerCase()]:undefined}function K(e){var t={},n,r;for(r in e)a(e,r)&&(n=J(r),n&&(t[n]=e[r]));return t}function G(e,t){Q[e]=t}function Y(e){var t=[];for(var n in e)t.push({unit:n,priority:Q[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function Z(e,n){return function(r){return r!=null?(tt(this,e,r),t.updateOffset(this,n),this):et(this,e)}}function et(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function tt(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function nt(e){return e=J(e),A(this[e])?this[e]():this}function rt(e,t){if(typeof e=="object"){e=K(e);var n=Y(e);for(var r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else{e=J(e);if(A(this[e]))return this[e](t)}return this}function it(e,t,n){var r=""+Math.abs(e),i=t-r.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function ft(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(at[e]=i),t&&(at[t[0]]=function(){return it(i.apply(this,arguments),t[1],t[2])}),n&&(at[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function lt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ct(e){var t=e.match(st),n,r;for(n=0,r=t.length;n<r;n++)at[t[n]]?t[n]=at[t[n]]:t[n]=lt(t[n]);return function(n){var i="",s;for(s=0;s<r;s++)i+=t[s]instanceof Function?t[s].call(n,e):t[s];return i}}function ht(e,t){return e.isValid()?(t=pt(t,e.localeData()),ut[t]=ut[t]||ct(t),ut[t](e)):e.localeData().invalidDate()}function pt(e,t){function r(e){return t.longDateFormat(e)||e}var n=5;ot.lastIndex=0;while(n>=0&&ot.test(e))e=e.replace(ot,r),ot.lastIndex=0,n-=1;return e}function _t(e,t,n){Mt[e]=A(t)?t:function(e,r){return e&&n?n:t}}function Dt(e,t){return a(Mt,e)?Mt[e](t._strict,t._locale):new RegExp(Pt(e))}function Pt(e){return Ht(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Ht(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function jt(e,t){var n,r=t;typeof e=="string"&&(e=[e]),typeof t=="number"&&(r=function(e,n){n[t]=x(e)});for(n=0;n<e.length;n++)Bt[e[n]]=r}function Ft(e,t){jt(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function It(e,t,n){t!=null&&a(Bt,e)&&Bt[e](t,n._a,n,e)}function Qt(e,t){return(new Date(Date.UTC(e,t+1,0))).getUTCDate()}function Zt(e,t){return r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Gt).test(t)?"format":"standalone"][e.month()]}function tn(e,t){return r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Gt.test(t)?"format":"standalone"][e.month()]}function nn(e,t,n){var r,i,s,o=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];for(r=0;r<12;++r)s=l([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase()}return n?t==="MMM"?(i=Kt.call(this._shortMonthsParse,o),i!==-1?i:null):(i=Kt.call(this._longMonthsParse,o),i!==-1?i:null):t==="MMM"?(i=Kt.call(this._shortMonthsParse,o),i!==-1?i:(i=Kt.call(this._longMonthsParse,o),i!==-1?i:null)):(i=Kt.call(this._longMonthsParse,o),i!==-1?i:(i=Kt.call(this._shortMonthsParse,o),i!==-1?i:null))}function rn(e,t,n){var r,i,s;if(this._monthsParseExact)return nn.call(this,e,t,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(r=0;r<12;r++){i=l([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i"));if(n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function sn(e,t){var n;if(!e.isValid())return e;if(typeof t=="string")if(/^\d+$/.test(t))t=x(t);else{t=e.localeData().monthsParse(t);if(typeof t!="number")return e}return n=Math.min(e.date(),Qt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function on(e){return e!=null?(sn(this,e),t.updateOffset(this,!0),this):et(this,"Month")}function un(){return Qt(this.year(),this.month())}function fn(e){return this._monthsParseExact?(a(this,"_monthsRegex")||hn.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=an),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function cn(e){return this._monthsParseExact?(a(this,"_monthsRegex")||hn.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ln),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function hn(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i,s;for(i=0;i<12;i++)s=l([2e3,i]),t.push(this.monthsShort(s,"")),n.push(this.months(s,"")),r.push(this.months(s,"")),r.push(this.monthsShort(s,""));t.sort(e),n.sort(e),r.sort(e);for(i=0;i<12;i++)t[i]=Ht(t[i]),n[i]=Ht(n[i]);for(i=0;i<24;i++)r[i]=Ht(r[i]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function pn(e){return dn(e)?366:365}function dn(e){return e%4===0&&e%100!==0||e%400===0}function mn(){return dn(this.year())}function gn(e,t,n,r,i,s,o){var u=new Date(e,t,n,r,i,s,o);return e<100&&e>=0&&isFinite(u.getFullYear())&&u.setFullYear(e),u}function yn(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function bn(e,t,n){var r=7+t-n,i=(7+yn(e,0,r).getUTCDay()-t)%7;return-i+r-1}function wn(e,t,n,r,i){var s=(7+n-r)%7,o=bn(e,r,i),u=1+7*(t-1)+s+o,a,f;return u<=0?(a=e-1,f=pn(a)+u):u>pn(e)?(a=e+1,f=u-pn(e)):(a=e,f=u),{year:a,dayOfYear:f}}function En(e,t,n){var r=bn(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,s,o;return i<1?(o=e.year()-1,s=i+Sn(o,t,n)):i>Sn(e.year(),t,n)?(s=i-Sn(e.year(),t,n),o=e.year()+1):(o=e.year(),s=i),{week:s,year:o}}function Sn(e,t,n){var r=bn(e,t,n),i=bn(e+1,t,n);return(pn(e)-r+i)/7}function xn(e){return En(e,this._week.dow,this._week.doy).week}function Nn(){return this._week.dow}function Cn(){return this._week.doy}function kn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ln(e){var t=En(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function An(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function On(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function _n(e,t){return r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function Pn(e){return this._weekdaysShort[e.day()]}function Bn(e){return this._weekdaysMin[e.day()]}function jn(e,t,n){var r,i,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];for(r=0;r<7;++r)s=l([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase()}return n?t==="dddd"?(i=Kt.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=Kt.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=Kt.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=Kt.call(this._weekdaysParse,o),i!==-1?i:(i=Kt.call(this._shortWeekdaysParse,o),i!==-1?i:(i=Kt.call(this._minWeekdaysParse,o),i!==-1?i:null))):t==="ddd"?(i=Kt.call(this._shortWeekdaysParse,o),i!==-1?i:(i=Kt.call(this._weekdaysParse,o),i!==-1?i:(i=Kt.call(this._minWeekdaysParse,o),i!==-1?i:null))):(i=Kt.call(this._minWeekdaysParse,o),i!==-1?i:(i=Kt.call(this._weekdaysParse,o),i!==-1?i:(i=Kt.call(this._shortWeekdaysParse,o),i!==-1?i:null)))}function Fn(e,t,n){var r,i,s;if(this._weekdaysParseExact)return jn.call(this,e,t,n);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(r=0;r<7;r++){i=l([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i"));if(n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function In(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=An(e,this.localeData()),this.add(e-t,"d")):t}function qn(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Rn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=On(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function zn(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Jn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Un),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xn(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Jn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $n(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Jn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jn(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i=[],s,o,u,a,f;for(s=0;s<7;s++)o=l([2e3,1]).day(s),u=this.weekdaysMin(o,""),a=this.weekdaysShort(o,""),f=this.weekdays(o,""),t.push(u),n.push(a),r.push(f),i.push(u),i.push(a),i.push(f);t.sort(e),n.sort(e),r.sort(e),i.sort(e);for(s=0;s<7;s++)n[s]=Ht(n[s]),r[s]=Ht(r[s]),i[s]=Ht(i[s]);this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Kn(){return this.hours()%12||12}function Qn(){return this.hours()||24}function Gn(e,t){ft(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Yn(e,t){return t._meridiemParse}function Zn(e){return(e+"").toLowerCase().charAt(0)==="p"}function tr(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function or(e){return e?e.toLowerCase().replace("_","-"):e}function ur(e){var t=0,n,r,i,s;while(t<e.length){s=or(e[t]).split("-"),n=s.length,r=or(e[t+1]),r=r?r.split("-"):null;while(n>0){i=ar(s.slice(0,n).join("-"));if(i)return i;if(r&&r.length>=n&&T(s,r,!0)>=n-1)break;n--}t++}return null}function ar(e){var t=null;if(!ir[e]&&typeof module!="undefined"&&module&&module.exports)try{t=sr._abbr,require("./locale/"+e),fr(t)}catch(n){}return ir[e]}function fr(e,t){var n;return e&&(m(t)?n=hr(e):n=lr(e,t),n&&(sr=n)),sr._abbr}function lr(e,t){if(t!==null){var n=rr;return t.abbr=e,ir[e]!=null?(L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ir[e]._config):t.parentLocale!=null&&(ir[t.parentLocale]!=null?n=ir[t.parentLocale]._config:L("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),ir[e]=new _(M(n,t)),fr(e),ir[e]}return delete ir[e],null}function cr(e,t){if(t!=null){var n,r=rr;ir[e]!=null&&(r=ir[e]._config),t=M(r,t),n=new _(t),n.parentLocale=ir[e],ir[e]=n,fr(e)}else ir[e]!=null&&(ir[e].parentLocale!=null?ir[e]=ir[e].parentLocale:ir[e]!=null&&delete ir[e]);return ir[e]}function hr(e){var t;e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr);if(!e)return sr;if(!r(e)){t=ar(e);if(t)return t;e=[e]}return ur(e)}function pr(){return D(ir)}function dr(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[Rt]<0||n[Rt]>11?Rt:n[Ut]<1||n[Ut]>Qt(n[qt],n[Rt])?Ut:n[zt]<0||n[zt]>24||n[zt]===24&&(n[Wt]!==0||n[Xt]!==0||n[Vt]!==0)?zt:n[Wt]<0||n[Wt]>59?Wt:n[Xt]<0||n[Xt]>59?Xt:n[Vt]<0||n[Vt]>999?Vt:-1,h(e)._overflowDayOfYear&&(t<qt||t>Ut)&&(t=Ut),h(e)._overflowWeeks&&t===-1&&(t=$t),h(e)._overflowWeekday&&t===-1&&(t=Jt),h(e).overflow=t),e}function Er(e){var t,n,r=e._i,i=vr.exec(r)||mr.exec(r),s,o,u,a;if(i){h(e).iso=!0;for(t=0,n=yr.length;t<n;t++)if(yr[t][1].exec(i[1])){o=yr[t][0],s=yr[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=br.length;t<n;t++)if(br[t][1].exec(i[3])){u=(i[2]||" ")+br[t][0];break}if(u==null){e._isValid=!1;return}}if(!s&&u!=null){e._isValid=!1;return}if(i[4]){if(!gr.exec(i[4])){e._isValid=!1;return}a="Z"}e._f=o+(u||"")+(a||""),kr(e)}else e._isValid=!1}function Sr(e){var n=wr.exec(e._i);if(n!==null){e._d=new Date(+n[1]);return}Er(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))}function xr(e,t,n){return e!=null?e:t!=null?t:n}function Tr(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Nr(e){var t,n,r=[],i,s;if(e._d)return;i=Tr(e),e._w&&e._a[Ut]==null&&e._a[Rt]==null&&Cr(e),e._dayOfYear&&(s=xr(e._a[qt],i[qt]),e._dayOfYear>pn(s)&&(h(e)._overflowDayOfYear=!0),n=yn(s,0,e._dayOfYear),e._a[Rt]=n.getUTCMonth(),e._a[Ut]=n.getUTCDate());for(t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[zt]===24&&e._a[Wt]===0&&e._a[Xt]===0&&e._a[Vt]===0&&(e._nextDay=!0,e._a[zt]=0),e._d=(e._useUTC?yn:gn).apply(null,r),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[zt]=24)}function Cr(e){var t,n,r,i,s,o,u,a;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){s=1,o=4,n=xr(t.GG,e._a[qt],En(Hr(),1,4).year),r=xr(t.W,1),i=xr(t.E,1);if(i<1||i>7)a=!0}else{s=e._locale._week.dow,o=e._locale._week.doy,n=xr(t.gg,e._a[qt],En(Hr(),s,o).year),r=xr(t.w,1);if(t.d!=null){i=t.d;if(i<0||i>6)a=!0}else if(t.e!=null){i=t.e+s;if(t.e<0||t.e>6)a=!0}else i=s}r<1||r>Sn(n,s,o)?h(e)._overflowWeeks=!0:a!=null?h(e)._overflowWeekday=!0:(u=wn(n,r,i,s,o),e._a[qt]=u.year,e._dayOfYear=u.dayOfYear)}function kr(e){if(e._f===t.ISO_8601){Er(e);return}e._a=[],h(e).empty=!0;var n=""+e._i,r,i,s,o,u,a=n.length,f=0;s=pt(e._f,e._locale).match(st)||[];for(r=0;r<s.length;r++)o=s[r],i=(n.match(Dt(o,e))||[])[0],i&&(u=n.substr(0,n.indexOf(i)),u.length>0&&h(e).unusedInput.push(u),n=n.slice(n.indexOf(i)+i.length),f+=i.length),at[o]?(i?h(e).empty=!1:h(e).unusedTokens.push(o),It(o,i,e)):e._strict&&!i&&h(e).unusedTokens.push(o);h(e).charsLeftOver=a-f,n.length>0&&h(e).unusedInput.push(n),e._a[zt]<=12&&h(e).bigHour===!0&&e._a[zt]>0&&(h(e).bigHour=undefined),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[zt]=Lr(e._locale,e._a[zt],e._meridiem),Nr(e),dr(e)}function Lr(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):e.isPM!=null?(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0),t):t}function Ar(e){var t,n,r,i,s;if(e._f.length===0){h(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<e._f.length;i++){s=0,t=y({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],kr(t);if(!d(t))continue;s+=h(t).charsLeftOver,s+=h(t).unusedTokens.length*10,h(t).score=s;if(r==null||s<r)r=s,n=t}f(e,n||t)}function Or(e){if(e._d)return;var t=K(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Nr(e)}function Mr(e){var t=new w(dr(_r(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function _r(e){var t=e._i,n=e._f;return e._locale=e._locale||hr(e._l),t===null||n===undefined&&t===""?v({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),E(t)?new w(dr(t)):(r(n)?Ar(e):o(t)?e._d=t:n?kr(e):Dr(e),d(e)||(e._d=null),e))}function Dr(e){var n=e._i;n===undefined?e._d=new Date(t.now()):o(n)?e._d=new Date(n.valueOf()):typeof n=="string"?Sr(e):r(n)?(e._a=u(n.slice(0),function(e){return parseInt(e,10)}),Nr(e)):typeof n=="object"?Or(e):typeof n=="number"?e._d=new Date(n):t.createFromInputFallback(e)}function Pr(e,t,n,o,u){var a={};typeof n=="boolean"&&(o=n,n=undefined);if(i(e)&&s(e)||r(e)&&e.length===0)e=undefined;return a._isAMomentObject=!0,a._useUTC=a._isUTC=u,a._l=n,a._i=e,a._f=t,a._strict=o,Mr(a)}function Hr(e,t,n,r){return Pr(e,t,n,r,!1)}function Fr(e,t){var n,i;t.length===1&&r(t[0])&&(t=t[0]);if(!t.length)return Hr();n=t[0];for(i=1;i<t.length;++i)if(!t[i].isValid()||t[i][e](n))n=t[i];return n}function Ir(){var e=[].slice.call(arguments,0);return Fr("isBefore",e)}function qr(){var e=[].slice.call(arguments,0);return Fr("isAfter",e)}function Ur(e){var t=K(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||0,o=t.day||0,u=t.hour||0,a=t.minute||0,f=t.second||0,l=t.millisecond||0;this._milliseconds=+l+f*1e3+a*6e4+u*1e3*60*60,this._days=+o+s*7,this._months=+i+r*3+n*12,this._data={},this._locale=hr(),this._bubble()}function zr(e){return e instanceof Ur}function Wr(e,t){ft(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+it(~~(e/60),2)+t+it(~~e%60,2)})}function Vr(e,t){var n=(t||"").match(e)||[],r=n[n.length-1]||[],i=(r+"").match(Xr)||["-",0,0],s=+(i[1]*60)+x(i[2]);return i[0]==="+"?s:-s}function $r(e,n){var r,i;return n._isUTC?(r=n.clone(),i=(E(e)||o(e)?e.valueOf():Hr(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),t.updateOffset(r,!1),r):Hr(e).local()}function Jr(e){return-Math.round(e._d.getTimezoneOffset()/15)*15}function Kr(e,n){var r=this._offset||0,i;return this.isValid()?e!=null?(typeof e=="string"?e=Vr(Lt,e):Math.abs(e)<16&&(e*=60),!this._isUTC&&n&&(i=Jr(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?di(this,ai(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:Jr(this):e!=null?this:NaN}function Qr(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Gr(e){return this.utcOffset(0,e)}function Yr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Jr(this),"m")),this}function Zr(){return this._tzm?this.utcOffset(this._tzm):typeof this._i=="string"&&this.utcOffset(Vr(kt,this._i)),this}function ei(e){return this.isValid()?(e=e?Hr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ti(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ni(){if(!m(this._isDSTShifted))return this._isDSTShifted;var e={};y(e,this),e=_r(e);if(e._a){var t=e._isUTC?l(e._a):Hr(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function ri(){return this.isValid()?!this._isUTC:!1}function ii(){return this.isValid()?this._isUTC:!1}function si(){return this.isValid()?this._isUTC&&this._offset===0:!1}function ai(e,t){var n=e,r=null,i,s,o;return zr(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:typeof e=="number"?(n={},t?n[t]=e:n.milliseconds=e):(r=oi.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:x(r[Ut])*i,h:x(r[zt])*i,m:x(r[Wt])*i,s:x(r[Xt])*i,ms:x(r[Vt])*i}):(r=ui.exec(e))?(i=r[1]==="-"?-1:1,n={y:fi(r[2],i),M:fi(r[3],i),w:fi(r[4],i),d:fi(r[5],i),h:fi(r[6],i),m:fi(r[7],i),s:fi(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=ci(Hr(n.from),Hr(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),s=new Ur(n),zr(e)&&a(e,"_locale")&&(s._locale=e._locale),s}function fi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function li(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t- +e.clone().add(n.months,"M"),n}function ci(e,t){var n;return!e.isValid()||!t.isValid()?{milliseconds:0,months:0}:(t=$r(t,e),e.isBefore(t)?n=li(e,t):(n=li(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n)}function hi(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function pi(e,t){return function(n,r){var i,s;return r!==null&&!isNaN(+r)&&(L(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=r,r=s),n=typeof n=="string"?+n:n,i=ai(n,r),di(this,i,e),this}}function di(e,n,r,i){var s=n._milliseconds,o=hi(n._days),u=hi(n._months);if(!e.isValid())return;i=i==null?!0:i,s&&e._d.setTime(e._d.valueOf()+s*r),o&&tt(e,"Date",et(e,"Date")+o*r),u&&sn(e,et(e,"Month")+u*r),i&&t.updateOffset(e,o||u)}function gi(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function yi(e,n){var r=e||Hr(),i=$r(r,this).startOf("day"),s=t.calendarFormat(this,i)||"sameElse",o=n&&(A(n[s])?n[s].call(this,r):n[s]);return this.format(o||this.localeData().calendar(s,this,Hr(r)))}function bi(){return new w(this)}function wi(e,t){var n=E(e)?e:Hr(e);return!this.isValid()||!n.isValid()?!1:(t=J(m(t)?"millisecond":t),t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Ei(e,t){var n=E(e)?e:Hr(e);return!this.isValid()||!n.isValid()?!1:(t=J(m(t)?"millisecond":t),t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Si(e,t,n,r){return r=r||"()",(r[0]==="("?this.isAfter(e,n):!this.isBefore(e,n))&&(r[1]===")"?this.isBefore(t,n):!this.isAfter(t,n))}function xi(e,t){var n=E(e)?e:Hr(e),r;return!this.isValid()||!n.isValid()?!1:(t=J(t||"millisecond"),t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))}function Ti(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ni(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ci(e,t,n){var r,i,s,o;return this.isValid()?(r=$r(e,this),r.isValid()?(i=(r.utcOffset()-this.utcOffset())*6e4,t=J(t),t==="year"||t==="month"||t==="quarter"?(o=ki(this,r),t==="quarter"?o/=3:t==="year"&&(o/=12)):(s=this-r,o=t==="second"?s/1e3:t==="minute"?s/6e4:t==="hour"?s/36e5:t==="day"?(s-i)/864e5:t==="week"?(s-i)/6048e5:s),n?o:S(o)):NaN):NaN}function ki(e,t){var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,s;return t-r<0?(i=e.clone().add(n-1,"months"),s=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),s=(t-r)/(i-r)),-(n+s)||0}function Li(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ai(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?A(Date.prototype.toISOString)?this.toDate().toISOString():ht(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):ht(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function Oi(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=ht(this,e);return this.localeData().postformat(n)}function Mi(e,t){return this.isValid()&&(E(e)&&e.isValid()||Hr(e).isValid())?ai({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _i(e){return this.from(Hr(),e)}function Di(e,t){return this.isValid()&&(E(e)&&e.isValid()||Hr(e).isValid())?ai({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Pi(e){return this.to(Hr(),e)}function Hi(e){var t;return e===undefined?this._locale._abbr:(t=hr(e),t!=null&&(this._locale=t),this)}function ji(){return this._locale}function Fi(e){e=J(e);switch(e){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return e==="week"&&this.weekday(0),e==="isoWeek"&&this.isoWeekday(1),e==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function Ii(e){return e=J(e),e===undefined||e==="millisecond"?this:(e==="date"&&(e="day"),this.startOf(e).add(1,e==="isoWeek"?"week":e).subtract(1,"ms"))}function qi(){return this._d.valueOf()-(this._offset||0)*6e4}function Ri(){return Math.floor(this.valueOf()/1e3)}function Ui(){return new Date(this.valueOf())}function zi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Wi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Xi(){return this.isValid()?this.toISOString():null}function Vi(){return d(this)}function $i(){return f({},h(this))}function Ji(){return h(this).overflow}function Ki(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Qi(e,t){ft(0,[e,e.length],0,t)}function Gi(e){return ts.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Yi(e){return ts.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Zi(){return Sn(this.year(),1,4)}function es(){var e=this.localeData()._week;return Sn(this.year(),e.dow,e.doy)}function ts(e,t,n,r,i){var s;return e==null?En(this,r,i).year:(s=Sn(e,r,i),t>s&&(t=s),ns.call(this,e,t,n,r,i))}function ns(e,t,n,r,i){var s=wn(e,t,n,r,i),o=yn(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function rs(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}function ss(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}function fs(e,t){t[Vt]=x(("0."+e)*1e3)}function cs(){return this._isUTC?"UTC":""}function hs(){return this._isUTC?"Coordinated Universal Time":""}function vs(e){return Hr(e*1e3)}function ms(){return Hr.apply(null,arguments).parseZone()}function gs(e){return e}function bs(e,t,n,r){var i=hr(),s=l().set(r,t);return i[n](s,e)}function ws(e,t,n){typeof e=="number"&&(t=e,e=undefined),e=e||"";if(t!=null)return bs(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bs(e,r,n,"month");return i}function Es(e,t,n,r){typeof e=="boolean"?(typeof t=="number"&&(n=t,t=undefined),t=t||""):(t=e,n=t,e=!1,typeof t=="number"&&(n=t,t=undefined),t=t||"");var i=hr(),s=e?i._week.dow:0;if(n!=null)return bs(t,(n+s)%7,r,"day");var o,u=[];for(o=0;o<7;o++)u[o]=bs(t,(o+s)%7,r,"day");return u}function Ss(e,t){return ws(e,t,"months")}function xs(e,t){return ws(e,t,"monthsShort")}function Ts(e,t,n){return Es(e,t,n,"weekdays")}function Ns(e,t,n){return Es(e,t,n,"weekdaysShort")}function Cs(e,t,n){return Es(e,t,n,"weekdaysMin")}function Ls(){var e=this._data;return this._milliseconds=ks(this._milliseconds),this._days=ks(this._days),this._months=ks(this._months),e.milliseconds=ks(e.milliseconds),e.seconds=ks(e.seconds),e.minutes=ks(e.minutes),e.hours=ks(e.hours),e.months=ks(e.months),e.years=ks(e.years),this}function As(e,t,n,r){var i=ai(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Os(e,t){return As(this,e,t,1)}function Ms(e,t){return As(this,e,t,-1)}function _s(e){return e<0?Math.floor(e):Math.ceil(e)}function Ds(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,s,o,u,a;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=_s(Hs(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=S(e/1e3),r.seconds=i%60,s=S(i/60),r.minutes=s%60,o=S(s/60),r.hours=o%24,t+=S(o/24),a=S(Ps(t)),n+=a,t-=_s(Hs(a)),u=S(n/12),n%=12,r.days=t,r.months=n,r.years=u,this}function Ps(e){return e*4800/146097}function Hs(e){return e*146097/4800}function Bs(e){var t,n,r=this._milliseconds;e=J(e);if(e==="month"||e==="year")return t=this._days+r/864e5,n=this._months+Ps(t),e==="month"?n:n/12;t=this._days+Math.round(Hs(this._months));switch(e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function js(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+x(this._months/12)*31536e6}function Fs(e){return function(){return this.as(e)}}function $s(e){return e=J(e),this[e+"s"]()}function Js(e){return function(){return this._data[e]}}function no(){return S(this.days()/7)}function so(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function oo(e,t,n){var r=ai(e).abs(),i=ro(r.as("s")),s=ro(r.as("m")),o=ro(r.as("h")),u=ro(r.as("d")),a=ro(r.as("M")),f=ro(r.as("y")),l=i<io.s&&["s",i]||s<=1&&["m"]||s<io.m&&["mm",s]||o<=1&&["h"]||o<io.h&&["hh",o]||u<=1&&["d"]||u<io.d&&["dd",u]||a<=1&&["M"]||a<io.M&&["MM",a]||f<=1&&["y"]||["yy",f];return l[2]=t,l[3]=+e>0,l[4]=n,so.apply(null,l)}function uo(e){return e===undefined?ro:typeof e=="function"?(ro=e,!0):!1}function ao(e,t){return io[e]===undefined?!1:t===undefined?io[e]:(io[e]=t,!0)}function fo(e){var t=this.localeData(),n=oo(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function co(){var e=lo(this._milliseconds)/1e3,t=lo(this._days),n=lo(this._months),r,i,s;r=S(e/60),i=S(r/60),e%=60,r%=60,s=S(n/12),n%=12;var o=s,u=n,a=t,f=i,l=r,c=e,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(o?o+"Y":"")+(u?u+"M":"")+(a?a+"D":"")+(f||l||c?"T":"")+(f?f+"H":"")+(l?l+"M":"")+(c?c+"S":""):"P0D"}var e,p;Array.prototype.some?p=Array.prototype.some:p=function(e){var t=Object(this),n=t.length>>>0;for(var r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=t.momentProperties=[],b=!1,k={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var D;Object.keys?D=Object.keys:D=function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},B={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},F="Invalid date",q="%d",R=/\d{1,2}/,z={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},V={},Q={},st=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ot=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ut={},at={},dt=/\d/,vt=/\d\d/,mt=/\d{3}/,gt=/\d{4}/,yt=/[+-]?\d{6}/,bt=/\d\d?/,wt=/\d\d\d\d?/,Et=/\d\d\d\d\d\d?/,St=/\d{1,3}/,xt=/\d{1,4}/,Tt=/[+-]?\d{1,6}/,Nt=/\d+/,Ct=/[+-]?\d+/,kt=/Z|[+-]\d\d:?\d\d/gi,Lt=/Z|[+-]\d\d(?::?\d\d)?/gi,At=/[+-]?\d+(\.\d{1,3})?/,Ot=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Mt={},Bt={},qt=0,Rt=1,Ut=2,zt=3,Wt=4,Xt=5,Vt=6,$t=7,Jt=8,Kt;Array.prototype.indexOf?Kt=Array.prototype.indexOf:Kt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},ft("M",["MM",2],"Mo",function(){return this.month()+1}),ft("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),ft("MMMM",0,0,function(e){return this.localeData().months(this,e)}),$("month","M"),G("month",8),_t("M",bt),_t("MM",bt,vt),_t("MMM",function(e,t){return t.monthsShortRegex(e)}),_t("MMMM",function(e,t){return t.monthsRegex(e)}),jt(["M","MM"],function(e,t){t[Rt]=x(e)-1}),jt(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Rt]=i:h(n).invalidMonth=e});var Gt=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Yt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),en="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),an=Ot,ln=Ot;ft("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),ft(0,["YY",2],0,function(){return this.year()%100}),ft(0,["YYYY",4],0,"year"),ft(0,["YYYYY",5],0,"year"),ft(0,["YYYYYY",6,!0],0,"year"),$("year","y"),G("year",1),_t("Y",Ct),_t("YY",bt,vt),_t("YYYY",xt,gt),_t("YYYYY",Tt,yt),_t("YYYYYY",Tt,yt),jt(["YYYYY","YYYYYY"],qt),jt("YYYY",function(e,n){n[qt]=e.length===2?t.parseTwoDigitYear(e):x(e)}),jt("YY",function(e,n){n[qt]=t.parseTwoDigitYear(e)}),jt("Y",function(e,t){t[qt]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return x(e)+(x(e)>68?1900:2e3)};var vn=Z("FullYear",!0);ft("w",["ww",2],"wo","week"),ft("W",["WW",2],"Wo","isoWeek"),$("week","w"),$("isoWeek","W"),G("week",5),G("isoWeek",5),_t("w",bt),_t("ww",bt,vt),_t("W",bt),_t("WW",bt,vt),Ft(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)});var Tn={dow:0,doy:6};ft("d",0,"do","day"),ft("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),ft("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),ft("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),ft("e",0,0,"weekday"),ft("E",0,0,"isoWeekday"),$("day","d"),$("weekday","e"),$("isoWeekday","E"),G("day",11),G("weekday",11),G("isoWeekday",11),_t("d",bt),_t("e",bt),_t("E",bt),_t("dd",function(e,t){return t.weekdaysMinRegex(e)}),_t("ddd",function(e,t){return t.weekdaysShortRegex(e)}),_t("dddd",function(e,t){return t.weekdaysRegex(e)}),Ft(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:h(n).invalidWeekday=e}),Ft(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var Mn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Hn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Un=Ot,Wn=Ot,Vn=Ot;ft("H",["HH",2],0,"hour"),ft("h",["hh",2],0,Kn),ft("k",["kk",2],0,Qn),ft("hmm",0,0,function(){return""+Kn.apply(this)+it(this.minutes(),2)}),ft("hmmss",0,0,function(){return""+Kn.apply(this)+it(this.minutes(),2)+it(this.seconds(),2)}),ft("Hmm",0,0,function(){return""+this.hours()+it(this.minutes(),2)}),ft("Hmmss",0,0,function(){return""+this.hours()+it(this.minutes(),2)+it(this.seconds(),2)}),Gn("a",!0),Gn("A",!1),$("hour","h"),G("hour",13),_t("a",Yn),_t("A",Yn),_t("H",bt),_t("h",bt),_t("HH",bt,vt),_t("hh",bt,vt),_t("hmm",wt),_t("hmmss",Et),_t("Hmm",wt),_t("Hmmss",Et),jt(["H","HH"],zt),jt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),jt(["h","hh"],function(e,t,n){t[zt]=x(e),h(n).bigHour=!0}),jt("hmm",function(e,t,n){var r=e.length-2;t[zt]=x(e.substr(0,r)),t[Wt]=x(e.substr(r)),h(n).bigHour=!0}),jt("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[zt]=x(e.substr(0,r)),t[Wt]=x(e.substr(r,2)),t[Xt]=x(e.substr(i)),h(n).bigHour=!0}),jt("Hmm",function(e,t,n){var r=e.length-2;t[zt]=x(e.substr(0,r)),t[Wt]=x(e.substr(r))}),jt("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[zt]=x(e.substr(0,r)),t[Wt]=x(e.substr(r,2)),t[Xt]=x(e.substr(i))});var er=/[ap]\.?m?\.?/i,nr=Z("Hours",!0),rr={calendar:P,longDateFormat:B,invalidDate:F,ordinal:q,ordinalParse:R,relativeTime:z,months:Yt,monthsShort:en,week:Tn,weekdays:Mn,weekdaysMin:Hn,weekdaysShort:Dn,meridiemParse:er},ir={},sr,vr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,mr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,gr=/Z|[+-]\d\d(?::?\d\d)?/,yr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],br=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wr=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=C("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){};var Br=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Hr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),jr=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Hr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}),Rr=function(){return Date.now?Date.now():+(new Date)};Wr("Z",":"),Wr("ZZ",""),_t("Z",Lt),_t("ZZ",Lt),jt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Vr(Lt,e)});var Xr=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var oi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,ui=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;ai.fn=Ur.prototype;var vi=pi(1,"add"),mi=pi(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Bi=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===undefined?this.localeData():this.locale(e)});ft(0,["gg",2],0,function(){return this.weekYear()%100}),ft(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Qi("gggg","weekYear"),Qi("ggggg","weekYear"),Qi("GGGG","isoWeekYear"),Qi("GGGGG","isoWeekYear"),$("weekYear","gg"),$("isoWeekYear","GG"),G("weekYear",1),G("isoWeekYear",1),_t("G",Ct),_t("g",Ct),_t("GG",bt,vt),_t("gg",bt,vt),_t("GGGG",xt,gt),_t("gggg",xt,gt),_t("GGGGG",Tt,yt),_t("ggggg",Tt,yt),Ft(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),Ft(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),ft("Q",0,"Qo","quarter"),$("quarter","Q"),G("quarter",7),_t("Q",dt),jt("Q",function(e,t){t[Rt]=(x(e)-1)*3}),ft("D",["DD",2],"Do","date"),$("date","D"),G("date",9),_t("D",bt),_t("DD",bt,vt),_t("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),jt(["D","DD"],Ut),jt("Do",function(e,t){t[Ut]=x(e.match(bt)[0],10)});var is=Z("Date",!0);ft("DDD",["DDDD",3],"DDDo","dayOfYear"),$("dayOfYear","DDD"),G("dayOfYear",4),_t("DDD",St),_t("DDDD",mt),jt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),ft("m",["mm",2],0,"minute"),$("minute","m"),G("minute",14),_t("m",bt),_t("mm",bt,vt),jt(["m","mm"],Wt);var os=Z("Minutes",!1);ft("s",["ss",2],0,"second"),$("second","s"),G("second",15),_t("s",bt),_t("ss",bt,vt),jt(["s","ss"],Xt);var us=Z("Seconds",!1);ft("S",0,0,function(){return~~(this.millisecond()/100)}),ft(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ft(0,["SSS",3],0,"millisecond"),ft(0,["SSSS",4],0,function(){return this.millisecond()*10}),ft(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ft(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ft(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ft(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ft(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),$("millisecond","ms"),G("millisecond",16),_t("S",St,dt),_t("SS",St,vt),_t("SSS",St,mt);var as;for(as="SSSS";as.length<=9;as+="S")_t(as,Nt);for(as="S";as.length<=9;as+="S")jt(as,fs);var ls=Z("Milliseconds",!1);ft("z",0,0,"zoneAbbr"),ft("zz",0,0,"zoneName");var ps=w.prototype;ps.add=vi,ps.calendar=yi,ps.clone=bi,ps.diff=Ci,ps.endOf=Ii,ps.format=Oi,ps.from=Mi,ps.fromNow=_i,ps.to=Di,ps.toNow=Pi,ps.get=nt,ps.invalidAt=Ji,ps.isAfter=wi,ps.isBefore=Ei,ps.isBetween=Si,ps.isSame=xi,ps.isSameOrAfter=Ti,ps.isSameOrBefore=Ni,ps.isValid=Vi,ps.lang=Bi,ps.locale=Hi,ps.localeData=ji,ps.max=jr,ps.min=Br,ps.parsingFlags=$i,ps.set=rt,ps.startOf=Fi,ps.subtract=mi,ps.toArray=zi,ps.toObject=Wi,ps.toDate=Ui,ps.toISOString=Ai,ps.toJSON=Xi,ps.toString=Li,ps.unix=Ri,ps.valueOf=qi,ps.creationData=Ki,ps.year=vn,ps.isLeapYear=mn,ps.weekYear=Gi,ps.isoWeekYear=Yi,ps.quarter=ps.quarters=rs,ps.month=on,ps.daysInMonth=un,ps.week=ps.weeks=kn,ps.isoWeek=ps.isoWeeks=Ln,ps.weeksInYear=es,ps.isoWeeksInYear=Zi,ps.date=is,ps.day=ps.days=In,ps.weekday=qn,ps.isoWeekday=Rn,ps.dayOfYear=ss,ps.hour=ps.hours=nr,ps.minute=ps.minutes=os,ps.second=ps.seconds=us,ps.millisecond=ps.milliseconds=ls,ps.utcOffset=Kr,ps.utc=Gr,ps.local=Yr,ps.parseZone=Zr,ps.hasAlignedHourOffset=ei,ps.isDST=ti,ps.isLocal=ri,ps.isUtcOffset=ii,ps.isUtc=si,ps.isUTC=si,ps.zoneAbbr=cs,ps.zoneName=hs,ps.dates=C("dates accessor is deprecated. Use date instead.",is),ps.months=C("months accessor is deprecated. Use month instead",on),ps.years=C("years accessor is deprecated. Use year instead",vn),ps.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Qr),ps.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ni);var ds=ps,ys=_.prototype;ys.calendar=H,ys.longDateFormat=j,ys.invalidDate=I,ys.ordinal=U,ys.preparse=gs,ys.postformat=gs,ys.relativeTime=W,ys.pastFuture=X,ys.set=O,ys.months=Zt,ys.monthsShort=tn,ys.monthsParse=rn,ys.monthsRegex=cn,ys.monthsShortRegex=fn,ys.week=xn,ys.firstDayOfYear=Cn,ys.firstDayOfWeek=Nn,ys.weekdays=_n,ys.weekdaysMin=Bn,ys.weekdaysShort=Pn,ys.weekdaysParse=Fn,ys.weekdaysRegex=zn,ys.weekdaysShortRegex=Xn,ys.weekdaysMinRegex=$n,ys.isPM=Zn,ys.meridiem=tr,fr("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=x(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),t.lang=C("moment.lang is deprecated. Use moment.locale instead.",fr),t.langData=C("moment.langData is deprecated. Use moment.localeData instead.",hr);var ks=Math.abs,Is=Fs("ms"),qs=Fs("s"),Rs=Fs("m"),Us=Fs("h"),zs=Fs("d"),Ws=Fs("w"),Xs=Fs("M"),Vs=Fs("y"),Ks=Js("milliseconds"),Qs=Js("seconds"),Gs=Js("minutes"),Ys=Js("hours"),Zs=Js("days"),eo=Js("months"),to=Js("years"),ro=Math.round,io={s:45,m:45,h:22,d:26,M:11},lo=Math.abs,ho=Ur.prototype;ho.abs=Ls,ho.add=Os,ho.subtract=Ms,ho.as=Bs,ho.asMilliseconds=Is,ho.asSeconds=qs,ho.asMinutes=Rs,ho.asHours=Us,ho.asDays=zs,ho.asWeeks=Ws,ho.asMonths=Xs,ho.asYears=Vs,ho.valueOf=js,ho._bubble=Ds,ho.get=$s,ho.milliseconds=Ks,ho.seconds=Qs,ho.minutes=Gs,ho.hours=Ys,ho.days=Zs,ho.weeks=no,ho.months=eo,ho.years=to,ho.humanize=fo,ho.toISOString=co,ho.toString=co,ho.toJSON=co,ho.locale=Hi,ho.localeData=ji,ho.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",co),ho.lang=Bi,ft("X",0,0,"unix"),ft("x",0,0,"valueOf"),_t("x",Ct),_t("X",At),jt("X",function(e,t,n){n._d=new Date(parseFloat(e,10)*1e3)}),jt("x",function(e,t,n){n._d=new Date(x(e))}),t.version="2.14.1",n(Hr),t.fn=ds,t.min=Ir,t.max=qr,t.now=Rr,t.utc=l,t.unix=vs,t.months=Ss,t.isDate=o,t.locale=fr,t.invalid=v,t.duration=ai,t.isMoment=E,t.weekdays=Ts,t.parseZone=ms,t.localeData=hr,t.isDuration=zr,t.monthsShort=xs,t.weekdaysMin=Cs,t.defineLocale=lr,t.updateLocale=cr,t.locales=pr,t.weekdaysShort=Ns,t.normalizeUnits=J,t.relativeTimeRounding=uo,t.relativeTimeThreshold=ao,t.calendarFormat=gi,t.prototype=ds;var po=t;return po}),eval(function(e,t,n,r,i,s){i=function(e){return(e<t?"":i(parseInt(e/t)))+((e%=t)>35?String.fromCharCode(e+29):e.toString(36))};if(!"".replace(/^/,String)){while(n--)s[i(n)]=r[n]||i(n);r=[function(e){return s[e]}],i=function(){return"\\w+"},n=1}while(n--)r[n]&&(e=e.replace(new RegExp("\\b"+i(n)+"\\b","g"),r[n]));return e}('7(A 3c.3q!=="9"){3c.3q=9(e){9 t(){}t.5S=e;p 5R t}}(9(e,t,n){h r={1N:9(t,n){h r=c;r.$k=e(n);r.6=e.4M({},e.37.2B.6,r.$k.v(),t);r.2A=t;r.4L()},4L:9(){9 r(e){h n,r="";7(A t.6.33==="9"){t.6.33.R(c,[e])}l{1A(n 38 e.d){7(e.d.5M(n)){r+=e.d[n].1K}}t.$k.2y(r)}t.3t()}h t=c,n;7(A t.6.2H==="9"){t.6.2H.R(c,[t.$k])}7(A t.6.2O==="2Y"){n=t.6.2O;e.5K(n,r)}l{t.3t()}},3t:9(){h e=c;e.$k.v("d-4I",e.$k.2x("2w")).v("d-4F",e.$k.2x("H"));e.$k.z({2u:0});e.2t=e.6.q;e.4E();e.5v=0;e.1X=14;e.23()},23:9(){h e=c;7(e.$k.25().N===0){p b}e.1M();e.4C();e.$S=e.$k.25();e.E=e.$S.N;e.4B();e.$G=e.$k.17(".d-1K");e.$K=e.$k.17(".d-1p");e.3u="U";e.13=0;e.26=[0];e.m=0;e.4A();e.4z()},4z:9(){h e=c;e.2V();e.2W();e.4t();e.30();e.4r();e.4q();e.2p();e.4o();7(e.6.2o!==b){e.4n(e.6.2o)}7(e.6.O===j){e.6.O=4Q}e.19();e.$k.17(".d-1p").z("4i","4h");7(!e.$k.2m(":3n")){e.3o()}l{e.$k.z("2u",1)}e.5O=b;e.2l();7(A e.6.3s==="9"){e.6.3s.R(c,[e.$k])}},2l:9(){h e=c;7(e.6.1Z===j){e.1Z()}7(e.6.1B===j){e.1B()}e.4g();7(A e.6.3w==="9"){e.6.3w.R(c,[e.$k])}},3x:9(){h e=c;7(A e.6.3B==="9"){e.6.3B.R(c,[e.$k])}e.3o();e.2V();e.2W();e.4f();e.30();e.2l();7(A e.6.3D==="9"){e.6.3D.R(c,[e.$k])}},3F:9(){h e=c;t.1c(9(){e.3x()},0)},3o:9(){h e=c;7(e.$k.2m(":3n")===b){e.$k.z({2u:0});t.18(e.1C);t.18(e.1X)}l{p b}e.1X=t.4d(9(){7(e.$k.2m(":3n")){e.3F();e.$k.4b({2u:1},2M);t.18(e.1X)}},5x)},4B:9(){h e=c;e.$S.5n(\'<L H="d-1p">\').4a(\'<L H="d-1K"></L>\');e.$k.17(".d-1p").4a(\'<L H="d-1p-49">\');e.1H=e.$k.17(".d-1p-49");e.$k.z("4i","4h")},1M:9(){h e=c,t=e.$k.1I(e.6.1M),n=e.$k.1I(e.6.2i);7(!t){e.$k.I(e.6.1M)}7(!n){e.$k.I(e.6.2i)}},2V:9(){h t=c,n,r;7(t.6.2Z===b){p b}7(t.6.48===j){t.6.q=t.2t=1;t.6.1h=b;t.6.1s=b;t.6.1O=b;t.6.22=b;t.6.1Q=b;t.6.1R=b;p b}n=e(t.6.47).1f();7(n>(t.6.1s[0]||t.2t)){t.6.q=t.2t}7(t.6.1h!==b){t.6.1h.5g(9(e,t){p e[0]-t[0]});1A(r=0;r<t.6.1h.N;r+=1){7(t.6.1h[r][0]<=n){t.6.q=t.6.1h[r][1]}}}l{7(n<=t.6.1s[0]&&t.6.1s!==b){t.6.q=t.6.1s[1]}7(n<=t.6.1O[0]&&t.6.1O!==b){t.6.q=t.6.1O[1]}7(n<=t.6.22[0]&&t.6.22!==b){t.6.q=t.6.22[1]}7(n<=t.6.1Q[0]&&t.6.1Q!==b){t.6.q=t.6.1Q[1]}7(n<=t.6.1R[0]&&t.6.1R!==b){t.6.q=t.6.1R[1]}}7(t.6.q>t.E&&t.6.46===j){t.6.q=t.E}},4r:9(){h n=c,r,i;7(n.6.2Z!==j){p b}i=e(t).1f();n.3d=9(){7(e(t).1f()!==i){7(n.6.O!==b){t.18(n.1C)}t.5d(r);r=t.1c(9(){i=e(t).1f();n.3x()},n.6.45)}};e(t).44(n.3d)},4f:9(){h e=c;e.2g(e.m);7(e.6.O!==b){e.3j()}},43:9(){h t=c,n=0,r=t.E-t.6.q;t.$G.2f(9(i){h s=e(c);s.z({1f:t.M}).v("d-1K",3p(i));7(i%t.6.q===0||i===r){7(!(i>r)){n+=1}}s.v("d-24",n)})},42:9(){h e=c,t=e.$G.N*e.M;e.$K.z({1f:t*2,T:0});e.43()},2W:9(){h e=c;e.40();e.42();e.3Z();e.3v()},40:9(){h e=c;e.M=1F.4O(e.$k.1f()/e.6.q)},3v:9(){h e=c,t=(e.E*e.M-e.6.q*e.M)*-1;7(e.6.q>e.E){e.D=0;t=0;e.3z=0}l{e.D=e.E-e.6.q;e.3z=t}p t},3Y:9(){p 0},3Z:9(){h t=c,n=0,r=0,i,s,o;t.J=[0];t.3E=[];1A(i=0;i<t.E;i+=1){r+=t.M;t.J.2D(-r);7(t.6.12===j){s=e(t.$G[i]);o=s.v("d-24");7(o!==n){t.3E[n]=t.J[i];n=o}}}},4t:9(){h t=c;7(t.6.2a===j||t.6.1v===j){t.B=e(\'<L H="d-5A"/>\').5m("5l",!t.F.15).5c(t.$k)}7(t.6.1v===j){t.3T()}7(t.6.2a===j){t.3S()}},3S:9(){h t=c,n=e(\'<L H="d-4U"/>\');t.B.1o(n);t.1u=e("<L/>",{"H":"d-1n",2y:t.6.2U[0]||""});t.1q=e("<L/>",{"H":"d-U",2y:t.6.2U[1]||""});n.1o(t.1u).1o(t.1q);n.w("2X.B 21.B",\'L[H^="d"]\',9(e){e.1l()});n.w("2n.B 28.B",\'L[H^="d"]\',9(n){n.1l();7(e(c).1I("d-U")){t.U()}l{t.1n()}})},3T:9(){h t=c;t.1k=e(\'<L H="d-1v"/>\');t.B.1o(t.1k);t.1k.w("2n.B 28.B",".d-1j",9(n){n.1l();7(3p(e(c).v("d-1j"))!==t.m){t.1g(3p(e(c).v("d-1j")),j)}})},3P:9(){h t=c,n,r,i,s,o,u;7(t.6.1v===b){p b}t.1k.2y("");n=0;r=t.E-t.E%t.6.q;1A(s=0;s<t.E;s+=1){7(s%t.6.q===0){n+=1;7(r===s){i=t.E-t.6.q}o=e("<L/>",{"H":"d-1j"});u=e("<3N></3N>",{4R:t.6.39===j?n:"","H":t.6.39===j?"d-59":""});o.1o(u);o.v("d-1j",r===s?i:s);o.v("d-24",n);t.1k.1o(o)}}t.35()},35:9(){h t=c;7(t.6.1v===b){p b}t.1k.17(".d-1j").2f(9(){7(e(c).v("d-24")===e(t.$G[t.m]).v("d-24")){t.1k.17(".d-1j").Z("2d");e(c).I("2d")}})},3e:9(){h e=c;7(e.6.2a===b){p b}7(e.6.2e===b){7(e.m===0&&e.D===0){e.1u.I("1b");e.1q.I("1b")}l 7(e.m===0&&e.D!==0){e.1u.I("1b");e.1q.Z("1b")}l 7(e.m===e.D){e.1u.Z("1b");e.1q.I("1b")}l 7(e.m!==0&&e.m!==e.D){e.1u.Z("1b");e.1q.Z("1b")}}},30:9(){h e=c;e.3P();e.3e();7(e.B){7(e.6.q>=e.E){e.B.3K()}l{e.B.3J()}}},55:9(){h e=c;7(e.B){e.B.3k()}},U:9(e){h t=c;7(t.1E){p b}t.m+=t.6.12===j?t.6.q:1;7(t.m>t.D+(t.6.12===j?t.6.q-1:0)){7(t.6.2e===j){t.m=0;e="2k"}l{t.m=t.D;p b}}t.1g(t.m,e)},1n:9(e){h t=c;7(t.1E){p b}7(t.6.12===j&&t.m>0&&t.m<t.6.q){t.m=0}l{t.m-=t.6.12===j?t.6.q:1}7(t.m<0){7(t.6.2e===j){t.m=t.D;e="2k"}l{t.m=0;p b}}t.1g(t.m,e)},1g:9(e,n,r){h i=c,s;7(i.1E){p b}7(A i.6.1Y==="9"){i.6.1Y.R(c,[i.$k])}7(e>=i.D){e=i.D}l 7(e<=0){e=0}i.m=i.d.m=e;7(i.6.2o!==b&&r!=="4e"&&i.6.q===1&&i.F.1x===j){i.1t(0);7(i.F.1x===j){i.1L(i.J[e])}l{i.1r(i.J[e],1)}i.2r();i.4l();p b}s=i.J[e];7(i.F.1x===j){i.1T=b;7(n===j){i.1t("1w");t.1c(9(){i.1T=j},i.6.1w)}l 7(n==="2k"){i.1t(i.6.2v);t.1c(9(){i.1T=j},i.6.2v)}l{i.1t("1m");t.1c(9(){i.1T=j},i.6.1m)}i.1L(s)}l{7(n===j){i.1r(s,i.6.1w)}l 7(n==="2k"){i.1r(s,i.6.2v)}l{i.1r(s,i.6.1m)}}i.2r()},2g:9(e){h t=c;7(A t.6.1Y==="9"){t.6.1Y.R(c,[t.$k])}7(e>=t.D||e===-1){e=t.D}l 7(e<=0){e=0}t.1t(0);7(t.F.1x===j){t.1L(t.J[e])}l{t.1r(t.J[e],1)}t.m=t.d.m=e;t.2r()},2r:9(){h e=c;e.26.2D(e.m);e.13=e.d.13=e.26[e.26.N-2];e.26.5f(0);7(e.13!==e.m){e.35();e.3e();e.2l();7(e.6.O!==b){e.3j()}}7(A e.6.3y==="9"&&e.13!==e.m){e.6.3y.R(c,[e.$k])}},X:9(){h e=c;e.3A="X";t.18(e.1C)},3j:9(){h e=c;7(e.3A!=="X"){e.19()}},19:9(){h e=c;e.3A="19";7(e.6.O===b){p b}t.18(e.1C);e.1C=t.4d(9(){e.U(j)},e.6.O)},1t:9(e){h t=c;7(e==="1m"){t.$K.z(t.2z(t.6.1m))}l 7(e==="1w"){t.$K.z(t.2z(t.6.1w))}l 7(A e!=="2Y"){t.$K.z(t.2z(e))}},2z:9(e){p{"-1G-1a":"2C "+e+"1z 2s","-1W-1a":"2C "+e+"1z 2s","-o-1a":"2C "+e+"1z 2s",1a:"2C "+e+"1z 2s"}},3H:9(){p{"-1G-1a":"","-1W-1a":"","-o-1a":"",1a:""}},3I:9(e){p{"-1G-P":"1i("+e+"V, C, C)","-1W-P":"1i("+e+"V, C, C)","-o-P":"1i("+e+"V, C, C)","-1z-P":"1i("+e+"V, C, C)",P:"1i("+e+"V, C,C)"}},1L:9(e){h t=c;t.$K.z(t.3I(e))},3L:9(e){h t=c;t.$K.z({T:e})},1r:9(e,t){h n=c;n.29=b;n.$K.X(j,j).4b({T:e},{54:t||n.6.1m,3M:9(){n.29=j}})},4E:9(){h e=c,r="1i(C, C, C)",i=n.56("L"),s,o,u,a;i.2w.3O="  -1W-P:"+r+"; -1z-P:"+r+"; -o-P:"+r+"; -1G-P:"+r+"; P:"+r;s=/1i\\(C, C, C\\)/g;o=i.2w.3O.5i(s);u=o!==14&&o.N===1;a="5z"38 t||t.5Q.4P;e.F={1x:u,15:a}},4q:9(){h e=c;7(e.6.27!==b||e.6.1U!==b){e.3Q();e.3R()}},4C:9(){h e=c,t=["s","e","x"];e.16={};7(e.6.27===j&&e.6.1U===j){t=["2X.d 21.d","2N.d 3U.d","2n.d 3V.d 28.d"]}l 7(e.6.27===b&&e.6.1U===j){t=["2X.d","2N.d","2n.d 3V.d"]}l 7(e.6.27===j&&e.6.1U===b){t=["21.d","3U.d","28.d"]}e.16.3W=t[0];e.16.2K=t[1];e.16.2J=t[2]},3R:9(){h t=c;t.$k.w("5y.d",9(e){e.1l()});t.$k.w("21.3X",9(t){p e(t.1d).2m("5C, 5E, 5F, 5N")})},3Q:9(){9 s(e){7(e.2b!==W){p{x:e.2b[0].2c,y:e.2b[0].41}}7(e.2b===W){7(e.2c!==W){p{x:e.2c,y:e.41}}7(e.2c===W){p{x:e.52,y:e.53}}}}9 o(t){7(t==="w"){e(n).w(r.16.2K,a);e(n).w(r.16.2J,f)}l 7(t==="Q"){e(n).Q(r.16.2K);e(n).Q(r.16.2J)}}9 u(n){h u=n.3h||n||t.3g,a;7(u.5a===3){p b}7(r.E<=r.6.q){p}7(r.29===b&&!r.6.3f){p b}7(r.1T===b&&!r.6.3f){p b}7(r.6.O!==b){t.18(r.1C)}7(r.F.15!==j&&!r.$K.1I("3b")){r.$K.I("3b")}r.11=0;r.Y=0;e(c).z(r.3H());a=e(c).2h();i.2S=a.T;i.2R=s(u).x-a.T;i.2P=s(u).y-a.5o;o("w");i.2j=b;i.2L=u.1d||u.4c}9 a(o){h u=o.3h||o||t.3g,a,f;r.11=s(u).x-i.2R;r.2I=s(u).y-i.2P;r.Y=r.11-i.2S;7(A r.6.2E==="9"&&i.3C!==j&&r.Y!==0){i.3C=j;r.6.2E.R(r,[r.$k])}7((r.Y>8||r.Y<-8)&&r.F.15===j){7(u.1l!==W){u.1l()}l{u.5L=b}i.2j=j}7((r.2I>10||r.2I<-10)&&i.2j===b){e(n).Q("2N.d")}a=9(){p r.Y/5};f=9(){p r.3z+r.Y/5};r.11=1F.3v(1F.3Y(r.11,a()),f());7(r.F.1x===j){r.1L(r.11)}l{r.3L(r.11)}}9 f(n){h s=n.3h||n||t.3g,u,a,f;s.1d=s.1d||s.4c;i.3C=b;7(r.F.15!==j){r.$K.Z("3b")}7(r.Y<0){r.1y=r.d.1y="T"}l{r.1y=r.d.1y="3i"}7(r.Y!==0){u=r.4j();r.1g(u,b,"4e");7(i.2L===s.1d&&r.F.15!==j){e(s.1d).w("3a.4k",9(t){t.4S();t.4T();t.1l();e(t.1d).Q("3a.4k")});a=e.4N(s.1d,"4V").3a;f=a.4W();a.4X(0,0,f)}}o("Q")}h r=c,i={2R:0,2P:0,4Y:0,2S:0,2h:14,4Z:14,50:14,2j:14,51:14,2L:14};r.29=j;r.$k.w(r.16.3W,".d-1p",u)},4j:9(){h e=c,t=e.4m();7(t>e.D){e.m=e.D;t=e.D}l 7(e.11>=0){t=0;e.m=0}p t},4m:9(){h t=c,n=t.6.12===j?t.3E:t.J,r=t.11,i=14;e.2f(n,9(s,o){7(r-t.M/20>n[s+1]&&r-t.M/20<o&&t.34()==="T"){i=o;7(t.6.12===j){t.m=e.4p(i,t.J)}l{t.m=s}}l 7(r+t.M/20<o&&r+t.M/20>(n[s+1]||n[s]-t.M)&&t.34()==="3i"){7(t.6.12===j){i=n[s+1]||n[n.N-1];t.m=e.4p(i,t.J)}l{i=n[s+1];t.m=s+1}}});p t.m},34:9(){h e=c,t;7(e.Y<0){t="3i";e.3u="U"}l{t="T";e.3u="1n"}p t},4A:9(){h e=c;e.$k.w("d.U",9(){e.U()});e.$k.w("d.1n",9(){e.1n()});e.$k.w("d.19",9(t,n){e.6.O=n;e.19();e.32="19"});e.$k.w("d.X",9(){e.X();e.32="X"});e.$k.w("d.1g",9(t,n){e.1g(n)});e.$k.w("d.2g",9(t,n){e.2g(n)})},2p:9(){h e=c;7(e.6.2p===j&&e.F.15!==j&&e.6.O!==b){e.$k.w("57",9(){e.X()});e.$k.w("58",9(){7(e.32!=="X"){e.19()}})}},1Z:9(){h t=c,n,r,i,s,o;7(t.6.1Z===b){p b}1A(n=0;n<t.E;n+=1){r=e(t.$G[n]);7(r.v("d-1e")==="1e"){4s}i=r.v("d-1K");s=r.17(".5b");7(A s.v("1J")!=="2Y"){r.v("d-1e","1e");4s}7(r.v("d-1e")===W){s.3K();r.I("4u").v("d-1e","5e")}7(t.6.4v===j){o=i>=t.m}l{o=j}7(o&&i<t.m+t.6.q&&s.N){t.4w(r,s)}}},4w:9(e,n){9 o(){e.v("d-1e","1e").Z("4u");n.5h("v-1J");7(r.6.4x==="4y"){n.5j(5k)}l{n.3J()}7(A r.6.2T==="9"){r.6.2T.R(c,[r.$k])}}9 u(){i+=1;7(r.2Q(n.3l(0))||s===j){o()}l 7(i<=2q){t.1c(u,2q)}l{o()}}h r=c,i=0,s;7(n.5p("5q")==="5r"){n.z("5s-5t","5u("+n.v("1J")+")");s=j}l{n[0].1J=n.v("1J")}u()},1B:9(){9 s(){h r=e(n.$G[n.m]).2G();n.1H.z("2G",r+"V");7(!n.1H.1I("1B")){t.1c(9(){n.1H.I("1B")},0)}}9 o(){i+=1;7(n.2Q(r.3l(0))){s()}l 7(i<=2q){t.1c(o,2q)}l{n.1H.z("2G","")}}h n=c,r=e(n.$G[n.m]).17("5w"),i;7(r.3l(0)!==W){i=0;o()}l{s()}},2Q:9(e){h t;7(!e.3M){p b}t=A e.4D;7(t!=="W"&&e.4D===0){p b}p j},4g:9(){h t=c,n;7(t.6.2F===j){t.$G.Z("2d")}t.1D=[];1A(n=t.m;n<t.m+t.6.q;n+=1){t.1D.2D(n);7(t.6.2F===j){e(t.$G[n]).I("2d")}}t.d.1D=t.1D},4n:9(e){h t=c;t.4G="d-"+e+"-5B";t.4H="d-"+e+"-38"},4l:9(){9 a(e){p{2h:"5D",T:e+"V"}}h e=c,t=e.4G,n=e.4H,r=e.$G.1S(e.m),i=e.$G.1S(e.13),s=1F.4J(e.J[e.m])+e.J[e.13],o=1F.4J(e.J[e.m])+e.M/2,u="5G 5H 5I 5J";e.1E=j;e.$K.I("d-1P").z({"-1G-P-1P":o+"V","-1W-4K-1P":o+"V","4K-1P":o+"V"});i.z(a(s,10)).I(t).w(u,9(){e.3m=j;i.Q(u);e.31(i,t)});r.I(n).w(u,9(){e.36=j;r.Q(u);e.31(r,n)})},31:9(e,t){h n=c;e.z({2h:"",T:""}).Z(t);7(n.3m&&n.36){n.$K.Z("d-1P");n.3m=b;n.36=b;n.1E=b}},4o:9(){h e=c;e.d={2A:e.2A,5P:e.$k,S:e.$S,G:e.$G,m:e.m,13:e.13,1D:e.1D,15:e.F.15,F:e.F,1y:e.1y}},3G:9(){h r=c;r.$k.Q(".d d 21.3X");e(n).Q(".d d");e(t).Q("44",r.3d)},1V:9(){h e=c;7(e.$k.25().N!==0){e.$K.3r();e.$S.3r().3r();7(e.B){e.B.3k()}}e.3G();e.$k.2x("2w",e.$k.v("d-4I")||"").2x("H",e.$k.v("d-4F"))},5T:9(){h e=c;e.X();t.18(e.1X);e.1V();e.$k.5U()},5V:9(t){h n=c,r=e.4M({},n.2A,t);n.1V();n.1N(r,n.$k)},5W:9(e,t){h n=c,r;7(!e){p b}7(n.$k.25().N===0){n.$k.1o(e);n.23();p b}n.1V();7(t===W||t===-1){r=-1}l{r=t}7(r>=n.$S.N||r===-1){n.$S.1S(-1).5X(e)}l{n.$S.1S(r).5Y(e)}n.23()},5Z:9(e){h t=c,n;7(t.$k.25().N===0){p b}7(e===W||e===-1){n=-1}l{n=e}t.1V();t.$S.1S(n).3k();t.23()}};e.37.2B=9(t){p c.2f(9(){7(e(c).v("d-1N")===j){p b}e(c).v("d-1N",j);h n=3c.3q(r);n.1N(t,c);e.v(c,"2B",n)})};e.37.2B.6={q:5,1h:b,1s:[60,4],1O:[61,3],22:[62,2],1Q:b,1R:[63,1],48:b,46:b,1m:2M,1w:64,2v:65,O:b,2p:b,2a:b,2U:["1n","U"],2e:j,12:b,1v:j,39:b,2Z:j,45:2M,47:t,1M:"d-66",2i:"d-2i",1Z:b,4v:j,4x:"4y",1B:b,2O:b,33:b,3f:j,27:j,1U:j,2F:b,2o:b,3B:b,3D:b,2H:b,3s:b,1Y:b,3y:b,3w:b,2E:b,2T:b}})(67,68,69)',62,382,"||||||options|if||function||false|this|owl||||var||true|elem|else|currentItem|||return|items|||||data|on|||css|typeof|owlControls|0px|maximumItem|itemsAmount|browser|owlItems|class|addClass|positionsInArray|owlWrapper|div|itemWidth|length|autoPlay|transform|off|apply|userItems|left|next|px|undefined|stop|newRelativeX|removeClass||newPosX|scrollPerPage|prevItem|null|isTouch|ev_types|find|clearInterval|play|transition|disabled|setTimeout|target|loaded|width|goTo|itemsCustom|translate3d|page|paginationWrapper|preventDefault|slideSpeed|prev|append|wrapper|buttonNext|css2slide|itemsDesktop|swapSpeed|buttonPrev|pagination|paginationSpeed|support3d|dragDirection|ms|for|autoHeight|autoPlayInterval|visibleItems|isTransition|Math|webkit|wrapperOuter|hasClass|src|item|transition3d|baseClass|init|itemsDesktopSmall|origin|itemsTabletSmall|itemsMobile|eq|isCss3Finish|touchDrag|unWrap|moz|checkVisible|beforeMove|lazyLoad||mousedown|itemsTablet|setVars|roundPages|children|prevArr|mouseDrag|mouseup|isCssFinish|navigation|touches|pageX|active|rewindNav|each|jumpTo|position|theme|sliding|rewind|eachMoveUpdate|is|touchend|transitionStyle|stopOnHover|100|afterGo|ease|orignalItems|opacity|rewindSpeed|style|attr|html|addCssSpeed|userOptions|owlCarousel|all|push|startDragging|addClassActive|height|beforeInit|newPosY|end|move|targetElement|200|touchmove|jsonPath|offsetY|completeImg|offsetX|relativePos|afterLazyLoad|navigationText|updateItems|calculateAll|touchstart|string|responsive|updateControls|clearTransStyle|hoverStatus|jsonSuccess|moveDirection|checkPagination|endCurrent|fn|in|paginationNumbers|click|grabbing|Object|resizer|checkNavigation|dragBeforeAnimFinish|event|originalEvent|right|checkAp|remove|get|endPrev|visible|watchVisibility|Number|create|unwrap|afterInit|logIn|playDirection|max|afterAction|updateVars|afterMove|maximumPixels|apStatus|beforeUpdate|dragging|afterUpdate|pagesInArray|reload|clearEvents|removeTransition|doTranslate|show|hide|css2move|complete|span|cssText|updatePagination|gestures|disabledEvents|buildButtons|buildPagination|mousemove|touchcancel|start|disableTextSelect|min|loops|calculateWidth|pageY|appendWrapperSizes|appendItemsSizes|resize|responsiveRefreshRate|itemsScaleUp|responsiveBaseWidth|singleItem|outer|wrap|animate|srcElement|setInterval|drag|updatePosition|onVisibleItems|block|display|getNewPosition|disable|singleItemTransition|closestItem|transitionTypes|owlStatus|inArray|moveEvents|response|continue|buildControls|loading|lazyFollow|lazyPreload|lazyEffect|fade|onStartup|customEvents|wrapItems|eventTypes|naturalWidth|checkBrowser|originalClasses|outClass|inClass|originalStyles|abs|perspective|loadContent|extend|_data|round|msMaxTouchPoints|5e3|text|stopImmediatePropagation|stopPropagation|buttons|events|pop|splice|baseElWidth|minSwipe|maxSwipe|dargging|clientX|clientY|duration|destroyControls|createElement|mouseover|mouseout|numbers|which|lazyOwl|appendTo|clearTimeout|checked|shift|sort|removeAttr|match|fadeIn|400|clickable|toggleClass|wrapAll|top|prop|tagName|DIV|background|image|url|wrapperWidth|img|500|dragstart|ontouchstart|controls|out|input|relative|textarea|select|webkitAnimationEnd|oAnimationEnd|MSAnimationEnd|animationend|getJSON|returnValue|hasOwnProperty|option|onstartup|baseElement|navigator|new|prototype|destroy|removeData|reinit|addItem|after|before|removeItem|1199|979|768|479|800|1e3|carousel|jQuery|window|document".split("|"),0,{})),define("owl-carousel",["jquery"],function(){}),!function(e){"use strict";e.matchMedia=e.matchMedia||function(e){var t,n=e.documentElement,r=n.firstElementChild||n.firstChild,i=e.createElement("body"),s=e.createElement("div");return s.id="mq-test-1",s.style.cssText="position:absolute;top:-100em",i.style.background="none",i.appendChild(s),function(e){return s.innerHTML='&shy;<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(i,r),t=42===s.offsetWidth,n.removeChild(i),{matches:t,media:e}}}(e.document)}(this),function(e){"use strict";function t(){w(!0)}var n={};e.respond=n,n.update=function(){};var r=[],i=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(n){t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),s=function(e,t){var n=i();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyState&&n.send(null))};if(n.ajax=s,n.queue=r,n.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},n.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!n.mediaQueriesSupported){var o,u,a,f=e.document,l=f.documentElement,c=[],h=[],p=[],d={},v=30,m=f.getElementsByTagName("head")[0]||l,g=f.getElementsByTagName("base")[0],y=m.getElementsByTagName("link"),b=function(){var e,t=f.createElement("div"),n=f.body,r=l.style.fontSize,i=n&&n.style.fontSize,s=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=s=f.createElement("body"),n.style.background="none"),l.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),s&&l.insertBefore(n,l.firstChild),e=t.offsetWidth,s?l.removeChild(n):n.removeChild(t),l.style.fontSize=r,i&&(n.style.fontSize=i),e=a=parseFloat(e)},w=function(t){var n="clientWidth",r=l[n],i="CSS1Compat"===f.compatMode&&r||f.body[n]||r,s={},d=y[y.length-1],g=(new Date).getTime();if(t&&o&&v>g-o)return e.clearTimeout(u),u=e.setTimeout(w,v),void 0;o=g;for(var E in c)if(c.hasOwnProperty(E)){var S=c[E],x=S.minw,T=S.maxw,N=null===x,C=null===T,L="em";x&&(x=parseFloat(x)*(x.indexOf(L)>-1?a||b():1)),T&&(T=parseFloat(T)*(T.indexOf(L)>-1?a||b():1)),S.hasquery&&(N&&C||!(N||i>=x)||!(C||T>=i))||(s[S.media]||(s[S.media]=[]),s[S.media].push(h[S.rules]))}for(var A in p)p.hasOwnProperty(A)&&p[A]&&p[A].parentNode===m&&m.removeChild(p[A]);p.length=0;for(var O in s)if(s.hasOwnProperty(O)){var M=f.createElement("style"),_=s[O].join("\n");M.type="text/css",M.media=O,m.insertBefore(M,d.nextSibling),M.styleSheet?M.styleSheet.cssText=_:M.appendChild(f.createTextNode(_)),p.push(M)}},E=function(e,t,r){var i=e.replace(n.regex.keyframes,"").match(n.regex.media),s=i&&i.length||0;t=t.substring(0,t.lastIndexOf("/"));var o=function(e){return e.replace(n.regex.urls,"$1"+t+"$2$3")},u=!s&&r;t.length&&(t+="/"),u&&(s=1);for(var a=0;s>a;a++){var f,l,p,d;u?(f=r,h.push(o(e))):(f=i[a].match(n.regex.findStyles)&&RegExp.$1,h.push(RegExp.$2&&o(RegExp.$2))),p=f.split(","),d=p.length;for(var v=0;d>v;v++)l=p[v],c.push({media:l.split("(")[0].match(n.regex.only)&&RegExp.$2||"all",rules:h.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(n.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(n.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}w()},S=function(){if(r.length){var t=r.shift();s(t.href,function(n){E(n,t.href,t.media),d[t.href]=!0,e.setTimeout(function(){S()},0)})}},x=function(){for(var t=0;t<y.length;t++){var n=y[t],i=n.href,s=n.media,o=n.rel&&"stylesheet"===n.rel.toLowerCase();i&&o&&!d[i]&&(n.styleSheet&&n.styleSheet.rawCssText?(E(n.styleSheet.rawCssText,i,s),d[i]=!0):(!/^([a-zA-Z:]*\/\/)/.test(i)&&!g||i.replace(RegExp.$1,"").split("/")[0]===e.location.host)&&("//"===i.substring(0,2)&&(i=e.location.protocol+i),r.push({href:i,media:s})))}S()};x(),n.update=x,n.getEmValue=b,e.addEventListener?e.addEventListener("resize",t,!1):e.attachEvent&&e.attachEvent("onresize",t)}}(this),define("respondjs",function(){}),define("breakpoints",["require","exports","module"],function(e,t,n){(function(){n.exports={xs:{min:0,max:479},sm:{min:480,max:767},md:{min:768,max:1023},lg:{min:1024,max:1279},xl:{min:1280,max:1679},xxl:{min:1680}}}).call(this)}),function(e,t){function r(e,t,n){var r=e.children(),i=!1;e.empty();for(var s=0,u=r.length;s<u;s++){var a=r.eq(s);e.append(a),n&&e.append(n);if(o(e,t)){a.remove(),i=!0;break}n&&n.detach()}return i}function i(t,n,r,u,a){var f=!1,l="a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",c="script, .dotdotdot-keep";return t.contents().detach().each(function(){var h=this,p=e(h);if(typeof h=="undefined")return!0;if(p.is(c))t.append(p);else{if(f)return!0;t.append(p),a&&!p.is(u.after)&&!p.find(u.after).length&&t[t.is(l)?"after":"append"](a),o(r,u)&&(h.nodeType==3?f=s(p,n,r,u,a):f=i(p,n,r,u,a),f||(p.detach(),f=!0)),f||a&&a.detach()}}),n.addClass("is-truncated"),f}function s(t,n,r,i,s){var a=t[0];if(!a)return!1;var c=l(a),p=c.indexOf(" ")!==-1?" ":"　",d=i.wrap=="letter"?"":p,v=c.split(d),m=-1,g=-1,y=0,b=v.length-1;i.fallbackToLetter&&y==0&&b==0&&(d="",v=c.split(d),b=v.length-1);while(y<=b&&(y!=0||b!=0)){var w=Math.floor((y+b)/2);if(w==g)break;g=w,f(a,v.slice(0,g+1).join(d)+i.ellipsis),r.children().each(function(){e(this).toggle().toggle()}),o(r,i)?(b=g,i.fallbackToLetter&&y==0&&b==0&&(d="",v=v[0].split(d),m=-1,g=-1,y=0,b=v.length-1)):(m=g,y=g)}if(m==-1||v.length==1&&v[0].length==0){var E=t.parent();t.detach();var S=s&&s.closest(E).length?s.length:0;E.contents().length>S?a=h(E.contents().eq(-1-S),n):(a=h(E,n,!0),S||E.detach()),a&&(c=u(l(a),i),f(a,c),S&&s&&e(a).parent().append(s))}else c=u(v.slice(0,m+1).join(d),i),f(a,c);return!0}function o(e,t){return e.innerHeight()>t.maxHeight}function u(t,n){while(e.inArray(t.slice(-1),n.lastCharacter.remove)>-1)t=t.slice(0,-1);return e.inArray(t.slice(-1),n.lastCharacter.noEllipsis)<0&&(t+=n.ellipsis),t}function a(e){return{width:e.innerWidth(),height:e.innerHeight()}}function f(e,t){e.innerText?e.innerText=t:e.nodeValue?e.nodeValue=t:e.textContent&&(e.textContent=t)}function l(e){return e.innerText?e.innerText:e.nodeValue?e.nodeValue:e.textContent?e.textContent:""}function c(e){do e=e.previousSibling;while(e&&e.nodeType!==1&&e.nodeType!==3);return e}function h(t,n,r){var i=t&&t[0],s;if(i){if(!r){if(i.nodeType===3)return i;if(e.trim(t.text()))return h(t.contents().last(),n)}s=c(i);while(!s){t=t.parent();if(t.is(n)||!t.length)return!1;s=c(t[0])}if(s)return h(e(s),n)}return!1}function p(t,n){return t?typeof t=="string"?(t=e(t,n),t.length?t:!1):t.jquery?t:!1:!1}function d(e){var t=e.innerHeight(),n=["paddingTop","paddingBottom"];for(var r=0,i=n.length;r<i;r++){var s=parseInt(e.css(n[r]),10);isNaN(s)&&(s=0),t-=s}return t}if(e.fn.dotdotdot)return;e.fn.dotdotdot=function(t){if(this.length==0)return e.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){e(this).dotdotdot(t)});var s=this;s.data("dotdotdot")&&s.trigger("destroy.dot"),s.data("dotdotdot-style",s.attr("style")||""),s.css("word-wrap","break-word"),s.css("white-space")==="nowrap"&&s.css("white-space","normal"),s.bind_events=function(){return s.bind("update.dot",function(t,n){s.removeClass("is-truncated"),t.preventDefault(),t.stopPropagation();switch(typeof f.height){case"number":f.maxHeight=f.height;break;case"function":f.maxHeight=f.height.call(s[0]);break;default:f.maxHeight=d(s)}f.maxHeight+=f.tolerance;if(typeof n!="undefined"){if(typeof n=="string"||"nodeType"in n&&n.nodeType===1)n=e("<div />").append(n).contents();n instanceof e&&(u=n)}v=s.wrapInner('<div class="dotdotdot" />').children(),v.contents().detach().end().append(u.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var a=!1,c=!1;return l.afterElement&&(a=l.afterElement.clone(!0),a.show(),l.afterElement.detach()),o(v,f)&&(f.wrap=="children"?c=r(v,f,a):c=i(v,s,v,f,a)),v.replaceWith(v.contents()),v=null,e.isFunction(f.callback)&&f.callback.call(s[0],c,u),l.isTruncated=c,c}).bind("isTruncated.dot",function(e,t){return e.preventDefault(),e.stopPropagation(),typeof t=="function"&&t.call(s[0],l.isTruncated),l.isTruncated}).bind("originalContent.dot",function(e,t){return e.preventDefault(),e.stopPropagation(),typeof t=="function"&&t.call(s[0],u),u}).bind("destroy.dot",function(e){e.preventDefault(),e.stopPropagation(),s.unwatch().unbind_events().contents().detach().end().append(u).attr("style",s.data("dotdotdot-style")||"").data("dotdotdot",!1)}),s},s.unbind_events=function(){return s.unbind(".dot"),s},s.watch=function(){s.unwatch();if(f.watch=="window"){var t=e(window),n=t.width(),r=t.height();t.bind("resize.dot"+l.dotId,function(){if(n!=t.width()||r!=t.height()||!f.windowResizeFix)n=t.width(),r=t.height(),h&&clearInterval(h),h=setTimeout(function(){s.trigger("update.dot")},100)})}else c=a(s),h=setInterval(function(){if(s.is(":visible")){var e=a(s);if(c.width!=e.width||c.height!=e.height)s.trigger("update.dot"),c=e}},500);return s},s.unwatch=function(){return e(window).unbind("resize.dot"+l.dotId),h&&clearInterval(h),s};var u=s.contents(),f=e.extend(!0,{},e.fn.dotdotdot.defaults,t),l={},c={},h=null,v=null;return f.lastCharacter.remove instanceof Array||(f.lastCharacter.remove=e.fn.dotdotdot.defaultArrays.lastCharacter.remove),f.lastCharacter.noEllipsis instanceof Array||(f.lastCharacter.noEllipsis=e.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),l.afterElement=p(f.after,s),l.isTruncated=!1,l.dotId=n++,s.data("dotdotdot",!0).bind_events().trigger("update.dot"),f.watch&&s.watch(),s},e.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},e.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},e.fn.dotdotdot.debug=function(e){};var n=1,v=e.fn.html;e.fn.html=function(n){return n!=t&&!e.isFunction(n)&&this.data("dotdotdot")?this.trigger("update",[n]):v.apply(this,arguments)};var m=e.fn.text;e.fn.text=function(n){return n!=t&&!e.isFunction(n)&&this.data("dotdotdot")?(n=e("<div />").text(n).html(),this.trigger("update",[n])):m.apply(this,arguments)}}(jQuery),define("jquery.dotdotdot",["jquery"],function(){}),function(){"use strict";function h(e,t,n){"addEventListener"in window?e.addEventListener(t,n,!1):"attachEvent"in window&&e.attachEvent("on"+t,n)}function p(){var e=["moz","webkit","o","ms"],t;for(t=0;t<e.length&&!u;t+=1)u=window[e[t]+"RequestAnimationFrame"];u||m(" RequestAnimationFrame not supported")}function d(){var e="Host page";return window.top!==window.self&&(window.parentIFrame?e=window.parentIFrame.getId():e="Nested host page"),e}function v(e){return i+"["+d()+"]"+e}function m(e){t&&"object"==typeof window.console&&console.log(v(e))}function g(e){"object"==typeof window.console&&console.warn(v(e))}function y(e){function n(){function e(){S(M),w(),f[_].resizedCallback(M)}l("Height"),l("Width"),x(e,M,"resetPage")}function u(e){var t=e.id;m(" Removing iFrame: "+t),e.parentNode.removeChild(e),f[t].closedCallback(t),delete f[t],m(" --")}function a(){var e=O.substr(s).split(":");return{iframe:document.getElementById(e[0]),id:e[0],height:e[1],width:e[2],type:e[3]}}function l(e){var t=Number(f[_]["max"+e]),n=Number(f[_]["min"+e]),r=e.toLowerCase(),i=Number(M[r]);if(n>t)throw new Error("Value for min"+e+" can not be greater than max"+e);m(" Checking "+r+" is in range "+n+"-"+t),i<n&&(i=n,m(" Set "+r+" to min value")),i>t&&(i=t,m(" Set "+r+" to max value")),M[r]=""+i}function c(){function t(){function e(){m(" Checking connection is from allowed list of origins: "+r);var e;for(e=0;e<r.length;e++)if(r[e]===n)return!0;return!1}function t(){return m(" Checking connection is from: "+i),n===i}return r.constructor===Array?e():t()}var n=e.origin,r=f[_].checkOrigin,i=M.iframe.src.split("/").slice(0,3).join("/");if(r&&""+n!="null"&&!t())throw new Error("Unexpected message received from: "+n+" for "+M.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function h(){return i===(""+O).substr(0,s)}function p(){var e=M.type in{"true":1,"false":1,"undefined":1};return e&&m(" Ignoring init message from meta parent page"),e}function d(e){return O.substr(O.indexOf(":")+r+e)}function v(e){m(" MessageCallback passed: {iframe: "+M.iframe.id+", message: "+e+"}"),f[_].messageCallback({iframe:M.iframe,message:JSON.parse(e)}),m(" --")}function y(){return null===M.iframe?(g(" IFrame ("+M.id+") not found"),!1):!0}function T(e){var t=e.getBoundingClientRect();return b(),{x:parseInt(t.left,10)+parseInt(o.x,10),y:parseInt(t.top,10)+parseInt(o.y,10)}}function N(e){function t(){o=i,C(),m(" --")}function n(){return{x:Number(M.width)+r.x,y:Number(M.height)+r.y}}var r=e?T(M.iframe):{x:0,y:0},i=n();m(" Reposition requested from iFrame (offset x:"+r.x+" y:"+r.y+")"),window.top!==window.self?window.parentIFrame?e?window.parentIFrame.scrollToOffset(i.x,i.y):window.parentIFrame.scrollTo(M.width,M.height):g(" Unable to scroll to requested position, window.parentIFrame not found"):t()}function C(){!1!==f[_].scrollCallback(o)&&w()}function k(e){function t(e){var t=T(e);m(" Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),o={x:t.x,y:t.y},C(),m(" --")}var n=e.split("#")[1]||"",r=decodeURIComponent(n),i=document.getElementById(r)||document.getElementsByName(r)[0];window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):m(" In page link #"+n+" not found and window.parentIFrame not found"):i?t(i):m(" In page link #"+n+" not found")}function L(){switch(M.type){case"close":u(M.iframe);break;case"message":v(d(6));break;case"scrollTo":N(!1);break;case"scrollToOffset":N(!0);break;case"inPageLink":k(d(9));break;case"reset":E(M);break;case"init":n(),f[_].initCallback(M.iframe);break;default:n()}}function A(e){var t=!0;return f[e]||(t=!1,g(M.type+" No settings for "+e+". Message was: "+O)),t}var O=e.data,M={},_=null;h()&&(M=a(),_=M.id,!p()&&A(_)&&(t=f[_].log,m(" Received: "+O),y()&&c()&&(f[_].firstRun=!1,L())))}function b(){null===o&&(o={x:window.pageXOffset!==undefined?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==undefined?window.pageYOffset:document.documentElement.scrollTop},m(" Get page position: "+o.x+","+o.y))}function w(){null!==o&&(window.scrollTo(o.x,o.y),m(" Set page position: "+o.x+","+o.y),o=null)}function E(e){function t(){S(e),T("reset","reset",e.iframe,e.id)}m(" Size reset requested by "+("init"===e.type?"host page":"iFrame")),b(),x(t,e,"init")}function S(e){function t(t){e.iframe.style[t]=e[t]+"px",m(" IFrame ("+n+") "+t+" set to "+e[t]+"px")}var n=e.iframe.id;f[n].sizeHeight&&t("height"),f[n].sizeWidth&&t("width")}function x(e,t,n){n!==t.type&&u?(m(" Requesting animation frame"),u(e)):e()}function T(e,t,n,r){n&&n.contentWindow?(m("["+e+"] Sending msg to iframe ("+t+")"),n.contentWindow.postMessage(i+t,"*")):(g("["+e+"] IFrame not found"),f[r]&&delete f[r])}function N(n){function r(){function e(e){Infinity!==f[g][e]&&0!==f[g][e]&&(v.style[e]=f[g][e]+"px",m(" Set "+e+" = "+f[g][e]+"px"))}e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}function i(r){return""===r&&(v.id=r="iFrameResizer"+e++,t=(n||{}).log,m(" Added missing iframe ID: "+r+" ("+v.src+")")),r}function s(){m(" IFrame scrolling "+(f[g].scrolling?"enabled":"disabled")+" for "+g),v.style.overflow=!1===f[g].scrolling?"hidden":"auto",v.scrolling=!1===f[g].scrolling?"no":"yes"}function o(){if("number"==typeof f[g].bodyMargin||"0"===f[g].bodyMargin)f[g].bodyMarginV1=f[g].bodyMargin,f[g].bodyMargin=""+f[g].bodyMargin+"px"}function u(){return g+":"+f[g].bodyMarginV1+":"+f[g].sizeWidth+":"+f[g].log+":"+f[g].interval+":"+f[g].enablePublicMethods+":"+f[g].autoResize+":"+f[g].bodyMargin+":"+f[g].heightCalculationMethod+":"+f[g].bodyBackground+":"+f[g].bodyPadding+":"+f[g].tolerance+":"+f[g].enableInPageLinks+":"+f[g].resizeFrom}function l(e){h(v,"load",function(){var t=f[g].firstRun;T("iFrame.onload",e,v),!t&&f[g].heightCalculationMethod in a&&E({iframe:v,height:0,width:0,type:"init"})}),T("init",e,v)}function p(e){if("object"!=typeof e)throw new TypeError("Options is not an object.")}function d(e){e=e||{},f[g]={firstRun:!0},p(e);for(var n in c)c.hasOwnProperty(n)&&(f[g][n]=e.hasOwnProperty(n)?e[n]:c[n]);t=f[g].log}var v=this,g=i(v.id);d(n),s(),r(),o(),l(u())}function C(e,t){null===l&&(l=setTimeout(function(){l=null,e()},t))}function k(){function e(e){return"parent"===f[e].resizeFrom&&f[e].autoResize&&!f[e].firstRun}C(function(){for(var t in f)e(t)&&T("Window resize","resize",document.getElementById(t),t)},66)}function L(){function e(e,t){if(!e.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==e.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+e.tagName+">.");N.call(e,t)}return p(),h(window,"message",y),h(window,"resize",k),function(n,r){switch(typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),function(t){e(t,n)});break;case"object":e(r,n);break;default:throw new TypeError("Unexpected data type ("+typeof r+").")}}}function A(e){e.fn.iFrameResize=function(t){return this.filter("iframe").each(function(e,n){N.call(n,t)}).end()}}var e=0,t=!1,n="message",r=n.length,i="[iFrameSizer]",s=i.length,o=null,u=window.requestAnimationFrame,a={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},f={},l=null,c={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,enableInPageLinks:!1,enablePublicMethods:!1,heightCalculationMethod:"offset",interval:32,log:!1,maxHeight:Infinity,maxWidth:Infinity,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,closedCallback:function(){},initCallback:function(){},messageCallback:function(){},resizedCallback:function(){},scrollCallback:function(){return!0}};window.jQuery&&A(jQuery),typeof define=="function"&&define.amd?define("iframeResizer",[],L):typeof module=="object"&&typeof module.exports=="object"?module.exports=L():window.iFrameResize=window.iFrameResize||L()}(),function(){var e,t,n,r,i,s,o,u,a,f;t=window.device,e={},window.device=e,r=window.document.documentElement,f=window.navigator.userAgent.toLowerCase(),e.ios=function(){return e.iphone()||e.ipod()||e.ipad()},e.iphone=function(){return i("iphone")},e.ipod=function(){return i("ipod")},e.ipad=function(){return i("ipad")},e.android=function(){return i("android")},e.androidPhone=function(){return e.android()&&i("mobile")},e.androidTablet=function(){return e.android()&&!i("mobile")},e.blackberry=function(){return i("blackberry")||i("bb10")||i("rim")},e.blackberryPhone=function(){return e.blackberry()&&!i("tablet")},e.blackberryTablet=function(){return e.blackberry()&&i("tablet")},e.windows=function(){return i("windows")},e.windowsPhone=function(){return e.windows()&&i("phone")},e.windowsTablet=function(){return e.windows()&&i("touch")&&!e.windowsPhone()},e.fxos=function(){return(i("(mobile;")||i("(tablet;"))&&i("; rv:")},e.fxosPhone=function(){return e.fxos()&&i("mobile")},e.fxosTablet=function(){return e.fxos()&&i("tablet")},e.meego=function(){return i("meego")},e.cordova=function(){return window.cordova&&location.protocol==="file:"},e.nodeWebkit=function(){return typeof window.process=="object"},e.mobile=function(){return e.androidPhone()||e.iphone()||e.ipod()||e.windowsPhone()||e.blackberryPhone()||e.fxosPhone()||e.meego()},e.tablet=function(){return e.ipad()||e.androidTablet()||e.blackberryTablet()||e.windowsTablet()||e.fxosTablet()},e.desktop=function(){return!e.tablet()&&!e.mobile()},e.television=function(){var e,t;television=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","roku","pov_tv","hbbtv","ce-html"],e=0;while(e<television.length){if(i(television[e]))return!0;e++}return!1},e.portrait=function(){return window.innerHeight/window.innerWidth>1},e.landscape=function(){return window.innerHeight/window.innerWidth<1},e.noConflict=function(){return window.device=t,this},i=function(e){return f.indexOf(e)!==-1},o=function(e){var t;return t=new RegExp(e,"i"),r.className.match(t)},n=function(e){o(e)||(r.className=r.className.trim()+" "+e)},a=function(e){o(e)&&(r.className=r.className.replace(" "+e,""))},e.ios()?e.ipad()?n("ios ipad tablet"):e.iphone()?n("ios iphone mobile"):e.ipod()&&n("ios ipod mobile"):e.android()?e.androidTablet()?n("android tablet"):n("android mobile"):e.blackberry()?e.blackberryTablet()?n("blackberry tablet"):n("blackberry mobile"):e.windows()?e.windowsTablet()?n("windows tablet"):e.windowsPhone()?n("windows mobile"):n("desktop"):e.fxos()?e.fxosTablet()?n("fxos tablet"):n("fxos mobile"):e.meego()?n("meego mobile"):e.nodeWebkit()?n("node-webkit"):e.television()?n("television"):e.desktop()&&n("desktop"),e.cordova()&&n("cordova"),s=function(){e.landscape()?(a("portrait"),n("landscape")):(a("landscape"),n("portrait"));return},window.hasOwnProperty("onorientationchange")?u="orientationchange":u="resize",window.addEventListener?window.addEventListener(u,s,!1):window.attachEvent?window.attachEvent(u,s):window[u]=s,s(),typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("devicejs",[],function(){return e}):typeof module!="undefined"&&module.exports?module.exports=e:window.device=e}.call(this),define("twemoji",[],function(){var e=function(){"use strict";function o(e){return document.createTextNode(e)}function u(e){return e.replace(r,p)}function a(e,t){return"".concat(t.base,t.size,"/",e,t.ext)}function f(e,t){var n=e.childNodes,r=n.length,s,o;while(r--)s=n[r],o=s.nodeType,o===3?t.push(s):o===1&&!i.test(s.nodeName)&&f(s,t);return t}function l(e,t){return w(t==="️"?e.slice(0,-1):e.length===3&&e.charAt(1)==="️"?e.charAt(0)+e.charAt(2):e)}function c(e,t){var r=f(e,[]),i=r.length,s,u,a,c,h,p,d,v,m,g,y,b,w,E;while(i--){a=!1,c=document.createDocumentFragment(),h=r[i],p=h.nodeValue,v=0;while(d=n.exec(p)){m=d.index,m!==v&&c.appendChild(o(p.slice(v,m))),y=d[0],b=d[1],w=d[2],v=m+y.length;if(w!=="︎"){E=t.callback(l(b,w),t,w);if(E){g=new Image,g.onerror=t.onerror,g.setAttribute("draggable","false"),s=t.attributes(b,w);for(u in s)s.hasOwnProperty(u)&&u.indexOf("on")!==0&&!g.hasAttribute(u)&&g.setAttribute(u,s[u]);g.className=t.className,g.alt=y,g.src=E,a=!0,c.appendChild(g)}}g||c.appendChild(o(y)),g=null}a&&(v<p.length&&c.appendChild(o(p.slice(v))),h.parentNode.replaceChild(c,h))}return e}function h(e,t){return y(e,function(e,n,r){var i=e,s,o,a;if(r!=="︎"){a=t.callback(l(n,r),t,r);if(a){i="<img ".concat('class="',t.className,'" ','draggable="false" ','alt="',e,'"',' src="',a,'"'),s=t.attributes(n,r);for(o in s)s.hasOwnProperty(o)&&o.indexOf("on")!==0&&i.indexOf(" "+o+"=")===-1&&(i=i.concat(" ",o,'="',u(s[o]),'"'));i=i.concat(">")}}return i})}function p(e){return t[e]}function d(){return null}function v(e){return typeof e=="number"?e+"x"+e:e}function m(e){var t=typeof e=="string"?parseInt(e,16):e;return t<65536?s(t):(t-=65536,s(55296+(t>>10),56320+(t&1023)))}function g(t,n){if(!n||typeof n=="function")n={callback:n};return(typeof t=="string"?h:c)(t,{callback:n.callback||a,attributes:typeof n.attributes=="function"?n.attributes:d,base:typeof n.base=="string"?n.base:e.base,ext:n.ext||e.ext,size:n.folder||v(n.size||e.size),className:n.className||e.className,onerror:n.onerror||e.onerror})}function y(e,t){return String(e).replace(n,t)}function b(e){n.lastIndex=0;var t=n.test(e);return n.lastIndex=0,t}function w(e,t){var n=[],r=0,i=0,s=0;while(s<e.length)r=e.charCodeAt(s++),i?(n.push((65536+(i-55296<<10)+(r-56320)).toString(16)),i=0):55296<=r&&r<=56319?i=r:n.push(r.toString(16));return n.join(t||"-")}var e={base:(location.protocol==="https:"?"https:":"http:")+"//twemoji.maxcdn.com/",ext:".png",size:"36x36",className:"emoji",convert:{fromCodePoint:m,toCodePoint:w},onerror:function(){this.parentNode&&this.parentNode.replaceChild(o(this.alt),this)},parse:g,replace:y,test:b},t={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},n=/((?:\ud83c\udde8\ud83c\uddf3|\ud83c\uddfa\ud83c\uddf8|\ud83c\uddf7\ud83c\uddfa|\ud83c\uddf0\ud83c\uddf7|\ud83c\uddef\ud83c\uddf5|\ud83c\uddee\ud83c\uddf9|\ud83c\uddec\ud83c\udde7|\ud83c\uddeb\ud83c\uddf7|\ud83c\uddea\ud83c\uddf8|\ud83c\udde9\ud83c\uddea|\u0039\ufe0f?\u20e3|\u0038\ufe0f?\u20e3|\u0037\ufe0f?\u20e3|\u0036\ufe0f?\u20e3|\u0035\ufe0f?\u20e3|\u0034\ufe0f?\u20e3|\u0033\ufe0f?\u20e3|\u0032\ufe0f?\u20e3|\u0031\ufe0f?\u20e3|\u0030\ufe0f?\u20e3|\u0023\ufe0f?\u20e3|\ud83d\udeb3|\ud83d\udeb1|\ud83d\udeb0|\ud83d\udeaf|\ud83d\udeae|\ud83d\udea6|\ud83d\udea3|\ud83d\udea1|\ud83d\udea0|\ud83d\ude9f|\ud83d\ude9e|\ud83d\ude9d|\ud83d\ude9c|\ud83d\ude9b|\ud83d\ude98|\ud83d\ude96|\ud83d\ude94|\ud83d\ude90|\ud83d\ude8e|\ud83d\ude8d|\ud83d\ude8b|\ud83d\ude8a|\ud83d\ude88|\ud83d\ude86|\ud83d\ude82|\ud83d\ude81|\ud83d\ude36|\ud83d\ude34|\ud83d\ude2f|\ud83d\ude2e|\ud83d\ude2c|\ud83d\ude27|\ud83d\ude26|\ud83d\ude1f|\ud83d\ude1b|\ud83d\ude19|\ud83d\ude17|\ud83d\ude15|\ud83d\ude11|\ud83d\ude10|\ud83d\ude0e|\ud83d\ude08|\ud83d\ude07|\ud83d\ude00|\ud83d\udd67|\ud83d\udd66|\ud83d\udd65|\ud83d\udd64|\ud83d\udd63|\ud83d\udd62|\ud83d\udd61|\ud83d\udd60|\ud83d\udd5f|\ud83d\udd5e|\ud83d\udd5d|\ud83d\udd5c|\ud83d\udd2d|\ud83d\udd2c|\ud83d\udd15|\ud83d\udd09|\ud83d\udd08|\ud83d\udd07|\ud83d\udd06|\ud83d\udd05|\ud83d\udd04|\ud83d\udd02|\ud83d\udd01|\ud83d\udd00|\ud83d\udcf5|\ud83d\udcef|\ud83d\udced|\ud83d\udcec|\ud83d\udcb7|\ud83d\udcb6|\ud83d\udcad|\ud83d\udc6d|\ud83d\udc6c|\ud83d\udc65|\ud83d\udc2a|\ud83d\udc16|\ud83d\udc15|\ud83d\udc13|\ud83d\udc10|\ud83d\udc0f|\ud83d\udc0b|\ud83d\udc0a|\ud83d\udc09|\ud83d\udc08|\ud83d\udc07|\ud83d\udc06|\ud83d\udc05|\ud83d\udc04|\ud83d\udc03|\ud83d\udc02|\ud83d\udc01|\ud83d\udc00|\ud83c\udfe4|\ud83c\udfc9|\ud83c\udfc7|\ud83c\udf7c|\ud83c\udf50|\ud83c\udf4b|\ud83c\udf33|\ud83c\udf32|\ud83c\udf1e|\ud83c\udf1d|\ud83c\udf1c|\ud83c\udf1a|\ud83c\udf18|\ud83c\udccf|\ud83c\udd8e|\ud83c\udd91|\ud83c\udd92|\ud83c\udd93|\ud83c\udd94|\ud83c\udd95|\ud83c\udd96|\ud83c\udd97|\ud83c\udd98|\ud83c\udd99|\ud83c\udd9a|\ud83d\udc77|\ud83d\udec5|\ud83d\udec4|\ud83d\udec3|\ud83d\udec2|\ud83d\udec1|\ud83d\udebf|\ud83d\udeb8|\ud83d\udeb7|\ud83d\udeb5|\ud83c\ude01|\ud83c\ude32|\ud83c\ude33|\ud83c\ude34|\ud83c\ude35|\ud83c\ude36|\ud83c\ude38|\ud83c\ude39|\ud83c\ude3a|\ud83c\ude50|\ud83c\ude51|\ud83c\udf00|\ud83c\udf01|\ud83c\udf02|\ud83c\udf03|\ud83c\udf04|\ud83c\udf05|\ud83c\udf06|\ud83c\udf07|\ud83c\udf08|\ud83c\udf09|\ud83c\udf0a|\ud83c\udf0b|\ud83c\udf0c|\ud83c\udf0f|\ud83c\udf11|\ud83c\udf13|\ud83c\udf14|\ud83c\udf15|\ud83c\udf19|\ud83c\udf1b|\ud83c\udf1f|\ud83c\udf20|\ud83c\udf30|\ud83c\udf31|\ud83c\udf34|\ud83c\udf35|\ud83c\udf37|\ud83c\udf38|\ud83c\udf39|\ud83c\udf3a|\ud83c\udf3b|\ud83c\udf3c|\ud83c\udf3d|\ud83c\udf3e|\ud83c\udf3f|\ud83c\udf40|\ud83c\udf41|\ud83c\udf42|\ud83c\udf43|\ud83c\udf44|\ud83c\udf45|\ud83c\udf46|\ud83c\udf47|\ud83c\udf48|\ud83c\udf49|\ud83c\udf4a|\ud83c\udf4c|\ud83c\udf4d|\ud83c\udf4e|\ud83c\udf4f|\ud83c\udf51|\ud83c\udf52|\ud83c\udf53|\ud83c\udf54|\ud83c\udf55|\ud83c\udf56|\ud83c\udf57|\ud83c\udf58|\ud83c\udf59|\ud83c\udf5a|\ud83c\udf5b|\ud83c\udf5c|\ud83c\udf5d|\ud83c\udf5e|\ud83c\udf5f|\ud83c\udf60|\ud83c\udf61|\ud83c\udf62|\ud83c\udf63|\ud83c\udf64|\ud83c\udf65|\ud83c\udf66|\ud83c\udf67|\ud83c\udf68|\ud83c\udf69|\ud83c\udf6a|\ud83c\udf6b|\ud83c\udf6c|\ud83c\udf6d|\ud83c\udf6e|\ud83c\udf6f|\ud83c\udf70|\ud83c\udf71|\ud83c\udf72|\ud83c\udf73|\ud83c\udf74|\ud83c\udf75|\ud83c\udf76|\ud83c\udf77|\ud83c\udf78|\ud83c\udf79|\ud83c\udf7a|\ud83c\udf7b|\ud83c\udf80|\ud83c\udf81|\ud83c\udf82|\ud83c\udf83|\ud83c\udf84|\ud83c\udf85|\ud83c\udf86|\ud83c\udf87|\ud83c\udf88|\ud83c\udf89|\ud83c\udf8a|\ud83c\udf8b|\ud83c\udf8c|\ud83c\udf8d|\ud83c\udf8e|\ud83c\udf8f|\ud83c\udf90|\ud83c\udf91|\ud83c\udf92|\ud83c\udf93|\ud83c\udfa0|\ud83c\udfa1|\ud83c\udfa2|\ud83c\udfa3|\ud83c\udfa4|\ud83c\udfa5|\ud83c\udfa6|\ud83c\udfa7|\ud83c\udfa8|\ud83c\udfa9|\ud83c\udfaa|\ud83c\udfab|\ud83c\udfac|\ud83c\udfad|\ud83c\udfae|\ud83c\udfaf|\ud83c\udfb0|\ud83c\udfb1|\ud83c\udfb2|\ud83c\udfb3|\ud83c\udfb4|\ud83c\udfb5|\ud83c\udfb6|\ud83c\udfb7|\ud83c\udfb8|\ud83c\udfb9|\ud83c\udfba|\ud83c\udfbb|\ud83c\udfbc|\ud83c\udfbd|\ud83c\udfbe|\ud83c\udfbf|\ud83c\udfc0|\ud83c\udfc1|\ud83c\udfc2|\ud83c\udfc3|\ud83c\udfc4|\ud83c\udfc6|\ud83c\udfc8|\ud83c\udfca|\ud83c\udfe0|\ud83c\udfe1|\ud83c\udfe2|\ud83c\udfe3|\ud83c\udfe5|\ud83c\udfe6|\ud83c\udfe7|\ud83c\udfe8|\ud83c\udfe9|\ud83c\udfea|\ud83c\udfeb|\ud83c\udfec|\ud83c\udfed|\ud83c\udfee|\ud83c\udfef|\ud83c\udff0|\ud83d\udc0c|\ud83d\udc0d|\ud83d\udc0e|\ud83d\udc11|\ud83d\udc12|\ud83d\udc14|\ud83d\udc17|\ud83d\udc18|\ud83d\udc19|\ud83d\udc1a|\ud83d\udc1b|\ud83d\udc1c|\ud83d\udc1d|\ud83d\udc1e|\ud83d\udc1f|\ud83d\udc20|\ud83d\udc21|\ud83d\udc22|\ud83d\udc23|\ud83d\udc24|\ud83d\udc25|\ud83d\udc26|\ud83d\udc27|\ud83d\udc28|\ud83d\udc29|\ud83d\udc2b|\ud83d\udc2c|\ud83d\udc2d|\ud83d\udc2e|\ud83d\udc2f|\ud83d\udc30|\ud83d\udc31|\ud83d\udc32|\ud83d\udc33|\ud83d\udc34|\ud83d\udc35|\ud83d\udc36|\ud83d\udc37|\ud83d\udc38|\ud83d\udc39|\ud83d\udc3a|\ud83d\udc3b|\ud83d\udc3c|\ud83d\udc3d|\ud83d\udc3e|\ud83d\udc40|\ud83d\udc42|\ud83d\udc43|\ud83d\udc44|\ud83d\udc45|\ud83d\udc46|\ud83d\udc47|\ud83d\udc48|\ud83d\udc49|\ud83d\udc4a|\ud83d\udc4b|\ud83d\udc4c|\ud83d\udc4d|\ud83d\udc4e|\ud83d\udc4f|\ud83d\udc50|\ud83d\udc51|\ud83d\udc52|\ud83d\udc53|\ud83d\udc54|\ud83d\udc55|\ud83d\udc56|\ud83d\udc57|\ud83d\udc58|\ud83d\udc59|\ud83d\udc5a|\ud83d\udc5b|\ud83d\udc5c|\ud83d\udc5d|\ud83d\udc5e|\ud83d\udc5f|\ud83d\udc60|\ud83d\udc61|\ud83d\udc62|\ud83d\udc63|\ud83d\udc64|\ud83d\udc66|\ud83d\udc67|\ud83d\udc68|\ud83d\udc69|\ud83d\udc6a|\ud83d\udc6b|\ud83d\udc6e|\ud83d\udc6f|\ud83d\udc70|\ud83d\udc71|\ud83d\udc72|\ud83d\udc73|\ud83d\udc74|\ud83d\udc75|\ud83d\udc76|\ud83d\udeb4|\ud83d\udc78|\ud83d\udc79|\ud83d\udc7a|\ud83d\udc7b|\ud83d\udc7c|\ud83d\udc7d|\ud83d\udc7e|\ud83d\udc7f|\ud83d\udc80|\ud83d\udc81|\ud83d\udc82|\ud83d\udc83|\ud83d\udc84|\ud83d\udc85|\ud83d\udc86|\ud83d\udc87|\ud83d\udc88|\ud83d\udc89|\ud83d\udc8a|\ud83d\udc8b|\ud83d\udc8c|\ud83d\udc8d|\ud83d\udc8e|\ud83d\udc8f|\ud83d\udc90|\ud83d\udc91|\ud83d\udc92|\ud83d\udc93|\ud83d\udc94|\ud83d\udc95|\ud83d\udc96|\ud83d\udc97|\ud83d\udc98|\ud83d\udc99|\ud83d\udc9a|\ud83d\udc9b|\ud83d\udc9c|\ud83d\udc9d|\ud83d\udc9e|\ud83d\udc9f|\ud83d\udca0|\ud83d\udca1|\ud83d\udca2|\ud83d\udca3|\ud83d\udca4|\ud83d\udca5|\ud83d\udca6|\ud83d\udca7|\ud83d\udca8|\ud83d\udca9|\ud83d\udcaa|\ud83d\udcab|\ud83d\udcac|\ud83d\udcae|\ud83d\udcaf|\ud83d\udcb0|\ud83d\udcb1|\ud83d\udcb2|\ud83d\udcb3|\ud83d\udcb4|\ud83d\udcb5|\ud83d\udcb8|\ud83d\udcb9|\ud83d\udcba|\ud83d\udcbb|\ud83d\udcbc|\ud83d\udcbd|\ud83d\udcbe|\ud83d\udcbf|\ud83d\udcc0|\ud83d\udcc1|\ud83d\udcc2|\ud83d\udcc3|\ud83d\udcc4|\ud83d\udcc5|\ud83d\udcc6|\ud83d\udcc7|\ud83d\udcc8|\ud83d\udcc9|\ud83d\udcca|\ud83d\udccb|\ud83d\udccc|\ud83d\udccd|\ud83d\udcce|\ud83d\udccf|\ud83d\udcd0|\ud83d\udcd1|\ud83d\udcd2|\ud83d\udcd3|\ud83d\udcd4|\ud83d\udcd5|\ud83d\udcd6|\ud83d\udcd7|\ud83d\udcd8|\ud83d\udcd9|\ud83d\udcda|\ud83d\udcdb|\ud83d\udcdc|\ud83d\udcdd|\ud83d\udcde|\ud83d\udcdf|\ud83d\udce0|\ud83d\udce1|\ud83d\udce2|\ud83d\udce3|\ud83d\udce4|\ud83d\udce5|\ud83d\udce6|\ud83d\udce7|\ud83d\udce8|\ud83d\udce9|\ud83d\udcea|\ud83d\udceb|\ud83d\udcee|\ud83d\udcf0|\ud83d\udcf1|\ud83d\udcf2|\ud83d\udcf3|\ud83d\udcf4|\ud83d\udcf6|\ud83d\udcf7|\ud83d\udcf9|\ud83d\udcfa|\ud83d\udcfb|\ud83d\udcfc|\ud83d\udd03|\ud83d\udd0a|\ud83d\udd0b|\ud83d\udd0c|\ud83d\udd0d|\ud83d\udd0e|\ud83d\udd0f|\ud83d\udd10|\ud83d\udd11|\ud83d\udd12|\ud83d\udd13|\ud83d\udd14|\ud83d\udd16|\ud83d\udd17|\ud83d\udd18|\ud83d\udd19|\ud83d\udd1a|\ud83d\udd1b|\ud83d\udd1c|\ud83d\udd1d|\ud83d\udd1e|\ud83d\udd1f|\ud83d\udd20|\ud83d\udd21|\ud83d\udd22|\ud83d\udd23|\ud83d\udd24|\ud83d\udd25|\ud83d\udd26|\ud83d\udd27|\ud83d\udd28|\ud83d\udd29|\ud83d\udd2a|\ud83d\udd2b|\ud83d\udd2e|\ud83d\udd2f|\ud83d\udd30|\ud83d\udd31|\ud83d\udd32|\ud83d\udd33|\ud83d\udd34|\ud83d\udd35|\ud83d\udd36|\ud83d\udd37|\ud83d\udd38|\ud83d\udd39|\ud83d\udd3a|\ud83d\udd3b|\ud83d\udd3c|\ud83d\udd3d|\ud83d\udd50|\ud83d\udd51|\ud83d\udd52|\ud83d\udd53|\ud83d\udd54|\ud83d\udd55|\ud83d\udd56|\ud83d\udd57|\ud83d\udd58|\ud83d\udd59|\ud83d\udd5a|\ud83d\udd5b|\ud83d\uddfb|\ud83d\uddfc|\ud83d\uddfd|\ud83d\uddfe|\ud83d\uddff|\ud83d\ude01|\ud83d\ude02|\ud83d\ude03|\ud83d\ude04|\ud83d\ude05|\ud83d\ude06|\ud83d\ude09|\ud83d\ude0a|\ud83d\ude0b|\ud83d\ude0c|\ud83d\ude0d|\ud83d\ude0f|\ud83d\ude12|\ud83d\ude13|\ud83d\ude14|\ud83d\ude16|\ud83d\ude18|\ud83d\ude1a|\ud83d\ude1c|\ud83d\ude1d|\ud83d\ude1e|\ud83d\ude20|\ud83d\ude21|\ud83d\ude22|\ud83d\ude23|\ud83d\ude24|\ud83d\ude25|\ud83d\ude28|\ud83d\ude29|\ud83d\ude2a|\ud83d\ude2b|\ud83d\ude2d|\ud83d\ude30|\ud83d\ude31|\ud83d\ude32|\ud83d\ude33|\ud83d\ude35|\ud83d\ude37|\ud83d\ude38|\ud83d\ude39|\ud83d\ude3a|\ud83d\ude3b|\ud83d\ude3c|\ud83d\ude3d|\ud83d\ude3e|\ud83d\ude3f|\ud83d\ude40|\ud83d\ude45|\ud83d\ude46|\ud83d\ude47|\ud83d\ude48|\ud83d\ude49|\ud83d\ude4a|\ud83d\ude4b|\ud83d\ude4c|\ud83d\ude4d|\ud83d\ude4e|\ud83d\ude4f|\ud83d\ude80|\ud83d\ude83|\ud83d\ude84|\ud83d\ude85|\ud83d\ude87|\ud83d\ude89|\ud83d\ude8c|\ud83d\ude8f|\ud83d\ude91|\ud83d\ude92|\ud83d\ude93|\ud83d\ude95|\ud83d\ude97|\ud83d\ude99|\ud83d\ude9a|\ud83d\udea2|\ud83d\udea4|\ud83d\udea5|\ud83d\udea7|\ud83d\udea8|\ud83d\udea9|\ud83d\udeaa|\ud83d\udeab|\ud83d\udeac|\ud83d\udead|\ud83d\udeb2|\ud83d\udeb6|\ud83d\udeb9|\ud83d\udeba|\ud83d\udebb|\ud83d\udebc|\ud83d\udebd|\ud83d\udebe|\ud83d\udec0|\ud83c\udde6|\ud83c\udde7|\ud83c\udde8|\ud83c\udde9|\ud83c\uddea|\ud83c\uddeb|\ud83c\uddec|\ud83c\udded|\ud83c\uddee|\ud83c\uddef|\ud83c\uddf0|\ud83c\uddf1|\ud83c\uddf2|\ud83c\uddf3|\ud83c\uddf4|\ud83c\uddf5|\ud83c\uddf6|\ud83c\uddf7|\ud83c\uddf8|\ud83c\uddf9|\ud83c\uddfa|\ud83c\uddfb|\ud83c\uddfc|\ud83c\uddfd|\ud83c\uddfe|\ud83c\uddff|\ud83c\udf0d|\ud83c\udf0e|\ud83c\udf10|\ud83c\udf12|\ud83c\udf16|\ud83c\udf17|\ue50a|\u27b0|\u2797|\u2796|\u2795|\u2755|\u2754|\u2753|\u274e|\u274c|\u2728|\u270b|\u270a|\u2705|\u26ce|\u23f3|\u23f0|\u23ec|\u23eb|\u23ea|\u23e9|\u27bf|\u00a9|\u00ae)|(?:(?:\ud83c\udc04|\ud83c\udd70|\ud83c\udd71|\ud83c\udd7e|\ud83c\udd7f|\ud83c\ude02|\ud83c\ude1a|\ud83c\ude2f|\ud83c\ude37|\u3299|\u303d|\u3030|\u2b55|\u2b50|\u2b1c|\u2b1b|\u2b07|\u2b06|\u2b05|\u2935|\u2934|\u27a1|\u2764|\u2757|\u2747|\u2744|\u2734|\u2733|\u2716|\u2714|\u2712|\u270f|\u270c|\u2709|\u2708|\u2702|\u26fd|\u26fa|\u26f5|\u26f3|\u26f2|\u26ea|\u26d4|\u26c5|\u26c4|\u26be|\u26bd|\u26ab|\u26aa|\u26a1|\u26a0|\u2693|\u267f|\u267b|\u3297|\u2666|\u2665|\u2663|\u2660|\u2653|\u2652|\u2651|\u2650|\u264f|\u264e|\u264d|\u264c|\u264b|\u264a|\u2649|\u2648|\u263a|\u261d|\u2615|\u2614|\u2611|\u260e|\u2601|\u2600|\u25fe|\u25fd|\u25fc|\u25fb|\u25c0|\u25b6|\u25ab|\u25aa|\u24c2|\u231b|\u231a|\u21aa|\u21a9|\u2199|\u2198|\u2197|\u2196|\u2195|\u2194|\u2139|\u2122|\u2049|\u203c|\u2668)([\uFE0E\uFE0F]?)))/g,r=/[&<>'"]/g,i=/IFRAME|NOFRAMES|NOSCRIPT|SCRIPT|SELECT|STYLE|TEXTAREA|[a-z]/,s=String.fromCharCode;return e}();return e}),function(e,t){typeof define=="function"&&define.amd?define("isval",t):typeof module=="object"&&module.exports?module.exports=t():e.isval=t()}(this,function(){return function e(t,n){function r(e){return typeof Number.isNaN=="function"?Number.isNaN(e):e!==e}function i(e){return typeof t=="object"&&t!==null}function s(e){return e.name.toLowerCase()}function o(e){return e&&typeof e.next=="function"&&typeof e.throw=="function"}function u(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="GeneratorFunction"}arguments.length===2&&typeof n=="undefined"?n="undefined":r(n)&&(n="NaN");switch(n){case"boolean":case"function":case"string":return typeof t===n;case"number":return typeof t===n&&!isNaN(t);case Number:if(r(t))return!1;case String:case Boolean:return typeof t===s(n);case Object:case"object":return i(t);case"array":return Array.isArray(t);case"regex":case"regexp":return t instanceof RegExp;case"date":return t instanceof Date;case"null":case null:return t===null;case"undefined":return typeof t=="undefined";case"NaN":return r(t);case"arguments":if(i(t))return typeof t.callee=="function"||/arguments/i.test(t.toString());return!1;case"integer":return e(t,"number")&&t%1===0;case"generator":return o(t);case"generator*":return u(t);default:return typeof n=="function"?t instanceof n:t}}}),function(e,t){var n;typeof define=="function"&&define.amd?define("implements",["isval"],t):typeof module=="object"&&module.exports?(n=require("isval"),module.exports=t(n)):(n=e.isval,e["implements"]=t(n))}(this,function(e){return function(n,r){var i=[];if(!e(n,"object"))throw TypeError("instance is not an Object");if(r==null)return!0;if(Array.isArray(r))i=r;else{if(!e(r,"function"))throw new TypeError("interface must be an Array or constructor Function");i=Object.getOwnPropertyNames(r.prototype).filter(function(t){return e(r.prototype[t],"function")})}for(var s=i.length-1;s>=0;s--){if(!e(i[s],"string")||!i[s])throw new TypeError("interface method name must be a String");if(!e(n[i[s]],"function"))return!1}return!0}}),typeof WeakMap=="undefined"&&function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(Math.random()*1e9>>>0)+(t++ +"__")};n.prototype={set:function(t,n){var r=t[this.name];r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0})},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:undefined},"delete":function(e){this.set(e,undefined)}},window.WeakMap=n}(),define("WeakMap",function(){}),function(){"use strict";function e(t,r){function s(e,t){return function(){return e.apply(t,arguments)}}var i;r=r||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=r.touchBoundary||10,this.layer=t,this.tapDelay=r.tapDelay||200,this.tapTimeout=r.tapTimeout||700;if(e.notNeeded(t))return;var o=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],u=this;for(var a=0,f=o.length;a<f;a++)u[o[a]]=s(u[o[a]],u);n&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,n,r){var i=Node.prototype.removeEventListener;e==="click"?i.call(t,e,n.hijacked||n,r):i.call(t,e,n,r)},t.addEventListener=function(e,n,r){var i=Node.prototype.addEventListener;e==="click"?i.call(t,e,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),r):i.call(t,e,n,r)}),typeof t.onclick=="function"&&(i=t.onclick,t.addEventListener("click",function(e){i(e)},!1),t.onclick=null)}var t=navigator.userAgent.indexOf("Windows Phone")>=0,n=navigator.userAgent.indexOf("Android")>0&&!t,r=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t,i=r&&/OS 4_\d(_\d)?/.test(navigator.userAgent),s=r&&/OS [6-7]_\d/.test(navigator.userAgent),o=navigator.userAgent.indexOf("BB10")>0;e.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(r&&e.type==="file"||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},e.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!n;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},e.prototype.sendClick=function(e,t){var n,r;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),r=t.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(e),!0,!0,window,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},e.prototype.determineEventType=function(e){return n&&e.tagName.toLowerCase()==="select"?"mousedown":"click"},e.prototype.focus=function(e){var t;r&&e.setSelectionRange&&e.type.indexOf("date")!==0&&e.type!=="time"&&e.type!=="month"?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},e.prototype.updateScrollParent=function(e){var t,n;t=e.fastClickScrollParent;if(!t||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},e.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},e.prototype.onTouchStart=function(e){var t,n,s;if(e.targetTouches.length>1)return!0;t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0];if(r){s=window.getSelection();if(s.rangeCount&&!s.isCollapsed)return!0;if(!i){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},e.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n?!0:!1},e.prototype.onTouchMove=function(e){if(!this.trackingClick)return!0;if(this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))this.trackingClick=!1,this.targetElement=null;return!0},e.prototype.findControl=function(e){return e.control!==undefined?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},e.prototype.onTouchEnd=function(e){var t,o,u,a,f,l=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,o=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,s&&(f=e.changedTouches[0],l=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)||l,l.fastClickScrollParent=this.targetElement.fastClickScrollParent),u=l.tagName.toLowerCase();if(u==="label"){t=this.findControl(l);if(t){this.focus(l);if(n)return!1;l=t}}else if(this.needsFocus(l)){if(e.timeStamp-o>100||r&&window.top!==window&&u==="input")return this.targetElement=null,!1;this.focus(l),this.sendClick(l,e);if(!r||u!=="select")this.targetElement=null,e.preventDefault();return!1}if(r&&!i){a=l.fastClickScrollParent;if(a&&a.fastClickLastScrollTop!==a.scrollTop)return!0}return this.needsClick(l)||(e.preventDefault(),this.sendClick(l,e)),!1},e.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},e.prototype.onMouse=function(e){return this.targetElement?e.forwardedTouchEvent?!0:e.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1):!0:!0:!0},e.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):e.target.type==="submit"&&e.detail===0?!0:(t=this.onMouse(e),t||(this.targetElement=null),t)},e.prototype.destroy=function(){var e=this.layer;n&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},e.notNeeded=function(e){var t,r,i,s;if(typeof window.ontouchstart=="undefined")return!0;r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1];if(r){if(!n)return!0;t=document.querySelector("meta[name=viewport]");if(t){if(t.content.indexOf("user-scalable=no")!==-1)return!0;if(r>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(o){i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);if(i[1]>=10&&i[2]>=3){t=document.querySelector("meta[name=viewport]");if(t){if(t.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}}}if(e.style.msTouchAction==="none"||e.style.touchAction==="manipulation")return!0;s=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1];if(s>=27){t=document.querySelector("meta[name=viewport]");if(t&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth))return!0}return e.style.touchAction==="none"||e.style.touchAction==="manipulation"?!0:!1},e.attach=function(t,n){return new e(t,n)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("fastclick",[],function(){return e}):typeof module!="undefined"&&module.exports?(module.exports=e.attach,module.exports.FastClick=e):window.FastClick=e}(),function(e,t,n,r){"use strict";function l(e,t,n){return setTimeout(y(e,n),t)}function c(e,t,n){return Array.isArray(e)?(h(e,n[t],n),!0):!1}function h(e,t,n){var i;if(!e)return;if(e.forEach)e.forEach(t,n);else if(e.length!==r){i=0;while(i<e.length)t.call(n,e[i],i,e),i++}else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function p(t,n,r){var i="DEPRECATED METHOD: "+n+"\n"+r+" AT \n";return function(){var n=new Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=e.console&&(e.console.warn||e.console.log);return s&&s.call(e.console,i,r),t.apply(this,arguments)}}function g(e,t,n){var r=t.prototype,i;i=e.prototype=Object.create(r),i.constructor=e,i._super=r,n&&d(i,n)}function y(e,t){return function(){return e.apply(t,arguments)}}function b(e,t){return typeof e==o?e.apply(t?t[0]||r:r,t):e}function w(e,t){return e===r?t:e}function E(e,t,n){h(N(t),function(t){e.addEventListener(t,n,!1)})}function S(e,t,n){h(N(t),function(t){e.removeEventListener(t,n,!1)})}function x(e,t){while(e){if(e==t)return!0;e=e.parentNode}return!1}function T(e,t){return e.indexOf(t)>-1}function N(e){return e.trim().split(/\s+/g)}function C(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);var r=0;while(r<e.length){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function k(e){return Array.prototype.slice.call(e,0)}function L(e,t,n){var r=[],i=[],s=0;while(s<e.length){var o=t?e[s][t]:e[s];C(i,o)<0&&r.push(e[s]),i[s]=o,s++}return n&&(t?r=r.sort(function(n,r){return n[t]>r[t]}):r=r.sort()),r}function A(e,t){var n,s,o=t[0].toUpperCase()+t.slice(1),u=0;while(u<i.length){n=i[u],s=n?n+o:t;if(s in e)return s;u++}return r}function M(){return O++}function _(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}function nt(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){b(e.options.enable,[e])&&n.handler(t)},this.init()}function rt(e){var t,n=e.options.inputClass;return n?t=n:H?t=Tt:B?t=_t:P?t=Bt:t=bt,new t(e,it)}function it(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,s=t&U&&r-i===0,o=t&(W|X)&&r-i===0;n.isFirst=!!s,n.isFinal=!!o,s&&(e.session={}),n.eventType=t,st(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function st(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=at(t)),i>1&&!n.firstMultiple?n.firstMultiple=at(t):i===1&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,u=o?o.center:s.center,l=t.center=ft(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=pt(u,l),t.distance=ht(u,l),ot(n,t),t.offsetDirection=ct(t.deltaX,t.deltaY);var c=lt(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=a(c.x)>a(c.y)?c.x:c.y,t.scale=o?vt(o.pointers,r):1,t.rotation=o?dt(o.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,ut(n,t);var h=e.element;x(t.srcEvent.target,h)&&(h=t.srcEvent.target),t.target=h}function ot(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},s=e.prevInput||{};if(t.eventType===U||s.eventType===W)i=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y};t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}function ut(e,t){var n=e.lastInterval||t,i=t.timeStamp-n.timeStamp,s,o,u,f;if(t.eventType!=X&&(i>R||n.velocity===r)){var l=t.deltaX-n.deltaX,c=t.deltaY-n.deltaY,h=lt(i,l,c);o=h.x,u=h.y,s=a(h.x)>a(h.y)?h.x:h.y,f=ct(l,c),e.lastInterval=t}else s=n.velocity,o=n.velocityX,u=n.velocityY,f=n.direction;t.velocity=s,t.velocityX=o,t.velocityY=u,t.direction=f}function at(e){var t=[],n=0;while(n<e.pointers.length)t[n]={clientX:u(e.pointers[n].clientX),clientY:u(e.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:t,center:ft(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ft(e){var t=e.length;if(t===1)return{x:u(e[0].clientX),y:u(e[0].clientY)};var n=0,r=0,i=0;while(i<t)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:u(n/t),y:u(r/t)}}function lt(e,t,n){return{x:t/e||0,y:n/e||0}}function ct(e,t){return e===t?V:a(e)>=a(t)?e<0?$:J:t<0?K:Q}function ht(e,t,n){n||(n=et);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function pt(e,t,n){n||(n=et);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.atan2(i,r)*180/Math.PI}function dt(e,t){return pt(t[1],t[0],tt)+pt(e[1],e[0],tt)}function vt(e,t){return ht(t[0],t[1],tt)/ht(e[0],e[1],tt)}function bt(){this.evEl=gt,this.evWin=yt,this.pressed=!1,nt.apply(this,arguments)}function Tt(){this.evEl=St,this.evWin=xt,nt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Lt(){this.evTarget=Ct,this.evWin=kt,this.started=!1,nt.apply(this,arguments)}function At(e,t){var n=k(e.touches),r=k(e.changedTouches);return t&(W|X)&&(n=L(n.concat(r),"identifier",!0)),[n,r]}function _t(){this.evTarget=Mt,this.targetIds={},nt.apply(this,arguments)}function Dt(e,t){var n=k(e.touches),r=this.targetIds;if(t&(U|z)&&n.length===1)return r[n[0].identifier]=!0,[n,n];var i,s,o=k(e.changedTouches),u=[],a=this.target;s=n.filter(function(e){return x(e.target,a)});if(t===U){i=0;while(i<s.length)r[s[i].identifier]=!0,i++}i=0;while(i<o.length)r[o[i].identifier]&&u.push(o[i]),t&(W|X)&&delete r[o[i].identifier],i++;if(!u.length)return;return[L(s.concat(u),"identifier",!0),u]}function Bt(){nt.apply(this,arguments);var e=y(this.handler,this);this.touch=new _t(this.manager,e),this.mouse=new bt(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function jt(e,t){e&U?(this.primaryTouch=t.changedPointers[0].identifier,Ft.call(this,t)):e&(W|X)&&Ft.call(this,t)}function Ft(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches,i=function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)};setTimeout(i,Pt)}}function It(e){var t=e.srcEvent.clientX,n=e.srcEvent.clientY;for(var r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],s=Math.abs(t-i.x),o=Math.abs(n-i.y);if(s<=Ht&&o<=Ht)return!0}return!1}function Kt(e,t){this.manager=e,this.set(t)}function Qt(e){if(T(e,Xt))return Xt;var t=T(e,Vt),n=T(e,$t);return t&&n?Xt:t||n?t?Vt:$t:T(e,Wt)?Wt:zt}function Gt(){if(!Rt)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){t[r]=n?e.CSS.supports("touch-action",r):!0}),t}function on(e){this.options=d({},this.defaults,e||{}),this.id=M(),this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Yt,this.simultaneous={},this.requireFail=[]}function un(e){return e&rn?"cancel":e&tn?"end":e&en?"move":e&Zt?"start":""}function an(e){return e==Q?"down":e==K?"up":e==$?"left":e==J?"right":""}function fn(e,t){var n=t.manager;return n?n.get(e):e}function ln(){on.apply(this,arguments)}function cn(){ln.apply(this,arguments),this.pX=null,this.pY=null}function hn(){ln.apply(this,arguments)}function pn(){on.apply(this,arguments),this._timer=null,this._input=null}function dn(){ln.apply(this,arguments)}function vn(){ln.apply(this,arguments)}function mn(){on.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function gn(e,t){return t=t||{},t.recognizers=w(t.recognizers,gn.defaults.preset),new wn(e,t)}function wn(e,t){this.options=d({},gn.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=rt(this),this.touchAction=new Kt(this,this.options.touchAction),En(this,!0),h(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function En(e,t){var n=e.element;if(!n.style)return;var r;h(e.options.cssProps,function(i,s){r=A(n.style,s),t?(e.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=e.oldCssProps[r]||""}),t||(e.oldCssProps={})}function Sn(e,n){var r=t.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=n,n.target.dispatchEvent(r)}var i=["","webkit","Moz","MS","ms","o"],s=t.createElement("div"),o="function",u=Math.round,a=Math.abs,f=Date.now,d;typeof Object.assign!="function"?d=function(t){if(t===r||t===null)throw new TypeError("Cannot convert undefined or null to object");var n=Object(t);for(var i=1;i<arguments.length;i++){var s=arguments[i];if(s!==r&&s!==null)for(var o in s)s.hasOwnProperty(o)&&(n[o]=s[o])}return n}:d=Object.assign;var v=p(function(t,n,i){var s=Object.keys(n),o=0;while(o<s.length){if(!i||i&&t[s[o]]===r)t[s[o]]=n[s[o]];o++}return t},"extend","Use `assign`."),m=p(function(t,n){return v(t,n,!0)},"merge","Use `assign`."),O=1,D=/mobile|tablet|ip(ad|hone|od)|android/i,P="ontouchstart"in e,H=A(e,"PointerEvent")!==r,B=P&&D.test(navigator.userAgent),j="touch",F="pen",I="mouse",q="kinect",R=25,U=1,z=2,W=4,X=8,V=1,$=2,J=4,K=8,Q=16,G=$|J,Y=K|Q,Z=G|Y,et=["x","y"],tt=["clientX","clientY"];nt.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(_(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(_(this.element),this.evWin,this.domHandler)}};var mt={mousedown:U,mousemove:z,mouseup:W},gt="mousedown",yt="mousemove mouseup";g(bt,nt,{handler:function(t){var n=mt[t.type];n&U&&t.button===0&&(this.pressed=!0),n&z&&t.which!==1&&(n=W);if(!this.pressed)return;n&W&&(this.pressed=!1),this.callback(this.manager,n,{pointers:[t],changedPointers:[t],pointerType:I,srcEvent:t})}});var wt={pointerdown:U,pointermove:z,pointerup:W,pointercancel:X,pointerout:X},Et={2:j,3:F,4:I,5:q},St="pointerdown",xt="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(St="MSPointerDown",xt="MSPointerMove MSPointerUp MSPointerCancel"),g(Tt,nt,{handler:function(t){var n=this.store,r=!1,i=t.type.toLowerCase().replace("ms",""),s=wt[i],o=Et[t.pointerType]||t.pointerType,u=o==j,a=C(n,t.pointerId,"pointerId");s&U&&(t.button===0||u)?a<0&&(n.push(t),a=n.length-1):s&(W|X)&&(r=!0);if(a<0)return;n[a]=t,this.callback(this.manager,s,{pointers:n,changedPointers:[t],pointerType:o,srcEvent:t}),r&&n.splice(a,1)}});var Nt={touchstart:U,touchmove:z,touchend:W,touchcancel:X},Ct="touchstart",kt="touchstart touchmove touchend touchcancel";g(Lt,nt,{handler:function(t){var n=Nt[t.type];n===U&&(this.started=!0);if(!this.started)return;var r=At.call(this,t,n);n&(W|X)&&r[0].length-r[1].length===0&&(this.started=!1),this.callback(this.manager,n,{pointers:r[0],changedPointers:r[1],pointerType:j,srcEvent:t})}});var Ot={touchstart:U,touchmove:z,touchend:W,touchcancel:X},Mt="touchstart touchmove touchend touchcancel";g(_t,nt,{handler:function(t){var n=Ot[t.type],r=Dt.call(this,t,n);if(!r)return;this.callback(this.manager,n,{pointers:r[0],changedPointers:r[1],pointerType:j,srcEvent:t})}});var Pt=2500,Ht=25;g(Bt,nt,{handler:function(t,n,r){var i=r.pointerType==j,s=r.pointerType==I;if(s&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)return;if(i)jt.call(this,n,r);else if(s&&It.call(this,r))return;this.callback(t,n,r)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var qt=A(s.style,"touchAction"),Rt=qt!==r,Ut="compute",zt="auto",Wt="manipulation",Xt="none",Vt="pan-x",$t="pan-y",Jt=Gt();Kt.prototype={set:function(e){e==Ut&&(e=this.compute()),Rt&&this.manager.element.style&&Jt[e]&&(this.manager.element.style[qt]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,function(t){b(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),Qt(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented){t.preventDefault();return}var r=this.actions,i=T(r,Xt)&&!Jt[Xt],s=T(r,$t)&&!Jt[$t],o=T(r,Vt)&&!Jt[Vt];if(i){var u=e.pointers.length===1,a=e.distance<2,f=e.deltaTime<250;if(u&&a&&f)return}if(o&&s)return;if(i||s&&n&G||o&&n&Y)return this.preventSrc(t)},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Yt=1,Zt=2,en=4,tn=8,nn=tn,rn=16,sn=32;on.prototype={defaults:{},set:function(e){return d(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(c(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=fn(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return c(e,"dropRecognizeWith",this)?this:(e=fn(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(c(e,"requireFailure",this))return this;var t=this.requireFail;return e=fn(e,this),C(t,e)===-1&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(c(e,"dropRequireFailure",this))return this;e=fn(e,this);var t=C(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function r(n){t.manager.emit(n,e)}var t=this,n=this.state;n<tn&&r(t.options.event+un(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=tn&&r(t.options.event+un(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=sn},canEmit:function(){var e=0;while(e<this.requireFail.length){if(!(this.requireFail[e].state&(sn|Yt)))return!1;e++}return!0},recognize:function(e){var t=d({},e);if(!b(this.options.enable,[this,t])){this.reset(),this.state=sn;return}this.state&(nn|rn|sn)&&(this.state=Yt),this.state=this.process(t),this.state&(Zt|en|tn|rn)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},g(ln,on,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return t===0||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=t&(Zt|en),i=this.attrTest(e);if(r&&(n&X||!i))return t|rn;if(r||i)return n&W?t|tn:t&Zt?t|en:Zt;return sn}}),g(cn,ln,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var e=this.options.direction,t=[];return e&G&&t.push($t),e&Y&&t.push(Vt),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,s=e.deltaX,o=e.deltaY;return i&t.direction||(t.direction&G?(i=s===0?V:s<0?$:J,n=s!=this.pX,r=Math.abs(e.deltaX)):(i=o===0?V:o<0?K:Q,n=o!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return ln.prototype.attrTest.call(this,e)&&(this.state&Zt||!(this.state&Zt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=an(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),g(hn,ln,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Zt)},emit:function(e){if(e.scale!==1){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),g(pn,on,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[zt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;this._input=e;if(!r||!n||e.eventType&(W|X)&&!i)this.reset();else if(e.eventType&U)this.reset(),this._timer=l(function(){this.state=nn,this.tryEmit()},t.time,this);else if(e.eventType&W)return nn;return sn},reset:function(){clearTimeout(this._timer)},emit:function(e){if(this.state!==nn)return;e&&e.eventType&W?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input))}}),g(dn,ln,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Zt)}}),g(vn,ln,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:G|Y,pointers:1},getTouchAction:function(){return cn.prototype.getTouchAction.call(this)},attrTest:function(e){var t=this.options.direction,n;return t&(G|Y)?n=e.overallVelocity:t&G?n=e.overallVelocityX:t&Y&&(n=e.overallVelocityY),this._super.attrTest.call(this,e)&&t&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&a(n)>this.options.velocity&&e.eventType&W},emit:function(e){var t=an(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),g(mn,on,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Wt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;this.reset();if(e.eventType&U&&this.count===0)return this.failTimeout();if(r&&i&&n){if(e.eventType!=W)return this.failTimeout();var s=this.pTime?e.timeStamp-this.pTime<t.interval:!0,o=!this.pCenter||ht(this.pCenter,e.center)<t.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,!o||!s?this.count=1:this.count+=1,this._input=e;var u=this.count%t.taps;if(u===0)return this.hasRequireFailures()?(this._timer=l(function(){this.state=nn,this.tryEmit()},t.interval,this),Zt):nn}return sn},failTimeout:function(){return this._timer=l(function(){this.state=sn},this.options.interval,this),sn},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==nn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),gn.VERSION="2.0.7",gn.defaults={domEvents:!1,touchAction:Ut,enable:!0,inputTarget:null,inputClass:null,preset:[[dn,{enable:!1}],[hn,{enable:!1},["rotate"]],[vn,{direction:G}],[cn,{direction:G},["swipe"]],[mn],[mn,{event:"doubletap",taps:2},["tap"]],[pn]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var yn=1,bn=2;wn.prototype={set:function(e){return d(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?bn:yn},recognize:function(e){var t=this.session;if(t.stopped)return;this.touchAction.preventDefaults(e);var n,r=this.recognizers,i=t.curRecognizer;if(!i||i&&i.state&nn)i=t.curRecognizer=null;var s=0;while(s<r.length)n=r[s],t.stopped!==bn&&(!i||n==i||n.canRecognizeWith(i))?n.recognize(e):n.reset(),!i&&n.state&(Zt|en|tn)&&(i=t.curRecognizer=n),s++},get:function(e){if(e instanceof on)return e;var t=this.recognizers;for(var n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(c(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(c(e,"remove",this))return this;e=this.get(e);if(e){var t=this.recognizers,n=C(t,e);n!==-1&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e===r)return;if(t===r)return;var n=this.handlers;return h(N(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this},off:function(e,t){if(e===r)return;var n=this.handlers;return h(N(e),function(e){t?n[e]&&n[e].splice(C(n[e],t),1):delete n[e]}),this},emit:function(e,t){this.options.domEvents&&Sn(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(!n||!n.length)return;t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};var r=0;while(r<n.length)n[r](t),r++},destroy:function(){this.element&&En(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},d(gn,{INPUT_START:U,INPUT_MOVE:z,INPUT_END:W,INPUT_CANCEL:X,STATE_POSSIBLE:Yt,STATE_BEGAN:Zt,STATE_CHANGED:en,STATE_ENDED:tn,STATE_RECOGNIZED:nn,STATE_CANCELLED:rn,STATE_FAILED:sn,DIRECTION_NONE:V,DIRECTION_LEFT:$,DIRECTION_RIGHT:J,DIRECTION_UP:K,DIRECTION_DOWN:Q,DIRECTION_HORIZONTAL:G,DIRECTION_VERTICAL:Y,DIRECTION_ALL:Z,Manager:wn,Input:nt,TouchAction:Kt,TouchInput:_t,MouseInput:bt,PointerEventInput:Tt,TouchMouseInput:Bt,SingleTouchInput:Lt,Recognizer:on,AttrRecognizer:ln,Tap:mn,Pan:cn,Swipe:vn,Pinch:hn,Rotate:dn,Press:pn,on:E,off:S,each:h,merge:m,extend:v,assign:d,inherit:g,bindFn:y,prefixed:A});var xn=typeof e!="undefined"?e:typeof self!="undefined"?self:{};xn.Hammer=gn,typeof define=="function"&&define.amd?define("hammerjs",[],function(){return gn}):typeof module!="undefined"&&module.exports?module.exports=gn:e[n]=gn}(window,document,"Hammer"),function(){"use strict";function e(e){return typeof e=="function"||typeof e=="object"&&e!==null}function t(e){return typeof e=="function"}function n(e){return typeof e=="object"&&e!==null}function l(e){a=e}function c(e){f=e}function g(){return function(){process.nextTick(x)}}function y(){return function(){u(x)}}function b(){var e=0,t=new d(x),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function w(){var e=new MessageChannel;return e.port1.onmessage=x,function(){e.port2.postMessage(0)}}function E(){return function(){setTimeout(x,1)}}function x(){for(var e=0;e<s;e+=2){var t=S[e],n=S[e+1];t(n),S[e]=undefined,S[e+1]=undefined}s=0}function T(){try{var e=require,t=e("vertx");return u=t.runOnLoop||t.runOnContext,y()}catch(n){return E()}}function C(){}function M(){return new TypeError("You cannot resolve a promise with itself")}function _(){return new TypeError("A promises callback cannot return that same promise.")}function D(e){try{return e.then}catch(t){return O.error=t,O}}function P(e,t,n,r){try{e.call(t,n,r)}catch(i){return i}}function H(e,t,n){f(function(e){var r=!1,i=P(n,t,function(n){if(r)return;r=!0,t!==n?F(e,n):q(e,n)},function(t){if(r)return;r=!0,R(e,t)},"Settle: "+(e._label||" unknown promise"));!r&&i&&(r=!0,R(e,i))},e)}function B(e,t){t._state===L?q(e,t._result):t._state===A?R(e,t._result):U(t,undefined,function(t){F(e,t)},function(t){R(e,t)})}function j(e,n){if(n.constructor===e.constructor)B(e,n);else{var r=D(n);r===O?R(e,O.error):r===undefined?q(e,n):t(r)?H(e,n,r):q(e,n)}}function F(t,n){t===n?R(t,M()):e(n)?j(t,n):q(t,n)}function I(e){e._onerror&&e._onerror(e._result),z(e)}function q(e,t){if(e._state!==k)return;e._result=t,e._state=L,e._subscribers.length!==0&&f(z,e)}function R(e,t){if(e._state!==k)return;e._state=A,e._result=t,f(I,e)}function U(e,t,n,r){var i=e._subscribers,s=i.length;e._onerror=null,i[s]=t,i[s+L]=n,i[s+A]=r,s===0&&e._state&&f(z,e)}function z(e){var t=e._subscribers,n=e._state;if(t.length===0)return;var r,i,s=e._result;for(var o=0;o<t.length;o+=3)r=t[o],i=t[o+n],r?$(n,r,i,s):i(s);e._subscribers.length=0}function W(){this.error=null}function V(e,t){try{return e(t)}catch(n){return X.error=n,X}}function $(e,n,r,i){var s=t(r),o,u,a,f;if(s){o=V(r,i),o===X?(f=!0,u=o.error,o=null):a=!0;if(n===o){R(n,_());return}}else o=i,a=!0;n._state===k&&(s&&a?F(n,o):f?R(n,u):e===L?q(n,o):e===A&&R(n,o))}function J(e,t){try{t(function(n){F(e,n)},function(n){R(e,n)})}catch(n){R(e,n)}}function K(e,t){var n=this;n._instanceConstructor=e,n.promise=new e(C),n._validateInput(t)?(n._input=t,n.length=t.length,n._remaining=t.length,n._init(),n.length===0?q(n.promise,n._result):(n.length=n.length||0,n._enumerate(),n._remaining===0&&q(n.promise,n._result))):R(n.promise,n._validationError())}function G(e){return(new Q(this,e)).promise}function Z(e){function s(e){F(n,e)}function o(e){R(n,e)}var t=this,n=new t(C);if(!i(e))return R(n,new TypeError("You must pass an array to race.")),n;var r=e.length;for(var u=0;n._state===k&&u<r;u++)U(t.resolve(e[u]),undefined,s,o);return n}function tt(e){var t=this;if(e&&typeof e=="object"&&e.constructor===t)return e;var n=new t(C);return F(n,e),n}function rt(e){var t=this,n=new t(C);return R(n,e),n}function ot(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ut(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function ft(e){this._id=st++,this._state=undefined,this._result=undefined,this._subscribers=[],C!==e&&(t(e)||ot(),this instanceof ft||ut(),J(this,e))}function lt(){var e;if(typeof global!="undefined")e=global;else if(typeof self!="undefined")e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=e.Promise;if(n&&Object.prototype.toString.call(n.resolve())==="[object Promise]"&&!n.cast)return;e.Promise=at}var r;Array.isArray?r=Array.isArray:r=function(e){return Object.prototype.toString.call(e)==="[object Array]"};var i=r,s=0,o={}.toString,u,a,f=function(t,n){S[s]=t,S[s+1]=n,s+=2,s===2&&(a?a(x):N())},h=typeof window!="undefined"?window:undefined,p=h||{},d=p.MutationObserver||p.WebKitMutationObserver,v=typeof process!="undefined"&&{}.toString.call(process)==="[object process]",m=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined",S=new Array(1e3),N;v?N=g():d?N=b():m?N=w():h===undefined&&typeof require=="function"?N=T():N=E();var k=void 0,L=1,A=2,O=new W,X=new W;K.prototype._validateInput=function(e){return i(e)},K.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},K.prototype._init=function(){this._result=new Array(this.length)};var Q=K;K.prototype._enumerate=function(){var e=this,t=e.length,n=e.promise,r=e._input;for(var i=0;n._state===k&&i<t;i++)e._eachEntry(r[i],i)},K.prototype._eachEntry=function(e,t){var r=this,i=r._instanceConstructor;n(e)?e.constructor===i&&e._state!==k?(e._onerror=null,r._settledAt(e._state,t,e._result)):r._willSettleAt(i.resolve(e),t):(r._remaining--,r._result[t]=e)},K.prototype._settledAt=function(e,t,n){var r=this,i=r.promise;i._state===k&&(r._remaining--,e===A?R(i,n):r._result[t]=n),r._remaining===0&&q(i,r._result)},K.prototype._willSettleAt=function(e,t){var n=this;U(e,undefined,function(e){n._settledAt(L,t,e)},function(e){n._settledAt(A,t,e)})};var Y=G,et=Z,nt=tt,it=rt,st=0,at=ft;ft.all=Y,ft.race=et,ft.resolve=nt,ft.reject=it,ft._setScheduler=l,ft._setAsap=c,ft._asap=f,ft.prototype={constructor:ft,then:function(e,t){var n=this,r=n._state;if(r===L&&!e||r===A&&!t)return this;var i=new this.constructor(C),s=n._result;if(r){var o=arguments[r-1];f(function(){$(r,i,o,s)})}else U(n,i,e,t);return i},"catch":function(e){return this.then(null,e)}};var ct=lt,ht={Promise:at,polyfill:ct};typeof define=="function"&&define.amd?define("es6-promise",[],function(){return ht}):typeof module!="undefined"&&module.exports?module.exports=ht:typeof this!="undefined"&&(this.ES6Promise=ht),ct()}.call(this),define("ninemsn/portal/common/configuration",["jquery"],function(e){return{create:function(t){var n=new e.Deferred,r=e.extend(!0,{},t),i=function(){return e.extend(!0,{},r)},s=function(t){return e.isPlainObject(t)&&(e.extend(!0,r,t),n.resolve()),n.pipe(i).promise()};return s}}}),define("ninemsn/portal/common/eventBroker",["jquery"],function(e){var t=e("<div></div>"),n=new e.Deferred;return{on:function(e,n){t.on(e,function(e,t){n(t)})},start:function(){n.resolve()},trigger:function(e,r){n.then(function(){t.trigger(e,r)})}}}),function(){var e=function(){var e={distributionVersion:"0.0.0.0",enabled:!1,errorServiceUrl:"/services/log/error",experience:"desktop",logErrorsToBrowserConsole:!1,maximumErrorsOnePageCanLog:10,persentageOfPagesToLog:100};return function(t){return $.isPlainObject(t)&&$.extend(e,t),$.extend({},e)}}(),t=function(){var e,n,r=function(){var e=[],n;for(n=0;n<50;n+=1)e.push(t.generateRandomNumber(0,9));return e.join("")};return{getCookie:function(){return document.cookie},getUserId:function(){var e=t.getCookie().split("; "),n,r;for(n=0;n<e.length;n+=1){r=e[n].split("=");if(r[0]==="MUID")return r[1]||""}return""},generateRandomNumber:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},generateLoggingPageId:function(){return e||(e=r()),e},generatePageSampleNumber:function(){return n||(n=t.generateRandomNumber(1,100)),n},resetLoggingPageId:function(){e=undefined},resetPageSampleNumber:function(){n=undefined}}}(),n=function(){var n={exception:{stack:""},sourceOfTheError:"",lineNumber:"",message:"",modules:[]},r=0,i=function(){var n=e();return n.enabled?r>n.maximumErrorsOnePageCanLog?!1:t.generatePageSampleNumber()>n.persentageOfPagesToLog?!1:!0:!1},s=function(r){var i=$.extend({},n,r);return{custom:{callStack:encodeURIComponent(i.exception.stack),currentPage:window.location.toString(),experience:e().experience,modules:i.modules,sourceOfTheError:i.sourceOfTheError,lineNumber:i.lineNumber,loggingPageId:t.generateLoggingPageId(),userAgent:window.navigator.userAgent,userId:t.getUserId()},eventType:"JavaScript Error",message:i.message,status:"Error",distributionVersion:e().distributionVersion}},o=function(){return window.console&&window.console.log&&typeof window.console.log=="function"},u=function(t){e().logErrorsToBrowserConsole&&o()&&console.log(t)},a=function(t){$.ajax({cache:!1,data:t,type:"POST",url:e().errorServiceUrl})},f=function(e){try{r+=1;if(!i())return;var t=s(e);u(t),a(t)}catch(n){}};return f.resetErrorCount=function(){r=0},f}(),r={globalErrors:function(){window.onerror=function(e,t,r){n({message:"Global Error: "+e,lineNumber:r,sourceOfTheError:t})}},jqueryAjaxErrors:function(){if(!window.$)return;$(document).ajaxError(function(t,r,i,s){if(i.url===e().errorServiceUrl)return;n({sourceOfTheError:i.url,message:"Ajax Error: "+r.status+" "+s})})},jqueryCallbackErrors:function(){if(!window.$)return;var e=function(e){var t=e.fireWith;e.fireWith=function(){try{t.apply(this,arguments)}catch(e){n({exception:e,message:"Callback error: "+e.message})}}},t=$.Callbacks;$.Callbacks=function(){var n=t.apply(this,arguments);return e(n),n}},requireErrors:function(){window.requirejs.onError=function(e){n({exception:e,modules:e.requireModules,message:"RequireJS Error: "+e.message})}}},i=function(){r.globalErrors(),r.jqueryAjaxErrors(),r.jqueryCallbackErrors(),r.requireErrors()},s=function(){window.ninemsn=window.ninemsn||{},ninemsn.portal=ninemsn.portal||{},ninemsn.portal.common=ninemsn.portal.common||{},ninemsn.portal.common.logging=ninemsn.portal.common.logging||{},ninemsn.portal.common.logging.loggingProvider={config:e,errorListeners:r,logError:n,utilities:t}};i(),s()}(),define("ninemsn/portal/common/logging/loggingProvider",function(){}),define("ninemsn/portal/common/logging",["ninemsn/portal/common/logging/loggingProvider"],function(){return window.ninemsn.portal.common.logging.loggingProvider}),function(){var e=document.getElementsByTagName("head")[0],t=document.createElement("meta");t.setAttribute("id","vxp_css_load_indicator"),e.appendChild(t)}(),define("ninemsn/portal/common/video",["jquery","ninemsn/portal/common/eventBroker"],function(e,n){e("<style>.video_player_loading{background:url(//share.9cdn.net/share/long_cache/img/video/ninemsn_video_rebranded_logo.png) center no-repeat #222}.video_player_loading_nz{background-image:url(//share.9cdn.net/share/long_cache/img/video/ninemsn_video_rebranded_logo.png)}#video_player_ageGate{position:absolute;top:0;left:0;background-color:#000;z-index:1;border:2px solid rgba(255,255,255,.15)}#video_player_ageGate span{color:#fff}#video_player_ageGate .rateinfo{display:block;margin-left:auto;margin-right:auto;width:250px;margin-top:40px;text-align:center}#video_player_ageGate.rate_m .rateinfo,#video_player_ageGate.rate_pg .rateinfo{margin-top:60px}#video_player_ageGate .ageinfo{display:block;margin-left:auto;margin-right:auto;margin-bottom:15px;font-size:16px;line-height:20px;text-align:center}#video_player_ageGate .audienceinfo{display:block;margin-left:auto;margin-right:auto;width:240px;margin-top:-40px;font-size:26px;line-height:28px;font-weight:700;text-shadow:2px 2px #006B84;text-align:center}#video_player_ageGate.rate_pg .audienceinfo{text-shadow:2px 2px #574301}#video_player_ageGate .agedialog{width:450px;margin-left:auto;margin-right:auto;padding:20px;border-radius:5px;background:url(//share.9cdn.net/share/long_cache/img/video/age_gate/dialog_bg.png) center no-repeat;height:82px}#video_player_ageGate .dobinput,#video_player_ageGate .dobtitle,#video_player_ageGate input#submit{margin-left:auto;margin-right:auto;display:block;font-size:13px;text-align:center}#video_player_ageGate .dobinput input[type=text]{margin-right:10px;border-radius:10px;width:83px;height:36px;border:0;text-align:center;color:#fff;background:url(//share.9cdn.net/share/long_cache/img/video/age_gate/text_field.png) -1px -1px no-repeat;-webkit-box-sizing:border-box}#video_player_ageGate input#submit{margin-top:10px;background:url(//share.9cdn.net/share/long_cache/img/video/age_gate/submit_btn.png) no-repeat;border:0;width:107px;height:40px;cursor:pointer}#video_player_ageGate span.warning{display:block;margin-left:auto;margin-right:auto;width:450px;margin-top:10px;color:red;text-align:center}#video_player_ageGate.rate_m{background:url(//share.9cdn.net/share/long_cache/img/video/age_gate/M_bg.jpg) center top no-repeat #000}#video_player_ageGate.rate_pg{background:url(//share.9cdn.net/share/long_cache/img/video/age_gate/PG_bg.jpg) center top no-repeat #000}#video_player_ageGate.rate_ma,#video_player_ageGate.rate_r{background:url(//share.9cdn.net/share/long_cache/img/video/age_gate/black_bg.gif) center top no-repeat #000}#video_player_brightcove_loading_img{position:absolute;top:127px;left:265px;margin:0;padding:0}.video_player_inner.ready .video_play_splash{left:50%;margin-left:-50px;top:50%;margin-top:-50px}#video_player_error{position:absolute;top:0;left:0;background-color:#000;z-index:1}#video_player_error span{color:#fff;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;height:50px;width:100%;text-align:center;font-size:14px}.video_widget_playlist{background:#393939;height:138px;overflow:hidden;font-size:10px;font-family:Arial,Verdana,Helvetica;color:#fff;text-align:left;line-height:1em;border-radius:0 0 5px 5px;margin:0;padding:0}.video_widget_playlist div{display:block;float:left;position:relative;padding:0;margin:0}.video_widget_playlist div.arrow{text-align:center;width:30px;height:128px;background:center no-repeat #474747;cursor:pointer;border-radius:5px;margin:5px 0 5px 5px;top:0;left:auto}.video_widget_playlist div.arrow:hover{background-color:grey}.video_widget_playlist div.arrow img{margin-top:45px}.video_widget_playlist #leftArrow{background-image:url(//share.9cdn.net/share/long_cache/img/video/playlist_arrowLeft.png)}.video_widget_playlist #rightArrow{background-image:url(//share.9cdn.net/share/long_cache/img/video/playlist_arrowRight.png)}.video_widget_playlist div.playlist{margin:5px 0 5px 5px;width:570px;overflow:hidden}.video_widget_playlist div.playlist div{float:none}.video_widget_playlist div.playlist ul .moreVideos{background:#444;border-radius:5px;cursor:auto}.video_widget_playlist div.playlist ul .moreVideos:hover{background:grey;border-radius:5px;cursor:auto}.video_widget_playlist div.playlist ul .moreVideos a{color:#fff;text-decoration:none}.video_widget_playlist div.playlist ul{list-style-type:none;margin:0;padding:0}.video_widget_playlist div.playlist ul li{width:138px;height:128px;float:left;margin:0 2px 0 0;cursor:pointer;list-style-type:none!important}.video_widget_playlist div.playlist ul li div.outer{padding:5px;height:118px;position:relative}.video_widget_playlist div.playlist ul li.selected{background:#4f4f4f;border-radius:5px}.video_widget_playlist div.playlist ul li:hover{background:grey;border-radius:5px}.video_widget_playlist div.playlist ul li div.outer h3{margin:0;padding:5px 2px;font-size:12px;font-weight:700;line-height:15px;color:#fff}.video_widget_playlist div.playlist ul li div.imgWrapper{width:128px;height:72px;overflow:hidden;position:relative}.video_widget_playlist div.playlist ul li div.imgWrapper span{position:relative;top:-16px;background:#000;opacity:.75;width:123px;height:16px;text-transform:uppercase;padding:2px 0 0 5px;margin:0;display:none;overflow:hidden;color:#fff}.video_widget_playlist div.playlist ul li div.description{position:relative;width:128px;height:128px;top:-114px;left:133px;border-left:1px solid #ccc;background:#585858;overflow:hidden;line-height:13px;font-size:11px;display:none;z-index:5}.video_widget_playlist div.playlist ul li p{padding:3px;margin:0}.video_widget_playlist div.playlist ul li div.description span{display:block;padding:3px}.video_widget_playlist div.playlist ul li span.videoSource{font-weight:700}.video_widget_leadWithImage{position:relative;font-size:9pt;font-family:Arial,Verdana,Helvetica;cursor:pointer;background-position:center}.video_widget_leadWithImage div.play{width:88px;height:108px;position:absolute;top:92px;left:276px;background:url(//share.9cdn.net/share/long_cache/img/video/leadWithImage_play.png) no-repeat}.video_widget_leadWithImage div.metaBackground{width:100%;height:70px;opacity:.7;background:#000;position:absolute;bottom:0;left:0}.video_widget_leadWithImage div.meta{font-family:Arial,Verdana,Helvetica;height:50px;color:#fff;opacity:.9;padding:10px;overflow:hidden;position:absolute;bottom:0;left:0}.video_widget_leadWithImage div.meta h2{margin:0 0 5px;padding:0;font-size:13pt;line-height:13pt;color:#fff;text-align:left}.video_widget_leadWithImage div.meta p{margin:0;padding:0;font-size:9pt;line-height:12pt;color:#fff;text-align:left}.video_widget_suggestedVideos hr{border-bottom:3px solid #000;margin-bottom:10px}.video_widget_suggestedVideos h2{font-size:17px;margin:0 0 10px;font-weight:400;float:left}.video_widget_suggestedVideos #moreVideos{float:right;font-size:12px;text-transform:uppercase}.video_widget_suggestedVideos ul{margin:0;padding:0;height:140px;clear:both}.video_widget_suggestedVideos ul li{list-style:none;width:120px;margin:0 12px 0 0;padding:0;float:left;display:inline}.video_widget_suggestedVideos ul li .imageItem{width:110px;height:61px;border:3px solid #E6E6E6;padding:2px;position:relative}.video_widget_suggestedVideos ul li img{width:110px;float:left;display:inline;border:0;padding:0}.video_widget_suggestedVideos .overlay{position:absolute;float:left;display:inline;width:110px;height:18px;bottom:2px;right:2px;background:url(//share.9cdn.net/share/long_cache/img/video/suggestedvideo_playicon.png) 3px 3px no-repeat}.video_widget_suggestedVideos .overlay a{margin-left:18px;color:#fff;font-size:12px;float:left;display:inline}.video_widget_suggestedVideos ul li a.videoText{display:block;line-height:18px;margin-top:4px;overflow:hidden;text-align:left;font-size:12px;text-decoration:none;color:#09C}.video_widget_suggestedVideos ul li a.videoText:hover{text-decoration:underline;color:#000}</style>").appendTo("head");var r={objects:{}};r.$=e,r.enumerations=r.enumerations||{account:{ninemsn:"ninemsn",ninemsnCatchup:"ninemsnCatchup",msnNZ:"msnNZ",thirdParty:"thirdParty",thirdPartyNZ:"thirdPartyNZ",custom:"custom"},adType:{preroll:"preroll",midroll:"midroll",postroll:"postroll"}},r.enumerations.data=r.enumerations.data||{adapter:{msn:"msn",Brightcove:"brightcove",CCast:"ccast"},method:{ID:"id",IDs:"ids",Tags:"tags",Search:"search",Related:"related"},searchOperator:{All:"ALL",Any:"ANY",Exact:"EXACT"}},r.enumerations.event=r.enumerations.event||{player:{loading:"player:loading",loaded:"player:loaded",error:"player:error"},video:{loading:"video:loading",loaded:"video:loaded",opening:"video:opening",buffering:"video:buffering",playing:"video:playing",paused:"video:paused",stopped:"video:stopped",playCompleted:"video:playCompleted",changed:"video:changed",error:"video:error",progress:"video:progress"},ad:{opening:"ad:opening",playing:"ad:playing",paused:"ad:paused",playCompleted:"ad:playCompleted",error:"ad:error"},tracking:{video:{loaded:"video:load",play:"video:play",progress:"video:progress",pause:"video:pause",stop:"video:stop",seek:"video:seek",unload:"video:unload"},ad:{loaded:"ad:load",play:"ad:play",pause:"ad:pause",stop:"ad:stop",unload:"ad:unload"}}},r.enumerations.player=r.enumerations.player||{adapter:{msn:"msn",Brightcove:"brightcove",ads:{freewheel:"freewheel"}},type:{Flash:"flash",Silverlight:"silverlight",HTML5:"html5"}},r.enumerations.widget=r.enumerations.widget||{type:{leadWithImage:"leadWithImage",list:"list",playlist:"playlist",suggestedVideos:"suggestedVideos"}},r.Data=r.Data||function(t){var n=this instanceof r.Data?this:new r.Data(t),i,o={account:r.enumerations.account.ninemsn,adapter:r.enumerations.data.adapter.Brightcove,paging:{page:1,size:10},cache:!0};n.dispose=function(){n.logger.debug("is being disposed of"),i.dispose!=null&&i.dispose(),i=null,o=null,n=null};var u=function(t){n.config=new r.utils.Config(n,t),n.logger=new r.utils.Logger(e.extend(!0,{name:"ninemsn.portal.common.video.Data"},n.config("logger"))),s.hasOwnProperty(t.adapter)?i=new s[t.adapter](n):n.logger.error("'"+t.adapter+"' is an unknown Data adapter")};(function(){o=e.extend(!0,o,t);if(o.adapter===r.enumerations.data.adapter.Brightcove)if((o.method===r.enumerations.data.method.ID||o.method===r.enumerations.data.method.Related)&&o.filter.id&&r.utils.looksLikeMsnId(o.filter.id)){var n={data:{filter:{id:o.filter.id}}};o.adapter==r.enumerations.data.adapter.Brightcove&&(n=r.utils.translateMsnId(o.filter.id)),e.when(n).done(function(e){o.filter.id=e.data.filter.id,u(o)}).fail(function(){o.adapter=r.enumerations.data.adapter.msn,u(o)})}else if(o.method===r.enumerations.data.method.IDs&&o.filter.ids){var i=[],s=[];for(var a=0;a<o.filter.ids.length;a+=1)r.utils.looksLikeMsnId(o.filter.ids[a])?i.push(o.filter.ids[a]):s.push(o.filter.ids[a]);var f=r.utils.translateMsnIds(i).concat(s);e.when.apply(e,f).done(function(){o.filter.ids=[];for(var e=0;e<arguments.length;e++)arguments[e]&&o.filter.ids.push(arguments[e]);u(o)})}else u(o);else u(o)})()};var s=s||{};s[r.enumerations.data.adapter.msn]=s[r.enumerations.data.adapter.msn]||function(t){var n=t,i=e.extend(!0,{baseUrl:"http://edge1.catalog.video.msn.com/",fileFilter:80},n.config("msn")),s="{market}_{method}_{params}_{page}_{pageSize}_{sortField}_{sortDirection}_{fileFilter}",o,u={},a={market:{ninemsn:"en-au",ninemsnCatchup:"alt2-en-au",msnNZ:"en-nz",thirdParty:"alt-en-au",thirdPartyNZ:"alt-en-nz"},sort_by:{ID:"VideoID",START_DATE:"ActiveStartDate"},sort_order:{ASC:1,DESC:-1},search_operator:{ALL:0,ANY:1,EXACT:2}},f=function(e,t){if(e!=null){var r={pageNumber:function(){return e.hasOwnProperty("$ind")?parseInt(e.$ind):null}(),pageSize:function(){return e.hasOwnProperty("$ps")?parseInt(e.$ps):null}(),totalVideos:function(){return e.hasOwnProperty("$total")?parseInt(e.$total):null}(),videos:[]};r.pageSize!=null&&r.pageNumber!=null&&(r.pageNumber=r.pageNumber-1,r.pageNumber=r.pageNumber+r.pageSize,r.pageNumber=r.pageNumber/r.pageSize);if(e.hasOwnProperty("video"))for(var i in e.video)i=e.video[i],typeof i=="object"&&r.videos.push(l(i));else r.videos=[l(e)];t(r)}else n.logger.warn("No data in the response")},l=function(e){var t={id:e.uuid.$,title:e.title.$,description:e.description.$,duration:e.durationSecs.$,publishDate:r.utils.createUtcDateFromString(e.startDate.$),source:e.source.$friendlyName,reporting:{plays:{total:-1}},account:r.utils.msn.getAccountFromMarket(e.tags.tag[0].$market),rawObject:e};t.image=function(e,n){return"http://img2.catalog.video.msn.com/image.aspx?uuid="+t.id+"&w="+e+"&h="+n};if(e.hasOwnProperty("usage")&&e.usage.hasOwnProperty("usageItem"))for(var n=0;n<e.usage.usageItem.length;n++){var i=e.usage.usageItem[n];parseInt(i.$counterType)==1&&(t.reporting.plays.total=parseInt(i.$totalCount))}return t},c=function(e,t){s.indexOf(e)>-1&&(s=s.replace(e,t))},h=function(){return s=s.replace(/[^A-Za-z0-9_]/ig,""),typeof window[s]=="function"&&(n.logger.debug("Cache Key in already in use",s),s=s+"_rand"+Math.floor(Math.random()*1100)),n.logger.debug("Cache Key",s),s},p=function(t){t=i.baseUrl+t;if(n.config("paging")!=null){var r=n.config("paging.size");if(r!=null){t+="&ps="+r,c("{pageSize}",r);var s=n.config("paging.page");if(s!=null){var u=s*r;u-=r,u++,t+="&ind="+u,c("{page}",u)}}}i["fileFilter"]!=null&&(t+="&ff="+i.fileFilter,c("{fileFilter}",i.fileFilter));if(n.config("sort")!=null){var l=n.config("sort"),p="",d="",v=function(e){e.by=a.sort_by.hasOwnProperty(e.by)?a.sort_by[e.by]:e.by,p+=p==""?e.by:","+e.by,e.order=a.sort_order.hasOwnProperty(e.order)?a.sort_order[e.order]:e.order,d+=d==""?e.order:","+e.order};if(l instanceof Array)for(var m=0;m<l.length;m++)v(l[m]);else v(l);p!=""&&(t+="&sf="+p,c("{sortField}",p)),d!=""&&(t+="&sd="+d,c("{sortDirection}",d))}t+="&responseEncoding=json&callbackName=?",n.logger.log("Request",t),o=e.ajax({url:t,dataType:"jsonp",cache:n.config("cache"),jsonpCallback:h(),success:function(e){n.logger.log("Request Complete",e),f(e,n.config("success"))},error:function(e){n.logger.error("Data request failed - "+e.status,e),n.config("error")!=null&&n.config("error")(e)}})};u[r.enumerations.data.method.ID]=function(){c("{params}",n.config("filter.id")),p("videobyuuid.aspx?uuid="+n.config("filter.id"))},u[r.enumerations.data.method.IDs]=function(){var e="",t=n.config("filter.ids");for(var r in t)e+=e==""?t[r]:","+t[r];c("{params}",e),p("videobyuuids.aspx?uuids="+e)},u[r.enumerations.data.method.Tags]=function(){var e="",t="",r=n.config("filter.tags");for(var s=0;s<r.length;s++){var o=r[s];o.value instanceof Array||(o.value=new Array(o.value));for(var u=0;u<o.value.length;u++)e+=e==""?o.name:","+o.name,t+=t==""?o.value[u]:","+o.value[u]}c("{params}",e+"_"+t),p("videobytag.aspx?mk="+i.market+"&ns="+e+"&tag="+t)},u[r.enumerations.data.method.Search]=function(){var e=n.config("filter.term"),t="",r=n.config("filter.operator"),s;if(e instanceof Array)for(s=0;s<e.length;s++)t+=t==""?e[s]:" "+e[s];else t=e;var o="",u="",f=n.config("filter.tags");if(f!=null)for(s=0;s<f.length;s++){var l=f[s];l.value instanceof Array||(l.value=new Array(l.value));for(var h=0;h<l.value.length;h++)o+=o==""?l.name:","+l.name,u+=u==""?l.value[h]:","+l.value[h]}var d=o.length>0?"&ns="+o+"&tag="+u:"";r=a.search_operator.hasOwnProperty(r)?a.search_operator[r]:"0",c("{params}",e+"_"+o+"_"+u+"_"+r),p("search.aspx?mk="+i.market+"&q="+encodeURIComponent(t)+"&op="+r+d)},u[r.enumerations.data.method.Related]=function(){c("{params}",n.config("filter.id")),p("relatedvideos.aspx?mk="+i.market+"&uuids="+n.config("filter.id"))},this.dispose=function(){n.logger.log("Closing any active MSN data requests"),o!=null&&o.abort()},function(){n.config("account")!=null?a.market.hasOwnProperty(n.config("account"))?(i.market=a.market[n.config("account")],c("{market}",i.market)):n.logger.error("The supplied account is not supported on this adapter",n.config("account")):n.logger.error("Account has not been set on the adapter"),u.hasOwnProperty(n.config("method"))?(c("{method}",n.config("method")),u[n.config("method")]()):n.logger.error("Data method not implemented",n.config("data"))}()},s[r.enumerations.data.adapter.Brightcove]=s[r.enumerations.data.adapter.Brightcove]||function(n){var s=n,o=e.extend(!0,{baseUrl:"http://api.brightcove.com/services/library?command=",videoFields:"&video_fields=id,referenceId,version,name,shortDescription,publishedDate,startDate,endDate,length,itemState,thumbnailURL,videoStillURL,playsTotal",customFields:"&custom_fields=genre,network,provider,series,season,episode,originalairdate,classification",item_count:"&get_item_count=true"},s.config("brightcove")),u,a={},f={market:{ninemsn:"en-au",ninemsnCatchup:"alt2-en-au",msnNZ:"en-nz",thirdParty:"alt-en-au"},sort_by:{ActiveStartDate:"START_DATE",monthlyCount:"PLAYS_TOTAL"},search_operator:{ALL:"all",ANY:"any",NONE:"none",EXACT:"exact"}},l=function(e,t){if(e!=null){var n={pageNumber:function(){return e.hasOwnProperty("page_number")?parseInt(e.page_number):null}(),pageSize:function(){return e.hasOwnProperty("page_size")?parseInt(e.page_size):null}(),totalVideos:function(){return e.hasOwnProperty("total_count")?parseInt(e.total_count):null}(),videos:[]};n.pageSize!=null&&n.pageNumber!=null&&(n.pageNumber=n.pageNumber+1);if(e.hasOwnProperty("items"))for(var r in e.items)r=e.items[r],r&&typeof r=="object"&&n.videos.push(c(r));else e.hasOwnProperty("error")?s.logger.error(e.error):n.videos=[c(e)];t(n)}else s.logger.warn("No data in the response")},c=function(e){var t={id:e.id,title:e.name,description:e.shortDescription,duration:e.length/1e3,publishDate:e.startDate!=null?new Date(parseInt(e.startDate)):new Date(parseInt(e.publishedDate)),source:e&&e.customFields&&e.customFields.series,reporting:{plays:{total:e.playsTotal||0}},account:s.config("account"),rawObject:e};return t.image=function(t,n){return"http://images.ninemsn.com.au/resizer.aspx?width="+t+"&height="+n+"&url="+e.videoStillURL},t},h=function(t){var n=t;t=o.baseUrl+t;if(s.config("paging")!=null){var r=s.config("paging.size");if(r!=null){t+="&page_size="+r;var i=s.config("paging.page");i!=null&&(t+="&page_number="+(i-1))}}if(s.config("sort")!=null){var a=s.config("sort"),c="",h="",p=function(e){e.by=f.sort_by.hasOwnProperty(e.by)?f.sort_by[e.by]:e.by,c+=c==""?e.by+":"+e.order:","+e.by+":"+e.order};if(a instanceof Array)for(var d=0;d<a.length;d++)p(a[d]);else p(a);c!=""&&(t+="&sort_by="+c)}else t+="&sort_by="+f.sort_by.ActiveStartDate+":DESC";t+="&token="+o.token+o.videoFields+o.customFields+o.item_count,t+="&callback=?",s.logger.log("Request",t),u=e.ajax({url:t,dataType:"jsonp",cache:s.config("cache"),success:function(e){s.logger.log("Request Complete",e),l(e,s.config("success"))},error:function(e){s.logger.error("Data request failed - "+e.status,e),s.config("error")!=null&&s.config("error")(e)}})};a[r.enumerations.data.method.ID]=function(){h("find_video_by_id&video_id="+s.config("filter.id"))},a[r.enumerations.data.method.IDs]=function(){var e="",t=s.config("filter.ids");for(var n in t)t.hasOwnProperty(n)&&(e+=e==""?t[n]:","+t[n]);h("find_videos_by_ids&video_ids="+e)};var p=function(e){var t={msnvideo_cat:"segment",msnvideo_top:"topic",series_title:"series",vc_source:"source",vc_supplier:"supplier",ninemsn_genre:"genre"};return t[e.toLowerCase()]||e},d=function(e){var t={ENNZ_Anabel:!0,ENNZ_lifestyle:!0,ENNZ_NakedNews:!0,ENNZ_tvnz:!0,AUplanetx_sports:!0,AU_cosmopolitan:!0,AU_lifestyle:!0,AU_Today:!0,AU_tvshows:!0,AU_VancouverCatchUp:!0,ALTENAU_OptusTestSource:!0},n=e.split("_"),r=n[0]+"_"+n[1];return t.hasOwnProperty(r)?{top:r,cat:e.substring(e.indexOf("_",r.length)+1)}:{top:n[0],cat:e.substring(e.indexOf("_")+1)}},v=function(e){var t="";for(var n=0;n<e.value.length;n++){var r=operator+"="+e.name+":"+e.value[n];t+="&"+r}return t},m=function(e){var n;for(i=0;i<e.length;i++){n=e[i],n.value instanceof Array||(n.value=new Array(n.value));if(n.name.toLowerCase()==="msnvideo_top_cat"){var r=[],s=[];for(t=0;t<n.value.length;t++){var o=d(n.value[t]);r.push(o.top),s.push(o.cat)}n.name="topic",n.value=r,e.push({name:"segment",value:s})}n.name=p(n.name)}return e};a[r.enumerations.data.method.Tags]=function(){var e=s.config("filter.operator"),t=[],n=s.config("filter.tags"),r,i,o,u;e=f.search_operator.hasOwnProperty(e)?f.search_operator[e]:"all",e==f.search_operator.EXACT&&(t.push("exact=true"),e=f.search_operator.ALL),n=m(n);for(r=0;r<n.length;r++){o=n[r],o.operator?u=f.search_operator[o.operator]||e:u=e;for(i=0;i<o.value.length;i++)o.name&&o.value[i]&&t.push(u+"="+o.name+":"+o.value[i])}t.length>0?(t=t.join("&"),h("search_videos&"+t)):l(null,null)},a[r.enumerations.data.method.Search]=function(){var e=s.config("filter.term"),t="",n=s.config("filter.operator"),r=s.config("filter.tags")||[],i,o;n=f.search_operator.hasOwnProperty(n)?f.search_operator[n]:"all",e instanceof Array||(e=[e]);var u=[];for(i=0;i<e.length;i++)u.push(n+"="+e[i]),u.push(n+"=tag:"+e[i]);r=m(r);var a;for(i=0;i<r.length;i++){a=r[i];for(o=0;o<a.value.length;o++)u.push(n+"="+a.name+":"+a.value[o])}t=u.join("&"),h("search_videos&"+t)},a[r.enumerations.data.method.Related]=function(){h("find_related_videos&video_id="+s.config("filter.id"))};var g=function(){if(s.config("account")!=null){var e={};e[r.enumerations.account.ninemsnCatchup]=function(){o.token="ogxhPgSphIVa2hhxbi9oqtYwtg032io4B4-ImwddYliFWHqS0UfMEw.."},e[r.enumerations.account.ninemsn]=function(){o.token="Vb3fqavTKFDDZbnnGGtbhKxam7uHduOnob-2MJlpHmUnzSMWbDe5bg.."},e[r.enumerations.account.custom]=function(){var e=s.config("brightcove");e&&(o.token=e.apiToken)},e[r.enumerations.account.thirdPartyNZ]=e[r.enumerations.account.ninemsn],e[r.enumerations.account.thirdParty]=e[r.enumerations.account.ninemsn],e[r.enumerations.account.msnNZ]=e[r.enumerations.account.ninemsn],e.hasOwnProperty(s.config("account"))?e[s.config("account")]():s.logger.error("The supplied account is not supported on this adapter",s.config("account"))}else s.logger.error("Account has not been set on the adapter")};this.dispose=function(){s.logger.log("Closing any active MSN data requests"),u!=null&&u.abort()},function(){g(),a.hasOwnProperty(s.config("method"))?a[s.config("method")]():s.logger.error("Data method not implemented",s.config("data"))}()},s[r.enumerations.data.adapter.CCast]=s[r.enumerations.data.adapter.CCast]||function(t){var n=t,i=e.extend(!0,{baseUrl:"http://ccast.static9.net.au/CCastTimeline/GetVideosByEpisode"},n.config("ccast")),s,o={},u=function(e,t){if(e!=null){var r={videos:[]},i=e.episode.id;if(e.hasOwnProperty("events")){var s=e.defaultValues.possibleImageFormats;for(var o in e.events){o=e.events[o];if(o.evsContent&&o.evsContent.detail&&o.evsContent.detail.camList)for(var u in o.evsContent.detail.camList)u=o.evsContent.detail.camList[u],typeof u=="object"&&u.available&&r.videos.push(f(u,o,s,i))}}t(r)}else n.logger.warn("No data in the response")},a=function(e,t){for(var n in e){n=e[n];if(n.lookupName==t)return n}return null},f=function(e,t,n,r){var i={id:e.video.name,title:t.evsContent.title,description:t.evsContent.description,publishDate:new Date(t.tcInDate+" "+t.tcInTime.substring(0,2)+":"+t.tcInTime.substring(2,4)+":"+t.tcInTime.substring(4,6)+":"+t.tcInTime.substring(6,8)),source:r,tags:[{name:"eventId",value:t.id},{name:"camId",value:e.id}]};for(var s in t.evsContent.keywordList)s=t.evsContent.keywordList[s],i.tags.push({name:s.type.toLowerCase(),value:s.value});var o={width:0};t.evsContent&&t.evsContent.thumb&&t.evsContent.thumb.availableImageFormats&&(o=l(t.evsContent.thumb.availableImageFormats,n,t.evsContent.thumb.name)),o.width===0&&(o=l(e.video.videoThumb.availableImageFormats,n,e.video.name));var u=o.id;return i.image=function(e,t){return"http://images.ninemsn.com.au/resizer.aspx?width="+e+"&height="+t+"&url="+o.deliveries[0].url+u.substring(0,3)+"/"+u.substring(3,6)+"/"+u.substring(6,9)+"/"+u+"_"+o.profile+"."+o.extension},i},l=function(e,t,n){var r={width:0};for(var i in e)e.hasOwnProperty(i)&&(i=e[i]),i=a(t,i.lookupName),i.width>r.width&&(r=i,r.id=n);return r},c=function(t){t=i.baseUrl+t,t+="&callback=?",n.logger.log("Request",t),s=e.ajax({url:t,dataType:"jsonp",cache:n.config("cache"),success:function(e){n.logger.log("Request Complete",e),u(e,n.config("success"))},jsonpCallback:"ninemsn_portal_common_video_ccastadapter_proxy",error:function(e){n.logger.error("Data request failed - "+e.status,e),n.config("error")!=null&&n.config("error")(e)}})};o[r.enumerations.data.method.Tags]=function(){var e="",t="",r=n.config("filter.tags");for(var i=0;i<r.length;i++){var s=r[i];s.name=="applicationId"&&(e=s.value),s.name=="episodeId"&&(t=s.value)}c("?applicationId="+e+"&episodeId="+t)},this.dispose=function(){n.logger.log("Closing any active data requests"),s!=null&&s.abort()},function(){o.hasOwnProperty(n.config("method"))?o[n.config("method")]():n.logger.error("Data method not implemented",n.config("data"))}()},r.utils=r.utils||{isServedViaHttps:function(e){var t=e||window.location.href;return t.split(":")[0]==="https"},isIe8OrLowerVersion:function(e){var t=!1,n=e||navigator.userAgent,r=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");return r.exec(n)!==null&&(t=parseFloat(RegExp.$1)<9),t},createDataFilterFromQuery:function(e){e=e.indexOf("/")==0?e.substring(1):e,e=decodeURIComponent(e);var t={sort_by:{ActiveStartDate:"START_DATE"},market:{"en-au":r.enumerations.account.ninemsn,"en-nz":r.enumerations.account.msnNZ,"alt2-en-au":r.enumerations.account.ninemsnCatchup,"alt-en-au":r.enumerations.account.thirdParty}},n=function(e){e=e.substr(e.indexOf("?")+1),e=e.split("&");var t={};for(o=0;o<e.length;o++){var n=e[o].split("=");t[n[0]]=n[1]}return t},i={},s=n(e),o;if(e.toLowerCase().indexOf("videobytag.aspx")>-1){i.method=r.enumerations.data.method.Tags,i.filter={tags:[]};var u=s.ns.split(","),a=s.tag.split(",");for(o=0;o<u.length;o++)i.filter.tags.push({name:u[o],value:a[o]})}e.toLowerCase().indexOf("relatedvideos.aspx")>-1&&(i.method=r.enumerations.data.method.Related,i.filter={id:s.uuids});if(e.toLowerCase().indexOf("search.aspx")>-1){i.method=r.enumerations.data.method.Search,i.filter={term:[]};var f=s.q.split(" ");for(o=0;o<f.length;o++)i.filter.term.push(f[o])}if(s.hasOwnProperty("ps")){i.paging={},i.paging.size=s.ps;var l=parseInt(i.paging.size);if(s.hasOwnProperty("ind")){i.paging=typeof i["paging"]=="undefined"?{}:i.paging;var c=parseInt(s.ind)-1;c+=l,c/=l,i.paging.page=c}}if(s.hasOwnProperty("mk")){var h=s.mk;i.account=t.market.hasOwnProperty(h)?t.market[h]:h}s.hasOwnProperty("ff")&&(i.msn={},i.msn.fileFilter=s.ff);if(s.hasOwnProperty("sf")){var p=s.sf.split(","),d=s.hasOwnProperty("sd")?s.sd.split(","):[],v=[];for(o=0;o<p.length;o++){var m=t.sort_by.hasOwnProperty(p[o])?t.sort_by[p[o]]:p[o],g=d[o]<d.length?d[o]:1;g=g==-1?"DESC":"ASC",v.push({by:m,order:g})}i.sort=v}return i},createUtcDateFromString:function(e){if(typeof e=="string"){var t;if(e.indexOf("T")>-1){e.indexOf("Z")>-1&&(e=e.substr(0,e.length-1));var n=e.split("T")[0].split("-"),r=e.split("T")[1].split(":");t=new Date(Date.UTC(n[0],parseInt(n[1],10)-1,n[2],r[0],r[1],r[2]))}else t=new Date(e);return t}return e},isDate:function(e){try{var t=0,n=1,r=2;e=e.replace(/-/g,"/").replace(/\./g,"/");var i=e.split("/"),s=!0;i[t].length!=1&&i[t].length!=2&&(s=!1),s&&i[n].length!=1&&i[n].length!=2&&(s=!1),s&&i[r].length!=4&&(s=!1);if(s){var o=parseInt(i[t],10),u=parseInt(i[n],10),a=parseInt(i[r],10);if(s=a>1900&&a<(new Date).getFullYear())if(s=u<=12&&u>0){var f=a%4==0&&a%100!=0||a%400==0;u==2?s=f?o<=29:o<=28:u==4||u==6||u==9||u==11?s=o>0&&o<=30:s=o>0&&o<=31}}return s}catch(l){return!1}}},r.utils.Config=r.utils.Config||function(e,t){var n=e,r=t;return function(e){if(typeof e!="undefined"){var t=null;if(r.hasOwnProperty(e))t=r[e];else if(e.split(".").length>1){var i=e.split(".");if(r.hasOwnProperty(i[0])){t=r[i[0]];for(var s=1;s<i.length&&t!=null;s++)t=t.hasOwnProperty(i[s])?t[i[s]]:null}}return t==null&&n.logger!=null&&n.logger.debug("'"+e+"' is null or was not found in the configuration object"),t}return r}},function(){var e={};r.utils.requireScript=r.utils.requireScript||function(t,n){t in e||(e[t]=[],r.utils.loadScript(t,function(){for(var n=0;n<e[t].length;n++)e[t][n]();e[t]=!0})),e[t]===!0?n():e[t].push(n)}}(),r.utils.loadScript=r.utils.loadScript||function(t,n){var r=document.getElementsByTagName("script")[0].parentNode,i=document.createElement("script");i.setAttribute("src",t),i.async=!0,i.onload=i.onreadystatechange=function(){if(!this.readyState||this.readyState==="complete"||this.readyState==="loaded")i.onload=null,n()},r.appendChild(i)},r.utils.Logger=r.utils.Logger||function(t){var n,r,i,s=function(){var e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+"."+e.getMilliseconds()};this.log=function(e,t){i&&(typeof t!="undefined"?console.log(s()+" |",r,e+" |",t):console.log(s()+" |",r,e))},this.debug=function(e,t){i&&(console.debug!=null?typeof t!="undefined"?console.debug(s()+" |",r,e+" |",t):console.debug(s()+" |",r,e):this.log(e,t))},this.info=function(e,t){i&&(typeof t!="undefined"?console.info(s()+" |",r,e+" |",t):console.info(s()+" |",r,e))},this.warn=function(e,t){i&&(typeof t!="undefined"?console.warn(s()+" |",r,e+" |",t):console.warn(s()+" |",r,e))},this.error=function(e,t){i&&(typeof t!="undefined"?console.error(s()+" |",r,e+" |",t):console.error(s()+" |",r,e))},function(){n=e.extend(!0,{enabled:!1,name:""},t);if(typeof console=="undefined")n.enabled=!1;else if(!n.enabled){var s=location.href;s=s.substr(s.indexOf("?")+1),s=s.split("&");for(var o=0;o<s.length;o++){var u=s[o].split("=");u[0].toLowerCase()=="debugvideo"&&u[1].toLowerCase()=="true"&&(n.enabled=!0)}}i=n.enabled,r=n["name"]!=""?n.name+" |":""}()},r.utils.msn=r.utils.msn||{getAccountFromMarket:function(e){var t={market:{"en-au":r.enumerations.account.ninemsn,"en-nz":r.enumerations.account.msnNZ,"alt2-en-au":r.enumerations.account.ninemsnCatchup,"alt-en-au":r.enumerations.account.thirdParty}};return t.market.hasOwnProperty(e)?t.market[e]:null},getMarketFromAccount:function(e){var t={account:{ninemsn:"en-au",msnNZ:"en-nz",ninemsnCatchup:"alt2-en-au",thirdParty:"alt-en-au"}};return t.account.hasOwnProperty(e)?t.account[e]:null}},r.utils.GetTargetString=r.utils.GetTargetString||function(){var t="//rad.msn.com/ADSAdClient31.dll?GetAd=&PG=MSVFOO",n={ads:{freewheel:{keyValues:""}}},r=e.Deferred(),i=function(e,t,n){if(e!=null){var r=e.toLowerCase().indexOf(t.toLowerCase()+"=");if(r!=-1){r+=t.length+1;var i=e.indexOf(n,r);return i=i==-1?e.length:i,e.substring(r,i)}}return""},s=function(){var e=document.cookie,t=escape(i(e,"mh",";")),n=t!=""?"&PN="+t:"",r=escape(i(i(e,"ANON",";"),"A","&")),s=escape(i(e,"MUID",";"));return r==""&&(r=s),n+=r!=""?"&ID="+r:"",n+=s!=""?"&MUID="+s:"",n};return setTimeout(function(){r.resolve(null)},4e3),e.ajax({url:t+s(),xhrFields:{withCredentials:!0},success:function(e){n.ads.freewheel.keyValues="_fw_ekv=1:"+e.substring(4),r.resolve(n)},error:function(){r.resolve(null)}}),r.promise()},r.utils.translateMsnId=r.utils.translateMsnId||function(t){var n=e.Deferred(),i=setTimeout(function(){n.reject()},5e3);return t=t.toLowerCase(),e.ajax({url:"http://brightcovelookup.api.ninemsn.com.au/video/"+encodeURIComponent(t),dataType:"jsonp",cache:!0,jsonpCallback:"ninemsn_portal_common_video_utils_translateMsnId_"+encodeURIComponent(t).replace(/\-/g,"_").toLowerCase(),success:function(e){clearTimeout(i),e.BCId?n.resolve({data:{filter:{id:e.BCId},method:r.enumerations.data.method.ID}}):n.reject()},error:function(){clearTimeout(i),n.reject()}}),n.promise()},r.utils.translateMsnIds=r.utils.translateMsnIds||function(t){var n=[];for(var r=0;r<t.length;r++)(function(){t[r]=t[r].toLowerCase();var s=e.Deferred();n.push(s);var o=setTimeout(function(){s.resolve(null)},5e3);e.ajax({url:"http://brightcovelookup.api.ninemsn.com.au/video/"+encodeURIComponent(t[r]),dataType:"jsonp",cache:!0,jsonpCallback:"ninemsn_portal_common_video_utils_translateMsnId_"+encodeURIComponent(t[r]).replace(/\-/g,"_").toLowerCase(),success:function(e){clearTimeout(o),e.BCId?s.resolve(e.BCId):s.resolve(null)},error:function(){clearTimeout(o),s.resolve(null)}})})();return n},r.utils.looksLikeMsnId=function(e){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e)},r.version="1.2.247.999262c12f291afb823c701d97ce6eb3188edd9d",r.Player=r.Player||function(t){var n=this instanceof r.Player?this:new r.Player(t),i,s,a={account:r.enumerations.account.ninemsn,adapter:r.enumerations.player.adapter.Brightcove,width:640,height:360};n.on=function(e,t){n.logger.debug("on",{event:e,handler:t}),i!=null?typeof i.on!="undefined"?i.on(e,t):i.bind(e,t):n.logger.error("The player object is undefined")},n.one=function(e,t){n.logger.debug("one",{event:e,handler:t}),i!=null&&i.one(e,t)},n.off=function(e,t){n.logger.debug("off",{event:e,handler:t}),i!=null&&(typeof i.off!="undefined"?i.off(e,t):i.unbind(e,t))},n.trigger=function(e,t){i!=null&&(n.logger.log(e,t),i.trigger(e,t))},n.send=function(e,t){n.logger.log("send",{type:e,value:t}),s!=null?s.send(e,t):n.logger.warn(n.config("adapter")+" does not implement 'send'")},n.get=function(e){return n.logger.log("get",e),s!=null?s.get(e):(n.logger.warn(n.config("adapter")+" does not implement 'get'"),null)},n.dispose=function(){typeof i.off!="undefined"?i.off():i.unbind(),n.logger.debug("is being disposed of"),s!=null&&s.dispose!=null&&s.dispose(),s=null,i.empty(),i=null,delete r.objects[a.outputLocation],n=null,this.isDisposed=!0},function(){a=e.extend(!0,a,t),n.config=new r.utils.Config(n,a),n.logger=new r.utils.Logger(e.extend(!0,{name:function(){return"ninemsn.portal.common.video.Player | "+n.config("outputLocation")}()},n.config("logger"))),!n.config("ads")||n.config("ads").hasOwnProperty("enabled")&&n.config("ads").enabled==0&&n.logger.warn("ads:{enabled:false} (Turn off AD) feature is no longer supported. ADs are managed at Freewheel level."),i=e("#"+n.config("outputLocation"));var f=r.enumerations.data.method;if(n.config("data.method")===f.IDs){var l={data:{filter:{id:n.config("data.filter.ids")[0]},method:f.ID}};a=e.extend(!0,a,l),n.config=new r.utils.Config(n,a)}var c=n.config("data.filter.id");n.config("data.method")===f.ID&&r.utils.looksLikeMsnId(n.config("data.filter.id"))&&a.adapter==r.enumerations.player.adapter.Brightcove&&(c=r.utils.translateMsnId(n.config("data.filter.id"))),o.hasOwnProperty(a.adapter)?a.adapter==r.enumerations.player.adapter.Brightcove?e.when(r.utils.GetTargetString(),c).done(function(t,i){a=e.extend(!0,a,t,i),n.config=new r.utils.Config(n,a),s=new o[a.adapter](n)}).fail(function(){a.adapter=r.enumerations.player.adapter.msn,n.config=new r.utils.Config(n,a),s=new o[a.adapter](n)}):s=new o[a.adapter](n):n.logger.error("'"+a.adapter+"' is an unknown Player adapter");var h=n.config("tracking");(!h||!h.hasOwnProperty("disabled")||!h.disabled)&&u(n),r.objects[a.outputLocation]=n}()};var o=o||{};o[r.enumerations.player.adapter.msn]=o[r.enumerations.player.adapter.msn]||function(t){function m(e,t){var n;for(n=0;n<e.length;n++)if(e[n].ns===t)return e[n].value;return null}function E(){n.trigger(r.enumerations.event.player.loading),l=n.config("outputLocation"),l.toLowerCase()=="videoplayer"&&n.logger.warn("Output location cannot be '"+l+"'. Please change the name of the output location."),e("#"+l).css({overflow:f.overflow,width:function(){return n.config("width")+"px"}(),height:function(){return n.config("height")+"px"}()}),e("#"+l).addClass("video_player_loading"),n.config("account")==r.enumerations.account.msnNZ&&e("#"+l).addClass("video_player_loading_nz"),a=l+"_ux1_1_1_1",p(),window.$vxp("#"+l).bind("playerReady",w),n.logger.log("Rendering a MSN video player"),window.MsnVideoUx.render(n.config("msn")&&n.config("msn").configName||f.configName,l,d(),n.config("msn")&&n.config("msn").defaultDomain||f.defaultDomain)}var n=t,i=!1,s,u={market:{ninemsn:"en-au",ninemsnCatchup:"alt2-en-au",msnNZ:"en-nz",thirdParty:"alt-en-au",thirdPartyNZ:"alt-en-nz"},send:{PLAY:"playVideo",PAUSE:"pauseVideo",STOP:"stopVideo",SEEK:"seekVideo",VOLUME:"setVolume",MUTE:"setVolume",LOAD:"loadVideo"},get:{VOLUME:"volume",MUTED:"volume",POSITION:"currentVideoPosition",DURATION:"currentVideoPosition",STATUS:"playbackStatus",META:"currentVideo",FULLSCREEN:"isFullScreen"},event:{adOpening:r.enumerations.event.ad.opening,adPlaying:r.enumerations.event.ad.playing,adPaused:r.enumerations.event.ad.paused,adPlayFailed:r.enumerations.event.ad.error,adPlayCompleted:r.enumerations.event.ad.playCompleted,loading:r.enumerations.event.video.loading,loaded:r.enumerations.event.video.loaded,ready:r.enumerations.event.video.loaded,videoChanged:r.enumerations.event.video.changed,videoOpening:r.enumerations.event.video.opening,videoPlaying:r.enumerations.event.video.playing,videoPaused:r.enumerations.event.video.paused,playbackStopped:r.enumerations.event.video.stopped,videoBuffering:r.enumerations.event.video.buffering,playbackCompleted:r.enumerations.event.video.playCompleted,videoPlayFailed:r.enumerations.event.video.error},sort_by:{ID:"VideoID",START_DATE:"Date"},sort_order:{ASC:"Ascending",DESC:"Descending"}},a,f=e.extend(!0,{overflow:"hidden",defaultDomain:{loadCss:"false"},playerOverrides:{MsnPlayerBaseLinkOverride:function(){return location.protocol+"//"+location.host+"/video/"}()}},n.config("msn")),l,c={},h=!1;c[r.enumerations.data.method.ID]=function(){return{type:"Uuid",uuids:[n.config("data.filter.id")]}},c[r.enumerations.data.method.IDs]=function(){return{type:"Uuid",uuids:n.config("data.filter.ids")}},c[r.enumerations.data.method.Tags]=function(){var e=[];for(var t=0;t<n.config("data.filter.tags").length;t++){var r=n.config("data.filter.tags")[t];r.value instanceof Array||(r.value=new Array(r.value));for(var i=0;i<r.value.length;i++)e.push({$namespace:r.name,$:r.value[i]})}return{type:"tag",tags:e}},c[r.enumerations.data.method.Search]=function(){return{type:"search",search:n.config("data.filter.term")}};var p=function(){if(n.config("account")!=null){var t={};t[r.enumerations.account.ninemsn]=function(){f.configName="NetworkVideoPlayerFreewheel",f.defaultDomain=e.extend(!0,f.defaultDomain,{csid:"ux-en-au"}),f.playerOverrides=e.extend(!0,f.playerOverrides,{widgetID:"network_video_player_freewheel"})},t[r.enumerations.account.ninemsnCatchup]=function(){f.configName="NetworkVideoPlayerFreewheel",f.defaultDomain=e.extend(!0,f.defaultDomain,{csid:"ux-alt2-en-au"}),f.playerOverrides=e.extend(!0,f.playerOverrides,{widgetID:"network_video_player_freewheel"})},t[r.enumerations.account.msnNZ]=function(){f.configName="NetworkVideoPlayer",f.defaultDomain=e.extend(!0,f.defaultDomain,{csid:"ux-en-nz"}),f.playerOverrides=e.extend(!0,f.playerOverrides,{widgetID:"network_video_player"})},t[r.enumerations.account.thirdParty]=function(){f.configName="ThirdPartyVideoPlayerFreewheel",f.defaultDomain=e.extend(!0,f.defaultDomain,{csid:"ux-alt-en-au"}),f.playerOverrides=e.extend(!0,f.playerOverrides,{widgetID:"third_party_video_player_freewheel"})},t[r.enumerations.account.thirdPartyNZ]=function(){f.configName="ThirdPartyVideoPlayer",f.defaultDomain=e.extend(!0,f.defaultDomain,{csid:"ux-alt-en-nz"}),f.playerOverrides=e.extend(!0,f.playerOverrides,{widgetID:"nz_thirtyparty_video_player"})},t.hasOwnProperty(n.config("account"))?t[n.config("account")]():n.logger.error("The supplied account is not supported on this adapter",n.config("account"))}else n.logger.error("Account has not been set on the adapter")},d=function(){var t={},i=f.playerOverrides.widgetID,s,a=n.config("ads")||{};if(a.enabled===!1)t.AdsAllowed=a.enabled?"VideoContent":"NoAds",t.HTML5AdPolicy=a.enabled?"VideoContent":"NoAds";else{var l=a.freewheel||{},h=o[r.enumerations.player.adapter.ads.freewheel],p=e.extend({},n.config("tracking"),n.config("networkLocation"));t.FWSiteSectionId=l.siteSection||h.getSiteSection(p.site,p.section),t.FWNetworkId=l.networkId||h.getNetworkId(),t.FWServer=l.serverUrl||h.getServerUrl();if(a.hasOwnProperty("companions"))for(s=0;s<a.companions.length;s++){var d=a.companions[s];d.width==300&&d.height==60&&(t.DisplayAdBanner=!0,t.BannerAdDivId=d.outputLocation)}}if(n.config("data")!=null)if(c.hasOwnProperty(n.config("data.method"))){t[i+".DefaultVideo"]={videoQuery:{videoFilter:c[n.config("data.method")]()}};if(n.config("data.sort")!=null){var v=n.config("data.sort"),m="",g="",y=function(e){e.by=u.sort_by.hasOwnProperty(e.by)?u.sort_by[e.by]:e.by,m+=m==""?e.by:","+e.by,e.order=u.sort_order.hasOwnProperty(e.order)?u.sort_order[e.order]:e.order,g+=g==""?e.order:","+e.order};if(v instanceof Array)for(s=0;s<v.length;s++)y(v[s]);else y(v);t[i+".DefaultVideo"].videoQuery.videoFilter.videoSort={sortField:m,sortDirection:g}}}else n.logger.error("Data method not implemented",n.config("data"));else n.logger.warn("An empty data object was supplied to the player.");t[i+".Width"]=n.config("width"),t[i+".Height"]=n.config("height");var b=n.config("autoPlay");b!=null&&(t.AutoPlayVideo=b);var w=n.config("closedCaptions");w!=null&&(t.MsnPlayerDisplayCC=w);var E=n.config("tracking");if(E!=null){E.hasOwnProperty("site")&&(t.PlayerChannel=E.site.replace(" ","_"));if(E.hasOwnProperty("hierarchy")){var S="";for(s=0;s<E.hierarchy.length;s++){var x=E.hierarchy[s].replace(" ","_");S+=S==""?x:"^"+x}t.PlayerLocation=S}}return t=e.extend(!0,f.playerOverrides,t),n.logger.debug("Player Overrides",t),t},v=function(e){var t=e,i={currentVideoChanged:function(e){e.param.hasOwnProperty("status")&&e.param.status=="success"?(s=r.enumerations.event.video.changed,n.trigger(r.enumerations.event.video.changed,n.get("META"))):e.param.status=="error"&&(s=r.enumerations.event.video.error,n.trigger(r.enumerations.event.video.error))},currentVideoDataUpdated:function(e){e.param.status=="success"?(s=r.enumerations.event.video.changed,n.trigger(r.enumerations.event.video.changed,g(e.param.video))):e.param.status=="error"&&(s=r.enumerations.event.video.error,n.trigger(r.enumerations.event.video.error))},playbackStatusChanged:function(e){var t={adOpening:function(){s=r.enumerations.event.ad.opening,n.trigger(r.enumerations.event.ad.opening)},adPlaying:function(){s=r.enumerations.event.ad.play,n.trigger(r.enumerations.event.ad.playing)},adPaused:function(){s=r.enumerations.event.ad.paused,n.trigger(r.enumerations.event.ad.paused)},adPlayFailed:function(){s=r.enumerations.event.ad.error,n.trigger(r.enumerations.event.ad.error)},adPlayCompleted:function(){s=r.enumerations.event.ad.playCompleted,n.trigger(r.enumerations.event.ad.playCompleted)},loading:function(){s=r.enumerations.event.video.loading,n.trigger(r.enumerations.event.video.loading)},loaded:function(){s=r.enumerations.event.video.loaded,n.trigger(r.enumerations.event.video.loaded,n.get("META")),h=!0},ready:function(){s=r.enumerations.event.video.loaded,n.trigger(r.enumerations.event.video.loaded,n.get("META")),h=!0},videoOpening:function(){},videoPlaying:function(){n.get("POSITION")<1&&(s=r.enumerations.event.video.opening,n.trigger(r.enumerations.event.video.opening)),s=r.enumerations.event.video.playing,n.trigger(r.enumerations.event.video.playing)},videoPaused:function(){s=r.enumerations.event.video.paused,n.trigger(r.enumerations.event.video.paused,n.get("POSITION"))},playbackStopped:function(){s=r.enumerations.event.video.stopped,n.trigger(r.enumerations.event.video.stopped)},videoBuffering:function(){s=r.enumerations.event.video.buffering,n.trigger(r.enumerations.event.video.buffering)},playbackCompleted:function(){s=r.enumerations.event.video.playCompleted,n.trigger(r.enumerations.event.video.playCompleted)},videoPlayFailed:function(){s=r.enumerations.event.video.error,n.trigger(r.enumerations.event.video.error)}};t.hasOwnProperty(e.param.status)?t[e.param.status](e):n.logger.warn("'"+e.param.status+"' is an unhandled playback status")}};return function(e){e.sourceId==t&&(i.hasOwnProperty(e.type)?i[e.type](e):n.logger.warn(e.type+" is an unhandled event type"))}},g=function(e){var t=null;return e!=null&&e!="undefined"?(t={id:e.uuid,title:e.title,description:e.description,duration:e.durationSecs,publishDate:r.utils.createUtcDateFromString(e.startDate),series:m(e.tags,"Series_Title"),source:e.sourceFriendly,sourceId:e.source,genre:m(e.tags,"genre")||m(e.tags,"ninemsn_genre"),provider:e.csId,referenceId:e.providerId,reporting:{},account:r.utils.msn.getAccountFromMarket(e.tags[0].mk),rawObject:e},t.image=function(e,n){return"http://img2.catalog.video.msn.com/image.aspx?uuid="+t.id+"&w="+e+"&h="+n}):n.logger.warn("Cannot normalise, supplied data was invalid",e),t},y=[],b=function(e,t){window.MsnVideo2.addMessageReceiver({eventType:e,widgetId:l,widgetGroup:null,funcCb:t}),y.push({eventType:e,widgetId:l,widgetGroup:null,funcCb:t})},w=function(){window.$vxp("#"+l).unbind("playerReady",w);var t=window.$vxp("#"+a),s=new v(a),o=n.get("TYPE");o!=null?(n.logger.log("Type: "+o),o!=r.enumerations.player.type.HTML5?(b("currentVideoChanged",s),b("playbackStatusChanged",s)):(b("currentVideoDataUpdated",s),b("playbackStatusChanged",function(e){e.param.status!="loaded"&&s(e)}),e("#"+l).find("div.ready").length>0&&n.one(r.enumerations.event.player.loaded,function(){s({type:"playbackStatusChanged",sourceId:a,param:{status:"loaded"}})}),t.find("video").bind("canplay",function(){s({type:"playbackStatusChanged",sourceId:a,param:{status:"loaded"}})})),(n.config("msn.playerOverrides.DisplayControlBar")==null||!n.config("msn.playerOverrides.DisplayControlBar"))&&e("#"+l+" .vxpMultiLiteInfo").hide(),n.trigger(r.enumerations.event.player.loaded,{id:l}),i=!0,!h&&o!=r.enumerations.player.type.HTML5&&n.get("STATUS")!=u.event.loading&&n.get("META")!=null&&s({type:"playbackStatusChanged",sourceId:a,param:{status:"loaded"}}),e("#"+l).removeClass("video_player_loading"),n.config("account")==r.enumerations.account.msnNZ&&e("#"+l).removeClass("video_player_loading_nz")):(n.logger.error("The player type is unknown"),n.trigger("player:error"))};this.send=function(e,t){var n={SEEK:function(e){return{position:e}},VOLUME:function(e){return{volume:e}},MUTE:function(e){return{mute:e}},LOAD:function(e){return{uuid:e}}};window.MsnVideo2.sendMessage({type:u.send[e],targetId:a,param:n.hasOwnProperty(e)?n[e](t):t})},this.get=function(e){var t={TYPE:function(){var e=window.$vxp.vxpGlobal.players[a];if(e!=null){var t=e.type,i=r.enumerations.player.type;return t=="msn:flash"?t=i.Flash:t=="msn:silverlight"?t=i.Silverlight:t=="msn:html5"?t=i.HTML5:(n.logger.warn("'"+t+"' is an unknown player type."),t=null),t}return n.logger.warn("Could not find the player on the page. The player type could not be determined."),null},VOLUME:function(){return window.MsnVideo2.getProperties({type:u.get.VOLUME,targetId:a})[0].param.volume},MUTED:function(){return window.MsnVideo2.getProperties({type:u.get.MUTED,targetId:a})[0].param.mute},POSITION:function(){return window.MsnVideo2.getProperties({type:u.get.POSITION,targetId:a})[0].param.position},DURATION:function(){return window.MsnVideo2.getProperties({type:u.get.DURATION,targetId:a})[0].param.duration},STATUS:function(){if(i){var e=window.MsnVideo2.getProperties({type:u.get.STATUS,targetId:a})[0].param.status;return n.get("TYPE")==r.enumerations.player.type.Silverlight&&(e=e.substring(0,1).toLowerCase()+e.substring(1)),u.event[e]!=null?u.event[e]:(n.logger.info("Could not normalise the '"+e+"' status, using internal instead."),s)}return"player:loading"},META:function(){return g(window.MsnVideo2.getProperties({type:u.get.META,targetId:a})[0].param.video)},FULLSCREEN:function(){return window.MsnVideo2.getProperties({type:u.get.FULLSCREEN,targetId:a})[0].param.isFullScreen}};return t.hasOwnProperty(e)?t[e]():(n.logger.warn(e+" is not a supported property"),null)},this.dispose=function(){n.logger.log("Removing a MSN player");for(var e=0;e<y.length;e++)window.MsnVideo2.removeMessageReceiver(y[e]);y=[],window.MsnVideoUx.remove(l)},window.$vxp?E():r.utils.requireScript("//img1.video.s-msn.com/s/js/vxp.js",E)},o[r.enumerations.player.adapter.Brightcove]=o[r.enumerations.player.adapter.Brightcove]||function(t){function P(e,t){return'<param name="'+e+'" value="'+t+'" />'}function H(){var e="";return window[u+"_loadCallback"]=function(){n.trigger(r.enumerations.event.player.loaded),delete window[u+"_loadCallback"]},e+=P("templateLoadHandler",u+"_loadCallback"),window[u+"_readyCallback"]=function(){f.getCurrentVideo(function(e){m=w(e);if(m){y=r.enumerations.event.video.loaded;var t=!0;n.trigger(r.enumerations.event.video.loaded,[m,t])}}),delete window[u+"_readyCallback"]},e+=P("templateReadyHandler",u+"_readyCallback"),window[u+"_errorCallback"]=function(e){y=r.enumerations.event.player.error;var t={unknown:function(){n.trigger(r.enumerations.event.player.error,e),n.logger.error(y+" | There was an unidentifiable issue that prevents load or playback",e)},domainRestricted:function(){n.trigger(r.enumerations.event.player.error,e),n.logger.error(y+" | The player is not allowed to be viewed on the requesting domain",e)},geoRestricted:function(){n.trigger(r.enumerations.event.player.error,e),n.logger.error(y+" | The player may not be viewed in the current geography",e)},invalidID:function(){n.trigger(r.enumerations.event.player.error,e),n.logger.error(y+" | The ID provided for the player is not for a currently active player",e)},noContent:function(){n.trigger(r.enumerations.event.player.error,e),n.logger.error(y+" | There was no programmed content in the player",e)},unavailableContent:function(){L("We’re sorry, the video you are looking for is currently unavailable."),y=r.enumerations.event.video.error,n.trigger(r.enumerations.event.video.error,e),n.logger.error(y+" | There was an error loading the video content",e)},contentNotSupportedOnDevice:function(){y=r.enumerations.event.video.error,n.trigger(r.enumerations.event.video.error,e),n.logger.error(y+" | Content not supported on this device",e)},upgradeRequiredForVideo:function(){n.trigger(r.enumerations.event.player.error,e),n.logger.error(y+" | An upgrade to the Flash Player is required to view the content",e)},upgradeRequiredForPlayer:function(){n.trigger(r.enumerations.event.player.error,e),n.logger.error(y+" | An upgrade to the Flash Player is required to load the player",e)},serviceUnavailable:function(){n.trigger(r.enumerations.event.player.error,e),n.logger.error(y+" | There was an error connecting to the backend on initial load",e)},VE_INVALID_ID:function(){L("We’re sorry, the video you are looking for is unavailable."),n.trigger(r.enumerations.event.video.error,e),n.logger.error(y+" | The video id is unrecognised",e)},VS_RESTRICT_GEO:function(){O(),n.trigger(r.enumerations.event.video.error,e),n.logger.error(y+" | The video may not be viewed in the current geography",e)}};t.hasOwnProperty(e.errorType)?t[e.errorType]():t.unknown()},e+=P("templateErrorHandler",u+"_errorCallback"),e}function j(){n.trigger(r.enumerations.event.player.loading),N(),n.on(r.enumerations.event.player.loaded,function(){x()}),T(),D(),_(),i=e.extend(!0,i,n.config("brightcove")),e("#"+s).css({width:function(){return n.config("width")+"px"}(),height:function(){return n.config("height")+"px"}()}),e("#"+s).addClass("video_player_loading"),n.config("account")==r.enumerations.account.msnNZ&&e("#"+s).addClass("video_player_loading_nz");var t='<object id="'+u+'" class="BrightcoveExperience">';for(var a in i)t+=P(a,i[a]);t+=H(),t+="</object>",e("#"+s).html(t);var f=!1;if(window.addEventListener){var l=o[r.enumerations.player.adapter.ads.freewheel].getFwBrightcovePluginUrl();r.utils.loadScript(l,function(){f||(f=!0,window.brightcove.createExperiences())})}else window.brightcove.createExperiences()}var n=t,i=e.extend(!0,{bgcolor:"#000000",isVid:!0,isUI:!0,dynamicStreaming:!0,includeAPI:!0,wmode:"transparent"},n.config("brightcove")),s=n.config("outputLocation"),u="BC_"+parseInt(Math.random()*1e5),a,f,l,c,h,p=!1,d=!1,v=!1,m,g=0,y=r.enumerations.event.player.loading,b={Age:{MA:15,R:18},AudienceInfo:{PG:"Parental guidance recommended",M:"Recommended for mature audiences"}};this.send=function(t,i){var s={SEEK:function(e){f.seek(e)},LOAD:function(t){var i=n.get("TYPE")==r.enumerations.player.type.Flash?r.utils.GetTargetString().then(function(e){return e&&(M.fw_keyvalues=M.keyValues=e.ads.freewheel.keyValues),!0}):!1;t=t.toString(),t.indexOf("ref:")!=0?(r.utils.looksLikeMsnId(t)&&(t=r.utils.translateMsnId(t)),e.when(t,i).then(function(e){var t=e;e.data&&e.data.filter&&e.data.filter.id&&(t=e.data.filter.id),f.loadVideoByID(t),g=0},function(){L("We’re sorry, the video you are looking for is unavailable.")})):(t=t.replace("ref:",""),e.when(i).then(function(){f.loadVideoByReferenceID(t),g=0})),e("#video_player_ageGate").remove(),e("iframe#"+u).css({width:n.config("width")+"px"}),n.one(r.enumerations.event.video.loaded,C),e("#video_player_error").remove()},PLAY:function(){f.play()},PAUSE:function(){f.pause()},STOP:function(){f.pause(),n.trigger(r.enumerations.event.video.stopped)},RESIZE:function(e){d||l&&l.setSize(e.width,e.height)}};s.hasOwnProperty(t)?s[t](i):n.logger.warn(t+" is not supported")},this.get=function(e){var t={META:function(){return m},TYPE:function(){if(f.experience!=null){var e=f.experience.type,t=r.enumerations.player.type;return e=="flash"?e=t.Flash:e=="html"?e=t.HTML5:(n.logger.warn("'"+e+"' is an unknown player type."),e=null),e}return n.logger.warn("Could not find the player on the page. The player type could not be determined."),null},POSITION:function(){return g},DURATION:function(){return m!=null?m.duration:(n.logger.warn("DURATION is not available yet"),0)},STATUS:function(){return v?y:r.enumerations.event.player.loading}};return t.hasOwnProperty(e)?t[e]():(n.logger.warn(e+" is not a supported property"),null)};var w=function(e){var t=null;return e!=null&&e!="undefined"?(t={id:e.id,title:e.displayName,description:e.shortDescription,duration:e.length/1e3,publishDate:r.utils.createUtcDateFromString(e.startDate),series:e.customFields&&e.customFields.series,source:e.customFields&&(e.customFields.source||e.customFields.series),sourceId:e.customFields&&(e.customFields.source||e.customFields.series),genre:e.customFields&&e.customFields.genre,provider:e.customFields&&(e.customFields.provider||e.customFields.supplier),referenceId:e.referenceID||e.referenceId,account:n.config("account"),reporting:{},rawObject:e},e.numberOfPlays&&(t.reporting.plays={total:e.numberOfPlays}),t.image=function(t,n){return"http://images.ninemsn.com.au/resizer.aspx?width="+t+"&height="+n+"&url="+e.videoStillURL}):n.logger.warn("Cannot normalise, supplied data was invalid",e),t},E=!1,S=function(){var e={mediaBegin:function(e){E=!0,m=w(e.media),y=r.enumerations.event.video.opening,m!==null?n.trigger(r.enumerations.event.video.opening,m):(n.logger.warn("Could not raise video:opening with META data as it was null"),n.trigger(r.enumerations.event.video.opening)),y=r.enumerations.event.video.playing,n.trigger(r.enumerations.event.video.playing)},mediaPlay:function(e){if(!E)return;y=r.enumerations.event.video.playing,n.trigger(r.enumerations.event.video.playing)},mediaStop:function(e){if(!E)return;y=r.enumerations.event.video.paused,n.trigger(r.enumerations.event.video.paused)},mediaComplete:function(e){g=e.position,y=r.enumerations.event.video.playCompleted,n.trigger(r.enumerations.event.video.playCompleted)},mediaChange:function(e){E=!1,m=w(e.media),y=r.enumerations.event.video.changed,m!=null?(n.trigger(r.enumerations.event.video.changed,m),n.trigger(r.enumerations.event.video.loaded,m)):f.getCurrentVideo(function(e){m=w(e),n.trigger(r.enumerations.event.video.changed,m),n.trigger(r.enumerations.event.video.loaded,m)})},mediaProgress:function(e){g=e.position,n.trigger(r.enumerations.event.video.progress,e.position)},mediaSeekNotify:function(e){g=e.position},mediaError:function(){y=r.enumerations.event.video.error,n.trigger(r.enumerations.event.video.error)},adStart:function(e){p||(y=r.enumerations.event.ad.opening,n.trigger(r.enumerations.event.ad.opening),p=!0),y=r.enumerations.event.ad.playing,n.trigger(r.enumerations.event.ad.playing)},adComplete:function(){y=r.enumerations.event.ad.playCompleted,n.trigger(r.enumerations.event.ad.playCompleted),p=!1}};return function(t){e.hasOwnProperty(t.type)?e[t.type](t):n.logger.warn(t.type+" is an unhandled event type")}},x=function(){a=window.brightcove.api.getExperience(u),y=r.enumerations.event.player.loaded;var t=new S;f=a.getModule(window.brightcove.api.modules.APIModules.VIDEO_PLAYER),l=a.getModule(window.brightcove.api.modules.APIModules.EXPERIENCE),c=a.getModule(window.brightcove.api.modules.APIModules.CONTENT),h=a.getModule(window.brightcove.api.modules.APIModules.ADVERTISING),n.trigger(r.enumerations.event.video.loading),y=r.enumerations.event.video.loading,l.addEventListener(window.brightcove.api.events.ExperienceEvent.TEMPLATE_READY,function(){v=!0,y=r.enumerations.event.player.loaded,f.addEventListener(window.brightcove.api.events.MediaEvent.BEGIN,t),f.addEventListener(window.brightcove.api.events.MediaEvent.CHANGE,t),f.addEventListener(window.brightcove.api.events.MediaEvent.COMPLETE,t),f.addEventListener(window.brightcove.api.events.MediaEvent.ERROR,t),f.addEventListener(window.brightcove.api.events.MediaEvent.PLAY,t),f.addEventListener(window.brightcove.api.events.MediaEvent.PROGRESS,t),f.addEventListener(window.brightcove.api.events.MediaEvent.STOP,t),f.addEventListener(window.brightcove.api.events.MediaEvent.SEEK_NOTIFY,t),h.addEventListener(window.brightcove.api.events.AdEvent.START,t),h.addEventListener(window.brightcove.api.events.AdEvent.COMPLETE,t)}),l.addEventListener("enterFullScreen",function(){d=!0}),l.addEventListener("exitFullScreen",function(){d=!1}),e("#"+s).removeClass("video_player_loading"),n.config("account")==r.enumerations.account.msnNZ&&e("#"+s).removeClass("video_player_loading_nz"),e("#"+s).css({width:"auto",height:"auto"})},T=function(){var e=function(e){return!!(e&&e.player&&e.player.id&&e.player.key)};!!n.config("useAlternativePlayerWithHttpsBasedFwAdPlugin")&&n.config("account")!==r.enumerations.account.ninemsn&&n.logger.error("useAlternativePlayerWithHttpsBasedFwAdPlugin is only supported when account is ninemsn");if(n.config("account")!=null){var t={};t[r.enumerations.account.ninemsnCatchup]=function(){i.playerID="2609186924001",i.playerKey="AQ~~,AAABecFwRRk~,e1HkYhZIbpi8Y_jGTqADve72WwmAmY3L"},t[r.enumerations.account.ninemsn]=function(){n.config("useAlternativePlayerWithHttpsBasedFwAdPlugin")?(i.playerID="3929150182001",i.playerKey="AQ~~,AAAAmtNDn-E~,a88FbwlXndjT5_-zEBZhlVuxSBIzg8gq"):(i.playerID="2613830501001",i.playerKey="AQ~~,AAAAmtNDn-E~,a88FbwlXndjkNXs7kVhY8KSUT5PUV5xA")},t[r.enumerations.account.custom]=function(){e(s)===!1&&n.logger.error("custom account does not have playerID and/or playerKey in brightcove config")},t[r.enumerations.account.thirdPartyNZ]=t[r.enumerations.account.ninemsn],t[r.enumerations.account.thirdParty]=t[r.enumerations.account.ninemsn],t[r.enumerations.account.msnNZ]=t[r.enumerations.account.ninemsn],t.hasOwnProperty(n.config("account"))?t[n.config("account")]():n.logger.error("The supplied account is not supported on this adapter",n.config("account"));var s=n.config("brightcove");e(s)===!0&&(i.playerID=s.player.id,i.playerKey=s.player.key)}else n.logger.error("Account has not been set on the adapter")},N=function(){function t(t){e(t).each(function(){e("<img/>")[0].src=this})}t(["//share.9cdn.net/share/long_cache/img/video/age_gate/M.png","//share.9cdn.net/share/long_cache/img/video/age_gate/MA.png","//share.9cdn.net/share/long_cache/img/video/age_gate/PG.png","//share.9cdn.net/share/long_cache/img/video/age_gate/R.png","//share.9cdn.net/share/long_cache/img/video/age_gate/black_bg.gif","//share.9cdn.net/share/long_cache/img/video/age_gate/dialog_bg.png","//share.9cdn.net/share/long_cache/img/video/age_gate/M_bg.jpg","//share.9cdn.net/share/long_cache/img/video/age_gate/PG_bg.jpg"])},C=function(t,i,o){function h(){c&&!!o&&f.play()}function p(){if(l=="MA"||l=="R")if(r.utils.isDate(e("#video_player_ageGate input#day").val()+"/"+e("#video_player_ageGate input#month").val()+"/"+e("#video_player_ageGate input#year").val())){var t=new Date(parseInt(e("#video_player_ageGate input#year").val()),parseInt(e("#video_player_ageGate input#month").val())-1,parseInt(e("#video_player_ageGate input#day").val())),i=new Date,o=b.Age.hasOwnProperty(l)?b.Age[l]:0;i>=new Date(t.getFullYear()+o,t.getMonth(),t.getDate())?(e("#video_player_ageGate").remove(),e("iframe#"+u).css({width:n.config("width")+"px"}),f.play()):(e("#video_player_ageGate span.warning").text("We're sorry, this video is restricted based on the date of birth you entered."),setTimeout(function(){for(var e in r.objects)r.objects[e].config().outputLocation==s&&r.objects[e].trigger(r.enumerations.event.video.playCompleted)},5e3))}else e("#video_player_ageGate span.warning").text("Invalid date input.");else e("#video_player_ageGate").remove(),e("iframe#"+u).css({width:n.config("width")+"px"}),f.pause(!1)}var a="",l=m&&m.rawObject.customFields.classification,c=n.config("autoPlay");if(!l||l!="M"&&l!="MA"&&l!="PG"&&l!="R")h();else{a="<div id='video_player_ageGate' class='rate_"+l.toLowerCase()+"' style='display:none;'>",a+="<span class='rateinfo'><img src='//share.9cdn.net/share/long_cache/img/video/age_gate/"+l+".png'>",a+="</span>",l=="MA"||l=="R"?(a+="<div class='agedialog'>",a+="<span class='ageinfo'>Please verify your date of birth to view this video</span>",a+="<span class='dobinput'><span class='dayinput'><input id='day' type='text' maxlength='2' value='DD'/></span>",a+="<input id='month' type='text' maxlength='2' value='MM'/>",a+="<input id='year' type='text' maxlength='4' value='YYYY'/></span>",a+="</div>",a+="<input id='submit' type='button' value=''></input>"):a+="<span class='audienceinfo'>"+b.AudienceInfo[l].toString()+"</span>",a+="<span class='warning'></span>",a+="</div>",e("#"+s+" #video_player_ageGate").length==0&&(e("#"+s).append(a),e("#video_player_ageGate input[type=text]").click(function(t){e(this).val("")}),e("#video_player_ageGate input[type=text]#day").blur(function(t){e(this).val()==""&&e(this).val("DD")}),e("#video_player_ageGate input[type=text]#month").blur(function(t){e(this).val()==""&&e(this).val("MM")}),e("#video_player_ageGate input[type=text]#year").blur(function(t){e(this).val()==""&&e(this).val("YYYY")}),e("#video_player_ageGate input[type=text]#day").keyup(function(t){e(this).val().length==2&&e("#video_player_ageGate input[type=text]#month").click().focus()}),e("#video_player_ageGate input[type=text]#month").keyup(function(t){e(this).val().length==2&&e("#video_player_ageGate input[type=text]#year").click().focus()}),e("#video_player_ageGate #submit").click(p),e("#video_player_ageGate input[type=text]").keypress(function(e){if(e.keyCode==13)return p(),!1}),e("#video_player_ageGate").css({width:n.config("width")+"px",height:n.config("height")+"px"}));if(l!="M"&&l!="PG"||n.get("TYPE")!=r.enumerations.player.type.Flash){if(l=="MA"||l=="R")e("#video_player_ageGate").show(),e("#video_player_ageGate").length>0&&(setTimeout(function(){f.pause()},500),e("iframe#"+u).css({width:"0px"}))}else n.one("video:playing",function(){e("#video_player_ageGate").show(),e("#video_player_ageGate").length>0&&(setTimeout(function(){f.pause()},500),setTimeout(function(){p()},2500),e("iframe#"+u).css({width:"0px"}))}),h()}},k=function(){n.get("TYPE")==r.enumerations.player.type.Flash&&(e("#"+s+" #video_player_brightcove_loading_img").length==0?e("#"+s).append("<img src='http://catchup.ninemsn.com.au/img/loading.gif' id='video_player_brightcove_loading_img'/>"):e("#video_player_brightcove_loading_img").show(),n.one("ad:playing video:playing player:error",function(){e("#video_player_brightcove_loading_img").hide()}))},L=function(t){var r=e("#"+s+" #video_player_error");if(r.length==0){var i="<div id='video_player_error'>";i+="<span style='line-height: 20px;' class='text'>"+t+"</span>",i+="</div>",e("#"+s).append(i),(!n.config("errorMessageConfig")||n.config("errorMessageConfig").useDefaultOverlaySize!==!0)&&e("#video_player_error").css({width:n.config("width")+"px",height:n.config("height")+"px"})}else r.find(".text").text(t),r.show()},A=function(e){e.errorType!=="noContent"&&e.errorType!=="serviceUnavailable"&&n.get("TYPE")==r.enumerations.player.type.HTML5&&(!n.config("errorMessageConfig")||n.config("errorMessageConfig").hideCanNotBeViewedOnDeviceErrorForHtml5!==!0)&&L("We’re sorry, the video you are looking for cannot be viewed on this device.")},O=function(){var e="We’re sorry, the video you are looking for cannot be played in your location.";n.config("errorMessageConfig")&&n.config("errorMessageConfig").customGeoblockMessage&&(e=n.config("errorMessageConfig").customGeoblockMessage),L(e)},M={},_=function(){var t=n.config("ads")||{};if(t.enabled===!1)return;var s=t.freewheel||{},u=o[r.enumerations.player.adapter.ads.freewheel],a=e.extend({},n.config("tracking"),n.config("networkLocation")),f={fw_server:s.serverUrl||u.getServerUrl(),amLocation:s.adManagerUrl||u.getAdManagerUrl("flash"),networkId:s.networkId||u.getNetworkId(),siteSection:s.siteSection||u.getSiteSection(a.site,a.section),cb_profile:s.playerProfile||u.getPlayerProfile("flash","brightcove"),assetIdField:s.assetIdField||"standardBC_id",fw_keyvalues:s.keyValues,sponsorMsg:!0};s=e.extend(!0,s,t.html5&&t.html5.freewheel);var l=s.html||{};f=e.extend(f,{serverUrl:f.serverUrl,amLocation_js:l.adManagerUrl||u.getAdManagerUrl("html"),siteSectionId:f.siteSection,cb_profile_js:l.playerProfile||u.getPlayerProfile("html","brightcove"),videoAssetCustomId:i["@videoPlayer"],keyvalues:s.keyValues}),window.fw_config=function(){return M},M=e.extend(!0,f,t&&t.freewheel)},D=function(){var t={};if(n.config("data")!=null){var s={};s[r.enumerations.data.method.ID]=function(){return n.config("data.filter.id")},s[r.enumerations.data.method.IDs]=function(){return n.config("data.filter.ids")[0]},s[r.enumerations.data.method.Search]=function(){return n.one(r.enumerations.event.player.loaded,function(){var e=new r.Data(r.$.extend(!0,{success:function(e){B=e.videos[0].id,f.cueVideoByID(B)}},n.config("data")))}),""},s[r.enumerations.data.method.Tags]=function(){return n.one(r.enumerations.event.player.loaded,function(){var e=new r.Data(r.$.extend(!0,{success:function(e){B=e.videos[0].id,f.cueVideoByID(B)}},n.config("data")))}),""},s.hasOwnProperty(n.config("data.method"))?(B=s[n.config("data.method")](),t["@videoPlayer"]=B,n.one(r.enumerations.event.video.loaded,C),n.on(r.enumerations.event.video.error,A)):n.logger.error("Data method not implemented",n.config("data"))}else n.logger.warn("An empty data object was supplied to the player.");t.width=n.config("width"),t.height=n.config("height"),r.utils.isServedViaHttps(window.location.href)&&(t.secureConnections=!0,t.secureHTMLConnections=!0),i=e.extend(!0,i,t),n.logger.debug("Player Configuration",i)},B;if(window.brightcove)j();else{var F=(location.href.split(":")[0]==="https"?"https://s":"http://")+"admin.brightcove.com/js/BrightcoveExperiences.js";r.utils.requireScript(F,j)}},o[r.enumerations.player.adapter.ads.freewheel]=o[r.enumerations.player.adapter.ads.freewheel]||function(){var e={channelnine:{sections:{showthefarmerwantsawife:{}}},homes:{sections:{houseandgarden:{},realliving:{},theblock2012:{}}},jumpin_web:{sections:{jumpin_theblock:{name:"jumpin_web_theblock_general"},jumpin_thevoice:{name:"jumpin_web_thevoice_general"},"jumpin_the-voice":{name:"jumpin_web_thevoice_general"},jumpin_thevoicekids:{name:"jumpin_web_voicekids_general"},jumpin_bigbrother:{name:"jumpin_web_bigbrother_general"},"jumpin_state-of-origin":{name:"jumpin_web_stateoforigin_general"},"jumpin_dr-lisa-to-the-rescue":{name:"jumpin_web_drlisa_general"},"jumpin_adams-pasta-pilgrimage":{name:"jumpin_web_adamspastapilgrimage_general"},"jumpin_the-hotplate":{name:"jumpin_web_thehotplate_general"},"jumpin_week-of-soccer":{name:"ICC_iOSpreroll_workaround"}}},jumpin_web_episodes:{name:"jumpin_web_episodes",sections:{jumpin_theblock:{name:"jumpin_web_theblock_episodes"},jumpin_thevoice:{name:"jumpin_web_thevoice_general"},jumpin_thevoicekids:{name:"jumpin_web_voicekids_episodes"},jumpin_bigbrother:{name:"jumpin_web_bigbrother_general"},"jumpin_dr-lisa-to-the-rescue":{name:"jumpin_web_drlisa_general"},"jumpin_adams-pasta-pilgrimage":{name:"jumpin_web_adamspastapilgrimage_general"},"jumpin_the-hotplate":{name:"jumpin_web_thehotplate_general"},"jumpin_week-of-soccer":{name:"ICC_iOSpreroll_workaround"}}}},t={},n=r.utils.isServedViaHttps()?"https://m.v.fwmrm.net":"http://adm.fwmrm.net";return t.getSiteSection=function(t,n){var r=t+"_general",i=e[t];return i&&(i.name&&(r=i.name),i.sections&&i.sections[n]&&(r=i.sections[n].name||t+"_"+n+"_general")),r},t.getNetworkId=function(){return 375613},t.getPlayerProfile=function(e,t){return e==="flash"?t==="msn"?"MSN_AU_as3_Live":"MSN_AU_BC_Live":t==="msn"?"MSN_AU_HTML5_SmartXML_Live":"MSN_AU_BC_HTML5_Live"},t.getAdManagerUrl=function(e){return e==="html"?n+"/p/msn_au_live/AdManager.js":n+"/p/msn_au_live/AdManager.swf?logLevel=QUIET&cb=1"},t.getServerUrl=function(){return(r.utils.isServedViaHttps()?"https":"http")+"://5bb3d.v.fwmrm.net"},t.getFwBrightcovePluginUrl=function(){return n+"/p/msn_au_live/BrightcovePlugin.js"},t}();var u=u||function(t){function p(){var e=r.enumerations.adType.preroll,t=0;try{t=i.get("POSITION"),t<5?e=r.enumerations.adType.preroll:Math.round(t)==Math.round(i.get("DURATION"))?e=r.enumerations.adType.postroll:e=r.enumerations.adType.midroll}catch(n){}finally{return{adType:e,position:t}}}var i=t,s=!1,o=!0,u=e.extend({},i.config("tracking"),i.config("networkLocation")),a=function(){return{account:i.config("account"),adapter:i.config("adapter"),type:i.get("TYPE")}},f=function(){var e=i.get("META");return{id:e.id+"",referenceId:e.referenceId,mediaUrl:e.id+"",duration:e.duration,title:e.title,category:e.source||"",subcategory:e.season,sourceId:e.sourceId,site:u.site,genre:e.genre,provider:e.provider,hierarchy:u.hierarchy}},l,c=function(t,n,r){setTimeout(function(){var n=i.get("STATUS");e.inArray(n,t)>-1&&r()},n)},h=function(){function u(e,n){s=e,o=n,t=[];for(var r=1;r<100/n;r++)t.push({time:e*n*r/100,percentage:r*n,hasBeenTracked:!1})}function a(){t=[]}function f(u){var a=Math.floor(u*100/(s*o))-1;if(a<0||a>=t.length)return;t[a].hasBeenTracked||(n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.video.progress,progress:t[a].percentage,position:i.get("POSITION")})),t[a].hasBeenTracked=!0)}var t=[],s=0,o=100;return{init:u,reset:a,onPositionUpdate:f}}();i.on(r.enumerations.event.video.loaded,function(){l=e.extend({},f(),a());var t=u.videoEngamentTrackingGranularity||i.config("account")===r.enumerations.account.ninemsnCatchup?10:50;h.init(l.duration,t)}),i.on(r.enumerations.event.video.opening,function(){var t=i.get("META");l.eventType=r.enumerations.event.tracking.video.loaded,t.source=="Live Streaming"&&(l.livestream=!0,l.duration=86400,l.startTime=null,l.endTime=null),n.trigger("video",e.extend({},l,{position:i.get("POSITION")}))}),i.on(r.enumerations.event.video.progress,function(e,t){h.onPositionUpdate(t)}),i.on(r.enumerations.event.video.playing,function(){o=!0,n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.video.play,position:i.get("POSITION")}))}),i.on(r.enumerations.event.video.paused,function(){i.get("POSITION")>2&&n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.video.pause,position:i.get("POSITION")}))}),i.on(r.enumerations.event.video.playCompleted,function(){n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.video.stop,position:i.get("POSITION")})),n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.video.unload,position:i.get("POSITION")})),h.reset()}),i.on(r.enumerations.event.ad.opening,function(){var t=p();o&&c(["ad:playing","ad:paused"],5e3,function(){n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.ad.loaded,referenceId:"pag",title:"ad",position:t.position,site:u.site,ad:{mediaUrl:"ninemsn_ad_media",duration:0,adType:t.adType,creative:"ninemsn AD"}}))})}),i.on(r.enumerations.event.ad.playing,function(){o&&(o=!1,c(["ad:playing","ad:paused"],5e3,function(){n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.ad.play,referenceId:"pag",title:"ad",position:0})),s=!0}))}),i.on(r.enumerations.event.ad.paused,function(){n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.ad.pause,referenceId:"pag",title:"ad",position:0}))}),i.on(r.enumerations.event.ad.playCompleted,function(){if(s){var t=p();n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.ad.stop,referenceId:"pag",title:"ad",position:t.position,ad:{adType:t.adType}})),n.trigger("video",e.extend({},l,{eventType:r.enumerations.event.tracking.ad.unload,referenceId:"pag",title:"ad",position:0})),s=!1,o=!0}})};r.Widget=r.Widget||function(t){var n=this instanceof r.Widget?this:new r.Widget(t),i,s,o;n.on=function(e,t){n.logger.debug("on",{event:e,handler:t}),typeof i.on!="undefined"?i.on(e,t):i.bind(e,t)},n.one=function(e,t){n.logger.debug("one",{event:e,handler:t}),i.one(e,t)},n.off=function(e,t){n.logger.debug("off",{event:e,handler:t}),typeof i.off!="undefined"?i.off(e,t):i.unbind(e,t)},n.trigger=function(e,t){n.logger.log(e,t),i.trigger(e,t)},n.send=function(e,t){n.logger.log("send",{type:e,value:t}),s.send!=null?s.send(e,t):n.logger.warn(n.config("type")+" does not implement 'send'")},n.get=function(e){return n.logger.log("get",e),s.get!=null?s.get(e):(n.logger.warn(n.config("type")+" does not implement 'get'"),null)},n.dispose=function(){n.logger.debug("is being disposed of"),s.dispose!=null&&s.dispose(),i.empty(),delete r.objects[o.outputLocation],i=null,s=null,o=null,n=null},function(){o=e.extend(!0,o,t),n.config=new r.utils.Config(n,o),n.logger=new r.utils.Logger(e.extend(!0,{name:function(){return"ninemsn.portal.common.video.Widget | "+n.config("outputLocation")}()},n.config("logger"))),i=e("#"+n.config("outputLocation")),a.hasOwnProperty(o.type)?s=new a[o.type](n):n.logger.error("'"+o.type+"' is an unknown Widget type"),r.objects[o.outputLocation]=n}()};var a=a||{};return a[r.enumerations.widget.type.list]=a[r.enumerations.widget.type.list]||function(t){var n=t,i=e.extend(!0,{baseURL:"/videos/?videoid=",target:"_self",descriptionLength:35,image:{width:128,height:72,defaultSrc:"http://share.9cdn.net/share/img/videoindex/thumb_default_AU.jpg"}},n.config("list")),s,o,u=function(){var t='<ul class="videoList">\n';for(var r=0;r<s.videos.length;r++){var o=s.videos[r];o.hasOwnProperty("image")?o.image=o.image(i.image.width,i.image.height):o.image=i.image.defaultSrc;var u=i.baseURL+o.id;u+=u.indexOf("?")==-1?"?":"&",u+="src=widget:list",t+='<li id="'+n.config("outputLocation")+"_"+o.id+'">'+'<a href="'+u+"\" title='"+o.title+"' target='"+i.target+"'>"+'<img src="'+o.image+'" style="width: '+i.image.width+"px; height: "+i.image.height+'px" />'+"<p>"+(o.title.length>i.descriptionLength?o.title.substr(0,i.descriptionLength-3)+"...":o.title.substr(0,i.descriptionLength))+"</p>"+"</a>"+"</li>\n"}t+="</ul>\n",e("#"+n.config("outputLocation")).html(t),n.trigger("widget:loaded")};(function(){n.trigger("widget:loading"),n.config("data")instanceof Array?(s=n.config("data"),u()):o=new r.Data(e.extend(!0,{success:function(e){s=e,u()}},n.config("data")))})()},a[r.enumerations.widget.type.leadWithImage]=a[r.enumerations.widget.type.leadWithImage]||function(t){var n=t,i=e.extend(!0,{descriptionLength:220,displayMetaData:!0,displayPlayButton:!0,createPlayerOnLoad:!0,width:640,height:360,strings:{clickToPlay:"Click to Play Video"}},n.config("leadWithImage")),s,o,u,a=function(){s.videos instanceof Array&&(s=s.videos[0]),i.image=i.image||{},i.image.width=i.image.width||i.width,i.image.height=i.image.height||i.height;var t=s.image(i.image.width,i.image.height),o='<div class="video_widget_leadWithImage" style="background-image: url(\''+t+"'); width: "+i.width+"px; height: "+i.height+'px;" title="'+i.strings.clickToPlay+'">\n';i.displayPlayButton&&(o+='<div class="play"></div>\n'),i.displayMetaData&&(o+='<div class="metaBackground"></div>\n<div class="meta">\n<h2>'+s.title+"</h2>\n"+(i.descriptionLength>0?"<p>"+(s.description.length>i.descriptionLength?s.description.substr(0,i.descriptionLength-3)+"...":s.description.substr(0,i.descriptionLength))+"</p>\n":"")+"</div>\n"),o+="</div>\n",e("#"+n.config("outputLocation")).html(o).find("div.video_widget_leadWithImage").click(function(){r.objects[n.config("outputLocation")].send("PLAY")}),u=n.config("player"),i.createPlayerOnLoad&&f(),e("#"+n.config("outputLocation")).show(),n.trigger("widget:loaded")},f=function(){if(u==null||!(u instanceof r.Player)){var t=n.config("outputLocation")+"_player";if(e("#"+t).length==0){var s='<div id="'+t+'"></div>';e(s).insertAfter("#"+n.config("outputLocation"))}u==null&&(u={width:i.width,height:i.height,data:n.config("data")}),u.outputLocation=n.config("outputLocation")+"_player",u.autoPlay=!1,u=new r.Player(u),e("#"+n.config("outputLocation")+"_player").width(0).height(0),n.trigger("player:created",u)}},l=function(){e("#"+n.config("outputLocation")).hide(),e("#"+u.config("outputLocation")).width(u.config("width")).height(u.config("height")),u.get("STATUS")=="video:loaded"?u.send("PLAY"):u.one("video:loaded",function(){u.send("PLAY")})};this.send=function(e,t){var i={PLAY:function(){u instanceof r.Player?l():(n.on("player:created",l),f())}};i.hasOwnProperty(e)&&i[e](t)},this.dispose=function(){u!=null&&u.dispose(),o!=null&&o.dispose()},function(){n.trigger("widget:loading"),n.config("data.videos")!=null&&n.config("data.videos")instanceof Array?(s=n.config("data"),a()):o=new r.Data(e.extend(!0,{success:function(e){s=e,a()}},n.config("data")))}()},a[r.enumerations.widget.type.playlist]=a[r.enumerations.widget.type.playlist]||function(t){var n=t,i=e.extend(!0,{addDefaultVideo:!0,removeDuplicatedVideos:!0,titleLength:35,scrollSpeed:200,animate:{enabled:!0,properties:{opacity:"show"},duration:"slow"},iScroll:{enabled:navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad|android)/)!=null,config:{hScrollbar:!1,vScrollbar:!1,vScroll:!1,momentum:!1}},image:{width:128,height:72,defaultSrc:"http://share.9cdn.net/share/img/videoindex/thumb_default_AU.jpg"},moreVideos:{enabled:!0,link:"/video",target:"_self"},strings:{playing:"Currently Viewing",next:"Up Next",moreVideos:"Continue viewing other video clips from this site",arrowLeft:"Scroll Left",arrowRight:"Scroll Right"}},n.config("playlist")),s,o,u,a,f,l,c=n.config("outputLocation"),h=function(t){e("#"+c+"_playlist li").removeClass("selected"),e("#"+c+"_playlist li span").text("").hide(),e("#"+c+"_playlist_"+t).addClass("selected"),e("#"+c+"_playlist_"+t+" span").text(i.strings.playing).css("display","block");var n=e("#"+c+"_playlist_"+t).next();n=n.length>0?n:e("#"+c+"_playlist li:first"),n=n.find("span"),n.text(i.strings.next).css("display","block");if(u!=null)u.scrollToElement("#"+c+"_playlist_"+t,i.scrollSpeed);else{var r=e("#"+c+"_playlist_"+t).length==1?e("#"+c+"_playlist_"+t).offset().left:0;e("#"+c+"_playlist").animate({scrollLeft:r-e("#"+c+"_playlist ul").offset().left},i.scrollSpeed)}},p=function(e){var t=n.config("player");t.send("STOP"),t.send("LOAD",e),h(e),n.config("player").config("adapter")===r.enumerations.player.adapter.msn&&t.one("video:loaded",function(){t.send("PLAY")})},d=function(){var e=n.config("player").get("META"),t;for(var r=0;r<s.videos.length&&t==null;r++)if(s.videos[r].id==e.id){var o=r+1;o<s.videos.length&&(t=s.videos[o])}i.autoPlayFromStartAfterLastVideo!==!1&&(t||(t=s.videos[0])),t&&p(t.id)},v=function(e){var t=[],n;for(var r=0;r<e.length;r++){n=!1;for(var i=0;i<t.length&&!n;i++)n=e[r].id==t[i].id;n||t.push(e[r])}return t},m=function(){i.removeDuplicatedVideos&&(s.videos=v(s.videos));var t='<div class="video_widget_playlist">\n<div id="leftArrow" class="arrow"></div>\n<div id="'+c+'_playlist" class="playlist">\n'+"<ul>\n";for(var o=0;o<s.videos.length;o++){var p=s.videos[o];p.hasOwnProperty("image")?p.image=p.image(i.image.width,i.image.height):p.image=i.image.defaultSrc,t+='<li id="'+c+"_playlist_"+p.id+'" class="videoListItem">\n'+'<div class="outer">\n'+'<div class="imgWrapper">\n'+'<img src="'+p.image+'" width="'+i.image.width+'" height="'+i.image.height+'" />\n'+"<span></span><a class='custom-icon-play'></a>\n"+"</div>\n"+"<h3>"+p.title+"</h3>\n"+"</div>\n"+"</li>\n"}i.moreVideos.enabled&&(i.moreVideos.link+=i["moreVideos"].link.indexOf("?")==-1?"?":"&",i.moreVideos.link+="src=widget:playlist",t+='<li class="moreVideosListItem">\n<div class="outer moreVideos">\n<a href="'+i.moreVideos.link+'" target="'+i.moreVideos.target+'">'+"<h3>"+i.strings.moreVideos+"</h3>\n"+"</a\n"+"</div>\n"+"</li>\n"),t+='</ul>\n</div>\n<div id="rightArrow" class="arrow"></div>\n</div>\n',i["animate"]!=null&&i.animate.enabled&&!r.utils.isIe8OrLowerVersion(navigator.userAgent)?e("#"+c).html(t).hide().animate(i.animate.properties,i.animate.duration):e("#"+c).html(t),e("#"+c).find("div#rightArrow").click(function(){r.objects[c].send("SCROLL","right")}),e("#"+c).find("div#leftArrow").click(function(){r.objects[c].send("SCROLL","left")}),e("#"+c).find("#"+c+"_playlist li.videoListItem").each(function(t,n){var i=e(n).attr("id");if(i){var s=i.split("_").pop();e(n).click(function(){r.objects[c].send("PLAY",s)})}});var d=e("#"+c+" .arrow").width(),m=e("#"+c+"").width();a=m-d*2-20,e("#"+c+"_playlist").width(a),f=e("#"+c+"_playlist ul:first li:first").outerWidth()+2,l=parseInt(a/f),h(n.config("player").get("META").id),e("#"+c+"_playlist ul:first").width((e("#"+c+"_playlist ul:first li:first").outerWidth()+2)*e("#"+c+"_playlist ul:first li").length),i.iScroll.enabled&&typeof iScroll!="undefined"&&(u=new window.iScroll(c+"_playlist",i.iScroll.config),u.refresh()),n.trigger("widget:loaded")};this.send=function(t,n){var r={PLAY:function(e){p(e)},SCROLL:function(t){u!=null?(t.toLowerCase()=="left"?u.scrollTo(0-l*f,0,i.scrollSpeed,!0):u.scrollTo(l*f,0,i.scrollSpeed,!0),u.refresh()):t.toLowerCase()=="left"?e("#"+c+"_playlist").animate({scrollLeft:function(){return"-="+l*f}()},i.scrollSpeed):e("#"+c+"_playlist").animate({scrollLeft:function(){return"+="+l*f}()},i.scrollSpeed)},REFRESH_SCROLLER:function(){u!=null&&u.refresh()}};r.hasOwnProperty(t)&&r[t](n)},this.dispose=function(){u!=null&&(u.destroy(),u=null)},function(){n.trigger("widget:loading"),n.config("player").on("video:playCompleted",d);if(n.config("data")instanceof Array)s=n.config("data"),i.addDefaultVideo&&s.unshift(n.config("player").get("META")),m();else{var t=undefined;try{t=n.config("player").get("TYPE")!=r.enumerations.player.type.HTML5?80:800}catch(u){n.logger.warn("error "+u)}o=new r.Data(e.extend(!0,{adapter:n.config("player")&&n.config("player").config("adapter"),success:function(e){i.addDefaultVideo&&n.config("player").get("META")&&e.videos.unshift(n.config("player").get("META")),s=e,m()},paging:{size:20},msn:{fileFilter:t}},n.config("data")))}}()},a[r.enumerations.widget.type.suggestedVideos]=a[r.enumerations.widget.type.suggestedVideos]||function(t){var n=t,i=e.extend(!0,{playVideo:{baseUrl:"/video/?videoid=",target:"_self"},moreVideos:{enabled:!0,link:"/video/",target:"_self"},strings:{widgetTitle:"Videos You May Like",moreVideos:"+ More Video",playVideo:"Play Video"},commonWordFilter:["the","be","to","of","and","a","in","that","have","i","it","for","not","on","with","he","as","you","do","at","this","but","his","by","from","they","we","say","her","she","or","an","will","my","one","all","would","there","their","what","so","up","out","if","about","who","get","which","go","me","when","make","can","like","time","no","just","him","know","take","person","into","year","your","good","some","could","them","see","other","than","then","now","look","only","come","its","over","think","also","back","after","use","two","how","our","work","first","well","way","even","new","want","because","any","these","give","day","most","us","is","didnt","dont","off","where","not","was","ninemsn"],descriptionLength:50,image:{width:128,height:72,defaultSrc:"http://share.9cdn.net/share/img/videoindex/thumb_default_AU.jpg"}},n.config("suggestedVideos")),s=i.commonWordFilter,o,u,a=function(){var t='<div class="video_widget_suggestedVideos">';t+="<hr />",t+="<h2>"+i.strings.widgetTitle+"</h2>",i.moreVideos.enabled&&(i.moreVideos.link+=i.moreVideos.link.indexOf("?")===-1?"?":"&",i.moreVideos.link+="src=widget:suggestedVideos",t+='<span id="moreVideos"><a class="more_link" href="'+i.moreVideos.link+'" target="'+i.moreVideos.target+'">'+i.strings.moreVideos+"</a></span>"),t+="<ul>\n";var r;for(r=0;r<o.videos.length;r+=1){var s=o.videos[r];s.hasOwnProperty("image")?s.image=s.image(i.image.width,i.image.height):s.image=i.image.defaultSrc;var u=i.playVideo.baseUrl+s.id;u+=u.indexOf("?")===-1?"?":"&",u+="src=widget:suggestedVideos",t+='<li id="'+n.config("outputLocation")+"_"+s.id+'">'+'<div class="imageItem">'+'<a href="'+u+'" title="'+s.title+"\" target='"+i.playVideo.target+"'>"+'<img src="'+s.image+'" />'+"</a>"+'<div class="overlay"><a href="'+u+"\" target='"+i.playVideo.target+"'>"+i.strings.playVideo+"</a></div>"+"</div>"+'<a href="'+u+'" class="videoText" target=\''+i.playVideo.target+"'>"+(s.title.length>i.descriptionLength?s.title.substr(0,i.descriptionLength-3)+"...":s.title.substr(0,i.descriptionLength))+"</a>"+"</li>\n"}t+="</ul>\n",t+="<hr /></div>",e("#"+n.config("outputLocation")).html(t),n.trigger("widget:loaded")},f=function(e,t){var n=!1,r;for(r=0;r<e.length;r+=1)e[r]===t&&(n=!0);return n},l=function(e,t){var n=[],r,i;for(r=0;r<t.length;r+=1)n.push(t[r]);for(i=0;i<e.length;i+=1)f(n,e[i])||n.push(e[i]);return n},c=function(e,t,n){n=typeof n=="undefined"?!0:n;var r=[],i;for(i=0;i<e.length;i+=1)f(t,e[i])&&r.push(e[i]);return r.length<2&&n&&(r=l(e,t)),r},h=function(e,t){t=t.replace(/[,|.|;|!|:|'|-|\$]/g," ");var n=t.split(" "),r;for(r=0;r<n.length;r+=1)n[r].length>0&&!f(e,n[r])&&n[r].length>1&&e.push(n[r].toLowerCase());return e.length>0&&d(e,s),e},p=function(){var t=[],n=[],r=[],i=[],s,o,u,a,f="",p,v,m,g="",y,b;for(y=1;y<=10;y+=1)if(typeof window["JS_TAGGING_TAGS_"+y]!="undefined"){p=window["JS_TAGGING_TAGS_"+y].split("~");for(b=0;b<p.length;b+=1)v=p[b].split("|"),typeof v[1]!="undefined"&&(f+=v[1]+" ")}t=h(t,f),n=h(n,e("title").html()),m=document.getElementsByTagName("meta");var w;for(w=0;w<m.length;w+=1)switch(m[w].name){case"keywords":r=h(r,m[w].content);break;case"description":i=h(i,m[w].content)}s=c(n,r,t.length===0),o=c(n,i,!1),u=c(r,i,!1),a=l(l(l(s,o),l(s,u)),t);for(w=a.length-1;w>=0;w--){var E=a[w];a.length>2&&E.length<3&&d(a,E)}var S;for(S=0;S<a.length;S+=1)g+=g===""?a[S]:" "+a[S];return g.length>100&&(g=g.substring(0,g.substring(0,99).lastIndexOf(" "))),g},d=function(e,t){/Array/.test(t.constructor)||(t=[t]);var n,r;for(r=0;r<t.length;r+=1){n=0;while(n<e.length)e[n]===t[r]?e.splice(n,1):n+=1}};(function(){n.trigger("widget:loading");var t={success:function(e){o=e,a()},method:r.enumerations.data.method.Search,filter:{term:p().split(" "),operator:r.enumerations.data.searchOperator.Any}},i=n.config("player")&&n.config("player").config("adapter");i&&(t.adapter=i),u=new r.Data(e.extend(!0,t,n.config("data")))})()},function(){var e=Math,t=function(e){return e>>0},n=/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"Moz":"opera"in window?"O":"",r=/android/gi.test(navigator.appVersion),i=/iphone|ipad/gi.test(navigator.appVersion),s=/playbook/gi.test(navigator.appVersion),o=/hp-tablet/gi.test(navigator.appVersion),u="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix,a="ontouchstart"in window&&!o,f=n+"Transform"in document.documentElement.style,l=i||s,c=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,1)}}(),h=function(){return window.cancelRequestAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),p="onorientationchange"in window?"orientationchange":"resize",d=a?"touchstart":"mousedown",v=a?"touchmove":"mousemove",m=a?"touchend":"mouseup",g=a?"touchcancel":"mouseup",y=n=="Moz"?"DOMMouseScroll":"mousewheel",b="translate"+(u?"3d(":"("),w=u?",0)":")",E=function(e,t){var s=this,o=document,c;s.wrapper=typeof e=="object"?e:o.getElementById(e),s.wrapper.style.overflow="hidden",s.scroller=s.wrapper.children[0],s.options={hScroll:!0,vScroll:!0,x:0,y:0,bounce:!0,bounceLock:!1,momentum:!0,lockDirection:!0,useTransform:!0,useTransition:!1,topOffset:0,checkDOMChanges:!1,hScrollbar:!0,vScrollbar:!0,fixedScrollbar:r,hideScrollbar:i,fadeScrollbar:i&&u,scrollbarClass:"",zoom:!1,zoomMin:1,zoomMax:4,doubleTapZoom:2,wheelAction:"scroll",snap:!1,snapThreshold:1,onRefresh:null,onBeforeScrollStart:function(e){e.preventDefault()},onScrollStart:null,onBeforeScrollMove:null,onScrollMove:null,onBeforeScrollEnd:null,onScrollEnd:null,onTouchEnd:null,onDestroy:null,onZoomStart:null,onZoom:null,onZoomEnd:null},s.zoom&&r&&(b="translate(",w=")");for(c in t)s.options[c]=t[c];s.x=s.options.x,s.y=s.options.y,s.options.useTransform=f?s.options.useTransform:!1,s.options.hScrollbar=s.options.hScroll&&s.options.hScrollbar,s.options.vScrollbar=s.options.vScroll&&s.options.vScrollbar,s.options.zoom=s.options.useTransform&&s.options.zoom,s.options.useTransition=l&&s.options.useTransition,s.scroller.style[n+"TransitionProperty"]=s.options.useTransform?"-"+n.toLowerCase()+"-transform":"top left",s.scroller.style[n+"TransitionDuration"]="0",s.scroller.style[n+"TransformOrigin"]="0 0",s.options.useTransition&&(s.scroller.style[n+"TransitionTimingFunction"]="cubic-bezier(0.33,0.66,0.66,1)"),s.options.useTransform?s.scroller.style[n+"Transform"]=b+s.x+"px,"+s.y+"px"+w:s.scroller.style.cssText+=";position:absolute;top:"+s.y+"px;left:"+s.x+"px",s.options.useTransition&&(s.options.fixedScrollbar=!0),s.refresh(),s._bind(p,window),s._bind(d),a||(s._bind("mouseout",s.wrapper),s.options.wheelAction!="none"&&s._bind(y)),s.options.checkDOMChanges&&(s.checkDOMTime=setInterval(function(){s._checkDOMChanges()},500))};E.prototype={enabled:!0,x:0,y:0,steps:[],scale:1,currPageX:0,currPageY:0,pagesX:[],pagesY:[],aniTime:null,wheelZoomCount:0,handleEvent:function(e){var t=this;switch(e.type){case d:if(!a&&e.button!==0)return;t._start(e);break;case v:t._move(e);break;case m:case g:t._end(e);break;case p:t._resize();break;case y:t._wheel(e);break;case"mouseout":t._mouseout(e);break;case"webkitTransitionEnd":t._transitionEnd(e)}},_checkDOMChanges:function(){if(this.moved||this.zoomed||this.animating||this.scrollerW==this.scroller.offsetWidth*this.scale&&this.scrollerH==this.scroller.offsetHeight*this.scale)return;this.refresh()},_scrollbar:function(r){var i=this,s=document,o;if(!i[r+"Scrollbar"]){i[r+"ScrollbarWrapper"]&&(f&&(i[r+"ScrollbarIndicator"].style[n+"Transform"]=""),i[r+"ScrollbarWrapper"].parentNode.removeChild(i[r+"ScrollbarWrapper"]),i[r+"ScrollbarWrapper"]=null,i[r+"ScrollbarIndicator"]=null);return}i[r+"ScrollbarWrapper"]||(o=s.createElement("div"),i.options.scrollbarClass?o.className=i.options.scrollbarClass+r.toUpperCase():o.style.cssText="position:absolute;z-index:100;"+(r=="h"?"height:7px;bottom:1px;left:2px;right:"+(i.vScrollbar?"7":"2")+"px":"width:7px;bottom:"+(i.hScrollbar?"7":"2")+"px;top:2px;right:1px"),o.style.cssText+=";pointer-events:none;-"+n+"-transition-property:opacity;-"+n+"-transition-duration:"+(i.options.fadeScrollbar?"350ms":"0")+";overflow:hidden;opacity:"+(i.options.hideScrollbar?"0":"1"),i.wrapper.appendChild(o),i[r+"ScrollbarWrapper"]=o,o=s.createElement("div"),i.options.scrollbarClass||(o.style.cssText="position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);-"+n+"-background-clip:padding-box;-"+n+"-box-sizing:border-box;"+(r=="h"?"height:100%":"width:100%")+";-"+n+"-border-radius:3px;border-radius:3px"),o.style.cssText+=";pointer-events:none;-"+n+"-transition-property:-"+n+"-transform;-"+n+"-transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);-"+n+"-transition-duration:0;-"+n+"-transform:"+b+"0,0"+w,i.options.useTransition&&(o.style.cssText+=";-"+n+"-transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)"),i[r+"ScrollbarWrapper"].appendChild(o),i[r+"ScrollbarIndicator"]=o),r=="h"?(i.hScrollbarSize=i.hScrollbarWrapper.clientWidth,i.hScrollbarIndicatorSize=e.max(t(i.hScrollbarSize*i.hScrollbarSize/i.scrollerW),8),i.hScrollbarIndicator.style.width=i.hScrollbarIndicatorSize+"px",i.hScrollbarMaxScroll=i.hScrollbarSize-i.hScrollbarIndicatorSize,i.hScrollbarProp=i.hScrollbarMaxScroll/i.maxScrollX):(i.vScrollbarSize=i.vScrollbarWrapper.clientHeight,i.vScrollbarIndicatorSize=e.max(t(i.vScrollbarSize*i.vScrollbarSize/i.scrollerH),8),i.vScrollbarIndicator.style.height=i.vScrollbarIndicatorSize+"px",i.vScrollbarMaxScroll=i.vScrollbarSize-i.vScrollbarIndicatorSize,i.vScrollbarProp=i.vScrollbarMaxScroll/i.maxScrollY),i._scrollbarPos(r,!0)},_resize:function(){var e=this;setTimeout(function(){e.refresh()},r?200:0)},_pos:function(e,r){e=this.hScroll?e:0,r=this.vScroll?r:0,this.options.useTransform?this.scroller.style[n+"Transform"]=b+e+"px,"+r+"px"+w+" scale("+this.scale+")":(e=t(e),r=t(r),this.scroller.style.left=e+"px",this.scroller.style.top=r+"px"),this.x=e,this.y=r,this._scrollbarPos("h"),this._scrollbarPos("v")},_scrollbarPos:function(e,r){var i=this,s=e=="h"?i.x:i.y,o;if(!i[e+"Scrollbar"])return;s=i[e+"ScrollbarProp"]*s,s<0?(i.options.fixedScrollbar||(o=i[e+"ScrollbarIndicatorSize"]+t(s*3),o<8&&(o=8),i[e+"ScrollbarIndicator"].style[e=="h"?"width":"height"]=o+"px"),s=0):s>i[e+"ScrollbarMaxScroll"]&&(i.options.fixedScrollbar?s=i[e+"ScrollbarMaxScroll"]:(o=i[e+"ScrollbarIndicatorSize"]-t((s-i[e+"ScrollbarMaxScroll"])*3),o<8&&(o=8),i[e+"ScrollbarIndicator"].style[e=="h"?"width":"height"]=o+"px",s=i[e+"ScrollbarMaxScroll"]+(i[e+"ScrollbarIndicatorSize"]-o))),i[e+"ScrollbarWrapper"].style[n+"TransitionDelay"]="0",i[e+"ScrollbarWrapper"].style.opacity=r&&i.options.hideScrollbar?"0":"1",i[e+"ScrollbarIndicator"].style[n+"Transform"]=b+(e=="h"?s+"px,0":"0,"+s+"px")+w},_start:function(t){var r=this,i=a?t.touches[0]:t,s,o,u,f,l;if(!r.enabled)return;r.options.onBeforeScrollStart&&r.options.onBeforeScrollStart.call(r,t),(r.options.useTransition||r.options.zoom)&&r._transitionTime(0),r.moved=!1,r.animating=!1,r.zoomed=!1,r.distX=0,r.distY=0,r.absDistX=0,r.absDistY=0,r.dirX=0,r.dirY=0,r.options.zoom&&a&&t.touches.length>1&&(f=e.abs(t.touches[0].pageX-t.touches[1].pageX),l=e.abs(t.touches[0].pageY-t.touches[1].pageY),r.touchesDistStart=e.sqrt(f*f+l*l),r.originX=e.abs(t.touches[0].pageX+t.touches[1].pageX-r.wrapperOffsetLeft*2)/2-r.x,r.originY=e.abs(t.touches[0].pageY+t.touches[1].pageY-r.wrapperOffsetTop*2)/2-r.y,r.options.onZoomStart&&r.options.onZoomStart.call(r,t));if(r.options.momentum){r.options.useTransform?(s=getComputedStyle(r.scroller,null)[n+"Transform"].replace(/[^0-9-.,]/g,"").split(","),o=s[4]*1,u=s[5]*1):(o=getComputedStyle(r.scroller,null).left.replace(/[^0-9-]/g,"")*1,u=getComputedStyle(r.scroller,null).top.replace(/[^0-9-]/g,"")*1);if(o!=r.x||u!=r.y)r.options.useTransition?r._unbind("webkitTransitionEnd"):h(r.aniTime),r.steps=[],r._pos(o,u)}r.absStartX=r.x,r.absStartY=r.y,r.startX=r.x,r.startY=r.y,r.pointX=i.pageX,r.pointY=i.pageY,r.startTime=t.timeStamp||Date.now(),r.options.onScrollStart&&r.options.onScrollStart.call(r,t),r._bind(v),r._bind(m),r._bind(g)},_move:function(t){var r=this,i=a?t.touches[0]:t,s=i.pageX-r.pointX,o=i.pageY-r.pointY,u=r.x+s,f=r.y+o,l,c,h,p=t.timeStamp||Date.now();r.options.onBeforeScrollMove&&r.options.onBeforeScrollMove.call(r,t);if(r.options.zoom&&a&&t.touches.length>1){l=e.abs(t.touches[0].pageX-t.touches[1].pageX),c=e.abs(t.touches[0].pageY-t.touches[1].pageY),r.touchesDist=e.sqrt(l*l+c*c),r.zoomed=!0,h=1/r.touchesDistStart*r.touchesDist*this.scale,h<r.options.zoomMin?h=.5*r.options.zoomMin*Math.pow(2,h/r.options.zoomMin):h>r.options.zoomMax&&(h=2*r.options.zoomMax*Math.pow(.5,r.options.zoomMax/h)),r.lastScale=h/this.scale,u=this.originX-this.originX*r.lastScale+this.x,f=this.originY-this.originY*r.lastScale+this.y,this.scroller.style[n+"Transform"]=b+u+"px,"+f+"px"+w+" scale("+h+")",r.options.onZoom&&r.options.onZoom.call(r,t);return}r.pointX=i.pageX,r.pointY=i.pageY;if(u>0||u<r.maxScrollX)u=r.options.bounce?r.x+s/2:u>=0||r.maxScrollX>=0?0:r.maxScrollX;if(f>r.minScrollY||f<r.maxScrollY)f=r.options.bounce?r.y+o/2:f>=r.minScrollY||r.maxScrollY>=0?r.minScrollY:r.maxScrollY;if(r.absDistX<6&&r.absDistY<6){r.distX+=s,r.distY+=o,r.absDistX=e.abs(r.distX),r.absDistY=e.abs(r.distY);return}r.options.lockDirection&&(r.absDistX>r.absDistY+5?(f=r.y,o=0):r.absDistY>r.absDistX+5&&(u=r.x,s=0)),r.moved=!0,r._pos(u,f),r.dirX=s>0?-1:s<0?1:0,r.dirY=o>0?-1:o<0?1:0,p-r.startTime>300&&(r.startTime=p,r.startX=r.x,r.startY=r.y),r.options.onScrollMove&&r.options.onScrollMove.call(r,t)},_end:function(r){if(a&&r.touches.length!=0)return;var i=this,s=a?r.changedTouches[0]:r,o,u,f={dist:0,time:0},l={dist:0,time:0},c=(r.timeStamp||Date.now())-i.startTime,h=i.x,p=i.y,d,y,E,S,x;i._unbind(v),i._unbind(m),i._unbind(g),i.options.onBeforeScrollEnd&&i.options.onBeforeScrollEnd.call(i,r);if(i.zoomed){x=i.scale*i.lastScale,x=Math.max(i.options.zoomMin,x),x=Math.min(i.options.zoomMax,x),i.lastScale=x/i.scale,i.scale=x,i.x=i.originX-i.originX*i.lastScale+i.x,i.y=i.originY-i.originY*i.lastScale+i.y,i.scroller.style[n+"TransitionDuration"]="200ms",i.scroller.style[n+"Transform"]=b+i.x+"px,"+i.y+"px"+w+" scale("+i.scale+")",i.zoomed=!1,i.refresh(),i.options.onZoomEnd&&i.options.onZoomEnd.call(i,r);return}if(!i.moved){a&&(i.doubleTapTimer&&i.options.zoom?(clearTimeout(i.doubleTapTimer),i.doubleTapTimer=null,i.options.onZoomStart&&i.options.onZoomStart.call(i,r),i.zoom(i.pointX,i.pointY,i.scale==1?i.options.doubleTapZoom:1),i.options.onZoomEnd&&setTimeout(function(){i.options.onZoomEnd.call(i,r)},200)):i.doubleTapTimer=setTimeout(function(){i.doubleTapTimer=null,o=s.target;while(o.nodeType!=1)o=o.parentNode;o.tagName!="SELECT"&&o.tagName!="INPUT"&&o.tagName!="TEXTAREA"&&(u=document.createEvent("MouseEvents"),u.initMouseEvent("click",!0,!0,r.view,1,s.screenX,s.screenY,s.clientX,s.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,0,null),u._fake=!0,o.dispatchEvent(u))},i.options.zoom?250:0)),i._resetPos(200),i.options.onTouchEnd&&i.options.onTouchEnd.call(i,r);return}if(c<300&&i.options.momentum){f=h?i._momentum(h-i.startX,c,-i.x,i.scrollerW-i.wrapperW+i.x,i.options.bounce?i.wrapperW:0):f,l=p?i._momentum(p-i.startY,c,-i.y,i.maxScrollY<0?i.scrollerH-i.wrapperH+i.y-i.minScrollY:0,i.options.bounce?i.wrapperH:0):l,h=i.x+f.dist,p=i.y+l.dist;if(i.x>0&&h>0||i.x<i.maxScrollX&&h<i.maxScrollX)f={dist:0,time:0};if(i.y>i.minScrollY&&p>i.minScrollY||i.y<i.maxScrollY&&p<i.maxScrollY)l={dist:0,time:0}}if(f.dist||l.dist){E=e.max(e.max(f.time,l.time),10),i.options.snap&&(d=h-i.absStartX,y=p-i.absStartY,e.abs(d)<i.options.snapThreshold&&e.abs(y)<i.options.snapThreshold?i.scrollTo(i.absStartX,i.absStartY,200):(S=i._snap(h,p),h=S.x,p=S.y,E=e.max(S.time,E))),i.scrollTo(t(h),t(p),E),i.options.onTouchEnd&&i.options.onTouchEnd.call(i,r);return}if(i.options.snap){d=h-i.absStartX,y=p-i.absStartY,e.abs(d)<i.options.snapThreshold&&e.abs(y)<i.options.snapThreshold?i.scrollTo(i.absStartX,i.absStartY,200):(S=i._snap(i.x,i.y),(S.x!=i.x||S.y!=i.y)&&i.scrollTo(S.x,S.y,S.time)),i.options.onTouchEnd&&i.options.onTouchEnd.call(i,r);return}i._resetPos(200),i.options.onTouchEnd&&i.options.onTouchEnd.call(i,r)},_resetPos:function(e){var t=this,r=t.x>=0?0:t.x<t.maxScrollX?t.maxScrollX:t.x,i=t.y>=t.minScrollY||t.maxScrollY>0?t.minScrollY:t.y<t.maxScrollY?t.maxScrollY:t.y;if(r==t.x&&i==t.y){t.moved&&(t.moved=!1,t.options.onScrollEnd&&t.options.onScrollEnd.call(t)),t.hScrollbar&&t.options.hideScrollbar&&(n=="webkit"&&(t.hScrollbarWrapper.style[n+"TransitionDelay"]="300ms"),t.hScrollbarWrapper.style.opacity="0"),t.vScrollbar&&t.options.hideScrollbar&&(n=="webkit"&&(t.vScrollbarWrapper.style[n+"TransitionDelay"]="300ms"),t.vScrollbarWrapper.style.opacity="0");return}t.scrollTo(r,i,e||0)},_wheel:function(e){var t=this,n,r,i,s,o;"wheelDeltaX"in e?(n=e.wheelDeltaX/12,r=e.wheelDeltaY/12):"detail"in e?n=r=-e.detail*3:n=r=-e.wheelDelta;if(t.options.wheelAction=="zoom"){o=t.scale*Math.pow(2,1/3*(r?r/Math.abs(r):0)),o<t.options.zoomMin&&(o=t.options.zoomMin),o>t.options.zoomMax&&(o=t.options.zoomMax),o!=t.scale&&(!t.wheelZoomCount&&t.options.onZoomStart&&t.options.onZoomStart.call(t,e),t.wheelZoomCount++,t.zoom(e.pageX,e.pageY,o,400),setTimeout(function(){t.wheelZoomCount--,!t.wheelZoomCount&&t.options.onZoomEnd&&t.options.onZoomEnd.call(t,e)},400));return}i=t.x+n,s=t.y+r,i>0?i=0:i<t.maxScrollX&&(i=t.maxScrollX),s>t.minScrollY?s=t.minScrollY:s<t.maxScrollY&&(s=t.maxScrollY),t.scrollTo(i,s,0)},_mouseout:function(e){var t=e.relatedTarget;if(!t){this._end(e);return}while(t=t.parentNode)if(t==this.wrapper)return;this._end(e)},_transitionEnd:function(e){var t=this;if(e.target!=t.scroller)return;t._unbind("webkitTransitionEnd"),t._startAni()},_startAni:function(){var t=this,n=t.x,r=t.y,i=Date.now(),s,o,u;if(t.animating)return;if(!t.steps.length){t._resetPos(400);return}s=t.steps.shift(),s.x==n&&s.y==r&&(s.time=0),t.animating=!0,t.moved=!0;if(t.options.useTransition){t._transitionTime(s.time),t._pos(s.x,s.y),t.animating=!1,s.time?t._bind("webkitTransitionEnd"):t._resetPos(0);return}u=function(){var a=Date.now(),f,l;if(a>=i+s.time){t._pos(s.x,s.y),t.animating=!1,t.options.onAnimationEnd&&t.options.onAnimationEnd.call(t),t._startAni();return}a=(a-i)/s.time-1,o=e.sqrt(1-a*a),f=(s.x-n)*o+n,l=(s.y-r)*o+r,t._pos(f,l),t.animating&&(t.aniTime=c(u))},u()},_transitionTime:function(e){e+="ms",this.scroller.style[n+"TransitionDuration"]=e,this.hScrollbar&&(this.hScrollbarIndicator.style[n+"TransitionDuration"]=e),this.vScrollbar&&(this.vScrollbarIndicator.style[n+"TransitionDuration"]=e)},_momentum:function(n,r,i,s,o){var u=6e-4,a=e.abs(n)/r,f=a*a/(2*u),l=0,c=0;return n>0&&f>i?(c=o/(6/(f/a*u)),i+=c,a=a*i/f,f=i):n<0&&f>s&&(c=o/(6/(f/a*u)),s+=c,a=a*s/f,f=s),f*=n<0?-1:1,l=a/u,{dist:f,time:t(l)}},_offset:function(e){var t=-e.offsetLeft,n=-e.offsetTop;while(e=e.offsetParent)t-=e.offsetLeft,n-=e.offsetTop;return e!=this.wrapper&&(t*=this.scale,n*=this.scale),{left:t,top:n}},_snap:function(n,r){var i=this,s,o,u,a,f,l;u=i.pagesX.length-1;for(s=0,o=i.pagesX.length;s<o;s++)if(n>=i.pagesX[s]){u=s;break}u==i.currPageX&&u>0&&i.dirX<0&&u--,n=i.pagesX[u],f=e.abs(n-i.pagesX[i.currPageX]),f=f?e.abs(i.x-n)/f*500:0,i.currPageX=u,u=i.pagesY.length-1;for(s=0;s<u;s++)if(r>=i.pagesY[s]){u=s;break}return u==i.currPageY&&u>0&&i.dirY<0&&u--,r=i.pagesY[u],l=e.abs(r-i.pagesY[i.currPageY]),l=l?e.abs(i.y-r)/l*500:0,i.currPageY=u,a=t(e.max(f,l))||200,{x:n,y:r,time:a}},_bind:function(e,t,n){(t||this.scroller).addEventListener(e,this,!!n)},_unbind:function(e,t,n){(t||this.scroller).removeEventListener(e,this,!!n)},destroy:function(){var e=this;e.scroller.style[n+"Transform"]="",e.hScrollbar=!1,e.vScrollbar=!1,e._scrollbar("h"),e._scrollbar("v"),e._unbind(p,window),e._unbind(d),e._unbind(v),e._unbind(m),e._unbind(g),e.options.hasTouch&&(e._unbind("mouseout",e.wrapper),e._unbind(y)),e.options.useTransition&&e._unbind("webkitTransitionEnd"),e.options.checkDOMChanges&&clearInterval(e.checkDOMTime),e.options.onDestroy&&e.options.onDestroy.call(e)},refresh:function(){var e=this,r,i,s,o,u=0,a=0;e.scale<e.options.zoomMin&&(e.scale=e.options.zoomMin),e.wrapperW=e.wrapper.clientWidth||1,e.wrapperH=e.wrapper.clientHeight||1,e.minScrollY=-e.options.topOffset||0,e.scrollerW=t(e.scroller.offsetWidth*e.scale),e.scrollerH=t((e.scroller.offsetHeight+e.minScrollY)*e.scale),e.maxScrollX=e.wrapperW-e.scrollerW,e.maxScrollY=e.wrapperH-e.scrollerH+e.minScrollY,e.dirX=0,e.dirY=0,e.options.onRefresh&&e.options.onRefresh.call(e),e.hScroll=e.options.hScroll&&e.maxScrollX<0,e.vScroll=e.options.vScroll&&(!e.options.bounceLock&&!e.hScroll||e.scrollerH>e.wrapperH),e.hScrollbar=e.hScroll&&e.options.hScrollbar,e.vScrollbar=e.vScroll&&e.options.vScrollbar&&e.scrollerH>e.wrapperH,r=e._offset(e.wrapper),e.wrapperOffsetLeft=-r.left,e.wrapperOffsetTop=-r.top;if(typeof e.options.snap=="string"){e.pagesX=[],e.pagesY=[],o=e.scroller.querySelectorAll(e.options.snap);for(i=0,s=o.length;i<s;i++)u=e._offset(o[i]),u.left+=e.wrapperOffsetLeft,u.top+=e.wrapperOffsetTop,e.pagesX[i]=u.left<e.maxScrollX?e.maxScrollX:u.left*e.scale,e.pagesY[i]=u.top<e.maxScrollY?e.maxScrollY:u.top*e.scale}else if(e.options.snap){e.pagesX=[];while(u>=e.maxScrollX)e.pagesX[a]=u,u-=e.wrapperW,a++;e.maxScrollX%e.wrapperW&&(e.pagesX[e.pagesX.length]=e.maxScrollX-e.pagesX[e.pagesX.length-1]+e.pagesX[e.pagesX.length-1]),u=0,a=0,e.pagesY=[];while(u>=e.maxScrollY)e.pagesY[a]=u,u-=e.wrapperH,a++;e.maxScrollY%e.wrapperH&&(e.pagesY[e.pagesY.length]=e.maxScrollY-e.pagesY[e.pagesY.length-1]+e.pagesY[e.pagesY.length-1])}e._scrollbar("h"),e._scrollbar("v"),e.zoomed||(e.scroller.style[n+"TransitionDuration"]="0",e._resetPos(200))},scrollTo:function(e,t,n,r){var i=this,s=e,o,u;i.stop(),s.length||(s=[{x:e,y:t,time:n,relative:r}]);for(o=0,u=s.length;o<u;o++)s[o].relative&&(s[o].x=i.x-s[o].x,s[o].y=i.y-s[o].y),i.steps.push({x:s[o].x,y:s[o].y,time:s[o].time||0});i._startAni()},scrollToElement:function(t,n){var r=this,i;t=t.nodeType?t:r.scroller.querySelector(t);if(!t)return;i=r._offset(t),i.left+=r.wrapperOffsetLeft,i.top+=r.wrapperOffsetTop,i.left=i.left>0?0:i.left<r.maxScrollX?r.maxScrollX:i.left,i.top=i.top>r.minScrollY?r.minScrollY:i.top<r.maxScrollY?r.maxScrollY:i.top,n=n===undefined?e.max(e.abs(i.left)*2,e.abs(i.top)*2):n,r.scrollTo(i.left,i.top,n)},scrollToPage:function(e,t,n){var r=this,i,s;r.options.onScrollStart&&r.options.onScrollStart.call(r),r.options.snap?(e=e=="next"?r.currPageX+1:e=="prev"?r.currPageX-1:e,t=t=="next"?r.currPageY+1:t=="prev"?r.currPageY-1:t,e=e<0?0:e>r.pagesX.length-1?r.pagesX.length-1:e,t=t<0?0:t>r.pagesY.length-1?r.pagesY.length-1:t,r.currPageX=e,r.currPageY=t,i=r.pagesX[e],s=r.pagesY[t]):(i=-r.wrapperW*e,s=-r.wrapperH*t,i<r.maxScrollX&&(i=r.maxScrollX),s<r.maxScrollY&&(s=r.maxScrollY)),r.scrollTo(i,s,n||400)},disable:function(){this.stop(),this._resetPos(0),this.enabled=!1,this._unbind(v),this._unbind(m),this._unbind(g)},enable:function(){this.enabled=!0},stop:function(){this.options.useTransition?this._unbind("webkitTransitionEnd"):h(this.aniTime),this.steps=[],this.moved=!1,this.animating=!1},zoom:function(e,t,r,i){var s=this,o=r/s.scale;if(!s.options.useTransform)return;s.zoomed=!0,i=i===undefined?200:i,e=e-s.wrapperOffsetLeft-s.x,t=t-s.wrapperOffsetTop-s.y,s.x=e-e*o+s.x,s.y=t-t*o+s.y,s.scale=r,s.refresh(),s.x=s.x>0?0:s.x<s.maxScrollX?s.maxScrollX:s.x,s.y=s.y>s.minScrollY?s.minScrollY:s.y<s.maxScrollY?s.maxScrollY:s.y,s.scroller.style[n+"TransitionDuration"]=i+"ms",s.scroller.style[n+"Transform"]=b+s.x+"px,"+s.y+"px"+w+" scale("+r+")",s.zoomed=!1},isReady:function(){return!this.moved&&!this.zoomed&&!this.animating}},typeof exports!="undefined"?exports.iScroll=E:window.iScroll=E}(),r}),define("ninemsn/portal/common/tracking/omniture/api",[],function(){function n(e){e.getPreviousValue=new Function("v","c","el","var s=this,t=new Date,i,j,r='';t.setTime(t.getTime()+1800000);if(el){if(s.events){i=s.split(el,',');j=s.split(s.events,',');for(x in i){for(y in j){if(i[x]==j[y]){if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t):s.c_w(c,'no value',t);return r}}}}}else{if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t):s.c_w(c,'no value',t);return r}"),e.split=new Function("l","d","var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x++]=l.substring(0,i);l=l.substring(i+d.length);}return a"),e.getPercentPageViewed=new Function("n","var s=this,W=window,EL=W.addEventListener,AE=W.attachEvent,E=['load','unload','scroll','resize','zoom','keyup','mouseup','touchend','orientationchange','pan'];W.s_Obj=s;s_PPVid=(n=='-'?s.pageName:n)||s.pageName||location.href;if(!W.s_PPVevent){s.s_PPVg=function(n,r){var k='s_ppv',p=k+'l',c=s.c_r(n||r?k:p),a=c.indexOf(',')>-1?c.split(',',10):[''],l=a.length,i;a[0]=unescape(a[0]);r=r||(n&&n!=a[0])||0;a.length=10;if(typeof a[0]!='string')a[0]='';for(i=1;i<10;i++)a[i]=!r&&i<l?parseInt(a[i])||0:0;if(l<10||typeof a[9]!='string')a[9]='';if(r){s.c_w(p,c);s.c_w(k,'?')}return a};W.s_PPVevent=function(e){var W=window,D=document,B=D.body,E=D.documentElement,S=window.screen||0,Ho='offsetHeight',Hs='scrollHeight',Ts='scrollTop',Wc='clientWidth',Hc='clientHeight',C=100,M=Math,J='object',N='number',s=W.s_Obj||W.s||0;e=e&&typeof e==J?e.type||'':'';if(!e.indexOf('on'))e=e.substring(2);s_PPVi=W.s_PPVi||0;if(W.s_PPVt&&!e){clearTimeout(s_PPVt);s_PPVt=0;if(s_PPVi<2)s_PPVi++}if(typeof s==J){var h=M.max(B[Hs]||E[Hs],B[Ho]||E[Ho],B[Hc]||E[Hc]),X=W.innerWidth||E[Wc]||B[Wc]||0,Y=W.innerHeight||E[Hc]||B[Hc]||0,x=S?S.width:0,y=S?S.height:0,r=M.round(C*(W.devicePixelRatio||1))/C,b=(D.pageYOffset||E[Ts]||B[Ts]||0)+Y,p=h>0&&b>0?M.round(C*b/h):0,O=W.orientation,o=!isNaN(O)?M.abs(o)%180:Y>X?0:90,L=e=='load'||s_PPVi<1,a=s.s_PPVg(s_PPVid,L),V=function(i,v,f,n){i=parseInt(typeof a==J&&a.length>i?a[i]:'0')||0;v=typeof v!=N?i:v;v=f||v>i?v:i;return n?v:v>C?C:v<0?0:v};if(new RegExp('(iPod|iPad|iPhone)').exec(navigator.userAgent||'')&&o){o=x;x=y;y=o}o=o?'P':'L';a[9]=L?'':a[9].substring(0,1);s.c_w('s_ppv',escape(W.s_PPVid)+','+V(1,p,L)+','+(L||!V(2)?p:V(2))+','+V(3,b,L,1)+','+X+','+Y+','+x+','+y+','+r+','+a[9]+(a[9]==o?'':o))}if(!W.s_PPVt&&e!='unload')W.s_PPVt=setTimeout(W.s_PPVevent,333)};for(var f=W.s_PPVevent,i=0;i<E.length;i++)if(EL)EL(E[i],f,false);else if(AE)AE('on'+E[i],f);f()};var a=s.s_PPVg();return!n||n=='-'?a[1]:a"),e.visitor=Visitor.getInstance("50AB0C3A53DB1B290A490D4D@AdobeOrg")}var e=function(){function e(e,t){if(!e)throw"Visitor requires Adobe Marketing Cloud Org ID";var n=this;n.version="1.7.0";var r=window,i=r.Visitor;i.version=n.version,r.s_c_in||(r.s_c_il=[],r.s_c_in=0),n._c="Visitor",n._il=r.s_c_il,n._in=r.s_c_in,n._il[n._in]=n,r.s_c_in++,n.ka={Ea:[]};var s=r.document,o=i.yb;o||(o=null);var u=i.zb;u||(u=void 0);var a=i.La;a||(a=!0);var f=i.Ja;f||(f=!1),n.ga=function(e){var t=0,n,r;if(e)for(n=0;n<e.length;n++)r=e.charCodeAt(n),t=(t<<5)-t+r,t&=t;return t},n.z=function(e){var t="0123456789",n="",r="",i,s=8,o=10,u=10;if(1==e){t+="ABCDEF";for(e=0;16>e;e++)i=Math.floor(Math.random()*s),n+=t.substring(i,i+1),i=Math.floor(Math.random()*s),r+=t.substring(i,i+1),s=16;return n+"-"+r}for(e=0;19>e;e++)i=Math.floor(Math.random()*o),n+=t.substring(i,i+1),0==e&&9==i?o=3:(1==e||2==e)&&10!=o&&2>i?o=10:2<e&&(o=10),i=Math.floor(Math.random()*u),r+=t.substring(i,i+1),0==e&&9==i?u=3:(1==e||2==e)&&10!=u&&2>i?u=10:2<e&&(u=10);return n+r},n.Pa=function(){var e;!e&&r.location&&(e=r.location.hostname);if(e)if(/^[0-9.]+$/.test(e))e="";else{var t=e.split("."),n=t.length-1,i=n-1;1<n&&2>=t[n].length&&(2==t[n-1].length||0>",ac,ad,ae,af,ag,ai,al,am,an,ao,aq,ar,as,at,au,aw,ax,az,ba,bb,be,bf,bg,bh,bi,bj,bm,bo,br,bs,bt,bv,bw,by,bz,ca,cc,cd,cf,cg,ch,ci,cl,cm,cn,co,cr,cu,cv,cw,cx,cz,de,dj,dk,dm,do,dz,ec,ee,eg,es,et,eu,fi,fm,fo,fr,ga,gb,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,im,in,io,iq,ir,is,it,je,jo,jp,kg,ki,km,kn,kp,kr,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mg,mh,mk,ml,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,na,nc,ne,nf,ng,nl,no,nr,nu,nz,om,pa,pe,pf,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,rs,ru,rw,sa,sb,sc,sd,se,sg,sh,si,sj,sk,sl,sm,sn,so,sr,st,su,sv,sx,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tp,tr,tt,tv,tw,tz,ua,ug,uk,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wf,ws,yt,".indexOf(","+t[n]+","))&&i--;if(0<i)for(e="";n>=i;)e=t[n]+(e?".":"")+e,n--}return e},n.cookieRead=function(e){var e=encodeURIComponent(e),t=(";"+s.cookie).split(" ").join(";"),n=t.indexOf(";"+e+"="),r=0>n?n:t.indexOf(";",n+1);return 0>n?"":decodeURIComponent(t.substring(n+2+e.length,0>r?t.length:r))},n.cookieWrite=function(e,t,r){var i=n.cookieLifetime,o,t=""+t,i=i?(""+i).toUpperCase():"";return r&&"SESSION"!=i&&"NONE"!=i?(o=""!=t?parseInt(i?i:0,10):-60)?(r=new Date,r.setTime(r.getTime()+1e3*o)):1==r&&(r=new Date,o=r.getYear(),r.setYear(o+2+(1900>o?1900:0))):r=0,e&&"NONE"!=i?(s.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+"; path=/;"+(r?" expires="+r.toGMTString()+";":"")+(n.cookieDomain?" domain="+n.cookieDomain+";":""),n.cookieRead(e)==t):0},n.h=o,n.L=function(e,t){try{"function"==typeof e?e.apply(r,t):e[1].apply(e[0],t)}catch(n){}},n.Ua=function(e,t){t&&(n.h==o&&(n.h={}),n.h[e]==u&&(n.h[e]=[]),n.h[e].push(t))},n.q=function(e,t){if(n.h!=o){var r=n.h[e];if(r)for(;0<r.length;)n.L(r.shift(),t)}},n.v=function(e,t,n,r){n=encodeURIComponent(t)+"="+encodeURIComponent(n),t=x.sb(e),e=x.lb(e);if(-1===e.indexOf("?"))return e+"?"+n+t;var i=e.split("?"),e=i[0]+"?",r=x.Xa(i[1],n,r);return e+r+t},n.Oa=function(e,t){var n=RegExp("[\\?&#]"+t+"=([^&#]*)").exec(e);if(n&&n.length)return decodeURIComponent(n[1])},n.Ta=function(){var e=o,t=r.location.href;try{var i=n.Oa(t,S.aa);if(i)for(var e={},s=i.split("|"),t=0,u=s.length;t<u;t++){var a=s[t].split("=");e[a[0]]=decodeURIComponent(a[1])}return e}catch(f){}},n.Ma=function(){var e=n.Ta();if(e){var t=e[c],r=n.setMarketingCloudVisitorID;t&&t.match(S.u)&&r(t),n.j(w,-1),e=e[g],t=n.setAnalyticsVisitorID,e&&e.match(S.u)&&t(e)}},n.l=o,n.Ra=function(e,t,r,i){t=n.v(t,"d_fieldgroup",e,1),i.url=n.v(i.url,"d_fieldgroup",e,1),i.m=n.v(i.m,"d_fieldgroup",e,1),k.d[e]=a,i===Object(i)&&i.m&&"XMLHttpRequest"===n.ma.F.G?n.ma.hb(i,r,e):n.useCORSOnly||n.ja(e,t,r)},n.ja=function(e,t,r){var i=0,u=0,f;if(t&&s){for(f=0;!i&&2>f;){try{i=(i=s.getElementsByTagName(0<f?"HEAD":"head"))&&0<i.length?i[0]:0}catch(l){i=0}f++}if(!i)try{s.body&&(i=s.body)}catch(c){i=0}if(i)for(f=0;!u&&2>f;){try{u=s.createElement(0<f?"SCRIPT":"script")}catch(h){u=0}f++}}!t||!i||!u?r&&r():(u.type="text/javascript",u.src=t,i.firstChild?i.insertBefore(u,i.firstChild):i.appendChild(u),i=n.loadTimeout,C.d[e]={requestStart:C.o(),url:t,ua:i,sa:C.xa(),ta:0},r&&(n.l==o&&(n.l={}),n.l[e]=setTimeout(function(){r(a)},i)),n.ka.Ea.push(t))},n.Na=function(e){n.l!=o&&n.l[e]&&(clearTimeout(n.l[e]),n.l[e]=0)},n.ha=f,n.ia=f,n.isAllowed=function(){return!n.ha&&(n.ha=a,n.cookieRead(n.cookieName)||n.cookieWrite(n.cookieName,"T",1))&&(n.ia=a),n.ia},n.b=o,n.e=o;var l=i.Qb;l||(l="MC");var c=i.Vb;c||(c="MCMID");var h=i.Rb;h||(h="MCCIDH");var p=i.Ub;p||(p="MCSYNCS");var d=i.Sb;d||(d="MCIDTS");var v=i.Tb;v||(v="MCOPTOUT");var m=i.Ob;m||(m="A");var g=i.Lb;g||(g="MCAID");var y=i.Pb;y||(y="AAM");var b=i.Nb;b||(b="MCAAMLH");var w=i.Mb;w||(w="MCAAMB");var E=i.Wb;E||(E="NONE"),n.N=0,n.fa=function(){if(!n.N){var e=n.version;n.audienceManagerServer&&(e+="|"+n.audienceManagerServer),n.audienceManagerServerSecure&&(e+="|"+n.audienceManagerServerSecure),n.N=n.ga(e)}return n.N},n.la=f,n.f=function(){if(!n.la){n.la=a;var e=n.fa(),t=f,r=n.cookieRead(n.cookieName),i,s,u,l,c=new Date;n.b==o&&(n.b={});if(r&&"T"!=r){r=r.split("|"),r[0].match(/^[\-0-9]+$/)&&(parseInt(r[0],10)!=e&&(t=a),r.shift()),1==r.length%2&&r.pop();for(e=0;e<r.length;e+=2)if(i=r[e].split("-"),s=i[0],u=r[e+1],1<i.length?(l=parseInt(i[1],10),i=0<i[1].indexOf("s")):(l=0,i=f),t&&(s==h&&(u=""),0<l&&(l=c.getTime()/1e3-60)),s&&u&&(n.c(s,u,1),0<l&&(n.b["expire"+s]=l+(i?"s":""),c.getTime()>=1e3*l||i&&!n.cookieRead(n.sessionCookieName))))n.e||(n.e={}),n.e[s]=a}!n.a(g)&&(r=n.cookieRead("s_vi"))&&(r=r.split("|"),1<r.length&&0<=r[0].indexOf("v1")&&(u=r[1],e=u.indexOf("["),0<=e&&(u=u.substring(0,e)),u&&u.match(S.u)&&n.c(g,u)))}},n.Wa=function(){var e=n.fa(),t,r;for(t in n.b)!Object.prototype[t]&&n.b[t]&&"expire"!=t.substring(0,6)&&(r=n.b[t],e+=(e?"|":"")+t+(n.b["expire"+t]?"-"+n.b["expire"+t]:"")+"|"+r);n.cookieWrite(n.cookieName,e,1)},n.a=function(e,t){return n.b!=o&&(t||!n.e||!n.e[e])?n.b[e]:o},n.c=function(e,t,r){n.b==o&&(n.b={}),n.b[e]=t,r||n.Wa()},n.Qa=function(e,t){var r=n.a(e,t);return r?r.split("*"):o},n.Va=function(e,t,r){n.c(e,t?t.join("*"):"",r)},n.Fb=function(e,t){var r=n.Qa(e,t);if(r){var i={},s;for(s=0;s<r.length;s+=2)i[r[s]]=r[s+1];return i}return o},n.Hb=function(e,t,r){var i=o,s;if(t)for(s in i=[],t)Object.prototype[s]||(i.push(s),i.push(t[s]));n.Va(e,i,r)},n.j=function(e,t,r){var i=new Date;i.setTime(i.getTime()+1e3*t),n.b==o&&(n.b={}),n.b["expire"+e]=Math.floor(i.getTime()/1e3)+(r?"s":""),0>t?(n.e||(n.e={}),n.e[e]=a):n.e&&(n.e[e]=f),r&&(n.cookieRead(n.sessionCookieName)||n.cookieWrite(n.sessionCookieName,"1"))},n.ea=function(e){return e&&("object"==typeof e&&(e=e.d_mid?e.d_mid:e.visitorID?e.visitorID:e.id?e.id:e.uuid?e.uuid:""+e),e&&(e=e.toUpperCase(),"NOTARGET"==e&&(e=E)),!e||e!=E&&!e.match(S.u))&&(e=""),e},n.k=function(e,t){n.Na(e),n.i!=o&&(n.i[e]=f),C.d[e]&&(C.d[e].wb=C.o(),C.K(e)),k.d[e]&&k.Ga(e,f);if(e==l){k.isClientSideMarketingCloudVisitorID!==a&&(k.isClientSideMarketingCloudVisitorID=f);var r=n.a(c);if(!r){r="object"==typeof t&&t.mid?t.mid:n.ea(t);if(!r){if(n.D){n.getAnalyticsVisitorID(o,f,a);return}r=n.z(),k.isClientSideMarketingCloudVisitorID=a}n.c(c,r)}if(!r||r==E)r="";"object"==typeof t&&((t.d_region||t.dcs_region||t.d_blob||t.blob)&&n.k(y,t),n.D&&t.mid&&n.k(m,{id:t.id})),n.q(c,[r])}if(e==y&&"object"==typeof t){r=604800,t.id_sync_ttl!=u&&t.id_sync_ttl&&(r=parseInt(t.id_sync_ttl,10));var i=n.a(b);i||((i=t.d_region)||(i=t.dcs_region),i&&(n.j(b,r),n.c(b,i))),i||(i=""),n.q(b,[i]),i=n.a(w);if(t.d_blob||t.blob)(i=t.d_blob)||(i=t.blob),n.j(w,r),n.c(w,i);i||(i=""),n.q(w,[i]),!t.error_msg&&n.B&&n.c(h,n.B)}if(e==m){r=n.a(g),r||((r=n.ea(t))?r!==E&&n.j(w,-1):r=E,n.c(g,r));if(!r||r==E)r="";n.q(g,[r])}n.idSyncDisableSyncs?N.ya=a:(N.ya=f,r={},r.ibs=t.ibs,r.subdomain=t.subdomain,N.tb(r));if(t===Object(t)){var s;n.isAllowed()&&(s=n.a(v)),s||(s=E,t.d_optout&&t.d_optout instanceof Array&&(s=t.d_optout.join(",")),r=parseInt(t.d_ottl,10),isNaN(r)&&(r=7200),n.j(v,r,a),n.c(v,s)),n.q(v,[s])}},n.i=o,n.r=function(e,t,r,i,s){var u="",f;return n.isAllowed()&&(n.f(),u=n.a(e),!u&&(e==c||e==v?f=l:e==b||e==w?f=y:e==g&&(f=m),f))?(t&&(n.i==o||!n.i[f])&&(n.i==o&&(n.i={}),n.i[f]=a,n.Ra(f,t,function(t,r){if(!n.a(e))if(C.d[f]&&(C.d[f].timeout=C.o(),C.d[f].mb=!!t,C.K(f)),r===Object(r)&&!n.useCORSOnly)n.ja(f,r.url,r.I);else{t&&k.Ga(f,a);var i="";e==c?(i=n.z(),k.isClientSideMarketingCloudVisitorID=a):f==y&&(i={error_msg:"timeout"}),n.k(f,i)}},s)),n.Ua(e,r),t||n.k(f,{id:E}),""):((e==c||e==g)&&u==E&&(u="",i=a),r&&i&&n.L(r,[u]),u)},n._setMarketingCloudFields=function(e){n.f(),n.k(l,e)},n.setMarketingCloudVisitorID=function(e){n._setMarketingCloudFields(e)},n.D=f,n.getMarketingCloudVisitorID=function(e,t){if(n.isAllowed()){n.marketingCloudServer&&0>n.marketingCloudServer.indexOf(".demdex.net")&&(n.D=a);var r=n.A("_setMarketingCloudFields");return n.r(c,r.url,e,t,r)}return""},n.Sa=function(){n.getAudienceManagerBlob()},i.AuthState={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2},n.w={},n.da=f,n.B="",n.setCustomerIDs=function(e){if(n.isAllowed()&&e){n.f();var t,r;for(t in e)if(!Object.prototype[t]&&(r=e[t]))if("object"==typeof r){var i={};r.id&&(i.id=r.id),r.authState!=u&&(i.authState=r.authState),n.w[t]=i}else n.w[t]={id:r};var e=n.getCustomerIDs(),i=n.a(h),s="";i||(i=0);for(t in e)Object.prototype[t]||(r=e[t],s+=(s?"|":"")+t+"|"+(r.id?r.id:"")+(r.authState?r.authState:""));n.B=n.ga(s),n.B!=i&&(n.da=a,n.Sa())}},n.getCustomerIDs=function(){n.f();var e={},t,r;for(t in n.w)Object.prototype[t]||(r=n.w[t],e[t]||(e[t]={}),r.id&&(e[t].id=r.id),e[t].authState=r.authState!=u?r.authState:i.AuthState.UNKNOWN);return e},n._setAnalyticsFields=function(e){n.f(),n.k(m,e)},n.setAnalyticsVisitorID=function(e){n._setAnalyticsFields(e)},n.getAnalyticsVisitorID=function(e,t,r){if(n.isAllowed()){var i="";r||(i=n.getMarketingCloudVisitorID(function(){n.getAnalyticsVisitorID(e,a)}));if(i||r){var s=r?n.marketingCloudServer:n.trackingServer,o="";n.loadSSL&&(r?n.marketingCloudServerSecure&&(s=n.marketingCloudServerSecure):n.trackingServerSecure&&(s=n.trackingServerSecure));var u={};if(s){var s="http"+(n.loadSSL?"s":"")+"://"+s+"/id",i="d_visid_ver="+n.version+"&mcorgid="+encodeURIComponent(n.marketingCloudOrgID)+(i?"&mid="+encodeURIComponent(i):"")+(n.idSyncDisable3rdPartySyncing?"&d_coppa=true":""),f=["s_c_il",n._in,"_set"+(r?"MarketingCloud":"Analytics")+"Fields"],o=s+"?"+i+"&callback=s_c_il%5B"+n._in+"%5D._set"+(r?"MarketingCloud":"Analytics")+"Fields";u.m=s+"?"+i,u.qa=f}return u.url=o,n.r(r?c:g,o,e,t,u)}}return""},n._setAudienceManagerFields=function(e){n.f(),n.k(y,e)},n.A=function(e){var t=n.audienceManagerServer,r="",i=n.a(c),s=n.a(w,a),o=n.a(g),o=o&&o!=E?"&d_cid_ic=AVID%01"+encodeURIComponent(o):"";n.loadSSL&&n.audienceManagerServerSecure&&(t=n.audienceManagerServerSecure);if(t){var r=n.getCustomerIDs(),u,f;if(r)for(u in r)Object.prototype[u]||(f=r[u],o+="&d_cid_ic="+encodeURIComponent(u)+"%01"+encodeURIComponent(f.id?f.id:"")+(f.authState?"%01"+f.authState:""));return e||(e="_setAudienceManagerFields"),t="http"+(n.loadSSL?"s":"")+"://"+t+"/id",i="d_visid_ver="+n.version+"&d_rtbd=json&d_ver=2"+(!i&&n.D?"&d_verify=1":"")+"&d_orgid="+encodeURIComponent(n.marketingCloudOrgID)+"&d_nsid="+(n.idSyncContainerID||0)+(i?"&d_mid="+encodeURIComponent(i):"")+(n.idSyncDisable3rdPartySyncing?"&d_coppa=true":"")+(s?"&d_blob="+encodeURIComponent(s):"")+o,s=["s_c_il",n._in,e],r=t+"?"+i+"&d_cb=s_c_il%5B"+n._in+"%5D."+e,{url:r,m:t+"?"+i,qa:s}}return{url:r}},n.getAudienceManagerLocationHint=function(e,t){if(n.isAllowed()&&n.getMarketingCloudVisitorID(function(){n.getAudienceManagerLocationHint(e,a)})){var r=n.a(g);r||(r=n.getAnalyticsVisitorID(function(){n.getAudienceManagerLocationHint(e,a)}));if(r)return r=n.A(),n.r(b,r.url,e,t,r)}return""},n.getAudienceManagerBlob=function(e,t){if(n.isAllowed()&&n.getMarketingCloudVisitorID(function(){n.getAudienceManagerBlob(e,a)})){var r=n.a(g);r||(r=n.getAnalyticsVisitorID(function(){n.getAudienceManagerBlob(e,a)}));if(r){var r=n.A(),i=r.url;return n.da&&n.j(w,-1),n.r(w,i,e,t,r)}}return""},n.s="",n.C={},n.O="",n.P={},n.getSupplementalDataID=function(e,t){!n.s&&!t&&(n.s=n.z(1));var r=n.s;return n.O&&!n.P[e]?(r=n.O,n.P[e]=a):r&&(n.C[e]&&(n.O=n.s,n.P=n.C,n.s=r=t?"":n.z(1),n.C={}),r&&(n.C[e]=a)),r},i.OptOut={GLOBAL:"global"},n.getOptOut=function(e,t){if(n.isAllowed()){var r=n.A("_setMarketingCloudFields");return n.r(v,r.url,e,t,r)}return""},n.isOptedOut=function(e,t,r){return n.isAllowed()?(t||(t=i.OptOut.GLOBAL),(r=n.getOptOut(function(r){n.L(e,[r==i.OptOut.GLOBAL||0<=r.indexOf(t)])},r))?r==i.OptOut.GLOBAL||0<=r.indexOf(t):o):f},n.appendVisitorIDsTo=function(e){for(var t=S.aa,r=[[c,n.a(c)],[g,n.a(g)]],i="",s=0,u=r.length;s<u;s++){var a=r[s],f=a[0],a=a[1];a!=o&&a!==E&&(i=i?i+="|":i,i+=f+"="+encodeURIComponent(a))}try{return n.v(e,t,i)}catch(l){return e}};var S={p:!!r.postMessage,Ia:1,ca:864e5,aa:"adobe_mc",u:/^[0-9a-fA-F\-]+$/};n.Ab=S,n.oa={postMessage:function(e,t,n){var r=1;t&&(S.p?n.postMessage(e,t.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):t&&(n.location=t.replace(/#.*$/,"")+"#"+ +(new Date)+r++ +"&"+e))},W:function(e,t){var n;try{S.p&&((e&&(n=function(n){if("string"==typeof t&&n.origin!==t||"[object Function]"===Object.prototype.toString.call(t)&&!1===t(n.origin))return!1;e(n)}),window.addEventListener)?window[e?"addEventListener":"removeEventListener"]("message",n,!1):window[e?"attachEvent":"detachEvent"]("onmessage",n))}catch(r){}}};var x={pa:function(){if(s.addEventListener)return function(e,t,n){e.addEventListener(t,function(e){"function"==typeof n&&n(e)},f)};if(s.attachEvent)return function(e,t,n){e.attachEvent("on"+t,function(e){"function"==typeof n&&n(e)})}}(),map:function(e,t){if(Array.prototype.map)return e.map(t);if(void 0===e||e===o)throw new TypeError;var n=Object(e),r=n.length>>>0;if("function"!=typeof t)throw new TypeError;for(var i=Array(r),s=0;s<r;s++)s in n&&(i[s]=t.call(t,n[s],s,n));return i},gb:function(e,t){return this.map(e,function(e){return encodeURIComponent(e)}).join(t)},sb:function(e){var t=e.indexOf("#");return 0<t?e.substr(t):""},lb:function(e){var t=e.indexOf("#");return 0<t?e.substr(0,t):e},Xa:function(e,t,n){return e=e.split("&"),n=n!=o?n:e.length,e.splice(n,0,t),e.join("&")}};n.Gb=x;var T={F:function(){var e="none",t=a;return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest===Object(XMLHttpRequest)&&("withCredentials"in new XMLHttpRequest?e="XMLHttpRequest":(new Function("/*@cc_on return /^10/.test(@_jscript_version) @*/"))()?e="XMLHttpRequest":"undefined"!=typeof XDomainRequest&&XDomainRequest===Object(XDomainRequest)&&(t=f),0<Object.prototype.toString.call(window.xb).indexOf("Constructor")&&(t=f)),{G:e,Jb:t}}(),ib:function(){return"none"===this.F.G?o:new window[this.F.G]},hb:function(e,t,r){var i=this;t&&(e.I=t);try{var s=this.ib();s.open("get",e.m+"&ts="+(new Date).getTime(),a),"XMLHttpRequest"===this.F.G&&(s.withCredentials=a,s.timeout=n.loadTimeout,s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onreadystatechange=function(){if(4===this.readyState&&200===this.status)e:{var t;try{if(t=JSON.parse(this.responseText),t!==Object(t)){i.n(e,o,"Response is not JSON");break e}}catch(n){i.n(e,n,"Error parsing response as JSON");break e}try{for(var r=e.qa,s=window,u=0;u<r.length;u++)s=s[r[u]];s(t)}catch(a){i.n(e,a,"Error forming callback function")}}}),s.onerror=function(t){i.n(e,t,"onerror")},s.ontimeout=function(t){i.n(e,t,"ontimeout")},s.send(),C.d[r]={requestStart:C.o(),url:e.m,ua:s.timeout,sa:C.xa(),ta:1},n.ka.Ea.push(e.m)}catch(u){this.n(e,u,"try-catch")}},n:function(e,t,r){n.CORSErrors.push({Kb:e,error:t,description:r}),e.I&&("ontimeout"===r?e.I(a):e.I(f,e))}};n.ma=T;var N={Ka:3e4,ba:649,Ha:f,id:o,T:o,wa:function(e){if("string"==typeof e)return e=e.split("/"),e[0]+"//"+e[2]},g:o,url:o,jb:function(){var e="http://fast.",t="?d_nsid="+n.idSyncContainerID+"#"+encodeURIComponent(s.location.href);return this.g||(this.g="nosubdomainreturned"),n.loadSSL&&(e=n.idSyncSSLUseAkamai?"https://fast.":"https://"),e=e+this.g+".demdex.net/dest5.html"+t,this.T=this.wa(e),this.id="destination_publishing_iframe_"+this.g+"_"+n.idSyncContainerID,e},$a:function(){var e="?d_nsid="+n.idSyncContainerID+"#"+encodeURIComponent(s.location.href);"string"==typeof n.M&&n.M.length&&(this.id="destination_publishing_iframe_"+(new Date).getTime()+"_"+n.idSyncContainerID,this.T=this.wa(n.M),this.url=n.M+e)},ya:o,va:f,Y:f,H:o,Xb:o,rb:o,Yb:o,X:f,J:[],pb:[],qb:[],Aa:S.p?15:100,U:[],nb:[],ra:a,Da:f,Ca:function(){return!n.idSyncDisable3rdPartySyncing&&(this.va||n.Cb)&&this.g&&"nosubdomainreturned"!==this.g&&this.url&&!this.Y},R:function(){function e(){r=document.createElement("iframe"),r.sandbox="allow-scripts allow-same-origin",r.title="Adobe ID Syncing iFrame",r.id=n.id,r.style.cssText="display: none; width: 0; height: 0;",r.src=n.url,n.rb=a,t(),document.body.appendChild(r)}function t(){x.pa(r,"load",function(){r.className="aamIframeLoaded",n.H=a,n.t()})}this.Y=a;var n=this,r=document.getElementById(this.id);r?"IFRAME"!==r.nodeName?(this.id+="_2",e()):"aamIframeLoaded"!==r.className?t():(this.H=a,this.za=r,this.t()):e(),this.za=r},t:function(e){var t=this;e===Object(e)&&this.U.push(e),(this.Da||!S.p||this.H)&&this.U.length&&(this.K(this.U.shift()),this.t()),!n.idSyncDisableSyncs&&this.H&&this.J.length&&!this.X&&(this.Ha||(this.Ha=a,setTimeout(function(){t.Aa=S.p?15:150},this.Ka)),this.X=a,this.Fa())},K:function(e){var t=encodeURIComponent,n,r,i,s,o;if((n=e.ibs)&&n instanceof Array&&(r=n.length))for(i=0;i<r;i++)s=n[i],o=[t("ibs"),t(s.id||""),t(s.tag||""),x.gb(s.url||[],","),t(s.ttl||""),"","",s.fireURLSync?"true":"false"],this.ra?this.Q(o.join("|")):s.fireURLSync&&this.ab(s,o.join("|"));this.nb.push(e)},ab:function(e,t){n.f();var r=n.a(p),i=f,s=f,o=Math.ceil((new Date).getTime()/S.ca);if(r){if(r=r.split("*"),s=this.ub(r,e.id,o),i=s.eb,s=s.fb,!i||!s)this.Q(t),r.push(e.id+"-"+(o+Math.ceil(e.ttl/60/24))),this.ob(r),n.c(p,r.join("*"))}else this.Q(t),n.c(p,e.id+"-"+(o+Math.ceil(e.ttl/60/24)))},ub:function(e,t,n){var r=f,i=f,s,o,u;for(o=0;o<e.length;o++)s=e[o],u=parseInt(s.split("-")[1],10),s.match("^"+t+"-")?(r=a,n<u?i=a:(e.splice(o,1),o--)):n>=u&&(e.splice(o,1),o--);return{eb:r,fb:i}},ob:function(e){if(e.join("*").length>this.ba)for(e.sort(function(e,t){return parseInt(e.split("-")[1],10)-parseInt(t.split("-")[1],10)});e.join("*").length>this.ba;)e.shift()},Q:function(e){var t=encodeURIComponent;this.J.push((n.Db?t("---destpub-debug---"):t("---destpub---"))+e)},Fa:function(){var e=this,t;this.J.length?(t=this.J.shift(),n.oa.postMessage(t,this.url,this.za.contentWindow),this.pb.push(t),setTimeout(function(){e.Fa()},this.Aa)):this.X=f},W:function(e){var t=/^---destpub-to-parent---/;"string"==typeof e&&t.test(e)&&(t=e.replace(t,"").split("|"),"canSetThirdPartyCookies"===t[0]&&(this.ra="true"===t[1]?a:f,this.Da=a,this.t()),this.qb.push(e))},tb:function(e){if(this.url===o||e.subdomain&&"nosubdomainreturned"===this.g)this.g="string"==typeof n.na&&n.na.length?n.na:e.subdomain||"",this.url=this.jb();e.ibs instanceof Array&&e.ibs.length&&(this.va=a),this.Ca()&&(n.idSyncAttachIframeOnWindowLoad?(i.$||"complete"===s.readyState||"loaded"===s.readyState)&&this.R():this.Ya()),"function"==typeof n.idSyncIDCallResult?n.idSyncIDCallResult(e):this.t(e),"function"==typeof n.idSyncAfterIDCallResult&&n.idSyncAfterIDCallResult(e)},Za:function(e,t){return n.Eb||!e||t-e>S.Ia},Ya:function(){function e(){t.Y||(document.body?t.R():setTimeout(e,30))}var t=this;e()}};n.Bb=N,n.timeoutMetricsLog=[];var C={cb:window.performance&&window.performance.timing?1:0,Ba:window.performance&&window.performance.timing?window.performance.timing:o,Z:o,S:o,d:{},V:[],send:function(e){if(n.takeTimeoutMetrics&&e===Object(e)){var t=[],r=encodeURIComponent,i;for(i in e)e.hasOwnProperty(i)&&t.push(r(i)+"="+r(e[i]));e="http"+(n.loadSSL?"s":"")+"://dpm.demdex.net/event?d_visid_ver="+n.version+"&d_visid_stg_timeout="+n.loadTimeout+"&"+t.join("&")+"&d_orgid="+r(n.marketingCloudOrgID)+"&d_timingapi="+this.cb+"&d_winload="+this.kb()+"&d_ld="+this.o(),(new Image).src=e,n.timeoutMetricsLog.push(e)}},kb:function(){return this.S===o&&(this.S=this.Ba?this.Z-this.Ba.navigationStart:this.Z-i.bb),this.S},o:function(){return(new Date).getTime()},K:function(e){var t=this.d[e],n={};n.d_visid_stg_timeout_captured=t.ua,n.d_visid_cors=t.ta,n.d_fieldgroup=e,n.d_settimeout_overriden=t.sa,t.timeout?t.mb?(n.d_visid_timedout=1,n.d_visid_timeout=t.timeout-t.requestStart,n.d_visid_response=-1):(n.d_visid_timedout="n/a",n.d_visid_timeout="n/a",n.d_visid_response="n/a"):(n.d_visid_timedout=0,n.d_visid_timeout=-1,n.d_visid_response=t.wb-t.requestStart),n.d_visid_url=t.url,i.$?this.send(n):this.V.push(n),delete this.d[e]},vb:function(){for(var e=0,t=this.V.length;e<t;e++)this.send(this.V[e])},xa:function(){return"function"==typeof setTimeout.toString?-1<setTimeout.toString().indexOf("[native code]")?0:1:-1}};n.Ib=C;var k={isClientSideMarketingCloudVisitorID:o,MCIDCallTimedOut:o,AnalyticsIDCallTimedOut:o,AAMIDCallTimedOut:o,d:{},Ga:function(e,t){switch(e){case l:t===f?this.MCIDCallTimedOut!==a&&(this.MCIDCallTimedOut=f):this.MCIDCallTimedOut=t;break;case m:t===f?this.AnalyticsIDCallTimedOut!==a&&(this.AnalyticsIDCallTimedOut=f):this.AnalyticsIDCallTimedOut=t;break;case y:t===f?this.AAMIDCallTimedOut!==a&&(this.AAMIDCallTimedOut=f):this.AAMIDCallTimedOut=t}}};n.isClientSideMarketingCloudVisitorID=function(){return k.isClientSideMarketingCloudVisitorID},n.MCIDCallTimedOut=function(){return k.MCIDCallTimedOut},n.AnalyticsIDCallTimedOut=function(){return k.AnalyticsIDCallTimedOut},n.AAMIDCallTimedOut=function(){return k.AAMIDCallTimedOut},0>e.indexOf("@")&&(e+="@AdobeOrg"),n.marketingCloudOrgID=e,n.cookieName="AMCV_"+e,n.sessionCookieName="AMCVS_"+e,n.cookieDomain=n.Pa(),n.cookieDomain==r.location.hostname&&(n.cookieDomain=""),n.loadSSL=0<=r.location.protocol.toLowerCase().indexOf("https"),n.loadTimeout=3e4,n.CORSErrors=[],n.marketingCloudServer=n.audienceManagerServer="dpm.demdex.net",n.Ma();if(t&&"object"==typeof t){for(var L in t)!Object.prototype[L]&&(n[L]=t[L]);n.idSyncContainerID=n.idSyncContainerID||0,n.f(),T=n.a(d),L=Math.ceil((new Date).getTime()/S.ca),!n.idSyncDisableSyncs&&N.Za(T,L)&&(n.j(w,-1),n.c(d,L)),n.getMarketingCloudVisitorID(),n.getAudienceManagerLocationHint(),n.getAudienceManagerBlob()}if(!n.idSyncDisableSyncs){N.$a(),x.pa(window,"load",function(){i.$=a,C.Z=C.o(),C.vb();var e=N;e.Ca()&&e.R()});try{n.oa.W(function(e){N.W(e.data)},N.T)}catch(A){}}}function i(e){function t(e,t){var n,r,i;if(e&&t&&(n=o.c[t]||(o.c[t]=t.split(","))))for(i=0;i<n.length&&(r=n[i++]);)if(-1<e.indexOf(r))return null;return a=1,e}function n(t,n,r,i,s){var o,u;if(t.dataset&&(u=t.dataset[n]))o=u;else if(t.getAttribute)if(u=t.getAttribute("data-"+r))o=u;else if(u=t.getAttribute(r))o=u;if(!o&&e.useForcedLinkTracking&&s&&(o="",n=t.onclick?""+t.onclick:"")){r=n.indexOf(i);var a,f;if(0<=r){for(r+=10;r<n.length&&0<="= 	\r\n".indexOf(n.charAt(r));)r++;if(r<n.length){u=r;for(a=f=0;u<n.length&&(";"!=n.charAt(u)||a);)a?n.charAt(u)!=a||f?f="\\"==n.charAt(u)?!f:0:a=0:(a=n.charAt(u),'"'!=a&&"'"!=a&&(a=0)),u++;if(n=n.substring(r,u))t.e=new Function("s","var e;try{s.w."+i+"="+n+"}catch(e){}"),t.e(e)}}}return o||s&&e.w[i]}function r(e,n,r){var i;return(i=o[n](e,r))&&(a?(a=0,i):t(s(i),o[n+"Exclusions"]))}function i(e,t,n){var r;if(e&&!(1===(r=e.nodeType)&&(r=e.nodeName)&&(r=r.toUpperCase())&&f[r])&&(1===e.nodeType&&(r=e.nodeValue)&&(t[t.length]=r),n.a||n.t||n.s||!e.getAttribute||((r=e.getAttribute("alt"))?n.a=r:(r=e.getAttribute("title"))?n.t=r:"IMG"==(""+e.nodeName).toUpperCase()&&(r=e.getAttribute("src")||e.src)&&(n.s=r)),(r=e.childNodes)&&r.length))for(e=0;e<r.length;e++)i(r[e],t,n)}function s(e){if(null==e||void 0==e)return e;try{return e.replace(RegExp("^[\\s\\n\\f\\r\\t	-\r   ᠎ - \u2028\u2029 　﻿]+","mg"),"").replace(RegExp("[\\s\\n\\f\\r\\t	-\r   ᠎ - \u2028\u2029 　﻿]+$","mg"),"").replace(RegExp("[\\s\\n\\f\\r\\t	-\r   ᠎ - \u2028\u2029 　﻿]{1,}","mg")," ").substring(0,254)}catch(t){}}var o=this;o.s=e;var u=window;u.s_c_in||(u.s_c_il=[],u.s_c_in=0),o._il=u.s_c_il,o._in=u.s_c_in,o._il[o._in]=o,u.s_c_in++,o._c="s_m",o.c={};var a=0,f={SCRIPT:1,STYLE:1,LINK:1,CANVAS:1};o._g=function(){var t,n,i,s=e.contextData,o=e.linkObject;(t=e.pageName||e.pageURL)&&(n=r(o,"link",e.linkName))&&(i=r(o,"region"))&&(s["a.activitymap.page"]=t.substring(0,255),s["a.activitymap.link"]=128<n.length?n.substring(0,128):n,s["a.activitymap.region"]=127<i.length?i.substring(0,127):i,s["a.activitymap.pageIDType"]=e.pageName?1:0)},o.link=function(e,r){var u;if(r)u=t(s(r),o.linkExclusions);else if((u=e)&&!(u=n(e,"sObjectId","s-object-id","s_objectID",1))){var a,f;(f=t(s(e.innerText||e.textContent),o.linkExclusions))||(i(e,a=[],u={a:void 0,t:void 0,s:void 0}),(f=t(s(a.join(""))))||(f=t(s(u.a?u.a:u.t?u.t:u.s?u.s:void 0)))||!(a=(a=e.tagName)&&a.toUpperCase?a.toUpperCase():"")||("INPUT"==a||"SUBMIT"==a&&e.value?f=t(s(e.value)):"IMAGE"==a&&e.src&&(f=t(s(e.src))))),u=f}return u},o.region=function(e){for(var t,r=o.regionIDAttribute||"id";e&&(e=e.parentNode);){if(t=n(e,r,r,r))return t;if("BODY"==e.nodeName)return"BODY"}}}function s(){var e=this;e.version="1.6.4";var t=window;t.s_c_in||(t.s_c_il=[],t.s_c_in=0),e._il=t.s_c_il,e._in=t.s_c_in,e._il[e._in]=e,t.s_c_in++,e._c="s_c";var n=t.AppMeasurement.Jb;n||(n=null);var r=t,i,s;try{for(i=r.parent,s=r.location;i&&i.location&&s&&""+i.location!=""+s&&r.location&&""+i.location!=""+r.location&&i.location.host==s.host;)r=i,i=r.parent}catch(u){}e.yb=function(e){try{console.log(e)}catch(t){}},e.Ha=function(e){return""+parseInt(e)==""+e},e.replace=function(e,t,n){return!e||0>e.indexOf(t)?e:e.split(t).join(n)},e.escape=function(t){var n,r;if(!t)return t;t=encodeURIComponent(t);for(n=0;7>n;n++)r="+~!*()'".substring(n,n+1),0<=t.indexOf(r)&&(t=e.replace(t,r,"%"+r.charCodeAt(0).toString(16).toUpperCase()));return t},e.unescape=function(t){if(!t)return t;t=0<=t.indexOf("+")?e.replace(t,"+"," "):t;try{return decodeURIComponent(t)}catch(n){}return unescape(t)},e.pb=function(){var n=t.location.hostname,r=e.fpCookieDomainPeriods,i;r||(r=e.cookieDomainPeriods);if(n&&!e.cookieDomain&&!/^[0-9.]+$/.test(n)&&(r=r?parseInt(r):2,r=2<r?r:2,i=n.lastIndexOf("."),0<=i)){for(;0<=i&&1<r;)i=n.lastIndexOf(".",i-1),r--;e.cookieDomain=0<i?n.substring(i):n}return e.cookieDomain},e.c_r=e.cookieRead=function(t){t=e.escape(t);var n=" "+e.d.cookie,r=n.indexOf(" "+t+"="),i=0>r?r:n.indexOf(";",r);return t=0>r?"":e.unescape(n.substring(r+2+t.length,0>i?n.length:i)),"[[B]]"!=t?t:""},e.c_w=e.cookieWrite=function(t,n,r){var i=e.pb(),s=e.cookieLifetime,o;return n=""+n,s=s?(""+s).toUpperCase():"",r&&"SESSION"!=s&&"NONE"!=s&&((o=""!=n?parseInt(s?s:0):-60)?(r=new Date,r.setTime(r.getTime()+1e3*o)):1==r&&(r=new Date,o=r.getYear(),r.setYear(o+5+(1900>o?1900:0)))),t&&"NONE"!=s?(e.d.cookie=e.escape(t)+"="+e.escape(""!=n?n:"[[B]]")+"; path=/;"+(r&&"SESSION"!=s?" expires="+r.toGMTString()+";":"")+(i?" domain="+i+";":""),e.cookieRead(t)==n):0},e.K=[],e.ha=function(t,n,r){if(e.Aa)return 0;e.maxDelay||(e.maxDelay=250);var i=0,s=(new Date).getTime()+e.maxDelay,o=e.d.visibilityState,u=["webkitvisibilitychange","visibilitychange"];o||(o=e.d.webkitVisibilityState);if(o&&"prerender"==o){if(!e.ia)for(e.ia=1,r=0;r<u.length;r++)e.d.addEventListener(u[r],function(){var t=e.d.visibilityState;t||(t=e.d.webkitVisibilityState),"visible"==t&&(e.ia=0,e.delayReady())});i=1,s=0}else r||e.p("_d")&&(i=1);return i&&(e.K.push({m:t,a:n,t:s}),e.ia||setTimeout(e.delayReady,e.maxDelay)),i},e.delayReady=function(){var t=(new Date).getTime(),n=0,r;for(e.p("_d")?n=1:e.va();0<e.K.length;){r=e.K.shift();if(n&&!r.t&&r.t>t){e.K.unshift(r),setTimeout(e.delayReady,parseInt(e.maxDelay/2));break}e.Aa=1,e[r.m].apply(e,r.a),e.Aa=0}},e.setAccount=e.sa=function(t){var n,r;if(!e.ha("setAccount",arguments))if(e.account=t,e.allAccounts)for(n=e.allAccounts.concat(t.split(",")),e.allAccounts=[],n.sort(),r=0;r<n.length;r++)0!=r&&n[r-1]==n[r]||e.allAccounts.push(n[r]);else e.allAccounts=t.split(",")},e.foreachVar=function(t,n){var r,i,s,o,u="";s=i="";if(e.lightProfileID)r=e.O,(u=e.lightTrackVars)&&(u=","+u+","+e.ma.join(",")+",");else{r=e.g;if(e.pe||e.linkType)u=e.linkTrackVars,i=e.linkTrackEvents,e.pe&&(s=e.pe.substring(0,1).toUpperCase()+e.pe.substring(1),e[s]&&(u=e[s].Hb,i=e[s].Gb));u&&(u=","+u+","+e.G.join(",")+","),i&&u&&(u+=",events,")}n&&(n=","+n+",");for(i=0;i<r.length;i++)s=r[i],(o=e[s])&&(!u||0<=u.indexOf(","+s+","))&&(!n||0<=n.indexOf(","+s+","))&&t(s,o)},e.r=function(t,n,r,i,s){var o="",u,a,f,l,c=0;"contextData"==t&&(t="c");if(n){for(u in n)if(!(Object.prototype[u]||s&&u.substring(0,s.length)!=s)&&n[u]&&(!r||0<=r.indexOf(","+(i?i+".":"")+u+","))){f=!1;if(c)for(a=0;a<c.length;a++)u.substring(0,c[a].length)==c[a]&&(f=!0);if(!f&&(""==o&&(o+="&"+t+"."),a=n[u],s&&(u=u.substring(s.length)),0<u.length))if(f=u.indexOf("."),0<f)a=u.substring(0,f),f=(s?s:"")+a+".",c||(c=[]),c.push(f),o+=e.r(a,n,r,i,f);else if("boolean"==typeof a&&(a=a?"true":"false"),a){if("retrieveLightData"==i&&0>s.indexOf(".contextData."))switch(f=u.substring(0,4),l=u.substring(4),u){case"transactionID":u="xact";break;case"channel":u="ch";break;case"campaign":u="v0";break;default:e.Ha(l)&&("prop"==f?u="c"+l:"eVar"==f?u="v"+l:"list"==f?u="l"+l:"hier"==f&&(u="h"+l,a=a.substring(0,255)))}o+="&"+e.escape(u)+"="+e.escape(a)}}""!=o&&(o+="&."+t)}return o},e.usePostbacks=0,e.sb=function(){var t="",r,i,s,o,u,a,f,l,c="",h="",p=o="";if(e.lightProfileID)r=e.O,(c=e.lightTrackVars)&&(c=","+c+","+e.ma.join(",")+",");else{r=e.g;if(e.pe||e.linkType)c=e.linkTrackVars,h=e.linkTrackEvents,e.pe&&(o=e.pe.substring(0,1).toUpperCase()+e.pe.substring(1),e[o]&&(c=e[o].Hb,h=e[o].Gb));c&&(c=","+c+","+e.G.join(",")+","),h&&(h=","+h+",",c&&(c+=",events,")),e.events2&&(p+=(""!=p?",":"")+e.events2)}if(e.visitor&&1.5<=parseFloat(e.visitor.version)&&e.visitor.getCustomerIDs){o=n;if(u=e.visitor.getCustomerIDs())for(i in u)Object.prototype[i]||(s=u[i],o||(o={}),s.id&&(o[i+".id"]=s.id),s.authState&&(o[i+".as"]=s.authState));o&&(t+=e.r("cid",o))}e.AudienceManagement&&e.AudienceManagement.isReady()&&(t+=e.r("d",e.AudienceManagement.getEventCallConfigParams()));for(i=0;i<r.length;i++){o=r[i],u=e[o],s=o.substring(0,4),a=o.substring(4),!u&&"events"==o&&p&&(u=p,p="");if(u&&(!c||0<=c.indexOf(","+o+","))){switch(o){case"supplementalDataID":o="sdid";break;case"timestamp":o="ts";break;case"dynamicVariablePrefix":o="D";break;case"visitorID":o="vid";break;case"marketingCloudVisitorID":o="mid";break;case"analyticsVisitorID":o="aid";break;case"audienceManagerLocationHint":o="aamlh";break;case"audienceManagerBlob":o="aamb";break;case"authState":o="as";break;case"pageURL":o="g",255<u.length&&(e.pageURLRest=u.substring(255),u=u.substring(0,255));break;case"pageURLRest":o="-g";break;case"referrer":o="r";break;case"vmk":case"visitorMigrationKey":o="vmt";break;case"visitorMigrationServer":o="vmf",e.ssl&&e.visitorMigrationServerSecure&&(u="");break;case"visitorMigrationServerSecure":o="vmf",!e.ssl&&e.visitorMigrationServer&&(u="");break;case"charSet":o="ce";break;case"visitorNamespace":o="ns";break;case"cookieDomainPeriods":o="cdp";break;case"cookieLifetime":o="cl";break;case"variableProvider":o="vvp";break;case"currencyCode":o="cc";break;case"channel":o="ch";break;case"transactionID":o="xact";break;case"campaign":o="v0";break;case"latitude":o="lat";break;case"longitude":o="lon";break;case"resolution":o="s";break;case"colorDepth":o="c";break;case"javascriptVersion":o="j";break;case"javaEnabled":o="v";break;case"cookiesEnabled":o="k";break;case"browserWidth":o="bw";break;case"browserHeight":o="bh";break;case"connectionType":o="ct";break;case"homepage":o="hp";break;case"events":p&&(u+=(""!=u?",":"")+p);if(h)for(a=u.split(","),u="",s=0;s<a.length;s++)f=a[s],l=f.indexOf("="),0<=l&&(f=f.substring(0,l)),l=f.indexOf(":"),0<=l&&(f=f.substring(0,l)),0<=h.indexOf(","+f+",")&&(u+=(u?",":"")+a[s]);break;case"events2":u="";break;case"contextData":t+=e.r("c",e[o],c,o),u="";break;case"lightProfileID":o="mtp";break;case"lightStoreForSeconds":o="mtss",e.lightProfileID||(u="");break;case"lightIncrementBy":o="mti",e.lightProfileID||(u="");break;case"retrieveLightProfiles":o="mtsr";break;case"deleteLightProfiles":o="mtsd";break;case"retrieveLightData":e.retrieveLightProfiles&&(t+=e.r("mts",e[o],c,o)),u="";break;default:e.Ha(a)&&("prop"==s?o="c"+a:"eVar"==s?o="v"+a:"list"==s?o="l"+a:"hier"==s&&(o="h"+a,u=u.substring(0,255)))}u&&(t+="&"+o+"="+("pev"!=o.substring(0,3)?e.escape(u):u))}"pev3"==o&&e.e&&(t+=e.e)}return t},e.D=function(e){var t=e.tagName;return"undefined"!=""+e.Mb||"undefined"!=""+e.Cb&&"HTML"!=(""+e.Cb).toUpperCase()?"":(t=t&&t.toUpperCase?t.toUpperCase():"","SHAPE"==t&&(t=""),t&&(("INPUT"==t||"BUTTON"==t)&&e.type&&e.type.toUpperCase?t=e.type.toUpperCase():!t&&e.href&&(t="A")),t)},e.Da=function(e){var t=e.href?e.href:"",n,r,i;return n=t.indexOf(":"),r=t.indexOf("?"),i=t.indexOf("/"),t&&(0>n||0<=r&&n>r||0<=i&&n>i)&&(r=e.protocol&&1<e.protocol.length?e.protocol:l.protocol?l.protocol:"",n=l.pathname.lastIndexOf("/"),t=(r?r+"//":"")+(e.host?e.host:l.host?l.host:"")+("/"!=h.substring(0,1)?l.pathname.substring(0,0>n?0:n)+"/":"")+t),t},e.L=function(t){var n=e.D(t),r,i,s="",o=0;return n&&(r=t.protocol,i=t.onclick,!t.href||"A"!=n&&"AREA"!=n||i&&r&&!(0>r.toLowerCase().indexOf("javascript"))?i?(s=e.replace(e.replace(e.replace(e.replace(""+i,"\r",""),"\n",""),"	","")," ",""),o=2):"INPUT"==n||"SUBMIT"==n?(t.value?s=t.value:t.innerText?s=t.innerText:t.textContent&&(s=t.textContent),o=3):"IMAGE"==n&&t.src&&(s=t.src):s=e.Da(t),s)?{id:s.substring(0,100),type:o}:0},e.Kb=function(t){for(var n=e.D(t),r=e.L(t);t&&!r&&"BODY"!=n;)if(t=t.parentElement?t.parentElement:t.parentNode)n=e.D(t),r=e.L(t);return r&&"BODY"!=n||(t=0),t&&(n=t.onclick?""+t.onclick:"",0<=n.indexOf(".tl(")||0<=n.indexOf(".trackLink("))&&(t=0),t},e.Bb=function(){var n,r,i=e.linkObject,s=e.linkType,o=e.linkURL,u,a;e.na=1,i||(e.na=0,i=e.clickObject);if(i){n=e.D(i);for(r=e.L(i);i&&!r&&"BODY"!=n;)if(i=i.parentElement?i.parentElement:i.parentNode)n=e.D(i),r=e.L(i);r&&"BODY"!=n||(i=0);if(i&&!e.linkObject){var f=i.onclick?""+i.onclick:"";if(0<=f.indexOf(".tl(")||0<=f.indexOf(".trackLink("))i=0}}else e.na=1;!o&&i&&(o=e.Da(i)),o&&!e.linkLeaveQueryString&&(u=o.indexOf("?"),0<=u&&(o=o.substring(0,u)));if(!s&&o){var l=0,c=0,h;if(e.trackDownloadLinks&&e.linkDownloadFileTypes)for(f=o.toLowerCase(),u=f.indexOf("?"),a=f.indexOf("#"),0<=u?0<=a&&a<u&&(u=a):u=a,0<=u&&(f=f.substring(0,u)),u=e.linkDownloadFileTypes.toLowerCase().split(","),a=0;a<u.length;a++)(h=u[a])&&f.substring(f.length-(h.length+1))=="."+h&&(s="d");if(e.trackExternalLinks&&!s&&(f=o.toLowerCase(),e.Ga(f)&&(e.linkInternalFilters||(e.linkInternalFilters=t.location.hostname),u=0,e.linkExternalFilters?(u=e.linkExternalFilters.toLowerCase().split(","),l=1):e.linkInternalFilters&&(u=e.linkInternalFilters.toLowerCase().split(",")),u))){for(a=0;a<u.length;a++)h=u[a],0<=f.indexOf(h)&&(c=1);c?l&&(s="e"):l||(s="e")}}e.linkObject=i,e.linkURL=o,e.linkType=s;if(e.trackClickMap||e.trackInlineStats)e.e="",i&&(s=e.pageName,o=1,i=i.sourceIndex,s||(s=e.pageURL,o=0),t.s_objectID&&(r.id=t.s_objectID,i=r.type=1),s&&r&&r.id&&n&&(e.e="&pid="+e.escape(s.substring(0,255))+(o?"&pidt="+o:"")+"&oid="+e.escape(r.id.substring(0,100))+(r.type?"&oidt="+r.type:"")+"&ot="+n+(i?"&oi="+i:"")))},e.tb=function(){var t=e.na,n=e.linkType,r=e.linkURL,i=e.linkName;n&&(r||i)&&(n=n.toLowerCase(),"d"!=n&&"e"!=n&&(n="o"),e.pe="lnk_"+n,e.pev1=r?e.escape(r):"",e.pev2=i?e.escape(i):"",t=1),e.abort&&(t=0);if(e.trackClickMap||e.trackInlineStats||e.ActivityMap){var n={},r=0,s=e.cookieRead("s_sq"),o=s?s.split("&"):0,u,a,f,s=0;if(o)for(u=0;u<o.length;u++)a=o[u].split("="),i=e.unescape(a[0]).split(","),a=e.unescape(a[1]),n[a]=i;i=e.account.split(","),u={};for(f in e.contextData)f&&!Object.prototype[f]&&"a.activitymap."==f.substring(0,14)&&(u[f]=e.contextData[f],e.contextData[f]="");e.e=e.r("c",u)+(e.e?e.e:"");if(t||e.e){t&&!e.e&&(s=1);for(a in n)if(!Object.prototype[a])for(f=0;f<i.length;f++)for(s&&(o=n[a].join(","),o==e.account&&(e.e+=("&"!=a.charAt(0)?"&":"")+a,n[a]=[],r=1)),u=0;u<n[a].length;u++)o=n[a][u],o==i[f]&&(s&&(e.e+="&u="+e.escape(o)+("&"!=a.charAt(0)?"&":"")+a+"&u=0"),n[a].splice(u,1),r=1);t||(r=1);if(r){s="",u=2,!t&&e.e&&(s=e.escape(i.join(","))+"="+e.escape(e.e),u=1);for(a in n)!Object.prototype[a]&&0<u&&0<n[a].length&&(s+=(s?"&":"")+e.escape(n[a].join(","))+"="+e.escape(a),u--);e.cookieWrite("s_sq",s)}}}return t},e.ub=function(){if(!e.Fb){var t=new Date,n=r.location,i,s,o=s=i="",u="",a="",f="1.2",l=e.cookieWrite("s_cc","true",0)?"Y":"N",c="",h="";if(t.setUTCDate&&(f="1.3",0..toPrecision&&(f="1.5",t=[],t.forEach))){f="1.6",s=0,i={};try{s=new Iterator(i),s.next&&(f="1.7",t.reduce&&(f="1.8",f.trim&&(f="1.8.1",Date.parse&&(f="1.8.2",Object.create&&(f="1.8.5")))))}catch(p){}}i=screen.width+"x"+screen.height,o=navigator.javaEnabled()?"Y":"N",s=screen.pixelDepth?screen.pixelDepth:screen.colorDepth,u=e.w.innerWidth?e.w.innerWidth:e.d.documentElement.offsetWidth,a=e.w.innerHeight?e.w.innerHeight:e.d.documentElement.offsetHeight;try{e.b.addBehavior("#default#homePage"),c=e.b.Lb(n)?"Y":"N"}catch(d){}try{e.b.addBehavior("#default#clientCaps"),h=e.b.connectionType}catch(v){}e.resolution=i,e.colorDepth=s,e.javascriptVersion=f,e.javaEnabled=o,e.cookiesEnabled=l,e.browserWidth=u,e.browserHeight=a,e.connectionType=h,e.homepage=c,e.Fb=1}},e.P={},e.loadModule=function(n,r){var i=e.P[n];if(!i){i=t["AppMeasurement_Module_"+n]?new t["AppMeasurement_Module_"+n](e):{},e.P[n]=e[n]=i,i.Xa=function(){return i.ab},i.bb=function(t){if(i.ab=t)e[n+"_onLoad"]=t,e.ha(n+"_onLoad",[e,i],1)||t(e,i)};try{Object.defineProperty?Object.defineProperty(i,"onLoad",{get:i.Xa,set:i.bb}):i._olc=1}catch(s){i._olc=1}}r&&(e[n+"_onLoad"]=r,e.ha(n+"_onLoad",[e,i],1)||r(e,i))},e.p=function(t){var n,r;for(n in e.P)if(!Object.prototype[n]&&(r=e.P[n])&&(r._olc&&r.onLoad&&(r._olc=0,r.onLoad(e,r)),r[t]&&r[t]()))return 1;return 0},e.wb=function(){var t=Math.floor(1e13*Math.random()),n=e.visitorSampling,r=e.visitorSamplingGroup,r="s_vsn_"+(e.visitorNamespace?e.visitorNamespace:e.account)+(r?"_"+r:""),i=e.cookieRead(r);if(n){i&&(i=parseInt(i));if(!i){if(!e.cookieWrite(r,t))return 0;i=t}if(i%1e4>v)return 0}return 1},e.Q=function(t,n){var r,i,s,o,u,a;for(r=0;2>r;r++)for(i=0<r?e.wa:e.g,s=0;s<i.length;s++)if(o=i[s],(u=t[o])||t["!"+o]){if(!n&&("contextData"==o||"retrieveLightData"==o)&&e[o])for(a in e[o])u[a]||(u[a]=e[o][a]);e[o]=u}},e.Qa=function(t,n){var r,i,s,o;for(r=0;2>r;r++)for(i=0<r?e.wa:e.g,s=0;s<i.length;s++)o=i[s],t[o]=e[o],n||t[o]||(t["!"+o]=1)},e.ob=function(e){var t,n,r,i,s,o=0,u,a="",f="";if(e&&255<e.length&&(t=""+e,n=t.indexOf("?"),0<n&&(u=t.substring(n+1),t=t.substring(0,n),i=t.toLowerCase(),r=0,"http://"==i.substring(0,7)?r+=7:"https://"==i.substring(0,8)&&(r+=8),n=i.indexOf("/",r),0<n&&(i=i.substring(r,n),s=t.substring(n),t=t.substring(0,n),0<=i.indexOf("google")?o=",q,ie,start,search_key,word,kw,cd,":0<=i.indexOf("yahoo.co")&&(o=",p,ei,"),o&&u)))){if((e=u.split("&"))&&1<e.length){for(r=0;r<e.length;r++)i=e[r],n=i.indexOf("="),0<n&&0<=o.indexOf(","+i.substring(0,n)+",")?a+=(a?"&":"")+i:f+=(f?"&":"")+i;a&&f?u=a+"&"+f:f=""}n=253-(u.length-f.length)-t.length,e=t+(0<n?s.substring(0,n):"")+"?"+u}return e},e.Wa=function(t){var n=e.d.visibilityState,r=["webkitvisibilitychange","visibilitychange"];n||(n=e.d.webkitVisibilityState);if(n&&"prerender"==n){if(t)for(n=0;n<r.length;n++)e.d.addEventListener(r[n],function(){var n=e.d.visibilityState;n||(n=e.d.webkitVisibilityState),"visible"==n&&t()});return!1}return!0},e.da=!1,e.I=!1,e.eb=function(){e.I=!0,e.j()},e.ba=!1,e.U=!1,e.$a=function(t){e.marketingCloudVisitorID=t,e.U=!0,e.j()},e.ea=!1,e.V=!1,e.fb=function(t){e.visitorOptedOut=t,e.V=!0,e.j()},e.Y=!1,e.R=!1,e.Sa=function(t){e.analyticsVisitorID=t,e.R=!0,e.j()},e.aa=!1,e.T=!1,e.Ua=function(t){e.audienceManagerLocationHint=t,e.T=!0,e.j()},e.Z=!1,e.S=!1,e.Ta=function(t){e.audienceManagerBlob=t,e.S=!0,e.j()},e.Va=function(t){return e.maxDelay||(e.maxDelay=250),e.p("_d")?(t&&setTimeout(function(){t()},e.maxDelay),!1):!0},e.ca=!1,e.H=!1,e.va=function(){e.H=!0,e.j()},e.isReadyToTrack=function(){var t=!0,r=e.visitor,i,s,o;return e.da||e.I||(e.Wa(e.eb)?e.I=!0:e.da=!0),e.da&&!e.I?!1:(r&&r.isAllowed()&&(e.ba||e.marketingCloudVisitorID||!r.getMarketingCloudVisitorID||(e.ba=!0,e.marketingCloudVisitorID=r.getMarketingCloudVisitorID([e,e.$a]),e.marketingCloudVisitorID&&(e.U=!0)),e.ea||e.visitorOptedOut||!r.isOptedOut||(e.ea=!0,e.visitorOptedOut=r.isOptedOut([e,e.fb]),e.visitorOptedOut!=n&&(e.V=!0)),e.Y||e.analyticsVisitorID||!r.getAnalyticsVisitorID||(e.Y=!0,e.analyticsVisitorID=r.getAnalyticsVisitorID([e,e.Sa]),e.analyticsVisitorID&&(e.R=!0)),e.aa||e.audienceManagerLocationHint||!r.getAudienceManagerLocationHint||(e.aa=!0,e.audienceManagerLocationHint=r.getAudienceManagerLocationHint([e,e.Ua]),e.audienceManagerLocationHint&&(e.T=!0)),e.Z||e.audienceManagerBlob||!r.getAudienceManagerBlob||(e.Z=!0,e.audienceManagerBlob=r.getAudienceManagerBlob([e,e.Ta]),e.audienceManagerBlob&&(e.S=!0)),t=e.ba&&!e.U&&!e.marketingCloudVisitorID,r=e.Y&&!e.R&&!e.analyticsVisitorID,i=e.aa&&!e.T&&!e.audienceManagerLocationHint,s=e.Z&&!e.S&&!e.audienceManagerBlob,o=e.ea&&!e.V,t=t||r||i||s||o?!1:!0),e.ca||e.H||(e.Va(e.va)?e.H=!0:e.ca=!0),e.ca&&!e.H&&(t=!1),t)},e.o=n,e.u=0,e.callbackWhenReadyToTrack=function(t,r,i){var s;s={},s.jb=t,s.ib=r,s.gb=i,e.o==n&&(e.o=[]),e.o.push(s),0==e.u&&(e.u=setInterval(e.j,100))},e.j=function(){var t;if(e.isReadyToTrack()&&(e.cb(),e.o!=n))for(;0<e.o.length;)t=e.o.shift(),t.ib.apply(t.jb,t.gb)},e.cb=function(){e.u&&(clearInterval(e.u),e.u=0)},e.Ya=function(t){var r,i,s=n,o=n;if(!e.isReadyToTrack()){r=[];if(t!=n)for(i in s={},t)s[i]=t[i];return o={},e.Qa(o,!0),r.push(s),r.push(o),e.callbackWhenReadyToTrack(e,e.track,r),!0}return!1},e.qb=function(){var t=e.cookieRead("s_fid"),n="",r="",i;i=8;var s=4;if(!t||0>t.indexOf("-")){for(t=0;16>t;t++)i=Math.floor(Math.random()*i),n+="0123456789ABCDEF".substring(i,i+1),i=Math.floor(Math.random()*s),r+="0123456789ABCDEF".substring(i,i+1),i=s=16;t=n+"-"+r}return e.cookieWrite("s_fid",t,1)||(t=0),t},e.t=e.track=function(n,i){var s,o=new Date,u="s"+Math.floor(o.getTime()/108e5)%10+Math.floor(1e13*Math.random()),a=o.getYear(),a="t="+e.escape(o.getDate()+"/"+o.getMonth()+"/"+(1900>a?a+1900:a)+" "+o.getHours()+":"+o.getMinutes()+":"+o.getSeconds()+" "+o.getDay()+" "+o.getTimezoneOffset());e.visitor&&(e.visitor.getAuthState&&(e.authState=e.visitor.getAuthState()),!e.supplementalDataID&&e.visitor.getSupplementalDataID&&(e.supplementalDataID=e.visitor.getSupplementalDataID("AppMeasurement:"+e._in,e.expectSupplementalData?!1:!0))),e.p("_s"),e.Ya(n)||(i&&e.Q(i),n&&(s={},e.Qa(s,0),e.Q(n)),e.wb()&&!e.visitorOptedOut&&(e.analyticsVisitorID||e.marketingCloudVisitorID||(e.fid=e.qb()),e.Bb(),e.usePlugins&&e.doPlugins&&e.doPlugins(e),e.account&&(e.abort||(e.trackOffline&&!e.timestamp&&(e.timestamp=Math.floor(o.getTime()/1e3)),o=t.location,e.pageURL||(e.pageURL=o.href?o.href:o),e.referrer||e.Ra||(e.referrer=r.document.referrer),e.Ra=1,e.referrer=e.ob(e.referrer),e.p("_g")),e.tb()&&!e.abort&&(e.ub(),a+=e.sb(),e.Ab(u,a),e.p("_t"),e.referrer=""))),n&&e.Q(s,1)),e.abort=e.supplementalDataID=e.timestamp=e.pageURLRest=e.linkObject=e.clickObject=e.linkURL=e.linkName=e.linkType=t.s_objectID=e.pe=e.pev1=e.pev2=e.pev3=e.e=e.lightProfileID=0},e.tl=e.trackLink=function(t,n,r,i,s){return e.linkObject=t,e.linkType=n,e.linkName=r,s&&(e.l=t,e.A=s),e.track(i)},e.trackLight=function(t,n,r,i){return e.lightProfileID=t,e.lightStoreForSeconds=n,e.lightIncrementBy=r,e.track(i)},e.clearVars=function(){var t,n;for(t=0;t<e.g.length;t++)if(n=e.g[t],"prop"==n.substring(0,4)||"eVar"==n.substring(0,4)||"hier"==n.substring(0,4)||"list"==n.substring(0,4)||"channel"==n||"events"==n||"eventList"==n||"products"==n||"productList"==n||"purchaseID"==n||"transactionID"==n||"state"==n||"zip"==n||"campaign"==n)e[n]=void 0},e.tagContainerMarker="",e.Ab=function(t,n){var r,i=e.trackingServer;r="";var s=e.dc,o="sc.",u=e.visitorNamespace;i?e.trackingServerSecure&&e.ssl&&(i=e.trackingServerSecure):(u||(u=e.account,i=u.indexOf(","),0<=i&&(u=u.substring(0,i)),u=u.replace(/[^A-Za-z0-9]/g,"")),r||(r="2o7.net"),s=s?(""+s).toLowerCase():"d1","2o7.net"==r&&("d1"==s?s="112":"d2"==s&&(s="122"),o=""),i=u+"."+s+"."+o+r),r=e.ssl?"https://":"http://",s=e.AudienceManagement&&e.AudienceManagement.isReady()||0!=e.usePostbacks,r+=i+"/b/ss/"+e.account+"/"+(e.mobile?"5.":"")+(s?"10":"1")+"/JS-"+e.version+(e.Eb?"T":"")+(e.tagContainerMarker?"-"+e.tagContainerMarker:"")+"/"+t+"?AQB=1&ndh=1&pf=1&"+(s?"callback=s_c_il["+e._in+"].doPostbacks&et=1&":"")+n+"&AQE=1",e.mb(r),e.ja()},e.Pa=/{(%?)(.*?)(%?)}/,e.Ib=RegExp(e.Pa.source,"g"),e.nb=function(t){if("object"==typeof t.dests)for(var n=0;n<t.dests.length;++n)if(o=t.dests[n],"string"==typeof o.c&&"aa."==o.id.substr(0,3))for(var r=o.c.match(e.Ib),n=0;n<r.length;++n){match=r[n];var i=match.match(e.Pa),s="";"%"==i[1]&&"timezone_offset"==i[2]?s=(new Date).getTimezoneOffset():"%"==i[1]&&"timestampz"==i[2]&&(s=e.rb()),o.c=o.c.replace(match,e.escape(s))}},e.rb=function(){var t=new Date,n=new Date(6e4*Math.abs(t.getTimezoneOffset()));return e.k(4,t.getFullYear())+"-"+e.k(2,t.getMonth()+1)+"-"+e.k(2,t.getDate())+"T"+e.k(2,t.getHours())+":"+e.k(2,t.getMinutes())+":"+e.k(2,t.getSeconds())+(0<t.getTimezoneOffset()?"-":"+")+e.k(2,n.getUTCHours())+":"+e.k(2,n.getUTCMinutes())},e.k=function(e,t){return(Array(e+1).join(0)+t).slice(-e)},e.ra={},e.doPostbacks=function(t){if("object"==typeof t)if(e.nb(t),"object"==typeof e.AudienceManagement&&"function"==typeof e.AudienceManagement.isReady&&e.AudienceManagement.isReady()&&"function"==typeof e.AudienceManagement.passData)e.AudienceManagement.passData(t);else if("object"==typeof t&&"object"==typeof t.dests)for(var n=0;n<t.dests.length;++n)dest=t.dests[n],"object"==typeof dest&&"string"==typeof dest.c&&"string"==typeof dest.id&&"aa."==dest.id.substr(0,3)&&(e.ra[dest.id]=new Image,e.ra[dest.id].alt="",e.ra[dest.id].src=dest.c)},e.mb=function(t){e.i||e.vb(),e.i.push(t),e.la=e.C(),e.Na()},e.vb=function(){e.i=e.xb(),e.i||(e.i=[])},e.xb=function(){var n,r;if(e.qa()){try{(r=t.localStorage.getItem(e.oa()))&&(n=t.JSON.parse(r))}catch(i){}return n}},e.qa=function(){var n=!0;return e.trackOffline&&e.offlineFilename&&t.localStorage&&t.JSON||(n=!1),n},e.Ea=function(){var t=0;return e.i&&(t=e.i.length),e.q&&t++,t},e.ja=function(){if(e.q&&(e.B&&e.B.complete&&e.B.F&&e.B.ua(),e.q))return;e.Fa=n;if(e.pa)e.la>e.N&&e.La(e.i),e.ta(500);else{var t=e.hb();if(0<t)e.ta(t);else if(t=e.Ba())e.q=1,e.zb(t),e.Db(t)}},e.ta=function(t){e.Fa||(t||(t=0),e.Fa=setTimeout(e.ja,t))},e.hb=function(){var t;return!e.trackOffline||0>=e.offlineThrottleDelay?0:(t=e.C()-e.Ka,e.offlineThrottleDelay<t?0:e.offlineThrottleDelay-t)},e.Ba=function(){if(0<e.i.length)return e.i.shift()},e.zb=function(t){if(e.debugTracking){var n="AppMeasurement Debug: "+t;t=t.split("&");var r;for(r=0;r<t.length;r++)n+="\n	"+e.unescape(t[r]);e.yb(n)}},e.Za=function(){return e.marketingCloudVisitorID||e.analyticsVisitorID},e.X=!1;var a;try{a=JSON.parse('{"x":"y"}')}catch(f){a=null}a&&"y"==a.x?(e.X=!0,e.W=function(e){return JSON.parse(e)}):t.$&&t.$.parseJSON?(e.W=function(e){return t.$.parseJSON(e)},e.X=!0):e.W=function(){return null},e.Db=function(r){var i,s,o;e.Za()&&2047<r.length&&("undefined"!=typeof XMLHttpRequest&&(i=new XMLHttpRequest,"withCredentials"in i?s=1:i=0),i||"undefined"==typeof XDomainRequest||(i=new XDomainRequest,s=2),i&&(e.AudienceManagement&&e.AudienceManagement.isReady()||0!=e.usePostbacks)&&(e.X?i.xa=!0:i=0)),!i&&e.Oa&&(r=r.substring(0,2047)),!i&&e.d.createElement&&(0!=e.usePostbacks||e.AudienceManagement&&e.AudienceManagement.isReady())&&(i=e.d.createElement("SCRIPT"))&&"async"in i&&((o=(o=e.d.getElementsByTagName("HEAD"))&&o[0]?o[0]:e.d.body)?(i.type="text/javascript",i.setAttribute("async","async"),s=3):i=0),i||(i=new Image,i.alt="",i.abort||"undefined"==typeof t.InstallTrigger||(i.abort=function(){i.src=n})),i.za=function(){try{i.F&&(clearTimeout(i.F),i.F=0)}catch(e){}},i.onload=i.ua=function(){i.za(),e.lb(),e.fa(),e.q=0,e.ja();if(i.xa){i.xa=!1;try{e.doPostbacks(e.W(i.responseText))}catch(t){}}},i.onabort=i.onerror=i.Ca=function(){i.za(),(e.trackOffline||e.pa)&&e.q&&e.i.unshift(e.kb),e.q=0,e.la>e.N&&e.La(e.i),e.fa(),e.ta(500)},i.onreadystatechange=function(){4==i.readyState&&(200==i.status?i.ua():i.Ca())},e.Ka=e.C();if(1==s||2==s){var u=r.indexOf("?");o=r.substring(0,u),u=r.substring(u+1),u=u.replace(/&callback=[a-zA-Z0-9_.\[\]]+/,""),1==s?(i.open("POST",o,!0),i.send(u)):2==s&&(i.open("POST",o),i.send(u))}else if(i.src=r,3==s){if(e.Ia)try{o.removeChild(e.Ia)}catch(a){}o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),e.Ia=e.B}i.F=setTimeout(function(){i.F&&(i.complete?i.ua():(e.trackOffline&&i.abort&&i.abort(),i.Ca()))},5e3),e.kb=r,e.B=t["s_i_"+e.replace(e.account,",","_")]=i;if(e.useForcedLinkTracking&&e.J||e.A)e.forcedLinkTrackingTimeout||(e.forcedLinkTrackingTimeout=250),e.ga=setTimeout(e.fa,e.forcedLinkTrackingTimeout)},e.lb=function(){if(e.qa()&&!(e.Ja>e.N))try{t.localStorage.removeItem(e.oa()),e.Ja=e.C()}catch(n){}},e.La=function(n){if(e.qa()){e.Na();try{t.localStorage.setItem(e.oa(),t.JSON.stringify(n)),e.N=e.C()}catch(r){}}},e.Na=function(){if(e.trackOffline){if(!e.offlineLimit||0>=e.offlineLimit)e.offlineLimit=10;for(;e.i.length>e.offlineLimit;)e.Ba()}},e.forceOffline=function(){e.pa=!0},e.forceOnline=function(){e.pa=!1},e.oa=function(){return e.offlineFilename+"-"+e.visitorNamespace+e.account},e.C=function(){return(new Date).getTime()},e.Ga=function(e){return e=e.toLowerCase(),0!=e.indexOf("#")&&0!=e.indexOf("about:")&&0!=e.indexOf("opera:")&&0!=e.indexOf("javascript:")?!0:!1},e.setTagContainer=function(t){var n,r,i;e.Eb=t;for(n=0;n<e._il.length;n++)if((r=e._il[n])&&"s_l"==r._c&&r.tagContainerName==t){e.Q(r);if(r.lmq)for(n=0;n<r.lmq.length;n++)i=r.lmq[n],e.loadModule(i.n);if(r.ml)for(i in r.ml)if(e[i])for(n in t=e[i],i=r.ml[i],i)!Object.prototype[n]&&("function"!=typeof i[n]||0>(""+i[n]).indexOf("s_c_il"))&&(t[n]=i[n]);if(r.mmq)for(n=0;n<r.mmq.length;n++)i=r.mmq[n],e[i.m]&&(t=e[i.m],t[i.f]&&"function"==typeof t[i.f]&&(i.a?t[i.f].apply(t,i.a):t[i.f].apply(t)));if(r.tq)for(n=0;n<r.tq.length;n++)e.track(r.tq[n]);r.s=e;break}},e.Util={urlEncode:e.escape,urlDecode:e.unescape,cookieRead:e.cookieRead,cookieWrite:e.cookieWrite,getQueryParam:function(n,r,i){var s;return r||(r=e.pageURL?e.pageURL:t.location),i||(i="&"),n&&r&&(r=""+r,s=r.indexOf("?"),0<=s&&(r=i+r.substring(s+1)+i,s=r.indexOf(i+n+"="),0<=s&&(r=r.substring(s+i.length+n.length+1),s=r.indexOf(i),0<=s&&(r=r.substring(0,s)),0<r.length)))?e.unescape(r):""}},e.G="supplementalDataID timestamp dynamicVariablePrefix visitorID marketingCloudVisitorID analyticsVisitorID audienceManagerLocationHint authState fid vmk visitorMigrationKey visitorMigrationServer visitorMigrationServerSecure charSet visitorNamespace cookieDomainPeriods fpCookieDomainPeriods cookieLifetime pageName pageURL referrer contextData currencyCode lightProfileID lightStoreForSeconds lightIncrementBy retrieveLightProfiles deleteLightProfiles retrieveLightData".split(" "),e.g=e.G.concat("purchaseID variableProvider channel server pageType transactionID campaign state zip events events2 products audienceManagerBlob tnt".split(" ")),e.ma="timestamp charSet visitorNamespace cookieDomainPeriods cookieLifetime contextData lightProfileID lightStoreForSeconds lightIncrementBy".split(" "),e.O=e.ma.slice(0),e.wa="account allAccounts debugTracking visitor visitorOptedOut trackOffline offlineLimit offlineThrottleDelay offlineFilename usePlugins doPlugins configURL visitorSampling visitorSamplingGroup linkObject clickObject linkURL linkName linkType trackDownloadLinks trackExternalLinks trackClickMap trackInlineStats linkLeaveQueryString linkTrackVars linkTrackEvents linkDownloadFileTypes linkExternalFilters linkInternalFilters useForcedLinkTracking forcedLinkTrackingTimeout trackingServer trackingServerSecure ssl abort mobile dc lightTrackVars maxDelay expectSupplementalData usePostbacks AudienceManagement".split(" ");for(i=0;250>=i;i++)76>i&&(e.g.push("prop"+i),e.O.push("prop"+i)),e.g.push("eVar"+i),e.O.push("eVar"+i),6>i&&e.g.push("hier"+i),4>i&&e.g.push("list"+i);i="pe pev1 pev2 pev3 latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage pageURLRest".split(" "),e.g=e.g.concat(i),e.G=e.G.concat(i),e.ssl=0<=t.location.protocol.toLowerCase().indexOf("https"),e.charSet="UTF-8",e.contextData={},e.offlineThrottleDelay=0,e.offlineFilename="AppMeasurement.offline",e.Ka=0,e.la=0,e.N=0,e.Ja=0,e.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx",e.w=t,e.d=t.document;try{if(e.Oa=!1,navigator){var c=navigator.userAgent;if("Microsoft Internet Explorer"==navigator.appName||0<=c.indexOf("MSIE ")||0<=c.indexOf("Trident/")&&0<=c.indexOf("Windows NT 6"))e.Oa=!0}}catch(p){}e.fa=function(){e.ga&&(t.clearTimeout(e.ga),e.ga=n),e.l&&e.J&&e.l.dispatchEvent(e.J),e.A&&("function"==typeof e.A?e.A():e.l&&e.l.href&&(e.d.location=e.l.href)),e.l=e.J=e.A=0},e.Ma=function(){e.b=e.d.body,e.b?(e.v=function(n){var r,i,s,o,u;if(!(e.d&&e.d.getElementById("cppXYctnr")||n&&n["s_fe_"+e._in])){if(e.ya){if(!e.useForcedLinkTracking){e.b.removeEventListener("click",e.v,!0),e.ya=e.useForcedLinkTracking=0;return}e.b.removeEventListener("click",e.v,!1)}else e.useForcedLinkTracking=0;e.clickObject=n.srcElement?n.srcElement:n.target;try{if(!e.clickObject||e.M&&e.M==e.clickObject||!(e.clickObject.tagName||e.clickObject.parentElement||e.clickObject.parentNode))e.clickObject=0;else{var a=e.M=e.clickObject;e.ka&&(clearTimeout(e.ka),e.ka=0),e.ka=setTimeout(function(){e.M==a&&(e.M=0)},1e4),s=e.Ea(),e.track();if(s<e.Ea()&&e.useForcedLinkTracking&&n.target){for(o=n.target;o&&o!=e.b&&"A"!=o.tagName.toUpperCase()&&"AREA"!=o.tagName.toUpperCase();)o=o.parentNode;if(o&&(u=o.href,e.Ga(u)||(u=0),i=o.target,n.target.dispatchEvent&&u&&(!i||"_self"==i||"_top"==i||"_parent"==i||t.name&&i==t.name))){try{r=e.d.createEvent("MouseEvents")}catch(f){r=new t.MouseEvent}if(r){try{r.initMouseEvent("click",n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget)}catch(l){r=0}r&&(r["s_fe_"+e._in]=r.s_fe=1,n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),n.preventDefault(),e.l=n.target,e.J=r)}}}}}catch(c){e.clickObject=0}}},e.b&&e.b.attachEvent?e.b.attachEvent("onclick",e.v):e.b&&e.b.addEventListener&&(navigator&&(0<=navigator.userAgent.indexOf("WebKit")&&e.d.createEvent||0<=navigator.userAgent.indexOf("Firefox/2")&&t.MouseEvent)&&(e.ya=1,e.useForcedLinkTracking=1,e.b.addEventListener("click",e.v,!0)),e.b.addEventListener("click",e.v,!1))):setTimeout(e.Ma,30)},e.Ma(),e.loadModule("ActivityMap")}function u(e){var t,n=window.s_c_il,r,i,o=e.split(","),u,a,f=0;if(n)for(r=0;!f&&r<n.length;){t=n[r];if("s_c"==t._c&&(t.account||t.oun))if(t.account&&t.account==e)f=1;else for(i=t.account?t.account:t.oun,i=t.allAccounts?t.allAccounts:i.split(","),u=0;u<o.length;u++)for(a=0;a<i.length;a++)o[u]==i[a]&&(f=1);r++}return f||(t=new s),t.setAccount?t.setAccount(e):t.sa&&t.sa(e),t}function a(){var e=window,t=e.s_giq,n,r,i;if(t)for(n=0;n<t.length;n++)r=t[n],i=u(r.oun),i.setAccount(r.un),i.setTagContainer(r.tagContainerName);e.s_giq=0}window.Visitor=e,e.getInstance=function(t,n){var r,i=window.s_c_il,s;0>t.indexOf("@")&&(t+="@AdobeOrg");if(i)for(s=0;s<i.length;s++)if((r=i[s])&&"Visitor"==r._c&&r.marketingCloudOrgID==t)return r;return new e(t,n)},function(){function e(){t.$=n}var t=window.Visitor,n=t.La,r=t.Ja;n||(n=!0),r||(r=!1),window.addEventListener?window.addEventListener("load",e):window.attachEvent&&window.attachEvent("onload",e),t.bb=(new Date).getTime()}();var t=window.location.hostname.match(/\.com\.au$/)?-3:-2,n=window.location.hostname.split(".").slice(t).join("."),r=e.getInstance("50AB0C3A53DB1B290A490D4D@AdobeOrg",{trackingServer:"omni.nine.com.au",trackingServerSecure:"somni.nine.com.au",marketingCloudServer:"omni.nine.com.au",marketingCloudServerSecure:"somni.nine.com.au",cookieDomain:n});return s.getInstance=u,window.s_objectID||(window.s_objectID=0),a(),window.AppMeasurement=s,u},t=null;return function(){function r(e,r,i){var s=t(e,r,i);return n(s),s}return t||(t=e()),{s_gi:r}}}),define("ninemsn/portal/common/tracking/common/browser",["jquery"],function(e){return{getDocument:function(){return document},getHeight:function(){return e(window).height()},getHostname:function(){return window.location.host},getHref:function(){return window.location.href},getLocation:function(){return window.location},getProtocolHostAndPathname:function(){return window.location.protocol+"//"+window.location.host+window.location.pathname},getReferrer:function(){return document.referrer},getScreen:function(){return window.screen},getWidth:function(){return e(window).width()},getProtocol:function(){return window.location.protocol},getPerformance:function(){return window.performance}}}),define("ninemsn/portal/common/tracking/omniture/config",["ninemsn/portal/common/configuration","ninemsn/portal/common/tracking/common/browser"],function(e,t){return e.create({hierarchy:{},omniture:{company:"ninemsn",currencyCode:"AUD",experience:"desktop",language:"en-au",suiteId:"msnportalaumisc",trackingServer:"omni.nine.com.au",trackingServerSecure:"somni.nine.com.au",videoSuiteId:"msnportalenauvideo",visitorNamespace:"msnportal",enabled:!0}})}),define("ninemsn/portal/common/tracking/common/hierarchyBuilder",["jquery"],function(e){var t=function(e){return e},n=function(n){return e.grep(n,t)},r=function(e){if(e!==null&&e!==undefined&&e!==""){e=e.replace(/>/g,"&gt;"),e=e.replace(/</g,"&lt;"),e=e.replace(/[\t\r\n]/g,""),e=e.replace(/[:|]/g,""),e=e.replace(/[^\x00-\x7F]/g,""),e=e.toLowerCase();while(e.lastIndexOf("\\")===e.length-1&&e.length>0)e=e.slice(0,e.length-1)}else e=undefined;return e},i=function(n,r){var i=function(e){var t=!0;return function(n){return t=t&&!!e(n),t}};return e.grep(n,i(r||t))},s=function(e,t,r){var i=r?r+"-"+t:t;return n(e.concat(i)).join(":")},o=function(e){var t=r(e.category)||"unknown",n=r(e.site)||"unknown",o=r(e.section),u=r(e.subsection),a=r(e.division),f=r(e.pageName)||"default",l=[].concat(t,n,i([o,u,a])),c=r(e.contentType),h=s(l,f,c);return{category:t,site:n,section:o,subsection:u,division:a,pageName:f,hierarchy:l,hierarchyWithPageName:h}};return{generateHierarchy:function(e){return o(e)},generateHierarchyWithPageName:function(e){return o(e).hierarchyWithPageName},removeFalsy:n,removeInvalidCharacters:r}}),define("ninemsn/portal/common/tracking/common/UrlParser",[],function(){return function(e){this.getParameter=function(t){var n=new RegExp("[\\?&]"+t+"=([^&#]*)","i"),r=n.exec(e);return r!==null&&(r=decodeURIComponent(r[1].replace(/\+/g," "))),r}}}),define("ninemsn/portal/common/tracking/omniture/time",[],function(){var e=function(e,t){var n=e>=12?"PM":"AM";return e-=e>12?12:0,t-=t%30,t<10&&(t="0"+t),e+":"+t+n};return{inAest:function(t){var n=new Date(t),r=n.getUTCHours(),i=n.getUTCMinutes(),s=(r+10)%24,o=i;return e(s,o)}}}),define("ninemsn/portal/common/tracking/omniture/flash",["swfobject"],function(e){return{flashVersion:function(){var t=e.getFlashPlayerVersion();return[t.major,t.minor,t.release].join(".")}}}),define("ninemsn/portal/common/tracking/omniture/referrers",[],function(){var e=[{regex:/^google\./i,name:"google",type:"search"},{regex:/^bing\./i,name:"bing",type:"search"},{regex:/^yahoo\./i,name:"yahoo",type:"search"},{regex:/^facebook\./i,name:"facebook",type:"social"},{regex:/^twitter\./i,name:"twitter",type:"social"},{regex:/^tumblr\./i,name:"tumblr",type:"social"},{regex:/^stumbleupon\./i,name:"stumbleupon",type:"social"},{regex:/^linkedin\./i,name:"linkedin",type:"social"},{regex:/^t\.co$/i,name:"t.co",type:"social"}],t=function(e){return(e||"").toLowerCase().replace("www.","").split("?")[0].split(/\/+/g)[1]};return{getTrackingDetails:function(n){var r,i=t(n);for(r=0;r<e.length;r+=1)if(e[r].regex.exec(i))return{name:e[r].name,type:e[r].type,domain:i};return{}}}}),define("ninemsn/portal/common/tracking/omniture/trackingProperties",["ninemsn/portal/common/tracking/common/hierarchyBuilder","ninemsn/portal/common/tracking/common/browser","ninemsn/portal/common/tracking/common/UrlParser","ninemsn/portal/common/tracking/omniture/time","ninemsn/portal/common/tracking/omniture/flash","ninemsn/portal/common/tracking/omniture/referrers","jquery"],function(e,t,n,r,i,s,o){var u="|i:",a="|e:",f="|u:",l="|d:",c=function(e){return(e||"").toLowerCase().replace("www.","").split("?")[0].split(/\/+/g)[1]},h=function(e){return e.indexOf("http://")===0||e.indexOf("https://")===0};return{cleanObject:function(t){var n={};return o.each(t,function(t,r){n[t]=e.removeInvalidCharacters(r)}),n},generate:function(o){var p=o.hierarchy,d=o.omniture,v=e.generateHierarchy({category:d.category,site:p.site,section:p.section,subsection:p.subsection,division:p.division,pageName:p.pageName,contentType:d.contentType}),m=v.category,g=v.section,y=v.site,b=v.subsection,w=v.division,E=e.removeInvalidCharacters(d.contentType),S=u+y,x=g?a+g:"",T=g&&b?f+b:"",N=g&&b&&w?l+w:"",C=p.referrerUrl&&h(p.referrerUrl)?p.referrerUrl:undefined,k=C?s.getTrackingDetails(C):s.getTrackingDetails(t.getReferrer()),L=p.pageUrl&&h(p.pageUrl)?p.pageUrl:undefined,A=L?new n(L):new n(t.getHref()),O=A.getParameter("ocid"),M=A.getParameter("cmp"),_=A.getParameter("mch");return{category:m,cmpCampaign:M,company:e.removeInvalidCharacters(d.company),cobrand:e.removeInvalidCharacters(d.cobrand),contentHierarchy:E?m+":"+y+"|"+E+"|"+v.pageName:undefined,contentType:E,currencyCode:d.currencyCode,experience:e.removeInvalidCharacters(d.experience),flashVersion:d.trackFlashVersion?i.flashVersion():undefined,hierarchy:e.removeFalsy(v.hierarchy).join("|"),hostName:L?c(L):t.getHostname(),language:d.language,pageName:v.pageName,pageNamePath:v.hierarchyWithPageName,prefixedHierarchy:S+x+T+N,mchCampaign:_,ocidCampaign:O,referrerDomain:k.domain,referrerName:k.name,searchProvider:k.type==="search"?k.domain:undefined,section:g,sectionPath:g?[m,y,g].join(":"):undefined,site:y,sitePath:[m,y].join(":"),subsection:b,subsectionPath:b&&g?[m,y,g,b].join(":"):undefined,division:w,divisionPath:w&&b&&g?[m,y,g,b,w].join(":"):undefined,sydneyTime:r.inAest((new Date).getTime()),url:L||t.getProtocolHostAndPathname(),overridePageUrlEvent:L?!0:!1,referrer:C||t.getReferrer(),sso:d.sso,itemId:d.itemId}}}}),define("ninemsn/portal/common/tracking/omniture/trackingVideoProperties",["ninemsn/portal/common/tracking/common/browser"],function(e){return{generate:function(t){var n;t.id?n=t.referenceId+"^"+t.title:n="unknown";var r={pageName:n,title:t.title,sourceId:t.sourceId,genre:t.genre,adapter:t.adapter,hostName:e.getHostname(),account:t.account,type:t.type,playerTrigger:"pb",provider:t.provider,pageHref:e.getHref(),fullHierarchy:[t.account].concat(t.hierarchy).concat([e.getHostname()]).join("^"),id:t.id,streamType:t.type+(t.livestream?":live":"")};switch(t.eventType){case"video:load":r.events="event3,event5="+t.duration,r.playbackStatus="playback:contentstart";break;case"video:progress":if(t.progress!==50)return null;r.events="event6",r.playbackStatus="playback:content50";break;case"video:stop":r.events="event7",r.playbackStatus="playback:contentend";break;case"ad:load":r.events="event8,event10="+t.ad.duration,r.playbackStatus="playback:adstart";break;case"ad:stop":r.events="event11",r.playbackStatus="playback:adend";break;default:return null}return r}}}),define("ninemsn/portal/common/tracking/omniture",["ninemsn/portal/common/tracking/omniture/api","jquery","ninemsn/portal/common/tracking/omniture/config","ninemsn/portal/common/tracking/omniture/trackingProperties","ninemsn/portal/common/tracking/omniture/trackingVideoProperties"],function(e,t,n,r,i){var s={share:"event2,event57",comments:"event2,event58",videostart:"event2,event7",customLink:"event2"},o=function(t){var n=t.omniture,r=e().s_gi(n.suiteId);return delete window.s_PPVevent,r.visitorNamespace=n.visitorNamespace,r.trackingServer=n.trackingServer,r.trackingServerSecure=n.trackingServerSecure,r.cookieDomainPeriods=window.location.hostname.indexOf(".com.au")>-1||window.location.hostname.indexOf(".co.nz")>-1?"3":"2",r},u=function(e,n){if(n.indexOf("contextData")===0){var r=[];return t.each(e,function(e,t){r.push(n.concat(".",e))}),r.join(",")}var i=n.indexOf("prop")===0||n.indexOf("eVar")===0&&e||n==="products"||n==="events";return i?n:null},a=function(e,n){return t.map(e,u).concat(n||[]).join(",")},f=function(e,t,n){var r=e.c_r(t);return n&&e.c_w(t,n,0),r===n?undefined:n},l=function(e,t){var n={ocid:f(e,"s_campaign",t.ocidCampaign),cmp:f(e,"s_cmp",t.cmpCampaign),mch:t.mchCampaign};if(!n.cmp||!n.mch)n.cmp=undefined,n.mch=undefined;return n.name=n.ocid||n.cmp,n},c=function(e,i){n().done(function(n){var o=r.generate(n),u={events:s.videostart,eVar5:o.pageNamePath,eVar21:i.id,linkTrackVars:"events,eVar5,eVar21",linkTrackEvents:s.videostart};t.extend(e,u),e.sa(n.omniture.suiteId),e.tl(!0,"o","video:load"),e.events=e.eVar21=e.eVar5=e.linkTrackEvents=e.linkTrackVars=undefined})},h=function(e){var t;for(t=1;t<=75;t+=1)e["eVar"+t]=e["eVar"+t]?"unknown":undefined,e["prop"+t]=e["prop"+t]?"unknown":undefined;e.contextData=e.contextData?{"video.event_type":"unknown"}:undefined},p=function(e,t){return{campaign:e.name,channel:t.sitePath,currencyCode:t.currencyCode,eVar1:e.cmp,eVar2:t.sitePath,eVar3:t.sectionPath,eVar4:t.subsectionPath,eVar9:t.referrerName,eVar10:t.searchProvider,eVar40:e.cmp,eVar41:e.mch,eVar60:t.divisionPath,events:"event1",hier1:t.hierarchy,hier2:t.contentHierarchy,pageName:t.pageNamePath,prop1:t.sectionPath,prop2:t.language,prop3:t.subsectionPath,prop4:t.category,prop5:t.company,prop6:t.cobrand,prop7:t.url,prop10:t.flashVersion,prop14:t.experience,prop21:t.contentType,prop22:t.pageName,prop23:!0,prop26:t.sydneyTime,prop28:t.referrerDomain,prop30:t.referrerName,prop37:t.divisionPath,prop40:e.cmp,prop41:e.mch,prop42:e.ocid,prop57:t.itemId,prop58:t.sso,prop61:t.previousPageName,prop62:t.percentPageViewed,server:t.hostName}},d=function(e){var n=o(e),i=r.generate(e),s=l(n,i);i.previousPageName=n.getPreviousValue(i.pageNamePath,"s_ppn"),i.percentPageViewed=n.getPercentPageViewed();if(!i.previousPageName||i.previousPageName==="no value")i.percentPageViewed="";var u=p(s,i);i.overridePageUrlEvent&&(u.pageURL=i.url),i.referrer&&(u.referrer=i.referrer),h(n),t.extend(n,u),n.t()};return{trackPageLoadEvent:function(){n().done(function(e){d(e)})},trackAdditionalPageLoadEvent:function(e){n().done(function(t){t.omniture.suiteId=e.omniture.suiteId,d(t)})},trackSlideEvent:function(){n().done(function(e){var n=o(e),i=r.generate(e),s=l(n,i),u=p(s,i);u.referrer=i.url,t.extend(n,u),n.t()})},trackSocialEvent:function(e){n().done(function(n){var i=r.generate(n),u=s[e.eventType],f=r.cleanObject(e),l={eVar2:i.sitePath,eVar3:i.sectionPath,eVar4:i.subsectionPath,eVar5:i.pageNamePath,eVar10:f.providerFeature,eVar60:i.divisionPath,eVar49:f.provider,events:u,linkTrackEvents:u,pageName:i.pageNamePath,plugins:"",prop8:i.site+":"+f.provider,trackType:e.customLinkName};l.linkTrackVars=a(l,["products"]);var c=o(n);t.extend(c,l),c.tl(!0,"o",l.trackType)})},trackClickEvent:function(e){n().done(function(n){var i=r.generate(n),u=s.customLink,f={events:u,linkTrackEvents:u,prop8:e.linkName.toLowerCase()+i.prefixedHierarchy,trackType:e.linkName,eVar12:e.destination,eVar13:e.linkName,eVar22:i.pageNamePath,prop58:i.sso};f.linkTrackVars=a(f);var l=o(n);t.extend(l,f),l.tl(!0,"o",f.trackType)})},trackVideoEvent:function(e){n().done(function(n){if(e.adapter==="msn")return;if(e.contextData){var r={contextData:e.contextData};r.linkTrackVars=a(r);var s=o(n);t.extend(s,r),s.tl(!0,"o",e.linkName)}else{var u=i.generate(e);if(!u)return;var f={pageName:u.pageName,eVar14:u.pageName,prop17:u.title,prop4:u.sourceId,eVar4:u.sourceId,eVar20:u.title,prop27:u.genre,prop1:u.adapter,eVar1:u.hostName,prop2:u.account,eVar2:u.account,prop3:u.type,eVar3:u.type,prop6:u.hostName,prop10:u.playerTrigger,prop11:u.provider,eVar11:u.provider,eVar18:u.provider,prop28:u.pageHref,prop30:u.fullHierarchy,eVar30:u.fullHierarchy,prop32:u.id,eVar32:u.id,prop41:u.streamType,events:u.events,prop5:u.playbackStatus,eVar5:u.playbackStatus},l=t.extend(!0,{},n);l.omniture.suiteId=n.omniture.videoSuiteId,delete l.omniture.videoSuiteId;var h=o(l);t.extend(h,f),h.t(),e.eventType==="video:load"&&c(h,e)}})}}}),define("ninemsn/portal/common/tracking/nielsenSiteCensus/api",[],function(){function e(e,t){this.dcrWhiteList=["au-ziffdavis","ziffdavis"],this.pvar=e,this.mergeFeatures(t),this.checkDcr()}function t(t,n){return new e(t,n)}return e.prototype.version="6.0.47",e.prototype.checkDcr=function(){var e=this.pvar.hasOwnProperty("server")&&typeof this.pvar.server!="undefined"?String(this.pvar.server).toLowerCase():"",t=this.pvar.hasOwnProperty("cid")&&typeof this.pvar.cid!="undefined"?String(this.pvar.cid).toLowerCase():"",n=this.pvar.hasOwnProperty("content")&&typeof this.pvar.content!="undefined"&&String(this.pvar.content).length!==0?String(this.pvar.content).toLowerCase():"0";if(e.indexOf("secure-au")!==-1||this.dcrWhiteList.indexOf(t)!==-1){var r=0,i=document.createElement("script"),s={apid:t,sfcode:this.pvar.server.replace("secure-",""),apn:"v60Bsdk",nol_sdkDebug:!1,cdnDomain:"cdn-gl",si:window.location.href.replace(/\"/g,"").replace(/\'/g,"").replace(/%27/g,"").replace(/%22/g,""),nsdkv:"505"},o={type:"static",assetid:n,section:n},u=window.location.protocol||"http:",a=window.location.protocol==="https:"?"//sec":"//",f=s.hasOwnProperty("cdnDomain")&&s.cdnDomain.length>0?s.cdnDomain:"cdn-gl";i.type="text/javascript",i.src=u+a+f+".imrworldwide.com/novms/js/2/ggcmb510.js",i.onload=function(e){if(!window.NOLCMB){this.ggFailCount<10&&setTimeout(initBeacon,500),this.ggFailCount++;return}var t=NOLCMB.getInstance(s.apid);t.ggInitialize(s),setTimeout(function(){t.ggPM("14",o)},2e3)},window.document.head.appendChild(i)}},e.prototype.scriptName=function(){try{var e=document.getElementsByTagName("script"),t=e[e.length-1].getAttribute("src").match(/[^\/]*$/)}catch(n){}return t||"v60-master.js"}(),e.prototype.pmap=[["action","at",0],["campaign","ca",1],["col_depth","cd",0],["conn_type","ct",0],["cookies_enabled","ck",0],["creative","cr",1],["execution","ce",1],["flash","fl",0],["ip_address","ip",0],["is_hp","hp",0],["java_enabled","je",0],["language","lg",0],["ownership","ou",1],["page_url","si",1],["placement","pc",1],["primary_group","pg",1],["referrer","rp",1],["resource","rt",0],["result","rn",1],["result_flag","rf",0],["revenue","rv",0],["sample_size","ss",0],["screen_res","sr",0],["stream_dur","sd",0],["sub_resource","st",0],["survey","sv",1],["tag_source","ts",1],["cookie_overwrite","id",0],["timezone","tz",0]],e.prototype.feat={check_cookie:1,detect_flash:0,detect_technical:1,document_title:0,check_fraud:0,filters:undefined,session_cookie:0,landing_page:1,link_overlay:0,pause_time:500,auto_post:1,sample_rate:1,useLocalStorage:1,surveys_enabled:0},e.prototype.CONST={max_tags:20},e.prototype.record=function(){this.postChk=!1,this.page_url=""+window.location,this.referrer=""+document.referrer;try{if(this.feat.check_fraud&&top.location.href.indexOf(document.domain)===-1)return this.detected_fraud=!0,this;this.detected_fraud=!1}catch(e){return this.detected_fraud=!0,this}this.feat.detect_technical&&(this.java_enabled=navigator.javaEnabled()===!0?"y":"n",document.body.addBehavior&&(document.body.addBehavior("#default#clientCaps"),document.body.addBehavior("#default#homePage"),this.conn_type=document.body.connectionType,this.is_hp=document.body.isHomePage(location.href)?"y":"n"),window.screen&&(this.screen_res=window.screen.width+"x"+window.screen.height,this.col_depth=window.screen.colorDepth),navigator.userLanguage?this.language=navigator.userLanguage:navigator.language&&(this.language=navigator.language),navigator.cookieEnabled&&(this.pvar.cookies_enabled=navigator.cookieEnabled===!0?"y":"n"),this.timezone=(new Date).getTimezoneOffset()/-60);if(this.feat.detect_flash)if(navigator.mimeTypes&&navigator.mimeTypes.length>0){var t="application/x-shockwave-flash";if(navigator.mimeTypes[t]&&navigator.mimeTypes[t].enabledPlugin){var n=this.getVersion(navigator.mimeTypes[t].enabledPlugin.description,1);n&&(this.flash=n)}}else if(window.ActiveXObject)for(var r=15;r>0;r--)try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+r)){this.flash=r;break}}catch(i){}this.feat.link_overlay&&this.regLinkOverlay();try{typeof window.localStorage=="undefined"?this.feat.useLocalStorage=0:(localStorage.cHJpdmF0ZV9icm93c2luZ190ZXN0="private_browsing_test",localStorage.removeItem("cHJpdmF0ZV9icm93c2luZ190ZXN0"))}catch(s){this.feat.useLocalStorage=0}return this.feat.useLocalStorage&&(localstorageframe=[this.getSchemeHost(),"storageframe.html"].join(""),this.iframe(localstorageframe,"LOCSTORAGE")),this},e.prototype.regListen=function(){var e=this;return function(t){if(t.origin.indexOf("imrworldwide.com")!==-1&&(typeof t.data=="string"||t.data instanceof String)&&t.data.indexOf("{")===-1&&t.data!==""){if(typeof localStorage.Y29va2llX293X25hbWUK=="undefined"||!localStorage.Y29va2llX293X25hbWUK||t.data.search(/;JA$/)===-1)e.cookie_overwrite=t.data.replace(/;JA$/,"");else if(typeof localStorage.Y29va2llX293X25hbWUK=="string"||localStorage.Y29va2llX293X25hbWUK instanceof String)e.cookie_overwrite=localStorage.Y29va2llX293X25hbWUK.replace(/;JA$/,"");localStorage.Y29va2llX293X25hbWUK=e.cookie_overwrite}e.postChk&&e.post()}},e.prototype.iframe=function(e,t){try{var n=window.document.createElement("iframe");n.style.width="1px",n.style.height="1px",n.style.position="absolute",n.style.top="-7px",n.style.left="-7px",n.style.border="0",n.src=e,n.setAttribute("id",t),n.setAttribute("scrolling","no"),n.setAttribute("name","empty"),n.setAttribute("hidden","true"),window.document.body.insertBefore(n,window.document.body.firstChild),window.addEventListener?addEventListener("message",this.regListen(),!1):attachEvent("onmessage",this.regListen())}catch(r){throw r.code=r.code?r.code:r.code=1,r}},e.prototype.prefix=function(){var e=arguments[0]&&arguments[0].api?arguments[0].api:"m",t=[this.getSchemeHost(),"cgi-bin/",e,"?","rnd=",(new Date).getTime(),"&ci=",this.pvar.cid,"&js=1"];return e==="m"&&t.push("&cg=",escape(arguments[0]&&arguments[0].content?arguments[0].content:this.pvar.content||"0")),this.scriptName&&t.push("&ts=",this.scriptName),this.version&&t.push("&vn=",this.version),t.join("")},e.prototype.filter=function(e){if(this.feat.filters)for(var t in this.feat.filters)this.feat.filters.hasOwnProperty(t)&&(e=this.feat.filters[t](e));return e},e.prototype.post=function(){if(this.feat.useLocalStorage&&typeof this.cookie_overwrite=="undefined")return this.postChk=!0,this;this.postChk=!1;var e=[this.prefix()];e.push("&cc=",this.feat.check_cookie?"1":"0");if(this.feat.document_title){var t=escape(document.title);t&&e.push("&tl=",t)}if(this.feat.landing_page&&this.referrer&&document.location.search.search(/[&?]nol\./)!==-1){var n=[],r=document.location.search.substring(document.location.search.lastIndexOf("?")+1).split("&");for(var i in r)if(r.hasOwnProperty(i)&&r[i].search(/^nol\./)!==-1)if(r[i].search(/^nol\.redirect/)!==-1)var s=r[i].split("=",2)[1];else n.push("&",r[i]);n.length>0&&(e.push("&lp=1"),e=e.concat(n)),this.page_url=this.page_url.replace(/[&?]nol\..*?=[^&]*/g,"").replace(/&&/g,"&").replace(/\?&/,"?").replace(/[&\?]$/,""),this.referrer.search(/[&?]nol\./)&&(this.referrer=this.referrer.replace(/[&?]nol\..*?=[^&]*/g,"").replace(/&&/g,"&").replace(/\?&/,"?").replace(/[&\?]$/,""))}for(var o=0,u=this.pmap.length;o<u;o++){var a=this.pmap[o][0],f=this.pmap[o][1],l=this.pmap[o][2],c=null;this.pvar[a]?c=this.pvar[a]:this[a]&&(c=this[a]),c&&e.push("&",f,"=",l?escape(c):c)}if(this.pvar.custom){var h=0;for(var p in this.pvar.custom)if(this.pvar.custom.hasOwnProperty(p)){if(h>=this.CONST.max_tags)break;var d=this.pvar.custom[p];e.push("&c",h,"=",escape(p),",",escape(d)),h++}}return this.postData(e.join("")),s&&setTimeout(function(){window.location=s},this.feat.pause_time),this},e.prototype.postEvent=function(){var e=[this.prefix({content:arguments[0].content})],t=arguments[0].page_url||this.pvar.page_url||this.page_url;if(arguments[0].event_type){var n=[arguments[0].event_type,escape(t),escape(this.pvar.page_url||this.page_url)].join("_");e.push("&cc=1","&si=",n,"&rp=",this.previousEventPage||this.page_url),this.cookie_overwrite&&e.push("&id=",this.cookie_overwrite),this.previousEventPage=n}else e.push("&cc=0","&si=",this.pvar.cid,"-ctgw-",escape(t),"&rp=",escape(window.location));return this.postData(e.join("")),this},e.prototype.postLinkTrack=function(){return this.postEvent(arguments[0]),this.pause(this.feat.pause_time),this},e.prototype.postEventTrack=function(){return this.postEvent(arguments[0]),this},e.prototype.postClickTrack=function(){this.postEvent(arguments[0]);if(arguments[0].page_url){var e=arguments[0].page_url;setTimeout(function(){window.location=e},this.feat.pause_time)}return this},e.prototype.linkTrack=function(){this.postLinkTrack({page_url:arguments[0],content:arguments[1]})},e.prototype.eventTrack=function(){this.postEventTrack({page_url:arguments[0],content:arguments[1]})},e.prototype.clickTrack=function(){this.postClickTrack({page_url:arguments[0],content:arguments[1]})},e.prototype.pageEvent=function(){this.postEventTrack({event_type:"page",page_url:arguments[0],content:arguments[1]})},e.prototype.slideEvent=function(){this.postEventTrack({event_type:"slide",page_url:arguments[0],content:arguments[1]})},e.prototype.sectionEvent=function(){this.postEventTrack({event_type:"section",page_url:arguments[0],content:arguments[1]})},e.prototype.downloadEvent=function(){this.postLinkTrack({event_type:"download",page_url:arguments[0],content:arguments[1]})},e.prototype.clickEvent=function(){this.postClickTrack({event_type:"click_link",page_url:arguments[0],content:arguments[1]})},e.prototype.regLinkOverlay=function(){if(!document.getElementById)return;var e=this,t=document.body.onclick;document.body.onclick=function(n){e.catchLinkOverlay(n),t&&t(n)}},e.prototype.sendIt=function(e,t,n,r){var i=[this.prefix(),"&cc=0","&si=",this.pvar.cid,"-ctpo-",escape(unescape(e).replace(/^\s+|\s+$/g,"").replace(/\s+/g," ")),"&rp=",escape(this.pvar.link_url||window.location),"&tt=",escape(t.toLowerCase()),"&cn=",escape(n.toLowerCase()),"&cv=",escape(unescape(r).replace(/^\s+|\s+$/g,"").replace(/\s+/g," "))];this.postData(i.join("")),this.pause(this.feat.pause_time)},e.prototype.sendALink=function(e){var t=e.innerHTML.toLowerCase().indexOf("img")>-1?"image":"text";this.sendIt(e.href,e.tagName,t,e.innerHTML)},e.prototype.sendForm=function(e){if(e.form===null||e.form.action===null)return;var t="";e.type==="image"?t=e.src:e.tagName==="BUTTON"?(t=e.innerHTML,t===""&&(t=e.value)):t=e.value,this.sendIt(e.form.action,e.form.tagName,e.type,t)},e.prototype.catchLinkOverlay=function(e){var t=e?e.target:window.event.srcElement;if(t.tagName!=="INPUT"&&t.tagName!=="BUTTON"||t.type!=="image"&&t.type!=="submit"&&t.type!=="button"){for(;t!==null&&t.tagName!=="BODY";t=t.parentNode)if(t.tagName==="A"&&t.href.length>0){this.sendALink(t);break}}else this.sendForm(t)},e.prototype.invite=function(){if(this.detected_fraud||this.feat.surveys_enabled!==1)return this;var e=[this.prefix({api:"j"}),"&cc=0","&se=",this.feat.surveys_enabled?"1":"0","&te=0"];for(var t=0,n=this.pmap.length;t<n;t++){var r=this.pmap[t][0],i=this.pmap[t][1],s=this.pmap[t][2],o=null;this.pvar[r]?o=this.pvar[r]:this[r]&&(o=this[r]),o&&e.push("&",i,"=",s?escape(o):o)}var u=["<scr",'ipt type="text/javascript" src="',e.join(""),'"></scr',"ipt>"].join("");return document.write(u),this},e.prototype.in_sample=function(){return this.random()<=this.feat.sample_rate},e.prototype.do_sample=function(){return this.in_sample()===!0&&this.invite(),this},e.prototype.postData=function(e){try{if(this.detected_fraud)return;this.feat.filters&&(e=this.filter(e));var t=new Image(1,1);t.onerror=t.onload=function(){t.onerror=t.onload=null},t.src=e}catch(n){}},e.prototype.getVersion=function(e,t){var n=0,r=0;for(var i=0;i<t&&n>=0;i++)n>0&&(r=n+1),n=e.indexOf(".",r);return n>0?e.substring(r,n).match(/\d+$/):null},e.prototype.mergeFeatures=function(e){if(typeof e=="undefined")return;var t={};for(var n in this.feat)typeof e[n]=="undefined"?t[n]=this.feat[n]:t[n]=e[n];this.feat=t},e.prototype.getSchemeHost=function(){var e=[location.protocol.indexOf("https")!==-1?"https://":"http://",this.pvar.server,this.pvar.server.indexOf("imrworldwide.com")===-1?".imrworldwide.com":"","/"];return e.join("")},e.prototype.pause=function(e){if(!window.ActiveXObject){if(navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1)return;var t=(new Date).getTime()+e;while(new Date<t);}},e.prototype.random=function(){var e=714025,t=4096,n=150889;return typeof this.random_seed=="undefined"&&(this.random_seed=(new Date).getTime()%e),this.random_seed=(this.random_seed*t+n)%e,this.random_seed/e},Array.prototype.push||(Array.prototype.push=function(){for(var e=0;e<arguments.length;e++)this[this.length]=arguments[e]}),t}),define("ninemsn/portal/common/tracking/nielsenSiteCensus/config",["ninemsn/portal/common/configuration"],function(e){return e.create({hierarchy:{},nielsenSiteCensus:{cid:"ninemsn",server:"secure-au",content:"0",enabled:!0}})}),define("ninemsn/portal/common/tracking/nielsenSiteCensus",["ninemsn/portal/common/tracking/nielsenSiteCensus/api","ninemsn/portal/common/tracking/nielsenSiteCensus/config","ninemsn/portal/common/tracking/common/browser"],function(e,t,n){var r=function(e){var t=e.nielsenSiteCensus;return t.page_url=String(e.hierarchy.pageUrl).indexOf(n.getLocation().host)>0?e.hierarchy.pageUrl:n.getLocation().protocol+"//"+n.getLocation().host+e.hierarchy.pageUrl,t},i=function(e){return e&&(e.pageUrl&&(e.pageUrl=e.pageUrl.replace(/_/g,"")),e.contentDescription&&(e.contentDescription=e.contentDescription.replace(/_/g,""))),e},s=null,o=function(t){s=e(r(t)),s.record(),s.post(),s.do_sample()},u=function(t){s=s||e(r(t));var n=t.pageUrl||"transitionEventUrl",i=t.contentDescription||"transitionEvent";s.pageEvent(n,i)},a=function(t){s=s||e(r(t));var n=t.pageUrl||"NEWSGALLERY",i=t.contentDescription||0;s.slideEvent(n,i)};return{trackPageLoadEvent:function(){t().done(o)},trackPageTransitionEvent:function(e){t(i(e)).done(u)},trackSlideEvent:function(e){t(i(e)).done(a)}}}),define("ninemsn/portal/common/tracking/nielsenVideoCensus/api",[],function(){function y(){var e=null,t=!1,n=[],r,i=this;this.ggInitialize=function(t,n,u,a){var f,l="";s=t,v=a!=null?a:v,v&&i.detectBrowser();for(f in s)l+="<"+f+">"+s[f]+"</"+f+">";r="genjsplayer",e=new b,e.init(r,n,o,l)},this.detectBrowser=function(){d=!0,m=navigator.userAgent,g=m.indexOf("Firefox"),m!=null&&g>=0&&(bJ=!0,bVer=m.substring(g+8),Number(bVer)<3&&(d=!1)),g=m.indexOf("MSIE"),m!=null&&g>=0&&(bVer=m.substring(g+5),Number(bVer)<6&&(d=!1))},this.ggPM=function(t,r,i,s,o){t=String(t),r=String(r),i=String(i),s=String(s),o=String(o);try{e!=null?e.C(t,(new Date).getTime(),r,i,s,o):(n.push(t),n.push((new Date).getTime()),n.push(r),n.push(i),n.push(s),n.push(o))}catch(u){}},this.ggJsLoaded=function(){if(e==null)return;for(var t=0;t<n.length;t+=6)e.C(n[t],n[t+1],n[t+2],n[t+3],n[t+4],n[t+5]);n=[]}}function b(){function at(e){st.CS[e]=0,st.PA[e]=0,st.PL[e]=0,st.SA[e]=0,st.FA[e]=0,st.FP[e]=0,st.SI[e]=0,st.MI[e]=0,st.SR[e]=0,st.SK[e]=0,st.CI[e]=0,st.DI[e]=0,st.ER[e]=0,st.SV[e]=0,st.SH[e]=0,st.PB[e]=0,st.II[e]=0,st.VL[e]=0,st.PM[e]=0,st.SS[e]=0}function ft(e,t){var n=Number(e),r=Number(t);return n<r?-1:n==r?0:1}function lt(){e=y.split(",");var t=0;for(t=0;t<e.length;t++)if(isNaN(e[t])){var n=e[t].split("%");isNaN(n[0])?e[t]=0:e[t]=Number(n[0])*st.VL[X]/100}e.sort(ft),t=e.length;while(--t>0)while(e[t]==e[t-1])e.splice(t-1,1);e[0]==0&&e.splice(0,1)}function ct(e,t){var n;t==1?n=J:n=$;var r=-1,i=-1;return r=n.indexOf("<"+e+">"),r>=0&&(r+=e.length+2,i=n.indexOf("</"+e+">",r)),r>=0&&i>r?n.substring(r,i):null}function ht(e){var t;if(p==1)t=="";else{t="",K.prod.indexOf("iag")>=0&&(V?t=B:t=H,e==2?t+="&pr=iag.cp,cep":e==1?t="":t+="&pr=iag.cp,soc");if(K.prod.indexOf("vc")>=0)if(e==1)t="&ig=1";else{var n=ct("censuscategory",V);n!=null&&n!=""&&(t+="&cg="+encodeURIComponent(n)),V&&(t+="&c3=st,a"),e!=1&&(V?t+=F:t+=j),t+="&tl="+encodeURIComponent("dav"+e+"-"+st.Title[V].substr(0,128))}else if(K.prod.indexOf("sc")>=0){var n=ct("censuscategory",V);n!=null&&n!=""&&(t+="&cg="+encodeURIComponent(n)),V&&(t+="&c3=st,a"),t+="&ou="+G+"_"+encodeURIComponent(q.substr(0,128));if(e==0)st.VL[V]>0&&(t+="&sd="+Math.round(st.VL[V]));else{var r=Math.round(st.PM[V]);t+="&du="+r}e!=1&&(V?t+=F:t+=j),t+="&tl="+encodeURIComponent("dav"+e+"-"+st.Title[V].substr(0,128))}e==0&&(t+="&rnd="+Math.floor(Math.random()*1e5)),t+="&tp=gg"}return t}function pt(e,t,n){var r=ct("iag_"+e,n);return r!=null&&r!=""?"&pr=iag."+e+","+encodeURIComponent(r):t==null?"":t}function dt(e,t,n,r,i){var s;if(!(K.prod.indexOf("iag")>=0))return;s="";var o,u,a,f,l,c,h,p,d,v,m,g,y,b,w;if(e){B="";if(K.iagads==2)return}else{H="";if(K.iagcontent==2)return}K.sid!=undefined?o="&pr=iag.sid,"+K.sid:o="",K.tfid!=undefined?u="&pr=iag.tfid,"+K.tfid:u="",a="&pr=iag.bcr,"+K.clientid;if(e==0||n!="preroll"){var E=ct("iagcategory",0);if(E==null||E=="")E=ct("category",0);E!=null&&E!=""?f="&pr=iag.pgm,"+encodeURIComponent(E):f="&pr=iag.pgm,general",E=ct("title",0),E!=null&&E!=""?l="&pr=iag.epi,"+encodeURIComponent(E):l="&pr=iag.epi,"+encodeURIComponent(st.Title[0].substr(0,255)),c="&pr=iag.seg,",i>1?c+=encodeURIComponent(i):c+="1",E=ct("pd",0),E==null&&(E=K.pd),E!=null&&E!=""?h="&pr=iag.pd,"+encodeURIComponent(E):h="",E=ct("oad",0),E!=null&&E!=""?p="&pr=iag.oad,"+encodeURIComponent(E):p="",o=pt("sid",o,0),u=pt("tfid",u,0),a=pt("bcr",a,0),f=pt("pgm",f,0),l=pt("epi",l,0)}g=pt("fp",g,e),w=pt("cust1",w,e),e?(d="&pr=iag.brn,"+K.clientid,v="&pr=iag.cte,"+encodeURIComponent(t),n=="midroll"?m="&pr=iag.ap,mid":n=="postroll"?m="&pr=iag.ap,post":m="&pr=iag.ap,pre",o=pt("sid",o,e),u=pt("tfid",u,e),a=pt("bcr",a,e),d=pt("brn",d,e),v=pt("cte",v,e),f=pt("pgm",f,e),l=pt("epi",l,e),c=pt("seg",c,e),h=pt("pd",h,e),p=pt("oad",p,e),y=pt("pod",y,e),b=pt("apt",b,e),B=o+u+a+f+l+c+h+d+m+v+p+g+y+b+w):H=o+u+a+f+l+c+h+p+g+w}function vt(e,t,n,r,i){var s="";e?F="":j="";var o;e==1?o=J:o=$;var u=0,a=!1,f,l,c,h;while(a==0){u=o.indexOf("<nol_",u);if(u<0){a=!0;break}f=o.indexOf(">",u);if(f<0){a=!0;break}c=o.substring(u+5,f),l=o.indexOf("</",f+1);if(l<0){a=!0;break}h=o.substring(f+1,l),u=l+7;var p=encodeURIComponent(c);p.indexOf("%")<0&&(c.length>32&&(c=c.substring(0,31)),h.length>254&&(h=h.substring(0,253)),c.indexOf("raw_")>-1?(c=c.substr(4),s+="&"+c+"="+h):s+="&"+c+"="+encodeURIComponent(h))}e?F=s:j=s}function mt(e){if(e==0&&K.legacybeacon=="true"){var t="&tl="+(st.Title[V]?st.Title[V].substr(0,128):""),n=ct("censuscategory",V);n!=null&&n!=""&&(t+="&cg="+encodeURIComponent(n)),V&&(t+="&c3=st,a"),t+="&rnd="+Math.floor(Math.random()*1e5),u.legacyReport("legacyBeacon||;||"+K.clientid,t)}var r=ht(e);u.report(xt(),e,r),a=0,ot=e}function gt(){if(ot!=2){var e=ht(1);u.bp(e)}}function yt(){var e=!1;try{var t=window.top.document.hasFocus()}catch(n){window.top==window.self&&(e=!0)}return e&&(window.top.addEventListener?window.top.addEventListener("focus",bt,!1):window.top.attachEvent&&window.top.attachEvent("onfocus",bt),window.top.addEventListener?window.top.addEventListener("blur",wt,!1):window.top.attachEvent&&window.top.attachEvent("onblur",wt)),e}function bt(){f=!0}function wt(){f=!1}function Et(){c=!1,st.FA[0]=st.FA[1]=0,st.FP[0]=st.FP[1]=0}function St(e){var t="",n,r=X;return st.FP[r]>0&&c==1?n=Math.round(st.FA[r]*100/st.FP[r]):n=100,e!=null&&e!=""?t=e:t=st.PL[r],t+=","+n,Number(st.PM[r])<e&&(st.PM[r]=e),t}function xt(){var e="NA";if(h>0||v>0)e=Math.round(h*100/(h+v))+"%",l&&(e="u"+e);return e}function Tt(e){try{return r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(e),r}catch(n){try{return t=new DOMParser,r=t.parseFromString(e,"text/xml"),r}catch(n){alert(n.message)}}return null}var n,s=i,o,u,a=0,f,l=!1,c=!1,h=0,v=0,m=5,g=0,y="",b=1300,w,E,x,T=0,C,L,A,M,_,D,P=0,H="",B="",j="",F="",I="",q="",R=0,U=!1,z=10,W="0",X=0,V=0,$,J,K=new Array,Q=0,G,Y=-1,Z=0,et=0,tt=0,nt=0,rt=0,it=0,st=new Object,ot=2;st.CS=new Array(2),st.PA=new Array(2),st.PL=new Array(2),st.SA=new Array(2),st.FA=new Array(2),st.SI=new Array(2),st.SR=new Array(2),st.SK=new Array(2),st.CI=new Array(2),st.DI=new Array(2),st.ER=new Array(2),st.SV=new Array(2),st.SH=new Array(2),st.PB=new Array(2),st.II=new Array(2),st.VL=new Array(2),st.PM=new Array(2),st.FP=new Array(2),st.MI=new Array(2),st.Title=new Array(2),st.SS=new Array(2);var ut=this;this.bT=function(){return st},this.getgp=function(){return K},this.bL=function(){return q},this.dk=function(){return V},this.getlfunctionType=function(){return T},this.bC=function(){var e;try{e=window.top.document.hasFocus()}catch(t){e=f}e==1&&(c=!0),Q==1&&(e==1&&(st.FA[X]+=1),st.FP[X]+=1)},this.init=function(e,t,r,i){W=t;var a=Tt("<vi>"+i+"</vi>"),f=a.firstChild.firstChild,c=0;while(f!=undefined&&c<20)f.firstChild!=null&&(K[f.nodeName]=f.firstChild.nodeValue),f=f.nextSibling,c++;p!=1&&(K.sfcode==undefined||K.sfcode.length!=2?r="http://secure-us.imrworldwide.com/cgi-bin/m?":r="http://secure-"+K.sfcode+".imrworldwide.com/cgi-bin/m?",r+="ci="+K.clientid,K.cisuffix!=undefined&&K.cisuffix!=""&&(r+=K.cisuffix),K.vcid!=undefined&&K.vcid!=""&&(r+="&c6=vc,"+K.vcid),K.aJ!=undefined&&K.aJ!=""&&(r+="&c4=mn,"+encodeURIComponent(K.aJ)),r+="&cc=1"),n=r,K.prod==undefined&&(K.prod="vc"),this._ggtrackid=K.clientid,K.vcid!=null&&(this._ggtrackid+="."+K.vcid),e=="genjsplayer"?o=new k:o=new N,this._ggplayername="gj3",K["msgmax"]!=null&&K.msgmax>0&&(b=K.msgmax),K["msgint"]!=null&&K["msgint"]!=""&&(y=K.msgint),K["focusint"]!=null&&K.focusint>=0&&(m=K.focusint),d&&(navigator.userAgent.toLowerCase().indexOf("safari")!=-1?window.addEventListener("pagehide",gt,!1):window.addEventListener?window.addEventListener("beforeunload",gt,!0):window.attachEvent&&window.attachEvent("onbeforeunload",gt)),u=new S(s,t,n,!0,!0,ut),m!=0&&(l=yt(),E=setInterval(this.bC,m*1e3)),this.C("1",(new Date).getTime(),window.location.href,document.referrer)},this.aD=function(e,t){var n="",r=0,i=1,e=X;if(st["CS"][e]!=0&&st.PA[e]>0&&st.VL[e]>0){st.PA[e]>=st.VL[e]?r=99:st.VL[e]>0?r=Math.round(st.PA[e]*100/st.VL[e]):r=66,st.FP[e]>0&&c==1&&(i=st.FA[e]/st.FP[e],r=Math.round(r*.8+r*i*.2)),st.MI[e]>0&&st.SI[e]<=0?r-=10:st.SI[e]>0&&(r+=5),st.SR[e]>0,r+=10;if(st.SH[e]>0||st.SV[e]>0||st.PB[e]>0||st.CI[e]>0)r=99;st.II[e]>0&&(r+=10),st.ER[e]>0&&st.ER[e]<=5&&(r=st.ER[e]*20),r>99&&(r=99),n=t+","+50+","+r+","+Math.round(i*100)+"|||",st.CS[e]=0}return Z>0&&(n=t+","+"25"+","+Z+","+et+","+tt+"|||"+n,Z=0,et=0,tt=0),n},this.C=function(t,n,r,i,s,f){var l=null,c=0,h,p,d,v,m,g,y=t;if(T==y&&C==r&&L==i&&A==s&&M==f)return;T=y,C=r,L=i,A=s,M=f,U=!1,t.indexOf("cust:")==0?l=o.genericEvent(t,n,r,i,s,f):l=o.cs(t,n,r,i,s,f);if(l==null||l=="")return;var w=l.split(",");y=Number(w[1]),r=w[2],i=w[3],V=X;switch(y){case 1:I=l,C!=null&&(q=C);return;case 51:if(I!=null){I=n+",1,"+C,L!=null&&L!=""&&(I+=","+L),C!=null&&(q=C);return}l=n+",51,"+C,L!=null&&(l+=","+L),q=C;break;case 2:break;case 3:case 15:R=0,P=0,i=="preroll"||i=="postroll"||i=="midroll"||i=="ad"?(p=1,J=l):(p=0,$=l),G=i,X=p,V=p,at(p),y==15&&(st.CS[p]=1,Q=1);var E=unescape(ct("length",X));E!=null&&!isNaN(E)?E=Number(E):E=30,st.VL[X]=E;var S=ct("title",X);S!=null&&S!=""?st.Title[X]=S:st.Title[X]=r,X==0&&lt(),it=0,st.SS[X]=it,dt(p,r,i,s,f),vt(p,r,i,s,f);break;case 4:R=0,d=r,isNaN(d)||d==0?d=st.PL[X]:d=Number(r),p=d-st.PL[X],st.PA[X]+=p,st.PL[X]=d,Number(st.PM[X])<d&&(st.PM[X]=d),h=this.aD(X,n),X=0,Q=0,it=0;break;case 5:R++,d=r,it=0;if(isNaN(d)){h=genError("InvPlayParam",r);break}d=Number(r);if(d!=0||st["PA"][X]==0)st.PL[X]=d;st.CS[X]=1,Q=1,u.af(St(d)),st.SS[X]=it;break;case 6:R++,d=r;if(isNaN(d)){h=genError("InvPauseParam",r);break}d=Number(r),p=d-st.PL[X],p>0&&(st.PA[X]+=p),st.PL[X]=d,st.CS[X]=1,Q=0,u.af(St(d));break;case 7:st.CS[X]=1,P++;if(st["SS"][X]==1||st["SS"][X]==null)return;d=r;if(isNaN(d)){h=genError("InvStopParam",r);break}d=Number(r),p=Number(d)-st.PL[X],p>0&&(st.PA[X]+=p),st.PL[X]=d,Number(st.PM[X])<d&&(st.PM[X]=d),st.PA[X]>0&&(h=this.aD(X,n)),Q=0,it=1,st["SS"][X]==it,st.PA[X]=0,st.FA[X]=0,st.FP[X]=0,X==0&&lt();break;case 8:R++,d=r;if(isNaN(d)){h=genError("InvSeekParam1",r);break}d=Number(r),v=i;if(isNaN(v)){h=genError("InvSeekParam",i);break}v=Number(i),p=d-st.PL[X],p>0&&(st.PA[X]+=p),st.PL[X]=v,st.CS[X]=1,u.af(St(v));break;case 9:r||r.toLowerCase().indexOf("on")||r==1?st.MI[X]+=1:st.MI[X]-=1;break;case 10:if(r||r.toLowerCase().indexOf("on")||r==1)st.SR[X]+=1;Et();break;case 11:isNaN(r)||(Y<0?Y=r:(r>Y&&(st.SI[X]+=1),Y=r));break;case 12:st.DI[X]+=1;break;case 13:case 14:break;case 16:case 22:st.CI[X]+=1;break;case 17:st.SH[X]+=1;break;case 18:st.SV[X]+=1;break;case 19:case 20:st.PB[X]+=1;break;case 21:st.II[X]+=1;break;case 23:st.ER[X]+=1;break;case 24:break;case 25:Z+=1,et+=Number(r),tt<Number(r)&&(tt=r);return;case 49:if(isNaN(r))return;d=Number(r);if(d<=1||Q!=1)return;u.af(St(d));if(X!=0||e.length==0)return;var x=st.PA[X]+(d-st.PL[X]);if(x<e[0])return;st.PA[X]+=d-st.PL[X],st.PL[X]=r,h=this.aD(X,n),e.splice(0,1);break;default:}var N=10;isNaN(st.VL[X])?N=10:N=st.VL[X]/60*z,N>100&&(N=100),N<20&&(N=20);if(U==1)return;if(R>N&&y!=3&&y!=15&&y!=4&&y!=7)return;if(R>5e3)return;h!=null&&(l=h+l),I!=""&&(l=I+"|||"+l,I=""),V!=1?m=Number(K.trackcontent):m=Number(K.trackads);if(!isNaN(m))switch(m){case 0:return;case 2:case 3:g=ct("ggignr",V);if(g!=null&&g=="1")return;break;default:}c=u.ct(l,xt()),a+=c;var k=nt;y==7?(mt(2),X==0?rt=1:(V=0,X=0),k=0):y==49?(mt(1),k=0):y==15?(mt(0),k=0,X==0&&(rt=0)):y==3?nt==5?(mt(0),k=0,X==0&&(rt=0)):k=3:y==5?nt==3?(mt(0),k=0):r==0?rt==1&&X==0?(st.PM[X]=0,mt(0),k=0,rt=0):k=5:k=0:y==6&&r!=0?k=0:y==8&&i!=0&&(k=0),nt=k,Number(a)>=Number(b)&&mt(1)},this.bS=function(e,t,n,r,i,s){this.C("cust:"+e,t,n,r,i,s)}}function w(){function u(e,t){}function a(e){}function f(e){}function l(e){var t="",n="";for(var r=0;r<e;r++)n=Math.floor(Math.random()*36).toString(36),t+=Math.floor(Math.random()*2)?n.toUpperCase():n.toLowerCase();return t}var e="|||",t="_ggCvar",n="_ggMCvar",r=45e3,i=null,s=0,o=31536e6;this.bw=function(e){return i=l(32),i},this.bz=function(){},this.clearMessageCookie=function(){},this.bE=function(){return s++,s},this.aR=function(){return i}}function E(e,t,n,r,i){var s='END"/></GGC>',o="|||",u="^|^^",a="",f=Math.floor(Math.random()*1e5)+1,l='<GGC><H value="'+e+","+(new Date).getTimezoneOffset()/-60+","+t+"."+f+","+r+","+i+'"/><L value="';this.bA=function(e){return a==""?a=l+e+o:a+=e+o,a},this.bg=function(e){if(a=="")return a;var t=a+s;return a="",t},this.bx=function(e){return a==""&&(a=l),e!=""&&(a+=(new Date).getTime()+",49,"+e+o),a+(new Date).getTime()+",2"+o+s}}function S(e,t,n,r,i,s){var o="logthisjs.php",u=n,a="logthisjs.php",f="postjs.php",l,c=new w,p=null,v="NA",m=!1,g=c.bE(),y,b="GET",S=s;l=new x(n,n+a,n+f,b),r!=null&&(m=r),m=!1,c.bw(t),c.bz(),t==null&&(t="0"),p=new E(e,t,g,S._ggtrackid,S._ggplayername);var N=new T,C,k,L='|||END"/></GGC>',A='END"/></GGC>',M="^|^^",_="|||",D,P=0;h==0?k=0:k=2;var H="",C=String.fromCharCode(56)+String.fromCharCode(103)+String.fromCharCode(36)+String.fromCharCode(15)+String.fromCharCode(126)+String.fromCharCode(3)+String.fromCharCode(71)+String.fromCharCode(91)+String.fromCharCode(100)+String.fromCharCode(7)+String.fromCharCode(17)+String.fromCharCode(31)+String.fromCharCode(95)+String.fromCharCode(28)+String.fromCharCode(64)+String.fromCharCode(14);D=N.aw(C,A),this.report=function(e,t,n){v=e;var r=p.bg(e);r="<m v="+k+" c="+c.aR()+">"+N.aw(C,r)+"<%2Fm>",l.report(r,n),t==0&&(P=1)},this.legacyReport=function(e,t){l.report(e,t)},this.bp=function(e){var t=p.bx(H);t="<m v="+k+" c="+c.aR()+">"+N.aw(C,t)+"<%2Fm>",l.report(t,e)},this.ct=function(e,t){v=t;var n=p.bA(e),r=n.length;return r},this.af=function(e){if(d){var t=S.getlfunctionType();if(t==5||t==8)e="";H=e}}}function x(e,t,n,r){function m(e,t){l=e,f=!0,h=="GET"&&(d=new Image(1,1));var n=o,r=!1;if(e.indexOf("legacyBeacon||;||")>-1){var i=e.split("||;||")[1],s=o.indexOf("ci=")+3,u=o.indexOf("&",s),a=o.substring(s,u);n=o.replace(a,i),r=!0}r?d.src=n+t:p==1?d.src=n+t+"?HEX40="+e:d.src=n+t+"HEX40%3D"+e}var i=2,s=10,o=e,u=t,a=n,f=!1,l,c=0,h="GET-CONFIRM",d=new Image(1,1),v=null;r!=null&&(h=r),h=="GET-CONFIRM"&&(window.addEventListener?(d.addEventListener("load",loadSuccess,!1),d.addEventListener("error",bn,!1)):window.attachEvent&&(d.attachEvent("onload",loadSuccess),d.attachEvent("onerror",bn))),this.report=function(e,t){if(e==null||e=="")return;h!="POST"&&m(e,t)}}function T(){function e(e,t){var n="";if(e==null||t==null)return t;var r=e.split(""),i=r.length,s=t.split(""),o=s.length;for(var u=0;u<o;u++){var a=s[u].charCodeAt(0)^(o%10|r[u%i].charCodeAt(0));a==0?n+=s[u]:n+=String.fromCharCode(a)}return n}function t(e){var t,n,r,i;i="",r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),n<128?i+=String.fromCharCode(n):n>127&&n<2048?(i+=String.fromCharCode(n>>6|192),i+=String.fromCharCode(n&63|128)):n<65536?(i+=String.fromCharCode(n>>12|224),i+=String.fromCharCode(n>>6&63|128),i+=String.fromCharCode(n&63|128)):(i+=String.fromCharCode(n>>18|240),i+=String.fromCharCode(n>>12&63|128),i+=String.fromCharCode(n>>6&63|128),i+=String.fromCharCode(n&63|128));return i}this.urlencode=function(e){var t={},r=[],i=e.toString(),s=function(e,t,n){var r=[];return r=n.split(e),r.join(t)};t["'"]="%27",t["("]="%28",t[")"]="%29",t["*"]="%2A",t["~"]="%7E",t["!"]="%21",t["%20"]="+",i=encodeURIComponent(i);for(n in t){var o=t[n];i=s(n,o,i)}return i.replace(/(\%([a-z0-9]{2}))/g,function(e,t,n){return"%"+n.toUpperCase()})},this.aw=function(n,r){return this.urlencode(e(n,t(r)))}}function N(){function p(e,t,n,r,i,s){if(e==null||e.length<=5)return null;var o=t+","+e;return n!=null&&(o+=","+n),r!=null&&(o+=","+r),i!=null&&(o+=","+i),s!=null&&(o+=","+s),o}function d(e){n=e}this.bW=-1,this.cx="NA";var e=-1,t=null,n=null,r=null,i=null,s=null,o=null,u=null,a=null,f=null,l=null,c=null,h=null;this.getCurrentEvent=function(){return this.bW},this.genericEvent=function(e,t,n,a,f,l){if(r==e&&i==n&&s==a&&o==f&&u==l)return null;var c=p(e,t,n,a,f,l);return c!=null&&(r=e,i=n,s=a,o=f,u=l),c},this.cs=function(n,r,i,s,o,u){if(a==n&&f==i&&l==s&&c==o&&h==u)return null;var p=null;return n==1?(this.bW=n,t=i,p=r+","+this.bW+","+t,s!=null&&(p+=","+s)):n==10||n==9?(this.bW=n,i==0?p=r+","+this.bW+","+"0":i==1?p=r+","+this.bW+","+"1":p=r+","+this.bW+","+i):n==12?(this.bW=n,p=r+","+this.bW):n==49?(this.bW=n,e=i,p=r+","+this.bW+","+i):n==11?(this.bW=n,p=r+","+this.bW+","+i):n=="videoInfo"?d(i):p=this.C(n,r,i,s,o,u),p!=null&&(a=n,f=i,l=s,c=o,h=u),p},this.C=function(e,t,n,r,i,s){},this.getVideoInfo=function(e,t){var r="",i;return e!=null&&(r="<length>"+e+"</length>"),t!=null&&(r+="<uurl>"+t+"</uurl>"),n!=null&&(r+=n,n=null),r}}function C(e,t){var n=e.indexOf("<"+t+">")+t.length+2,r=e.indexOf("</"+t+">",n);return n>=0&&r>n?e.substring(n,r):null}function k(){this.inheritFrom=N,this.inheritFrom();var e=null,t=null;this.C=function(n,r,i,s,o,u){var a="";if(n==3&&this.bW!=3||n==15&&this.bW!=15){var f=C(o,"censuscategory"),l=C(o,"category");l==null&&f!=null&&f!=""&&(o+="<category>"+f+"</category>"),this.cx=C(o,"length"),a+=","+i+","+s+","+o,!u&&u!=""&&!isNaN(u)&&(a+=","+u)}else n==1||n==51||n==8?(a+=","+i,s!=null&&(a+=","+s)):n==6&&e!=1&&i!="00:00"?(e=!0,t=i,a+=","+t):n==5&&e!=0?(e=!1,a+=","+i):n==7?(e=!0,t="0",a+=","+i):n==9?i==0?a+=",Off":a+=",On":(a+=","+i,s!=null&&(a+=","+s));return a==""?null:(this.bW=n,r+","+this.bW+a)}}var e,t,n,r,i="3.90",s={},o="",u="",a="http://dz.glanceguide.com/errl.php",f=6e4,l=!1,c,h=1,p=2,d=!1,v=!0,m="",g="";return{gg:y}}),define("ninemsn/portal/common/tracking/nielsenVideoCensus/config",["ninemsn/portal/common/configuration"],function(e){return e.create({nielsenVideoCensus:{clientid:"au-606950",vcid:"b01",cisuffix:"",sfcode:"au",prod:"sc",enabled:!0}})}),define("ninemsn/portal/common/tracking/nielsenVideoCensus/tracker",["ninemsn/portal/common/tracking/nielsenVideoCensus/api","ninemsn/portal/common/tracking/nielsenVideoCensus/config","jquery"],function(e,t,n){var r=!1,i={},s={load:3,unload:4,play:5,pause:6,stop:7,seek:8},o={Entertainment:"ninemsn Entertainment Videos",News:"ninemsn News Videos",Lifestyle:"ninemsn Lifestyle Videos"},u={celebrities:{censusCategory:o.Entertainment,vcid:"c06"},wwos:{censusCategory:o.News,vcid:"c01"},moviefix:{censusCategory:o.Entertainment,vcid:"b01"},tvfix:{censusCategory:o.Entertainment,vcid:"c08"},music:{censusCategory:o.Entertainment,vcid:"c07"},lifestyle:{censusCategory:o.Lifestyle,vcid:"b09"},aca:{censusCategory:o.News,vcid:"c02"},aww:{censusCategory:o.Lifestyle,vcid:"c18"},womansday:{censusCategory:o.Lifestyle,vcid:"c19"},today:{censusCategory:o.News,vcid:"c21"},food:{censusCategory:o.Lifestyle,vcid:"c20"},harpersbazaar:{censusCategory:o.Lifestyle,vcid:"c13"},finance:{censusCategory:o.News,vcid:"c24"},healthportal:{censusCategory:o.Lifestyle,vcid:"c14"},homes:{censusCategory:o.Lifestyle,vcid:"c15"},motoring:{censusCategory:o.Lifestyle,vcid:"b11"},travel:{censusCategory:o.Lifestyle,vcid:"b14"},sixtyminutes:{censusCategory:o.News,vcid:"c04"},dolly:{censusCategory:o.Lifestyle,vcid:"c10"},"ninemsn.gourmettraveller":{censusCategory:o.Lifestyle,vcid:"c26"},thefix:{censusCategory:o.Entertainment,vcid:"c25"},cleo:{censusCategory:o.Lifestyle,vcid:"c22"},go:{censusCategory:o.Entertainment,vcid:"c23"},motherandbaby:{censusCategory:o.Lifestyle,vcid:"c16"},digiknow:{censusCategory:o.Lifestyle,vcid:"b04"},news:{censusCategory:o.News,vcid:"c03"},"video.news":{censusCategory:o.News,vcid:"c03"}},a=function(e){var t,n="";for(t in e)e.hasOwnProperty(t)&&(n+="<"+t+">"+e[t]+"</"+t+">");return n},f=function(e){return Math.round(e*100)/100},l=function(e){return!isNaN(Number(e))},c=null,h=function(e){if(e.mediaUrl){var t={uurl:e.mediaUrl,length:f(e.duration),title:e.title,category:e.category,subcategory:e.subcategory};e.livestream&&(t.livestream="yes"),t.censuscategory=e.censuscategory||u[e.site]&&u[e.site].censusCategory;var n=a(t);i.track(s.load,e.mediaUrl,"content",n),c!==e&&(c=e)}},p=function(e){i.track(s.play,f(e.position)||0)},d=function(e){l(e.position)&&i.track(s.pause,f(e.position))},v=function(e){l(e.position)&&i.track(s.stop,f(e.position))},m=function(e){l(e.position)&&l(e.newPosition)&&i.track(s.seek,f(e.position),f(e.newPosition))},g=function(e){i.track(s.unload,f(e.position)||null,"content")},y=function(e){i.track(s.unload,f(e.position)||null),c&&(h(c),p(e))},b=function(e){e.ad=e.ad||{},e.ad.adType==="midroll"&&(v(e),g(e));if(e.ad.adType==="postroll"||e.ad.adType==="preroll")c=null;var t=a({uurl:e.ad.mediaUrl,length:f(e.ad.duration),title:e.ad.creative,category:e.ad.advertiser,subcategory:e.ad.campaign});i.track(s.load,e.ad.mediaUrl,e.ad.adType,t)},w={"video:load":h,"video:play":p,"video:stop":v,"video:pause":d,"video:seek":m,"video:unload":g,"ad:load":b,"ad:play":p,"ad:pause":d,"ad:stop":v,"ad:unload":y};return{trackVideoEvent:function(s){t().done(function(t){if(!r){var o=new e.gg;i={track:o.ggPM,initialise:o.ggInitialize};var a=u[s.site]&&u[s.site].vcid,f=n.extend({},t.nielsenVideoCensus,{vcid:a});i.initialise(f,0,!1,!0),r=!0}w.hasOwnProperty(s.eventType)&&(s.censuscategory=t.nielsenVideoCensus.censuscategory,w[s.eventType](s))})}}}),define("ninemsn/portal/common/tracking/nielsenVideoCensus",["ninemsn/portal/common/tracking/nielsenVideoCensus/tracker"],function(e){return{trackVideoEvent:function(t){e.trackVideoEvent(t)}}}),define("ninemsn/portal/common/tracking/microsoft/config",["ninemsn/portal/common/configuration"],function(e){return e.create({microsoft:{abTestingCookieName:"_ab_test_pid",enabled:!0}})}),define("ninemsn/portal/common/tracking/common/image",[],function(){return{create:function(e){if(!e)return null;var t=new Image;return t.src=e,t}}}),define("ninemsn/portal/common/tracking/common/UrlBuilder",[],function(){return function(e){var t=[],n=function(){return t.length>0?"?"+t.join("&"):""},r=function(e){return e!==""&&e!==undefined&&e!==null};this.build=function(){return e+n()},this.withField=function(e,n){return r(n)&&t.push(e+"="+encodeURIComponent(n)),this}}}),define("ninemsn/portal/common/tracking/microsoft/silverlight",["jquery"],function(e){var t={silverlightVersions:["5.0","4.0","3.0","2.0"],silverlightMimeType:"application/x-silverlight-2"};return{getVersion:function(n){var r=e.extend(!0,{},t,n),i,s,o;if(!e.isArray(r.silverlightVersions,1))return 0;var u=0;try{var a=window.navigator.plugins;if(a&&a.length)i=a["Silverlight Plug-In"],i&&(u=/^\d+\.\d+/.exec(i.description)[0]);else if(window.ActiveXObject){var f=new window.ActiveXObject("AgControl.AgControl");if(f){u=1;var l=e("<OBJECT/>")[0];l.codeType=r.silverlightMimeType;if(typeof l.IsVersionSupported!="undefined")for(o=0;r.silverlightVersions[o];o+=1){s=r.silverlightVersions[o];if(l.IsVersionSupported(s)){u=s;break}}}}}catch(c){}return u}}}),define("ninemsn/portal/common/tracking/common/clock",[],function(){return{now:function(){return new Date}}}),define("ninemsn/portal/common/tracking/microsoft/timingBuilder",[],function(){var e=function(e){var t={};this.addTime=function(n,r){return e&&n&&r&&(t[n]=r-e),this},this.build=function(){return e&&(t.start=e),t}};return e}),define("ninemsn/portal/common/tracking/microsoft/performance",["ninemsn/portal/common/tracking/common/browser","ninemsn/portal/common/tracking/microsoft/timingBuilder"],function(e,t){return{getTiming:function(){var n=e.getPerformance();if(!n||!n.timing)return{};var r=n.timing;return(new t(r.navigationStart)).addTime("connectStart",r.connectStart).addTime("connectEnd",r.connectEnd).addTime("connectStart",r.connectStart).addTime("domComplete",r.domComplete).addTime("domContentLoadedEventEnd",r.domContentLoadedEventEnd).addTime("domContentLoadedEventStart",r.domContentLoadedEventStart).addTime("domInteractive",r.domInteractive).addTime("domLoading",r.domLoading).addTime("domainLookupEnd",r.domainLookupEnd).addTime("domainLookupStart",r.domainLookupStart).addTime("fetchStart",r.fetchStart).addTime("loadEventEnd",r.loadEventEnd).addTime("loadEventStart",r.loadEventStart).addTime("navigationStart",r.navigationStart).addTime("redirectEnd",r.redirectEnd).addTime("redirectStart",r.redirectStart).addTime("requestStart",r.requestStart).addTime("responseEnd",r.responseEnd).addTime("responseStart",r.responseStart).addTime("secureConnectionStart",r.secureConnectionStart).addTime("unloadEventEnd",r.unloadEventEnd).addTime("unloadEventStart",r.unloadEventStart).build()}}}),define("ninemsn/portal/common/tracking/microsoft/requestIdGenerator",[],function(){return{generate:function(){var e=[],t="0123456789ABCDEF",n;for(n=0;n<32;n+=1)e[n]=t.substr(Math.floor(Math.random()*16),1);var r=e.join("");return r}}}),define("ninemsn/portal/common/tracking/microsoft/udc",["ninemsn/portal/common/tracking/microsoft/config","ninemsn/portal/common/tracking/common/image","ninemsn/portal/common/tracking/common/UrlBuilder","ninemsn/portal/common/tracking/common/browser","ninemsn/portal/common/tracking/microsoft/silverlight","ninemsn/portal/common/tracking/common/clock","ninemsn/portal/common/tracking/microsoft/performance","ninemsn/portal/common/tracking/microsoft/requestIdGenerator","jquery/cookie"],function(e,t,n,r,i,s,o,u,a){var f=function(){var e=a.cookie("TempUDCID");return e||(e=u.generate(),a.cookie("TempUDCID",e,{expires:30,path:"/"})),e},l=function(){return a.cookie("MUID")||f()},c=function(e){return a.cookie(e.microsoft.abTestingCookieName)},h=function(){return new n(r.getProtocol()+"//udc.msn.com/c.gif")},p=function(e){var t=r.getScreen(),n=i.getVersion();return h().withField("mk","en-au").withField("di",e.microsoft.categoryId).withField("pi",e.microsoft.propertyId).withField("ps",e.microsoft.propertySpecific).withField("pn",e.hierarchy.pageName).withField("pp","false").withField("clid",l()).withField("cu",r.getHref()).withField("bw",r.getWidth()).withField("bh",r.getHeight()).withField("sl",n>0).withField("slv",n).withField("scr",t.width+"x"+t.height).withField("sd",t.colorDepth).withField("rid",e.requestId).withField("cts",s.now().getTime()).withField("evt","impr").withField("rf",r.getReferrer()).withField("9.ct",e.microsoft.contentType).withField("9.h1",e.hierarchy.site).withField("9.h2",e.hierarchy.section).withField("9.h3",e.hierarchy.subsection).withField("9.ab",c(e)).build()},d=function(e){return h().withField("clid",l(e.requestId)).withField("rid",e.requestId).withField("cts",s.now().getTime()).withField("evt","unload").build()},v=function(e){var t=o.getTiming();return a.isEmptyObject(t)?a.Deferred().reject().promise():h().withField("rid",e.requestId).withField("evt","perf").withField("cts",s.now().getTime()).withField("di",e.microsoft.categoryId).withField("9.perf.s",t.start).withField("9.perf.ce",t.connectEnd).withField("9.perf.cs",t.connectStart).withField("9.perf.dc",t.domComplete).withField("9.perf.dclee",t.domContentLoadedEventEnd).withField("9.perf.dcles",t.domContentLoadedEventStart).withField("9.perf.di",t.domInteractive).withField("9.perf.dl",t.domLoading).withField("9.perf.dle",t.domainLookupEnd).withField("9.perf.dls",t.domainLookupStart).withField("9.perf.fs",t.fetchStart).withField("9.perf.lee",t.loadEventEnd).withField("9.perf.les",t.loadEventStart).withField("9.perf.ns",t.navigationStart).withField("9.perf.rede",t.redirectEnd).withField("9.perf.reds",t.redirectStart).withField("9.perf.reqs",t.requestStart).withField("9.perf.rese",t.responseEnd).withField("9.perf.ress",t.responseStart).withField("9.perf.scs",t.secureConnectionStart).withField("9.perf.uee",t.unloadEventEnd).withField("9.perf.ues",t.unloadEventStart).build()},m=function(e){return h().withField("clid",l(e.config.requestId)).withField("di",e.config.microsoft.categoryId).withField("rid",e.config.requestId).withField("cts",s.now().getTime()).withField("cu",r.getHref()).withField("evt","cp").withField("9.pos",e.eventDetails.linkName).withField("9.des",e.eventDetails.destination).withField("9.ti",e.eventDetails.title).withField("9.img",e.eventDetails.image).withField("9.cap",e.eventDetails.caption).build()},g=function(e){var t=e.custParams.eventType;switch(t){case"video:load":break;case"video:progress":t+=":"+e.custParams.progress;break;case"video:stop":case"ad:load":case"ad:stop":break;default:return null}return h().withField("clid",l(e.requestId)).withField("di",e.microsoft.categoryId).withField("rid",e.requestId).withField("cts",s.now().getTime()).withField("cu",r.getHref()).withField("evt",t).withField("9.id",e.custParams.id).withField("9.len",e.custParams.duration).withField("9.ti",e.custParams.title).withField("9.cat",e.custParams.category).withField("9.src",e.custParams.sourceId).withField("9.metagen",e.custParams.genre).withField("9.metaprov",e.custParams.provider).withField("9.h1",e.custParams.hierarchy&&e.custParams.hierarchy[0]||"").withField("9.h2",e.custParams.hierarchy&&e.custParams.hierarchy[1]||"").withField("9.h3",e.custParams.hierarchy&&e.custParams.hierarchy[2]||"").withField("9.acct",e.custParams.account).withField("9.adpt",e.custParams.adapter).withField("9.type",e.custParams.type).withField("9.pos",e.custParams.position===0?0:e.custParams.position||"").withField("9.adType",e.custParams.ad&&e.custParams.ad.adType||"").build()},y=function(e){t.create(e)};return{trackPageLoadEvent:function(t){var n=function(e){return e.requestId=t,e};e().pipe(n).pipe(p).pipe(y)},trackPageUnloadEvent:function(t){var n=function(e){return e.requestId=t,e};e().pipe(n).pipe(d).pipe(y)},trackClickEvent:function(t,n){var r=function(e){return e.requestId=t,{config:e,eventDetails:n}};e().pipe(r).pipe(m).pipe(y)},trackVideoEvent:function(t,n){var r=function(e){return e.requestId=t,e.custParams=n,e};e().pipe(r).pipe(g).pipe(y)},trackPagePerformanceEvent:function(t){var n=function(e){return e.requestId=t,e};e().pipe(n).pipe(v).pipe(y)}}}),define("ninemsn/portal/common/tracking/microsoft/ctag",["ninemsn/portal/common/tracking/microsoft/config","ninemsn/portal/common/tracking/common/image","ninemsn/portal/common/tracking/common/clock","ninemsn/portal/common/tracking/common/browser","ninemsn/portal/common/tracking/common/UrlBuilder"],function(e,t,n,r,i){var s=function(e){var t=/\.nine\.com\.au:?\d*$|^nine\.com\.au:?\d*$/i;return t.test(e.getHostname())?e.getProtocol()+"//c.nine.com.au/c.gif":(t=/\.9news\.com\.au:?\d*$|^9news\.com\.au:?\d*$/i,t.test(e.getHostname())?e.getProtocol()+"//c.nine.com.au/c.gif":e.getProtocol()+"//c.msn.com/c.gif")},o=function(e){return(new i(s(r))).withField("rid",e.requestId).withField("cts",n.now().getTime()).withField("di",e.microsoft.categoryId).withField("pi",e.microsoft.propertyId).withField("ps",e.microsoft.propertySpecific).withField("tp",r.getHref()).withField("udc","true").withField("rf",r.getReferrer()).build()},u=function(e){t.create(e)};return{trackPageLoadEvent:function(t){var n=function(e){return e.requestId=t,e};e().pipe(n).pipe(o).pipe(u)}}}),define("ninemsn/portal/common/tracking/microsoft",["ninemsn/portal/common/tracking/microsoft/udc","ninemsn/portal/common/tracking/microsoft/ctag","ninemsn/portal/common/tracking/microsoft/requestIdGenerator"],function(e,t,n){var r;return{trackPageLoadEvent:function(){r=r||n.generate(),window.udcRequestId=r,t.trackPageLoadEvent(r),e.trackPageLoadEvent(r)},trackPageUnloadEvent:function(){r&&(e.trackPageUnloadEvent(r),r=null,window.udcRequestId=null)},trackClickEvent:function(t){r=r||n.generate(),e.trackClickEvent(r,t)},trackVideoEvent:function(t){r=r||window.udcRequestId||n.generate(),e.trackVideoEvent(r,t)},trackPagePerformanceEvent:function(){r&&e.trackPagePerformanceEvent(r)}}}),define("ninemsn/portal/common/tracking/chartbeat/api",[],function(){var e=function(){function o(){for(var e="",t=0;t<16;t++)e+=Math.random();return e}function u(e,t){var n="",r=a(encodeURIComponent(e));return r.splice(t||5,r.length),d(r,function(e,t){var r;r=t;if(r==0)r="A";else{r>>>=0;for(var i="",s;r>0;)s=r%64,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-".charAt(s)+i,r>>>=6;r=i}n+=r}),n}function a(e){e+=String.fromCharCode(128);for(var t=[1518500249,1859775393,2400959708,3395469782],n=1732584193,r=4023233417,i=2562383102,s=271733878,o=3285377520,u=[],a,f,l,c,h,p=Math.ceil((e.length/4+2)/16),d=[p],v=0,m;v<p;v++){d[v]=[];for(a=0;a<16;a++)d[v][a]=e.charCodeAt(v*64+a*4)<<24|e.charCodeAt(v*64+a*4+1)<<16|e.charCodeAt(v*64+a*4+2)<<8|e.charCodeAt(v*64+a*4+3)}v=(e.length-1)*8,e=p-1,d[e][14]=Math.floor(v/Math.pow(2,32)),d[e][15]=v&4294967295;for(v=0;v<p;v++){for(m=0;m<16;m++)u[m]=d[v][m];for(m=16;m<80;m++)u[m]=(u[m-3]^u[m-8]^u[m-14]^u[m-16])<<1|(u[m-3]^u[m-8]^u[m-14]^u[m-16])>>>31;e=n,a=r,f=i,l=s,c=o;for(m=0;m<80;m++)h=Math.floor(m/20),h=(e<<5|e>>>27)+(h==0?a&f^~a&l:h==1?a^f^l:h==2?a&f^a&l^f&l:a^f^l)+c+t[h]+u[m]&4294967295,c=l,l=f,f=a<<30|a>>>2,a=e,e=h;n=n+e&4294967295,r=r+a&4294967295,i=i+f&4294967295,s=s+l&4294967295,o=o+c&4294967295}return[n,r,i,s,o]}function f(e,t){return function(){e.apply(t,arguments)}}function l(e,t,n){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n)}function c(e){return typeof e=="number"}function h(e){return e=new Date(+e),Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())}function p(){return(new Date).getTime()}function d(e,n){if((!!e&&e.constructor===Object)===t){for(var i in e)if(e.hasOwnProperty(i)&&n(i,e[i])===r)break}else{i=e.length;for(var s=0;s<i;s++)if(n(s,e[s])===r)break}}function v(e,t){if(e===t)return 0;if(e.length===0)return t.length;if(t.length===0)return e.length;for(var n=[],r=0,i=t.length;r<=i;r++)n[r]=[r];for(var s=0,o=e.length;s<=o;s++)n[0][s]=s;for(var u,a,f,r=1;r<=i;r++)for(s=1;s<=o;s++)u=r-1,a=s-1,f=n[u][a],t.charAt(u)==e.charAt(a)?n[r][s]=f:(a=n[r][a]+1,u=n[u][s]+1,f+=2,n[r][s]=Math.min(a,u,f));return n[t.length][e.length]}function m(e){var t={};if(e){e.charAt(0)=="?"&&(e=e.substring(1));for(var e=e.replace("+"," "),e=e.split(/[&;]/g),n=0,r=e.length;n<r;n++){var i=e[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}}return t}function g(e,t,n){var r="",i=s.location.href.split("?");return i.length&&(i=m(i[1]),t=n||t,i[t]&&(r="&"+e+"="+i[t])),r}function y(e){for(var t=s._cbq||[];t.length;)e(t.shift());s._cbq={push:e}}function b(e,t,n){return e[n]?"&g"+t+"="+encodeURIComponent(e[n]):""}function S(){var e=document.createElement("script");e.async=t,e.src=E;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)}function x(e){if(/[\/|\.]chartbeat\.com$/.test(e.origin)){var n=w.c(t),r=String(e.data);n&&r.indexOf("_cb_ip")==0&&(n.setItem("_cb_ip","1"),e.source.postMessage(1,e.origin),S())}}function C(e,t,n){return N++,T[e]=T[e]||{},T[e][N]=[t,n],N}function k(n){if(typeof n=="string")T[n]=e,delete T[n];else if(c(n)){var i=t;d(T,function(t,s){return d(s,function(t){if(parseInt(t,10)===n)return s[t]=e,delete s[t],i=r}),i})}}function L(e,t){if(T[e]){var n=arguments.length>1?Array.prototype.slice.call(arguments,1):[];d(T[e],function(e,t){var r,i;t&&t.length===2&&(r=t[0],i=t[1],r.apply(i,n))})}}function M(e){this.u=e||"",this.na=w.c()!==n||O.la(),this.L=r,_(this)}function _(e){if(!O.b("_cb_ls")){var r=w.c()!==n,i=O.b("_SUPERFLY_nosample");i&&d(["","_v_","_p_"],function(n,r){e.create(r+"_SUPERFLY_nosample",i,.007,t)});var s=O.b("_chartbeat3");s&&(e.create("_v__chartbeat3",s,30,t),O.remove("_chartbeat3")),r&&((r=O.b("_chartbeat2"))&&e.create("_chartbeat2",r,30,t),(r=O.b("_chartbeat_uuniq"))&&e.create("_chartbeat_uuniq",r,30,t),(r=O.b("_chartbeat5"))&&e.create("_chartbeat5",r,.0006944444444444445,t)),O.create("_cb_ls","1",30)}}function D(e){var t=e.L;return e.L=r,t}function P(e){var t,n;t="pageYOffset",n="scrollTop";if(e){var r,i;r=r||"*",i=i||document;if("querySelectorAll"in i)e=i.querySelectorAll(r+"[data-cb-scroll-element]");else{e=[],r=i.getElementsByTagName(r);for(i=r.length;i--;)r[i].getAttribute("data-cb-scroll-element")&&e.push(r[i])}if(e&&e.length)return e[0][n]}return c(s[t])?s[t]:document.body&&document.body[n]?document.body[n]:document.documentElement[n]?document.documentElement[n]:0}function H(){var e=document,e=e[e.compatMode==="CSS1Compat"?"documentElement":"body"].clientHeight||0;return window.innerHeight&&(e=Math.min(window.innerHeight,e)),e}function B(e){return e="scroll"+e,Math.max(document.body[e],document.documentElement[e])||0}function I(t,n){this.S=t||e,this.$=n||e,this.k=this.N=0}function q(){this.a=s._sf_async_config||{},this.oa=f(this.Ba,this),this.j=[],this.d=new M(this.Ha),this.i=new I,this.Ca=f(this.t,this),l(s,"unload",this.Ca),y(f(this.Fa,this));if(j.O&&document[j.O]==="prerender"){this.r=t;var e=f(function(){this.e(),R(this)},this),n=this,i=function(){n.r&&document[j.O]!=="prerender"&&(n.r=r,e(),window.setTimeout(function(){document.removeEventListener(j.z,i,r)},100))};document.addEventListener(j.z,i,r)}else this.e()}function R(e){!e.d.b("_SUPERFLY_nosample")&&!e.r&&(e.wa?e.J():(e.wa=t,!s._sf_async_config&&!s._cbq?(e.Aa=f(e.J,e),l(s,"load",e.Aa)):e.J()))}function U(e,t){if(!e.r){var n;n=new Image(1,1),n.onerror=e.oa,n.src=t}}function z(e){return P(!!e.a.scrollElement)}function W(e){var t=e.g,t=t?Math.min(t*2,16):1;e.g=t}function X(e){return e.p?t:(e=(document.referrer||"").indexOf("://"+s.location.host+"/"),e!=-1&&e<9)}function V(e){return e=e.a.title.slice(0,100),encodeURIComponent(e)}function $(e,t){var n=s.navigator,i=s.window.screen,u=[n.userAgent,n.platform,(new Date).getTimezoneOffset(),i.width+i.height+i.colorDepth];return d(n.plugins,function(e,t){u.push(t.name+t.description+t.filename+t[0].type)}),t===r&&(n=s.performance,u=u.concat([n&&n.now?n.now():"",encodeURIComponent(e.p||document.referrer||""),document.title,s.location.href,p(),B("Width"),B("Height"),o()])),u.join()}function J(){q.call(this),C("anchor",this.za,this)}function K(t){var n=t.a,i=z(t);t.n=Math.max(t.n,i);var o=Math.round((p()-t.K)/600)/100,u=0,a=0,f=0,l=t.i.k;A.ka()?a=1:t.a.reading&&+t.a.reading||l>0||o<.09?u=1:f=1;var c="",h="",v="",m="",y="",w=X(t);if(t.H){t.H=r;var c=(w?"&v=":"&r=")+encodeURIComponent(t.p||document.referrer||""),h="&i="+V(t),E=t.a.hudTrackable;E!==e&&(v="&L="+(E?"1":"0")),w&&(w=Q(t))&&(c="&v="+encodeURIComponent(w.path),m="&K="+w.left+"::"+w.top,w.Y>1&&(m+="&l1="+w.Y)),n.alias&&(y="&PA="+encodeURIComponent(n.alias)),t.p&&(c+="&vp=1")}var w=t.aa?"&b="+t.aa:"",E=t.A?"&A="+t.A:"",S=t.R?"&f="+t.R:"",x=t.d.b("_cb_cp"),x=x?"&D="+x:"";t.d.remove("_cb_cp");var T="",N=t.d.b("_chartbeat4");N&&(d(N.split("::"),function(e,t){T+="&z="+encodeURIComponent(t)}),t.d.remove("_chartbeat4"));var N=[],C;for(C in n)C.charAt(0)=="_"&&N.push(C+"="+n[C]);U(t,(s.location.protocol||"http:")+"//"+n.pingServer+"/ping?h="+encodeURIComponent(n.domain)+"&p="+encodeURIComponent(n.path)+"&u="+t.w+"&d="+encodeURIComponent(t.C)+"&g="+n.uid+b(n,0,"sections")+b(n,1,"authors")+b(n,3,"sponsorName")+b(n,4,"type")+(!n.noCookies&&t.d.isSupported()?"&n="+t.xa:"&nc=1")+S+"&c="+o+"&x="+i+"&m="+t.n+"&y="+B("Height")+"&o="+B("Width")+"&w="+H()+"&j="+Math.round((t.g+2)*15e3/1e3)+"&R="+u+"&W="+a+"&I="+f+"&E="+t.i.total()+"&e="+l+c+m+y+w+E+g("C","utm_campaign",n.campaignTag)+g("M","utm_medium",n.mediumTag)+"&t="+t.I+"&V=33"+x+T+h+v+(D(t.d)?"&l=1":"")+(N.length?"&"+N.join("&"):"")+"&_")}function Q(t){var i=t.d.b("_chartbeat5");if(!i)return n;var i=i.split("::"),o=i.length,u,a;if(o===1)u=i[0].split(","),a=0;else{var f,l=s.location.href;d(i,function(t,n){var i=n.split(","),s=v(l,decodeURIComponent(i[3]));if(s===0)return u=i,a=t,r;if(f===e||s<f)f=s,u=i,a=t})}return i.splice(a,1),t.d.create("_chartbeat5",i.join("::"),.0006944444444444445),{left:u[0],top:u[1],path:decodeURIComponent(u[2]),Y:o}}var e=void 0,t=!0,n=null,r=!1,i,s=this,w={};w.c=function(t){var r=s._sf_async_config;if(!t&&r&&r.noCookies)return n;if(w.c.B!==e)return w.c.B;var t=p()+"",i,o;try{if((o=s.localStorage).setItem(t,t),i=o.getItem(t)===t,o.removeItem(t),i)return w.c.B=o}catch(u){}return w.c.B=n},w.b=function(e){var t=w.c();if(!t)return"";var n=t.getItem(e+"_expires");return n&&(n=+n,!isNaN(n)&&p()>n)?(w.remove(e),""):t.getItem(e)||""},w.create=function(e,t,n){var r=w.c();if(r){try{r.setItem(e,t)}catch(i){}t=new Date,t.setTime(p()+n*864e5);try{r.setItem(e+"_expires",t.getTime())}catch(s){}}},w.remove=function(e){var t=w.c();t&&(t.removeItem(e),t.removeItem(e+"_expires"))};var E=(document.location.protocol=="https:"?"https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/":"http://static.chartbeat.com/")+"js/inpage.js",T={},N=1,A={};A.e=function(){A.m?A.s("pageload"):(A.fa=[{target:s,event:"scroll"},{target:document.body,event:"keydown"},{target:document.body,event:"mousemove"},{target:s,event:"resize"},{target:document.body,event:"mousedown"}],A.v=n,A.M=r,A.l=n,A.V={},d(A.fa,function(e,t){var n=t.event;l(t.target,n,function(e){A.s.call(A,n,e)})}),C("focus",function(){A.s("focus")}),A.s("pageload"),l(document.body,"click",function(t){e:if(t=t||window.event){if(t=t.target||t.srcElement,t.tagName!=="A"){if(!t.parentNode){t=e;break e}if(t.parentNode.tagName==="A")t=t.parentNode;else{if(!t.parentNode.parentNode||t.parentNode.parentNode.tagName!=="A"){t=e;break e}t=t.parentNode.parentNode}}}else t=e;t&&L("anchor",t)}),A.m=t)},A.ka=function(){var t,n=A.V.keydown;return n===e?r:(n=p()-n,n<=(t||15e3)&&n>=0)},A.P=100,A.s=function(e,r){r||(r=window.event);if(r&&e==="keydown"){var i=r.keyCode?r.keyCode:r.which;if(i===32||i>36&&i<41)e="scroll"}A.Ia(e),A.v===n?A.ca():A.M=t},A.Ia=function(e){A.V[e]=p()},A.ca=function(){A.v=s.setTimeout(A.ma,A.P),L("activity"),A.l!==n&&s.clearTimeout(A.l),A.l=s.setTimeout(function(){L("inactive"),s.clearTimeout(A.l),A.l=n},5e3+A.P)},A.ma=function(){s.clearTimeout(A.v),A.v=n,A.M&&(A.M=r,A.ca())};var O={};O.la=function(){try{O.create("_cb_test","1",1);var e=O.b("_cb_test");return O.remove("_cb_test"),e==="1"}catch(t){return r}},O.b=function(e){e+="=";for(var t=document.cookie.split(";"),n,r=0,i=t.length;r<i;r++){for(n=t[r];n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return n.substring(e.length,n.length)}return""},O.create=function(e,t,n){var r=s._sf_async_config;if(!r||!r.noCookies)r=new Date,r.setTime(p()+n*864e5),document.cookie=e+"="+t+("; expires="+r.toGMTString())+"; path=/"},O.remove=function(e){O.b(e)&&O.create(e,"",-1)},i=M.prototype,i.isSupported=function(){return this.na},i.create=function(e,t,n,r){e=r?e:this.u+e,(w.c()?w:O).create(e,t,n),w.c()&&O.create(e,t,n)},i.update=function(e,n,r,i,s,o){e=i?e:this.u+e,s=typeof s=="string"?s:"::",i=(i=this.b(e,t))?i.split(s):[],typeof o=="number"&&i.length>=o&&i.splice(0,i.length-o+1),i.push(n),this.create(e,i.join(s),r,t)},i.b=function(e,n){var e=n?e:this.u+e,r=(w.c()?w:O).b(e);if(!r&&w.c()&&(r=O.b(e))&&O.b("_cb_ls")){this.L=t;var i;switch(e){case"_SUPERFLY_nosample":i=.007;break;case"_chartbeat4":i=.0417;break;case"_cb_cp":i=.0417;break;default:i=30}w.create(e,r,i)}return r},i.remove=function(e,t){e=t?e:this.u+e,(w.c()?w:O).remove(e),w.c()&&O.remove(e)};var j=function(){var t,n;d(["","moz","o","ms","webkit"],function(e,i){t=(i+"Hidden").charAt(0).toLowerCase()+(i+"Hidden").slice(1);if(typeof document[t]=="boolean")return n=i,r});var i={};return n!==e&&(i.U=t,i.O=(n+"VisibilityState").charAt(0).toLowerCase()+(n+"VisibilityState").slice(1),i.z=n+"visibilitychange"),i}();j.e=function(){j.m||(j.q=j.ba(),j.z&&document.addEventListener&&document.addEventListener(j.z,j.Da,r),j.Q("focus","onfocusin",j.G),j.Q("blur","onfocusout",j.Z),j.q&&j.G(),j.m=t)},j.La=function(){return j.q},j.G=function(){j.q=t,L("focus")},j.Z=function(){j.q=r,L("blur")},j.Q=function(e,t,n){s.addEventListener?s.addEventListener(e,n,r):document.attachEvent&&document.attachEvent(t,n)},j.ba=function(){var e=t;document.hasFocus&&(e=document.hasFocus());var n=r;return j.U&&(n=document[j.U]),e&&!n},j.Da=function(){j.ba()?j.G():j.Z()};var F={ha:{IDLE:0,Ka:1,Ja:2,ga:3},f:0};F.e=function(){F.m||(C("activity",F.qa,F),C("inactive",F.ta,F),C("focus",F.sa,F),C("blur",F.ra,F),F.m=t)},F.pa=function(){return F.f},F.qa=function(){F.f===1?F.h(3):F.f===0&&F.h(2)},F.ta=function(){F.f===3?F.h(1):F.f===2&&F.h(0)},F.sa=function(){(F.f===0||F.f===2)&&F.h(3)},F.ra=function(){F.f===3?F.h(2):F.f===1&&F.h(0)},F.h=function(e){F.f=e,L("state",e)},i=I.prototype,i.e=function(){this.k=this.N=0,this.o=n,this.Ga=C("state",this.T,this),this.T(F.pa())},i.total=function(){return this.N+=this.k,this.k=0,this.N},i.T=function(e){s.clearInterval(this.o),this.o=n,e===F.ha.ga&&(this.o=s.setInterval(f(this.va,this),1e3))},i.va=function(){if(this.S===e||this.S())this.k++,this.$&&this.$()},i.terminate=function(){s.clearInterval(this.o),this.o=n,k(this.Ga)},i=q.prototype,i.e=function(){this.F=this.g=0,this.K=p(),this.I=u($(this,r)),this.H=t,this.W=72e5;var e=+this.a.sessionLength;!isNaN(e)&&this.Ha!=="_p_"&&(this.W=e*6e4),this.i.e(),F.e(),A.e(),j.e(),this.n=0,this.ja=C("activity",this.ya,this)},i.J=function(){var e=s._sf_startpt,t=s._sf_endpt;c(e)&&(this.aa=c(t)?t-e:p()-e),A.e(),this.D=setInterval(f(this.X,this),15e3),this.X()},i.X=function(){var e=this.i.k,e=this.a.reading&&+this.a.reading||e>0;this.F<this.g&&!e?this.F++:(e?this.g=0:W(this),this.F=0,this.j.push(0),this.j.length>18&&this.j.shift(),p()-this.K>=this.W?clearInterval(this.D):K(this))},i.Ba=function(){this.j.push(1);for(var e=0,n=0,r=this.j.length;n<r;++n)e+=this.j[n];e<3?(this.H=t,W(this)):(clearInterval(this.D),this.d.create("_SUPERFLY_nosample","1",.007))},i.t=function(){this.d.update("_cb_cp",this.I,.0417,r,",")},i.ya=function(){var e=z(this);this.n=Math.max(this.n,e)},i.Fa=function(e){this.a[e[0]]=e[1],this.g=0},i.ea=function(e,t){this.p=s.location.protocol+"//"+this.a.domain+this.a.path,this.a.path=e,t&&(this.a.title=t),clearInterval(this.D),k(this.ja),this.t(),this.i.terminate(),this.e(),R(this)},function(){function t(){}var e=q;t.prototype=e.prototype,J.da=e.prototype,J.prototype=new t,J.prototype.constructor=J}(),i=J.prototype,i.e=function(){J.da.e.call(this),this.A=n;for(var e=this.a,i=document.getElementsByTagName("script"),o=0,a=i.length;o<a;++o)if(i[o].src.match(/chartbeat.js/)){i=m(i[o].src.split("?")[1]),e.uid=e.uid||i.uid,e.domain=e.domain||i.domain;break}e=s.location,i=this.a,i.pingServer=i.pingServer||"ping.chartbeat.net",i=this.a,i.title=i.title||document.title,i=this.a,i.domain=i.domain||e.host,i=this.a;e:{o=n;if(this.a.useCanonical){for(var o=n,a=document.getElementsByTagName("link"),c=0,d=a.length;c<d;++c)a[c].rel=="canonical"&&(o=a[c].href,o=o.substring(o.indexOf("/",9)));if(o)break e}c=s.location,o=c.pathname+(c.search||""),o=o.replace(/PHPSESSID=[^&]+/,""),a=/&utm_[^=]+=[^&]+/ig,(c=a.exec(c.search))&&(o=o.replace(a,"")),a=/\?utm_[^=]+=[^&]+(.*)/i,(c=a.exec(o))&&(o=o.replace(a,c[1]!=""?"?"+c[1]:""))}i.path=i.path||o,this.C=e.host.replace(/^www\./,""),this.a.domain=this.a.domain.replace(/^www\./,""),e=(this.d.b("_chartbeat2",t)||"").split("."),e.length>4&&(e=[]),i=p(),o=i- +(e[1]||0),c="1",d=e&&+e[2],a=e&&e[3];if(e&&d&&a)if(c=Math.abs((h(i)-h(d))/864e5)){c=Math.min(c,16)-1;for(d="";c--;)d+=0;c=(a+d+"1").slice(-16)}else c=a;a=c,this.xa=e[0]&&o>18e5?0:1,e[0]||(e[0]=this.a.utoken||u($(this,r),3),e[1]=i),e[2]=i,e[3]=a,this.w=e[0],this.Ea=e.join("."),this.d.create("_chartbeat2",this.Ea,30,t),this.a.utoken=this.w;var v;i=+e[1],o=+e[2],(e=e[3])&&i&&o&&(v=(Math.min((Math.abs((h(o)-h(i))/864e5)||0)+1,16,e.length)-1).toString(16),v+=("0000"+parseInt(e,2).toString(16)).slice(-4)),this.R=v,s.postMessage&&l(s,"message",f(this.ua,this)),v=this.d.b("_chartbeat_uuniq")==="3",this.d.create("_chartbeat_uuniq","3",30),v||U(this,"//ping.chartbeat.net/uuniq?u="+this.w+"&u2="+u($(this,t)))},i.ia=function(e){this.A=e},i.t=function(){J.da.t.call(this),this.d.update("_chartbeat4",["t="+this.I,"E="+this.i.total(),"x="+z(this),"c="+Math.round((p()-this.K)/600)/100,"y="+B("Height"),"w="+H()].join("&"),.0417)},i.ua=function(e){var t=this.a;if(e.origin==="http://"+(t.playerdomain||this.C)){var n=e.data;if(typeof n=="string"&&n.indexOf("cbqpush::")===0){if(e=n.split("::"),e.length==3)e[1].indexOf("_")===0&&(t[e[1]]=e[2]),this.g=0}else n=="cbdata?"&&(t="domain="+encodeURIComponent(t.domain)+"&path="+encodeURIComponent(t.path)+"&title="+V(this)+"&referrer="+encodeURIComponent(this.p||document.referrer||"")+"&internal="+(X(this)?"1":"0")+"&subdomain="+encodeURIComponent(this.C)+"&utoken="+this.w,e.source.postMessage(t,"*"))}},i.za=function(i){var o,u=i.href||"",u=u.replace(/-{2,}/g,"-");o=u;var a="",f="";if(o){var f=document.createElement("a"),l=s.location;o.indexOf("http")!==0&&o.indexOf("javascript")!==0&&(o=l.protocol+o),f.href=o,a=f.hostname,f=f.protocol,a===""&&(a=l.hostname),f===""&&(f=l.protocol),f==="javascript:"&&(a="")}if(a===s.location.hostname&&f!=="javascript:"){o=i,a=o.offsetLeft,i=o.offsetTop,l=r;for(f=o.offsetParent;o&&o!==e&&o!==document.body;){o===f&&(a+=o.offsetLeft,i+=o.offsetTop,f=o.offsetParent);var c=o,h=e;h=s.getComputedStyle?(c=s.getComputedStyle(c,n))&&(c.position||c.getPropertyValue("position")):c.currentStyle?c.currentStyle.position:c.style&&c.style.position;if((h||"")==="fixed"){l=t;break}o=o.parentElement}l&&(a+=0,i+=0),o=a,this.d.update("_chartbeat5",[o,i,encodeURIComponent(this.a.path),encodeURIComponent(u)].join(","),.0006944444444444445,r,e,5)}};if(!s.pSUPERFLY){var G=new J;s.pSUPERFLY=G,J.prototype.virtualPage=J.prototype.ea,J.prototype.activity=J.prototype.ia;var Y=s.pSUPERFLY_pub;Y&&Y.virtualPage&&(J.prototype.virtualPage=function(){var e=arguments.length?Array.prototype.slice.call(arguments,0):[];Y.virtualPage(),J.prototype.ea.apply(G,e),Y.e(),R(Y)}),Y&&Y.addEngagedAdFilter&&(J.prototype.addEngagedAdFilter=f(Y.addEngagedAdFilter,Y)),Y&&Y.refreshAd&&(J.prototype.refreshAd=f(Y.refreshAd,Y)),R(G);var Z=w.c(t);Z&&(l(s,"message",x),Z.getItem("_cb_ip")&&S())}};return e}),define("ninemsn/portal/common/tracking/chartbeat/config",["ninemsn/portal/common/configuration"],function(e){return e.create({chartbeat:{enabled:!1,uid:"42370",useCanonical:!0,domain:"nine.com.au",sections:null}})}),define("ninemsn/portal/common/tracking/chartbeat",["ninemsn/portal/common/tracking/chartbeat/api","ninemsn/portal/common/tracking/chartbeat/config"],function(e,t){return{trackPageLoadEvent:function(){t().done(function(t){var n=t.chartbeat;if(n.enabled){var r=t.hierarchy||{};n.sections=r.site,window._sf_async_config=n,e.call()}})}}}),define("ninemsn/portal/common/tracking/radiumOne/api",[],function(){var loadRadiumOne=function(E,M,J){E=window,M=window.document;if(E.post_widget===J){var K=function(){var e=document.createElement("div"),t=e.getElementsByTagName("i"),n=3;do e.innerHTML="<!--[if gt IE "+ ++n+"]><i></i><![endif]-->";while(t[0]);return 4<n?n:J}(),L;if(6!==K){L=function(){var e=["android","iphone","ipad","ipod","windows phone"],t=E.navigator.userAgent.toLowerCase(),n=e.length,r=!1,i=E.screen.availWidth,s=E.screen.availHeight,o;for(o=0;o<n;o++)if(t.match(RegExp(e[o],"g"))){r={platform:e[o],height:s,tablet:600<=i,width:i},"i"===e[o].charAt(0)&&(r.iosV=t.match(/os ([0-9]+)/g)[0].split(" ")[1]);break}return r}();var I,v;(function(e){var t,n,r={};n=Object.prototype,t=function(e){var t=[],n=e.length,i,s;for(s=0;s<n;s++)i=e[s].split("/"),i=i[i.length-1],t.push(r[i]);return t},v=function(i,s,o){"[object Array]"!==n.toString.call(s)?(o=s,r[i]="function"!=typeof o?o:o()):r[i]=o.apply(e,t(s))},I=function(n,i){if("string"==typeof n)return r[n.split("/").pop()];i.apply(e,t(n))}})(),v("env",{version:"3_36_2_pch_682",logServer:"//p.po.st",cdnServer:("https:"==M.location.protocol?"https://s.po.st":"http://i.po.st")+"/static/v3",cdnServerNonSecure:"http://i.po.st/static/v3",shareServer:"//po.st",widgetBuildNumber:"3.36.2-pch-682",displayCmUrl:"//rs.gwallet.com/r1/cm/t0p23",displayBcmUrl:"//rs.gwallet.com/r1/bcm/p23",ieVersion:K,isMobile:L}),v("enumeration",{none:"none",post:"post",postShare:"post-share",copypaste:"copypaste",more:"more",pinterest:"pinterest",pinterestImage:"pinterest-image",services:"services",retina:"retina",print:"print",favorites:"favorites",popular:"popular",widgetVersion:{old:"2.1",neu:"3.0"},events:{click:"click",mouseover:"mouseover",mouseout:"mouseout",resize:"resize"},look:{square:"square",nativ:"native",looknative:"looknative",postShare:"post-share"},size:{small:"small",medium:"medium",large:"large",xlarge:"xlarge"},counter:{name:"counter",none:"none",show:"show",vertical:"vertical",horizontal:"horizontal"},layout:{name:"layout",vertical:"vertical",horizontal:"horizontal"},viewType:{button:"button",widget:"widget",list:"list",popup:"popup.popular",popupList:"popup.list",aftershare:"popup.aftershare"},widgetType:{singleButton:"singleButton",buttonCollection:"buttonCollection"},dataloggerEvent:{view:"view",share:"share",more:"more",clickback:"clickback",copyPaste:"copy-paste"},shareMode:{classic:"classic"},initType:{immediate:"immediate",lazy:"lazy"},container:{custombox:"custombox"}}),v("globals",function(){var e;return e=window,{win:e,navigator:e.navigator,document:e.document,docElement:e.document.documentElement,appVersion:e.navigator.appVersion,appName:e.navigator.appName,notDefined:void 0,ArrayProto:Array.prototype,ObjProto:Object.prototype}}),v("util",["globals"],function(e){var t,n={};return t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)},n.systemLanguage=function(){return e.navigator.userLanguage||e.navigator.language||e.navigator.systemLanguage},n.redirect=function(t){e.win.location.replace(t)},n.hasProperty=function(t,n){return e.ObjProto.hasOwnProperty.call(t,n)},n.each=function(e,t){var n,r;if(this.isCollection(e)||this.isArray(e)){if(e=this.HTMLCollectionToArray(e),this.isFunction(t))for(n=e.length,r=0;r<n&&!1!==t(r,e[r]);r++);}else if(this.isObject(e)&&this.isFunction(t))for(n in e)if(this.hasProperty(e,n)&&!1===t(n,e[n]))break;return this},n.eachTimes=function(e,t){var n;if(this.isFunction(t))for(n=0;n<e;n++)t(n,e);return this},n.isFunction=function(e){return"function"==typeof e},n.getPropertyByPath=function(t,r){var i,s=t;return r&&(i=r.split("."),this.each(i,function(t,r){s=n.isUndefined(s)?e.notDefined:s[r]})),s},n.setPropertyByPath=function(e,t,n){var r;t=t.split(".");for(r=0;r<t.length-1;r+=1)e=e[t[r]];e[t[t.length-1]]=n},n.prop=function(e,t,r){if(!r)return n.getPropertyByPath(e,t);n.setPropertyByPath(e,t,r)},n.isString=function(e){return"string"==typeof e},n.isArray=function(t){return"[object Array]"===e.ObjProto.toString.call(t)},n.arrayToString=function(e,t){var r=e;return t=t||",",n.isArray(e)&&(r=e.join(t)),r},n.isCollection=function(t){var r=e.ObjProto.toString.call(t),i=!1;return"[object HTMLCollection]"===r||"[object NodeList]"===r?i=!0:n.isObject(t)&&n.hasProperty(t,"length")&&(0===t.length||"object"==typeof t[0]&&0<t[0].nodeType)&&(i=!0),i},n.addToFavorites=function(t,n,r){try{e.win.external.AddFavorite(n,t)}catch(i){try{e.win.sidebar.addPanel(t,n,"")}catch(s){this.isDefined(r)&&r()}}},n.closeThisWindow=function(){e.win.open("","_self"),e.win.close()},n.notify=function(t){e.win.alert(t)},n.print=function(){"Opera"===e.appName?setTimeout(e.win.print,1e3):e.win.print()},n.openWindow=function(t,n){return e.win.open(t,"",n)},n.HTMLCollectionToArray=function(e){var t=[],n;if(this.isCollection(e)){for(n=0;n<e.length;n++)t[n]=e[n];e=t}return e},n.GUID=function(e){var n="";return e=e?"-":"",this.eachTimes(8,function(r,i){n=r<i-1?n+(t()+e):n+t()}),n},n.rand=function(){return Math.round(1e4*Math.random())},n.getTimeStamp=function(){return(new Date).getTime()},n.toInt=function(e){return e>>0},n.prepareQueryParams=function(e){var t="?";return this.each(e,function(e,n){t+=encodeURIComponent(e)+"="+encodeURIComponent(n)+"&"}),t},n.bind=function(e,t){return function(){return t.apply(e,arguments)}},n.bindAll=function(t,r){var i=r||e.ArrayProto.slice.call(arguments,1)[0],s,o;for(s=0;s<i.length;s++)o=i[s],t[o]=n.bind(t,t[o]);return t},n.mergeObjects=function(e,t,r){var i,s;n.isObject(t)||(t={});for(i in e)s=e[i],n.hasProperty(e,i)&&(r&&"on"!==i.substr(0,2)||!r)&&(!n.isObject(s)||n.isArray(s)||n.isDOMElement(s)?t[i]=s:t[i]=n.mergeObjects(s,t[i],r));return t},n.isDOMElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},n.isDefined=function(e){var t=!0;if(n.isNull(e)||n.isUndefined(e))t=!1;return t},n.arrayMaximum=function(e){return Math.max.apply(Math,e)},n.template=function(e,t){return this.each(t,function(t,r){e=n.replaceAll(e,"{{"+t+"}}",r)}),e},n.replaceAll=function(e,t,n){return e.replace(RegExp(t,"g"),n)},n.trim=function(e){return n.replaceAll(e," ","")},n.unMergeArrays=function(e,t,r){var i=[];return r?(i=e.slice(0),n.each(i,function(r,i){var s=n.indexOfArray(t,i);-1===s&&(s=n.indexOfArray(e,i),e.splice(s,1))})):n.each(t,function(t,r){var i=n.indexOfArray(e,r);-1!==i&&e.splice(i,1)}),e},n.stringToArray=function(e,t){return n.isString(e)?n.trim(e).split(t||","):e},n.hashParams=function(e,t){var r=e.split("&"),i={},s;return 1===r.length?(s=r[0].split("="),i[s[0]]=s[1]):this.each(r,function(e,r){s=r.split("="),-1<n.indexOfArray(t,s[0])&&(i[s[0]]=s[1])}),i},n.indexOfArray=function(t,n){var r=-1;return e.ArrayProto.indexOf?r=t.indexOf(n):this.each(t,function(e,t){t===n&&(r=e)}),r},n.mergeToArray=function(e,t){return e=e||[],this.isCollection(t)||this.isArray(t)||(t=[t]),e.concat(t)},n.fixShema=function(e){return 1===e.split("://").length&&(e="http://"+e),e},n.isUndefined=function(t){return t===e.notDefined},n.isNull=function(e){return null===e},n.isBoolean=function(e){return"boolean"===e},n.isObject=function(e){return"object"==typeof e},n.askUser=function(t,n){return e.win.prompt(t||"",n||"")},n.cloneObj=function(e){var t={};return n.isObject(e)&&n.each(e,function(e,n){t[e]=n}),t},n.uniq=function(e){var t={},r=[];return n.each(e,function(e,i){n.hasProperty(t,i)||(t[i]=!0,r.push(i))}),r},n.isObjEmpty=function(e){var t;if(n.isObject(e))for(t in e)if(n.hasProperty(e,t))return!1;return!0},n.removeTrackingParam=function(e){return e.replace(/[\?&#]{1}([a-z\d]{16})\.([\d]{2})(?:|$)/i,"")},n.sGUID=function(){var e="";return this.eachTimes(16,function(){e+="abcdefghijklmopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789".charAt(Math.round(59*Math.random()))}),e},n.countWords=function(e){if(e)return e.replace(/(^\s*)|(\s*$)/gi,"").replace(/[ ]{2,}/gi," ").replace(/\n /,"\n").split(" ").length},n.isFlashInstalled=function(){var t=e.navigator.mimeTypes,n=!1,r=e.navigator.plugins,i=e.win;if(r&&r.length)t&&t["application/x-shockwave-flash"]&&t["application/x-shockwave-flash"].enabledPlugin&&(n=!0);else if(-1===e.navigator.appVersion.indexOf("Mac")&&i.execScript)try{new i.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),n=!0}catch(s){}return n},n.tryValue=function(e,t){return n.isFunction(t)&&t(e),this},n.strToBoolean=function(t){return this.isString(t)?"true"===t:e.notDefined},n}),v("pubsub",["util"],function(e){var t={},n={};return t.subscribe=function(t,r,i){var s=e.GUID(!1),o=n;i&&(o=i.triggers);if(!o[t]||i)o[t]=[];return o[t].push({id:s,fn:r}),s},t.publish=function(t,r,i){var s=n;i&&(s=i.triggers),s[t]&&(i=s[t],e.each(i,function(e,n){n.fn(t,r)}))},t}),v("status",["util"],function(e){var t,n=[],r={},i={},s=0,o=!1;return t="pt ru vGUID mGUID sGUID bGUID label clicked".split(" "),i.getFetchingState=function(){return o},i.setFetchingState=function(e){o=e},i.optout=function(t){return e.isUndefined(t)||(s=t),s},i.getRestrictedOptOutParams=function(){return t},i.addInterstitial=function(t,r){e.isUndefined(this.getInterstitial(t))&&n.push({publisherKey:t,value:r})},i.getInterstitial=function(t){var r;return e.each(n,function(e,n){if(n.publisherKey===t)return r=n.value,!1}),r},i.addCustomShorteners=function(t,n){e.isUndefined(this.getCustomShortener(t))&&(r[t]=n)},i.getCustomShortener=function(e){return r[e]},i}),v("dom",["util","globals"],function(e,t){var n=t.document,r={},i,s,o;return i=function(t,r){var i=[],s,o=[];return n.getElementsByClassName?i=r.getElementsByClassName(t):r.querySelectorAll?i=r.querySelectorAll("."+t):(s=RegExp("(^|\\s)"+t+"(\\s|$)"),o=r.getElementsByTagName("*"),e.each(o,function(e,t){s.test(t.className)&&i.push(t)})),i},o=function(t,n,i,s,o){var u;return u=function(h){i(h,t),(e.isUndefined(o)||o)&&r.preventDefault(h),r.stopPropagation(h),s&&r.removeEvent(t,n,u)},t.addEventListener?t.addEventListener(n,u,!1):t.attachEvent?t.attachEvent("on"+n,u):t["on"+n]=u,u},s=function(t){return e.isString(t)&&(t=r.getBy(t)),e.isCollection(t)||(t=[t]),t},r.returnElement=s,r.createElement=function(t,i){var s=n.createElement(t);return e.each(i,function(e,t){"innerHTML"===e?s.innerHTML=t:"className"===e?s.className=t:"style"===e?r.setStyle(s,t):s.setAttribute(e,t)}),s},r.getBy=function(t,r){var s=[],o=t.split(" "),u=[],f;r=r||n,1<o.length&&(f=o[1].toUpperCase(),t=o[0],o=null);switch(t.charAt(0)){case"#":o=n.getElementById(t.substr(1));break;case".":o=i(t.substr(1),r);break;default:o=r.getElementsByTagName(t)}return e.isDefined(o)&&(o=e.HTMLCollectionToArray(o),f&&e.each(o,function(t,n){e.each(n.childNodes,function(e,t){t.nodeName===f&&s.push(t)})}),u=1<s.length?s:o),u},r.setStyle=function(t,n){t=s(t)[0],e.each(n,function(e,n){t.style[e]=n})},r.setTitle=function(e){t.document.title=e},r.hasChild=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},r.listenPostMessage=function(e,n){n=n||t.win,n.postMessage&&r.addEvent(n,"message",function(t){e&&e(t.data,t.origin)})},r.isHidden=function(e){return"none"===e.style.display},r.appendTo=function(e,t){return s(e)[0].appendChild(t)},r.insertHTML=function(e,t){e.innerHTML+=t},r.html=function(e,t){var n=r;return t?e.innerHTML=t:n=e.innerHTML,n},r.getNodeText=function(e){return e.innerText||e.textContent},r.removeNode=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},r.loadScript=function(e,t){var n,r,i;n=this.createElement("script",{src:e,async:!0}),n.onload=n.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(r=!0,n.onload=n.onreadystatechange=null,t&&t(),n&&n.parentNode&&n.parentNode.removeChild(n))},i||(i=this.getBy("head")[0]),this.appendTo(i,n)},r.addEvent=function(t,n,r,i,s){var u;return e.isArray(t)?e.each(t,function(e,t){u=o(t,n,r,i,s)}):u=o(t,n,r,i,s),u},r.removeEvent=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},r.attr=function(t,n,r){var i;if(!r)return(i=t.getAttribute&&t.getAttribute(n)||null)||e.each(t.attributes,function(e,t){t.nodeName===n&&(i=t.nodeValue)}),"boolean"==typeof i?i.toString():i;t.setAttribute(n,r)},r.addClass=function(e,t){s(e)[0].className+=" "+t},r.classList=function(t,n){var r=(s(t)[0].className||"").split(" "),i=!1;return n&&(n=e.isArray(n)?n:[n],e.each(n,function(t,n){if(-1<e.indexOfArray(r,n))return i=!0,!1})),n?i:r},r.setClass=function(e,t){s(e)[0].className=t},r.replaceClass=function(e,t,n){e=s(e)[0],e.className=e.className.replace(t,n)},r.loadCSS=function(e){e=this.createElement("link",{rel:"stylesheet",type:"text/css",href:e,media:"all"}),this.appendTo("head",e)},r.ready=function(e){function r(){u||(u=!0,e())}function i(){if(!u&&n.body)try{s.doScroll("left"),r()}catch(e){setTimeout(i,0)}}var s=document.documentElement,o=n.readyState,u=!1;"complete"===o&&r(),n.addEventListener?n.addEventListener("DOMContentLoaded",function(){r()},!1):n.attachEvent&&(s.doScroll&&t.win===t.win.top&&i(),n.attachEvent("onreadystatechange",function(){"complete"===o&&r()})),t.win.addEventListener?t.win.addEventListener("load",r,!1):t.win.attachEvent&&t.win.attachEvent("onload",r)},r.stopPropagation=function(e){e=e||t.win.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},r.doc=function(t){return t?e.getPropertyByPath(n,t):n},r.win=function(n){return n?e.getPropertyByPath(t.win,n):t.win},r.parent=function(e,t){return t?e.parentNode[t]:e.parentNode},r.insertBefore=function(e,t){e.parentNode.insertBefore(t,e.nextSibling)},r.childs=function(t,n){var r=[];return t=s(t)[0],n=n.toUpperCase(),e.each(t.childNodes,function(e,t){n===t.tagName&&r.push(t)}),r},r.preventDefault=function(e){e=e||t.win.event,e.preventDefault?e.preventDefault():e.returnValue=!1},r.display=function(e,t){if(e=s(e)[0])switch(t){case"hide":e.style.display="none";break;default:e.style.display="block"}},r.getClientOffset=function(){var e={};return t.win.opera?(e.w=t.win.innerWidth,e.h=t.win.innerHeight):"CSS1Compat"===n.compatMode?(e.w=n.documentElement.clientWidth,e.h=n.documentElement.clientHeight):(e.w=n.body.clientWidth,e.h=n.body.clientHeight),e},r.getScrollPosition=function(){return{x:t.win.pageXOffset||n.documentElement.scrollLeft,y:t.win.pageYOffset||n.documentElement.scrollTop}},r.getElementOffset=function(e){return e.getBoundingClientRect?this.getOffsetRect(e):this.getOffsetSum(e)},r.getOffsetRect=function(e){e=e.getBoundingClientRect();var r=n.body,i=n.documentElement,s=e.top+(t.win.pageYOffset||i.scrollTop||r.scrollTop)-(i.clientTop||r.clientTop||0);return{left:Math.round(e.left+(t.win.pageXOffset||i.scrollLeft||r.scrollLeft)-(i.clientLeft||r.clientLeft||0)),top:Math.round(s)}},r.getOffsetSum=function(t){for(var n=0,r=0;t;)r+=e.toInt(t.offsetLeft),n+=e.toInt(t.offsetTop),t=t.offsetParent;return{left:r,top:n}},r.getParentByClassList=function(e,t){for(var n;e.parentNode&&"body"!==e.localName;){if(this.classList(e.parentNode,t)){n=e.parentNode;break}e=e.parentNode}return n},r.getElementSize=function(e){return{height:e.offsetHeight,width:e.offsetWidth}},r.getTransitionEndEventName=function(){var e={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend"},n,r;for(n in e)if(e.hasOwnProperty(n)&&t.document.body.style[n]!==t.notDefined){r=e[n];break}return r},r.onTransitionEnd=function(n,i){var s={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend"},o,u;for(o in s)if(s.hasOwnProperty(o)&&t.document.body.style[o]!==t.notDefined){u=s[o];break}u&&e.isFunction(i)&&r.addEvent(n,u,i,!0)},r.isNodeElement=function(e){return 0<e.nodeType},r.getWindowHeight=function(){return t.win.innerHeight},r}),v("copyPaste",["util","dom","globals"],function(e,t,n){var r;return r={additionalScroll:20,postBlockClassName:"copy-paste-block"},{init:function(i){this.options=e.mergeObjects(r,i||{}),e.bindAll(this,["copyCallback"]),t.addEvent(n.document.body,"copy",this.copyCallback,!1,!1)},copyCallback:function(t){t=t.target||t.srcElement;var r=e.isDefined(n.win.getSelection)?getSelection().toString():n.document.selection.createRange().text;r.replace(/^\s+|\s+$/g,"").length&&"TEXTAREA"!==t.nodeName&&"INPUT"!==t.nodeName&&(this.checkForUrl(r.replace(/^\s+|\s+$/g,""))||this.formatCopiedText(t,r,this.options.onCopy))},formatCopiedText:function(t,r,i){t=r.replace(/^\s+|\s+$/g,"");var s,o;n.document.selection&&n.document.selection.createRange||(s=n.win.getSelection().getRangeAt(0).cloneRange()),t.split(/\s+/).length>=this.options.min&&(e.isFunction(i)&&i(r),this.options.tracking&&this.textUpdater(),n.document.selection&&n.document.selection.createRange||setTimeout(function(){o=n.win.getSelection(),o.removeAllRanges(),o.addRange(s)},0))},checkForUrl:function(e){return(/(https?:\/\/[^\s]+)/g.test(e)||0===e.indexOf("www"))&&-1===e.indexOf(" ")},textUpdater:function(){var e,r,i,s,o,u=this,a=t.getScrollPosition();e=t.createElement("a",{href:this.options.url,innerHTML:encodeURIComponent(this.options.url),style:{color:"#003399"}}),e=this.options.msg.replace(RegExp("{link}","g"),e),o=t.createElement("span",{innerHTML:"<br/>"+e}),s=t.createElement("div",{className:this.options.postBlockClassName}),n.document.selection&&n.document.selection.createRange?(i=t.createElement("div",{className:this.options.postBlockClassName,style:{left:a.x+this.options.additionalScroll+"px",top:a.y+this.options.additionalScroll+"px"}}),t.appendTo(t.getBy("body"),i),r=n.document.selection.createRange(),s.innerHTML="<br/>"+r.htmlText,t.appendTo(s,o),t.appendTo(i,s),e=n.document.body.createTextRange(),e.moveToElementText(s),e.select(),setTimeout(function(){t.removeNode(i),""!==r.text&&(r.select(),n.document.body.scrollLeft=n.document.documentElement.scrollLeft=a.x+u.options.additionalScroll+"px",n.document.body.scrollTop=n.document.documentElement.scrollTop=a.y+u.options.additionalScroll+"px")},0)):(e=n.win.getSelection(),r=n.document.createRange(),t.appendTo(t.getBy("body"),s),t.appendTo(s,e.getRangeAt(0).cloneContents()),t.appendTo(s,o),r.selectNode(s),e.removeAllRanges(),e.addRange(r),setTimeout(function(){t.removeNode(s)},0))}}}),v("support",["util","globals","pubsub","env","enumeration"],function(e,t,n,r,i){t={};var s=!1;return n.subscribe("application.ready",function(e){s=!0}),t.fixPinterest=function(e){if("imageURL"===e||"Image"===e||"pinterestImage"===e)e="image";return e},t.appReady=function(t){var n=setInterval(function(){s&&(e.isFunction(t)&&t(),clearInterval(n))},1)},t.fixPinterestPwConf=function(t){var n={},r=this;return e.each(t,function(e,t){n[r.fixPinterest(e)]=t}),n},t.updateServices=function(t){var n,s;return t.p_share_popup&&(t.p_share_popup=e.arrayToString(t.p_share_popup),r.isMobile&&(t.p_share_popup=e.replaceAll(t.p_share_popup,i.favorites,"")),t.p_share_popup=e.stringToArray(t.p_share_popup)),t.more_popup&&(t.more_popup=e.arrayToString(t.more_popup),r.isMobile&&(t.more_popup=e.replaceAll(t.more_popup,i.favorites,""),r.isMobile.iosV||(t.more_popup=e.replaceAll(t.more_popup,i.print,""))),t.more_popup=e.stringToArray(t.more_popup)),t.exclude&&(e.isString(t.exclude)?n=s=e.stringToArray(t.exclude):e.isObject(t.exclude)&&(t.exclude.popup&&(n=e.stringToArray(t.exclude.popup)),t.exclude.popular&&(s=e.stringToArray(t.exclude.popular))),t.exclude={popup:n||[],popular:s||[]}),r.isMobile&&(t.exclude=t.exclude||{popup:[],popular:[]},t.exclude.popup=t.exclude.popup.concat([i.favorites]),t.exclude.popular=t.exclude.popular.concat([i.favorites])),r.isMobile&&!r.isMobile.iosV&&(t.exclude.popup=t.exclude.popup.concat([i.print]),t.exclude.popular=t.exclude.popular.concat([i.print])),t},t}),v("scriptParams",["util","dom"],function(e,t){var n,r={},i={publisherKey:"rllpe6fu7vq8gi9ltrff",retina:"true"};return r.get=function(e){return i[e]},r}),v("pwConfig",["util","dom","enumeration","globals"],function(e,t,n,r){var i={},s={},o;return o={publisherKey:r.notDefined,clean:!1,copypaste:!0,onshare:null,locale:null,mobileOverlay:!1,shareQuote:!0,onload:null,track:!0,trackAddressBar:!1,init:r.notDefined,mode:n.shareMode.classic,version:r.notDefined,vguid:r.notDefined,retina:!1,gaTrackEvents:{enabled:!1,nonInteraction:!1},gaTrackSocialInteractions:{enabled:!1,pagePath:r.notDefined},i18n:{readMore:r.notDefined},readMoreUrl:r.notDefined,defaults:{view_type:r.notDefined,hidePopupDelay:1500,transformations:{tracking:!0,shorten:r.notDefined},afterShare:{baseElement:r.notDefined,center:!1,offset:[0,0]},shareAgain:!0,afterShareText:r.notDefined,onshowaftershare:r.notDefined,onhideaftershare:r.notDefined,onbuttonclick:r.notDefined,sharePopups:!1,image:r.notDefined,imageURL:r.notDefined,pinterestImage:r.notDefined,url:e.removeTrackingParam(t.doc("location.href")),title:t.doc("title"),referrer:r.notDefined,showPost:!0,services:{twitter:{via:"po_st"},p_share_popup:r.notDefined,more_popup:r.notDefined,exclude:r.notDefined},size:n.size.small,buttons:["facebook","twitter","linkedin"],click:!1,button:r.notDefined,vertical:!1,counter:r.notDefined,internal:{sharedVia:r.notDefined}}},i.val=function(t){return e.getPropertyByPath(o,t)},i.update=function(t,n){return e.isObject(t)&&(o=e.mergeObjects(t,o),n&&(s=e.mergeObjects(t,s))),i},i.setUserPwConfig=function(t){e.isObject(t)&&(s=e.mergeObjects(t,s))},i.getUserPwConfig=function(){return s},i.isDefinedByUser=function(t){return!e.isUndefined(e.getPropertyByPath(s,t))},i}),v("i18n",["util","pwConfig","env","enumeration"],function(e,t,n,r){var i,s,o,u,a="en-us",f={};return o={en:["us"],de:["de"],fr:["fr"],it:["it"],pt:["br"],ru:["ru"],ja:["jp"],es:["la"],zh:["cn"],pl:["pl"],cs:["cs"],da:["da"],nl:["nl"],no:["no"],sv:["sv"],fi:["fi"],ar:["ar"]},u={share:{en:"Share",de:"Teilen",fr:"Partager",it:"Condividi","pt-br":"Compartilhar",ru:"Поделиться","ja-jp":"共有する","es-la":"Compartir","zh-cn":"分享",pl:"Udostępnij",cs:"Sdílet",da:"Del",nl:"Deel",no:"Del",sv:"Dela",fi:"Jaa",ar:"مشاركة"},shareTitle:{en:"Share with friends",de:"Mit Freunden teilen",fr:"Partager avec vos amis",it:"Condividi con gli amici","pt-br":"Compartilhar com amigos",ru:"Поделиться с друзьями","ja-jp":"友達と共有する","es-la":"Compartir con amigos","zh-cn":"与好友分享",pl:"Udostępnij znajomym",cs:"Sdílení s přáteli",da:"Del med venner",nl:"Deel met vrienden",no:"Del med venner",sv:"Dela med vänner",fi:"Jaa ystävien kanssa",ar:"شارك مع الأصدقاء"},privacy:{en:"Privacy",de:"Datenschutz",fr:"Confidentialité",it:"Privacy","pt-br":"Privacidade",ru:"Приватность","ja-jp":"プライバシー","es-la":"Privacidad","zh-cn":"隐私政策",pl:"Prywatność",cs:"Ochrana osobních údajů",da:"Privat",nl:"Privacy",no:"Personvern",sv:"Sekretess",fi:"Yksityisyys",ar:"الخصوصية"},powered:{en:"Powered by Po.st",de:"Bereitgestellt von Po.st",fr:"Opéré par Po.st",it:"Con tecnologia Po.st","pt-br":"Habilitado por Po.st",ru:"Работает на технологии Po.st","ja-jp":"Po.stによる提供","es-la":"Publicado gracias a Po.st","zh-cn":"采用 Po.st 平台",pl:"Działa w oparciu o rozwiązania Po.st",cs:"Využívá službu Po.st",da:"Støttet af Po.st",nl:"Mogelijk gemaakt door Po.st",no:"Levert av Po.st",sv:"Byggd med Po.st",fi:"Palvelun tarjoaa Po.st",ar:"مُشغّل بواسطة Po.st"},more:{en:"More",de:"Mehr",fr:"Plus",it:"Altro","pt-br":"Mais",ru:"Еще","ja-jp":"もっと","es-la":"Más","zh-cn":"更多",pl:"Więcej",cs:"Více",da:"Mere",nl:"Meer",no:"Mer",sv:"Mer",fi:"Lisää",ar:"المزيد"},moreServices:{en:"More services",de:"Weitere dienste",fr:"Plus de services",it:"Altri servizi","pt-br":"Mais serviços",ru:"Все службы","ja-jp":"その他のサービス","es-la":"Más servicios","zh-cn":"更多服务",pl:"Inne usługi",cs:"Další služby",da:"Flere enheder",nl:"Meer diensten",no:"Flere tjenester",sv:"Fler tjänster",fi:"Lisää palveluita",ar:"المزيد من الخدمات"},email:{en:"Email",de:"E-Mail",fr:"E-mail",it:"E-mail","pt-br":"Email",ru:"Email","ja-jp":"Eメール","es-la":"Correo electrónico","zh-cn":"电子邮件",pl:"E-mail",cs:"E-mail",da:"E-mail",nl:"E-mail",no:"E-post",sv:"E-post",fi:"Sähköposti",ar:"البريد الإلكتروني"},favorites:{en:"Favorites",de:"Favoriten",fr:"Favoris",it:"Preferiti","pt-br":"Favoritos",ru:"Избранное","ja-jp":"お気に入り","es-la":"Favoritos","zh-cn":"收藏夹",pl:"Ulubione",cs:"Oblíbené",da:"Favoritter",nl:"Favorieten",no:"Favoritter",sv:"Favoriter",fi:"Suosikit",ar:"التفضيلات"},print:{en:"Print",de:"Drucken",fr:"Imprimer",it:"Stampa","pt-br":"Imprimir",ru:"Распечатать","ja-jp":"印刷","es-la":"Imprimir","zh-cn":"打印",pl:"Drukuj",cs:"Tisk",da:"Print",nl:"Druk af",no:"Skriv ut",sv:"Skriv ut",fi:"Tulosta",ar:"طباعة"},sharingSuccessful:{en:"Sharing Successful!",de:"Teilen erfolgreich!",fr:"Partage effectué!",it:"Condivisione riuscita!","pt-br":"Compartilhamento Feito!",ru:"Вы успешно поделились ссылкой","ja-jp":"きちんと共有されました","es-la":"Compartido exitosamente","zh-cn":"分享成功",pl:"Udostępnianie zakończone powodzeniem",cs:"Sdílení bylo úspěšné",da:"Succesfuld deling",nl:"Delen gelukt",no:"Deling vellykket",sv:"Delningen har lyckats",fi:"Jakaminen onnistui",ar:"تمت المشاركة بنجاح"},successfullyShared:{en:"You've successfully shared using Po.st!",de:"Sie haben etwas erfolgreich über Po.st geteilt!",fr:"Vous avez partagé en utilisant Po.st !",it:"Hai effettuato una condivisione usando Po.st!","pt-br":"Você compartilhou com sucesso usando Po.st!",ru:"Вы успешно поделились при помощи Po.st!","ja-jp":"Po.stを使ってきちんと共有出来ました！","es-la":"¡Haz compartido exitosamente usando Po.st!","zh-cn":"已成功通过 Po.st 分享！",pl:"Udostępniłeś treści, korzystając z serwisu Po.st!",cs:"Úspěšně jste sdíleli pomocí služby Po.st.",da:"Du har med succes delt med Po.st!",nl:"Je hebt succesvol gedeeld middels Po.st!",no:"Din deling med Po.st var vellykket!",sv:"Du har lyckats dela med hjälp av Po.st!",fi:"Jakaminen Po.stia käyttäen onnistui!",ar:"لقد قمت بعمل مشاركة بنجاح باستخدام Po.st!"},shareAgain:{en:"Share again!",de:"Mehr teilen!",fr:"Partager de nouveau!",it:"Condividi ancora!","pt-br":"Compartilhar novamente!",ru:"Поделиться снова","ja-jp":"もう一度共有する","es-la":"Compartir otra vez","zh-cn":"再次分享",pl:"Udostępniaj ponownie",cs:"Sdílet znovu",da:"Del igen",nl:"Deel nog een keer",no:"Del igjen",sv:"Dela igen",fi:"Jaa uudelleen",ar:"إعادة المشاركة"},readMore:{en:"Read more at {link}",de:"Mehr lesen auf {link}",fr:"En savoir plus sur {link}",it:"Scopri di più su {link}","pt-br":"Leia mais em {link}",ru:"Читайте далее на {link}","ja-jp":"{link} で詳細を読む","es-la":"Lea más en {link}","zh-cn":"在 {link} 了解详情",pl:"Przeczytaj więcej tutaj: {link}",cs:"Další informace naleznete na webu {link}",da:"Læs mere på: {link}",nl:"Lees meer via {link}",no:"Les mer på {link}",sv:"Läs mer på {link}",fi:"Lue lisää: {link}",ar:"{link} يمكنك قراءة المزيد على"},enterWordpressURL:{en:"Please enter your WordPress Blog URL",de:"Geben Sie Ihre Wordpress-Blog-URL ein",fr:"Entrez le lien de votre blog WordPress",it:"Inserisci l'URL del tuo blog WordPress","pt-br":"Digite a URL do seu Blog WordPress",ru:"Пожалуйста, введите URL вашего блога на WordPress","ja-jp":"WordPressブログのURLを入力してください。","es-la":"Por favor introduzca la dirección URL de su blog de WordPress","zh-cn":"请输入 WordPress 博客 URL",pl:"Wprowadź adres URL swojego bloga w serwisie WordPress",cs:"Zadejte prosím adresu svého blogu ve službě WordPress.",da:"Indtast venligst din WordPress blog URL",nl:"Voer de URL in van jouw WordPress blog",no:"Vennligst skriv inn WordPress-blogg URL-en din",sv:"Var god fyll i URL-adressen för din WordPress-blogg",fi:"Syötä WordPress-blogisi URL",ar:"يرجى إدخال عنوان URL الخاص بمدونة WordPress خاصتك"},pressToBookmark:{en:"Please press Ctrl+D to bookmark this page.",de:"Bitte drücken Sie Strg+D, um diese Seite als Lesezeichen zu speichern.",fr:"Merci d'appuyer sur Ctrl+D pour sauvegarder cette page.",it:"Premi Ctrl+D per salvare questa pagina nei segnalibri.","pt-br":"Por favor, digite Ctrl+D para favoritar esta página.",ru:"Пожалуйста, нажмите Ctrl+D, чтобы добавить эту страницу в избранное.","ja-jp":"このページをブックマークに追加するにはCtrl+Dを押してください。","es-la":"Por favor, pulse Ctrl + D para marcar esta página.","zh-cn":"请按 Ctrl+D 对此页面添加书签。",pl:"Aby dodać tę stronę do ulubionych, naciśnij Ctr+D",cs:"Přidejte si prosím tuto stránku mezi záložky stisknutím klávesové zkratky CTRL+D",da:"Tryk venligst Ctrl+D for at bogmærke denne side",nl:"Druk opCtrl+Dom deze pagine aan de favorieten toe te voegen.",no:"Vennligst trykk på Ctrl+D for å bokmerke denne siden.",sv:"Var god tryck på Ctrl+D för att lägga till sidan i favoriter.",fi:"Paina Ctrl+D, jos haluat lisätä tämän sivun kirjanmerkkeihin.",ar:"من فضلك اضغط Ctrl+D لإضافة هذه الصفحة في العلامات المرجعية."},twitterLookNative:{en:"Tweet",de:"Twittern",fr:"Tweeter",it:"Tweet","pt-br":"Tweetar",ru:"Твитнуть","ja-jp":"ツイート","es-la":"Twittear","zh-cn":"Tweet",pl:"Tweetnij",cs:"Tweet",da:"Tweet",nl:"Tweet",no:"Tweet",sv:"Tweet",fi:"Twiittaa",ar:"النشر على تويتر"},close:{en:"Close",de:"Schließen",fr:"Fermer",it:"Chiudere","pt-br":"Fechar",ru:"Закрыть","ja-jp":"クローズ","es-la":"Cerrar","zh-cn":"关闭",pl:"Zamknąć",cs:"Zavřít",da:"Luk",nl:"Sluit",no:"Lukk",sv:"Stäng",fi:"Sulje",ar:"إغلاق"}},i={"":"facebook twitter email print stumbleupon favorites linkedin googlebookmarks tumblr reddit pinterest".split(" "),"ru-ru":"vkontakte odnoklassniki facebook twitter mailru print favorites googlebookmarks reddit livejournal googleplus gmail linkedin stumbleupon tumblr blogger pinterest".split(" "),"en-us":"facebook twitter print email pinterest gmail stumbleupon favorites reddit tumblr googlebookmarks blogger linkedin yahoomail digg googleplus".split(" "),"en-gb":"facebook twitter print email stumbleupon favorites gmail reddit blogger googlebookmarks linkedin tumblr googleplus pinterest digg delicious".split(" "),"fr-fr":"facebook twitter print email gmail favorites linkedin stumbleupon googlebookmarks reddit viadeo blogger googleplus pinterest tumblr".split(" "),"fr-ch":"facebook print email twitter favorites gmail blogger stumbleupon".split(" "),"de-de":"facebook print twitter stumbleupon favorites email googlebookmarks xing meinvz reddit blogger tumblr googleplus digg delicious".split(" "),"de-ch":"facebook twitter email print reddit stumbleupon favorites gmail blogger tumblr pinterest".split(" "),"it-it":"facebook twitter print email stumbleupon linkedin googlebookmarks favorites googleplus blogger tumblr reddit gmail".split(" "),"it-ch":"facebook twitter email print reddit stumbleupon favorites gmail blogger tumblr pinterest".split(" "),"pt-br":"facebook twitter orkut email print googlebookmarks blogger favorites googleplus aollifestream gmail digg stumbleupon reddit linkedin".split(" "),"pt-pt":"facebook twitter print email blogger googlebookmarks gmail orkut favorites aollifestream googleplus stumbleupon digg linkedin tumblr".split(" "),"ja-jp":"twitter facebook print favorites googlebookmarks stumbleupon delicious email blogger tumblr digg googleplus gmail linkedin mixi line".split(" "),"zh-cn":"twitter facebook weibo reddit gmail pinterest favorites print googlebookmarks linkedin stumbleupon email tumblr baidu delicious".split(" "),"es-la":"facebook twitter print email gmail stumbleupon favorites googlebookmarks blogger googleplus linkedin hotmail tumblr".split(" "),"pl-pl":"facebook twitter print reddit googlebookmarks vkontakte stumbleupon favorites whatsapp digg gmail email linkedin googleplus delicious".split(" "),"cs-cs":"facebook twitter print gmail email favorites pinterest reddit stumbleupon tumblr linkedin odnoklassniki googleplus blogger vkontakte".split(" "),"da-da":"facebook print twitter email linkedin gmail pinterest reddit favorites stumbleupon blogger delicious tumblr googleplus".split(" "),"nl-nl":"facebook twitter print email linkedin gmail pinterest favorites googleplus reddit stumbleupon tumblr vkontakte".split(" "),"no-no":"facebook print twitter email gmail pinterest favorites linkedin reddit stumbleupon tumblr googleplus blogger".split(" "),"sv-sv":"facebook print twitter email gmail linkedin stumbleupon pinterest favorites reddit tumblr delicious digg googleplus".split(" "),"ar-ar":"facebook twitter print gmail favorites stumbleupon linkedin googleplus email tumblr pinterest blogger delicious".split(" "),"fi-fi":"facebook twitter print gmail pinterest email favorites linkedin reddit stumbleupon tumblr delicious blogger googleplus".split(" ")},s=function(){return e.systemLanguage().toLowerCase()},f.getChannelsByRegion=function(t){var s=i[a]||i[""];return n.isMobile&&!t&&(e.tryValue(e.indexOfArray(s,r.print),function(e){-1<e&&s.splice(e,1).concat([r.print])}),e.tryValue(e.indexOfArray(s,r.favorites),function(e){-1<e&&s.splice(e,1).concat([r.favorites])})),s},f.t=function(e){var n=u[e],r=t.val("locale"),i;return n&&(i=n["en-us"],n[r]?i=n[r]:n[r.split("-")[0]]&&(i=n[r.split("-")[0]])),i||e},f.validateUserLocale=function(t){var n,r,u;return e.isDefined(t)&&(1<t.length&&"auto"!==t?(t=t.toLowerCase(),n=t.split("-"),r=o[n[0]],a=t,e.isDefined(r)?(u=n[0],-1<e.indexOfArray(r,n[1])?(u=t,i[t]||(a=n[0]+"-"+(n[1]||n[0]))):(r[0]!==n[0]&&(u=n[0]+"-"+r[0]),i[t]||(a=n[0]+"-"+r[0]))):a="en-us"):"auto"===t&&(u=s(),n=u.split("-"),a=u=(r=o[n[0]])?n[0]+"-"+r[0]:"en-us")),e.isDefined(u)&&(t=u.split("-"),t[0]===t[1]&&(u=t[0])),u||"en-us"},f.getBCP47tag=function(){var e=t.val("locale").split("-");return e[0]+"_"+e[e[1]?1:0].toUpperCase()},f}),v("config",["env","util","enumeration","dom"],function(e,t,n,r){var i={};return i={getCssQuerySelector:function(e,n,r){return e=i.cssQuerySelector[e][n||i.widgetVersion],r&&(e=t.template(e,r)),e},getPropFromClass:function(e,t,n){var r;return n=n||i.widgetVersion,t.replace(i.regexpPatterns[e][n],function(e,t){r=t}),r},getAttrValue:function(e,t){return r.attr(e,"data-"+t)||r.attr(e,i.attrPrefix+t)},attrPrefix:"pw:",widgetVersion:"3.0",privacyPolicyLink:"http://www.po.st/privacy.html",privacyLinkMobile:"http://m.radiumone.com/about/privacy.html",poStLink:"http://www.po.st",mainCssPath:e.cdnServer+"/css/r1post.css?"+e.version,wpAskUrlDefaultValue:"http://",pinMarkletUrl:"//assets.pinterest.com/js/pinmarklet.js",buttonSize:{small:[16,16],medium:[24,24],large:[32,32],xlarge:[40,40]},externalModules:{copyPaste:e.cdnServer+"/js/external/copyPaste.js",shareQuote:e.cdnServer+"/js/external/shareQuote.js"},externalCss:{retina:e.cdnServer+"/css/r1post_retina.css"},postShareAliases:["pw_post","pw_share","pw_post-share"],postWidgetAliases:["pw-widget","pw_widget"],widgetClassList:"pw pw-widget ",regexpPatterns:{buttonContainer:{2.1:/pw_(.+)/i,"3.0":/pw-button-(\S+)/g},size:{2.1:/pw_size_([a-z]+)/g,"3.0":/pw-size-([a-z]+)/g},layout:{2.1:/pw_layout_([a-z]+)/g,"3.0":/pw-layout-([a-z]+)/g},copypaste:{2.1:/pw_copypaste_([a-z]+)/g,"3.0":/pw-copypaste-([a-z]+)/g},counter:{2.1:/pw_counter_([a-z]+)/g,"3.0":/pw-counter-([a-z]+)/g},counterButton:{2.1:/pw_counter/g,"3.0":/pw-counter/g},looknative:{"3.0":/look-native/g},"share-popups":{"3.0":/pw-share-popups/g},popularChannel:/popular-([0-9]+)/g,nativeButton:/-like?|-share?|twitter-twitt?|-plus?/g},cssQuerySelector:{defaultButton:{2.1:".pw_{{channel}}","3.0":".pw-button-{{channel}}"},nativeButton:{2.1:"a .pw_{{channel}}_button","3.0":"a .pw-button-{{channel}}-{{prefix}}"},widget:{2.1:".pw_widget","3.0":".pw-widget"},counterNode:{2.1:".ra1-pw-button-counter-value","3.0":".ra1-pw-button-counter-value"}},cssClasses:{pwButton:"pw-button",pwWidgetCore:"pw",pwLogImage:"ra1-pw-logImage",lookNativeButton:"look-native",lookNativeWidget:"pw-widget-look-native",defaultWidgetCounter:"pw-counter-horizontal",nativeContainer:"ra1-pw-originalbuttons",htmlPwLocale:"pw-locale-",transparentButton:"pw-button-post-share-transparent",counterLookNative:"pw-counter-look-native",disablePostButton:"pw_post_false",buttonTypePrefix:"button-type-"},pwWidgetId:"pw_widget_{{id}}",buttonAttributes:[{name:"size",defaultValue:n.size.small,definedAsClass:"pw-size-{{value}}"},{name:"counter",defaultValue:!1,definedAsClass:"pw-button-counter-{{value}}"},{name:"url",defaultValue:!1,definedAsClass:!1},{name:"title",defaultValue:!1,definedAsClass:!1},{name:"image",defaultValue:!1,definedAsClass:!1}],widgetAttributes:[{name:"size",defaultValue:n.size.small,definedAsClass:"ra1-pw_size_{{value}}"},{name:"layout",defaultValue:n.layout.horizontal,definedAsClass:"pw-layout-{{value}}"},{name:"url"},{name:"title"},{name:"image"},{name:"pinterest-image"},{name:"counter",definedAsClass:"pw-counter-{{value}}"},{name:"copypaste",definedAsClass:"pw-copypaste-{{value}}"},{name:"twitter-via",defaultsPath:"services.twitter.via"},{name:"share-popups",defaultsPath:"sharePopups",definedAsClass:"pw-share-popups"},{name:"counter-look",defaultsPath:"counterLook"}],counterAttributes:[{name:"url"},{name:"channel"}],replaceAttributes:{button:[{s:/pw-counter/g,r:"pw-button-counter-show"}],widget:[{s:/pw-vertical/g,r:"pw-layout-vertical"}]},templates:{buttonIcon:'<span class="pw-icon ra1-pw-icon ra1-pw-icon-{{channel}}"></span>',buttonLookNative:'<span class="pw-button-type-{{type}}">{{icon}}<span class="pw-button-type-{{type}}__txt">{{label}}</span></span>',buttonCounterDefault:'<span class="pw-button-counter"><i class="pw-button-counter__brd"></i><span class="pw-button-counter__count ra1-pw-button-counter-value">{{count}}</span></span>',buttonCounterTop:'<span class="pw-button-counter-top"><i class="pw-button-counter-top__brd"></i><span class="pw-button-counter-top__count ra1-pw-button-counter-value">{{count}}</span></span>',buttonDefault:'<a class="pw-button-{{channel}} {{classes}}" {{attrs}}></a>',buttonNative:'<span class="{{className}}">{{code}}</span>'}}}),v("jsonp",["util","dom","globals"],function(e,t,n){return{fetch:function(r,i,s){var o;return e.isFunction(i)?(s=i,i="?"):e.isString(i)||(i=e.prepareQueryParams(i)),o="r1PoStJSONP"+e.rand(),n.win[o]=function(e){s(e);try{delete n.win[o]}catch(t){}n.win[o]=null},t.loadScript(r+i+(new Date).getTime()+"&callback="+o),o}}}),v("channels",["util","i18n","enumeration","env"],function(e,t,n,r){var i={},s=[],o=!1,u,a,f;return a=function(t){var n;e.each(t,function(e,t){n={id:t[0],name:t[1],displayName:t[2],value:t[3]},t[4]&&(n.extra=t[4]),s.push(n)})},f=function(t,n){var r=i.get("name",n);return e.getPropertyByPath(r,"extra.hideFromPopUp")||t.push(r.name),t},u=function(t){var n=[];return e.each(s,function(r,i){e.getPropertyByPath(i,t)&&n.push(i.name)}),n},i.init=function(){o||(a([["02","twitter","Twitter","https://twitter.com/intent/tweet?url=[URL]&text=[TITLE]&via={{via}}",{nativeImpl:{prefix:"twitt"},popUpSize:[640,480],counter:!0,shorten:!0,fake:!0,fakeI18n:t.t("twitterLookNative"),maxSymbols:140}],["01","facebook","Facebook","https://www.facebook.com/sharer/sharer.php?u=[URL]",{nativeImpl:{prefix:"like"},popUpSize:[640,480],counter:!0,fake:!0,fakeI18n:t.t("share")}],["07","linkedin","LinkedIn","http://www.linkedin.com/shareArticle?mini=true&url=[URL]&title=[TITLE]&summary=[DESCRIPTION]",{nativeImpl:{prefix:"share"},popUpSize:[600,420],shorten:!0,counter:!0,fake:!0,fakeI18n:t.t("share")}],["08","googlebookmarks","Google Bookmarks","http://www.google.com/bookmarks/mark?op=edit&bkmk=[URL]&title=[TITLE]&annotation=[DESCRIPTION]",{otherNames:["google_bookmarks","google-bookmarks"]}],["17","yahoomail","Yahoo Mail","http://compose.mail.yahoo.com/?Subject=[TITLE]&Body=[DESCRIPTION]+[URL]"],["23","aollifestream","AOL LifeStream","http://lifestream.aol.com/share/?url=[URL]&title=[TITLE]&description=[DESCRIPTION]",{shorten:!0}],["30","googleplus","Google+","https://plus.google.com/share?url=[URL]&t=[TITLE]",{nativeImpl:{prefix:"plusone"},popUpSize:[640,480],counter:!0,fake:!0,fakeI18n:t.t("share")}],["32","pinterest","Pin It","http://pinterest.com/pin/create/button/?url=[URL]&description=[TITLE]&media={{imageurl}}",{nativeImpl:{prefix:"share"},popUpSize:[680,500],counter:!0,fake:!0,fakeI18n:t.t("share")}],["05","stumbleupon","StumbleUpon","http://www.stumbleupon.com/submit?url=[URL]&title=[TITLE]",{shorten:!1,counter:!0,fake:!0,fakeI18n:"Stumble"}],["11","delicious","Delicious","http://delicious.com/save?url=[URL]&title=[TITLE]"],["12","digg","Digg","http://digg.com/submit?phase=2&url=[URL]&title=[TITLE]"],["13","orkut","Orkut","http://promote.orkut.com/preview?nt=orkut.com&tt=[TITLE]&du=[URL]&cn=[DESCRIPTION]"],["14","gmail","GMail","http://mail.google.com/mail/?view=cm&fs=1&to&su=[TITLE]&body=[DESCRIPTION]+[URL]&ui=2&tf=1"],["15","blogger","Blogger","http://www.blogger.com/blog_this.pyra?t&u=[URL]&n=[TITLE]&pli=1",{counter:!0,fake:!0}],["16","reddit","Reddit","http://reddit.com/submit?resubmit=true&url=[URL]&title=[TITLE]",{counter:!0,fake:!0,shorten:!1}],["18","tumblr","Tumblr","http://www.tumblr.com/share?v=3&u=[URL]&t=[TITLE]&s=[DESCRIPTION]",{counter:!0,fake:!0}],["19","hotmail","Hotmail","http://www.hotmail.msn.com/secure/start?action=compose&to=&subject=[TITLE]&body=[URL]",{disabled:!0}],["20","aolmail","AOL Mail","http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?to=&subject=[TITLE]&body=[DESCRIPTION]+[URL]"],["21","livejournal","LiveJournal","http://www.livejournal.com/update.bml?subject=[TITLE]&event=[DESCRIPTION]+[URL]"],["26","vkontakte","VKontakte","http://vkontakte.ru/share.php?url=[URL]&title=[TITLE]&description=[DESCRIPTION]"],["27","baidu","Baidu","http://cang.baidu.com/do/add?it=[TITLE]&iu=[URL]&fr=ien&dc=[DESCRIPTION]"],["28","mailru","Mail.ru","http://connect.mail.ru/share?url=[URL]&title=[TITLE]&description=[DESCRIPTION]"],["29","hyves","Hyves","http://www.hyves.net/profilemanage/add/tips/?name=[TITLE]&text=[URL]&type=12"],["33","xing","XING","https://www.xing.com/social_plugins/share?h=1&url=[URL]&message=sdfsdfsdfsdfsdfsdf"],["34","meinvz","MeinVZ","http://www.meinvz.net/Link/Share/?url=[URL]&title=[TITLE]&description=[DESCRIPTION]"],["35","skyrock","Skyrock","http://www.skyrock.com/m/blog/share.php?url=[URL]&desc=[DESCRIPTION] [URL]"],["36","viadeo","Viadeo","http://www.viadeo.com/?url=[URL]&title=[TITLE]&affiliate=45584",{maxSymbols:140,shorten:!0,counter:!0,fake:!0,fakeI18n:t.t("share")}],["37","odnoklassniki","Odnoklassniki","http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl=[URL]&st.comments=[DESCRIPTION]"],["38","weibo","Sina Weibo","http://service.weibo.com/share/share.php?url=[URL]&title=[TITLE]",{maxSymbols:140}],["39","qzone","QZone","http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=[URL]&title=[TITLE]"],["40","kaixin","Kaixin Repaste","http://www.kaixin001.com/rest/records.php?url=[URL]&content=[TITLE]&style=11",{maxSymbols:140,shorten:!0}],["41","whatsapp","WhatsApp","whatsapp://send?text=[TITLE] [URL]",{viaShareQuote:"whatsapp://send?text=[DESCRIPTION] [URL]"}],["42","mixi","Mixi","http://mixi.jp/share.pl?u=[URL]&t=[DESCRIPTION]",{counter:!0,fake:!0,fakeI18n:t.t("share"),shorten:!1}],["43","line","Line","line://msg/text/[TITLE] [URL]",{counter:!0,fake:!0,fakeI18n:t.t("share"),viaShareQuote:"line://msg/text/[DESCRIPTION] [URL]"}],["44","pocket","Pocket","https://getpocket.com/save?url=[URL]",{shorten:!0}],["24","wordpress","WordPress","{{url}}/wp-admin/press-this.php?u=[URL]&t=[TITLE]&v=4&s=[DESCRIPTION]"],["03","email",t.t("email"),"",{counter:!0,fake:!0}],["04",n.print,t.t(n.print),""],["06",n.favorites,t.t(n.favorites),""],["999","post",t.t(n.favorites),"",{hideFromPopUp:!0,counter:!0}],["998","post-share",t.t("share"),"",{hideFromPopUp:!0,counter:!0,fakeI18n:t.t("share")}],["97","addressbar","","",{hideFromPopUp:!0}],["99","clipboard","","",{hideFromPopUp:!0}],["997","share",t.t("share"),"",{hideFromPopUp:!0}],["998","more",t.t("more"),"",{hideFromPopUp:!0}]]),o=!0)},i.orderByRegion=function(n){var r=[],i=t.getChannelsByRegion(n);return e.each(i,function(e,t){f(r,t)}),e.each(s,function(t,n){-1===e.indexOfArray(i,n.name)&&f(r,n.name)}),r},i.getPopularChannel=function(e){return i.orderByRegion(!0)[e-1]},i.get=function(t,n){var r;return e.each(s,function(e,i){n===i[t]&&(r=i)}),r},i.getWithCounters=function(){return u("extra.counter")},i.getLookNative=function(){return u("extra.fake")},i}),v("url",["util","dom"],function(e,t){var n=/^(?:(https?:\/\/|\/\/|\s)|(..|\/|\?|#)|[^;:@=\.\s])/i,r=/^(?:(https?):\/\/|\/\/)(?:([^:@\s]+:?[^:@\s]+?)@)?((?:[^;:@=\/\?\.\s]+\.)+[A-Za-z0-9\-]{2,})(?::(\d+))?(?=\/|\?|#|$)([^\?#]+)?(?:\?([^#]+))?(?:#(.+))?/i,i,s,o,u={};return s=function(){var e,n;if(e=t.getBy("base")[0])e=e.getAttribute("href"),e.length&&"absolute"===u.getType(e)&&(n=u.normalize(e));return n},i=function(){var n,r,i=t.doc("location");e.each(t.getBy("link"),function(e,t){"canonical"===t.getAttribute("rel")&&(o=t.getAttribute("href"))}),o&&"relative"===u.getType(o)&&(r=o.substr(0,1),n=s(),"/"===r||"."===r?(o=o.substr(1),n?(n=u.parseAbsoluteURL(n),o=n.shema+"://"+n.domain+"/"+o):o=i.protocol+"//"+i.host+"/"+o):(n||(n=u.prepareBaseURL()),o=n+"/"+o))},u.getType=function(e){e=e.match(n);var t=null;return e&&(t=e[1]?"absolute":"relative"),t},u.normalize=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},u.parseAbsoluteURL=function(e){var t=e.match(r);return t?{shema:t[1],domain:t[3],path:t[5],params:{query:t[6],hash:t[7]}}:e},u.parseHref=function(e){var t=document.createElement("a");return t.href=e,t},u.prepareBaseURL=function(){var e=u.parseAbsoluteURL(t.doc("location").toString()),n=e.shema+"://"+e.domain,r,i=e.path;return e.path?(r=e.path.charAt(e.path.length-1),"/"===r?e=n+e.path.slice(0,-1):(i=i.split("/"),i.pop(),e=n+i.join("/"))):e=n,e},u.canonical={get:function(){return e.isUndefined(o)&&i(),o}},u}),v("oo",["util"],function(e){var t={};return t.defineClass=function(){var t;return t=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.__super__=e.su=t.prototype},function(n){var r;return r="Object"===n.constructor.name?function(){}:n.constructor,n.inherit&&t(r,n.inherit),e.each(n,function(e,t){"constructor"!==e&&"inherit"!==e&&(r.prototype[e]=t)}),r.prototype.prop=function(t,n){var r;return e.isFunction(this[t])||(n?this[t]=n:r=this[t]),r},r.prototype.bindAll=function(){e.bindAll(this,arguments)},r}}(),t}),v("ga",["util","dom","pwConfig","globals"],function(e,t,n,r){var i,s;e={};var o,u,a=r.win,f,l;return a._gaq=a._gaq||[],s=i=!1,o={enabled:!1},l=function(e,t){var n;if(e&&(n=RegExp("[\\?&#]"+t+"=([^&#]*)"),n=n.exec(e),null!==n))return unescape(n[1])},u=function(e,t,n){o.enabled&&a._gaq.push(["_trackSocial",n||"Po.st",e,t,o.pagePath])},f=function(e,t){i&&a._gaq.push(["_trackEvent","Po.st",e,t,void 0,s])},e.init=function(){var e=n.val("gaTrackEvents"),t=n.val("gaTrackSocialInteractions");e.hasOwnProperty("enabled")?(i=e.enabled,s=e.nonInteraction):i=e,t.hasOwnProperty("enabled")?(o.enabled=t.enabled,o.pagePath=t.pagePath):o.enabled=t},e.track=function(e,t,n){n=n||a.location.toString();switch(e){case"social":u(t,n);break;case"event":f(t,n)}},e.fbEvents=function(){o.enabled&&(a.FB.Event.subscribe("edge.create",function(e){u("like",e,"Facebook")}),a.FB.Event.subscribe("edge.remove",function(e){u("unlike",e,"Facebook")}),a.FB.Event.subscribe("message.send",function(e){u("send",e,"Facebook")}))},e.twitterEvents=function(){o.enabled&&a.twttr.ready(function(){a.twttr.events.bind("tweet",function(e){var t;e&&(e.target&&"IFRAME"===e.target.nodeName&&(t=l(e.target.src,"url")),u("tweet",t,"Twitter"))})})},e}),v("proxy","util jsonp config enumeration dom pwConfig env pubsub status url channels".split(" "),function(e,t,n,r,i,s,o,u,a,f,l){var c,h,p,d,v,m,g,y;u={};var b=[],w,E,S,x;return c=o.shareServer+"/v1/aftershare",h=o.cdnServerNonSecure+"/share/share.html",p=o.cdnServerNonSecure+"/share/mobile_popup.html",d=o.shareServer+"/v1/status",v=o.shareServer+"/v1/counter",m={default_:o.shareServer+"/v1/shorten?sc={{channel}}&longUrl={{longUrl}}&pub={{publisherKey}}&sGUID={{sGUID}}",bitly:"https://api-ssl.bitly.com/v3/shorten?format=json&longUrl={{longUrl}}&access_token={{shortenerKey}}&",awesm:"http://api.awe.sm/url.json?v=3&url={{longUrl}}&key={{shortenerKey}}&channel={{channel}}&tool=mKU7uN&"},g={default_:"url",bitly:"data.url",awesm:"awesm_url"},y=o.logServer+"/p",S=function(t,u){var f=s.val("version"),l=e.isDefined(f)?f:o.widgetBuildNumber,f=y,c;if(t===r.dataloggerEvent.share&&(x&&(c=e.cloneObj(x)),x={sc1:u.sc1,random:u.random},c&&c.sc1===u.sc1&&.5>(u.random-c.random)/1e3))return;c={t:t,pub:s.val("publisherKey"),pu:u.pu||s.val("defaults.url"),pt:u.pt||s.val("defaults.title"),ru:i.doc("referrer"),v:l},u=e.mergeObjects(u,c),!0===a.optout()&&e.each(a.getRestrictedOptOutParams(),function(e,t){delete u[t]}),f+=e.prepareQueryParams(u),"&"===f.charAt(f.length-1)&&(f=f.slice(0,-1)),f=i.createElement("img",{className:n.cssClasses.pwLogImage,src:f}),i.appendTo("html",f),i.removeNode(f)},E=function(e,t){b.push({name:e,params:t})},w=function(){b.length&&(e.each(b,function(e,t){S(t.name,t.params)}),b=[])},u.logEvent=function(e,t){0===a.optout()?E(e,t):S(e,t)},u.getUrl=function(t,n){var r;switch(t){case"sharePoint":r=h;break;case"shareList":r=p}return r+e.prepareQueryParams(n)},u.fetchStatus=function(n,r){t.fetch(d,r||{},function(t){e.tryValue(t,n),w()})},u.prepareURLForSharing=function(t,n,r,i,o,u){var c=o.tracking,h=l.get("id",r),h=e.getPropertyByPath(h,"extra.shorten"),p=s.val("track"),d="";n=f.parseHref(n);if(a.getCustomShortener(t))h=!1;else if(!e.isDefined(h)||e.isDefined(h)&&!0===h)u?h=!1:e.isDefined(o.shorten)&&(h=o.shorten);return!e.isUndefined(n)&&!h&&p&&c&&(d=i+"."+r,!0!==p?n.search=0<n.search.length?n.search+"&"+d:d:n.hash="#"+d),n.href},u.requestAfterShare=function(e,n){t.fetch(c,{publisherKey:e},function(e){n(e.html||"")})},u.fetchCounter=function(n,r,i){n.publisherKey&&(n=e.prepareQueryParams(n)+(r?r+"&":""),t.fetch(v,n,function(e){i(e)}))},u.getShortUrl=function(n){var r=a.getCustomShortener(n.shortenParams.publisherKey)||{},i;i=r.shortener||"default_",n.shortenParams.shortenerKey=r.shortenerKey,t.fetch(e.template(m[i],n.shortenParams),"",function(t){e.isFunction(n.fnCallback)&&n.fnCallback(e.isObject(t)?e.prop(t,g[i]):t)})},u}),v("counter","util channels proxy enumeration pwConfig viewCore oo dom config pubsub".split(" "),function(e,t,n,r,i,s,o,u,a,f){var l;s={};var c={},h={};return l=function(n){return e.each(t.getWithCounters(),function(e,t){n[t]||(n[t]=0)}),n},c.formatCount=function(e,t,n){return e=Math.round(e/n*10)/10,4<e.toString().length&&(e=Math.round(e)),e+t},c.beautifyCount=function(e){var t=e.toString(),n=t.length,r=t;return r=4>n?t:7>n?c.formatCount(e,"K",1e3):10>n?c.formatCount(e,"M",1e6):c.formatCount(e,"B",1e9)},s.fetch=function(t,s,o,u){var a={},f={},c=i.val("publisherKey");t&&(t.action===r.dataloggerEvent.share&&(a[t.url]=t.channelSyncId?[t.channelSyncId]:[]),t.publisherKey&&(c=t.publisherKey)),e.isObjEmpty(a)&&e.each(s,function(t,n){var i=n.attributes,s=i.url;i.counter!==r.counter.none&&(a[s]=e.mergeToArray(a[s],n.withSyncIds()||[]))}),e.each(o,function(e,n){var r=n.url;a[r]||(a[r]=[]),n.id&&!t&&a[r].push(n.id)}),t&&t.url&&t.syncId&&a[t.url].push(t.syncId),e.isObjEmpty(a)||(t&&(f[t.url]=a[t.url],a={},a[t.url]=f[t.url]),e.each(a,function(r,i){var s={},o="";s.publisherKey=c,s.increment=!1,t&&(s.increment=t.increment||!1,!0===s.increment&&(s.channel=t.sharerName)),s.url=r,i&&i.length&&(o="sc="+e.uniq(i).join("&sc=")),!h[r]||s.increment||t&&t.request?n.fetchCounter(s,o,function(t){t&&(t=l(t),h[r]=t),e.isFunction(u)&&u(r,h[r])}):e.isFunction(u)&&h[r]&&u(r,h[r]),h[r]||(h[r]={})}))},s.CounterClass=o.defineClass({constructor:function(n){this.domNode=n.domNode,this.channelName=n.channel||this.getChannelName(),this.url=n.url||this.getUrl(),e.isDefined(n.bubbleCounter)&&this.channelName!==r.post&&this.channelName!==r.postShare&&e.getPropertyByPath(t.get("name",this.channelName),"extra.nativeImpl")&&(this.id=e.getPropertyByPath(t.get("name",this.channelName),"id")),this.bindAll("update"),this.subscribe()},subscribe:function(){f.subscribe("counters.update",this.update)},update:function(t,n){var i=-1<e.indexOfArray([r.post,r.postShare],this.channelName)?"total":this.channelName;n.url===this.url&&this.domNode&&e.isDefined(n.values[i])&&u.html(this.domNode,c.beautifyCount(n.values[i]))},getUrlAttribute:function(e){return a.getAttrValue(e,"url")},getUrl:function(){var e=this.getUrlAttribute(this.domNode),t;return e||(t=u.getParentByClassList(this.domNode,a.postWidgetAliases),e=i.val("defaults.url"),t&&this.getUrlAttribute(t)&&(e=this.getUrlAttribute(t))),e},getChannelName:function(){return a.getAttrValue(this.domNode,"channel")||r.postShare},updateUrl:function(e){this.url=e}}),s}),v("emailFrame","util oo dom enumeration env pubsub".split(" "),function(e,t,n,r,i,s){var o,u={};return o=i.cdnServer+"/classic-email.html",u.EmailFrame=t.defineClass({constructor:function(){this.bindAll("onCloseIconClick","showInCenter"),this.render(),this.bindEvents()},render:function(){this.overlayNode=n.createElement("div",{className:"ra1-pw-emailoverlay",style:{display:"none"}}),this.closeIconNode=n.createElement("div",{className:"ra1-pw-emailclose",style:{width:"54px",height:"30px",zIndex:10002}}),n.appendTo("body",this.overlayNode),n.appendTo("body",this.closeIconNode)},bindEvents:function(){n.addEvent(this.closeIconNode,r.events.click,this.onCloseIconClick),n.addEvent(n.win(),r.events.resize,this.showInCenter)},show:function(t){var r=this;this.widgetOptions={url:t.url,publisherKey:t.pubKey},this.iframeNode=n.createElement("iframe",{style:{position:"fixed",border:"0px",zIndex:10001,height:"515px",width:"575px",left:"0px",top:"0px"},allowTransparency:!0,frameBorder:0,src:o+e.prepareQueryParams(t)}),n.attr(this.iframeNode,"scrolling","no"),n.display(this.closeIconNode,"show"),n.display(this.overlayNode,"show"),n.insertBefore(this.overlayNode,this.iframeNode),this.showInCenter(),setTimeout(function(){n.setStyle(r.iframeNode,{border:"0px"})},500)},onCloseIconClick:function(){n.display(this.overlayNode,"hide"),n.display(this.closeIconNode,"hide"),n.removeNode(this.iframeNode),this.widgetOptions.request=!0,s.publish("counters.fetch",this.widgetOptions)},showInCenter:function(){var t,r,i;this.iframeNode&&(i=this.iframeNode,r=n.win("innerHeight")||n.doc("documentElement.clientHeight"),t=n.win("innerWidth")||n.doc("documentElement.clientWidth"),t=e.toInt(t/2-i.offsetWidth/2),r=e.toInt(r/2-i.offsetHeight/2),n.setStyle(i,{left:t+"px",top:r+"px"}),n.setStyle(this.closeIconNode,{left:t+575-54+"px",top:r+"px"}))}}),u}),v("listView","util oo dom channels i18n globals enumeration config env".split(" "),function(e,t,n,r,i,s,o,u,a){var f={},l=a.isMobile?9:11;return f.ListView=t.defineClass({targetNode:s.notDefined,constructor:function(e,t,n){this.targetNode=e,this.onClickHandler=t.onClickHandler,this.widgetViewType=n,this.init()},init:function(){this.bindAll("onChannelClick","expand")},populateChannels:function(t,n){var i=r.orderByRegion(),s;return t&&i.push(o.more),i=t&&n.p_share_popup?e.unMergeArrays(i,n.p_share_popup,!0):!t&&n.more_popup?e.unMergeArrays(i,n.more_popup,!0):e.unMergeArrays(i,n.exclude.popup),t&&(s=e.indexOfArray(i,o.more),i=i.slice(0,l),-1!==s&&i.push(o.more)),i},show:function(t,i){var s=!1,u=[],f=this.populateChannels(t,i),l=this,c=o.size.small;a.isMobile&&this.widgetViewType!==o.viewType.list&&(c=o.size.large),e.each(f,function(e,t){t!==o.more?l.pushChannelToList(u,r.get("name",t)):s=!0}),s&&l.pushChannelToList(u,r.get("name",o.more)),f=e.template('<ul class="ra1-pw-popup__ul pw-size-{{iconSize}}">{{list}}</ul>',{iconSize:c,list:u.join(" ")}),this.setTargetNodeHTML(f),n.addEvent(n.getBy("a",this.targetNode),"click",this.onChannelClick)},pushChannelToList:function(t,n){var r='<li class="ra1-pw-popup__li--{{name}}"><a data-channel="{{name}}"><i class="pw-icon ra1-pw-icon-{{name}}"></i><span class="ra1-pw-txt ra1-pw-txt-{{name}}">{{displayName}}</span></a></li>',s=n.displayName;n.name===o.more&&a.isMobile&&(r='<li class="more-services"><a data-channel="{{name}}" href="" class="more-services__item">{{displayName}}</a></li>',s=i.t("moreServices")),e.getPropertyByPath(n,"extra.disabled")||t.push(e.template(r,{displayName:s,attrPrefix:u.attrPrefix,name:n.name}))},onChannelClick:function(e,t){var i=n.attr(t,"data-channel"),s=r.get("name",i);this.onClickHandler&&this.onClickHandler(i,s,t)},getHeight:function(){var t=n.getBy("li",this.targetNode),r=e.toInt(t.length/3);return n.getElementSize(t[0]).height*r},setTargetNodeHTML:function(e){n.html(this.targetNode,e)}}),f}),v("popup","util oo config i18n dom pubsub channels enumeration env listView pwConfig".split(" "),function(a,c,e,d,b,g,f,h,k,n,t){f={};var l="ra1-pw-popup"+(k.isMobile?" ra1-pw-"+(k.isMobile.tablet?"tablet":"mobile"):""),q='<div class="ra1-pw-share-offer"'+(k.isMobile?' style="max-height: 300px; overflow: hidden;"':"")+">{{offer}}</div>";return f.PopupView=c.defineClass({mode:h.viewType.popup,constructor:function(e){this.options=e,this.init()},init:function(){this.bindAll("hide","closePopup","onChannelClick","onShareAgain","clearTimeOut","onMouseOut","expand"),this.render(),this.bindEvents(),this.subscribe()},subscribe:function(){g.subscribe("hide.popup",this.onMouseOut),g.subscribe("clear.timeOut",this.clearTimeOut)},bindEvents:function(){b.addEvent(this.getNode(".ra1-pw-popup-close"),h.events.click,this.closePopup),k.isMobile||(b.addEvent(this.domNode,h.events.mouseover,this.clearTimeOut),b.addEvent(this.domNode,h.events.mouseout,this.onMouseOut))},getCoreClass:function(){var e=l;return this.isMobile(function(){k.isMobile.tablet||(e+=" ra1-pw-mobile-true")}),e},isMobileEnabled:function(e){k.isMobile&&t.val("mobileOverlay")&&e()},render:function(){var t=a.template('<div class="ra1-pw-popup-i"><div class="ra1-pw-popup-o"><b class="ra1-pw-popup-title"><span class="ra1-pw-popup-title-text">{{title}}</span><a class="ra1-pw-popup-close"></a></b><div class="ra1-pw-popup-body"><div class="ra1-pw-popup-area"></div></div></div><div class="ra1-pw-popup-footer"><a target="_blank" href="{{poweredByLink}}" class="ra1-pw-powered">{{poweredBy}}</a><a target="_blank" href="{{privacyLink}}" class="ra1-pw-privacy">{{privacy}}</a></div></div>',{poweredByLink:e.poStLink,privacyLink:e[k.isMobile?"privacyLinkMobile":"privacyPolicyLink"],poweredBy:d.t("powered"),privacy:d.t("privacy"),title:d.t("shareTitle")}),r=this,i="body";this.domNode=b.createElement("div",{className:this.getCoreClass(),innerHTML:t,style:{display:h.none}}),this.isMobile(function(){r.overlayNode=b.createElement("div",{className:"ra1-pw-overlay",style:{display:"block"}}),b.appendTo("body",r.overlayNode)}),this.options.parentNode?i=this.options.parentNode[0]:this.overlayNode&&(i=this.overlayNode),b.appendTo(i,this.domNode),this.popupBody=this.getNode(".ra1-pw-popup-area"),this.popupTitle=this.getNode(".ra1-pw-popup-title-text"),this.popupTop=this.getNode(".ra1-pw-popup-o"),this.ListView=new n.ListView(this.popupBody,{onClickHandler:this.onChannelClick})},getNode:function(e){return b.getBy(e,this.domNode)[0]},setPopupBodyHeight:function(){var e=this;this.isMobileEnabled(function(){b.setStyle(e.popupBody,{height:e.popupBodyHeight+"px"})})},renderSharingList:function(e){var t=this,n;this.isMobileEnabled(function(){b.display(t.overlayNode),k.isMobile.tablet&&(e=!1)}),n=e?"pw-popup-type_simplelist":"ra1-pw-popup-area-scroll pw-popup-type_extendlist",this.lastSharingFromMode=e?h.viewType.popup:h.viewType.popupList,this.ListView.show(e,this.options.services),this.setTitle(d.t("shareTitle")),b.setClass(this.domNode,this.getCoreClass()+" "+n),k.isMobile&&b.removeNode(this.getNode(".ra1-pw-tools")),this.showDomNode(),e?(this.resetBodyHeight(),this.popupBodyHeight=b.getElementSize(this.popupBody).height,this.setPopupBodyHeight()):k.isMobile&&!this.options.widgetViewType&&(n=400,k.isMobile.tablet||(n=b.getWindowHeight()-107,this.popupBodyHeight&&b.addClass(t.popupBody,"ra1-pw-anim-height")),b.setStyle(t.popupBody,{height:n+"px"}),this.popupBody.scrollTop=10),this.isMobileEnabled(function(){k.isMobile.tablet||b.onTransitionEnd(t.popupBody,function(){b.replaceClass(t.popupBody,"ra1-pw-anim-height","")})}),this.setPageTitle(d.t("shareTitle")),this.changePopupPosition()},setPageTitle:function(e){this.options.widgetViewType&&"html"!==t.val("mode")&&k.isMobile&&b.setTitle(d.t(e))},isMobile:function(e){(k.isMobile&&!this.options.widgetViewType||k.isMobile&&a.prop(this.options.widgetAttributes,"afterShare.center"))&&e()},renderAfterShare:function(c){var e=this,f;f=this.options.widgetAttributes;var g=a.prop(f,"afterShare.center"),l=d.t("sharingSuccessful");this.isMobile(function(){b.display(e.overlayNode)}),c=a.template(q,{offer:c.replace("[R1_FLASH]",a.isFlashInstalled()?"f":"")}),b.setClass(this.domNode,this.getCoreClass()+" pw-popup-type_aftershare"),k.isMobile?(c=a.template("{{afterShareOffer}}",{afterShareOffer:c}),this.getNode(".ra1-pw-tools")||b.insertBefore(this.popupTop,b.createElement("div",{className:"ra1-pw-tools",innerHTML:a.template('<a href="#" class="ra1-pw-tools__again">{{shareAgain}}</a><a class="ra1-pw-tools__close">{{close}}</a>',{shareAgain:d.t("shareAgain"),close:d.t("close")})}))):c=a.template('<div class="ra1-pw-share-txt"><a href="#" class="ra1-pw-small-btn ra1-pw-tools__again"><span><span class="ra1-pw-share-again">{{shareAgain}}</span></span></a><p class="ra1-pw-share-txt-text">{{successfullyShared}}</p></div>{{afterShareOffer}}',{successfullyShared:this.options.afterShareText||d.t("successfullyShared"),shareAgain:d.t("shareAgain"),afterShareOffer:c}),c=a.template('<div class="ra1-pw-share-success">{{body}}</div>',{body:c}),k.isMobile&&(l=d.t("successfullyShared"),!1===this.options.afterShareText?l="":a.isUndefined(this.options.afterShareText)||(l=this.options.afterShareText)),this.setPageTitle(d.t("successfullyShared")),this.setTitle(l),this.setBody(c),f.shareAgain&&(!k.isMobile||t.val("mobileOverlay")||this.options.widgetViewType)||b.display(this.getNode(".ra1-pw-tools__again"),"hide"),!1===f.afterShareText&&b.display(this.getNode(".ra1-pw-share-txt-text"),"hide"),(f=this.getNode("img"))?f.onload=function(){e.hasCoords()&&e.showDomNode(),g||e.changePopupPosition()}:(this.showDomNode(),this.changePopupPosition()),this.resetBodyHeight(),a.each(b.getBy("script",this.domNode),function(a,b){eval(b.innerHTML)}),b.addEvent(e.getNode(".ra1-pw-tools__again"),"click",e.onShareAgain,!0),k.isMobile&&(b.addEvent(this.getNode(".ra1-pw-tools__close"),h.events.click,this.closePopup,!0),this.showDomNode()),this.popupBodyHeight=b.getElementSize(this.popupBody).height,this.clearTimeOut(),this.setPopupBodyHeight(),e.hasCoords()||this.showDomNode(),g&&this.setOnCenter()},showDomNode:function(){b.display(this.domNode)},onShareAgain:function(){this.mode=h.viewType.popupList,this.renderSharingList(!1)},setTitle:function(e){b.html(this.popupTitle,e)},setBody:function(e){b.html(this.popupBody,e)},show:function(e){this.options=e,e.mode&&(this.mode=e.mode);switch(this.mode){case h.viewType.aftershare:this.renderAfterShare(this.options.afterShare.offer);break;case h.viewType.popupList:this.renderSharingList(!1);break;case h.viewType.popup:this.renderSharingList(!0)}},closePopup:function(){this.options.widgetViewType&&k.isMobile&&!this.options.standalone&&a.closeThisWindow(),this.hide()},hide:function(){var e=this;this.clearTimeOut(),!b.isHidden(this.domNode)&&(b.display(this.domNode,"hide"),this.setTitle(" "),this.setBody(" "),this.mode===h.viewType.aftershare&&a.isFunction(this.options.onHideAfterShare))&&this.options.onHideAfterShare(),this.isMobile(function(){b.display(e.overlayNode,"hide")})},onChannelClick:function(e,t,n){e===h.more&&this.expand(),g.publish("button.click",{name:e,coords:this.options.coords,buttonSizePX:this.options.buttonSizePX,node:[n]},this.options.widgetInstance),this.clearTimeOut()},onMouseOut:function(e,t){this.clearTimeOut(),this.mode===h.viewType.popup&&(this.timeoutId=setTimeout(this.hide,this.options.widgetInstance.attributes.hidePopupDelay))},clearTimeOut:function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)},expand:function(){this.clearTimeOut(),this.options.widgetViewType!==h.viewType.list?(this.mode===h.viewType.aftershare&&this.hide(),this.mode=h.viewType.popupList,this.renderSharingList(!1)):this.hide()},resetBodyHeight:function(){b.setStyle(this.popupBody,{height:""})},hasCoords:function(){return this.options.coords||a.prop(this.options.widgetAttributes,"afterShare.baseElement")},getCoords:function(){var e=this.options.coords,t=this.options.widgetAttributes,n=a.prop(t,"afterShare.offset"),r=[0,0],t=a.prop(t,"afterShare.baseElement");return this.mode===h.viewType.aftershare&&(a.isArray(n)&&(r=n),a.isFunction(n)&&(r=n(this.domNode,t))),t&&(e=b.getElementOffset(t),e={left:e.left+r[0],top:e.top+t.offsetHeight+r[1]}),e},changePopupPosition:function(){var e,n,r,i,s="pw-popup-side_left",o=this.getCoords();!k.isMobile&&o&&(n=b.getClientOffset(),k.isMobile&&t.val("mobileOverlay")||this.mode===h.viewType.popupList?this.setOnCenter():(i=b.getScrollPosition(),e=n.h+i.y,n=n.w+i.x,r=this.domNode.offsetHeight,i=this.domNode.offsetWidth,o.top+r>e&&r<e?(e=o.top-r-(this.options.buttonSizePX?this.options.buttonSizePX[1]:0),0>e&&(e=0)):e=o.top,o.left+i>n&&i<n?(i=o.left-i+(this.options.buttonSizePX?this.options.buttonSizePX[0]:0),0>i&&(i=0),s="pw-popup-side_right"):i=o.left,b.addClass(this.domNode,s)),a.isDefined(i)&&a.isDefined(e)&&b.setStyle(this.domNode,{left:i+"px",top:e+"px"}))},setOnCenter:function(){var e=b.getClientOffset(),t=b.getScrollPosition();b.setStyle(this.domNode,{left:a.toInt(e.w/2)-a.toInt(this.domNode.offsetWidth/2)+"px",top:t.y+(a.toInt(e.h/2)-a.toInt(this.domNode.offsetHeight/2))+"px"})}}),f}),v("viewCore","oo config util dom enumeration pwConfig".split(" "),function(e,t,n,r,i,s){var o,u={},a;return o=[{s:"pw_widget",r:"pw-widget"},{s:"pw_size_16",r:"pw-size-small"},{s:"pw_size_24",r:"pw-size-medium"},{s:"pw_size_32",r:"pw-size-large"},{s:"pw_counter_true",r:"pw-counter-show"},{s:"pw_counter_false",r:"pw-counter-none"},{s:"pw_copypaste_true",r:"pw-copypaste-true"},{s:"pw_copypaste_false",r:"pw-copypaste-false"},{s:"pw_vertical",r:"pw-vertical"}],a=function(e){return-1<n.indexOfArray([i.counter.horizontal,i.counter.vertical,i.counter.none],e)},u.ViewClass=e.defineClass({archVersion:t.widgetVersion,domNode:null,viewType:i.viewType.button,attrsNotDefinedByUser:[],constructor:function(){},prepareAttributes:function(e,u){var l=this,h=[],p;return l.attrsNotDefinedByUser=[],e=e||r.classList(l.domNode).join(" "),this.viewType===i.viewType.widget&&(-1<e.indexOf("pw_counter_buttons")&&-1<e.indexOf("pw_vertical")&&(e=e.replace("pw_counter_buttons","pw-counter-vertical")),n.each(o,function(t,n){e=e.replace(n.s,n.r)}),n.each(r.getBy("a",this.domNode),function(e,t){var n=r.getNodeText(t);"pw_title"===t.className&&(l.attributes.title=n,r.removeNode(t)),"pw_url"===t.className&&(l.attributes.url=n,r.removeNode(t)),"pw_separator"===t.className&&("?"===n&&s.update({track:"query"},!0),r.removeNode(t))})),p=t[l.viewType+"Attributes"],l.prop("viewType")===i.viewType.widget&&(n.each(t.replaceAttributes.widget,function(t,n){e=e.replace(n.s,n.r)}),-1<e.indexOf(t.cssClasses.counterLookNative)&&(e=e.replace(t.cssClasses.counterLookNative,""),this.setCounterLookNative()),n.each(e.split(" "),function(e,r){-1<r.indexOf(t.cssClasses.pwWidgetCore)&&(r=n.replaceAll(r,"_","-")),h.push(r)}),e=h.join(" ")),n.each(p,function(r,o){var u=l.attributes[o.name],f=s.isDefinedByUser("defaults."+o.name),h,p;o.definedAsClass&&(p=t.getPropFromClass(o.name,e,t.widgetVersion),"share-popups"===o.name&&p&&(p=!0),!p&&l.prop("viewType")===i.viewType.button&&o.name===i.counter.name&&(p=t.getPropFromClass("counterButton",e,t.widgetVersion)))&&(p=i.counter.show);if(h=t.getAttrValue(l.domNode,o.name))p=h,o.name===i.counter.name&&"false"===p&&(p=i.counter.none);p||(o.defaultValue&&(p=n.hasProperty(l.attributes,o.name)?u:o.defaultValue),(!f&&l.prop("viewType")===i.viewType.widget||l.prop("viewType")===i.viewType.button)&&l.attrsNotDefinedByUser.push(o.name)),o.name===i.counter.name&&(l.prop("viewType")===i.viewType.widget&&(!u&&!a(p)||u&&!a(u))&&(p=l.attributes.layout),l.prop("viewType")===i.viewType.button&&(p||(p=i.counter.none),p!==i.counter.none&&(p=u===i.counter.none?l.options.attributes.layout:u))),p&&("size"!==o.name||t.buttonSize[p]||(p=i.size.small),"true"===p&&(p=!0),"false"===p&&(p=!1),o.defaultsPath?n.prop(l.attributes,o.defaultsPath,p):o.name===i.pinterestImage?l.attributes.image=p:l.attributes[o.name]=p)}),l.prop("viewType")===i.viewType.button&&n.each(t.replaceAttributes.button,function(t,n){e=e.replace(n.s,n.r)}),u&&u(e),e},setClassList:function(e){var s=this,o=[],u=this.attributes,a=[],f=this.viewType,l,h;switch(f){case i.viewType.widget:h=t.widgetAttributes,l=t.widgetClassList+"ra1-pw-classicWidget ";break;case i.viewType.button:l=t.cssClasses.pwButton,h=t.buttonAttributes,l=l+" "+l+"-"+this.channelName+" ",this.look===i.look.nativ&&(l=t.cssClasses.nativeContainer+" "+l),l=l+t.cssClasses.buttonTypePrefix+this.look+" "}n.each(h,function(e,t){var r;t.definedAsClass&&(r=u[t.name],n.isDefined(r)&&r!==i.counter.none&&a.push(n.template(t.definedAsClass,{value:r})))}),f===i.viewType.widget&&((this.has.lookNativeButtons||this.has.nativeButtons)&&a.push(t.cssClasses.lookNativeWidget),this.attributes.counterLook===i.look.nativ&&a.push(t.cssClasses.counterLookNative)),f===i.viewType.button&&(this.look===i.look.looknative&&a.push(t.cssClasses.lookNativeButton),this.isTransparent&&a.push(t.cssClasses.transparentButton)),n.each(e.split(" "),function(e,n){n.substring(0,2)!==t.cssClasses.pwWidgetCore&&n!==t.cssClasses.lookNativeButton&&(o.push(n),f===i.viewType.widget&&s.nodeMarker.push("."+n))}),o.length&&a.push(o.join(" ")),r.setClass(this.domNode,l+a.join(" "))}}),u}),v("nativeButton","util dom i18n config enumeration pwConfig ga proxy channels globals".split(" "),function(e,t,n,r,i,s,o,u,a,f){var l;s={};var c,h,p=f.win,d={};return l={twitter:"<a href='https://twitter.com/share' data-text='{{title}}' class='twitter-share-button' data-count='{{counter}}' data-url='{{url}}' data-lang='{{lang}}' data-via='{{via}}'>Tweet</a>",facebook:"<div class='fb-like' data-href='{{url}}' data-send='false' data-layout='{{counter}}' data-width='70' data-height='65' data-show-faces='false' data-font='arial'></div>",googleplus:"<div class='g-plusone' data-href='{{url}}' data-annotation='{{counter}}' data-size='{{size}}'></div>",pinterest:"<a href='//pinterest.com/pin/create/button/?url={{url}}&media={{image}}' class='pin-it-button' count-layout='{{counter}}'><img border='0' src='//assets.pinterest.com/images/PinExt.png' title='Pin It' /></a>"},c={facebookButtonsCount:0,facebookButtonsPrevCount:0,inreaseFacebookInterval:f.notDefined,load:function(n,r,i){var s;e.isDefined(d[n])?s=setInterval(function(){2===d[n]&&(e.getPropertyByPath(i,"hasScript")&&i.hasScript(),e.getPropertyByPath(i,"success")&&i.success(),clearInterval(s))},100):(d[n]=1,t.loadScript(r,function(){d[n]=2,e.getPropertyByPath(i,"scriptLoaded")&&i.scriptLoaded(),e.getPropertyByPath(i,"success")&&i.success()}))},facebook:function(){var e=this,t;t=function(){p.FB.init({status:!0,cookie:!0,xfbml:!0}),o.fbEvents()},e.load("facebook","//connect.facebook.net/"+(n.getBCP47tag()||"en_US")+"/all.js",{success:function(){e.facebookButtonsCount++}}),e.inreaseFacebookInterval||(e.inreaseFacebookInterval=setInterval(function(){e.facebookButtonsPrevCount===e.facebookButtonsCount&&p.FB&&(t(),e.facebookButtonsCount=0,e.facebookButtonsPrevCount=0,clearInterval(e.inreaseFacebookInterval)),e.facebookButtonsPrevCount=e.facebookButtonsCount},100))},linkedin:function(){p.IN?p.IN.init():this.load("linkedin","//platform.linkedin.com/in.js")},pinterest:function(){t.loadScript("//assets.pinterest.com/js/pinit.js")},googleplus:function(){p.gapi?p.gapi.plusone.go():(p.___gcfg=p.___gcfg||{lang:n.getBCP47tag().replace("_","-")},this.load("googleplus","https://apis.google.com/js/plusone.js"))},twitter:function(){var e=function(){p.twttr.widgets?p.twttr.widgets.load():setTimeout(e,1)};p.twttr?e():p.twttr=function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(!e.getElementById(n))return e=e.createElement(t),e.id=n,e.src="//platform.twitter.com/widgets.js",i.parentNode.insertBefore(e,i),p.twttr||(r={_e:[],ready:function(e){r._e.push(e)}})}(document,"script","twitter-wjs"),o.twitterEvents()}},h={facebook:function(e){var t="button";return e.counter===i.counter.horizontal?t="button_count":e.counter===i.counter.vertical&&(t="box_count"),{counter:t}},googleplus:function(e){var t=i.size.medium;return e.counter===i.counter.vertical&&(t="tall"),{size:t,counter:e.counter!==i.counter.none?"bubble":i.counter.none}},twitter:function(e){var t={lang:n.getBCP47tag(),size:e.size,counter:e.counter,title:e.title,via:e.services.twitter.via};return"-"===e.services.twitter.via&&(t.via=""),t},pinterest:function(e){return{image:e.image||"",counter:e.counter}},render:function(t,n,r){var i,s={};return i=l[t],s.url=t===a.get("id","32").name?encodeURIComponent(r):r,s=e.mergeObjects(this[t](n),s),e.template(i,s)}},s.insert=function(n,s,o,f){var l,d,v=o.url;return o.shortUrl?v=o.shortUrl:n===a.get("id","02").name&&(v=u.prepareURLForSharing(f.publisherKey,o.url,a.get("name",n).id,e.sGUID(),f.transformations,!0)),f=t.createElement("span"),n===a.get("id","07").name?(l=t.createElement("span"),t.addClass(l,"pw-button__native"),d=t.createElement("script"),t.attr(d,"type","IN/Share"),t.attr(d,"data-url",v),o.counter===i.counter.vertical?t.attr(d,"data-counter","top"):o.counter!==i.counter.none&&t.attr(d,"data-counter","right"),l.appendChild(d),f.appendChild(l)):(o=h.render(n,o,v),t.insertHTML(f,e.template(r.templates.buttonNative,{code:o,className:"pw-button__native"}))),t.insertBefore(s,f),t.removeNode(s),p.FB&&n===a.get("id","01").name&&p.FB.XFBML.parse(),c[n](),f},s}),v("button","dom util config oo enumeration viewCore pubsub channels i18n nativeButton proxy".split(" "),function(e,t,n,r,i,s,o,u,a,f,l){var c,h;return a={},c=n.templates,h=[{from:"facebook_button",to:"facebook-like"},{from:"googleplus_button",to:"google-plus"},{from:"linkedin_button",to:"linkedin-share"},{from:"twitter_button",to:"twitter-twitt"},{from:"pinterest_button",to:"pinterest-share"},{from:"share",to:"post-share"},{from:"mail",to:"email"}],a.tools={getButtonClassName:function(e){return n.cssClasses.pwButton+"-"+e},getLook:function(e,r){var s=i.look.square;return r===i.postShare||t.isNull(r.match(n.regexpPatterns.nativeButton))||(s=i.look.nativ),n.getPropFromClass(i.look.looknative,e,n.widgetVersion)&&-1<t.indexOfArray(u.getLookNative(),r)&&(s=i.look.looknative),r===i.postShare&&(s=i.postShare),s},resolveName:function(e){return t.each(h,function(t,n){n.from===e&&(e=n.to)}),e.replace("_","").replace(".","")}},a.ButtonClass=r.defineClass({inherit:s.ViewClass,name:"",channelName:"",channelOptions:{},isTransparent:!1,isDead:!1,look:i.look.square,values:{counter:0},constructor:function(e){this.options=e,this.domNode=e.domNode,this.attributes=t.mergeObjects(e.attributes,{}),this.widgetData=e.widgetData,this.triggers={},this.channelName=e.channelName,this.look=e.look,this.name=this.channelName,e.archVersion&&(this.archVersion=e.archVersion),this.bindAll("onButtonClick","onButtonMouseOver","onButtonMouseOut","updateCounter"),this.render(),this.bindEvents()},render:function(){var r=this,s=e.classList(r.domNode).join(" "),o;-1<s.indexOf(n.cssClasses.transparentButton)&&(this.isTransparent=!0,this.look=i.look.postShare,this.channelName=i.postShare,s=s.replace(n.cssClasses.transparentButton,"")),this.channelOptions=u.get("name",this.channelName),!this.channelOptions||t.getPropertyByPath(this.channelOptions,"extra.disabled")?(this.isDead=!0,this.attributes.counter=i.counter.none):(s=this.prepareAttributes(s),this.look===i.look.nativ?this.widgetData.transformations.shorten?(o=t.sGUID(),l.getShortUrl({shortenParams:{sGUID:o,longUrl:encodeURIComponent(l.prepareURLForSharing(this.widgetData.publisherKey,this.attributes.url,this.channelOptions.id,o,this.widgetData.transformations)),publisherKey:this.widgetData.publisherKey,channel:this.channelName},fnCallback:function(e){r.updateAttribute("shortUrl",e),r.createButton(s)}})):r.createButton(s):r.createButton(s))},createButton:function(r){var s="",a=s="",l,a=c.buttonCounterDefault;this.channelName===i.post&&-1<t.indexOfArray(this.attrsNotDefinedByUser,i.counter.name)&&-1===t.indexOfArray(this.options.widgetData.attrsNotDefinedByUser,i.counter.name)&&(this.attributes.counter=this.options.attributes.counter),(this.look===i.look.looknative||this.look===i.look.nativ||this.channelName===i.postShare)&&this.options.attributes.counter!==i.counter.none&&-1<t.indexOfArray(this.attrsNotDefinedByUser,i.counter.name)&&(this.attributes.counter=this.options.attributes.counter);if(this.look===i.look.nativ)this.domNode=f.insert(this.channelName,this.domNode,this.attributes,this.options.widgetData);else{s=t.template(c.buttonIcon,{channel:this.channelName.split("-")[0]});if(this.look===i.postShare||this.look===i.look.looknative)s=t.template(c.buttonLookNative,{label:t.getPropertyByPath(this.channelOptions,"extra.fakeI18n")||this.channelOptions.displayName,icon:s,type:this.look});this.attributes.counter!==i.counter.none&&-1===t.indexOfArray(u.getWithCounters(),this.channelName)&&(this.attributes.counter=i.counter.none),this.attributes.counter!==i.counter.none&&(this.attributes.counter===i.counter.vertical&&(a=c.buttonCounterTop,l=!0),a=t.template(a,{count:this.values.counter}),s=l?a+s:s+a),e.insertHTML(this.domNode,s),this.attributes.counter!==i.counter.none&&o.publish("counters.add",{domNode:e.getBy(n.getCssQuerySelector("counterNode",this.archVersion),this.domNode)[0],url:this.options.attributes.url,channel:this.channelName})}this.isPostButton()&&e.attr(this.domNode,"aria-haspopup","true"),this.setClassList(r),o.publish("button.ready")},updateNativeButton:function(n){this.look===i.look.nativ&&(this.attributes=t.mergeObjects(n,this.attributes),this.domNode=f.insert(this.channelName,this.domNode,this.attributes,this.options.widgetData),this.setClassList(e.classList(this.domNode).join(" ")))},bindEvents:function(){this.look!==i.look.nativ&&(this.isPostButton()?(this.addEvent(this.attributes.click?i.events.click:i.events.mouseover),this.addEvent(i.events.mouseout)):this.addEvent(i.events.click))},addEvent:function(t){var n=t===i.events.click?"onButtonClick":"onButtonMouseOver";t===i.events.mouseout&&(n="onButtonMouseOut"),e.addEvent(this.domNode,t,this[n])},onButtonMouseOver:function(e,t){o.publish("button.hover",this.getPublishOptions(t),this.options.owner),o.publish("clear.timeOut")},onButtonMouseOut:function(e,t){o.publish("hide.popup")},isPostButton:function(){return-1<i.postShare.indexOf(this.channelName)},onButtonClick:function(e,n){var r={pinterestImage:this.attributes.image},r=t.mergeObjects(r,this.getPublishOptions(n));o.publish("button.click",r,this.options.owner)},getPublishOptions:function(t){var r=e.getElementOffset(t);return{coords:{left:r.left,top:r.top+t.offsetHeight},buttonSizePX:n.buttonSize[this.attributes.size],node:[this.domNode],name:this.channelName}},getName:function(){return this.channelName},isPinterestButton:function(){return u.get("id","32").name===this.getName()},isNative:function(){return this.look===i.look.nativ},isLookNative:function(){return this.look===i.look.looknative},hasNativeImpl:function(){return t.getPropertyByPath(u.get("name",this.channelName),"extra.nativeImpl")},hasCounter:function(){return this.attributes.counter!==i.counter.none},updateAttribute:function(e,t){this.attributes[e]=t},getAttribute:function(e){return this.attributes[e]},getId:function(){return this.channelOptions.id},getWidth:function(){var n=e.getBy("span",this.domNode),r;return t.each(n,function(t,n){if(-1!==n.className.indexOf("pw-button-type")||e.classList(n,"pw-icon"))return r=e.getElementSize(n).width,!1}),this.attributes.counter===i.counter.horizontal&&(r+=e.getElementSize(e.getBy(".pw-button-counter",this.domNode)[0]).width),r}}),a}),v("jsApi","util config enumeration dom support pubsub pwConfig channels globals".split(" "),function(e,t,n,r,i,s,o,u,a){var f={},l,c,h,p;return f.publicApi={},l=function(e,n){return t.attrPrefix+e+'="'+n+'"'},h=function(n){return e.template(t.templates.buttonDefault,{channel:n.channel,classes:n.classes||"",attrs:n.attrs||""})},p=function(n,r){var s="";return e.each(t.buttonAttributes,function(e,t){n=i.fixPinterest(n);if(n===t.name)return s=l(n,r),!1}),s},c=function(i,s,o){return e.each(t.widgetAttributes,function(u,a){if(a.name===s)return e.isObject(o)&&s===n.counter.name?(e.isDefined(o.look)&&r.attr(i,t.attrPrefix+s+"-look",o.look),e.isDefined(o.layout)&&r.attr(i,t.attrPrefix+s,o.layout)):r.attr(i,t.attrPrefix+s,o),!1}),""},f.createWidgetButtons=function(n){var r=[],i=[];return n&&e.each(n,function(n,s){var o=[];e.isString(s)?i.push(h({channel:s})):(!s.image&&s.imageUrl&&s.pinterestImage&&(s.image=s.imageUrl,delete s.imageUrl,delete s.pinterestImage),e.each(s,function(e,t){"id"!==e&&"look"!==e&&o.push(p(e,t))}),"transparent"===s.style&&r.push(t.cssClasses.transparentButton),s.look&&e.indexOfArray(r,t.cssClasses.lookNativeButton)&&r.push(t.cssClasses.lookNativeButton),i.push(h({channel:s.id,classes:r.join(" "),attrs:o.join(" ")})))}),i},f.createWidgetDOM=function(t,s,o){t=r.returnElement(t);var u=s.container,a=s.buttons,l=s.view_type,h={},p=[];delete s.view_type,delete s.container,delete s.buttons,e.isString(s.button)&&(a=[s.button],delete s.button),e.each(s,function(e,t){e=i.fixPinterest(e),h[e]=e===n.services?i.updateServices(t):t}),u!==n.container.custombox&&l!==n.viewType.list&&(p=f.createWidgetButtons(a),e.each(t,function(e,t){h.counter&&c(t,n.counter.name,h.counter),r.insertHTML(t,p.join(" "))})),e.isFunction(o)&&o(t,h,u,l)},f.createCounterDOM=function(t,n,i){t=r.returnElement(t);var s={};e.each(n,function(e,t){s[e]=t}),e.isFunction(i)&&i(t,s)},f.publicApi.counter=function(t,r){e.isUndefined(t)||i.appReady(function(){var i,a,l;f.createCounterDOM(t,r,function(t,r){i=r.url||o.val("defaults.url"),a=r.channel||n.post,e.each(t,function(t,n){-1!==e.indexOfArray(u.getWithCounters(),a)&&s.publish("counters.add",e.mergeObjects(r,{domNode:n}))})}),-1!==e.indexOfArray(u.getWithCounters(),a)&&(l={url:i},a!==n.post&&a!==n.postShare&&e.getPropertyByPath(u.get("name",a),"extra.nativeImpl")&&(l.syncId=e.getPropertyByPath(u.get("name",a),"id")),s.publish("counters.fetch",l))})},f.publicApi.showAfterShare=function(t){var i=r.appendTo(r.getBy("body")[0],r.createElement("div")),s=t?t.onhideaftershare:a.notDefined;t=t||{},t.view_type=n.viewType.aftershare,e.prop(t,"afterShare.baseElement")||(t.afterShare={center:!0}),t.onhideaftershare=function(){a.win.post_widget(i).destroy(),s&&s()},a.win.post_widget(i,t)},f}),v("widget","env util button oo dom enumeration config viewCore pubsub jsonp proxy pwConfig i18n ga jsApi channels support listView status globals".split(" "),function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b){return f={},f.WidgetClass=r.defineClass({inherit:u.ViewClass,pinterestCallBack:null,attributes:{},buttonsMap:[],fetchedCounters:!1,has:{lookNativeButtons:!1,nativeButtons:!1},widgetId:"",vGUID:"",ButtonClass:n.ButtonClass,buttonCollection:[],customBox:!1,viewType:s.viewType.widget,constructor:function(e){this.domNode=e.domNode,this.options=e,this.nodeMarker=[],this.triggers={},this.notPopularButtons=[],this.popularFixPosition=0,this.widgetId=t.GUID(),this.pinterestCallBack=e.pinterestCallBack,e.archVersion&&(this.archVersion=e.archVersion),this.customBox=e.container===s.container.custombox,this.widgetViewType=e.viewType,this.fetchedCounters=!1,this.bindAll("onButtonClick","onButtonHover","onTrackMore","onCustomBoxShowPopup","onCustomBoxHidePopup"),this.subscribe(),this.init(),this.bindEvents()},subscribe:function(){a.subscribe("button.click",this.onButtonClick,this),a.subscribe("button.hover",this.onButtonHover,this),a.subscribe("track.more",this.onTrackMore,this)},bindEvents:function(){var e=this.attributes;this.customBox&&(i.addEvent(this.domNode,e.click?s.events.click:s.events.mouseover,this.onCustomBoxShowPopup),i.addEvent(this.domNode,s.events.mouseout,this.onCustomBoxHidePopup))},init:function(){var e=this,n=this.getWidgetLinks();this.setAttributesFromPWConfig(this.options.customPwConfig),this.attributes.publisherKey&&(n.length||this.customBox||this.widgetViewType||(n=this.prepareButtonsFromPWConfig()),this.archVersion===s.widgetVersion.old&&(i.classList(this.domNode,o.cssClasses.disablePostButton)||(n=this.oldVersionAddPostButton(n))),t.isNull(i.attr(this.domNode,"id"))||this.nodeMarker.push("#"+i.attr(this.domNode,"id")),this.nodeMarker.push(this.domNode.nodeName.toLowerCase()),this.vGUID=c.val("vguid")||t.GUID(!0),this.prepareAttributes(i.classList(this.domNode).join(" "),function(t){n=e.getWidgetLinks(),e.fixAttributes(),e.updateServiceAttributes(),n=e.analyzeWidgetLinks(n),e.has.nativeButtons?e.fetchStatus(function(){e.initButtons(n,t),e.initViewType(),e.afterInit()}):(e.fetchStatus(),e.initButtons(n,t),e.initViewType(),e.afterInit())}))},onUpdateCustomShorteners:function(e,t){t&&t.publisherKey===this.attributes.publisherKey&&this.updateConfig(t.updateAttributes||{})},initViewType:function(){switch(this.widgetViewType){case s.viewType.list:this.initListViewType();break;case s.viewType.popup:case s.viewType.popupList:this.fireShowPopup({parentNode:[this.domNode],popupMode:this.widgetViewType});break;case s.viewType.aftershare:this.showAfterShare({})}},oldVersionAddPostButton:function(e){var n=!1,r=!1;return t.each(e,function(e,t){-1<t.className.indexOf("_button")&&(r=!0),i.classList(t,o.postShareAliases)&&(n=!0)}),n||(i.appendTo(this.getDom(),i.createElement("a",{className:o.postShareAliases[r?1:0]})),e=this.getWidgetLinks()),e},fixAttributes:function(){var e=this.attributes.url;!0===c.val("track")&&(this.attributes.url=t.removeTrackingParam(e))},updateServiceAttributes:function(){this.attributes.services.exclude||(this.attributes.services.exclude={popup:[],popular:[]})},initListViewType:function(){var e=this;(new g.ListView(this.domNode,{onClickHandler:function(t,n,r){n=i.getElementOffset(r),a.publish("button.click",{name:t,coords:{left:n.left,top:n.top+r.offsetHeight},buttonSizePX:o.buttonSize.small},e)}},s.viewType.list)).show(!1,this.attributes.services)},checkPopular:function(e){var n=t.toInt(e[0].split("-")[1])+this.popularFixPosition,r=v.getPopularChannel(n);return-1<t.indexOfArray(this.notPopularButtons,r)||-1<t.indexOfArray(this.attributes.services.exclude.popular,r)?(++this.popularFixPosition,e=this.checkPopular(e)):e=n,e},initButtons:function(e,t){this.customBox||this.widgetViewType||(this.initButtonCollection(e),this.analyzeButtons(),this.setClassList(t),this.fixSquareButtonsView())},fixSquareButtonsView:function(){var e=this.getButtonLooks();-1===t.indexOfArray(e,s.look.nativ)&&-1===t.indexOfArray(e,s.look.looknative)&&-1<t.indexOfArray(e,s.look.postShare)&&i.addClass(this.getDom(),o.cssClasses.lookNativeWidget)},fetchStatus:function(e){var n=this,r,i;r={pubKey:this.attributes.publisherKey},i=setInterval(function(){y.getFetchingState()||(0===y.optout()||t.isUndefined(y.getInterstitial(r.pubKey))?n._fetchStatus(r,e):t.tryValue({},e),clearInterval(i))},1)},_fetchStatus:function(n,r){var i=this;y.setFetchingState(!0),l.fetchStatus(function(s){0===y.optout()&&(y.optout(!!s.optout),a.publish("optout.ready")),s.shortener&&y.addCustomShorteners(n.pubKey,{shortener:(s.shortener||"").toLowerCase(),shortenerKey:s.shortenerKey}),y.addInterstitial(n.pubKey,!!s.interstitial),y.setFetchingState(!1),s.firedisplaycm&&(s.displaycmbatch?i.insertCookieMatchingElement("iframe",s.displaycmpush,e.displayBcmUrl):i.insertCookieMatchingElement("img",s.displaycmpush,e.displayCmUrl)),t.tryValue({},r)},n)},insertCookieMatchingElement:function(e,n,r){i.appendTo("body",i.createElement(e,{className:o.cssClasses.pwLogImage,width:0,height:0,src:r+(t.isDefined(n)?"?push":"")}))},prepareButtonsFromPWConfig:function(){var e=d.createWidgetButtons(this.attributes.buttons);return i.insertHTML(this.domNode,e.join(" ")),this.getWidgetLinks()},analyzeWidgetLinks:function(e){var r=!1,u=!1,a=[],f=this;return t.each(e,function(e,l){var c,h,p=i.classList(l).join(" "),d;c=o.regexpPatterns.buttonContainer[s.widgetVersion.old],h=o.regexpPatterns.buttonContainer[s.widgetVersion.neu],c=c.exec(p)||o.getPropFromClass("buttonContainer",p),c=t.isArray(c)?c[1]:c,t.isDefined(c)&&(d=c.match(o.regexpPatterns.popularChannel),t.isNull(d)?f.notPopularButtons.push(c):(c=v.getPopularChannel(f.checkPopular(d)),i.replaceClass(l,p,p.replace(h,n.tools.getButtonClassName(c)))),c=n.tools.resolveName(c),p=n.tools.getLook(p,c),r||(r=s.look.looknative===p),u||(u=s.look.nativ===p),c!==s.postShare&&s.look.nativ===p&&(h=c.split("-")[0],c="google"===h?c.replace("-",""):h),a.push({channelName:c,node:l,look:p}))}),this.has.nativeButtons=u,this.has.lookNativeButtons=r,a},getWidgetLinks:function(){return i.getBy("a",this.domNode)},analyzeButtons:function(){var e=this.buttonCollection,n=!1,r=this;r.buttonsMap=[],t.each(e,function(e,t){t&&!t.isDead&&r.buttonsMap.push(t.getId()+"."+t.look.charAt(0)+t.getAttribute("size").charAt(0)),n||t.attributes.counter===s.counter.none||t.isNative()||(n=!0),r.attributes.size=r.getLargestButtonSize()}),this.buttonsMap=this.buttonsMap.join(","),n?this.attributes.counter===s.counter.none&&(this.attributes.counter=this.attributes.layout):this.attributes.counter=s.counter.none},getButtonLooks:function(){var e=[];return t.each(this.buttonCollection,function(t,n){e.push(n.look)}),t.uniq(e)},initButtonCollection:function(n){var r=this,i=r.attributes;r.buttonCollection=[],t.each(n,function(n,o){(e.isMobile&&o.channelName!==s.favorites||!e.isMobile)&&(e.isMobile&&!e.isMobile.iosV&&o.channelName!==s.print||!e.isMobile||e.isMobile&&e.isMobile.iosV)&&r.buttonCollection.push(new r.ButtonClass({owner:r,domNode:o.node,channelName:o.channelName,look:o.look,attributes:{counter:i.counter,layout:i.layout,size:i.size,url:i.url,image:i.image,title:i.title,services:i.services,click:i.click},widgetData:{publisherKey:i.publisherKey,attrsNotDefinedByUser:r.attrsNotDefinedByUser,transformations:i.transformations},widgetHas:t.cloneObj(r.has),archVersion:r.archVersion}))})},getLargestButtonSize:function(){var e=o.buttonSize,n,r,i=[];return t.each(this.buttonCollection,function(t,n){var r=e[n.attributes.size][0];-1===i.join("").indexOf(r)&&i.push(r)}),r=t.arrayMaximum(i),t.each(e,function(e,t){if(t[0]===r)return n=e,!1}),n},afterInit:function(){this.widgetViewType||this.logEvent(s.dataloggerEvent.view,{bs:this.buttonsMap,wv:this.archVersion||""})},onTrackMore:function(e,n){this.logEvent(s.dataloggerEvent.more,{label:h.t(s.more),mGUID:t.GUID(!0)})},onButtonHover:function(e,t){!1===this.attributes.click&&this.fireShowPopup(t)},onCustomBoxHidePopup:function(e,t){a.publish("hide.popup")},onCustomBoxShowPopup:function(t,n){var r;e.isMobile&&!c.val("mobileOverlay")?this.openShareListWindow():(r=i.getElementOffset(n),this.fireShowPopup({coords:{left:r.left,top:r.top+n.offsetHeight},buttonSizePX:[n.offsetWidth,n.offsetHeight]}),a.publish("clear.timeOut"))},fireShowPopup:function(e){a.publish("popup.show",t.mergeObjects(e,{widgetInstance:this,services:this.attributes.services,widgetViewType:this.widgetViewType,mode:e.popupMode||s.viewType.popup,shareAgain:this.attributes.shareAgain,afterShareText:this.attributes.afterShareText}))},fireHidePopup:function(){a.publish("popup.hide")},doUserCallback:function(e){var n=this.attributes["on"+e];t.isFunction(n)&&n.apply(b.win,Array.prototype.slice.call(arguments,1))},onButtonClick:function(n,r){var i=this.attributes,o=t.sGUID(),u=v.get("id","03").name,f=v.get("name",r.name),p=c.val("mobileOverlay"),d=!1,m=!1,g=t.prop(f,"extra.shorten"),y,w;y=r.name,this.doUserCallback("buttonclick",y),e.isMobile&&y===u&&(m=!0);if(-1<t.indexOfArray([s.post,s.postShare,s.more],y)){if(this.attributes.click||y===s.more)y===s.more&&(r.popupMode=s.viewType.popupList,this.onTrackMore()),this.widgetViewType||(!p&&e.isMobile?this.openShareListWindow(r.popupMode):this.fireShowPopup(r))}else{this.widgetViewType||this.fireHidePopup(),p=f.value,w=t.fixShema(i.url),w=l.prepareURLForSharing(i.publisherKey,w,f.id,o,i.transformations,m);switch(y){case u:e.isMobile&&this.doAfterShare(r),this.shareByMail(f.id,w);break;case s.print:t.print();break;case s.favorites:t.addToFavorites(i.title,i.url,function(){t.notify(h.t("pressToBookmark"))});break;default:if(p){switch(y){case v.get("id","24").name:p=this.getWPUrl(f);break;case v.get("id","32").name:i=r.pinterestImage||i.image;if(t.isUndefined(i)){r.widgetInstance=this,a.publish("pinmarklet.show",r);return}p=t.template(p,{imageurl:i});break;case v.get("id","02").name:p=t.template(p,{via:i.services.twitter.via})}if(!p)return;this.shareBySocial({channelProperties:f,sGUID:o,sharerUrl:p,trackingUrl:w,shortenValueChannel:g})}}this.doUserCallback("share",y,r.node?r.node[0]:b.notDefined),y!==u||e.isMobile||(d=!0),d||(this.fetchCounters(!0,y),(y===s.favorites||y===s.print||y===u&&e.isMobile)&&this.logEvent(s.dataloggerEvent.share,{sGUID:o,sc1:y,sm:c.val("mode")}),y!==u&&this.doAfterShare(r)),this.trackGoogleAnalytics("event",f.displayName),this.trackGoogleAnalytics("social",f.displayName)}},doAfterShare:function(e){this.attributes.afterShare&&(this.showAfterShare(e),this.doUserCallback("showaftershare"))},trackGoogleAnalytics:function(e,t){p.track(e,t,this.attributes.url)},openShareListWindow:function(n,r,i){r={},i=t.mergeObjects(c.getUserPwConfig(),{},!0),n||(n=e.isMobile&&e.isMobile.tablet?s.viewType.popupList:s.viewType.popup),i.vguid=this.vGUID,r.view_type=n,r.widget_attrs=JSON.stringify(t.mergeObjects(this.attributes,{widgetId:this.widgetId},!0)),r.pwidget_config=JSON.stringify(i),(n=t.openWindow(l.getUrl("shareList",r)))&&n.focus()},shareByMail:function(n,r){var i=this.attributes,s="%0A%0A"+encodeURIComponent(r);e.isMobile?setTimeout(function(){t.redirect("mailto:?subject="+i.title+"&body="+(i.description||"")+s)},500):this.showMailFrame(n)},showAfterShare:function(e){var t=this,n={buttonSizePX:e.buttonSizePX,coords:e.coords,mode:s.viewType.aftershare,onHideAfterShare:t.attributes.onhideaftershare,widgetViewType:this.widgetViewType,widgetAttributes:this.attributes,afterShare:{}};l.requestAfterShare(this.attributes.publisherKey,function(e){n.afterShare.offer=e,t.fireShowPopup(n)})},getWPUrl:function(e){var n=t.askUser(h.t("enterWordpressURL"),o.wpAskUrlDefaultValue);return t.isNull(n)||(n!==o.wpAskUrlDefaultValue?(n=n.replace(/^\s+|\/+\s+$/g,""),/http[s]{0,1}:\/\/[\S]+\.[\S]+.*/.test(n)&&(n=t.template(e.value,{url:n}))):n=null),n},shareBySocial:function(n){var r=this.attributes,i,s=y.getCustomShortener(r.publisherKey);r.internal.sharedVia&&t.prop(n.channelProperties,"extra.viaShareQuote")&&(n.sharerUrl=n.channelProperties.extra.viaShareQuote),i=t.mergeObjects({shortenButton:n.shortenButton,url:n.trackingUrl,sharer:n.channelProperties.displayName,sharerUrl:n.sharerUrl,sGUID:n.sGUID,sc:n.channelProperties.name,maxSymbols:t.getPropertyByPath(n.channelProperties,"extra.maxSymbols")||0,shareServer:e.shareServer,extraUrlEncoding:t.getPropertyByPath(n.channelProperties,"extra.extraUrlEncoding"),shortener:b.notDefined,shortenerKey:b.notDefined,logServer:e.logServer,optout:y.optout()},this.getDefaultSharingParams()),s&&(i.shortener=s.shortener,i.shortenerKey=s.shortenerKey),r.internal.sharedVia&&(i.svia=r.internal.sharedVia),i=t.mergeObjects(i,this.getShortenUrlParam(t.getPropertyByPath(n.channelProperties,"extra.shorten"))),r=l.getUrl("sharePoint",i),n=this.getWindowParams(t.getPropertyByPath(n.channelProperties,"extra.popUpSize")),t.openWindow(r,n)},getDefaultSharingParams:function(){var t=this.attributes;return{url:t.url,via:t.services.twitter.via,title:t.title,pub:t.publisherKey,description:t.description||"",vGUID:this.vGUID,sm:c.val("mode"),ru:c.val("referrer")||i.doc("referrer"),lc:c.val("locale"),v:c.val("version")||e.widgetBuildNumber}},getWindowParams:function(e){var n="";return this.attributes.sharePopups&&!t.isUndefined(e)&&(n=e[0],e=e[1],n="width="+n+", height="+e+", left="+t.toInt(i.win("screen.width")/2-n/2)+", top="+t.toInt(i.win("screen.height")/2-e/2)),n},getShortenUrlParam:function(e){var n=this.attributes.transformations.shorten,r={};return y.getInterstitial(this.attributes.publisherKey)?r.shorten=!0:t.isDefined(n)?r.shorten=n:t.isDefined(e)&&(r.shorten=e),r},logEvent:function(e,n){var r,i=this.attributes;r={vGUID:this.vGUID,pu:i.url,pt:i.title,pub:i.publisherKey,random:t.getTimeStamp()},i.internal.sharedVia&&(r.sharedVia=i.internal.sharedVia),n=n||{},l.logEvent(e,t.mergeObjects(r,n))},showMailFrame:function(n){var r=this.attributes,s=c.val("track"),o=r.transformations.shorten,u=y.getCustomShortener(r.publisherKey),f=r.afterShare,l={};y.getInterstitial(this.attributes.publisherKey)&&(o=!0),r.transformations.tracking||(s=!1),r.internal.sharedVia&&(l.svia=r.internal.sharedVia),u&&(l.shortener=u.shortener,l.shortenerKey=u.shortenerKey),a.publish("mail.show",t.mergeObjects({sharerId:n,referrer:i.doc("referrer"),shorten:o,pubKey:r.publisherKey,track:s,title:r.title,description:r.description||"",vGUID:this.vGUID,url:r.url,sm:c.val("mode"),lc:c.val("locale"),shareServer:e.shareServer,afterShare:t.isObject(f)?!0:f},l))},setAttributesFromPWConfig:function(e){this.attributes={publisherKey:c.val("publisherKey"),onshare:c.val("onshare"),counterLook:b.notDefined},this.attributes=t.mergeObjects(c.val("defaults"),this.attributes),this.attributes.services=m.updateServices(this.attributes.services),t.isObjEmpty(e)||(e.mode&&c.update({mode:e.mode}),t.prop(e,"services.exclude")&&e.services.exclude.popup&&t.isArray(e.services.exclude.popup)&&(this.attributes.services.p_share_popup&&!e.services.p_share_popup&&(this.attributes.services.p_share_popup=t.unMergeArrays(this.attributes.services.p_share_popup,e.services.exclude.popup)),this.attributes.services.more_popup&&!e.services.more_popup&&(this.attributes.services.more_popup=t.unMergeArrays(this.attributes.services.more_popup,e.services.exclude.popup))),this.attributes=t.mergeObjects(e,this.attributes)),this.resolveClickMobile(),this.attributes.vertical&&(this.attributes.layout=s.layout.vertical,delete this.attributes.vertical),this.attributes=this.resolveCounterNative()},resolveClickMobile:function(){e.isMobile&&(this.attributes.click=!0)},resolveCounterNative:function(){var e=this.attributes.counter;return t.isObject(e)&&(this.attributes.counter=e.layout?e.layout:s.counter.horizontal,e.look&&(this.attributes.counterLook=e.look)),this.attributes},fetchCounters:function(e,t,n){a.publish("counters.fetch",{increment:e,url:this.attributes.url,action:n||s.dataloggerEvent.share,publisherKey:this.attributes.publisherKey,sharerName:t})},updateConfig:function(e){var n=!1,r={};t.isObjEmpty(e)||(t.each(e,function(e,t){e=m.fixPinterest(e),r[e]=t,"image"===e&&(n=!0)}),this.attributes=t.mergeObjects(r,this.attributes),t.each(this.getNativeButtons(),function(t,n){n.updateNativeButton(e)}),this.resolveClickMobile(),n&&this.updatePinterestButtons())},getNativeButtons:function(){var e=[];return t.each(this.buttonCollection,function(t,n){n.look===s.look.nativ&&e.push(n)}),e},updatePinterestButtons:function(){var e=this;t.each(this.buttonCollection,function(t,n){n.isPinterestButton()&&n.updateAttribute("image",e.attributes.image)})},setCounterLookNative:function(){this.attributes.counterLook=s.look.nativ},getAttribute:function(e){return this.attributes[e]},getDom:function(){return this.domNode},withSyncIds:function(){var e=[];return t.each(this.buttonCollection,function(t,n){!n.isDead&&!n.isNative()&&n.hasCounter()&&n.hasNativeImpl()&&e.push(n.getId())}),t.uniq(e)},destroyDOM:function(){i.removeNode(this.domNode)},getMaxButtonWidth:function(){var e=[];return t.each(this.buttonCollection,function(t,n){n.isNative()?e.push(16):e.push(n.getWidth())}),t.arrayMaximum(e)},setVerticalWidth:function(){var e=this;this.attributes.layout===s.layout.vertical&&setTimeout(function(){i.setStyle(e.domNode,{width:e.getMaxButtonWidth()+"px"})},100)}}),f}),v("application","util oo config dom widget jsonp enumeration pubsub pwConfig proxy emailFrame popup channels i18n ga url jsApi scriptParams support counter globals counter env copyPaste status".split(" "),function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T){s={};var N=w.win;return s.Application=t.defineClass({initialized:!1,buttonsLoaded:0,WidgetClass:i.WidgetClass,CounterClass:E.CounterClass,ShareEmailView:null,PopupView:null,widgetCollection:[],counterCollection:[],pinApi:w.notDefined,options:{},constructor:function(e){this.options=e,this.triggers={},this.bindAll("copyPasteCallback","initApplication","showMailFrame","showSharePopup","hideSharePopup","fetchCounters","onButtonReady","onOptOutReady","widgetJsAPI","addCounter"),this.subscribe()},init:function(){var e=this;this.initPwConfig();switch(a.val("init")){case o.initType.immediate:this.initApplication();break;case o.initType.lazy:this.afterInit(function(){e.initCoreMethods()});break;default:r.ready(this.initApplication)}},onOptOutReady:function(){this.trackClickBack(),this.initAddressBarTracking()},initAddressBarTracking:function(){a.val("trackAddressBar")&&!0===a.val("track")&&(w.win.location.hash=e.sGUID()+".97")},insertAdditionalClasses:function(){var t=n.cssClasses.htmlPwLocale+p.getBCP47tag().split("_")[0],t=t+(" ra1-pw-"+(S.isMobile?"mobile":"desktop"));S.isMobile&&(t+=" ra1-pw-mobile-"+e.trim(S.isMobile.platform).toLowerCase()),r.addClass("html",t)},trackToComScore:function(){var e=("https:"===r.doc("location.protocol")?"https://sb":"http://b")+".scorecardresearch.com/beacon.js";N._comscore=N._comscore||[],N._comscore.push({c1:"7",c2:"8973917",c3:"1"}),r.loadScript(e)},subscribe:function(){u.subscribe("mail.show",this.showMailFrame),u.subscribe("popup.show",this.showSharePopup),u.subscribe("popup.hide",this.hideSharePopup),u.subscribe("counters.fetch",this.fetchCounters),u.subscribe("button.ready",this.onButtonReady),u.subscribe("optout.ready",this.onOptOutReady),u.subscribe("pinmarklet.show",this.pinterestCallBack),u.subscribe("counters.add",this.addCounter)},applicationOnLoad:function(e){var t=this,n=0,r;r=setInterval(function(){t.buttonsLoaded>n?n=t.buttonsLoaded:(e(),clearInterval(r))},1)},loadAssets:function(){a.val("clean")||(r.loadCSS(n.mainCssPath),this.prepareRetina())},initCoreMethods:function(){this.updatePwidgetConfig(),this.fixPinterestInPwConfig(),this.loadAssets(),h.init(),this.insertAdditionalClasses(),d.init()},initApplication:function(t){var n=this,i=e.isObject(t)?t:r.getBy(t||"body");n.initialized||this.initCoreMethods(),t?e.each(e.isArray(i)?i:[i],function(e,t){n.searchForWidgetsMarkup(t)}):this.searchForWidgetsMarkup(t),n.initialized?this.fetchCounters():this.afterInit()},searchForWidgetsMarkup:function(t){var i=this;e.each(r.getBy(n.getCssQuerySelector("widget"),t),function(e,t){i.addWidgetToCollection({domNode:t})}),e.each(r.getBy(n.getCssQuerySelector("widget","2.1"),t),function(e,t){i.addWidgetToCollection({domNode:t},"2.1")}),e.each(r.getBy("a",t),function(t,s){e.isNull(s.className.match(n.regexpPatterns.buttonContainer["3.0"]))||r.getParentByClassList(s,n.postWidgetAliases)||i.addWidgetToCollection({domNode:i.createWidgetFromSingleButton(s)})}),e.each(r.getBy(".pw-box-counter",t),function(t,r){-1!==e.indexOfArray(h.getWithCounters(),n.getAttrValue(r,"channel")||o.post)&&u.publish("counters.add",{domNode:r,bubbleCounter:!0})})},isWidgetInitialized:function(t){var n=!1;return e.each(this.widgetCollection,function(e,r){if(r.getDom()===t)return n=!0,!1}),n},updatePwidgetConfig:function(){var t;t=e.cloneObj(N.pwidget_config),t.publisherKey=t.publisherKey||g.get("publisherKey"),t.locale=p.validateUserLocale(t.locale||g.get("lc")),t.retina=t.retina||g.get(o.retina),t.clean=e.isUndefined(t.clean)?e.strToBoolean(g.get("clean")):t.clean,!v.canonical.get()||t.defaults&&t.defaults.url||(t.defaults=t.defaults||{},t.defaults.url=v.canonical.get()),S.isMobile&&S.isMobile.tablet&&(t.mobileOverlay=!0),t.defaults&&(t.defaults=e.mergeObjects(t.defaults,y.fixPinterestPwConf(t.defaults))),a.update({locale:t.locale},!0),a.update(t),a.setUserPwConfig(N.pwidget_config)},initPwConfig:function(){a.update({init:e.cloneObj(N.pwidget_config).init||g.get("init")})},addWidgetToCollection:function(e,t){t&&(e.archVersion=t),e.pinterestCallBack=this.pinterestCallBack,this.isWidgetInitialized(e.domNode)||this.widgetCollection.push(new this.WidgetClass(e))},createWidgetFromSingleButton:function(e){var t=r.createElement("span",{className:n.widgetClassList});return this.cloneNodeAttributes(e,t,n.widgetAttributes),this.cloneNodeClasses(e,t),r.appendTo(t,e.cloneNode(!0)),r.insertBefore(e,t),r.removeNode(e),t},cloneNodeAttributes:function(t,i,s){e.each(s,function(e,s){var o=n.getAttrValue(t,s.name);o&&r.attr(i,"data-"+s.name,o)})},cloneNodeClasses:function(e,t){r.setClass(t,e.className)},afterInit:function(t){var n=this;this.applicationOnLoad(function(){var i;t&&t(),i=a.val("onload"),n.fetchCounters(),n.prepareExternalFiles(),n.initialized=!0,i&&i(),n.trackToComScore(),0===n.widgetCollection.length&&a.val("publisherKey")&&(n.fetchStatus(),n.logDataLoggerEvent("view",{vGUID:a.val("vguid")||e.GUID(!0),pu:v.canonical.get()||e.removeTrackingParam(r.doc("location.href")),pt:a.val("defaults.title"),pub:a.val("publisherKey")})),u.publish("application.ready")})},fetchStatus:function(){f.fetchStatus(function(e){0===T.optout()&&(T.optout(!!e.optout),u.publish("optout.ready")),T.setFetchingState(!1)})},prepareExternalFiles:function(){this.prepareCopyPaste()},prepareCopyPaste:function(){var t=o.copypaste,i=!0,s=this.widgetCollection,u=s.length,f=0,l=this,c;a.val("publisherKey")&&(e.each(s,function(t,n){if(e.isDefined(n.attributes.copypaste)){if(n.attributes.copypaste)return c=!0,!1;f++,c=!1}}),a.val(t)||e.isDefined(c)?a.val(t)||!e.isDefined(c)||c?f&&f===u&&(i=!1):i=!1:i=!1,a.val("shareQuote")?r.loadScript(n.externalModules.shareQuote,function(){l.initCopyPaste(i,l.initShareQuote())}):this.initCopyPaste(i))},initShareQuote:function(){var e=w.win.pwidget_modules.shareandquote;return e("init",{poStLink:n.poStLink,postWidget:{buttons:["facebook","twitter","mail","more"]}}),e},initCopyPaste:function(t,n){var r=this,i=e.sGUID(),s=p.t("readMore"),o=a.val("i18n.readMore");o&&(s=-1<o.indexOf("{link}")?o:o+"{link}"),x.init({msg:s,min:7,tracking:t,url:r.getUrlForCopyPaste(i),onCopy:function(e){r.copyPasteCallback(i,e,t),n&&n("show",e)}})},getUrlForCopyPaste:function(t){var n=a.val("readMoreUrl")||v.canonical.get()||e.removeTrackingParam(r.doc("location.href"));return f.prepareURLForSharing(a.val("publisherKey"),n,"99",t,{shorten:!1,tracking:a.val("defaults.transformations.tracking")})},copyPasteCallback:function(t,n,i){var s=v.canonical.get()||e.removeTrackingParam(r.doc("location.href")),f=i?o.dataloggerEvent.share:o.dataloggerEvent.copyPaste;d.track("event","Clipboard",s),d.track("social","Clipboard",s),t={vGUID:a.val("vguid")||e.GUID(!0),sGUID:t,pu:s,text:n.substr(0,2e3)},i&&(t=e.mergeObjects({sm:a.val("mode"),sc1:"clipboard"},t),u.publish("counters.fetch",{increment:!0,sharerName:"clipboard",url:s,action:o.dataloggerEvent.share})),this.logDataLoggerEvent(f,t)},prepareRetina:function(){a.val(o.retina)&&r.loadCSS(n.externalCss.retina)},showMailFrame:function(e,t){this.ShareEmailView||(this.ShareEmailView=new l.EmailFrame),this.ShareEmailView.show(t)},showSharePopup:function(e,t){this.PopupView||(this.PopupView=new c.PopupView(t)),this.PopupView.show(t)},hideSharePopup:function(e,t){this.PopupView&&this.PopupView.hide()},trackClickBack:function(){var t;a.val("track")&&(t=/[\?&#]{1}([a-z\d]{16})\.([\d]{2})(?:|$)/i,t=t.exec(r.doc("location.href")),e.isNull(t)||this.logDataLoggerEvent(o.dataloggerEvent.clickback,{pt:a.val("defaults.title"),pu:a.val("defaults.url"),sc:h.get("id",t[2]).name,sGUID:t[1],bGUID:e.GUID(!0)}))},logDataLoggerEvent:function(t,n){n.random=e.getTimeStamp(),f.logEvent(t,n)},onButtonReady:function(e,t){this.buttonsLoaded+=1},fetchCounters:function(e,t){b.fetch(t,this.widgetCollection,this.counterCollection,function(e,t){u.publish("counters.update",{values:t,url:e})}),this.refreshWidgetWidth()},refreshWidgetWidth:function(){e.each(this.widgetCollection,function(e,t){t.setVerticalWidth()})},addCounter:function(e,t){this.counterCollection.push(new this.CounterClass(t))},widgetJsAPI:function(t,n){var i,s=this;return e.isDefined(t)&&(i=s.getWidgetsBySelector(t),i.length||y.appReady(function(){e.isUndefined(n)&&(n={container:o.container.custombox}),!e.isDefined(n)||e.hasProperty(n,"button")||e.hasProperty(n,"buttons")||e.hasProperty(n,"view_type")||(n.container=o.container.custombox),m.createWidgetDOM(t,n,function(t,n,r,i){var u=s.widgetCollection,a;e.each(t,function(e,t){s.addWidgetToCollection({domNode:t,customPwConfig:n,container:r,viewType:i})}),i||r===o.container.custombox||(a=u[u.length-1],setTimeout(function(){e.isDefined(a)&&a.getAttribute("counter")!==o.counter.none&&(a.fetchedCounters||a.fetchCounters(!1,w.notDefined,"fetch"))},1e3))})})),{updateConfig:function(t){!e.isObjEmpty(t)&&e.isDefined(i)&&i.length&&(e.each(i,function(n,i){i.updateConfig(t),t.url&&e.each(s.counterCollection,function(e,n){r.hasChild(i.domNode,n.domNode)&&n.updateUrl(t.url)})}),t.url&&i[0].fetchCounters(!1))},destroy:function(){if(e.isDefined(t))return s.removeJSAPIWidgets(t)}}},processWidgets:function(t,n){e.isFunction(n)&&e.each(this.widgetCollection,function(i,s){e.isCollection(t)||r.isNodeElement(t)?(t.length||(t=[t]),e.each(t,function(t,r){e.isDefined(s)&&s.domNode===r&&n(s)})):-1!==e.indexOfArray(s.nodeMarker,t)&&n(s)})},removeJSAPIWidgets:function(e){var t=!1;return this.processWidgets(e,function(e){e.destroyDOM(),t=!0}),t},getWidgetsBySelector:function(e){var t=[];return this.processWidgets(e,function(e){t.push(e)}),t},pinterestCallBack:function(t,i){var s=this;s.pinApi?(s.pinApi.init(),s.pinApi.pin=function(e){i.pinterestImage=r.attr(e,"data-pin-media"),u.publish("button.click",i,i.widgetInstance),s.pinApi.close()}):r.loadScript(n.pinMarkletUrl+"?r="+99999999*Math.random(),function(){var t;e.each(r.getBy("div"),function(e,n){var r=n.id.split("_");if(n.id&&"PIN"===r[0])return t=r[1],!1}),t&&(s.pinApi=w.win["PIN_"+t].f,s.pinApi.pin=function(e){i.pinterestImage=r.attr(e,"data-pin-media"),u.publish("button.click",i,i.widgetInstance),s.pinApi.close()})})},fixPinterestInPwConfig:function(){var e=a.val("defaults.imageUrl"),t=a.val("defaults.image"),n=t;e&&!t&&(n=e),a.update({defaults:{image:n}})}}),s}),I(["dom","application","env","jsApi","util"],function(e,t,n,r,i){var s=window;i={htmlIE7:"ra1-pw-ie7",htmlIE8:"ra1-pw-ie8"},7!==n.ieVersion&&8!==n.ieVersion||e.addClass("html",i["htmlIE"+n.ieVersion]),e=new t.Application,s.post_widget=e.widgetJsAPI,s.post_init=e.initApplication,s.pwidget_api=r.publicApi,s.pwidget_modules=s.pwidget_modules||{},s.pwidget_modules.define=function(e,t,n){v(e,t,n),I([e],function(t){s.pwidget_modules[e]=t})},s.pwidget_modules.require=I,e.init()})}}};return loadRadiumOne}),define("ninemsn/portal/common/tracking/radiumOne/config",["ninemsn/portal/common/configuration"],function(e){return e.create({radiumOne:{enabled:!1,shareQuote:!1,retina:!0}})}),define("ninemsn/portal/common/tracking/radiumOne",["ninemsn/portal/common/tracking/radiumOne/api","ninemsn/portal/common/tracking/radiumOne/config"],function(e,t){return{trackPageLoadEvent:function(){t().done(function(t){var n=t.radiumOne;n.enabled&&(window.pwidget_config=n,e.call())})}}}),define("ninemsn/portal/common/tracking/mi9/config",["ninemsn/portal/common/configuration"],function(e){return e.create({mi9:{enabled:!0,url:"//adc.api.nine.com.au",appNexusIdUrl:"//ib.adnxs.com/getuid?",appNexusUidParam:"?appNexusUid=$UID"}})}),define("ninemsn/portal/common/tracking/mi9/nuid",["ninemsn/portal/common/tracking/mi9/config","ninemsn/portal/common/tracking/common/image","jquery"],function(e,t,n){var r=n.Deferred(),i=n.Deferred(),s=function(t){var n;try{n=JSON.parse(t.data)}catch(s){return}n.method==="returningClientId"&&r.resolve(n.clientId),n.method==="returningToken"&&i.resolve(n.token)},o=function(e){var n,r=e.mi9.url+e.mi9.appNexusUidParam,i=window.location.protocol==="https:"?"https:":"http:";n=e.mi9.appNexusIdUrl+i+r,t.create(n)},u=function(e){window.addEventListener("message",s),n.when(r,i).done(function(n,r){var i=e.mi9.url+"?clientId="+n+"&ssoToken="+r;t.create(i)}),window.postMessage("_nine_getClientId","*"),window.postMessage("_nine_getToken","*")},a=function(e){e.mi9.enabled&&(t.create(e.mi9.url),o(e),u(e))};return{trackPageLoadEvent:function(){e().pipe(a)}}}),define("ninemsn/portal/common/tracking/mi9",["ninemsn/portal/common/tracking/mi9/nuid"],function(e){return{trackPageLoadEvent:function(){e.trackPageLoadEvent()}}}),define("ninemsn/portal/common/tracking/dynamicTag/satellite",[],function(){return function(t,n){var r=0,i=window.setInterval(function(){window._satellite&&(t(window._satellite,window.document,n),clearInterval(i)),r+=1,r===5&&window.clearInterval(i)},500)}}),define("ninemsn/portal/common/tracking/dynamicTag/api",["ninemsn/portal/common/tracking/dynamicTag/satellite"],function(e){var t=function(t,n,r,i,s,o){function f(){e(function(e,t){var n=t||!1;e.setDebug(n),e.pageLoadRules.forEach(function(t){var r=document.location,i={type:"pagebottom",target:r},s=e.ruleMatches(t,i,r);s&&(n&&console.log("Rule:"+t.name+" matched"),t.trigger&&t.trigger.forEach(function(e){e.command==="writeHTML"&&e.arguments&&e.arguments.forEach(function(e){if(e.html){var t=document.createElement("span");t.innerHTML=e.html,window.document.body.appendChild(t),window.document.body.removeChild(t)}})}))})})}var u=document.createElement("script");u.type="text/javascript",u.async=!0,u.src=t,document.getElementsByTagName("head")[0].appendChild(u);var a={category:n,section:r,site:i,subsection:s};window.trackingData=a,e(f,o)},n=null;return function(e,r,i,s,o,u){return n||(n=t(e,r,i,s,o,u)),{dtm:n}}}),define("ninemsn/portal/common/tracking/dynamicTag/config",["ninemsn/portal/common/configuration"],function(e){return e.create({dynamicTag:{enabled:!0,dtmScriptUrl:"//assets.adobedtm.com/582ec2d75884b3f05e4d95f7684c7a5bd58683ec/satelliteLib-f4e79d6db7e010a060d8755dfafe96dd2625bd82.js"}})}),define("ninemsn/portal/common/tracking/dynamicTag",["ninemsn/portal/common/tracking/dynamicTag/api","ninemsn/portal/common/tracking/omniture/config","ninemsn/portal/common/tracking/dynamicTag/config","ninemsn/portal/common/tracking/omniture/trackingProperties","jquery"],function(e,t,n,r,i){var s=function(t,n){var i=r.generate(t);e(n.dtmScriptUrl,i.category,i.sectionPath,i.sitePath,i.subsectionPath,n.debug)};return{trackPageLoadEvent:function(){i.when(t(),n()).done(function(e,t){t.dynamicTag.enabled&&s(e,t.dynamicTag)})}}}),define("ninemsn/portal/common/tracking/invoker",["ninemsn/portal/common/tracking/omniture","ninemsn/portal/common/tracking/omniture/config","ninemsn/portal/common/tracking/nielsenSiteCensus","ninemsn/portal/common/tracking/nielsenSiteCensus/config","ninemsn/portal/common/tracking/nielsenVideoCensus","ninemsn/portal/common/tracking/nielsenVideoCensus/config","ninemsn/portal/common/tracking/microsoft","ninemsn/portal/common/tracking/microsoft/config","ninemsn/portal/common/tracking/chartbeat","ninemsn/portal/common/tracking/chartbeat/config","ninemsn/portal/common/tracking/radiumOne","ninemsn/portal/common/tracking/radiumOne/config","ninemsn/portal/common/tracking/mi9","ninemsn/portal/common/tracking/mi9/config","ninemsn/portal/common/tracking/dynamicTag","ninemsn/portal/common/tracking/dynamicTag/config","ninemsn/portal/common/logging"],function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m){var g={omniture:{api:e,config:t},nielsenSiteCensus:{api:n,config:r},nielsenVideoCensus:{api:i,config:s},microsoft:{api:o,config:u},chartbeat:{api:a,config:f},radiumOne:{api:l,config:c},mi9:{api:h,config:p},dynamicTag:{api:d,config:v}},y=function(e,t,n){var r=t+"."+n,i="Tracking Error - "+r+": "+e.message;m.logError({exception:e,message:i,modules:["ninemsn/portal/common/tracking/"+t]})};return{invoke:function(e,t,n){try{var r=g[e],i=r.api;r.config().then(function(r){var s=r[e].enabled;s&&i[t](n)})}catch(s){y(s,e,t)}}}}),define("ninemsn/portal/common/tracking/config",["ninemsn/portal/common/tracking/nielsenSiteCensus/config","ninemsn/portal/common/tracking/omniture/config","ninemsn/portal/common/tracking/nielsenVideoCensus/config","ninemsn/portal/common/tracking/chartbeat/config","ninemsn/portal/common/tracking/radiumOne/config","ninemsn/portal/common/tracking/microsoft/config","ninemsn/portal/common/tracking/mi9/config","ninemsn/portal/common/tracking/dynamicTag/config","jquery"],function(e,t,n,r,i,s,o,u,a){return function(a){e({hierarchy:a.hierarchy,nielsenSiteCensus:a.nielsen}),t({hierarchy:a.hierarchy,omniture:a.omniture}),s({hierarchy:a.hierarchy,microsoft:a.microsoft}),n({nielsenVideoCensus:a.nielsenVideoCensus}),r({hierarchy:a.hierarchy,chartbeat:a.chartbeat}),i({radiumOne:a.radiumOne}),o({mi9:a.mi9}),u({hierarchy:a.hierarchy,dynamicTag:a.dynamicTag})}}),define("ninemsn/portal/common/tracking",["ninemsn/portal/common/tracking/invoker","ninemsn/portal/common/eventBroker","ninemsn/portal/common/tracking/config","jquery"],function(e,t,n,r){var i=function(){e.invoke("microsoft","trackPagePerformanceEvent"),e.invoke("microsoft","trackPageUnloadEvent")};r(window).on("unload",i);var s={registerToEventBroker:function(){var e=function(e){e=e||{};if(e.action==="click"){var t=r.extend({},e);t.action=undefined,s.trackClickEvent(t)}else if(e.action==="load")s.trackPage();else if(e.action==="slideTransition"){var n=r.extend({},e);n.action=undefined,s.trackSlideTransition(n)}},n=function(e){s.trackSocialEvent(e)},i=function(e){s.trackVideoEvent(e)};t.on("application",e),t.on("social",n),t.on("video",i)},trackClickEvent:function(t){e.invoke("omniture","trackClickEvent",t),e.invoke("microsoft","trackClickEvent",t)},trackPage:function(){i(),e.invoke("nielsenSiteCensus","trackPageLoadEvent"),e.invoke("omniture","trackPageLoadEvent"),e.invoke("microsoft","trackPageLoadEvent"),e.invoke("chartbeat","trackPageLoadEvent"),e.invoke("radiumOne","trackPageLoadEvent"),e.invoke("mi9","trackPageLoadEvent"),e.invoke("dynamicTag","trackPageLoadEvent")},trackTransition:function(t){i(),e.invoke("nielsenSiteCensus","trackPageTransitionEvent",t),e.invoke("omniture","trackPageLoadEvent"),e.invoke("microsoft","trackPageLoadEvent"),e.invoke("chartbeat","trackPageLoadEvent"),e.invoke("radiumOne","trackPageLoadEvent"),e.invoke("mi9","trackPageLoadEvent")},trackAdditionalPage:function(t){e.invoke("omniture","trackAdditionalPageLoadEvent",t)},trackSocialEvent:function(t){e.invoke("omniture","trackSocialEvent",t)},trackSlideTransition:function(t){i(),e.invoke("nielsenSiteCensus","trackSlideEvent",t),e.invoke("omniture","trackSlideEvent"),e.invoke("microsoft","trackPageLoadEvent")},trackVideoEvent:function(t){e.invoke("nielsenVideoCensus","trackVideoEvent",t),e.invoke("omniture","trackVideoEvent",t),e.invoke("microsoft","trackVideoEvent",t)}};return window.addEventListener("tracking.getmanager",function(e){e.detail.callback(s)}),s}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n();else if(typeof define=="function"&&define.amd)define("mi9-module-common",n);else{var r=n();for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;i=n(1),r=n(2),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.extend(r),t}(i),e.exports=s},function(e,t){var n,r,i=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},s=[].slice;n=["extended","included"],r=function(){function t(){}var e;return e=function(e){var t,n,r;return r=this.prototype,e.length>2?(r=e[0],n=e[1],t=e[2]):(n=e[0],t=e[1]),[r,n,t]},t.extend=function(e){var t,r,s;for(t in e)s=e[t],i.call(n,t)<0&&(this[t]=s);return(r=e.extended)!=null&&r.apply(this),this},t.include=function(e){var t,r,s,o;r=typeof e=="function"?e.prototype:e;for(t in r)o=r[t],i.call(n,t)<0&&(this.prototype[t]=o);return(s=e.included)!=null&&s.apply(this),this},t.defineGetter=function(){var t,n,r,i,o;return t=1<=arguments.length?s.call(arguments,0):[],i=e.call(this,t),o=i[0],r=i[1],n=i[2],Object.defineProperty(o,r,{configurable:!0,enumerable:!0,get:n})},t.defineSetter=function(){var t,n,r,i,o;return t=1<=arguments.length?s.call(arguments,0):[],r=e.call(this,t),i=r[0],n=r[1],o=r[2],Object.defineProperty(i,n,{configurable:!0,enumerable:!0,set:o})},t}(),e.exports=r},function(e,t){var n,r;n=function(){function e(e,t){this.module=e,this.description=t}return e.prototype.toString=function(){return["`"+this.module+"`",this.description?"("+this.description+")":""].filter(function(e){return e}).join(" ")},e}(),r=function(){function t(){}var e;return t.Dependency=n,e=function(e,t){return function(){throw new Error("[Unresolved dependency] - `"+e+"`: "+t)}},t.dependencies=function(t){var r;return this.__dependencies=t,r=this.__dependencies||{},Object.keys(r).forEach(function(t){return function(i){var s,o;s=r[i];if(s instanceof n)return o=e(i,s),Object.defineProperty(t.prototype,i,{configurable:!0,enumerable:!0,get:o,set:o});throw new Error("Dependency `"+i+"` should be an instance of `"+t.name+".Dependency`")}}(this))},t.registerDependencies=function(t){var r;r=this.__dependencies||{};if(!Object.keys(r).length)return;return Object.keys(t).forEach(function(e){return function(i){var s,o;o=!1;if(!(r[i]instanceof n)){o=!0;if(!(i in r)&&i in e.prototype){s=e.prototype;while(!s.hasOwnProperty(i))s=Object.getPrototypeOf(s).constructor.prototype;s.constructor.__dependencies[i]instanceof n&&(o=!1)}}if(!o)return r[i]=t[i]}}(this)),Object.keys(r).forEach(function(t){return function(i){var s;return s=r[i],s instanceof n&&e(i,s)(),Object.defineProperty(t.prototype,i,{configurable:!0,enumerable:!0,writable:!0}),t.prototype[i]=s}}(this)),this},t}(),e.exports=r}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("mi9-module-common"),require("WeakMap"));else if(typeof define=="function"&&define.amd)define("mi9-event-target",["mi9-module-common","WeakMap"],n);else{var r=typeof exports=="object"?n(require("mi9-module-common"),require("WeakMap")):n(t["mi9-module-common"],t.WeakMap);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){var r,i,s,o,u,a=[].slice,f={}.hasOwnProperty,l=function(e,t){function r(){this.constructor=e}for(var n in t)f.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};i=n(2),n(3),n(4),u=function(e){return e.split(/\s+|,\s*/).filter(function(e,t,n){return n.indexOf(e)===t}).filter(Boolean)},s=function(e,t){var n;return t==null&&(t={}),typeof CustomEvent=="function"?n=new CustomEvent(e,t):(n=document.createEvent("CustomEvent"),n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail)),n},o=function(){var e,t,n,r,i,s,o;e=1<=arguments.length?a.call(arguments,0):[],t=e.shift();for(n=0,i=e.length;n<i;n++){s=e[n];if(s!=null)for(r in s){if(!f.call(s,r))continue;o=s[r],t[r]=o}}return t},r=function(e){function r(e){this.targetElement=e!=null?e:document;if(typeof this.targetElement.addEventListener!="function")throw new TypeError("invalid target element")}var t,n;return l(r,e),t={cancelable:!0,bubbles:!0,animationFrame:!0,immediate:!1},n=new WeakMap,r.on=function(e,t,i){var s,o,a,f,l,c,h,p,d;if(e instanceof NodeList){for(o=a=0,h=e.length;0<=h?a<h:a>h;o=0<=h?++a:--a)try{r.on(e.item(o),t,i)}catch(v){}return}if(typeof (e!=null?e.addEventListener:void 0)!="function")throw new TypeError("target has no event listener");if(typeof t!="string")throw new TypeError("name must be a string");if(typeof i!="function")throw new TypeError("callback must be a function");d=n.get(e),d||(d={},n.set(e,d)),p=u(t);for(f=0,l=p.length;f<l;f++)s=p[f],d[s]||(d[s]=[]),c=d[s],c.indexOf(i)===-1&&(c.push(i),e.addEventListener(s,i))},r.listen=function(e,t){return r.on(window,e,t)},r.unlisten=function(e,t){return r.off(window,e,t)},r.off=function(e,t,i){var s,o,a,l,c,h,p,d,v,m,g,y,b,w,E;if(e instanceof NodeList){for(a=c=0,y=e.length;0<=y?c<y:c>y;a=0<=y?++c:--c)try{r.off(e.item(a),t,i)}catch(S){}return}if(typeof (e!=null?e.removeEventListener:void 0)!="function")throw new TypeError("target has no event listener");w=function(t,n){return e.removeEventListener(t,n)},E=n.get(e),g=u(t!=null?t:""),b=[];if(E)for(s in E){if(!f.call(E,s))continue;v=E[s];if(!t||g.indexOf(s)!==-1){for(a=h=0,p=v.length;h<p;a=++h){o=v[a];if(!i||o===i)b.push(a),w(s,o)}for(m=0,d=b.length;m<d;m++)l=b[m],v.splice(l,1,null);E[s]=v.filter(Boolean)}}},r.emit=function(e,n,i,a){var f,l,c,h,p,d,v,m,g;if(e instanceof NodeList){for(h=p=0,m=e.length;0<=m?p<m:p>m;h=0<=m?++p:--p)try{r.emit(e.item(h),n,i,a)}catch(y){}return}if(typeof (e!=null?e.dispatchEvent:void 0)!="function")throw new TypeError("target can not dispatch events");if(typeof n!="string")throw new TypeError("name must be a string");a=o({},t,a),i==null&&(i={}),i.options=o({},a),a.detail=i,l=[],g=u(n);for(d=0,v=g.length;d<v;d++)f=g[d],l.push(s(f,a));c=function(){var t,n,r;r=[];for(n=0,t=l.length;n<t;n++)f=l[n],r.push(e.dispatchEvent(f));return r},a.immediate?c():a.animationFrame?window.requestAnimationFrame(c):setTimeout(c,0)},r.trigger=function(){return r.emit.apply(r,arguments)},r.prototype.on=function(e,t){return r.on(this.targetElement,e,t)},r.prototype.listen=function(e,t){return r.listen(e,t)},r.prototype.off=function(e,t){return r.off(this.targetElement,e,t)},r.prototype.unlisten=function(e,t){return r.unlisten(e,t)},r.prototype.emit=function(e,t,n){var i,s;return t==null&&(t=null),n==null&&(n={}),s=(n!=null?!n.global:!void 0)?this.targetElement:window,i={owner:this,data:t},r.emit(s,e,i,n)},r.prototype.trigger=function(){return this.emit.apply(this,arguments)},r}(i),e.exports=r},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){(function(){var e,t,n,r,i;t=0,r=["ms","moz","webkit","o"];for(e=0,n=r.length;e<n;e++){i=r[e];if(!!this.requestAnimationFrame)continue;this.requestAnimationFrame=this[i+"RequestAnimationFrame"],this.cancelAnimationFrame=this[i+"CancelAnimationFrame"]||this[i+"CancelRequestAnimationFrame"]}this.requestAnimationFrame||(this.requestAnimationFrame=function(e,n){var r,i,s;return r=(new Date).getTime(),s=Math.max(0,16-(r-t)),i=t=r+s,setTimeout(function(){return e(i)},s)});if(!this.cancelAnimationFrame)return this.cancelAnimationFrame=function(e){return clearTimeout(e)}})()}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("jquery"),require("mi9-event-target"),require("implements"));else if(typeof define=="function"&&define.amd)define("mi9-decorator",["jquery","mi9-event-target","implements"],n);else{var r=typeof exports=="object"?n(require("jquery"),require("mi9-event-target"),require("implements")):n(t.jquery,t["mi9-event-target"],t["implements"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t,n){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports={Decorator:n(1),DecoratorFactory:n(4),DecoratorRegistry:n(5),DataDecorator:n(7),ManagerDecorator:n(8)}},function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;r=n(2),s=n(3),i=function(e){function t(e,n){var i,s;this.target=e,n==null&&(n={});if(!(this.target instanceof HTMLElement))throw new TypeError("invalid target");t.__super__.constructor.call(this,this.target),this.config=r.extend({},this.constructor.defaultConfig),i=this;while(i=Object.getPrototypeOf(i))this.config=r.extend({},i.constructor.defaultConfig,this.config);r.extend(this.config,n),s=null,Object.defineProperty(this,"manager",{enumerable:!0,get:function(){return s},set:function(e){return function(n){if(n)return s=n,s.on(t.READY,function(n){if(n.detail.owner===s)return e.emit(t.MANAGER_AVAILABLE,null,{bubbles:!1})})}}(this)}),this._ready=!1,this.init()}return o(t,e),t.READY="decorator.ready",t.MANAGER_AVAILABLE="decorator.manager-available",t.getName=function(){throw new SyntaxError("getName not implemented")},t.config=function(e){var t,n,r;e==null&&(e={});if(typeof e!="object"&&!e)return;n=[];for(t in e)r=e[t],n.push(this.defaultConfig[t]=r);return n},t.prototype.init=function(){return this.ready()},t.prototype.ready=function(){if(!this._ready)return this._ready=!0,this.emit(t.READY)},t}(s),e.exports=i},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){var r,i,s,o,u,a,f,l=function(e,t){function r(){this.constructor=e}for(var n in t)c.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},c={}.hasOwnProperty;r=n(2),s=n(3),o=n(5),f=Array.prototype.slice,u=null,a=function(e,t){return typeof e.querySelectorAll=="function"?f.call(e.querySelectorAll(t)):r(t,e).toArray()},i=function(e){function n(e){var t;t=null,Object.defineProperty(this,"registry",{enumerable:!0,set:function(e){if(e instanceof o)return t=e;throw new TypeError("not a registry")},get:function(){return t}}),this.registry=e!=null?e:new o}var t;return l(n,e),t=function(e,t,n){return new e(t,n)},n.prototype.build=function(e,n,i){var s,o;return e==null&&(e=document),n==null&&(n="module"),i==null&&(i=t),o=a(e,"[data-"+n+"]"),s=o.map(function(e){return function(t){var s,o,u;o=r.extend({},r(t).data()),u=o[n];if(s=e.registry.get(u))return i(s,t,o)}}(this)),s.filter(Boolean)},n}(s),Object.defineProperty(i,"default",{enumerable:!0,configurable:!0,set:function(e){throw new SyntaxError("default factory is readonly")},get:function(){return u||(u=new i),u}}),e.exports=i},function(e,t,n){var r,i,s,o,u,a=function(e,t){function r(){this.constructor=e}for(var n in t)f.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;r=n(2),u=n(6),o=n(3),i=n(1),s=function(e){function t(){t.__super__.constructor.call(this,window),this.map={}}return a(t,e),t.REGISTERED="decorator.registered",t.prototype.get=function(e){return this.map[e]},t.prototype.add=function(e){var n,s,o,a,f,l,c;if(typeof e!="function"){if(r.isArray(e)){for(o=0,f=e.length;o<f;o++)l=e[o],this.add(l);return}if(e){for(a in e){l=e[a];try{this.add(l)}catch(s){n=s;if(!(n instanceof TypeError))throw n}}return}throw new TypeError("invalid module type")}if(!u(e.prototype,i))throw new TypeError("module is not a Decorator");c=e.getName();if(typeof c!="string"||!c)throw new Error("invalid module name");if(this.map[c])throw new Error("module "+c+", already registered");return this.map[c]=e,this.emit(t.REGISTERED,{name:c,module:e})},t}(o),e.exports=s},function(e,t){e.exports=n},function(e,t,n){var r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=n(1),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return s(t,e),t.prototype.init=function(){var e,n;n=this.target.tagName.toLowerCase(),e=this.target.getAttribute("type");if(n!=="script"||e!=="text/json")throw SyntaxError("data decorator not a script tag");this.data=JSON.parse(this.target.textContent);if(this.constructor===t)return this.ready()},t}(i),e.exports=r},function(e,t,n){var r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n(1),i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return s(t,e),t.prototype.init=function(){this.decorators=[],this.on(r.READY,function(e){return function(t){var n;n=t.detail.owner;if(n===e||n.manager)return;return e.decorators.push(n),n.manager=e,t.stopPropagation()}}(this));if(this.constructor===t)return this.ready()},t.prototype.on=function(e,n){return t.__super__.on.call(this,e,function(e){return n.length===0&&e.stopPropagation(),n(e)})},t}(r),e.exports=i}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("jquery"),require("lodash"),require("mi9-module-common"),require("devicejs"),require("mi9-event-target"));else if(typeof define=="function"&&define.amd)define("mi9-utils",["jquery","lodash","mi9-module-common","devicejs","mi9-event-target"],n);else{var r=typeof exports=="object"?n(require("jquery"),require("lodash"),require("mi9-module-common"),require("devicejs"),require("mi9-event-target")):n(t.jquery,t.lodash,t["mi9-module-common"],t.devicejs,t["mi9-event-target"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t,n,r,i){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var r,i,s,o,u,a,f,l=function(e,t){function r(){this.constructor=e}for(var n in t)c.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},c={}.hasOwnProperty;r=n(1),a=n(2),o=n(3),f=n(4),s=n(5),i=n(6),u=function(e){function h(){return h.__super__.constructor.apply(this,arguments)}var t,n,o,u,f,c;return l(h,e),n=r(window),t=r(document),c=[],f=[],u=function(){var e,t,n,r,i,s,o;t=h.scrollTop(),o=[];for(i=0,s=c.length;i<s;i++){e=c[i];try{o.push(e(t))}catch(r){n=r,o.push(h.log(n.message))}}return o},o=function(){var e,t,n,r,i,s,o;t=h.size(),o=[];for(i=0,s=f.length;i<s;i++){e=f[i];try{o.push(e(t))}catch(r){n=r,o.push(h.log(n.message))}}return o},i.listen("scroll",u),i.listen("resize",a.throttle(o,250)),h.onScroll=function(e,t){c.push(e);if(t)return e(this.scrollTop())},h.onResize=function(e,t){f.push(e);if(t)return e(this.size())},h.scrollTop=function(){return n.scrollTop()},h.modernizr=s,h.size=function(){return{width:n.width(),height:n.height()}},h.viewport=function(){return{width:window.innerWidth||n.width(),height:window.innerHeight||n.height()}},h.isZoomed=function(){return document.documentElement.clientWidth>window.innerWidth},h.isTouchDevice=function(){return this.hasClass(document.documentElement,"touch")},h.isDesktop=function(){return this.hasClass(document.documentElement,"desktop")},h.isTablet=function(){return this.hasClass(document.documentElement,"tablet")},h.isMobile=function(){return this.hasClass(document.documentElement,"mobile")},h.isiOS=function(){return this.hasClass(document.documentElement,"ios")},h.isAndroid=function(){return this.hasClass(document.documentElement,"android")},h.isDeviceOrientationPortrait=function(){return this.modernizr.mq("(orientation: portrait)")},h.isDeviceOrientationLandscape=function(){return this.modernizr.mq("(orientation: landscape)")},h.isHighRes=function(){return window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 124dpi), only screen and (min-resolution: 1.3dppx), only screen and (min-resolution: 48.8dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3)").matches)||window.devicePixelRatio&&window.devicePixelRatio>1.3},h.hasAdBlocker=function(){return!1},h.onEvent=function(e,t){return i.on(document,e,function(e){return t(e!=null?e.detail:void 0)})},h.triggerEvent=function(e,t){return i.emit(document,e,t)},h.pushUrl=function(e){},h.pushTitle=function(e){return document.title=e},h.hasClass=function(e,t){return e.classList?e.classList.contains(t):(new RegExp("(^| )"+t+"( |$)","gi")).test(e.className)},h.readCookie=function(e){var t;return t=r.cookie(e),t!=null?JSON.parse(t):null},h.saveCookie=function(e,t,n){return n==null&&(n={}),n.expires=9999,r.cookie(e,JSON.stringify(t),n)},h.isElementVisibleOnScreen=function(e,t){var n,r,i,s,o,u,a,f,l;t==null&&(t=0),n=!1,e.is(":visible")&&(i=this.scrollTop(),l=this.viewport().height,s=e.innerHeight()+t,u=e.offset().top-t,f=i,r=i+l,a=u,o=u+s);if(a>f&&a<r||o>f&&o<r||a<f&&o>r)n=!0;return n},h.log=function(){return typeof console!="undefined"&&console!==null?typeof console.log=="function"?console.log.apply(console,arguments):void 0:void 0},h.logError=function(e,t){return(t!=null?t.stack:void 0)?typeof console!="undefined"&&console!==null?console.error(e+"\n"+t.stack):void 0:e.stack?typeof console!="undefined"&&console!==null?typeof console.error=="function"?console.error(t.stack):void 0:void 0:typeof console!="undefined"&&console!==null?typeof console.error=="function"?console.error.apply(console,arguments):void 0:void 0},h.logScreen=function(e){var t,n;return t||(t=r('<div class="screen-log"></div>'),r("body").append(t)),clearTimeout(n),t.addClass("screen-log--show"),t.append(e+"<br />"),t.scrollTop(9999),n=setTimeout(function(){return t.removeClass("screen-log--show")},2e3)},h.removeClass=function(e,t){return e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},h.addClass=function(e,t){return e.classList?e.classList.add(t):e.className+=" "+t},h.queryStringToObject=function(e){var t,n,r,i,s,o;s=e.split("&"),o={};for(t=0,i=s.length;t<i;t++)n=s[t],r=n.split("="),o[r[0]]=r[1];return o},h}(o),e.exports=u},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){(function(){window.Modernizr=function(e,t,n){function A(e){f.cssText=e}function O(e,t){return A(p.join(e+";")+(t||""))}function M(e,t){return typeof e===t}function _(e,t){return!!~(""+e).indexOf(t)}function D(e,t){for(var r in e){var i=e[r];if(!_(i,"-")&&f[i]!==n)return t=="pfx"?i:!0}return!1}function P(e,t,r){for(var i in e){var s=t[e[i]];if(s!==n)return r===!1?e[i]:M(s,"function")?s.bind(r||t):s}return!1}function H(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+v.join(r+" ")+r).split(" ");return M(t,"string")||M(t,"undefined")?D(i,t):(i=(e+" "+m.join(r+" ")+r).split(" "),P(i,t,n))}function B(){i.input=function(n){for(var r=0,i=n.length;r<i;r++)w[n[r]]=n[r]in l;return w.list&&(w.list=!!t.createElement("datalist")&&!!e.HTMLDataListElement),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),i.inputtypes=function(e){for(var r=0,i,s,u,a=e.length;r<a;r++)l.setAttribute("type",s=e[r]),i=l.type!=="text",i&&(l.value=c,l.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(s)&&l.style.WebkitAppearance!==n?(o.appendChild(l),u=t.defaultView,i=u.getComputedStyle&&u.getComputedStyle(l,null).WebkitAppearance!=="textfield"&&l.offsetHeight!==0,o.removeChild(l)):/^(search|tel)$/.test(s)||(/^(url|email)$/.test(s)?i=l.checkValidity&&l.checkValidity()===!1:i=l.value!=c)),b[e[r]]=!!i;return b}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var r="2.8.3",i={},s=!0,o=t.documentElement,u="modernizr",a=t.createElement(u),f=a.style,l=t.createElement("input"),c=":)",h={}.toString,p=" -webkit- -moz- -o- -ms- ".split(" "),d="Webkit Moz O ms",v=d.split(" "),m=d.toLowerCase().split(" "),g={svg:"http://www.w3.org/2000/svg"},y={},b={},w={},E=[],S=E.slice,x,T=function(e,n,r,i){var s,a,f,l,c=t.createElement("div"),h=t.body,p=h||t.createElement("body");if(parseInt(r,10))while(r--)f=t.createElement("div"),f.id=i?i[r]:u+(r+1),c.appendChild(f);return s=["&#173;",'<style id="s',u,'">',e,"</style>"].join(""),c.id=u,(h?c:p).innerHTML+=s,p.appendChild(c),h||(p.style.background="",p.style.overflow="hidden",l=o.style.overflow,o.style.overflow="hidden",o.appendChild(p)),a=n(c,e),h?c.parentNode.removeChild(c):(p.parentNode.removeChild(p),o.style.overflow=l),!!a},N=function(t){var n=e.matchMedia||e.msMatchMedia;if(n)return n(t)&&n(t).matches||!1;var r;return T("@media "+t+" { #"+u+" { position: absolute; } }",function(t){r=(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle)["position"]=="absolute"}),r},C=function(){function r(r,i){i=i||t.createElement(e[r]||"div"),r="on"+r;var s=r in i;return s||(i.setAttribute||(i=t.createElement("div")),i.setAttribute&&i.removeAttribute&&(i.setAttribute(r,""),s=M(i[r],"function"),M(i[r],"undefined")||(i[r]=n),i.removeAttribute(r))),i=null,s}var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),k={}.hasOwnProperty,L;!M(k,"undefined")&&!M(k.call,"undefined")?L=function(e,t){return k.call(e,t)}:L=function(e,t){return t in e&&M(e.constructor.prototype[t],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!="function")throw new TypeError;var r=S.call(arguments,1),i=function(){if(this instanceof i){var e=function(){};e.prototype=n.prototype;var s=new e,o=n.apply(s,r.concat(S.call(arguments)));return Object(o)===o?o:s}return n.apply(t,r.concat(S.call(arguments)))};return i}),y.flexbox=function(){return H("flexWrap")},y.flexboxlegacy=function(){return H("boxDirection")},y.canvas=function(){var e=t.createElement("canvas");return!!e.getContext&&!!e.getContext("2d")},y.canvastext=function(){return!!i.canvas&&!!M(t.createElement("canvas").getContext("2d").fillText,"function")},y.webgl=function(){return!!e.WebGLRenderingContext},y.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:T(["@media (",p.join("touch-enabled),("),u,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=e.offsetTop===9}),n},y.geolocation=function(){return"geolocation"in navigator},y.postmessage=function(){return!!e.postMessage},y.websqldatabase=function(){return!!e.openDatabase},y.indexedDB=function(){return!!H("indexedDB",e)},y.hashchange=function(){return C("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},y.history=function(){return!!e.history&&!!history.pushState},y.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},y.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},y.rgba=function(){return A("background-color:rgba(150,255,150,.5)"),_(f.backgroundColor,"rgba")},y.hsla=function(){return A("background-color:hsla(120,40%,100%,.5)"),_(f.backgroundColor,"rgba")||_(f.backgroundColor,"hsla")},y.multiplebgs=function(){return A("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(f.background)},y.backgroundsize=function(){return H("backgroundSize")},y.borderimage=function(){return H("borderImage")},y.borderradius=function(){return H("borderRadius")},y.boxshadow=function(){return H("boxShadow")},y.textshadow=function(){return t.createElement("div").style.textShadow===""},y.opacity=function(){return O("opacity:.55"),/^0.55$/.test(f.opacity)},y.cssanimations=function(){return H("animationName")},y.csscolumns=function(){return H("columnCount")},y.cssgradients=function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return A((e+"-webkit- ".split(" ").join(t+e)+p.join(n+e)).slice(0,-e.length)),_(f.backgroundImage,"gradient")},y.cssreflections=function(){return H("boxReflect")},y.csstransforms=function(){return!!H("transform")},y.csstransforms3d=function(){var e=!!H("perspective");return e&&"webkitPerspective"in o.style&&T("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t,n){e=t.offsetLeft===9&&t.offsetHeight===3}),e},y.csstransitions=function(){return H("transition")},y.fontface=function(){var e;return T('@font-face {font-family:"font";src:url("https://")}',function(n,r){var i=t.getElementById("smodernizr"),s=i.sheet||i.styleSheet,o=s?s.cssRules&&s.cssRules[0]?s.cssRules[0].cssText:s.cssText||"":"";e=/src/i.test(o)&&o.indexOf(r.split(" ")[0])===0}),e},y.generatedcontent=function(){var e;return T(["#",u,"{font:0/0 a}#",u,':after{content:"',c,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){e=t.offsetHeight>=3}),e},y.video=function(){var e=t.createElement("video"),n=!1;try{if(n=!!e.canPlayType)n=new Boolean(n),n.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(r){}return n},y.audio=function(){var e=t.createElement("audio"),n=!1;try{if(n=!!e.canPlayType)n=new Boolean(n),n.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(r){}return n},y.localstorage=function(){try{return localStorage.setItem(u,u),localStorage.removeItem(u),!0}catch(e){return!1}},y.sessionstorage=function(){try{return sessionStorage.setItem(u,u),sessionStorage.removeItem(u),!0}catch(e){return!1}},y.webworkers=function(){return!!e.Worker},y.applicationcache=function(){return!!e.applicationCache},y.svg=function(){return!!t.createElementNS&&!!t.createElementNS(g.svg,"svg").createSVGRect},y.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==g.svg},y.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(h.call(t.createElementNS(g.svg,"animate")))},y.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(h.call(t.createElementNS(g.svg,"clipPath")))};for(var j in y)L(y,j)&&(x=j.toLowerCase(),i[x]=y[j](),E.push((i[x]?"":"no-")+x));return i.input||B(),i.addTest=function(e,t){if(typeof e=="object")for(var r in e)L(e,r)&&i.addTest(r,e[r]);else{e=e.toLowerCase();if(i[e]!==n)return i;t=typeof t=="function"?t():t,typeof s!="undefined"&&s&&(o.className+=" "+(t?"":"no-")+e),i[e]=t}return i},A(""),a=l=null,function(e,t){function c(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function h(){var e=y.elements;return typeof e=="string"?e.split(" "):e}function p(e){var t=f[e[u]];return t||(t={},a++,e[u]=a,f[a]=t),t}function d(e,n,r){n||(n=t);if(l)return n.createElement(e);r||(r=p(n));var o;return r.cache[e]?o=r.cache[e].cloneNode():s.test(e)?o=(r.cache[e]=r.createElem(e)).cloneNode():o=r.createElem(e),o.canHaveChildren&&!i.test(e)&&!o.tagUrn?r.frag.appendChild(o):o}function v(e,n){e||(e=t);if(l)return e.createDocumentFragment();n=n||p(e);var r=n.frag.cloneNode(),i=0,s=h(),o=s.length;for(;i<o;i++)r.createElement(s[i]);return r}function m(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return y.shivMethods?d(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(y,t.frag)}function g(e){e||(e=t);var n=p(e);return y.shivCSS&&!o&&!n.hasCSS&&(n.hasCSS=!!c(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||m(e,n),e}var n="3.7.0",r=e.html5||{},i=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,s=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,o,u="_html5shiv",a=0,f={},l;(function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",o="hidden"in e,l=e.childNodes.length==1||function(){t.createElement("a");var e=t.createDocumentFragment();return typeof e.cloneNode=="undefined"||typeof e.createDocumentFragment=="undefined"||typeof e.createElement=="undefined"}()}catch(n){o=!0,l=!0}})();var y={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:n,shivCSS:r.shivCSS!==!1,supportsUnknownElements:l,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:g,createElement:d,createDocumentFragment:v};e.html5=y,g(t)}(this,t),i._version=r,i._prefixes=p,i._domPrefixes=m,i._cssomPrefixes=v,i.mq=N,i.hasEvent=C,i.testProp=function(e){return D([e])},i.testAllProps=H,i.testStyles=T,i.prefixed=function(e,t,n){return t?H(e,t,n):H(e,"pfx")},o.className=o.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(s?" js "+E.join(" "):""),i}(this,this.document),e.exports=window.Modernizr}).call(window)},function(e,t){e.exports=i}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("jquery"),require("fastclick"),require("ninemsn/portal/common/video"),require("mi9-utils"),require("mi9-decorator"));else if(typeof define=="function"&&define.amd)define("mi9-video-decorator",["jquery","fastclick","ninemsn/portal/common/video","mi9-utils","mi9-decorator"],n);else{var r=typeof exports=="object"?n(require("jquery"),require("fastclick"),require("ninemsn/portal/common/video"),require("mi9-utils"),require("mi9-decorator")):n(t.jquery,t.fastclick,t["ninemsn/portal/common/video"],t["mi9-utils"],t["mi9-decorator"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t,n,r,i){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){n(1),e.exports=n(5)},function(e,t){},,,,function(e,t,n){var r,i,s,o,u,a,f,l,c,h=function(e,t){function r(){this.constructor=e}for(var n in t)p.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},p={}.hasOwnProperty;r=n(6),s=n(7),c=n(8),o=n(9),i=n(10).Decorator,a=!o.isTouchDevice(),l=c.enumerations.event,l.custom={anyVideoPlaying:"custom:anyVideoPlaying"},f={elementMargin:10,arrowBtnClassName:".arrow"},u=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return h(t,e),t.getName=function(){return"video"},t.prototype.META="META",t.prototype.init=function(){return this.$target=r(this.target),this.data=r.isEmptyObject(this.config)?this.$target.data():this.config,this.blurPaused=!1,this.$playerContainer=null,this.$rails=null,this.$railsPlaylist=null,this.videoPlayer=null,this.videoWidget=null,this.$playerContainer=this.$target.find(".video-block__player"),this.showVideoPlaceholder=this.$playerContainer.parents(".showVideoPlaceholder").length>0,this.showVideoPlaylist=this.isShowVideoPlaylist(),this.bindEvents(),this.showPlayer(),this.ready()},t.prototype.isShowVideoPlaylist=function(){return this.$playerContainer.parents(".showVideoPlaylist").length>0},t.prototype.bindEvents=function(){return this.$playerContainer.on("mousedown",function(e){return e.stopPropagation()}),this.$playerContainer.on("touchstart",function(e){return e.stopPropagation()}),this.onVideoLoadEvent(),this.onWindowFocusEvent(),o.onResize(this.resizeElements.bind(this),!0),o.onEvent(l.custom.anyVideoPlaying,this.onAnyPlayerLoaded.bind(this))},t.prototype.onVideoLoadEvent=function(){return this.on(l.video.loaded,function(e){return function(t){e.showVideoPlaylist&&e.injectPlaylist();if(!document.hasFocus())return e.windowBlurPausePlayer()}}(this))},t.prototype.onWindowFocusEvent=function(){return r(window).focus(function(e){return function(){return e.windowFocusPlayPlayer()}}(this))},t.prototype.windowBlurPausePlayer=function(){if(this.videoPlayer.get("STATUS")!==l.video.paused)return this.videoPlayer.send("PAUSE"),this.blurPaused=!0},t.prototype.windowFocusPlayPlayer=function(){if(this.videoPlayer&&this.blurPaused)return this.videoPlayer.send("PLAY"),this.blurPaused=!1},t.prototype.resizeElements=function(){var e,t,n;return n=16/9,e=this.$target.width(),t=Math.round(e/n),this.$target.css("height",t),this.$target.find("object").css({width:e,height:t}),this.resizeVideo(),this.resizeWidget()},t.prototype.resizeVideo=function(){var e,t,n;n=this.$target.width(),t=this.$target.height();if(this.videoPlayer){this.videoPlayer.send("RESIZE",{width:n,height:t}),e=this.$target.find("iframe");if(e.length)return e.width(n),e.height(t),e.attr("width",n),e.attr("height",t)}},t.prototype.resizeWidget=function(){var e;if(this.$rails)return e=this.$target.width()-80,this.$railsPlaylist==null&&(this.$railsPlaylist=this.$rails.find("#"+this.$rails.attr("id")+"_playlist")),this.$railsPlaylist.width(e)},t.prototype.eventsList=function(){var e,t,n,r;t=[];for(n=0,r=arguments.length;n<r;n++)e=arguments[n],t.push(e);return t.join(" ")},t.prototype.getPlayerSettings=function(e){var t,n;return{outputLocation:this.$playerContainer.attr("id"),width:this.$target.width(),height:this.$target.height(),autoPlay:a&&e,data:this.getLoadMethod(),tracking:{hierarchy:(t=window.TRACKING_CONFIG)!=null?t.ads.configuration.siteHierarchy:void 0},networkLocation:{site:(n=window.TRACKING_CONFIG)!=null?n.hierarchy.site:void 0}}},t.prototype.loadVideoPlayer=function(e){e==null&&(e=!1);if(!this.data.video)return;return o.hasAdBlocker()?this.createAdBlockMessage():(this.resizeElements(),this.videoPlayer=new c.Player(this.getPlayerSettings(e)),this.videoPlayer.on(this.eventsList(l.video.playing,l.ad.playing),function(e){return function(){return o.triggerEvent(l.custom.anyVideoPlaying,{videoID:e.data.video})}}(this)),this.videoPlayer.on(l.video.loaded,function(e){return function(){return e.emit(l.video.loaded,{videoID:e.videoPlayer.get(e.META).id})}}(this)),this.videoPlayer.on(l.video.playing,function(e){return function(){return e.emit(l.video.playing,e.customVideoPlayingEvent(),{videoID:e.videoPlayer.get(e.META).id})}}(this)),this.videoPlayer.on(l.video.playCompleted,function(e){return function(){return e.emit(l.video.playCompleted,{videoID:e.videoPlayer.get(e.META).id})}}(this)),this.videoPlayer.on(l.ad.playing,function(e){return function(){return e.emit(l.ad.playing,{videoID:e.videoPlayer.get(e.META).id})}}(this)),this.videoPlayer.on(l.ad.playCompleted,function(e){return function(){return e.emit(l.ad.playCompleted,{videoID:e.videoPlayer.get(e.META).id})}}(this)),this.$target.addClass("video-block--loaded"))},t.prototype.customVideoPlayingEvent=function(){},t.prototype.createVideoImage=function(){var e;return e=this.$target.find(".play, .video-block__image"),s.attach(e[0]),s.attach(e[1]),e.click(function(e){return function(t){return e.loadVideoPlayer(!0),t.stopPropagation()}}(this))},t.prototype.createAdBlockMessage=function(){var e;return e='<div class="adblock-message"><p>Sorry, this video is unable to play with adblocking software running.</br></br>Please add 9news to the list of approved sites in your adblocker settings and reload the page.</p></div>',this.$target.html(e)},t.prototype.onAnyPlayerLoaded=function(e){if(e.videoID!==this.data.video)return this.unloadVideoPlayer()},t.prototype.unloadVideo=function(){if(!this.isHtml5())return this.unloadVideoPlayer()},t.prototype.unloadVideoPlayer=function(){var e,t;return(e=this.videoPlayer)!=null&&e.dispose(),this.videoPlayer=null,(t=this.videoWidget)!=null&&t.dispose(),this.videoWidget=null,this.$target.removeClass("video-block--loaded")},t.prototype.playVideo=function(e){return this.videoPlayer?this.videoPlayer.send("LOAD",e):(this.data.video=e,this.loadVideoPlayer(!0))},t.prototype.stopVideo=function(){if(this.videoPlayer)return this.videoPlayer.send("STOP")},t.prototype.isHtml5=function(){var e;return((e=this.videoPlayer)!=null?e.get("TYPE"):void 0)===c.enumerations.player.type.HTML5},t.prototype.getLoadMethod=function(){return typeof this.data.video=="undefined"?{method:c.enumerations.data.method.Tags,filter:{tags:[{name:this.data.categoryName,value:this.data.categoryValue}]}}:{method:c.enumerations.data.method.ID,filter:{id:this.data.video}}},t.prototype.getPlaylistSettings=function(){return{data:{method:c.enumerations.data.method.Related,filter:{id:this.data.video}},outputLocation:this.$rails.attr("id"),playlist:{arrowBaseUrl:"img"},type:c.enumerations.widget.type.playlist,player:this.videoPlayer}},t.prototype.injectPlaylist=function(e){e==null&&(e=this.$target),this.$rails||(this.$rails=r("<div>"),this.$rails.addClass("video-playlist"),this.$rails.attr("id",this.$playerContainer.attr("id")+"-video-playlist"),e.after(this.$rails));if(!this.videoWidget)return this.videoWidget=new c.Widget(this.getPlaylistSettings()),this.videoWidget.on("widget:loaded",function(e){return function(){return e.onPlaylistLoaded()}}(this))},t.prototype.onPlaylistLoaded=function(){},t.prototype.showPlayer=function(){return this.createVideoImage(),this.showVideoPlaceholder?this.resizeElements():this.loadVideoPlayer(this.data.autoplay)},t}(i),e.exports=u,e.exports.events=l},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n();else if(typeof define=="function"&&define.amd)define("mi9-ads-common",[],n);else{var r=n();for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports={templates:{ad:n(1)}}},function(e,t,n){var r=n(2);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b){n.push("<div"+r.cls(["widget","widget-ad",[u,b].join(" ")],[null,null,!0])+"><div"+r.attr("data-module",v?v:!1,!0,!1)+r.attr("data-id",m?m:!1,!0,!1)+r.attr("data-renderId",y?y:!1,!0,!1)+r.attr("data-ad-type",i?i:!1,!0,!1)+r.attr("data-loc",h?h:!1,!0,!1)+r.attr("data-has-toggle",c?c:!1,!0,!1)+r.attr("data-device-hidden",a?a:!1,!0,!1)+r.attr("data-min-width",d?d:!1,!0,!1)+r.attr("data-max-width",p?p:!1,!0,!1)+r.attr("data-ad-slot",t?t:!1,!0,!1)+r.attr("data-ad-height",e?e:!1,!0,!1)+r.attr("data-ad-width",s?s:!1,!0,!1)+r.attr("data-excluded-sections",f?f:!1,!0,!1)+r.attr("data-excluded-subsections",l?l:!1,!0,!1)+r.attr("data-relationship",g?g:!1,!0,!1)+r.cls(["advert",o],[null,!0])+"></div></div>")}.call(this,"adHeight"in o?o.adHeight:typeof adHeight!="undefined"?adHeight:undefined,"adSlot"in o?o.adSlot:typeof adSlot!="undefined"?adSlot:undefined,"adType"in o?o.adType:typeof adType!="undefined"?adType:undefined,"adWidth"in o?o.adWidth:typeof adWidth!="undefined"?adWidth:undefined,"classes"in o?o.classes:typeof classes!="undefined"?classes:undefined,"defaultColumn"in o?o.defaultColumn:typeof defaultColumn!="undefined"?defaultColumn:undefined,"deviceHidden"in o?o.deviceHidden:typeof deviceHidden!="undefined"?deviceHidden:undefined,"excludedSections"in o?o.excludedSections:typeof excludedSections!="undefined"?excludedSections:undefined,"excludedSubsection"in o?o.excludedSubsection:typeof excludedSubsection!="undefined"?excludedSubsection:undefined,"hasToggle"in o?o.hasToggle:typeof hasToggle!="undefined"?hasToggle:undefined,"location"in o?o.location:typeof location!="undefined"?location:undefined,"maxWidth"in o?o.maxWidth:typeof maxWidth!="undefined"?maxWidth:undefined,"minWidth"in o?o.minWidth:typeof minWidth!="undefined"?minWidth:undefined,"moduleDecorator"in o?o.moduleDecorator:typeof moduleDecorator!="undefined"?moduleDecorator:undefined,"moduleId"in o?o.moduleId:typeof moduleId!="undefined"?moduleId:undefined,"relationship"in o?o.relationship:typeof relationship!="undefined"?relationship:undefined,"renderId"in o?o.renderId:typeof renderId!="undefined"?renderId:undefined,"widgetClasses"in o?o.widgetClasses:typeof widgetClasses!="undefined"?widgetClasses:undefined),n.join("")}},function(e,t,n){"use strict";function r(e){return e!=null&&e!==""}function i(e){return(Array.isArray(e)?e.map(i):e&&typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}):[e]).filter(r).join(" ")}function u(e){return s[e]||e}function a(e){var t=String(e).replace(o,u);return t===""+e?e:t}t.merge=function f(e,t){if(arguments.length===1){var n=e[0];for(var i=1;i<e.length;i++)n=f(n,e[i]);return n}var s=e["class"],o=t["class"];if(s||o)s=s||[],o=o||[],Array.isArray(s)||(s=[s]),Array.isArray(o)||(o=[o]),e["class"]=s.concat(o).filter(r);for(var u in t)u!="class"&&(e[u]=t[u]);return e},t.joinClasses=i,t.cls=function(n,r){var s=[];for(var o=0;o<n.length;o++)r&&r[o]?s.push(t.escape(i([n[o]]))):s.push(i(n[o]));var u=i(s);return u.length?' class="'+u+'"':""},t.style=function(e){return e&&typeof e=="object"?Object.keys(e).map(function(t){return t+":"+e[t]}).join(";"):e},t.attr=function(n,r,i,s){return n==="style"&&(r=t.style(r)),"boolean"==typeof r||null==r?r?" "+(s?n:n+'="'+n+'"'):"":0==n.indexOf("data")&&"string"!=typeof r?(JSON.stringify(r).indexOf("&")!==-1&&console.warn("Since Jade 2.0.0, ampersands (`&`) in data attributes will be escaped to `&amp;`"),r&&typeof r.toISOString=="function"&&console.warn("Jade will eliminate the double quotes around dates in ISO form after 2.0.0")," "+n+"='"+JSON.stringify(r).replace(/'/g,"&apos;")+"'"):i?(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+t.escape(r)+'"'):(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+r+'"')},t.attrs=function(n,r){var s=[],o=Object.keys(n);if(o.length)for(var u=0;u<o.length;++u){var a=o[u],f=n[a];"class"==a?(f=i(f))&&s.push(" "+a+'="'+f+'"'):s.push(t.attr(a,f,!1,r))}return s.join("")};var s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},o=/[&<>"]/g;t.escape=a,t.rethrow=function l(e,t,r,i){if(e instanceof Error){if((typeof window!="undefined"||!t)&&!i)throw e.message+=" on line "+r,e;try{i=i||n(3).readFileSync(t,"utf8")}catch(s){l(e,null,r)}var o=3,u=i.split("\n"),a=Math.max(r-o,0),f=Math.min(u.length,r+o),o=u.slice(a,f).map(function(e,t){var n=t+a+1;return(n==r?"  > ":"    ")+n+"| "+e}).join("\n");throw e.path=t,e.message=(t||"Jade")+":"+r+"\n"+o+"\n\n"+e.message,e}throw e},t.DebugItem=function(t,n){this.lineno=t,this.filename=n}},function(e,t){}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n();else if(typeof define=="function"&&define.amd)define("mi9-gallery-common",[],n);else{var r=n();for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports={directionalLink:n(1),templates:{headline:n(2),magnifyLens:n(5),magnify:n(6),module:n(7),nextGallery:n(8),page:n(9),share:n(10),slideAd:n(11),ad:n(12),tags:n(13),breadcrumbs:n(14),slideImage:n(15),slideVideo:n(16),thumbnails:n(17),utilities:n(18)}}},function(e,t){e.exports={previousUrl:function(e,t,n){var r;return e===0?n?(r=n.media.length-1,r===0?n.url:n.url+"/"+(r+1)):"#":e===1?t.url:t.url+"/"+e},nextUrl:function(e,t,n){return e+1>=t.media.length?n?n.url:"#":t.url+"/"+(e+2)}}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t){n.push('<div class="headline__wrapper"><div class="gallery__site-title">'+r.escape((s=t.galleryQuote)==null?"":s)+"</div><h1>"+(null==(s=e)?"":s)+'</h1><a href="#" class="gallery__view-link">View gallery</a></div>')}.call(this,"headline"in o?o.headline:typeof headline!="undefined"?headline:undefined,"meta"in o?o.meta:typeof meta!="undefined"?meta:undefined),n.join("")}},function(e,t,n){"use strict";function r(e){return e!=null&&e!==""}function i(e){return(Array.isArray(e)?e.map(i):e&&typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}):[e]).filter(r).join(" ")}function u(e){return s[e]||e}function a(e){var t=String(e).replace(o,u);return t===""+e?e:t}t.merge=function f(e,t){if(arguments.length===1){var n=e[0];for(var i=1;i<e.length;i++)n=f(n,e[i]);return n}var s=e["class"],o=t["class"];if(s||o)s=s||[],o=o||[],Array.isArray(s)||(s=[s]),Array.isArray(o)||(o=[o]),e["class"]=s.concat(o).filter(r);for(var u in t)u!="class"&&(e[u]=t[u]);return e},t.joinClasses=i,t.cls=function(n,r){var s=[];for(var o=0;o<n.length;o++)r&&r[o]?s.push(t.escape(i([n[o]]))):s.push(i(n[o]));var u=i(s);return u.length?' class="'+u+'"':""},t.style=function(e){return e&&typeof e=="object"?Object.keys(e).map(function(t){return t+":"+e[t]}).join(";"):e},t.attr=function(n,r,i,s){return n==="style"&&(r=t.style(r)),"boolean"==typeof r||null==r?r?" "+(s?n:n+'="'+n+'"'):"":0==n.indexOf("data")&&"string"!=typeof r?(JSON.stringify(r).indexOf("&")!==-1&&console.warn("Since Jade 2.0.0, ampersands (`&`) in data attributes will be escaped to `&amp;`"),r&&typeof r.toISOString=="function"&&console.warn("Jade will eliminate the double quotes around dates in ISO form after 2.0.0")," "+n+"='"+JSON.stringify(r).replace(/'/g,"&apos;")+"'"):i?(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+t.escape(r)+'"'):(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+r+'"')},t.attrs=function(n,r){var s=[],o=Object.keys(n);if(o.length)for(var u=0;u<o.length;++u){var a=o[u],f=n[a];"class"==a?(f=i(f))&&s.push(" "+a+'="'+f+'"'):s.push(t.attr(a,f,!1,r))}return s.join("")};var s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},o=/[&<>"]/g;t.escape=a,t.rethrow=function l(e,t,r,i){if(e instanceof Error){if((typeof window!="undefined"||!t)&&!i)throw e.message+=" on line "+r,e;try{i=i||n(4).readFileSync(t,"utf8")}catch(s){l(e,null,r)}var o=3,u=i.split("\n"),a=Math.max(r-o,0),f=Math.min(u.length,r+o),o=u.slice(a,f).map(function(e,t){var n=t+a+1;return(n==r?"  > ":"    ")+n+"| "+e}).join("\n");throw e.path=t,e.message=(t||"Jade")+":"+r+"\n"+o+"\n\n"+e.message,e}throw e},t.DebugItem=function(t,n){this.lineno=t,this.filename=n}},function(e,t){},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i;return n.push('<div class="magnify__lens"></div>'),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i;return n.push('<img class="magnify__large magnify__large--loading"/>'),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,i,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S){n.push('<div data-module="gallery.manager"'+r.attr("data-history",E.toString(),!0,!1)+'><script data-module="gallery.data"'+r.attr("data-index",o,!0,!1)+' type="text/json">'+(null==(s=e.stringify(t))?"":s)+'</script><div data-module="gallery.layout"'+r.attr("data-gallery-id",l,!0,!1)+r.attr("data-index",o,!0,!1)+r.attr("data-gallery-portrait",i.portrait.toString(),!0,!1)+' data-disable-title-overlay="false" data-gallery-type="gallery"'+r.attr("data-gallery-section",f.lowerCase(w.section),!0,!1)+' class="gallery module">'),g.enableAds&&n.push('<div class="gallery__banner-ad">'+(null==(s=v.ad({adType:"BANNER",location:"TOP",classes:"module",moduleDecorator:"gallery.ad",moduleId:"gallery.ad.top",minWidth:f.breakpoint("md","min")}))?"":s)+"</div>"),n.push('<section data-id="gallery.headline" data-module="gallery.headline" class="gallery__headline">'+(null==(s=v.gallery.headline({meta:p,headline:a}))?"":s)+'</section><section class="gallery__main"><section id="gallery__video-player"><div'+r.attr("id",S,!0,!1)+' class="video-block__player"></div><div class="video-block__image"></div><div class="play"></div></section><section data-id="gallery.slides" data-module="gallery.slides" class="gallery__slides"><div class="gallery__slides-wrapper">');if(h)switch(h.type){case"image":n.push(null==(s=v.gallery.slideImage({media:h}))?"":s);break;case"video":n.push(null==(s=v.gallery.slideVideo({media:h}))?"":s)}n.push('</div></section><section data-id="gallery.arrows" data-module="gallery.arrows" class="gallery__arrows"><a'+r.attr("href",m,!0,!1)+' rel="prev" class="gallery__arrow-prev"></a><a'+r.attr("href",d,!0,!1)+' rel="next" class="gallery__arrow-next"></a></section></section><section class="gallery__utility"><section data-id="gallery.utilityTop" data-module="gallery.utilities" class="utility__top">'+(null==(s=v.gallery.utilities({media:h,current:i,partials:v}))?"":s)+'</section><div class="utility__button"></div>'),g.enableAds&&n.push('<div class="gallery__utility-ad">'+(null==(s=v.ad({adType:"MEDIUM",location:"TOP",classes:"module",moduleDecorator:"gallery.ad",moduleId:"gallery.ad.utility",minWidth:f.breakpoint("md","min")}))?"":s)+"</div>"),n.push('</section><section class="gallery__share-page"><section data-id="gallery.page" data-module="gallery.page" class="gallery__page">'+(null==(s=v.gallery.page({currentIndex:o,slidesLength:b}))?"":s)+'</section><section data-id="gallery.share" data-module="gallery.share" class="gallery__share">'+(null==(s=v.share(i.shareData||{}))?"":s)+'</section></section><section class="gallery__magnify-inner"></section><section class="gallery__thumbnails"><div data-id="gallery.thumbnail-arrows" data-module="gallery.arrows" class="gallery__arrows"><a'+r.attr("href",m,!0,!1)+' class="thumbnails__up"></a><a'+r.attr("href",d,!0,!1)+' class="thumbnails__down"></a></div><div class="thumbnails__list-container"><ul data-id="gallery.thumbnails" data-module="gallery.thumbnails" data-thumbnail-width="149" data-magnify=".gallery__magnify-inner" data-magnify-active-class="gallery__magnify-inner--active" data-magnification="3" class="thumbnails__list">'),i.portrait&&n.push(null==(s=v.gallery.thumbnails({slides:y.slice(c,5),index:u,slideIndex:c}))?"":s),n.push('</ul></div></section><small class="gallery__footer"><a href="http://mi9.com.au/article.aspx?id=8363139">Terms of use</a><a href="http://advertising.ninemsn.com.au/privacy">Privacy</a></small></div></div>')}.call(this,"JSON"in o?o.JSON:typeof JSON!="undefined"?JSON:undefined,"current"in o?o.current:typeof current!="undefined"?current:undefined,"currentIndex"in o?o.currentIndex:typeof currentIndex!="undefined"?currentIndex:undefined,"dataIndex"in o?o.dataIndex:typeof dataIndex!="undefined"?dataIndex:undefined,"headline"in o?o.headline:typeof headline!="undefined"?headline:undefined,"helpers"in o?o.helpers:typeof helpers!="undefined"?helpers:undefined,"id"in o?o.id:typeof id!="undefined"?id:undefined,"index"in o?o.index:typeof index!="undefined"?index:undefined,"media"in o?o.media:typeof media!="undefined"?media:undefined,"meta"in o?o.meta:typeof meta!="undefined"?meta:undefined,"nextUrl"in o?o.nextUrl:typeof nextUrl!="undefined"?nextUrl:undefined,"partials"in o?o.partials:typeof partials!="undefined"?partials:undefined,"previousUrl"in o?o.previousUrl:typeof previousUrl!="undefined"?previousUrl:undefined,"settings"in o?o.settings:typeof settings!="undefined"?settings:undefined,"slides"in o?o.slides:typeof slides!="undefined"?slides:undefined,"slidesLength"in o?o.slidesLength:typeof slidesLength!="undefined"?slidesLength:undefined,"tracking"in o?o.tracking:typeof tracking!="undefined"?tracking:undefined,"useHistory"in o?o.useHistory:typeof useHistory!="undefined"?useHistory:undefined,"videoId"in o?o.videoId:typeof videoId!="undefined"?videoId:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e){if(e){var t=e.media[0]||{url:"",alt:""};n.push("<a"+r.attr("href",e.url,!0,!1)+' data-tracking-link-name="article_previous" class="related heading-link"><img'+r.attr("src",t.url,!0,!1)+r.attr("alt",t.alt,!0,!1)+' class="next__image"/><h3 class="next__title">Next Gallery</h3><p class="next__headline">'+(null==(s=e.headline)?"":s)+"</p></a>")}}.call(this,"next"in o?o.next:typeof next!="undefined"?next:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i,s=t||{};return function(e,t){n.push('<span class="page__current">'+(null==(i=e+1)?"":i)+'</span><wbr/><span class="page__total">'+(null==(i=t)?"":i)+"</span>")}.call(this,"currentIndex"in s?s.currentIndex:typeof currentIndex!="undefined"?currentIndex:undefined,"slidesLength"in s?s.slidesLength:typeof slidesLength!="undefined"?slidesLength:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i;return n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i,s=t||{};return function(e){n.push('<div class="slides__image slides__image--ad">'+(null==(i=e)?"":i)+'<div class="ad-message"><span></span></div></div>')}.call(this,"adContent"in s?s.adContent:typeof adContent!="undefined"?adContent:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w){n.push("<div"+r.cls(["widget","widget-ad",[u,w].join(" ")],[null,null,!0])+"><div"+r.attr("data-module",v?v:!1,!0,!1)+r.attr("data-rerender",typeof b=="boolean"?b:!0,!0,!1)+r.attr("data-id",m?m:!1,!0,!1)+r.attr("data-renderId",y?y:!1,!0,!1)+r.attr("data-ad-type",i?i:!1,!0,!1)+r.attr("data-loc",h?h:!1,!0,!1)+r.attr("data-has-toggle",c?c:!1,!0,!1)+r.attr("data-device-hidden",a?a:!1,!0,!1)+r.attr("data-min-width",d?d:!1,!0,!1)+r.attr("data-max-width",p?p:!1,!0,!1)+r.attr("data-ad-slot",t?t:!1,!0,!1)+r.attr("data-ad-height",e?e:!1,!0,!1)+r.attr("data-ad-width",s?s:!1,!0,!1)+r.attr("data-excluded-sections",f?f:!1,!0,!1)+r.attr("data-excluded-subsections",l?l:!1,!0,!1)+r.attr("data-relationship",g?g:!1,!0,!1)+r.cls(["advert",o],[null,!0])+"></div></div>")}.call(this,"adHeight"in o?o.adHeight:typeof adHeight!="undefined"?adHeight:undefined,"adSlot"in o?o.adSlot:typeof adSlot!="undefined"?adSlot:undefined,"adType"in o?o.adType:typeof adType!="undefined"?adType:undefined,"adWidth"in o?o.adWidth:typeof adWidth!="undefined"?adWidth:undefined,"classes"in o?o.classes:typeof classes!="undefined"?classes:undefined,"defaultColumn"in o?o.defaultColumn:typeof defaultColumn!="undefined"?defaultColumn:undefined,"deviceHidden"in o?o.deviceHidden:typeof deviceHidden!="undefined"?deviceHidden:undefined,"excludedSections"in o?o.excludedSections:typeof excludedSections!="undefined"?excludedSections:undefined,"excludedSubsection"in o?o.excludedSubsection:typeof excludedSubsection!="undefined"?excludedSubsection:undefined,"hasToggle"in o?o.hasToggle:typeof hasToggle!="undefined"?hasToggle:undefined,"location"in o?o.location:typeof location!="undefined"?location:undefined,"maxWidth"in o?o.maxWidth:typeof maxWidth!="undefined"?maxWidth:undefined,"minWidth"in o?o.minWidth:typeof minWidth!="undefined"?minWidth:undefined,"moduleDecorator"in o?o.moduleDecorator:typeof moduleDecorator!="undefined"?moduleDecorator:undefined,"moduleId"in o?o.moduleId:typeof moduleId!="undefined"?moduleId:undefined,"relationship"in o?o.relationship:typeof relationship!="undefined"?relationship:undefined,"renderId"in o?o.renderId:typeof renderId!="undefined"?renderId:undefined,"rerender"in o?o.rerender:typeof rerender!="undefined"?rerender:undefined,"widgetClasses"in o?o.widgetClasses:typeof widgetClasses!="undefined"?widgetClasses:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t){e&&function(){var t=e;if("number"==typeof t.length)for(var i=0,o=t.length;i<o;i++){var u=t[i];n.push("<a"+r.attr("href","/"+u.url,!0,!1)+' data-tracking-link-name="gallery_tag" class="gallery__tag">'+r.escape((s=u.name)==null?"":s)+"</a>")}else{var o=0;for(var i in t){o++;var u=t[i];n.push("<a"+r.attr("href","/"+u.url,!0,!1)+' data-tracking-link-name="gallery_tag" class="gallery__tag">'+r.escape((s=u.name)==null?"":s)+"</a>")}}}.call(this)}.call(this,"tags"in o?o.tags:typeof tags!="undefined"?tags:undefined,"undefined"in o?o.undefined:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t){e&&(n.push("<ul>"),function(){var t=e;if("number"==typeof t.length)for(var i=0,o=t.length;i<o;i++){var u=t[i];n.push("<li><a"+r.attr("href",u.url,!0,!1)+r.attr("data-tracking-link-name","gallery_"+u.name,!0,!1)+' class="gallery__breadcrumb">'+r.escape((s=u.name)==null?"":s)+"</a></li>")}else{var o=0;for(var i in t){o++;var u=t[i];n.push("<li><a"+r.attr("href",u.url,!0,!1)+r.attr("data-tracking-link-name","gallery_"+u.name,!0,!1)+' class="gallery__breadcrumb">'+r.escape((s=u.name)==null?"":s)+"</a></li>")}}}.call(this),n.push("</ul>"))}.call(this,"breadcrumbs"in o?o.breadcrumbs:typeof breadcrumbs!="undefined"?breadcrumbs:undefined,"undefined"in o?o.undefined:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e){var t=e.alt,i=e.width,s=e.height,o=e.width/e.height,u=e.urlSet,a=e.url;n.push('<div class="slides__image"><div class="slides__image-inner"><img'+r.attr("alt",t,!0,!1)+r.attr("data-src-set",u,!0,!1)+r.attr("data-aspect",o,!0,!1)+' src="http://9news.static9.net.au/Content/images/1x1.gif" data-image-resizer="data-image-resizer"/><noscript><div class="image-resizer--nojs"><img'+r.attr("alt",t,!0,!1)+r.attr("src",a,!0,!1)+' data-image-resizer="data-image-resizer" class="image-resizer__image image-resizer__image--nojs"/></div></noscript></div></div>')}.call(this,"media"in o?o.media:typeof media!="undefined"?media:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e){var t=e.alt,i=e.width,s=e.height,o=16/9,u=e.urlSet,a=e.url;n.push('<div class="slides__image slides__image-video"><div class="slides__image-inner"><img'+r.attr("alt",t,!0,!1)+r.attr("data-src-set",u,!0,!1)+r.attr("data-aspect",o,!0,!1)+' src="http://9news.static9.net.au/Content/images/1x1.gif" data-image-resizer="data-image-resizer"/><noscript><div class="image-resizer--nojs"><img'+r.attr("alt",t,!0,!1)+r.attr("src",a,!0,!1)+' data-image-resizer="data-image-resizer" class="image-resizer__image image-resizer__image--nojs"/></div></noscript><div class="slides__image-inner__play"></div></div></div>')}.call(this,"media"in o?o.media:typeof media!="undefined"?media:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t,i,s,o){(function(){var o=s;if("number"==typeof o.length)for(var u=0,a=o.length;u<a;u++){var f=o[u];n.push("<li"+r.attr("data-index",u+t,!0,!1)+r.attr("data-slide-index",u+i,!0,!1)+r.cls([""+(u===0?"thumbnail__item thumbnail__item--active":"thumbnail__item")+""],[!0])+"><a"+r.attr("href",f.slideUrl,!0,!1)+"><img"+r.attr("alt",f.alt,!0,!1)+r.attr("data-src-set",f.urlSet,!0,!1)+r.attr("data-aspect",f.aspect,!0,!1)+' src="http://9news.static9.net.au/Content/images/1x1.gif" data-image-resizer="data-image-resizer" class="thumbnail__item-image"/><noscript><div class="image-resizer--nojs"><!-- use the lowest size if available-->');var l=typeof f.urlSet[0]!="undefined"?f.urlSet[0].src:f.url;n.push("<img"+r.attr("alt",e,!0,!1)+r.attr("src",l,!0,!1)+' data-image-resizer="data-image-resizer" class="image-resizer__image image-resizer__image--nojs"/></div></noscript></a></li>')}else{var a=0;for(var u in o){a++;var f=o[u];n.push("<li"+r.attr("data-index",u+t,!0,!1)+r.attr("data-slide-index",u+i,!0,!1)+r.cls([""+(u===0?"thumbnail__item thumbnail__item--active":"thumbnail__item")+""],[!0])+"><a"+r.attr("href",f.slideUrl,!0,!1)+"><img"+r.attr("alt",f.alt,!0,!1)+r.attr("data-src-set",f.urlSet,!0,!1)+r.attr("data-aspect",f.aspect,!0,!1)+' src="http://9news.static9.net.au/Content/images/1x1.gif" data-image-resizer="data-image-resizer" class="thumbnail__item-image"/><noscript><div class="image-resizer--nojs"><!-- use the lowest size if available-->');var l=typeof f.urlSet[0]!="undefined"?f.urlSet[0].src:f.url;n.push("<img"+r.attr("alt",e,!0,!1)+r.attr("src",l,!0,!1)+' data-image-resizer="data-image-resizer" class="image-resizer__image image-resizer__image--nojs"/></div></noscript></a></li>')}}}).call(this)}.call(this,"alt"in o?o.alt:typeof alt!="undefined"?alt:undefined,"index"in o?o.index:typeof index!="undefined"?index:undefined,"slideIndex"in o?o.slideIndex:typeof slideIndex!="undefined"?slideIndex:undefined,"slides"in o?o.slides:typeof slides!="undefined"?slides:undefined,"undefined"in o?o.undefined:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i,s=t||{};return function(e,t,r){n.push('<div class="utility__top-wrap"><div class="gallery__instaceleb-title"></div><div class="gallery__instaceleb-subtitle"></div><div class="gallery__title">'+(null==(i=t.title)?"":i)+'</div><div class="gallery__caption">'+(null==(i=t.caption)?"":i)+"</div><!-- If image attribution does exist and it's not empty, then display it -->"),t.attribution&&n.push('<div class="gallery__image-attribution">'+(null==(i=t.attribution)?"":i)+"</div>"),e.tags&&n.push('<section class="gallery__tags">'+(null==(i=r.gallery.tags({tags:e.tags}))?"":i)+"</section>"),e.breadcrumbs&&n.push('<section class="gallery__breadcrumbs">'+(null==(i=r.gallery.breadcrumbs({breadcrumbs:e.breadcrumbs}))?"":i)+"</section>"),n.push("</div>")}.call(this,"current"in s?s.current:typeof current!="undefined"?current:undefined,"media"in s?s.media:typeof media!="undefined"?media:undefined,"partials"in s?s.partials:typeof partials!="undefined"?partials:undefined),n.join("")}}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("jquery"),require("lodash"),require("mi9-module-common"),require("mi9-utils"),require("mi9-event-target"));else if(typeof define=="function"&&define.amd)define("mi9-image-resizer",["jquery","lodash","mi9-module-common","mi9-utils","mi9-event-target"],n);else{var r=typeof exports=="object"?n(require("jquery"),require("lodash"),require("mi9-module-common"),require("mi9-utils"),require("mi9-event-target")):n(t.jquery,t.lodash,t["mi9-module-common"],t["mi9-utils"],t["mi9-event-target"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t,n,r,i){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){n(1),e.exports=n(6)},function(e,t){},,,,,function(e,t,n){var r,i,s,o,u,a,f=function(e,t){function r(){this.constructor=e}for(var n in t)l.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},l={}.hasOwnProperty;r=n(7),a=n(8),o=n(9),u=n(10),i=n(11),s=function(e){function t(){this.Utils=u,i.listen("resize",a.debounce(this.parseImages,this.debounceDuration))}return f(t,e),t.prototype.selector="img[data-image-resizer]",t.prototype.srcSetAttr="data-src-set",t.prototype.widthAttr="data-loaded-x",t.prototype.debounceDuration=1e3,t.prototype.parseImages=function(e){var t;return e==null&&(e={useParentWidth:!1}),e.hasOwnProperty("scope")?t=r(e.scope).find(this.selector):t=r(this.selector),t.each(function(t){return function(n,i){return t.parseImage(r(i),e.useParentWidth)}}(this))},t.prototype.parseImage=function(e,t){var n;t==null&&(t=!1),n=this.getClosestFitImage(e,t);if(n){if(n.size.width<=parseInt(e.attr(this.widthAttr)))return;return e.attr("src",n.src),e.attr(this.widthAttr,n.size.width)}},t.prototype.getClosestFitImage=function(e,t){var n,r;t==null&&(t=!1),t===!0?n=e.parent().outerWidth():n=e.outerWidth(),this.Utils.isHighRes()&&(n=Math.ceil(n*2)),r=this.parseSrcSetAttr(e);if(r!=null?!r.length:!void 0)return;return this.getResizedUrl({srcSet:r,width:n})},t.prototype.getResizedUrl=function(e){var t;if(e.srcSet!=null)return t=a.find(e.srcSet,function(t){return t.size.width>=e.width}),t==null&&(t=a.max(e.srcSet,function(e){return e.size.width})),t},t.prototype.parseSrcSetAttr=function(e){var t,n;if(e.attr(this.srcSetAttr))try{n=JSON.parse(e.attr(this.srcSetAttr))}catch(r){t=r,n=[]}return n},t}(o),e.exports=s},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("jquery"),require("mi9-decorator"));else if(typeof define=="function"&&define.amd)define("mi9-ads",["jquery","mi9-decorator"],n);else{var r=typeof exports=="object"?n(require("jquery"),require("mi9-decorator")):n(t.jquery,t["mi9-decorator"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var r,i,s;r=n(1),s=n(5),i=n(3),e.exports={AdDecorator:r,GoogleAdDecorator:s,Ads:i}},function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=n(2),o=n(3),s=n(4).Decorator,i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.LOADED="ad.loaded",t.getName=function(){return"default.ad"},t.defaultConfig={loadedClass:"advert--loaded",adType:"MEDIUM",loc:"TOP.1"},t.prototype.init=function(){return this.$target=r(this.target),this.on(s.READY,function(e){return function(){return e.render()}}(this)),this.ready()},t.prototype.render=function(e){var n;return e==null&&(e={}),n=r.extend({},this.config,e,{callback:function(r){return function(i,s){if(s)return;r.$target.addClass(n.loadedClass),r.emit(t.LOADED,i),typeof r.config.callback=="function"&&r.config.callback(i);if(typeof e.callback=="function")return e.callback(i)}}(this)}),this.clear(),o.decorate(this.$target,n)},t.prototype.clear=function(){return this.$target.removeData("currentAd"),this.$target.empty()},t}(s),e.exports=i},function(t,n){t.exports=e},function(e,t,n){(function(r,i){e.exports=i()})(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";function f(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function c(e){var t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],n=t.functionToCallImmediately,r=n===undefined?null:n,i=t.returnPromise,s=i===undefined?!0:i;return l[e]||(l[e]=[]),function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var u=(0,o.createDefer)();r&&r.apply(undefined,n),l[e].push({params:n,defer:u});if(s)return u.promise}}function h(e,t,n){return function(){return(0,s.deprecate)(e,t),n.apply(undefined,arguments)}}function p(e){return function(t){var n=e.apply(undefined,f(t.params));n&&n.then?n.then(function(e){t.defer.resolve(e)}):t.defer.resolve()}}function O(e){t.render=d=e.render,t.refresh=g=e.refresh,t.refreshAll=y=e.refreshAll,t.clear=b=e.clear,t.getAd=w=e.getAd,t.getAds=E=e.getAds,t.appNexus=v=e.appNexus,t.options=S=function(){e.options.apply(e,arguments),u.options.apply(undefined,arguments)},t.google=m=e.google,t.writeAd=x=h("writeAd","render",d),t.decorate=T=h("decorate","appNexus",v),t.refreshAd=N=h("refreshAd","refresh",g),t.refreshAllAds=C=h("refreshAllAds","refreshAll",y),t.clearAdCallsCache=k=h("clearAdCallsCache","clear",b),t.getAdData=L=h("getAdData","getAd",w),t.getStoredAdCalls=A=h("getStoredAdCalls","getAds",E)}function M(){l.options.forEach(p(S)),l.appNexus.forEach(p(v)),l.google.forEach(p(m)),l.render.forEach(p(d)),l.refresh.forEach(p(g)),l.refreshAll.forEach(p(y)),l.clear.forEach(p(b))}function _(){(0,r.adsLoader)("v2").then(function(e){O({render:e.writeAd,refresh:e.refreshAd,refreshAll:e.refreshAllAds,clear:e.clearAdCallsCache,appNexus:e.decorate,google:e.google,options:e.options,getAd:e.getAdData,getAds:e.getStoredAdCalls}),M()}).catch(function(e){(0,s.error)(e)})}function D(){(0,r.adsLoader)("v3").then(function(e){O({render:e.render,refresh:e.refresh,refreshAll:e.refreshAll,clear:e.clear,appNexus:e.appNexus,google:e.google,options:e.options,getAd:e.getAd,getAds:e.getAds}),M()}).catch(function(e){(0,s.error)(e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.getStoredAdCalls=t.getAdData=t.clearAdCallsCache=t.refreshAllAds=t.refreshAd=t.decorate=t.writeAd=t.options=t.getAds=t.getAd=t.clear=t.refreshAll=t.refresh=t.google=t.appNexus=t.render=undefined;var r=n(1),i=n(2),s=n(3),o=n(5),u=n(4),a=n(6),l={},d=t.render=c("render"),v=t.appNexus=c("appNexus"),m=t.google=c("google"),g=t.refresh=c("refresh"),y=t.refreshAll=c("refreshAll"),b=t.clear=c("clear",{returnPromise:!1}),w=t.getAd=c("getAd",{returnPromise:!1}),E=t.getAds=c("getAds",{returnPromise:!1}),S=t.options=c("options",{returnPromise:!1,functionToCallImmediately:u.options}),x=t.writeAd=h("writeAd","render",d),T=t.decorate=h("decorate","appNexus",v),N=t.refreshAd=h("refreshAd","refresh",g),C=t.refreshAllAds=h("refreshAllAds","refreshAll",y),k=t.clearAdCallsCache=h("clearAdCallsCache","clear",b),L=t.getAdData=h("getAdData","getAd",w),A=t.getStoredAdCalls=h("getStoredAdCalls","getAds",E);(0,a.isAfterSwitchOverDate)(new Date)||(0,i.hasKeyValue)("lib","appnexus")?D():_()},function(e,t,n){"use strict";function r(e){return new Promise(function(t){window.mi9_patch_loader=function(e){e.load().then(function(e){delete window.mi9_patch_loader,t(e)})};var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.src="//share.9cdn.net/share/short_cache/js/ads/mi9-core-ads."+e+".js",n.appendChild(r)})}Object.defineProperty(t,"__esModule",{value:!0}),t.adsLoader=r},function(e,t){"use strict";function n(e,t){return location.search.indexOf(e+"="+t)>=0}Object.defineProperty(t,"__esModule",{value:!0}),t.hasKeyValue=n},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return(i.default.settings.verbosity==="info"||i.default.settings.verbosity==="error")&&console.info('%cDEPRECATION NOTICE: "'+e+'" has been deprecated, please use "'+t+'" instead.',"background: #222; color: #bada55"),n}function u(e){(i.default.settings.verbosity==="info"||i.default.settings.verbosity==="error")&&console.error(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.deprecate=o,t.error=u;var r=n(4),i=s(r)},function(e,t,n){"use strict";function u(e){o=r({},o,e,s)}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};t.options=u;var i=n(2),s=(0,i.hasKeyValue)("ads_debug","true")?{verbosity:"info"}:{},o={verbosity:"info"};t.default={get settings(){return o}}},function(e,t){"use strict";function n(){var e={};return e.promise=new Promise(function(t){e.resolve=t}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.createDefer=n},function(e,t){"use strict";function r(e){return e.getTime()>=n}Object.defineProperty(t,"__esModule",{value:!0}),t.isAfterSwitchOverDate=r;var n=14620248e5}])})},function(e,n){e.exports=t},function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=n(2),o=n(3),i=n(4).Decorator,s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.getName=function(){return"module.google.ad"},t.prototype.init=function(){return o.google(r(this.target),this.config),this.ready()},t}(i),e.exports=s}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("jquery"),require("mi9-decorator"),require("lodash"),require("mi9-utils"));else if(typeof define=="function"&&define.amd)define("mi9-social-sharing",["jquery","mi9-decorator","lodash","mi9-utils"],n);else{var r=typeof exports=="object"?n(require("jquery"),require("mi9-decorator"),require("lodash"),require("mi9-utils")):n(t.jquery,t["mi9-decorator"],t.lodash,t["mi9-utils"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t,n,r){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){n(1),e.exports=n(6)},function(e,t){},,,,,function(e,t,n){var r,i,s,o,u,a=function(e,t){function r(){this.constructor=e}for(var n in t)f.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;r=n(7),i=n(8).Decorator,o=n(9),s=n(22),u=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return a(t,e),t.getName=function(){return"module.share"},t.dependencies({tracking:new t.Dependency("Tracking library module")}),t.prototype.init=function(){return this.moreButton=new s(this.config,this.target,this.tracking),this.initProviderSDKs(),this.ready()},t.prototype.prependProtocolToUrl=function(){if(this.config.url.indexOf("//")!==0)return;return this.config.url=""+location.protocol+this.config.url},t.prototype.updateProviders=function(e){var t,n,r,i,s;i=this.providers,s=[];for(t=0,n=i.length;t<n;t++)r=i[t],s.push(r.updateShareData(e));return s},t.prototype.initProviderSDKs=function(){if(!this.config.url)return;return this.prependProtocolToUrl(),this.providers=[],o.forEach(function(e){return function(t){return e.providers.push(new t(e.config,e.target,e.tracking))}}(this))},t}(i),e.exports=u},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){var r,i,s,o,u,a,f,l,c;r=n(10),s=n(13),o=n(14),u=n(15),f=n(16),c=n(17),l=n(18),i=n(19),a=n(20),e.exports=[r,s,o,u,f,c,l,i,a]},function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=n(7),o=n(11),i=n(12),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.prototype.BUTTON_SELECTOR=".share-module__email",t.prototype.TRACKING_ID="mail_share_intent",t.prototype.updateConfig=function(e){var t,n;return n=encodeURIComponent(e.title),t="Check out this story I found:",this.config=o.extend({},e,{shareUrl:"mailto:?subject="+n+"&body="+t+" "+e.url})},t.prototype.initButton=function(){if(!this.$button)return;return this.updateLink(),this.$button.on("click",function(e){return function(){return e.track(e.TRACKING_ID)}}(this))},t}(i),e.exports=s},function(e,t){e.exports=n},function(e,t,n){var r,i;r=n(7),i=function(){function e(e,t,n){this.$button=r(t).find(this.BUTTON_SELECTOR),this.tracking=n,this.updateConfig(e),this.initButton()}return e.prototype.shareSdkInitScript=function(e,t,n,r){var i,s;i=e.getElementsByTagName(t)[0];if(e.getElementById(n))return;return s=e.createElement(t),s.id=n,s.src=r,i.parentNode.insertBefore(s,i)},e.prototype.track=function(e){return this.tracking.trackClick({linkName:e})},e.prototype.updateConfig=function(){throw new SyntaxError("updateConfig not implemented")},e.prototype.updateLink=function(){return this.$button.attr("href",this.config.shareUrl)},e.prototype.updateShareData=function(e){return this.updateConfig(e),this.updateLink()},e}(),e.exports=i},function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=n(7),o=n(11),i=n(12),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.prototype.BUTTON_SELECTOR=".share-module__gplus",t.prototype.TRACKING_ID="gplus_share_intent",t.prototype.updateConfig=function(e){var t;return t=r.param({url:e.url,hl:"en_GB"}),this.config=o.extend({},e,{shareUrl:"https://plus.google.com/share?"+t})},t.prototype.initButton=function(){if(!this.$button)return;return this.updateLink(),this.$button.on("click",function(e){return function(t){return t.preventDefault(),window.open(e.config.shareUrl,"gplus-share-dialog","width=626,height=500"),e.track(e.TRACKING_ID)}}(this))},t}(i),e.exports=s},function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=n(7),o=n(11),i=n(12),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.prototype.BUTTON_SELECTOR=".share-module__linkedin",t.prototype.TRACKING_ID="linkedin_share_intent",t.prototype.updateConfig=function(e){var t;return t=r.param({url:e.url,mini:!0,title:e.title,summary:e.description}),this.config=o.extend({},e,{shareUrl:"https://www.linkedin.com/shareArticle?"+t})},t.prototype.initButton=function(){if(!this.$button)return;return this.updateLink(),this.$button.on("click",function(e){return function(t){return t.preventDefault(),window.open(e.config.shareUrl,"linkedin-share-dialog","width=626,height=500"),e.track(e.TRACKING_ID)}}(this))},t}(i),e.exports=s},function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=n(7),o=n(11),i=n(12),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.prototype.BUTTON_SELECTOR=".share-module__pinterest",t.prototype.TRACKING_ID="pinterest_share_intent",t.prototype.updateConfig=function(e){var t;return t=r.param({url:e.url,media:e.image,description:e.description}),this.config=o.extend({},e,{shareUrl:"https://www.pinterest.com/pin/create/button/?"+t})},t.prototype.initButton=function(){if(!this.$button)return;return this.updateLink(),this.$button.on("click",function(e){return function(t){return t.preventDefault(),window.open(e.config.shareUrl,"pinterest-share-dialog","width=626,height=500"),e.track(e.TRACKING_ID)}}(this))},t}(i),e.exports=s},function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=n(7),o=n(11),i=n(12),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.prototype.BUTTON_SELECTOR=".share-module__tumblr",t.prototype.TRACKING_ID="tumblr_share_intent",t.prototype.updateConfig=function(e){var t;return t=r.param({posttype:"link",url:e.url,title:e.title}),this.config=o.extend({},e,{shareUrl:"https://www.tumblr.com/widgets/share/tool?"+t})},t.prototype.initButton=function(){if(!this.$button)return;return this.updateLink(),this.$button.on("click",function(e){return function(t){return t.preventDefault(),window.open(e.config.shareUrl,"tumblr-share-dialog","width=626,height=500"),e.track(e.TRACKING_ID)}}(this))},t}(i),e.exports=s},function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;r=n(7),i=n(12),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.prototype.BUTTON_SELECTOR=".share-module__whatsapp",t.prototype.TRACKING_ID="wa_share_intent",t.prototype.updateConfig=function(e){var t;return t="Check out this story I found: "+e.title+" "+e.url,this.config=_.extend({},e,{text:t,encodedText:encodeURIComponent(t)})},t.prototype.updateLink=function(){return this.$button.attr("href","whatsapp://send?text="+this.config.encodedText)},t.prototype.initButton=function(){if(!this.$button)return;return this.updateLink(),this.$button.on("click",function(e){return function(){return e.track(e.TRACKING_ID)}}(this))},t}(i),e.exports=s},function(e,t,n){var r,i,s,o,u,a=function(e,t){function r(){this.constructor=e}for(var n in t)f.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;r=n(7),u=n(11),i=n(12),s="//platform.twitter.com/widgets.js",o=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return a(t,e),t.prototype.BUTTON_SELECTOR=".share-module__twitter",t.prototype.TRACKING_ID="tw_share_intent",t.prototype.TRACKING_COMPLETE="tw_share_complete",t.prototype.twitterInitScript=function(e){var t,n;return n=window.twttr||{},document.getElementById(e)?n:(t=document.createElement("script"),t.id=e,t.src=s,r("head").prepend(t),n._e=[],n.ready=function(e){return n._e.push(e)},n)},t.prototype.initSDK=function(){var e;return e=r.Deferred(),window.twttr?twttr.ready(function(){return e.resolve(twttr)}):(window.twttr=this.twitterInitScript("twitter-wjs"),twttr.ready(function(){return e.resolve(twttr)})),e.promise()},t.prototype.updateConfig=function(e){var t;return t=r.param({text:e.title,url:e.url}),this.config=u.extend({},e,{shareUrl:"http://twitter.com/intent/tweet?"+t})},t.prototype.attachEventsAndMetaToButton=function(){var e;this.updateLink(),this.$button.on("click",function(e){return function(){return e.track(e.TRACKING_ID)}}(this));if(!(typeof window!="undefined"&&window!==null?(e=window.twttr)!=null?e.events:void 0:void 0))return;return window.twttr.events.bind("tweet",function(e){return function(t){if(t.target===e.$button.get())return e.track(e.TRACKING_COMPLETE)}}(this))},t.prototype.initButton=function(){if(!this.$button)return;return this.initSDK().then(function(e){return function(){return e.attachEventsAndMetaToButton()}}(this))},t}(i),e.exports=o},function(e,t,n){var r,i,s,o,u,a,f=function(e,t){function r(){this.constructor=e}for(var n in t)l.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},l={}.hasOwnProperty,c=[].slice;r=n(7),a=n(11),i=n(12),s="//connect.facebook.net/en_US/sdk.js",u='meta[property="fb:app_id"]',o=function(e){function t(){var e;e=1<=arguments.length?c.call(arguments,0):[],this.facebookAppId=r(u).attr("content"),this.fbInitCalled=!1,t.__super__.constructor.apply(this,e)}return f(t,e),t.prototype.BUTTON_SELECTOR=".share-module__facebook",t.prototype.TRACKING_ID="fb_share_intent",t.prototype.TRACKING_COMPLETE="fb_share_complete",t.prototype.TRACKING_CANCELLED="fb_share_cancelled",t.prototype.clearFbInterval=function(e){return clearInterval(e)},t.prototype.initSDK=function(){var e,t;return e=r.Deferred(),this.facebookAppId?window.FB?(window.FB.appId=this.facebookAppId,e.resolve(facebook)):(!window.FB&&this.fbInitCalled?t=setInterval(function(n){return function(){if(window.FB)return clearFbInterval(t),window.FB.appId=n.facebookAppId,e.resolve(window.FB)}}(this),1e3):(window.fbAsyncInit=function(t){return function(){return FB.init({appId:t.facebookAppId,xfbml:!0,version:"v2.3"}),window.FB.appId=t.facebookAppId,e.resolve(window.FB)}}(this),this.shareSdkInitScript(document,"script","facebook-jssdk",s),this.fbInitCalled=!0),e.promise()):e.reject()},t.prototype.updateConfig=function(e){var t;return t=r.param({app_id:this.facebookAppId,display:"popup",href:e.url,redirect_uri:e.url}),this.config=a.extend({},e,{shareUrl:"https://facebook.com/dialog/share?"+t})},t.prototype.attachEventsAndMetaToButton=function(){return this.updateLink(),this.$button.on("click",function(e){return function(t){var n;return t.preventDefault(),e.track(e.TRACKING_ID),n=function(t){return t?e.track(e.TRACKING_COMPLETE):e.track(e.TRACKING_CANCELLED)},window.FB.ui({method:"share",href:e.config.url},n)}}(this))},t.prototype.initButton=function(){if(!this.$button)return;return this.initSDK().then(function(e){return function(){return e.attachEventsAndMetaToButton()}}(this))},t}(i),e.exports=o},function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=n(7),i=n(12),o=n(21),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.prototype.BUTTON_SELECTOR=".share-module__sms",t.prototype.TRACKING_ID="sms_share_intent",t.prototype.updateConfig=function(e){var t;return t="Check out this story I found: "+e.title+" "+e.url,this.config=_.extend({},e,{text:t,encodedText:encodeURIComponent(t)})},t.prototype.updateLink=function(){return o.isiOS()?this.$button.attr("href","sms:&body="+this.config.text):this.$button.attr("href","sms:?body="+this.config.text)},t.prototype.initButton=function(){if(!this.$button)return;return this.updateLink(),this.$button.on("click",function(e){return function(){return e.track(e.TRACKING_ID)}}(this))},t}(i),e.exports=s},function(e,t){e.exports=r},function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;r=n(7),i=n(12),s=function(e){function t(e,t,n){this.tracking=n,this.$target=r(t),this.$moreButton=this.$target.find(".share-module__more"),this.setUpToggle()}return o(t,e),t.prototype.TRACKING_OPEN="share_more_open",t.prototype.TRACKING_CLOSED="share_more_closed",t.prototype.setUpToggle=function(){if(!this.$moreButton)return;return this.$moreButton.on("click",function(e){return function(){return e.$target.toggleClass("share--expanded"),e.trackMoreButton()}}(this))},t.prototype.trackMoreButton=function(){var e;return e=this.$target.hasClass("share--expanded"),e?this.track(this.TRACKING_OPEN):this.track(this.TRACKING_CLOSED)},t}(i),e.exports=s}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("mi9-event-target"));else if(typeof define=="function"&&define.amd)define("mi9-history",["mi9-event-target"],n);else{var r=typeof exports=="object"?n(require("mi9-event-target")):n(t["mi9-event-target"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;r=n(2),s=function(e,t){var n;return!e&&typeof Object.getPrototypeOf=="function"&&(n=Object.getPrototypeOf(t),e=n.constructor),e||Object}(i,history),i=function(e){function t(e){e==null&&(e=window.history),t.__super__.constructor.call(this,window);if(!(e instanceof s))throw TypeError("history must be instance of History");this.history=e,this.hasPushState=typeof this.history.pushState=="function",Object.defineProperties(this,{state:{enumerable:!0,get:function(e){return function(){if(e.hasPushState)return e.history.state}}(this),set:function(e){return function(t){if(e.hasPushState)return e.replace(t)}}(this)},length:{enumerable:!0,get:function(e){return function(){return e.history.length}}(this),set:function(e){return function(){return e.history.length}}(this)},url:{enumerable:!0,get:function(){var e,t;return e=window.document.createElement("a"),e.href=window.location.href,t=e.pathname,e=null,t},set:function(){throw new SyntaxError("url is readonly")}}}),this.on("popstate",function(e){return function(n){return e.emit(t.POPPED,n.state)}}(this))}return o(t,e),t.CHANGED="history.state-changed",t.POPPED="history.state-popped",t.prototype.push=function(e,n){return this.hasPushState?(history.pushState(n,null,e),this.emit(t.CHANGED,n),!0):!1},t.prototype.replace=function(e){return this.hasPushState?(history.replaceState(e),this.emit(t.CHANGED,e),!0):!1},t.prototype.back=function(){return this.history.back()},t.prototype.forward=function(){return this.history.forward()},t.prototype.go=function(){var e;return(e=this.history).go.apply(e,arguments)},t}(r),e.exports=i},function(t,n){t.exports=e}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("jquery"),require("mi9-decorator"),require("mi9-video-decorator"),require("mi9-utils"),require("mi9-ads-common"),require("mi9-gallery-common"),require("lodash"),require("hammerjs"),require("mi9-event-target"),require("mi9-image-resizer"),require("mi9-ads"),require("twemoji"),require("mi9-social-sharing"),require("implements"),require("mi9-history"),require("mi9-module-common"));else if(typeof define=="function"&&define.amd)define("mi9-gallery",["jquery","mi9-decorator","mi9-video-decorator","mi9-utils","mi9-ads-common","mi9-gallery-common","lodash","hammerjs","mi9-event-target","mi9-image-resizer","mi9-ads","twemoji","mi9-social-sharing","implements","mi9-history","mi9-module-common"],n);else{var r=typeof exports=="object"?n(require("jquery"),require("mi9-decorator"),require("mi9-video-decorator"),require("mi9-utils"),require("mi9-ads-common"),require("mi9-gallery-common"),require("lodash"),require("hammerjs"),require("mi9-event-target"),require("mi9-image-resizer"),require("mi9-ads"),require("twemoji"),require("mi9-social-sharing"),require("implements"),require("mi9-history"),require("mi9-module-common")):n(t.jquery,t["mi9-decorator"],t["mi9-video-decorator"],t["mi9-utils"],t["mi9-ads-common"],t["mi9-gallery-common"],t.lodash,t.hammerjs,t["mi9-event-target"],t["mi9-image-resizer"],t["mi9-ads"],t.twemoji,t["mi9-social-sharing"],t["implements"],t["mi9-history"],t["mi9-module-common"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){n(1),e.exports={SlidesDecorator:n(13),HeadlineDecorator:n(28),ThumbnailsDecorator:n(29),ArrowsDecorator:n(31),UtilitiesDecorator:n(32),PageDecorator:n(34),ShareDecorator:n(35),NextGalleryDecorator:n(37),AdDecorator:n(26),ManagerDecorator:n(38),DataDecorator:n(40),LayoutDecorator:n(48),History:n(43),AdsInjector:n(47),GalleryTrackingMeta:n(45)}},function(e,t){},,,,,,,,,,,,function(e,t,n){var r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y=function(e,t){function r(){this.constructor=e}for(var n in t)b.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},b={}.hasOwnProperty;r=n(14),g=n(15),s=g.Decorator,o=g.DecoratorFactory,m=n(16),v=n(18),i=n(19),a=n(20),p=n(21),l=n(25),u=n(26),f=n(23),c="next",h="previous",d=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}var t;return y(n,e),n.EVENTS={NEXT:c,PREVIOUS:h,CURRENT_SLIDE_IS_AD:"currentSlideIsAd"},n.DIRECTION={NONE:"none",NEXT:c,PREVIOUS:h},t=function(e,t){var n,r;return n=t.getNextSlides({all:!0}),r=t.getPrevSlides({all:!0}),e.swipeNextEnabled=!!n.length,e.swipePrevEnabled=!!r.length},n.getName=function(){return"gallery.slides"},n.defaultConfig={adType:"MEDIUM",adLocation:"MOBILE",adVariations:1},n.prototype.templates={ad:a.templates.ad,slideAd:a.templates.slideAd,slideImage:a.templates.slideImage,slideVideo:a.templates.slideVideo},n.prototype.init=function(){var e;return this.currentDirection=n.DIRECTION.NONE,e={cssProps:{userSelect:"initial"}},function(t){return function(){var n;return n=new f.Manager(t.target,e),n.add(new f.Tap({threshold:2,pointers:1})),n.on("tap",function(e){var n,r,i,s,o;r=(s=e.srcEvent)!=null?s.srcElement:void 0;if(!t.$target.has(r).length)return;if(t.manager.slide.type==="video"){t.videoPlayerDecorator?t.videoPlayerDecorator.playVideo(t.manager.slide.urn):t.initVideoDecorator(t.manager.slide.urn,!0);return}if(!v.isDesktop())return;i=(o=e.pointers[0])!=null?o.offsetX:void 0;if(!i)return;return i>r.clientWidth/2?n=c:n=h,t.emit(n)})}}(this)(),this.adIndex=null,this.videoPlayerContainer=document.getElementById("gallery__video-player"),this.onVideoResize(),this.videoPlayerDecorator=null,this.$target=r(this.target),this.$adElement=null,this.imageResizer=new l,this.on(s.MANAGER_AVAILABLE,function(e){return function(){return e.slider=new p(e.target,{speed:200,nextSlide:function(){var t,n;return n=e.manager.getNextSlides({all:!0,ads:!0}),((t=n[0])!=null?t.type:void 0)==="ad"?(e.$adElement=r(e.getHtmlBySlide(n)),e.$adElement):e.getDecoratedSlide(e.getHtmlBySlide(n))},prevSlide:function(){var t,n;return n=e.manager.getPrevSlides({all:!0,ads:!0}),((t=n[0])!=null?t.type:void 0)==="ad"?(e.$adElement=r(e.getHtmlBySlide(n)),e.$adElement):e.getDecoratedSlide(e.getHtmlBySlide(n))},currentSlide:function(){return e.getDecoratedSlide(e.getHtmlBySlide([e.manager.slide]))},moveNext:function(){return e.currentDirection=n.DIRECTION.NEXT,e.emit(n.EVENTS.NEXT)},movePrev:function(){return e.currentDirection=n.DIRECTION.PREVIOUS,e.emit(n.EVENTS.PREVIOUS)},afterSliding:function(){var r;return e.handleVideoSlide(e.manager.slide),e.parseImages(),e.manager.slide.type==="ad"&&(e.emit(n.EVENTS.CURRENT_SLIDE_IS_AD,{direction:e.currentDirection}),((r=e.$adElement)!=null?!r.data("module-decorated"):!void 0)?e.decorateSlide(e.$adElement):e.emit(u.LOADED)),e.manager.enableSlide(),t(e.slider,e.manager)},beforeSliding:function(){return e.manager.isDisabled()?!1:(e.slider.show(),e.hideVideo(),e.videoPlayerDecorator&&e.videoPlayerDecorator.stopVideo(),e.manager.disableSlide(),e.slider.swipeNextEnabled=!1,e.slider.swipePrevEnabled=!1,!0)}}),t(e.slider,e.manager),e.parseImages(),e.manager.on("reset",function(){return e.slider.jump()}),e.manager.on("change",e.onSlideChange.bind(e)),v.onResize(function(){return e.slider.resize(),e.onVideoResize()}),e.handleVideoSlide(e.manager.slide)}}(this)),this.ready()},n.prototype.parseImages=function(){return this.imageResizer?this.imageResizer.parseImages({scope:this.target,useParentWidth:!0}):r("img",this.target).each(function(){var e;e=r(this).data().srcSet;if(!e)return;return this.setAttribute("src",e[0].src)})},n.prototype.onSlideChange=function(e){var t,n;return t=(n=e.detail)!=null?n.data:void 0,Math.abs(t.fromDataIndex-this.manager.dataIndex)>1?this.slider.jump():t.direction==="next"?this.slider.next():this.slider.prev()},n.prototype.handleVideoSlide=function(e){if(e.type!=="video")return;if(this.manager.isInitialSlide)return this.initVideoDecorator(e.urn,this.manager.isInitialSlide)},n.prototype.initVideoDecorator=function(e,t){t==null&&(t=!0);if(this.videoPlayerDecorator)return;return this.videoPlayerDecorator=new m(this.videoPlayerContainer,{video:e,categoryName:"ausydney",autoplay:t}),this.videoPlayerDecorator.on(m.events.video.loaded,function(e){return function(){return e.slider.hide(),e.showVideo.call(e)}}(this))},n.prototype.convertSlideToHTML=function(e){var t;switch(e.type){case"image":t=this.templates.slideImage;break;case"video":t=this.templates.slideVideo;break;case"ad":t=this.adTemplate.bind(this)}return t({media:e})},n.prototype.adTemplate=function(){var e;return e=this.templates.ad({adType:this.config.adType,location:this.nextAdLocation(),moduleDecorator:"gallery.ad",rerender:!1}),this.templates.slideAd({adContent:e})},n.prototype.nextAdLocation=function(){var e;return this.adIndex=this.adIndex===null?0:(this.adIndex+1)%this.config.adVariations,e=this.adIndex===0?"":"."+this.adIndex,""+this.config.adLocation+e},n.prototype.getHtmlBySlide=function(e){var t;return t="",Array.isArray(e)?e.map(function(e){return function(n){return t+=e.convertSlideToHTML(n)}}(this)):typeof e=="object"&&(t+=this.convertSlideToHTML(e)),t},n.prototype.getDecoratedSlide=function(e){return this.decorateSlide(r(e))},n.prototype.onVideoResize=function(){if(this.videoPlayerContainer!==null)return this.videoPlayerContainer.style.width=this.target.offsetWidth+"px"},n.prototype.decorateSlide=function(e){return e.length&&(o["default"].build(e[0]),e.data("module-decorated",!0)),e},n.prototype.showVideo=function(){return this.videoPlayerContainer.style.opacity=1,this.videoPlayerContainer.style["z-index"]=1},n.prototype.hideVideo=function(){return this.videoPlayerContainer.style.opacity=0,this.videoPlayerContainer.style["z-index"]=0},n}(s),e.exports=d},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){var r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=n(17),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return s(t,e),t.prototype.resizeElements=function(){var e,t,n,r,i,s,o;return o=16/9,i=this.$target.width(),s=Math.round(i/o),r=this.$target.parent().height(),r&&s>r&&(s=r,i=Math.round(s/9*16)),this.$target.css({width:i,height:s}),e=this.$target.find(".video-block__image"),t=e.width()/e.height(),t<o&&(n=(this.$target.height()-e.height())/2,e.css("margin-top",n+"px")),this.resizeVideo(),this.resizeWidget()},t}(i),e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t,n){var r,i,s,o,u,a,f,l,c,h,p;c=n(22),r=n(14),u=n(23),o=n(24),l=n(18),i="left",s="right",a=30,p=function(){var e;return e=function(){var e,t,n;n=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,e=0;while(e<n.length){if(n[e]in t.style)return!0;e+=1}},e()?!0:!1},h={speed:400,moveNext:function(){},movePrev:function(){},currentSlide:function(){},nextSlide:function(){},prevSlide:function(){},afterSliding:function(){},beforeSliding:function(){}},f=function(){function e(e,t){this.target=e,this.settings=r.extend(!0,{},h,t),this.index=0,this.length=3,this.useCss=p(),this.$target=r(this.target),this.wrapper=this.$target.children(),this.swipePrevEnabled=!0,this.swipeNextEnabled=!0,this.sliding=!1,this.resize(),this.setupHammer(),this.setupKeyBoardBinding(),this.setupSlides()}return e.prototype.updateViewPoint=function(e,t){return this.setWrapperOffset(-1*this.width*this.index,e,t)},e.prototype.setupSlides=function(){var e,t;return t=this.settings.prevSlide(),e=this.settings.nextSlide(),t.width(this.width).prependTo(this.wrapper),e.width(this.width).appendTo(this.wrapper),t.length!==0&&(this.index=1),this.updateViewPoint(!1),this.layoutImages()},e.prototype.setupKeyBoardBinding=function(){return o.on(window.document,"keyup",function(e){return function(t){if(t.keyCode===37)return e.settings.movePrev();if(t.keyCode===39)return e.settings.moveNext()}}(this))},e.prototype.setupHammer=function(){var e;return this.target.ondragstart=function(){return!1},e=new u.Manager(this.target),e.add(new u.Pan({threshold:0,pointers:1,direction:u.DIRECTION_HORIZONTAL})),e.on("panstart panmove panend",this.handleHammer.bind(this))},e.prototype.handleHammer=function(e){var t,n,r;e.preventDefault();switch(e.type){case"panmove":r=-this.width*this.index,n=e.deltaX,this.setWrapperOffset(n+r,!1,!1);break;case"panend":t=e.deltaX<0&&this.swipeNextEnabled===!1,t=t||e.deltaX>0&&this.swipePrevEnabled===!1,t=t||e.deltaX<0&&this.index===this.length-1,t=t||e.deltaX>0&&this.index===0,t=t||Math.abs(e.deltaX)<a;if(t)return this.updateViewPoint(!0,!1);e.deltaX<0?this.settings.moveNext():this.settings.movePrev()}},e.prototype.next=function(){if(this.settings.beforeSliding()===!1)return;return this.index=this.index+1,this.direction=s,this.updateViewPoint(!0)},e.prototype.prev=function(){if(this.settings.beforeSliding()===!1)return;return this.index=this.index-1,this.direction=i,this.updateViewPoint(!0)},e.prototype.afterSlide=function(){var e,t,n;if(this.sliding===!1)return;return this.sliding=!1,t=null,this.direction===s?(t=this.settings.nextSlide().width(this.width).appendTo(this.wrapper),n=this.slideLength(),n>this.length&&this.wrapper.children(":lt(-"+this.length+")").remove(),!t.length&&this.index>1&&this.wrapper.children(":first-child").remove(),this.index>1&&(this.index=1)):this.direction===i&&(e=this.settings.prevSlide().width(this.width).prependTo(this.wrapper),n=this.slideLength(),n>this.length&&this.wrapper.children(":gt("+(this.length-1)+")").remove(),e.length&&this.index<1&&(this.index=1),this.index||this.wrapper.children(":last-child").remove()),this.resize(),this.layoutImages(),this.settings.afterSliding()},e.prototype.setWrapperOffset=function(e,t,n){var r;return t==null&&(t=!1),n==null&&(n=!0),t&&(this.sliding=!0),r=c.throttle(function(e){return function(){if(n)return e.afterSlide()}}(this),this.settings.speed),this.useCss?(t?(this.CSSTransitionCleared=!1,this.wrapper.css("-webkit-transition-duration",this.settings.speed+"ms"),this.wrapper.css("-moz-transition-duration",this.settings.speed+"ms"),this.wrapper.css("-o-transition-duration",this.settings.speed+"ms"),this.wrapper.css("transition-duration",this.settings.speed+"ms"),this.wrapper.one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",r)):t===!1&&this.CSSTransitionCleared===!1&&(this.CSSTransitionCleared=!0,this.wrapper.css("-webkit-transition-duration","0ms"),this.wrapper.css("-moz-transition-duration","0ms"),this.wrapper.css("-o-transition-duration","0ms"),this.wrapper.css("transition-duration","0ms")),this.wrapper.css("transform","translate3d("+e+"px,0,0)")):t?this.wrapper.animate({left:e+"px"},this.settings.speed,this.afterSlide.bind(this)):this.wrapper.css("left",e+"px")},e.prototype.resize=function(){return this.width=this.$target.width(),this.height=this.$target.height(),this.aspectRatio=this.width/this.height,this.wrapper.width(this.width*this.length),this.wrapper.children().width(this.width),this.updateViewPoint(!1)},e.prototype.slideLength=function(){return this.wrapper.children().length},e.prototype.show=function(){return this.$target.css("opacity",1).css("z-index",1)},e.prototype.hide=function(){return this.$target.css("opacity",0).css("z-index",0)},e.prototype.disableSwipePrev=function(){return this.swipePrevEnabled=!1},e.prototype.disableSwipeNext=function(){return this.swipeNextEnabled=!1},e.prototype.enableSwipePrev=function(){return this.swipePrevEnabled=!0},e.prototype.enableSwipeNext=function(){return this.swipeNextEnabled=!0},e.prototype.jump=function(){var e,t,n;return this.settings.beforeSliding(),this.wrapper.html(""),n=this.settings.prevSlide(),e=this.settings.currentSlide(),t=this.settings.nextSlide(),this.index=0,n.length&&(n.width(this.width),this.wrapper.append(n),this.index=1),e.width(this.width),this.wrapper.append(e),t.length&&(t.width(this.width),this.wrapper.append(t)),this.layoutImages(),this.updateViewPoint(!1),this.settings.afterSliding()},e.prototype.layoutImages=function(){return this.wrapper.children().each(this.layoutImage.bind(this))},e.prototype.layoutImage=function(e,t){var n;return n=r(t),n.find("img").data("aspect")>this.aspectRatio?(n.addClass("slides_image-landscape"),n.removeClass("slides_image-portrait")):(n.removeClass("slides_image-landscape"),n.addClass("slides_image-portrait"))},e}(),e.exports=f},function(e,t){e.exports=o},function(e,t){e.exports=u},function(e,t){e.exports=a},function(e,t){e.exports=f},function(e,t,n){var r,i,s,o=function(e,t){return function(){return e.apply(t,arguments)}},u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;s=n(22),r=n(27).AdDecorator,i=function(e){function t(){return this.render=o(this.render,this),t.__super__.constructor.apply(this,arguments)}return u(t,e),t.getName=function(){return"gallery.ad"},t.defaultConfig={rerender:!0,throttle:!0,timeout:3e3},t.prototype.init=function(){t.__super__.init.apply(this,arguments);if(!this.config.rerender)return;return this.throttleRender=s.throttle(this.render,this.config.timeout,{trailing:!1}),this.on(t.MANAGER_AVAILABLE,function(e){return function(){return e.manager.on("change",function(){return e.throttleRender()})}}(this)),this.on(r.LOADED,function(e){return function(){return e.isLoading=!1}}(this))},t.prototype.render=function(){if(this.isLoading)return;return this.isLoading=!0,t.__super__.render.call(this)},t}(r),e.exports=i},function(e,t){e.exports=l},function(e,t,n){var r,i,s,o,u,a,f,l,c=function(e,t){function r(){this.constructor=e}for(var n in t)h.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},h={}.hasOwnProperty;r=n(14),u=n(23),s=n(15).Decorator,o=n(20),l=n(18),f="opened",i="closed",a=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return c(t,e),t.getName=function(){return"gallery.headline"},t.defaultConfig={titleSuffix:""},t.prototype.templates={headline:o.templates.headline},t.prototype.init=function(){return this.on(s.MANAGER_AVAILABLE,function(e){return function(t){return e.manager.on("change",function(t){return e.handleSlideChange(t)})}}(this)),this.setupHammer(),this.setupHeadlineListener(),this.ready()},t.prototype.setupHammer=function(){var e,t;return t={cssProps:{userSelect:"initial"}},e=new u.Manager(this.target,t),e.add(new u.Pan({threshold:0,pointers:1,direction:u.DIRECTION_HORIZONTAL})),e.add(new u.Tap({threshold:2,pointers:1})),e.on("panstart panmove panend tap",this.handleHammer.bind(this))},t.prototype.handleHammer=function(e){return this.dismissOverlay(e)},t.prototype.dismissOverlay=function(e){if(this.target.getAttribute("data-display")==="title")return this.target.setAttribute("data-display",""),l.addClass(this.target,i)},t.prototype.setupHeadlineListener=function(){return r(this.target).click("h1",this.toggleHeadline.bind(this))},t.prototype.toggleHeadline=function(){return l.hasClass(this.target,i)?(this.closeHeadline(),l.removeClass(this.target,i)):l.hasClass(this.target,f)?this.closeHeadline():this.openHeadline()},t.prototype.openHeadline=function(){return l.addClass(this.target,f)},t.prototype.closeHeadline=function(){return l.removeClass(this.target,f)},t.prototype.isMediaSlide=function(e){return e?e.type!=="ad":!1},t.prototype.handleSlideChange=function(e){var t,n,r;if(e.detail.data.fromGalleryIndex==null)return;return n="",r=this.manager.slide,t=this.manager.gallery,this.isMediaSlide(r)&&(n=this.templates.headline({headline:t.headline,meta:{}}),document.title=t.headline,this.config.titleSuffix&&(document.title+=this.config.titleSuffix)),this.target.innerHTML=n,this.closeHeadline()},t}(s),e.exports=a},function(e,t,n){var r,i,s,o,u,a,f,l,c,h,p=function(e,t){function r(){this.constructor=e}for(var n in t)d.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},d={}.hasOwnProperty;r=n(14),i=n(15).Decorator,s=n(24),o=n(20),u=n(25),f=n(30),h=n(18),l=function(e){return this.emit("thumbnail-enter",{$thumbnail:this.$activeThumb,originalEvent:e})},c=function(e){return this.emit("thumbnail-leave",{$thumbnail:this.$activeThumb,originalEvent:e})},a=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return p(t,e),t.getName=function(){return"gallery.thumbnails"},t.dependencies({tracking:new t.Dependency("Tracking Module")}),t.defaultConfig={getAllThumbnails:!1},t.prototype.templates={thumbnails:o.templates.thumbnails},t.prototype.init=function(){if(!h.isDesktop())return;return this.$target=r(this.target),this.$magnifyWrapper=r(this.config.magnify),this.imageResizer=new u,this.on(i.MANAGER_AVAILABLE,function(e){return function(t){return e.manager.on("change update",function(t){return e.updateThumbnails(t)}),e.updateThumbnails(t)}}(this)),this.ready()},t.prototype.onClick=function(e){var t,n,r;return n=e.currentTarget,n.dataset?(t=n.dataset.index,r=n.dataset.slideIndex):(t=n.getAttribute("data-index"),r=n.getAttribute("data-slide-index")),t=parseInt(t,10),t===t&&t&&(this.manager.seekTo(t),this.tracking.trackClick({linkName:"thumbnail_click_index_"+r})),e.preventDefault(),!1},t.prototype.renderThumbnails=function(e){this.clearThumbnails(),this.target.innerHTML=this.templates.thumbnails({slides:e,index:this.manager.dataIndex,slideIndex:this.manager.mediaIndex}),s.on(this.target.childNodes,"click",function(e){return function(t){return e.onClick(t)}}(this));if(this.imageResizer)return this.imageResizer.parseImages({scope:this.target,useParentWidth:!0})},t.prototype.clearThumbnails=function(){return s.off(this.target.childNodes,"click"),this.target.innerHTML=""},t.prototype.updateThumbnails=function(e){var t,n,r;if(!this.manager.gallery.portrait)return this.clearThumbnails();this.$activeThumb&&(this.$activeThumb.off("mouseenter"),this.$activeThumb.off("mouseleave")),r=this.manager.getNextSlides({length:5,ads:!1,all:this.config.getAllThumbnails}),r.unshift(this.manager.slide),this.renderThumbnails(r);if(this.$magnifyWrapper.length)return this.$activeThumb=this.$target.find(".thumbnail__item").eq(0),this.$activeThumb.on("mouseenter",function(e){return function(t){return l.call(e,t)}}(this)),this.$activeThumb.on("mouseleave",function(e){return function(t){return c.call(e,t)}}(this)),n=this.manager.slide.urlSet,t=n[n.length-1].src,f.init({src:t,thumbnail:this.$activeThumb,magnification:this.config.magnification,magnifyWrapper:this.$magnifyWrapper,magnifyWrapperActiveClass:this.config.magnifyActiveClass})},t}(i),e.exports=a},function(e,t,n){var r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A;r=n(14),a=n(20),h={magnification:2},u=null,o=null,s=null,i=null,g=null,k=null,y=null,N=null,d=!1,A={magnifyLens:a.templates.magnifyLens,magnify:a.templates.magnify},v=function(e){return L(),e=r.extend({},h,e),u=e.thumbnail,u.addClass("magnify"),o=e.magnifyWrapper,y=e.magnifyWrapperActiveClass,g=e.magnification,k=e.src,l(),c(),m()},L=function(){return d=!1,u&&(u.off("mouseenter",S),u.off("mouseleave",x),u.off("mousemove",T)),i!=null&&i.remove(),s!=null&&s.remove(),N={lens:{width:0,height:0,bounds:{left:0,top:0},position:{left:0,top:0}},thumbnail:{width:0,height:0},magnify:{width:0,height:0,bounds:{left:0,top:0},position:{left:0,top:0}},wrapper:{aspect:0,width:0,height:0}}},m=function(){return u.on("mouseenter",S),u.on("mouseleave",x),u.on("mousemove",T)},S=function(){return i.addClass("magnify__lens--active"),s.addClass("magnify__large--active"),o.addClass(y),C()},x=function(){return i.removeClass("magnify__lens--active"),s.removeClass("magnify__large--active"),o.removeClass(y)},T=function(e){return b(p(e))},E=function(){return d=!0,C(),s.removeClass("magnify__large--loading")},p=function(e){return{x:e.clientX-u.offset().left,y:e.clientY-u.offset().top}},l=function(){return i=r(A.magnifyLens()),u.append(i)},C=function(){return N.thumbnail.width=u.width(),N.thumbnail.height=u.height(),N.thumbnail.aspect=N.thumbnail.width/N.thumbnail.height,N.wrapper.width=o.width(),N.wrapper.height=o.height(),N.wrapper.aspect=N.wrapper.width/N.wrapper.height,N.lens.width=Math.sqrt(N.thumbnail.width*N.thumbnail.height/g*N.wrapper.aspect),N.lens.height=N.lens.width/N.wrapper.aspect,N.lens.width>N.thumbnail.width?(N.lens.width=N.thumbnail.width,N.lens.height=N.lens.width/N.wrapper.aspect):N.lens.height>N.thumbnail.height&&(N.lens.height=N.thumbnail.height,N.lens.width=N.lens.height*N.wrapper.aspect),N.lens.bounds={left:N.thumbnail.width-N.lens.width,top:N.thumbnail.height-N.lens.height},i.css({width:Math.floor(N.lens.width),height:Math.floor(N.lens.height)}),N.magnify.width=N.wrapper.width*N.thumbnail.width/N.lens.width,s.width(Math.floor(N.magnify.width)),N.magnify.height=s.height(),N.magnify.bounds={left:N.magnify.width-N.wrapper.width,top:N.magnify.height-N.wrapper.height}},b=function(e){return N.lens.position={left:f(e.x-N.lens.width/2,0,N.lens.bounds.left),top:f(e.y-N.lens.height/2,0,N.lens.bounds.top)},i.css({left:Math.floor(N.lens.position.left),top:Math.floor(N.lens.position.top)}),w()},w=function(){if(!d)return;return N.magnify.position={left:N.lens.position.left?-1*N.magnify.bounds.left*N.lens.position.left/N.lens.bounds.left:0,top:N.lens.position.top?-1*N.magnify.bounds.top*N.lens.position.top/N.lens.bounds.top:0},s.css({left:Math.floor(N.magnify.position.left),top:Math.floor(N.magnify.position.top)})},f=function(e,t,n){return Math.max(t,Math.min(n,e))},c=function(){return s=r(A.magnify()),s.on("load",E),o.append(s),s.attr("src",k)},e.exports={templates:A,init:v}},function(e,t,n){var r,i,s,o,u=function(e,t){return function(){return e.apply(t,arguments)}},a=function(e,t){function r(){this.constructor=e}for(var n in t)f.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;i=n(15).Decorator,o=n(18),s=n(20),r=function(e){function t(){return this.handleNextArrowClick=u(this.handleNextArrowClick,this),this.handlePrevArrowClick=u(this.handlePrevArrowClick,this),t.__super__.constructor.apply(this,arguments)}return a(t,e),t.getName=function(){return"gallery.arrows"},t.dependencies({tracking:new t.Dependency("Tracking Module")}),t.prototype.init=function(){return this.prevArrow=this.target.firstChild,this.nextArrow=this.target.lastChild,this.alpha=!1,this.omega=!1,this.on(i.MANAGER_AVAILABLE,function(e){return function(){return e.manager.on("disable-slide-next",e.disableNext.bind(e)),e.manager.on("disable-slide-prev",e.disablePrev.bind(e)),e.manager.on("enable-slide-next",function(){if(e.omega===!1)return e.enableNext()}),e.manager.on("enable-slide-prev",function(){if(e.alpha===!1)return e.enablePrev()}),e.manager.on("change update",e.checkSiblingAvailability.bind(e)),e.checkSiblingAvailability(),e.alpha===!0?e.disablePrev():e.enablePrev(),e.omega===!0?e.disableNext():e.enableNext()}}(this)),this.registerPrevArrowClickEvent(),this.registerNextArrowClickEvent(),this.ready()},t.prototype.handlePrevArrowClick=function(e){return typeof e.preventDefault=="function"?e.preventDefault():e.returnValue=!1,this.handleClick("previous")},t.prototype.handleNextArrowClick=function(e){return typeof e.preventDefault=="function"?e.preventDefault():e.returnValue=!1,this.handleClick("next")},t.prototype.registerPrevArrowClickEvent=function(){return this.prevArrow.addEventListener("click",this.handlePrevArrowClick)},t.prototype.registerNextArrowClickEvent=function(){return this.nextArrow.addEventListener("click",this.handleNextArrowClick)},t.prototype.nextUrl=function(){var e,t,n;return n=this.manager.mediaIndex,e=this.manager.gallery,t=this.manager.getNextGallery(),s.directionalLink.nextUrl(n,e,t)},t.prototype.previousUrl=function(){var e,t,n;return n=this.manager.mediaIndex,e=this.manager.gallery,t=this.manager.getPrevGallery(),s.directionalLink.previousUrl(n,e,t)},t.prototype.disableNext=function(){return o.addClass(this.nextArrow,"disabled"),this.nextArrow.href=this.nextUrl()},t.prototype.disablePrev=function(){return o.addClass(this.prevArrow,"disabled"),this.prevArrow.href=this.previousUrl()},t.prototype.enableNext=function(){if(this.omega===!0)return;return o.removeClass(this.nextArrow,"disabled"),this.nextArrow.href=this.nextUrl()},t.prototype.enablePrev=function(){if(this.alpha===!0)return;return o.removeClass(this.prevArrow,"disabled"),this.prevArrow.href=this.previousUrl()},t.prototype.handleClick=function(e){this.emit(e);if(e==="next")return this.disableNext();if(e==="previous")return this.disablePrev()},t.prototype.checkSiblingAvailability=function(){return this.manager.getPrevSlides({all:!0}).length===0?this.alpha=!0:this.alpha=!1,this.manager.getNextSlides({all:!0}).length===0?this.omega=!0:this.omega=!1},t}(i),e.exports=r},function(e,t,n){var r,i,s,o,u,a=function(e,t){function r(){this.constructor=e}for(var n in t)f.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;r=n(14),i=n(15).Decorator,s=n(20),u=n(33),o=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return a(t,e),t.getName=function(){return"gallery.utilities"},t.prototype.templates={utilities:s.templates.utilities},t.prototype.init=function(){return this.$target=r(this.target),this.on(i.MANAGER_AVAILABLE,function(e){return function(t){return e.manager.on("change",function(t){return e.handleSlideChange(t)}),u.parse(e.target),e.parseCaption(),e.initCaption(),e.checkCaptionFormat()}}(this)),this.ready()},t.prototype.handleSlideChange=function(e){var t,n;return t="",n=this.manager.slide,(n!=null?n.type:void 0)!=="ad"&&(t=this.templates.utilities({media:this.manager.slide,current:this.manager.gallery,partials:{gallery:s.templates}})),this.target.innerHTML=t,u.parse(this.target),this.parseCaption(),this.checkCaptionFormat(),this.initCaption()},t.prototype.removeEmptyTagsRecursively=function(e){if(e.children().length)return e.children().each(function(e){return function(t,n){return e.removeEmptyTagsRecursively(r(n))}}(this)),e.children(":empty").not("img, br").remove()},t.prototype.hasTextOverflow=function(){return this.$target.children(".utility__top-wrap").height()>this.$target.height()?!0:!1},t.prototype.hasEmptyChildren=function(){return this.$target.find(".gallery__caption").is(":empty")&&this.$target.find(".gallery__title").is(":empty")?!0:!1},t.prototype.parseCaption=function(){var e;return e=this.$target.find(".gallery__caption, .gallery__title"),this.removeEmptyTagsRecursively(e)},t.prototype.checkCaptionFormat=function(){return this.$target.toggleClass("has-text-overflow",this.hasTextOverflow()),this.$target.toggleClass("has-empty-children",this.hasEmptyChildren())},t.prototype.initCaption=function(e){var t;if(!r(".gallery__utility[data-view]").length)return t=this.$target.closest(".gallery__utility"),this.$target.innerHeight()?t.attr("data-view","minimised"):t.attr("data-view","hidden"),r("body").on("click",".utility__button",function(e){var n;return n=t.attr("data-view"),n==="maximised"?t.attr("data-view","minimised"):t.attr("data-view","maximised")})},t}(i),e.exports=o},function(e,t){e.exports=c},function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;r=n(15).Decorator,i=n(20),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.getName=function(){return"gallery.page"},t.prototype.templates={page:i.templates.page},t.prototype.init=function(){return this.on(r.MANAGER_AVAILABLE,function(e){return function(t){return e.manager.on("change",function(t){return e.handleSlideChange(t)})}}(this)),this.ready()},t.prototype.isMediaSlide=function(e){return e?e.type!=="ad":!1},t.prototype.handleSlideChange=function(e){var t,n,r;return n="",r=this.manager.mediaLength,t=this.manager.mediaIndex,this.isMediaSlide(this.manager.slide)&&(n=this.templates.page({slidesLength:r,currentIndex:t})),this.target.innerHTML=n},t}(r),e.exports=s},function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;r=n(15).Decorator,i=n(36),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.getName=function(){return"gallery.module.share"},t.prototype.init=function(){return this.on(r.MANAGER_AVAILABLE,function(e){return function(t){return e.manager.on("change",function(t){return e.handleSlideChange(t)})}}(this)),t.__super__.init.call(this)},t.prototype.handleSlideChange=function(e){var t;return t=this.getSharingData(this.manager),this.manager.slideIndex!==0&&(t.url=this.getUrl()),this.updateProviders(t)},t.prototype.getUrl=function(){return window.location.protocol+"//"+window.location.host+this.manager.gallery.url+"/"+(this.manager.mediaIndex+1)},t.prototype.getSharingData=function(e){return{title:e.gallery.headline,url:window.location.protocol+"//"+window.location.host+e.gallery.url,description:e.gallery.abstract,image:e.slide.url}},t}(i),e.exports=s},function(e,t){e.exports=h},function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;r=n(15).Decorator,i=n(20),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.getName=function(){return"gallery.next-gallery"},t.prototype.templates={nextGallery:i.templates.nextGallery},t.prototype.init=function(){return this.on(r.MANAGER_AVAILABLE,function(e){return function(t){return e.manager.on("change update",function(t){return e.handleGalleryChange(t)}),e.handleGalleryChange(t)}}(this)),this.ready()},t.prototype.handleGalleryChange=function(e){var t;t=this.manager.getNextGallery();if(!t){this.target.innerHTML="";return}return this.target.innerHTML=this.templates.nextGallery({next:t})},t}(r),e.exports=s},function(e,t,n){var r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S=function(e,t){function r(){this.constructor=e}for(var n in t)x.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},x={}.hasOwnProperty;r=n(14),b=n(39),E=n(15),u=E.Decorator,h=E.ManagerDecorator,y=n(16),a=n(26),v=n(13),g=n(18),f=n(40),c=n(43),m=n(45),o=n(47),p="next",d="previous",i=4e3,s=1500,w=function(){throw new SyntaxError("readonly property")},l=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return S(t,e),t.NEXT_DIRECTION=p,t.PREVIOUS_DIRECTION=d,t.getName=function(){return"gallery.manager"},t.prototype.AdsInjector=o,t.prototype.isWaitingForAdToLoad=null,t.defaultConfig={history:!1,adverts:!0},t.prototype.History=c,t.prototype.TrackingMeta=m,t.prototype.init=function(){return this.on(h.READY,function(e){return function(t){var n,r;n=(r=t.detail)!=null?r.owner:void 0;if(b(n,f))return e.data=n,e.slide||Object.defineProperties(e,{slide:{enumerable:!0,get:function(){return e.data.slide()},set:w},gallery:{enumerable:!0,get:function(){return e.data.gallery()},set:w},slideIndex:{enumerable:!0,get:function(){return e.data.slideIndex()},set:w},galleryIndex:{enumerable:!0,get:function(){return e.data.galleryIndex()},set:w},dataIndex:{enumerable:!0,get:function(){return e.data.iterator.index},set:w},mediaIndex:{enumerable:!0,set:w,get:function(){var t,n;return n=e.slide,t=-1,e.isMediaSlide(n)&&(t=n.gallery.media.indexOf(n)),t}},mediaLength:{enumerable:!0,set:w,get:function(){return e.slides.reduce(function(t,n){return e.isMediaSlide(n)&&(t+=1),t},0)}},galleries:{enumerable:!0,get:function(){return e.data.galleries()},set:w},slides:{enumerable:!0,get:function(){return e.data.slides()},set:w}}),e.adsInjector&&(e.adsInjector.injectAdverts(e.data.iterator),e.data.on("update",function(t){var n,r,i;return n=((r=t.detail)!=null?(i=r.data)!=null?i.direction:void 0:void 0)||"next",e.adsInjector.injectAdverts(e.data.iterator,n)})),e.isInitialSlide=!0,e.on("change",function(){e.isInitialSlide=!1;if(e.slide.type!==e.AdsInjector.ADVERT_SLIDE_TYPE)return e.trackSlideTransition({contentDescription:"NEWSGALLERY-slide-"+(e.mediaIndex+1)})}),e.ready()}}(this)),this._enabledNext=!0,this._enabledPrev=!0,this.history=this.config.history?new this.History(this):null,this.trackingMeta=new this.TrackingMeta({manager:this}),g.isMobile()&&(this.adsInjector=this.config.adverts?new this.AdsInjector(this):null),this.on(p,function(e){return function(t){return e.nextSlide(t)}}(this)),this.on(d,function(e){return function(t){return e.prevSlide(t)}}(this)),this.on("next-gallery",function(e){return function(){return e.nextGallery()}}(this)),this.on("previous-gallery",function(e){return function(){return e.prevGallery()}}(this)),this.on(v.EVENTS.CURRENT_SLIDE_IS_AD,function(e){return function(){return e.onCurrentSlideAd(event)}}(this)),this.on(y.events.video.playCompleted,function(e){return function(){return e.nextSlide()}}(this)),this.on(y.events.ad.playing,function(e){return function(){if(g.isDesktop())return e.disableSlide()}}(this)),this.on(y.events.ad.playCompleted,function(e){return function(){return e.enableSlide()}}(this)),this.on(a.LOADED,function(e){return function(){if(e.isWaitingForAdToLoad)return clearTimeout(e.isWaitingForAdToLoad),e.isWaitingForAdToLoad=null,e.waitForAdToBeSeen()}}(this)),this.tracking=this.config.tracking,t.__super__.init.apply(this,arguments)},t.prototype.isMediaSlide=function(e){return e?e.type!==this.AdsInjector.ADVERT_SLIDE_TYPE:!1},t.prototype.getSlides=function(e){var t,n,r,i,s,o,u,a,f,l,c,h;i=e.direction,f=e.offset,n=e.all,u=e.length,t=e.ads,i==null&&(i=p),f==null&&(f=0),n==null&&(n=!1),u==null&&(u=1),t==null&&(t=!1),s=0,this.adsInjector&&(s=Math.ceil(u/this.adsInjector.config.interval),u+=s),r=this.dataIndex,i===d?a=n?d:"previousSlide":a=n?p:"nextSlide",this.data.lock();for(o=0,l=f;0<=l?o<l:o>l;0<=l?o++:o--)this.data[a]();h=[];for(;;){c=this.data[a]();if(!c||h.length===u)break;h.push(c)}return this.data.seek(r),this.data.unlock(),t||(h=h.filter(function(e){return function(t){return t.type!==e.AdsInjector.ADVERT_SLIDE_TYPE}}(this))),h.splice(u-s),i===d&&h.reverse(),h},t.prototype.getNextSlides=function(e){return e==null&&(e={}),this.getSlides(e)},t.prototype.getPrevSlides=function(e){return e==null&&(e={}),e.direction=d,this.getSlides(e)},t.prototype.getNextGallery=function(){return this.data.getNextGallery()},t.prototype.getPrevGallery=function(){return this.data.getPreviousGallery()},t.prototype.nextSlide=function(e){var t,n;if(!this._enabledNext)return;return n=this.getNextSlides({all:!0,ads:!0})[0],n&&(t={slide:n,direction:p,fromDataIndex:this.dataIndex},n.gallery===this.gallery?t.fromIndex=this.slideIndex:t.fromGalleryIndex=this.galleryIndex,this.data.next(),this.emit("change",t)),n},t.prototype.prevSlide=function(e){var t,n;if(!this._enabledPrev)return;return n=this.getPrevSlides({all:!0,ads:!0})[0],n&&(t={slide:n,direction:d,fromDataIndex:this.dataIndex},n.gallery===this.gallery?t.fromIndex=this.slideIndex:t.fromGalleryIndex=this.galleryIndex,this.data.previous(),this.emit("change",t)),n},t.prototype.nextGallery=function(){var e,t,n;if(!this._enabledNext)return;return t=this.galleryIndex,e=this.dataIndex,n=this.data.nextGallery(),n&&this.emit("change",{fromGalleryIndex:t,direction:p,fromDataIndex:e,slide:this.slide}),n},t.prototype.prevGallery=function(e){var t,n,r;e==null&&(e=!1);if(!this._enabledPrev)return;return n=this.galleryIndex,t=this.dataIndex,r=this.data.previousGallery(),r&&(e&&this.data.lastSlide(),this.emit("change",{fromGalleryIndex:n,direction:d,slide:this.slide,fromDataIndex:t})),r},t.prototype.onCurrentSlideAd=function(e){this.disableSlide();if(e.detail.data.direction===v.DIRECTION.NEXT)return this.waitForAdLoad(p);if(e.detail.data.direction===v.DIRECTION.PREVIOUS)return this.waitForAdLoad(d)},t.prototype.disableSlide=function(){return this.disableSlideToNext(),this.disableSlideToPrev()},t.prototype.enableSlide=function(){return this.enableSlideToNext(),this.enableSlideToPrev()},t.prototype.enableSlideToNext=function(){return this._enabledNext=!0,this.emit("enable-slide-next")},t.prototype.enableSlideToPrev=function(){return this._enabledPrev=!0,this.emit("enable-slide-prev")},t.prototype.disableSlideToNext=function(){return this._enabledNext=!1,this.emit("disable-slide-next")},t.prototype.disableSlideToPrev=function(){return this._enabledPrev=!1,this.emit("disable-slide-prev")},t.prototype.isDisabled=function(){return this.isNextDisabled()&&this.isPrevDisabled()},t.prototype.isNextDisabled=function(){return!this._enabledNext},t.prototype.isPrevDisabled=function(){return!this._enabledPrev},t.prototype.seekTo=function(e){var t,n,r,i,s,o;o=this.slideIndex,i=this.galleryIndex,t=this.dataIndex,n=t<e?p:d;if(n===p&&!this._enabledNext||n===d&&!this._enabledPrev)return;return t===e?s=this.slide:s=this.data.seek(e),r={direction:n,slide:s,fromDataIndex:t},i!==this.galleryIndex?r.fromGalleryIndex=i:o!==this.slideIndex&&(r.fromIndex=o),s&&this.emit("change",r),s},t.prototype.slideTo=function(e){var t,n,r,i,s;i=t=this.slideIndex,r=t<e?p:d;if(r===p&&!this._enabledNext||r===d&&!this._enabledPrev)return;return n=this.dataIndex,t===e?s=this.slide:s=this.data.seekSlide(e),s&&this.emit("change",{direction:r,fromIndex:i,slide:s,fromDataIndex:n}),s},t.prototype.moveTo=function(e){var t,n,r,i,s;i=t=this.galleryIndex,r=t<e?p:d;if(r===p&&!this._enabledNext||r===d&&!this._enabledPrev)return;return n=this.dataIndex,t===e?s=this.gallery:s=this.data.seekGallery(e),s&&this.emit("change",{direction:r,fromGalleryIndex:i,fromDataIndex:n,slide:this.slide}),s},t.prototype.waitForAdLoad=function(e){return this.isWaitingForAdToLoad=setTimeout(function(t){return function(){if(t.isWaitingForAdToLoad){clearTimeout(t.isWaitingForAdToLoad),t.isWaitingForAdToLoad=null,t.enableSlide();if(e===p)return t.nextSlide();if(e===d)return t.prevSlide()}}}(this),i)},t.prototype.waitForAdToBeSeen=function(){return setTimeout(function(e){return function(){return e.enableSlide()}}(this),this.AD_SKIP_WAIT_TIME)},t.prototype.trackSlideTransition=function(e){if(!this.tracking){console.log("GalleryManager.trackSlideTransition: tracking hasn't been defined in config. Slide won't be tracked");return}return this.tracking.trackSlideTransition(e)},t}(h),e.exports=l},function(e,t){e.exports=p},function(e,t,n){var r,i,s,o,u,a,f,l,c,h,p=function(e,t){function r(){this.constructor=e}for(var n in t)d.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},d={}.hasOwnProperty;r=n(14),l=n(15),o=l.Decorator,s=l.DataDecorator,i=n(41),a=n(42),h=function(e,t){var n,r;r=e.index,n=0;for(;;){if(!e[t]())break;n+=1}return n&&e.seek(r),n},c=function(e,t){var n;return n=r.get(e),n.done(function(e){return t(null,e)}),n.fail(function(){return t(new Error("request failed"))})},f=function(e){var t,n,r,i,s;if(!e)return;i=e.media;for(t=n=0,r=i.length;n<r;t=++n)s=i[t],Object.defineProperty(s,"gallery",{value:e});return e},u=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return p(t,e),t.include(a),t.getName=function(){return"gallery.data"},t.defaultConfig={index:0,nextService:"/services/gallery/old",previousService:"/services/gallery/new",slideBuffer:5,maxGalleryStack:5,beforeFetch:function(e,t){},afterFetch:function(e,t,n){}},t.prototype.init=function(){var e,n,r,s,o,u,a;return t.__super__.init.apply(this,arguments),u=[this.data.previous,this.data.current,this.data.next].filter(Boolean),u.map(f),a=[],u.forEach(function(e){return a=a.concat(e.media)}),this.iterator=new i(a),s=this.data.current.media[this.config.index||0],o=a.indexOf(s),this.iterator.seek(o),n=function(e){return function(t,n){var r;r=e.iterator.length-e.iterator.index-1;if(n&&r<e.config.slideBuffer)return e.fetch("next")}}(this),r=function(e){return function(t,n){if(n&&e.iterator.index<e.config.slideBuffer)return e.fetch("previous")}}(this),e=function(e,t){return r(e,t),n(e,t)},this.hook("post","seek",e),this.hook("post","seekGallery",e),this.hook("post","seekSlide",e),this.hook("post","next",n),this.hook("post","last",n),this.hook("post","nextSlide",n),this.hook("post","nextGallery",n),this.hook("post","lastSlide",n),this.hook("post","lastGallery",n),this.hook("post","previous",r),this.hook("post","first",r),this.hook("post","previousSlide",r),this.hook("post","previousGallery",r),this.hook("post","firstSlide",r),this.hook("post","firstGallery",r),this.ready()},t.prototype.next=function(){return this.iterator.next()},t.prototype.previous=function(){return this.iterator.previous()},t.prototype.first=function(){return this.iterator.first()},t.prototype.last=function(){return this.iterator.last()},t.prototype.firstGallery=function(){return this.iterator.first(),this.gallery()},t.prototype.lastGallery=function(){return this.iterator.last(),this.firstSlide(),this.gallery()},t.prototype.firstSlide=function(){var e,t;e=this.gallery();while(((t=this.iterator[this.iterator.index-1])!=null?t.gallery:void 0)===e)this.iterator.previous();return this.slide()},t.prototype.lastSlide=function(){var e,t;e=this.gallery();while(((t=this.iterator[this.iterator.index+1])!=null?t.gallery:void 0)===e)this.iterator.next();return this.slide()},t.prototype.slide=function(){return this.iterator.current()},t.prototype.gallery=function(){var e;return(e=this.iterator.current())!=null?e.gallery:void 0},t.prototype.slides=function(){var e;return e=this.gallery(),this.iterator.filter(function(t){return t.gallery===e})},t.prototype.galleries=function(){var e;return e=this.iterator.map(function(e){return e.gallery}),e.filter(function(t,n){return e.indexOf(t)===n})},t.prototype.getNextSlide=function(){return this.iterator[this.iterator.index+1]},t.prototype.nextSlide=function(){var e;e=this.getNextSlide();if((e!=null?e.gallery:void 0)===this.gallery())return this.iterator.next()},t.prototype.getPreviousSlide=function(){return this.iterator[this.iterator.index-1]},t.prototype.previousSlide=function(){var e;e=this.getPreviousSlide();if((e!=null?e.gallery:void 0)===this.gallery())return this.iterator.previous()},t.prototype.nextGallery=function(){return this.lastSlide(),this.iterator.next(),this.gallery()},t.prototype.getNextGallery=function(){var e,t,n,r,i;i=this.slide(),e=i.gallery,t=this.iterator.index,n=void 0;while((i!=null?i.gallery:void 0)===e)t+=1,i=this.iterator[t],n=(r=i!=null?i.gallery:void 0)!=null?r:n;if(n!==e)return n},t.prototype.previousGallery=function(){return this.firstSlide(),this.iterator.previous(),this.firstSlide(),this.gallery()},t.prototype.getPreviousGallery=function(){var e,t,n,r,i;i=this.slide(),e=i.gallery,t=this.iterator.index,n=void 0;while((i!=null?i.gallery:void 0)===e)t-=1,i=this.iterator[t],n=(r=i!=null?i.gallery:void 0)!=null?r:n;if(n!==e)return n},t.prototype.galleryCount=function(){var e;return e=this.iterator.length?1:0,this.iterator.reduce(function(e,t,n,r){var i;return i=r[n-1],i&&i.gallery!==t.gallery&&(e+=1),e},e)},t.prototype.slideCount=function(){var e;return e=this.gallery(),this.iterator.reduce(function(t,n){return n.gallery===e&&(t+=1),t},0)},t.prototype.galleryIndex=function(){var e;return(e=this.galleries())!=null?e.indexOf(this.gallery()):void 0},t.prototype.slideIndex=function(){var e;return(e=this.slides())!=null?e.indexOf(this.slide()):void 0},t.prototype.seek=function(e){return this.iterator.seek(e)},t.prototype.seekSlide=function(e){var t,n;return t=this.gallery(),n=t.media[e],n&&(e=this.iterator.indexOf(n),this.iterator.seek(e)),n},t.prototype.seekGallery=function(e){var t,n,r;t=this.galleries(),n=t[e];if(!n)return;return r=0,e&&this.iterator.some(function(e,t){if(e.gallery===n)return r=t,!0}),this.iterator.seek(r),this.gallery()},t.prototype.lock=function(){return this._locked=!0},t.prototype.unlock=function(){return this._locked=!1},t.prototype.fetchUrl=function(e,t,n){var r,i;return e==null&&(e="next"),e==="previous"?r=this.config.previousService:r=this.config.nextService,i=r+"?id="+t,n&&(i=i+"&section="+n),i},t.prototype.fetchId=function(e){var t,n;return e==null&&(e="next"),e==="previous"?(t=this.iterator[0])!=null?t.gallery.id:void 0:(n=this.iterator[this.iterator.length-1])!=null?n.gallery.id:void 0},t.prototype.sectionId=function(e){var t,n,r,i;return e==null&&(e="direction"),e==="previous"?(t=this.iterator[0])!=null?(n=t.gallery.section)!=null?n.id:void 0:void 0:(r=this.iterator[this.iterator.length-1])!=null?(i=r.gallery.section)!=null?i.id:void 0:void 0},t.prototype.fetch=function(e){var t,n,r,i,s;e==null&&(e="next");if(this._locked||this._request)return;t=this.fetchId(e);if(!t)return;i=this.sectionId(e),s=this.fetchUrl(e,t,i);if(typeof s!="string"||!s)return;n={direction:e,section:i,id:t,url:s};if(typeof this.config.beforeFetch=="function"){r=this.config.beforeFetch(n,this);if(r===!1)return}return this._request=c(s,function(t){return function(i,s){var o,u,a,l,c,h,p,d,v,m;t._request=null;if(i)throw i;if(!s)return;v=[];if(typeof t.config.afterFetch=="function"){r=t.config.afterFetch(s,n,t);if(r!=null?r.length:void 0)v=r}if(!r||!v.length)u=f(s.meta),v=(h=u!=null?u.media:void 0)!=null?h:[];if(v.length){v.some(function(e){var t;if((e!=null?(t=e.gallery)!=null?t.id:void 0:void 0)==null)throw TypeError("slide has no gallery")}),e==="previous"?(p=t.iterator).unshift.apply(p,v):(d=t.iterator).push.apply(d,v);if(t.galleryCount()>t.config.maxGalleryStack){m=0,o=0,e==="previous"?(l=t.iterator[t.iterator.length-1].gallery,o=l.media.length,t.iterator.some(function(e,t){if(e.gallery===l)return m=t,!0})):o=t.iterator[0].gallery.media.length,c=t.iterator.index-t.config.slideBuffer,a=t.iterator.index+t.config.slideBuffer;if(m+o<c||m>a)n.purged=t.iterator.splice(m,o)}switch(n.direction){case"next":t.iterator.index>=t.iterator.length-t.config.slideBuffer&&t.fetch(n.direction);break;case"previous":t.config.slideBuffer>t.iterator.index&&t.fetch(n.direction)}}return n.slides=v,t.emit("update",n)}}(this)),this.emit("updating",n)},t}(s),e.exports=u},function(e,t){var n,r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=Array.isArray,typeof r!="function"&&(r=function(e){return Object.prototype.toString.call(e)==="[object Array]"}),i=function(e){return function(){var t,n,r;return t=this.current(),r=Array.prototype[e].apply(this,arguments),n=this.indexOf(t),this.seek(n!==-1?n:0),r}},n=function(e){function t(e){if(!r(e))throw new TypeError("data must be an array");this.index=0,this.push.apply(this,e)}return s(t,e),t.prototype.next=function(){var e;e=this.index+1;if(e<this.length)return this.index=e,this.current();return},t.prototype.previous=function(){var e;e=this.index-1;if(e===-1)return;return this.index=e,this.current()},t.prototype.current=function(){return this[this.index]},t.prototype.first=function(){return this.index=0,this.current()},t.prototype.last=function(){return this.index=this.length-1,this.current()},t.prototype.seek=function(e){if(e<0||e>this.length)throw new RangeError("index not in range");return this.index=e,this.current()},t.prototype.count=function(){return this.length},t.prototype.toArray=function(){return this.map(function(e){return e})},t.prototype.pop=i("pop"),t.prototype.push=i("push"),t.prototype.reverse=i("reverse"),t.prototype.shift=i("shift"),t.prototype.sort=i("sort"),t.prototype.splice=i("splice"),t.prototype.unshift=i("unshift"),t}(Array),e.exports=n},function(e,t){var n,r;r=function(e){switch(e.toLowerCase()){case"pre":case"before":return"pre";case"post":case"after":return"post";default:throw new Syntax("invalid hook type")}},n=function(){function e(){}return e.prototype.hook=function(e,t,n){var i,s,o;if(typeof this[t]!="function")throw new SyntaxError("no method "+t);return o=r(e),this._hooks=(s=this._hooks)!=null?s:{},this._hooks[t]||(this._hooks[t]=i={pre:[],post:[],method:this[t],proto:!this.hasOwnProperty(t)},this[t]=function(){var t,n,r,s,o,u,a;o=i.pre;for(t=0,r=o.length;t<r;t++){e=o[t];if(e(arguments)===!1)return}a=i.method.apply(this,arguments),u=i.post;for(n=0,s=u.length;n<s;n++)e=u[n],e(arguments,a);return a}),this._hooks[t][o].push(n)},e.prototype.unhook=function(e){var t;if(!this._hooks[e])return;t=this._hooks[e],delete this._hooks[e];if(!t.proto)return this[e]=t.method},e}(),e.exports=n},function(e,t,n){var r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty,u=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};i=n(44),r=function(e){function t(e){var n;this.manager=e,t.__super__.constructor.call(this),this._popped=u.call(window.history,"state")>=0&&window.history.state!==null,this._initialURL=location.href,this._start=null,this._triggedByPop=!1,Object.defineProperty(this,"slideUrl",{enumerable:!0,get:function(e){return function(){var t;return t=e.manager.gallery.url,e.manager.mediaIndex&&(t=t+"/"+(e.manager.mediaIndex+1)),t}}(this),set:function(){throw new SyntaxError("readonly")}}),n=this.manager.constructor,this.manager.on("decorator.ready",function(e){return function(){return e._start={slideIndex:e.manager.slideIndex,galleryUrl:e.manager.gallery.url}}}(this)),this.manager.on("change",function(e){return function(t){var n,r;if(n=t.detail.data){if(e.isInvalidSlideType((r=n.slide)!=null?r.type:void 0))return;e._triggedByPop===!1&&e.push(e.slideUrl,{slideIndex:e.manager.slideIndex,galleryUrl:e.manager.gallery.url})}return e._popped=!0,e._triggedByPop=!1}}(this)),this.on(i.POPPED,function(e){return function(t){var n,r;r=!e._popped&&location.href===e._initialURL,e._popped=!0;if(r)return;return n={},t.detail.data===null?n=e._start:n=t.detail.data,n.galleryUrl!==e.manager.gallery.url?e.reload():(e._triggedByPop=!0,e.manager.slideTo(n.slideIndex))}}(this))}return s(t,e),t.prototype.isInvalidSlideType=function(e){return e==="ad"},t.prototype.reload=function(){return location.reload()},t}(i),e.exports=r},function(e,t){e.exports=d},function(e,t,n){var r,i,s=function(e,t){return function(){return e.apply(t,arguments)}},o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;i=n(46),r=function(e){function t(e){this.manager=e.manager,this.meta=e.meta,this.updateMeta=s(this.updateMeta,this),this.meta==null&&(this.meta=window.TRACKING_CONFIG||{}),this.manager.on("change",this.updateMeta),t.__super__.constructor.call(this)}return o(t,e),t.prototype.updateMeta=function(){var e,t,n;if(((e=this.meta.hierarchy)!=null?e.pageName:void 0)!==this.manager.gallery.headline)return(t=this.meta.hierarchy)!=null&&(t.pageName=this.manager.gallery.headline),(n=this.manager.tracking)!=null?n.configure(this.meta):void 0},t}(i),e.exports=r},function(e,t){e.exports=v},function(e,t,n){var r,i,s;s=n(22),i=n(24),r=function(){function n(e,t){var n;this.manager=e,t==null&&(t={});if(!this.manager)throw new TypeError("no manager given");if(typeof t!="object")throw new TypeError("config must be an object");s.extend(this.config,t),n=function(e){return function(){var t;return t=document.documentElement.clientWidth,e.showAdvert=t<=e.config.breakpoint}}(this),n(),i.listen("resize",s.debounce(n,this.config.debounce))}var e,t;return e=function(e){return s.findIndex(e,function(e){return e.type===n.ADVERT_SLIDE_TYPE})},t=function(e){return s.findLastIndex(e,function(e){return e.type===n.ADVERT_SLIDE_TYPE})},n.ADVERT_SLIDE_TYPE="ad",n.prototype.config={interval:5,duration:2e3,debounce:200,breakpoint:480},n.prototype.showing=!1,n.prototype.getAdsStartAndEnd=function(n,r){var i,s,o;switch(r){case"next":o=t(n)+1,o=o!==-1?o:0,i=n.length;break;case"previous":o=e(n)-1,o=o<0?n.length-1:o,i=-1;break;default:s=!0,o=this.manager.dataIndex,i=n.length}return{start:o,end:i,injectPrevious:s}},n.prototype.getAdInjectionSpots=function(e,t,n){var r,i,s,o,u,a,f;s=[],r=0;for(i=o=u=e,a=t;u<=a?o<a:o>a;i=u<=a?++o:--o)f=n[i],f.type==="video"?r=0:r===this.config.interval?(s.push({gallery:f.gallery,index:i}),r=0):r+=1;return s},n.prototype.injectAdverts=function(e,t){var n,r,i,s,o,u,a,f;if(!e.length)return;u=this.getAdsStartAndEnd(e,t),f=u.start,n=u.end,r=u.injectPrevious;if(f===n)return;i=this.getAdInjectionSpots(f,n,e);for(s=0,o=i.length;s<o;s++)a=i[s],e.splice(a.index,0,this.createAdvertSlide(a.gallery));r&&this.injectAdverts(e,"previous")},n.prototype.createAdvertSlide=function(e){return{gallery:e,type:n.ADVERT_SLIDE_TYPE}},n}(),e.exports=r},function(e,t,n){var r,i,s,o,u,a,f,l,c,h=function(e,t){function r(){this.constructor=e}for(var n in t)p.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},p={}.hasOwnProperty;r=n(14),c=n(22),a=n(23),i=n(15).Decorator,s=n(24),u=n(20),o=n(26),l=n(18),f=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}var t;return h(n,e),n.getName=function(){return"gallery.layout"},n.defaultConfig={debounceDuration:200,disableTitleOverlay:!1},n.previousIndex=null,n.currentIndex=null,t=!1,n.prototype.init=function(){return this.$target=r(this.target),l.isMobile()&&this.titleOn(),this.on(i.MANAGER_AVAILABLE,function(e){return function(){return e.manager.on("change",function(t){var n,r,i;e.$target.removeClass("ad-loaded"),i=t!=null?(n=t.detail)!=null?(r=n.data)!=null?r.slide:void 0:void 0:void 0;if(!i)return;return e.target.setAttribute("data-gallery-portrait",e.manager.gallery.portrait.toString()),e.target.setAttribute("data-index",e.manager.slideIndex),e.checkAdCSS(i),e.resolveTitle(t)})}}(this)),this.on(o.LOADED,function(e){return function(){return e.$target.addClass("ad-loaded")}}(this)),this.setupHammer(),s.listen("resize",c.debounce(this.fixCaption,this.config.debounceDuration).bind(this)),this.fixCaption(),this.ready()},n.prototype.setupHammer=function(){var e,t;return t={cssProps:{userSelect:"initial"}},e=new a.Manager(this.target,t),e.add(new a.Tap({threshold:2,pointers:1})),e.on("tap",this.handleHammer.bind(this))},n.prototype.handleHammer=function(e){if(r(e.target).is(".gallery__slides *, .gallery__slides"))return this.$target.toggleClass("gallery--ui-tap")},n.prototype.checkAdCSS=function(e){if((e!=null?e.type:void 0)==="ad"&&!t)return this.$target.addClass("gallery--has-ad"),t=!0;if(t)return this.$target.removeClass("gallery--has-ad"),t=!1},n.prototype.fixCaption=function(){var e,t,n,i;return r("body").outerWidth()>767?(e=this.$target.find(".gallery__utility"),n=e.position().top,t=r("body").outerHeight(),i=t-n-282,this.$target.find(".utility__top").css("max-height",i)):this.$target.find(".utility__top").css("max-height","")},n.prototype.resolveTitle=function(e){var t,n;return(e!=null?(t=e.detail)!=null?(n=t.data)!=null?n.fromGalleryIndex:void 0:void 0:void 0)!=null?this.titleOn():this.titleOff()},n.prototype.titleOn=function(){if(!this.config.disableTitleOverlay)return this.$target.find(".gallery__headline").attr("data-display","title")},n.prototype.titleOff=function(){if(!this.config.disableTitleOverlay)return this.$target.find(".gallery__headline").attr("data-display","")},n}(i),e.exports=f}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n();else if(typeof define=="function"&&define.amd)define("mi9-lifestyle-gallery-common",[],n);else{var r=n();for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports={directionalLink:n(1),templates:{headline:n(2),magnifyLens:n(5),magnify:n(6),module:n(7),nextGallery:n(8),page:n(9),share:n(10),slideAd:n(11),slideImage:n(12),slideVideo:n(13),thumbnails:n(14),utilities:n(15),tags:n(16),breadcrumbs:n(17)}}},function(e,t){e.exports={previousUrl:function(e,t,n){var r;return e===0?n?(r=n.media.length-1,r===0?n.url:n.url+"/"+(r+1)):"#":e===1?t.url:t.url+"/"+e},nextUrl:function(e,t,n){return e+1>=t.media.length?n?n.url:"#":t.url+"/"+(e+2)}}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t){n.push('<div class="gallery__site-title">'+r.escape((s=t.galleryQuote)==null?"":s)+"</div><h1>"+(null==(s=e)?"":s)+'</h1><a href="#" class="gallery__view-link">View gallery</a>')}.call(this,"headline"in o?o.headline:typeof headline!="undefined"?headline:undefined,"meta"in o?o.meta:typeof meta!="undefined"?meta:undefined),n.join("")}},function(e,t,n){"use strict";function r(e){return e!=null&&e!==""}function i(e){return(Array.isArray(e)?e.map(i):e&&typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}):[e]).filter(r).join(" ")}function u(e){return s[e]||e}function a(e){var t=String(e).replace(o,u);return t===""+e?e:t}t.merge=function f(e,t){if(arguments.length===1){var n=e[0];for(var i=1;i<e.length;i++)n=f(n,e[i]);return n}var s=e["class"],o=t["class"];if(s||o)s=s||[],o=o||[],Array.isArray(s)||(s=[s]),Array.isArray(o)||(o=[o]),e["class"]=s.concat(o).filter(r);for(var u in t)u!="class"&&(e[u]=t[u]);return e},t.joinClasses=i,t.cls=function(n,r){var s=[];for(var o=0;o<n.length;o++)r&&r[o]?s.push(t.escape(i([n[o]]))):s.push(i(n[o]));var u=i(s);return u.length?' class="'+u+'"':""},t.style=function(e){return e&&typeof e=="object"?Object.keys(e).map(function(t){return t+":"+e[t]}).join(";"):e},t.attr=function(n,r,i,s){return n==="style"&&(r=t.style(r)),"boolean"==typeof r||null==r?r?" "+(s?n:n+'="'+n+'"'):"":0==n.indexOf("data")&&"string"!=typeof r?(JSON.stringify(r).indexOf("&")!==-1&&console.warn("Since Jade 2.0.0, ampersands (`&`) in data attributes will be escaped to `&amp;`"),r&&typeof r.toISOString=="function"&&console.warn("Jade will eliminate the double quotes around dates in ISO form after 2.0.0")," "+n+"='"+JSON.stringify(r).replace(/'/g,"&apos;")+"'"):i?(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+t.escape(r)+'"'):(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+r+'"')},t.attrs=function(n,r){var s=[],o=Object.keys(n);if(o.length)for(var u=0;u<o.length;++u){var a=o[u],f=n[a];"class"==a?(f=i(f))&&s.push(" "+a+'="'+f+'"'):s.push(t.attr(a,f,!1,r))}return s.join("")};var s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},o=/[&<>"]/g;t.escape=a,t.rethrow=function l(e,t,r,i){if(e instanceof Error){if((typeof window!="undefined"||!t)&&!i)throw e.message+=" on line "+r,e;try{i=i||n(4).readFileSync(t,"utf8")}catch(s){l(e,null,r)}var o=3,u=i.split("\n"),a=Math.max(r-o,0),f=Math.min(u.length,r+o),o=u.slice(a,f).map(function(e,t){var n=t+a+1;return(n==r?"  > ":"    ")+n+"| "+e}).join("\n");throw e.path=t,e.message=(t||"Jade")+":"+r+"\n"+o+"\n\n"+e.message,e}throw e},t.DebugItem=function(t,n){this.lineno=t,this.filename=n}},function(e,t){},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i;return n.push('<div class="magnify__lens"></div>'),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i;return n.push('<img class="magnify__large magnify__large--loading"/>'),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t,i,o,u,a,f,l,c,h,p,d,v){var m=a,g=t.current.id,y=t.current.headline,b=t.current.url,w=t.current.next,E=t.current.media,S=E.length,x=E[m],T={},N=t.useHistory!==!1?!0:!1;t.current.interstitialAds&&(T["data-id"]="gallery.ads.manager",T["data-module"]="gallery.ads.manager",T["data-ads"]=!0,T["data-images-per-ad"]=5),o||(o=!1),S<=1&&(o=!0),n.push('<div data-module="gallery.manager"'+r.attr("data-history",N.toString(),!0,!1)+'><script data-module="gallery.data"'+r.attr("data-index",m,!0,!1)+' type="text/json">'+(null==(s=e.stringify(t))?"":s)+'</script><div data-module="gallery.layout"'+r.attr("data-gallery-id",g,!0,!1)+r.attr("data-index",m,!0,!1)+r.attr("data-gallery-portrait",t.current.portrait.toString(),!0,!1)+r.attr("data-disable-title-overlay",o.toString(),!0,!1)+' data-gallery-type="gallery"'+r.attr("data-gallery-section",u.lowerCase(d.section),!0,!1)+' class="gallery module">'),p.enableAds&&n.push('<div class="gallery__banner-ad">'+(null==(s=c.ad({adType:"BANNER",location:"TOP",classes:"module",moduleDecorator:"gallery.ad",moduleId:"gallery.ad.top",minWidth:u.breakpoint("md","min")}))?"":s)+"</div>"),n.push('<section data-id="gallery.headline" data-module="gallery.headline" class="gallery__headline">'+(null==(s=c.gallery.headline({meta:f,headline:y}))?"":s)+'</section><section class="gallery__main"><section id="gallery__video-player"><div'+r.attr("id",v,!0,!1)+' class="video-block__player"></div><div class="video-block__image"></div><div class="play"></div></section><section data-id="gallery.slides" data-module="gallery.slides" class="gallery__slides"><div class="gallery__slides-wrapper">');if(x)switch(x.type){case"image":n.push(null==(s=c.gallery.slideImage({media:x}))?"":s);break;case"video":n.push(null==(s=c.gallery.slideVideo({media:x}))?"":s)}n.push('</div></section><section data-id="gallery.arrows" data-module="gallery.arrows" class="gallery__arrows"><a'+r.attr("href",h,!0,!1)+' class="gallery__arrow-prev"></a><a'+r.attr("href",l,!0,!1)+' class="gallery__arrow-next"></a></section></section><section class="gallery__utility"><section data-id="gallery.utilityTop" data-module="gallery.utilities" class="utility__top">'+(null==(s=c.gallery.utilities({media:x,current:t.current,partials:c}))?"":s)+'</section><div class="utility__button"></div>'),p.enableAds&&n.push('<div class="gallery__utility-ad">'+(null==(s=c.ad({adType:"MEDIUM",location:"TOP",classes:"module",moduleDecorator:"gallery.ad",moduleId:"gallery.ad.utility",minWidth:u.breakpoint("md","min")}))?"":s)+"</div>"),n.push('</section><section class="gallery__share-page"><section data-id="gallery.page" data-module="gallery.page" class="gallery__page">'+(null==(s=c.gallery.page({currentIndex:m,slidesLength:S}))?"":s)+'</section><section data-id="gallery.share" data-module="gallery.share" class="gallery__share">'+(null==(s=c.gallery.share({content:t.current,media:x}))?"":s)+'</section></section><section class="gallery__magnify-inner"></section><section class="gallery__thumbnails"><div data-id="gallery.thumbnail-arrows" data-module="gallery.arrows" class="gallery__arrows"><a'+r.attr("href",h,!0,!1)+' class="thumbnails__up"></a><a'+r.attr("href",l,!0,!1)+' class="thumbnails__down"></a></div><div class="thumbnails__list-container"><ul data-id="gallery.thumbnails" data-module="gallery.thumbnails" data-thumbnail-width="149" data-magnify=".gallery__magnify-inner" data-magnify-active-class="gallery__magnify-inner--active" data-magnification="3" class="thumbnails__list">'),t.current.portrait&&n.push(null==(s=c.gallery.thumbnails({slides:E.slice(a,5),index:i,slideIndex:a}))?"":s),n.push('</ul></div></section><small class="gallery__footer"><a href="http://mi9.com.au/article.aspx?id=8363139">Terms of use</a><a href="http://advertising.ninemsn.com.au/privacy">Privacy</a></small></div></div>')}.call(this,"JSON"in o?o.JSON:typeof JSON!="undefined"?JSON:undefined,"content"in o?o.content:typeof content!="undefined"?content:undefined,"dataIndex"in o?o.dataIndex:typeof dataIndex!="undefined"?dataIndex:undefined,"disableTitleOverlay"in o?o.disableTitleOverlay:typeof disableTitleOverlay!="undefined"?disableTitleOverlay:undefined,"helpers"in o?o.helpers:typeof helpers!="undefined"?helpers:undefined,"index"in o?o.index:typeof index!="undefined"?index:undefined,"meta"in o?o.meta:typeof meta!="undefined"?meta:undefined,"nextUrl"in o?o.nextUrl:typeof nextUrl!="undefined"?nextUrl:undefined,"partials"in o?o.partials:typeof partials!="undefined"?partials:undefined,"previousUrl"in o?o.previousUrl:typeof previousUrl!="undefined"?previousUrl:undefined,"settings"in o?o.settings:typeof settings!="undefined"?settings:undefined,"tracking"in o?o.tracking:typeof tracking!="undefined"?tracking:undefined,"videoId"in o?o.videoId:typeof videoId!="undefined"?videoId:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e){if(e){var t=e.media[0]||{url:"",alt:""};n.push("<a"+r.attr("href",e.url,!0,!1)+' data-tracking-link-name="article_previous" class="related heading-link"><img'+r.attr("src",t.url,!0,!1)+r.attr("alt",t.alt,!0,!1)+' class="next__image"/><h3 class="next__title">Next Gallery</h3><p class="next__headline">'+(null==(s=e.headline)?"":s)+"</p></a>")}}.call(this,"next"in o?o.next:typeof next!="undefined"?next:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i,s=t||{};return function(e,t){n.push('<span class="page__current">'+(null==(i=e+1)?"":i)+'</span><wbr/><span class="page__total">'+(null==(i=t)?"":i)+"</span>")}.call(this,"currentIndex"in s?s.currentIndex:typeof currentIndex!="undefined"?currentIndex:undefined,"slidesLength"in s?s.slidesLength:typeof slidesLength!="undefined"?slidesLength:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i;return n.push(""),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i,s=t||{};return function(e){n.push('<div class="slides__image slides__image--ad">'+(null==(i=e)?"":i)+'<div class="ad-message"><span></span></div></div>')}.call(this,"adContent"in s?s.adContent:typeof adContent!="undefined"?adContent:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e){var t=e.alt,i=e.width,s=e.height,o=e.width/e.height,u=e.urlSet,a=e.url;n.push('<div class="slides__image"><div class="slides__image-inner"><img'+r.attr("alt",t,!0,!1)+r.attr("data-src-set",u,!0,!1)+r.attr("data-aspect",o,!0,!1)+' src="http://9news.static9.net.au/Content/images/1x1.gif" data-image-resizer="data-image-resizer"/><noscript><div class="image-resizer--nojs"><img'+r.attr("alt",t,!0,!1)+r.attr("src",a,!0,!1)+' data-image-resizer="data-image-resizer" class="image-resizer__image image-resizer__image--nojs"/></div></noscript></div></div>')}.call(this,"media"in o?o.media:typeof media!="undefined"?media:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e){var t=e.alt,i=e.width,s=e.height,o=16/9,u=e.urlSet,a=e.url;n.push('<div class="slides__image slides__image-video"><div class="slides__image-inner"><img'+r.attr("alt",t,!0,!1)+r.attr("data-src-set",u,!0,!1)+r.attr("data-aspect",o,!0,!1)+' src="http://9news.static9.net.au/Content/images/1x1.gif" data-image-resizer="data-image-resizer"/><noscript><div class="image-resizer--nojs"><img'+r.attr("alt",t,!0,!1)+r.attr("src",a,!0,!1)+' data-image-resizer="data-image-resizer" class="image-resizer__image image-resizer__image--nojs"/></div></noscript><div class="slides__image-inner__play"></div></div></div>')}.call(this,"media"in o?o.media:typeof media!="undefined"?media:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t,i,s,o){(function(){var o=s;if("number"==typeof o.length)for(var u=0,a=o.length;u<a;u++){var f=o[u];n.push("<li"+r.attr("data-index",u+t,!0,!1)+r.attr("data-slide-index",u+i,!0,!1)+r.cls([""+(u===0?"thumbnail__item thumbnail__item--active":"thumbnail__item")+""],[!0])+"><a"+r.attr("href",f.slideUrl,!0,!1)+"><img"+r.attr("alt",f.alt,!0,!1)+r.attr("data-src-set",f.urlSet,!0,!1)+r.attr("data-aspect",f.aspect,!0,!1)+' src="http://9news.static9.net.au/Content/images/1x1.gif" data-image-resizer="data-image-resizer" class="thumbnail__item-image"/><noscript><div class="image-resizer--nojs"><!-- use the lowest size if available-->');var l=typeof f.urlSet[0]!="undefined"?f.urlSet[0].src:f.url;n.push("<img"+r.attr("alt",e,!0,!1)+r.attr("src",l,!0,!1)+' data-image-resizer="data-image-resizer" class="image-resizer__image image-resizer__image--nojs"/></div></noscript></a></li>')}else{var a=0;for(var u in o){a++;var f=o[u];n.push("<li"+r.attr("data-index",u+t,!0,!1)+r.attr("data-slide-index",u+i,!0,!1)+r.cls([""+(u===0?"thumbnail__item thumbnail__item--active":"thumbnail__item")+""],[!0])+"><a"+r.attr("href",f.slideUrl,!0,!1)+"><img"+r.attr("alt",f.alt,!0,!1)+r.attr("data-src-set",f.urlSet,!0,!1)+r.attr("data-aspect",f.aspect,!0,!1)+' src="http://9news.static9.net.au/Content/images/1x1.gif" data-image-resizer="data-image-resizer" class="thumbnail__item-image"/><noscript><div class="image-resizer--nojs"><!-- use the lowest size if available-->');var l=typeof f.urlSet[0]!="undefined"?f.urlSet[0].src:f.url;n.push("<img"+r.attr("alt",e,!0,!1)+r.attr("src",l,!0,!1)+' data-image-resizer="data-image-resizer" class="image-resizer__image image-resizer__image--nojs"/></div></noscript></a></li>')}}}).call(this)}.call(this,"alt"in o?o.alt:typeof alt!="undefined"?alt:undefined,"index"in o?o.index:typeof index!="undefined"?index:undefined,"slideIndex"in o?o.slideIndex:typeof slideIndex!="undefined"?slideIndex:undefined,"slides"in o?o.slides:typeof slides!="undefined"?slides:undefined,"undefined"in o?o.undefined:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],r={},i,s=t||{};return function(e,t,r){n.push('<div class="utility__top-wrap"><div class="gallery__instaceleb-title"></div><div class="gallery__instaceleb-subtitle"></div><div class="gallery__title">'+(null==(i=t.title)?"":i)+'</div><div class="gallery__caption">'+(null==(i=t.caption)?"":i)+"</div><!-- If image attribution does exist and it's not empty, then display it -->"),t.attribution&&n.push('<div class="gallery__image-attribution">'+(null==(i=t.attribution)?"":i)+"</div>"),e.tags&&n.push('<section class="gallery__tags">'+(null==(i=r.gallery.tags({tags:e.tags}))?"":i)+"</section>"),e.breadcrumbs&&n.push('<section class="gallery__breadcrumbs">'+(null==(i=r.gallery.breadcrumbs({breadcrumbs:e.breadcrumbs}))?"":i)+"</section>"),n.push("</div>")}.call(this,"current"in s?s.current:typeof current!="undefined"?current:undefined,"media"in s?s.media:typeof media!="undefined"?media:undefined,"partials"in s?s.partials:typeof partials!="undefined"?partials:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t){e&&function(){var t=e;if("number"==typeof t.length)for(var i=0,o=t.length;i<o;i++){var u=t[i];n.push("<a"+r.attr("href","/"+u.url,!0,!1)+' data-tracking-link-name="gallery_tag" class="gallery__tag">'+r.escape((s=u.name)==null?"":s)+"</a>")}else{var o=0;for(var i in t){o++;var u=t[i];n.push("<a"+r.attr("href","/"+u.url,!0,!1)+' data-tracking-link-name="gallery_tag" class="gallery__tag">'+r.escape((s=u.name)==null?"":s)+"</a>")}}}.call(this)}.call(this,"tags"in o?o.tags:typeof tags!="undefined"?tags:undefined,"undefined"in o?o.undefined:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t){e&&(n.push("<ul>"),function(){var t=e;if("number"==typeof t.length)for(var i=0,o=t.length;i<o;i++){var u=t[i];n.push("<li><a"+r.attr("href",u.url,!0,!1)+r.attr("data-tracking-link-name","gallery_"+u.name,!0,!1)+' class="gallery__breadcrumb">'+r.escape((s=u.name)==null?"":s)+"</a></li>")}else{var o=0;for(var i in t){o++;var u=t[i];n.push("<li><a"+r.attr("href",u.url,!0,!1)+r.attr("data-tracking-link-name","gallery_"+u.name,!0,!1)+' class="gallery__breadcrumb">'+r.escape((s=u.name)==null?"":s)+"</a></li>")}}}.call(this),n.push("</ul>"))}.call(this,"breadcrumbs"in o?o.breadcrumbs:typeof breadcrumbs!="undefined"?breadcrumbs:undefined,"undefined"in o?o.undefined:undefined),n.join("")}}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n();else if(typeof define=="function"&&define.amd)define("mi9-lifestyle-massrelevance-common",[],n);else{var r=n();for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports={partials:{"gallery-slide-massrelevance":n(2),"massrelevance-gallery-thumbnails":n(5),"massrelevance-gallery-utility-top":n(6)},templates:{gallery:n(7)}}},,function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t,i){var s=e?e.standard_resolution||e.low_resolution||e.thumbnail:null,o=t&&t.caption?t.caption.text:"";n.push('<div class="slides__image"><div class="slides__image-inner">'),s&&n.push("<img"+r.attr("src",s.url,!0,!1)+r.attr("alt",o,!0,!1)+r.attr("data-src",s.url,!0,!1)+r.attr("data-aspect",s.width/s.height,!0,!1)+r.attr("data-img-src-set",i,!0,!1)+"/>"),n.push("</div></div>")}.call(this,"images"in o?o.images:typeof images!="undefined"?images:undefined,"media"in o?o.media:typeof media!="undefined"?media:undefined,"urlSet"in o?o.urlSet:typeof urlSet!="undefined"?urlSet:undefined),n.join("")}},function(e,t,n){"use strict";function r(e){return e!=null&&e!==""}function i(e){return(Array.isArray(e)?e.map(i):e&&typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}):[e]).filter(r).join(" ")}function u(e){return s[e]||e}function a(e){var t=String(e).replace(o,u);return t===""+e?e:t}t.merge=function f(e,t){if(arguments.length===1){var n=e[0];for(var i=1;i<e.length;i++)n=f(n,e[i]);return n}var s=e["class"],o=t["class"];if(s||o)s=s||[],o=o||[],Array.isArray(s)||(s=[s]),Array.isArray(o)||(o=[o]),e["class"]=s.concat(o).filter(r);for(var u in t)u!="class"&&(e[u]=t[u]);return e},t.joinClasses=i,t.cls=function(n,r){var s=[];for(var o=0;o<n.length;o++)r&&r[o]?s.push(t.escape(i([n[o]]))):s.push(i(n[o]));var u=i(s);return u.length?' class="'+u+'"':""},t.style=function(e){return e&&typeof e=="object"?Object.keys(e).map(function(t){return t+":"+e[t]}).join(";"):e},t.attr=function(n,r,i,s){return n==="style"&&(r=t.style(r)),"boolean"==typeof r||null==r?r?" "+(s?n:n+'="'+n+'"'):"":0==n.indexOf("data")&&"string"!=typeof r?(JSON.stringify(r).indexOf("&")!==-1&&console.warn("Since Jade 2.0.0, ampersands (`&`) in data attributes will be escaped to `&amp;`"),r&&typeof r.toISOString=="function"&&console.warn("Jade will eliminate the double quotes around dates in ISO form after 2.0.0")," "+n+"='"+JSON.stringify(r).replace(/'/g,"&apos;")+"'"):i?(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+t.escape(r)+'"'):(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+r+'"')},t.attrs=function(n,r){var s=[],o=Object.keys(n);if(o.length)for(var u=0;u<o.length;++u){var a=o[u],f=n[a];"class"==a?(f=i(f))&&s.push(" "+a+'="'+f+'"'):s.push(t.attr(a,f,!1,r))}return s.join("")};var s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},o=/[&<>"]/g;t.escape=a,t.rethrow=function l(e,t,r,i){if(e instanceof Error){if((typeof window!="undefined"||!t)&&!i)throw e.message+=" on line "+r,e;try{i=i||n(4).readFileSync(t,"utf8")}catch(s){l(e,null,r)}var o=3,u=i.split("\n"),a=Math.max(r-o,0),f=Math.min(u.length,r+o),o=u.slice(a,f).map(function(e,t){var n=t+a+1;return(n==r?"  > ":"    ")+n+"| "+e}).join("\n");throw e.path=t,e.message=(t||"Jade")+":"+r+"\n"+o+"\n\n"+e.message,e}throw e},t.DebugItem=function(t,n){this.lineno=t,this.filename=n}},function(e,t){},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t,i,o){(function(){var o=i;if("number"==typeof o.length)for(var u=0,a=o.length;u<a;u++){var f=o[u],l=f.images?f.images.standard_resolution||f.images.low_resolution||f.images.thumbnail:null;n.push("<li"+r.attr("data-index",u+e,!0,!1)+r.attr("data-slide-index",u+t,!0,!1)+r.cls([""+(u===0?"thumbnail__item thumbnail__item--active":"thumbnail__item")+""],[!0])+"><img"+r.attr("src",l.url,!0,!1)+r.attr("width",l.width,!0,!1)+' class="thumbnail__item-image"/><div class="thumbnail__item-caption"><span class="thumbnail__item-likes">'+(null==(s=f.likesCount)?"":s)+'</span><span class="thumbnail__item-time">'+(null==(s=f.time)?"":s)+"</span></div></li>")}else{var a=0;for(var u in o){a++;var f=o[u],l=f.images?f.images.standard_resolution||f.images.low_resolution||f.images.thumbnail:null;n.push("<li"+r.attr("data-index",u+e,!0,!1)+r.attr("data-slide-index",u+t,!0,!1)+r.cls([""+(u===0?"thumbnail__item thumbnail__item--active":"thumbnail__item")+""],[!0])+"><img"+r.attr("src",l.url,!0,!1)+r.attr("width",l.width,!0,!1)+' class="thumbnail__item-image"/><div class="thumbnail__item-caption"><span class="thumbnail__item-likes">'+(null==(s=f.likesCount)?"":s)+'</span><span class="thumbnail__item-time">'+(null==(s=f.time)?"":s)+"</span></div></li>")}}}).call(this)}.call(this,"index"in o?o.index:typeof index!="undefined"?index:undefined,"slideIndex"in o?o.slideIndex:typeof slideIndex!="undefined"?slideIndex:undefined,"slides"in o?o.slides:typeof slides!="undefined"?slides:undefined,"undefined"in o?o.undefined:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t,i){var o=t&&t.caption?t.caption.text:"";n.push('<div class="utility__top-wrap"><div class="gallery__massrelevance-title">'+(null==(s=e)?"":s)+'</div><div class="gallery__massrelevance-subtitle">'+(null==(s=i)?"":s)+'</div><div class="gallery__title"><div class="massrelevance"><div class="massrelevance__profile-container"><meta itemprop="image"'+r.attr("content",t.user.profile_picture,!0,!1)+"/><img"+r.attr("src",t.user.profile_picture,!0,!1)+r.attr("alt",t.user.full_name,!0,!1)+' class="massrelevance__profile"/></div><h2 class="massrelevance__name">'+(null==(s=t.user.username)?"":s)+'</h2><div class="massrelevance__time"><span class="massrelevance__online babys-breath"></span>'+(null==(s=t.time)?"":s)+'</div><span class="massrelevance__likes">'+(null==(s=t.likesCount)?"":s)+'</span></div></div><div class="gallery__caption">'+(null==(s=o)?"":s)+"</div></div>")}.call(this,"headline"in o?o.headline:typeof headline!="undefined"?headline:undefined,"media"in o?o.media:typeof media!="undefined"?media:undefined,"subtitle"in o?o.subtitle:typeof subtitle!="undefined"?subtitle:undefined),n.join("")}},function(e,t,n){var r=n(3);e.exports=function(t){var n=[],i={},s,o=t||{};return function(e,t,i,o,u,a,f,l,c,h,p){var d=u,v=t.current.id,m=t.current.headline,g=t.current.url,y=t.current.next,b=t.current.media,w=b.length,E=b[d],S={},x=t.useHistory!==!1?!0:!1;t.current.interstitialAds&&(S["data-id"]="gallery.ads.manager",S["data-module"]="gallery.ads.manager",S["data-ads"]=!0,S["data-images-per-ad"]=5),n.push('<div data-module="gallery.manager"'+r.attr("data-history",x.toString(),!0,!1)+'><script data-module="massrelevance.gallery.data"'+r.attr("data-index",d,!0,!1)+' type="text/json">'+(null==(s=e.stringify(t))?"":s)+'</script><div data-module="gallery.layout"'+r.attr("data-gallery-id",v,!0,!1)+r.attr("data-index",d,!0,!1)+r.attr("data-gallery-portrait",t.current.portrait.toString(),!0,!1)+' data-gallery-type="gallery"'+r.attr("data-gallery-section",o.lowerCase(h.section),!0,!1)+' class="gallery module">'),c.enableAds&&n.push('<div class="gallery__banner-ad">'+(null==(s=f.ad({adType:"BANNER",location:"TOP",classes:"module",moduleDecorator:"gallery.ad",moduleId:"gallery.ad.top",minWidth:o.breakpoint("md","min")}))?"":s)+"</div>"),n.push('<section class="gallery__main"><section id="gallery__video-player"><div'+r.attr("id",p,!0,!1)+' class="video-block__player"></div><div class="video-block__image"></div><div class="play"></div></section><section data-id="gallery.slides" data-module="massrelevance.gallery.slides" class="gallery__slides"><div class="gallery__slides-wrapper">'+(null==(s=f.massrelevance["gallery-slide-massrelevance"](E))?"":s)+'</div></section><section data-id="gallery.arrows" data-module="gallery.arrows" class="gallery__arrows"><a'+r.attr("href",l,!0,!1)+' class="gallery__arrow-prev"></a><a'+r.attr("href",a,!0,!1)+' class="gallery__arrow-next"></a></section></section><section class="gallery__utility">');var T=t.current.subtitle||"";n.push('<section data-id="gallery.utilityTop" data-module="massrelevance.gallery.utility-top" class="utility__top">'+(null==(s=f.massrelevance["massrelevance-gallery-utility-top"]({headline:m,subtitle:T,media:E}))?"":s)+'</section><div class="utility__button"></div>'),c.enableAds&&n.push('<div class="gallery__utility-ad">'+(null==(s=f.ad({adType:"MEDIUM",location:"TOP",classes:"module",moduleDecorator:"gallery.ad",moduleId:"gallery.ad.utility",minWidth:o.breakpoint("md","min")}))?"":s)+"</div>"),n.push('</section><section class="gallery__share-page"><section data-id="gallery.share" data-module="gallery.share" class="gallery__share">'+(null==(s=f.gallery.share({content:i,media:E}))?"":s)+'</section></section><section class="gallery__magnify-inner"></section><section class="gallery__thumbnails"><div data-id="gallery.thumbnail-arrows" data-module="gallery.arrows" class="gallery__arrows"><a'+r.attr("href",l,!0,!1)+' class="thumbnails__up"></a><a'+r.attr("href",a,!0,!1)+' class="thumbnails__down"></a></div><div class="thumbnails__list-container"><ul data-id="gallery.thumbnails" data-get-all-thumbnails="true" data-module="massrelevance.gallery.thumbnails" data-thumbnail-width="149" class="thumbnails__list"></ul></div></section><small class="gallery__footer"><a href="http://mi9.com.au/article.aspx?id=8363139">Terms of use</a><a href="http://advertising.ninemsn.com.au/privacy">Privacy</a></small></div></div>')}.call(this,"JSON"in o?o.JSON:typeof JSON!="undefined"?JSON:undefined,"content"in o?o.content:typeof content!="undefined"?content:undefined,"current"in o?o.current:typeof current!="undefined"?current:undefined,"helpers"in o?o.helpers:typeof helpers!="undefined"?helpers:undefined,"index"in o?o.index:typeof index!="undefined"?index:undefined,"nextUrl"in o?o.nextUrl:typeof nextUrl!="undefined"?nextUrl:undefined,"partials"in o?o.partials:typeof partials!="undefined"?partials:undefined,"previousUrl"in o?o.previousUrl:typeof previousUrl!="undefined"?previousUrl:undefined,"settings"in o?o.settings:typeof settings!="undefined"?settings:undefined,"tracking"in o?o.tracking:typeof tracking!="undefined"?tracking:undefined,"videoId"in o?o.videoId:typeof videoId!="undefined"?videoId:undefined),n.join("")}}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("mi9-gallery"),require("mi9-lifestyle-massrelevance-common"),require("twemoji"));else if(typeof define=="function"&&define.amd)define("mi9-lifestyle-massrelevance",["mi9-gallery","mi9-lifestyle-massrelevance-common","twemoji"],n);else{var r=typeof exports=="object"?n(require("mi9-gallery"),require("mi9-lifestyle-massrelevance-common"),require("twemoji")):n(t["mi9-gallery"],t["mi9-lifestyle-massrelevance-common"],t.twemoji);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t,n){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){n(1),e.exports={MassRelevanceSlidesDecorator:n(5),MassRelevanceThumbnailsDecorator:n(8),MassRelevanceUtilityTopDecorator:n(9),MassRelevanceDataDecorator:n(11)}},function(e,t){},,,,function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=n(6),s=n(7).partials,o=s["gallery-slide-massrelevance"],i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.getName=function(){return"massrelevance.gallery.slides"},t.prototype.handleVideoSlide=function(){},t.prototype.convertSlideToHTML=function(e){switch(e.type){case"image":case"video":return o(e);default:return t.__super__.convertSlideToHTML.call(this,e)}},t}(r.SlidesDecorator),e.exports=i},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;r=n(6),s=n(7).partials,i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.getName=function(){return"massrelevance.gallery.thumbnails"},t.prototype.templates={thumbnails:s["massrelevance-gallery-thumbnails"]},t}(r.ThumbnailsDecorator),e.exports=i},function(e,t,n){var r,i,s,o,u,a=function(e,t){function r(){this.constructor=e}for(var n in t)f.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;r=n(6),s=n(7).partials,u=n(10),o=s["massrelevance-gallery-utility-top"],i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return a(t,e),t.getName=function(){return"massrelevance.gallery.utility-top"},t.prototype.handleSlideChange=function(e){var t;return t=e.detail.data.slide,t.type!=="ad"&&(this.target.innerHTML=o({media:this.manager.slide,headline:this.manager.gallery.headline,subtitle:this.manager.gallery.subtitle}),u.parse(this.target)),this.parseCaption(),this.checkCaptionFormat(),this.initCaption()},t}(r.UtilitiesDecorator),e.exports=i},function(e,t){e.exports=n},function(e,t,n){var r,i,s=function(e,t){function r(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n(6),i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return s(t,e),t.getName=function(){return"massrelevance.gallery.data"},t.defaultConfig={nextService:"/services/massrelevance/old",previousService:"/services/massrelevance/new",slideBuffer:5,maxGalleryStack:5},t.prototype.fetchId=function(e){var t;e==="next"?t=this.iterator[this.iterator.length-1].id:t=this.iterator[0].id;if(typeof t=="string"&&t)return t},t}(r.DataDecorator),e.exports=i}])}),function(){define("shareButtons",["jquery"],function(e){var t;return t=function(){function t(t){if(!t)throw new Error("Share button params not provided");if(!t.container)throw new Error("container is not supplied");this.$container=t.container,this.url=t.url||window.location.href,this.title=t.title||e('meta[property="og:title"]').attr("content"),this.tracking=t.tracking,t.description&&(this.description=t.description),this.image=t.image||"",this.config=t.config}return t.prototype.updateMeta=function(e){e.url&&(this.url=e.url),e.title&&(this.title=e.title);if(e.description)return this.description=e.description},t.prototype.setSocial=function(e){e==null&&(e={});if(!e.facebook)throw new Error("Share Buttons requires facebook instance to be passed");if(!e.twitter)throw new Error("Share Buttons requires twitter instance to be passed");return this.twitter=e.twitter,this.facebook=e.facebook},t.prototype.track=function(e){var t;if(!this.tracking)throw new Error("Share Buttons requires tracking to be set up before calling track");return t={linkName:e,url:this.url},this.tracking.trackClick(t)},t.prototype.buildFacebookButton=function(){var t,n;if(!this.facebook||!this.config.facebook)return;return n=e.param({app_id:this.facebook.appId,display:"popup",href:this.url,redirect_uri:this.url}),t=this.$container.find(this.config.facebook),t.attr("href","https://facebook.com/dialog/share?"+n),t.off("click"),t.on("click",function(e){return function(t){return t.preventDefault(),e.track("fb_share_intent"),e.facebook.ui({method:"share",href:e.url},function(e){})}}(this))},t.prototype.buildTwitterButton=function(){var t,n;if(!this.twitter||!this.config.twitter)return;return n=e.param({text:this.title,url:this.url}),t=this.$container.find(this.config.twitter),t.attr("href","http://twitter.com/intent/tweet?"+n),t.off("click"),t.on("click",function(e){return function(){return e.track("tw_share_intent")}}(this)),this.twitter.events.bind("tweet",function(e){return function(n){if(n.target===t[0])return e.track("tw_share_complete")}}(this))},t.prototype.buildPinterestButton=function(){var t,n,r;if(!this.config.pinterest)return;return n=e.param({url:this.url,media:this.image,description:this.description}),r="https://www.pinterest.com/pin/create/button/?"+n,t=this.$container.find(this.config.pinterest),t.attr("href",r),t.off("click"),t.on("click",function(e){return function(t){return t.preventDefault(),window.open(r,"pinterest-share-dialog","width=626,height=500"),e.track("pinterest_share_intent")}}(this))},t.prototype.buildTumblrButton=function(){var t,n,r;if(!this.config.tumblr)return;return n=e.param({posttype:"link",url:this.url,title:this.title}),r="https://www.tumblr.com/widgets/share/tool?"+n,t=this.$container.find(this.config.tumblr),t.attr("href",r),t.off("click"),t.on("click",function(e){return function(t){return t.preventDefault(),window.open(r,"tumblr-share-dialog","width=626,height=500"),e.track("tumblr_share_intent")}}(this))},t.prototype.buildGooglePlusButton=function(){var t,n,r;if(!this.config.gplus)return;return n=e.param({url:this.url,hl:"en_GB"}),r="https://plus.google.com/share?"+n,t=this.$container.find(this.config.gplus),t.attr("href",r),t.off("click"),t.on("click",function(e){return function(t){return t.preventDefault(),window.open(r,"gplus-share-dialog","width=626,height=500"),e.track("gplus_share_intent")}}(this))},t.prototype.buildLinkedInButton=function(){var t,n,r;if(!this.config.linkedin)return;return n=e.param({url:this.url,mini:!0,title:this.title,summary:this.description}),r="https://www.linkedin.com/shareArticle?"+n,t=this.$container.find(this.config.linkedin),t.attr("href",r),t.off("click"),t.on("click",function(e){return function(t){return t.preventDefault(),window.open(r,"linkedin-share-dialog","width=626,height=500"),e.track("linkedin_share_intent")}}(this))},t.prototype.buildMailButton=function(){var e,t,n;if(!this.config.mail)return;return n=encodeURIComponent(this.title),t="Check out this story I found:",e=this.$container.find(this.config.mail),e.attr("href","mailto:?subject="+n+"&body="+t+" "+this.url),e.off("click"),e.on("click",function(e){return function(){return e.track("mail_share_intent")}}(this))},t.prototype.buildWhatsAppButton=function(){var e,t,n;if(!this.config.whatsapp)return;return n="Check out this story I found: "+this.title+" "+this.url,t=encodeURIComponent(n),e=this.$container.find(this.config.whatsapp),e.attr("href","whatsapp://send?text="+t),e.off("click"),e.on("click",function(e){return function(){return e.track("wa_share_intent")}}(this))},t.prototype.buildMoreButton=function(){var e,t,n,r;if(!this.config.more)return;return e=this.$container.find(this.config.more),r=function(e){return function(){return e.track("StoryBlock_Sharing")}}(this),t=function(){return e.one("click",n)},n=function(){return e.one("click",function(){return r(),t()})},n()},t.prototype.build=function(){return this.buildFacebookButton(),this.buildTwitterButton(),this.buildMailButton(),this.buildGooglePlusButton(),this.buildLinkedInButton,this.buildPinterestButton(),this.buildTumblrButton(),this.buildWhatsAppButton(),this.buildMoreButton()},t}()})}.call(this),function(){define("share",["jquery","shareButtons"],function(e,t){var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w;return i='meta[property="fb:app_id"]',n="//connect.facebook.net/en_US/sdk.js",o="//platform.twitter.com/widgets.js",s="//secure.assets.tumblr.com/share-button.js",r="//apis.google.com/js/platform.js",f=!1,b=!1,l=function(){return e(i).attr("content")},y=function(e,t,n,r){var i,s;i=e.getElementsByTagName(t)[0];if(e.getElementById(n))return;return s=e.createElement(t),s.id=n,s.src=r,i.parentNode.insertBefore(s,i)},g=function(e){var t;t="PIN_"+~~((new Date).getTime()/864e5);if(window[t])return;return setTimeout(function(){var t,n;return t=e.getElementsByTagName("SCRIPT")[0],n=e.createElement("SCRIPT"),n.type="text/javascript",n.async=!0,n.src="//assets.pinterest.com/js/pinit_main.js",t.parentNode.insertBefore(n,t)},10)},w=function(e,t,n){var r,i,s;return r=e.getElementsByTagName(t)[0],s=window.twttr||{},e.getElementById(n)?s:(i=e.createElement(t),i.id=n,i.src=o,r.parentNode.insertBefore(i,r),s._e=[],s.ready=function(e){return s._e.push(e)},s)},u=function(e){return clearInterval(e)},h=function(){return y(document,"script","gplus","https://apis.google.com/js/platform.js")},p=function(){return g(document)},d=function(){return y(document,"script","tumblr-js",s)},c=function(){var t,r,i,s;return t=e.Deferred(),i=l(),i?window.FB?(r=window.FB,r.appId=i,t.resolve(r)):(!window.FB&&f?s=setInterval(function(){if(window.FB)return u(s),r=window.FB,r.appId=i,t.resolve(r)},1e3):(window.fbAsyncInit=function(){return FB.init({appId:i,xfbml:!0,version:"v2.3"}),r=window.FB,r.appId=i,t.resolve(r)},y(document,"script","facebook-jssdk",n),f=!0),t.promise()):t.reject()},v=function(){var t;return t=e.Deferred(),window.twttr?window.twttr.ready(function(){return t.resolve(window.twttr)}):(window.twttr=w(document,"script","twitter-wjs"),window.twttr.ready(function(){return t.resolve(window.twttr)})),t.promise()},m=function(e){return console.error(e)},a=function(n){return e.when(c(),v()).then(function(e,r){var i,s;return s=new t(n),i={facebook:e,twitter:r},s.setSocial(i),s.build()}).fail(function(e){return m(e)}).done()},{createShareButtons:a}})}.call(this),function(){define("mi9-lifestyle-share-module",["shareButtons","share"],function(e,t){return{ShareButtons:e,share:t}})}.call(this),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("jquery"),require("ninemsn/portal/common/tracking/config"),require("ninemsn/portal/common/tracking"),require("ninemsn/portal/common/eventBroker"));else if(typeof define=="function"&&define.amd)define("mi9-tracking",["jquery","ninemsn/portal/common/tracking/config","ninemsn/portal/common/tracking","ninemsn/portal/common/eventBroker"],n);else{var r=typeof exports=="object"?n(require("jquery"),require("ninemsn/portal/common/tracking/config"),require("ninemsn/portal/common/tracking"),require("ninemsn/portal/common/eventBroker")):n(t.jquery,t["ninemsn/portal/common/tracking/config"],t["ninemsn/portal/common/tracking"],t["ninemsn/portal/common/eventBroker"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t,n,r){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){var r,i,s,o;r=n(2),o=n(3),s=n(4),i=n(5),e.exports={prefix:"",trackClick:function(e){return e.linkName=this.prefix+e.linkName,s.trackClickEvent(e)},registerClickTracking:function(e,t){return t==null&&(t="a"),e.find(t).each(function(e){return function(t,n){var r,i;if(!!n.getAttribute("data-tracking-initialized")==1)return;return n.hasAttribute("data-tracking-link-name")&&(i=n.getAttribute("data-tracking-link-name"),r=n.getAttribute("href")||n.getAttribute("data-link-destination"),n.addEventListener("click",function(t){return e.trackClick({linkName:i,destination:r})})),n.setAttribute("data-tracking-initialized","true")}}(this))},trackSlideTransition:function(){return s.trackSlideTransition()},trackPage:function(e){return e==null&&(e={}),s.trackPage(e)},trackAdditionalPage:function(e){return e==null&&(e={}),s.trackAdditionalPage(e)},configurePrefix:function(e){var t,n,r;t=e!=null?(n=e.tracking)!=null?(r=n.omniture)!=null?r.siteLinkNamePrefix:void 0:void 0:void 0;if((t!=null?t.length:void 0)>0)return this.prefix=t+"_"},configure:function(e){return this.configurePrefix(e),o(r.extend(!0,{},{hierarchy:e.hierarchy},e.tracking))},startTracking:function(){return s.registerToEventBroker(),i.start(),this.trackPage()}}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("jquery"),require("mi9-decorator"));else if(typeof define=="function"&&define.amd)define("mi9-header-client",["jquery","mi9-decorator"],n);else{var r=typeof exports=="object"?n(require("jquery"),require("mi9-decorator")):n(t.jquery,t["mi9-decorator"]);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ResponsiveMenuDecorator=undefined;var r=n(1);Object.defineProperty(t,"ResponsiveMenuDecorator",{enumerable:!0,get:function(){return i(r).default}}),n(4)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function f(e,t){if(typeof t!="function"&&t!==null)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)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=o(r),s=n(3),l=function(e){function t(n,r){u(this,t);var s=a(this,e.call(this,n));s._ready=!1,s.READY="decorator.ready",s.MANAGER_AVAILABLE="decorator.manager-available";if(!n instanceof HTMLElement)throw new TypeError("invalid target");return s.childWidths=[],s.defaults={mobileMaxWidth:500,hoverDelay:150,alwaysShowHamburger:!1,isSticky:!1,openMenuTrackingLinkName:"nav_menu_open",closeMenuTrackingLinkName:"nav_menu_close",trackingLinkNameAttribute:"data-tracking-link-name"},s.classes={hidden:"js-hidden",allActive:"js-all-active",active:"js-active",show:"js-show",ready:"js-ready",stuck:"js-stuck",overlap:"js-overlap",toggleAll:"js-toggle-all",dropdown:"js-dropdown",hover:"js-hover",module:"header-module",menu:"menu",menuItem:"menu__item",subMenuItem:"sub-menu__item",fixedItem:"menu__item--fixed",contentItem:"menu__item--content"},s.$target=(0,i.default)(n),s.$menu=null,s.$menuChildren=null,s.$toggleAll=null,s.$dropdown=null,s.hoverTimeout=!1,s.oneClickAttached=!1,s.staticMenuOffset=0,s.isTouching=!1,s.options=i.default.extend({},s.defaults,r),s.initMenu(),s}return f(t,e),t.getName=function(){return"header.menu"},t.prototype.initTracking=function(){this.tracking&&this.tracking.registerClickTracking&&this.tracking.registerClickTracking(this.$target.parent(),"a[data-tracking-link-name]")},t.prototype.trackClick=function(t){this.tracking&&this.tracking.trackClick&&this.tracking.trackClick({linkName:t})},t.prototype.isOverflowing=function(t,n){var r=n+1===this.$menuChildren.length?!0:!1,i=n>0?this.previousChildrenWidths(n):0;return this.childWidths[n]=t.outerWidth(),r&&(i-=this.$toggleAll.outerWidth()),i+=this.fixedElementWidth(),i+t.outerWidth()>=this.menuAvailableWidth()},t.prototype.isTouchDevice=function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}},t.prototype.isSmallViewport=function(){return window.innerWidth<this.options.mobileMaxWidth},t.prototype.isValidStyles=function(){return this.$menuChildren.not("."+this.classes.toggleAll).first().outerWidth()>=this.menuAvailableWidth()?!1:!0},t.prototype.isToggleAllActive=function(){return this.$target.hasClass(this.classes.allActive)},t.prototype.isStickyActive=function(){return this.$target.hasClass(this.classes.stuck)},t.prototype.isChildrenHidden=function(){return this.$menu.find("."+this.classes.hidden).length>0},t.prototype.previousChildrenWidths=function(t){var n=0;for(var r=0;+r<t;r++)n+=this.childWidths[r];return n},t.prototype.fixedElementWidth=function(){return this.$menu.find("."+this.classes.fixedItem).outerWidth()||0},t.prototype.menuAvailableWidth=function(){return this.$menu.width()},t.prototype.isScrolledBeyondNav=function(){return(0,i.default)(window).scrollTop()>this.staticMenuOffset},t.prototype.getStaticMenuOffset=function(){return this.$target.offset().top+this.$target.height()},t.prototype.isChildOfModule=function(t){return t.parents("."+this.classes.module).length>0},t.prototype.resetMenu=function(){this.$menuChildren.removeClass(this.classes.hidden)},t.prototype.expandToggleAllMenu=function(){this.$target.addClass(this.classes.allActive),this.trackClick(this.options.openMenuTrackingLinkName)},t.prototype.closeChildrenMenus=function(){this.$menuChildren.removeClass(this.classes.active)},t.prototype.closeToggleAllMenu=function(){this.$target.removeClass(this.classes.allActive),this.trackClick(this.options.closeMenuTrackingLinkName)},t.prototype.updateHamburger=function(){if(this.isToggleAllActive())return;if(this.isStickyActive())return;!this.options.alwaysShowHamburger&&!this.isChildrenHidden()?(this.$toggleAll.addClass(this.classes.hidden),this.$toggleAll.removeClass(this.classes.show)):(this.$toggleAll.removeClass(this.classes.hidden),this.$toggleAll.addClass(this.classes.show))},t.prototype.hideOverflowingItems=function(){var t=this;if(this.isSmallViewport())return;if(!this.isValidStyles())return;this.$menuChildren.each(function(e,n){var r=(0,i.default)(n);if(r.prev().hasClass(t.classes.hidden))return r.addClass(t.classes.hidden);r.toggleClass(t.classes.hidden,t.isOverflowing(r,e))})},t.prototype.toggleDropdown=function(t,n){if(t.hasClass(this.classes.active))return t.removeClass(this.classes.active);t.addClass(this.classes.active)},t.prototype.stickMenu=function(){if(this.isStickyActive())return;this.$toggleAll.removeClass(this.classes.hidden),this.$target.addClass(this.classes.stuck),this.refreshMenu()},t.prototype.unstickMenu=function(){if(!this.isStickyActive())return;this.$target.removeClass(this.classes.stuck),this.refreshMenu()},t.prototype.refreshMenu=function(){if(this.isSmallViewport())return this.resetMenu();this.hideOverflowingItems(),this.updateHamburger()},t.prototype.followLink=function(t){window.location=t},t.prototype.handleToggleAll=function(t){t.preventDefault(),t.stopPropagation(),this.isToggleAllActive()?(this.closeChildrenMenus(),this.closeToggleAllMenu(),this.refreshMenu()):(this.expandToggleAllMenu(),this.attachOneClickListener())},t.prototype.handleDropdownClick=function(t){if(!this.isToggleAllActive())return;var n=(0,i.default)(t.currentTarget).parent().parent();n.hasClass(this.classes.active)?this.closeChildrenMenus():(this.closeChildrenMenus(),this.toggleDropdown(n,0))},t.prototype.handleMouseEnter=function(t){var n=this;if(this.isTouching)return!1;if(this.isToggleAllActive())return;this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(function(){n.hoverTimeout=!1,n.handleDropdownHoverOn(t)},this.options.hoverDelay)},t.prototype.handleMouseLeave=function(t){if(this.isToggleAllActive())return;this.hoverTimeout?clearTimeout(this.hoverTimeout):this.handleDropdownHoverOff(t)},t.prototype.handleDropdownHoverOn=function(t){var n=(0,i.default)(t.currentTarget);this.toggleDropdown(n,0),n.addClass(this.classes.hover)},t.prototype.handleDropdownHoverOff=function(t){if(this.isToggleAllActive())return;var n=(0,i.default)(t.currentTarget);this.toggleDropdown(n,0),n.removeClass(this.classes.hover)},t.prototype.handleMenuClick=function(t){if(this.isToggleAllActive())return;var n=(0,i.default)(t.target);if(!this.isTouching)return;t.preventDefault();if(!n.parent().hasClass(this.classes.menuItem))return this.followLink(n.attr("href"));n.parent().hasClass(this.classes.hover)?this.handleDropdownHoverOff(t):(this.closeChildrenMenus(),this.handleDropdownHoverOn(t))},t.prototype.handleOneClick=function(t){this.oneClickAttached=!1;if(this.isChildOfModule((0,i.default)(t.target)))return this.attachOneClickListener();this.closeToggleAllMenu()},t.prototype.handleResize=function(){this.staticMenuOffset=this.getStaticMenuOffset(),this.isToggleAllActive()&&this.closeChildrenMenus(),this.refreshMenu()},t.prototype.handleScroll=function(){this.isScrolledBeyondNav()?this.stickMenu():this.unstickMenu()},t.prototype.attachOneClickListener=function(){var t=this;if(this.oneClickAttached)return;this.oneClickAttached=!0,(0,i.default)(document).one("click",function(e){t.handleOneClick(e)})},t.prototype.attachListeners=function(){var t=this;this.$toggleAll.on("click",function(e){t.handleToggleAll(e)}),this.$dropdown.on("click","span",function(e){e.stopPropagation(),e.preventDefault();if(t.isToggleAllActive())return t.handleDropdownClick(e);if(t.touchDevice)return t.toggleDropdown((0,i.default)(e.target).parent().parent(),0)}),this.$dropdown.on({mouseenter:function(n){t.handleMouseEnter(n)},mouseleave:function(n){t.handleMouseLeave(n)},touchstart:function(n){t.isTouching=!0},touchend:function(n){setTimeout(function(){t.isTouching=!1},100)},click:function(n){t.handleMenuClick(n)}}),(0,i.default)(window).on("resize",function(){t.handleResize()}),this.options.isSticky&&(this.staticMenuOffset=this.getStaticMenuOffset(),this.handleScroll(),(0,i.default)(window).on("scroll",function(){t.handleScroll()}))},t.prototype.menuReady=function(){var t=this;this.$menu.addClass(this.classes.ready),this._ready||(this._ready=!0,this.emit(s.Decorator.READY)),setTimeout(function(){t.refreshMenu()},1)},t.prototype.assignElements=function(){this.$nav=this.$target.find("nav"),this.$menu=this.$target.find("."+this.classes.menu),this.$menuChildren=this.$menu.find("."+this.classes.menuItem).not("."+this.classes.fixedItem).not("."+this.classes.contentItem),this.$fixedElement=this.$menu.find("."+this.classes.fixedItem),this.$toggleAll=this.$menu.find("."+this.classes.toggleAll),this.$dropdown=this.$menu.find("."+this.classes.menuItem+"."+this.classes.dropdown),this.$childDropdown=this.$menu.find("."+this.classes.subMenuItem+"."+this.classes.dropdown)},t.prototype.initMenu=function(){this.touchDevice=this.isTouchDevice(),this.assignElements(),this.menuReady(),this.attachListeners(),this.initTracking()},t}(s.Decorator);s.Decorator.dependencies.call(l,{tracking:new s.Decorator.Dependency("Tracking library module")}),t.default=l},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){}])}),function(t,n){if(typeof exports=="object"&&typeof module=="object")module.exports=n(require("mi9-decorator"),require("mi9-image-resizer"),require("mi9-gallery"),require("mi9-lifestyle-massrelevance"),require("mi9-ads"),require("mi9-social-sharing"),require("jquery"),require("mi9-lifestyle-share-module"),require("mi9-lifestyle-gallery-common"),require("twemoji"));else if(typeof define=="function"&&define.amd)define("mi9-lifestyle-gallery",["mi9-decorator","mi9-image-resizer","mi9-gallery","mi9-lifestyle-massrelevance","mi9-ads","mi9-social-sharing","jquery","mi9-lifestyle-share-module","mi9-lifestyle-gallery-common","twemoji"],n);else{var r=typeof exports=="object"?n(require("mi9-decorator"),require("mi9-image-resizer"),require("mi9-gallery"),require("mi9-lifestyle-massrelevance"),require("mi9-ads"),require("mi9-social-sharing"),require("jquery"),require("mi9-lifestyle-share-module"),require("mi9-lifestyle-gallery-common"),require("twemoji")):n(t["mi9-decorator"],t["mi9-image-resizer"],t["mi9-gallery"],t["mi9-lifestyle-massrelevance"],t["mi9-ads"],t["mi9-social-sharing"],t.jquery,t["mi9-lifestyle-share-module"],t["mi9-lifestyle-gallery-common"],t.twemoji);for(var i in r)(typeof exports=="object"?exports:t)[i]=r[i]}}(this,function(e,t,n,r,i,s,o,u,a,f){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var r,i,s,o,u,a;i=n(1),o=n(2),s=n(3),u=n(4),r=n(5),a=n(6),n(7),s.init=function(e,t){var f,l;return s.ShareDecorator=n(13),s.ThumbnailsDecorator=n(16),s.UtilitiesDecorator=n(22),s.ManagerDecorator.config({tracking:t}),l=new o,s.ShareDecorator.registerDependencies({imageResizer:l,tracking:t}),s.SlidesDecorator.registerDependencies({imageResizer:l,tracking:t}),s.ThumbnailsDecorator.registerDependencies({imageResizer:l,tracking:t}),s.ArrowsDecorator.registerDependencies({tracking:t}),a.registerDependencies({tracking:t}),f=i.DecoratorFactory["default"],f.registry.add([s,r,u]),f.build(),l.parseImages({useParentWidth:!0})},e.exports=s},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t){},,,,,,function(e,t,n){var r,i,s,o,u,a,f=function(e,t){return function(){return e.apply(t,arguments)}},l=function(e,t){function r(){this.constructor=e}for(var n in t)c.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},c={}.hasOwnProperty;r=n(14),i=n(1).Decorator,a=n(15).share,o={facebook:".gallery__share__btn--facebook",twitter:".gallery__share__btn--twitter",pinterest:".gallery__share__btn--pinterest",tumblr:".gallery__share__btn--tumblr",mail:".gallery__share__btn--mail",gplus:".gallery__share__btn--gplus",whatsapp:".gallery__share__btn--whatsapp"},s="gallery__share__btn--more",u=function(e){function n(){return this.handleMoreButtonClick=f(this.handleMoreButtonClick,this),n.__super__.constructor.apply(this,arguments)}var t;return l(n,e),n.getName=function(){return"lifestyle.gallery.share"},n.dependencies({tracking:new n.Dependency("needed for click tracking")}),n.prototype.init=function(e){return this.moreButton=this.target.getElementsByClassName(s)[0],this.moreButton.addEventListener("click",this.handleMoreButtonClick),this.on(i.MANAGER_AVAILABLE,function(e){return function(t){return e.manager.on("change",function(t){return e.updateShare(t)}),e.updateShare()}}(this)),this.ready()},n.prototype.handleMoreButtonClick=function(e){return r(this.target).toggleClass("gallery__share--expanded")},n.prototype.updateShare=function(e){var t;return t=this.getSharingData(this.manager),a.createShareButtons(t)},t=function(e){var t;return t=e.slide.slideUrl,window.location.protocol+"//"+window.location.host+t},n.prototype.getSharingData=function(e){var n;return n=r(this.target),{tracking:this.tracking,container:n,title:e.gallery.headline,url:t(e),description:e.gallery.headline,image:e.slide.url,config:o}},n}(i),e.exports=u},function(e,t){e.exports=o},function(e,t){e.exports=u},function(e,t,n){var r,i,s,o=function(e,t){function r(){this.constructor=e}for(var n in t)u.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;r=n(3),i=n(17),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.prototype.templates={thumbnails:i.templates.thumbnails},t}(r.ThumbnailsDecorator),e.exports=s},function(e,t,n){var r;r=n(18),r.templates.share=n(19),e.exports=r},function(e,t){e.exports=a},function(e,t,n){var r=n(20);e.exports=function(t){var n=[],r={},i;return n.push('<div data-module="lifestyle.gallery.share"><a class="gallery__share__btn gallery__share__btn--facebook"></a><a class="gallery__share__btn gallery__share__btn--twitter"></a><a class="gallery__share__btn gallery__share__btn--more"></a><a class="gallery__share__btn gallery__share__btn--mail"></a><a class="gallery__share__btn gallery__share__btn--tumblr"></a><a class="gallery__share__btn gallery__share__btn--gplus"></a><a class="gallery__share__btn gallery__share__btn--pinterest"></a><a class="gallery__share__btn gallery__share__btn--whatsapp"></a></div>'),n.join("")}},function(e,t,n){"use strict";function r(e){return e!=null&&e!==""}function i(e){return(Array.isArray(e)?e.map(i):e&&typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}):[e]).filter(r).join(" ")}function u(e){return s[e]||e}function a(e){var t=String(e).replace(o,u);return t===""+e?e:t}t.merge=function f(e,t){if(arguments.length===1){var n=e[0];for(var i=1;i<e.length;i++)n=f(n,e[i]);return n}var s=e["class"],o=t["class"];if(s||o)s=s||[],o=o||[],Array.isArray(s)||(s=[s]),Array.isArray(o)||(o=[o]),e["class"]=s.concat(o).filter(r);for(var u in t)u!="class"&&(e[u]=t[u]);return e},t.joinClasses=i,t.cls=function(n,r){var s=[];for(var o=0;o<n.length;o++)r&&r[o]?s.push(t.escape(i([n[o]]))):s.push(i(n[o]));var u=i(s);return u.length?' class="'+u+'"':""},t.style=function(e){return e&&typeof e=="object"?Object.keys(e).map(function(t){return t+":"+e[t]}).join(";"):e},t.attr=function(n,r,i,s){return n==="style"&&(r=t.style(r)),"boolean"==typeof r||null==r?r?" "+(s?n:n+'="'+n+'"'):"":0==n.indexOf("data")&&"string"!=typeof r?(JSON.stringify(r).indexOf("&")!==-1&&console.warn("Since Jade 2.0.0, ampersands (`&`) in data attributes will be escaped to `&amp;`"),r&&typeof r.toISOString=="function"&&console.warn("Jade will eliminate the double quotes around dates in ISO form after 2.0.0")," "+n+"='"+JSON.stringify(r).replace(/'/g,"&apos;")+"'"):i?(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+t.escape(r)+'"'):(r&&typeof r.toISOString=="function"&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+n+'="'+r+'"')},t.attrs=function(n,r){var s=[],o=Object.keys(n);if(o.length)for(var u=0;u<o.length;++u){var a=o[u],f=n[a];"class"==a?(f=i(f))&&s.push(" "+a+'="'+f+'"'):s.push(t.attr(a,f,!1,r))}return s.join("")};var s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},o=/[&<>"]/g;t.escape=a,t.rethrow=function l(e,t,r,i){if(e instanceof Error){if((typeof window!="undefined"||!t)&&!i)throw e.message+=" on line "+r,e;try{i=i||n(21).readFileSync(t,"utf8")}catch(s){l(e,null,r)}var o=3,u=i.split("\n"),a=Math.max(r-o,0),f=Math.min(u.length,r+o),o=u.slice(a,f).map(function(e,t){var n=t+a+1;return(n==r?"  > ":"    ")+n+"| "+e}).join("\n");throw e.path=t,e.message=(t||"Jade")+":"+r+"\n"+o+"\n\n"+e.message,e}throw e},t.DebugItem=function(t,n){this.lineno=t,this.filename=n}},function(e,t){},function(e,t,n){var r,i,s,o,u=function(e,t){function r(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;o=n(23),r=n(3),i=n(17),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return u(t,e),t.prototype.templates={utilities:i.templates.utilities},t.prototype.handleSlideChange=function(e){var t,n,r;return n="",r=this.manager.slide,t=this.manager.gallery,(r!=null?r.type:void 0)!=="ad"&&(n=this.templates.utilities({media:r,current:t,partials:{gallery:i.templates}})),this.target.innerHTML=n,o.parse(this.target),this.parseCaption(),this.checkCaptionFormat(),this.initCaption()},t}(r.UtilitiesDecorator),e.exports=s},function(e,t){e.exports=f}])});